[Solved] adb install results in "/sbin/sh: pm: not found"

1100 1110

New member
Mar 10, 2011
2
0
0
Visit site
I am using a rooted HTC G2 with Clockwork recovery and Cyanogenmod 6.1.1.

I broke my launcher, ADW EX, using Ninjamorph; the phone now gets stuck on the boot animation.

My planned solution was to use adb install to restore a backup of ADW EX.

Using adb pull I pulled a backup of ADW EX and placed in C:\

I mounted /system and /data in recovery

Using adb from recovery I entered adb shell and removed the broken ADW EX with:

rm /data/app/org.adwfreak.launcher-2.apk

Next, I exited adb shell and entered:

adb install C:\org.adwfreak.launcher-2.apk

This generated the error:

/sbin/sh: pm: not found

I cannot get past this error and successfully install the application. I am learning as I go, any direction or assistance is welcome. I miss my Android :(
 
Last edited:

1100 1110

New member
Mar 10, 2011
2
0
0
Visit site
Solved

In case any other doofus' run into this situation.

As I have now learned, the "adb install" command will not work from recovery.

Because I had broken my launcher, and I had no alternative launchers installed, there was no launcher to hand-off to after booting; the result was an endless boot animation. Calls and notifications could still be received, etc. Most importantly, the phone was no longer in recovery and "adb install" could be used.

adb install C:\org.adwfreak.launcher-2.apk

Press "home"

Fixed.
 

tuyudize

New member
Feb 28, 2015
1
0
0
Visit site
Re: Solved

Duude, you're a lifesaver! I was so close to wipe my ROM and configure everything again, but after reading this post I called my phone while having the endless boot animation, then my replacement launcher came up like magic and everything started working. I wouldn't have guessed that my phone was actually booted up, the boot animation fooled me. Thank you very much for leaving this useful information :) !
 

Trending Posts

Forum statistics

Threads
942,999
Messages
6,916,819
Members
3,158,765
Latest member
be1digital