How to uninstall an app from Recovery? - G1 Q&A, Help & Troubleshooting

I installed an application that sent my phone into a bootloop. I identified the culprit via adb logcat, but obviously cannot get into the phone to delete it. I don't want to do a wipe - I have a lot of time spent customising things as is and data I don't want to lose in some apps. Is there a way from within the recovery console to delete the offending application directly to stop the bootloop?
EDIT: N/m... thought it was the app, looking closer at adb logcat, looks like it isn't... and I found a way to delete the app but the issue remains.
Going to switch ROMs, the one I'm using now is fast, but appears to be way too buggy.

lotherius said:
I installed an application that sent my phone into a bootloop. I identified the culprit via adb logcat, but obviously cannot get into the phone to delete it. I don't want to do a wipe - I have a lot of time spent customising things as is and data I don't want to lose in some apps. Is there a way from within the recovery console to delete the offending application directly to stop the bootlopp?
Click to expand...
Click to collapse
omgggggggggg
http://forum.xda-developers.com/showthread.php?p=4529707
if you have apps2sd
Code:
adb remount
adb shell
rm /system/sd/app/xxxx.apk (or if that doesn't work put -r after rm)
if you dont have apps to sd, i believe apps are in /data/app

B-man007 said:
omgggggggggg
http://forum.xda-developers.com/showthread.php?p=4529707
if you have apps2sd
Code:
adb remount
adb shell
rm /system/sd/app/xxxx.apk (or if that doesn't work put -r after rm)
if you dont have apps to sd, i believe apps are in /data/app
Click to expand...
Click to collapse
i think my crappy typed-at-work commands have been quoted lol. I need to start a whole series of typed at work commands.
Also @lotherius what rom were you using?

Enomther's Rogers. May not have been the ROM but I am a bit frustrated as I have had several problems with it, and just went back to Cyanogen 4.0.4 for now. Thanks for the info.

Hi lotherius,
I'm in the same situation; How did you delete the app within the recovery? I have a Cyanogenmod 10.1 (android 4.2.2) based custom ROM with TWRP recovery right now.
Thanks in advanced!
lotherius said:
I installed an application that sent my phone into a bootloop. I identified the culprit via adb logcat, but obviously cannot get into the phone to delete it. I don't want to do a wipe - I have a lot of time spent customising things as is and data I don't want to lose in some apps. Is there a way from within the recovery console to delete the offending application directly to stop the bootloop?
EDIT: N/m... thought it was the app, looking closer at adb logcat, looks like it isn't... and I found a way to delete the app but the issue remains.
Going to switch ROMs, the one I'm using now is fast, but appears to be way too buggy.
Click to expand...
Click to collapse

adb uninstall badapp.apk
Or if this won't work try
adb shell
adb rm /data/app/badapp.apk
Or system app or wherever it is (may be able to just delete the data of the app too
Sent from my Nexus 4 using xda premium

Wow, thread necromancy

I'm just a guy, not a techophobe so I have no idea how to get to the shell inorder to type those commands. My daughter's Macbook Pro just endlessly restarts itself unless I put it in Recovery mode or Safe mode. I suspect it is 3rd party apps causing this, but I can't delete apps from Rec. or Safe mode and no one here has put it in layman's terms.

Related

Help using Terminal

I'm currently using Dwangs donut ROM.
For some strange reason my Terminal Emulator is "missing".
There is no icon for it in my app tray.
Market shows it as installed, but cannot open it nor uninstall it.
I have now installed Better Terminal Emulator Magic. What commands do I need to enter to completely remove Terminal Emulator from my system, so that I can try reinstalling it from the Market?
I hope I've made myself clear - if not please feel free to ask for clarification!
Look in the Development Tools or Spare Parts. I've seen a couple builds where it ends up in there.
qwerty3656 said:
Look in the Development Tools or Spare Parts. I've seen a couple builds where it ends up in there.
Click to expand...
Click to collapse
Just looked in Spare Parts - not there. Can't find Development Tools on my phone.
To remove it do this in the recovery console
mount system
rm /system/app/Term.apk (i think that is the name for it)
reboot
david1171 said:
To remove it do this in the recovery console
mount system
rm /system/app/Term.apk (i think that is the name for it)
reboot
Click to expand...
Click to collapse
Ah, now we're getting somewhere (sort of!)
I've done that, but get the response:
rm: cannot remove ' /system/app/Term.apk' : No such file or directory
that means its not there or its spelled wrong..
try using /system/sd instead of system
also, maybe clearing the market cache would work
B-man007 said:
that means its not there or its spelled wrong..
try using /system/sd instead of system
also, maybe clearing the market cache would work
Click to expand...
Click to collapse
Tried both of these - no joy :-(
1. Same response as before
2. Terminal Emulator still showing as installed (but Open & Uninstall buttons greyed out), even after clearing Market cache.
well if you dl one of cyanogens roms, you can pull the apk from there and push it to system
Yea or adb install -r
if it is not in /system/app then you can drop it in there with these commands, make sure that the .apk is in the root of your sdcard
Code:
mount sdcard
mount system
cp /sdcard/Term.apk /system/app/
reboot

need to remove & re-install "Browser"

anyone know if I can?
really don't fancy re-installing all my apps and setting them all up again (by doing a format/wipe and starting again)
I get a force close every time I open Browser
any ideas?
thanks
I am using the latest Cyanogen ROM
mmace said:
anyone know if I can?
really don't fancy re-installing all my apps and setting them all up again (by doing a format/wipe and starting again)
I get a force close every time I open Browser
any ideas?
thanks
I am using the latest Cyanogen ROM
Click to expand...
Click to collapse
To get it right you'll probably have to wipe but you might be able to adb pull the current Browser out and the adb push a new 1 in. I doubt that that will work though.
I would redl cm zip incase it has corrept browser in urs somehow. The on comp type in cmd:
Adb remount
Adb push "location of new browser.apk" /system/app (no ")
Adb sh reboot
In term on phone:
Su (allow)
Rwsystem
Cp /sdcard/"location of browser.apk" /system/app
Rosystem
Reboot
Have you tied going to app settings and clearing the data for the browser? This usually fixes browser force close.

Will donate for help.

Just like the title suggests, I need help. I have been working on this for three days and have not accomplished anything.
I have been rooted for six months, flashed many roms, kernels, enabled apps2sd, etc.., etc.., but I do not know how it all works(just to give you a little FYI).
"I do not have a recovery screen anymore." At first I just wasn't able to push a new one, it would tell me "usage flash_image partition.img" or something very similar. I searched for that phrase and found something with it in the G1 forums, tried it(probably should have asked first), and now I don't even have a recovery image. Like I said I've tried almost everything and it may be simple but this is beyond me, someone please help.
Sent from my HERO200 using XDA App
secbrad said:
Just like the title suggests, I need help. I have been working on this for three days and have not accomplished anything.
I have been rooted for six months, flashed many roms, kernels, enabled apps2sd, etc.., etc.., but I do not know how it all works(just to give you a little FYI).
"I do not have a recovery screen anymore." At first I just wasn't able to push a new one, it would tell me "usage flash_image partition.img" or something very similar. I searched for that phrase and found something with it in the G1 forums, tried it(probably should have asked first), and now I don't even have a recovery image. Like I said I've tried almost everything and it may be simple but this is beyond me, someone please help.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
what happens when you hold home then press the power button? Is there any sort of screen if you get a screen you need to install android sdk and flash a new recovery image using adb
bycoo222 said:
what happens when you hold home then press the power button? Is there any sort of screen if you get a screen you need to install android sdk and flash a new recovery image using adb
Click to expand...
Click to collapse
Yes there is a screen, it's the green HTC w/ white background. It will just sit there forever. I am at work right now so I can't do it yet but when I get home I'll try it, hopefully that works.
BTW, from my phone I can't tell if you have a donate button. I was serious about that.
Sent from my HERO200 using XDA App
Try downloading the RUU and then re-rooting your phone. It will be wiped clean from the RUU install then you'll be able to push a new recovery img over. If you don't want to do that my other suggestion is if you can't manually flash the recovery try downloading RomManager from the market and using that to flash a recovery.
As far as why you can't flash a recovery where are you placing the recovery.img when you try? are you doing it from your computer or from your sdcard using a terminal emulator? If its from your computer make sure that the recovery.img is in the tools folder and make sure you type it word for word (caps included) if your trying to do it from the terminal emulator and its on your sdcard the same applies as it must be letter for letter and word for word, but before you can type anything you have to gain root access in the terminal you do this by simply typing su and then enter. SuperUser Permissions will ask you if its ok to use root click ok then type in what you need to.
Since you said you've been trying to flash it I assume you know what to type but if you need it again just ask I'll post it up for you. Hope this helps.
Here's something I wrote a few days ago to help someone who was trying to flash a custom recovery might be helpful.
Flashing a custom recovery is pretty easy there is a couple of ways to do it some find it easier to do by putting it on the sd card and flashing it through a terminal emulator or if you have your htc sync and adb set up already you can throw it on your sd card and type this
Code:
adb remount
Code:
adb shell
Code:
flash_image recovery /sdcard/RA-darchstar.img
You should see this below
Code:
# flash_image recovery /sdcard/RA-darchstar.img
flash_image recovery /sdcard/RA-darchstar.img
#
Reboot into recovery and you should be all set to go. The other way by using the terminal emulator you'll just type in this in:
Code:
su
Accept Root access request from SuperUser Permissions then type:
Code:
flash_image recovery /sdcard/RA-darchstar.img
You should see the same output to know you did it correctly. Hope this helps.
secbrad said:
Yes there is a screen, it's the green HTC w/ white background. It will just sit there forever. I am at work right now so I can't do it yet but when I get home I'll try it, hopefully that works.
BTW, from my phone I can't tell if you have a donate button. I was serious about that.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
No donate needed
Sent from my HERO200 using XDA App
Also try quick boot to get in to recovery
Sent from my HERO200 using XDA App
Thanks
Thanks everyone for all you help. I ended up being able to do it through terminal. I guess next time I won't wait three days to ask for a thirty second fix.

CM9 for OB

I'm just sayin' I hope that we get to see some love and get the CM9 rom for the OB. I would really like to get ICS before the middle of next year. Is there somewhere we can put in some kind of request? or is there a way to use an existing CM9 build to port it to the OB using something from a CM7 build? I've had the phone for about 5 months and getting tired of running 2.2 Froyo just still debating whether to take the plunge and root and put on CM7 or wait it out a little longer. I really have never messed with an android phone before but I read alot on the forum and it seems relatively easy to get the CM7 on there just afraid to root and lose my warranty and something break lol.
Just hack away, don't worry about your warranty. You might get your phone stuck in a bootloop, i've done that several times already, lol. It sucks when it happens, but you can always connect it to your windows pc and restore it to factory settings, unrooted and everything. No one will ever know your phone was rooted
And just to add something, if you can install Android SDK on your computer, you can use ADB Reboot Recovery (if you put recovery on your phone of course). It save me great time.
Sent from my LG-P970 using xda premium
how do u restore the phone? if I know I can unroot it and it won't affect my warrenty ill do it lol I have v10a and have never been able to update higher then that. do I use gingerbreak and the app says it can unroot? like I said if I can unroot it and keep warrenty ill do it
Sent from my LG-P970g using xda premium
I would like Sobralobo to elaborate what he is talking about, sounds like it could save some time after a screwup. However, no matter the condition of your software, you can remove battery, hold vol+ and connect the microusb to your pc. On your pc, you run a LG app, input your imei, and the app will identify your device. It will also tell you if a new software is available. Even if it says it isn't, you can click Options > Recovery (or something like that, i write from my own memory now), and force a update. I'm also pretty sure you'll get V10d or V10e if you do. This process equals to format you phone and install everything from scratch, the way LG intended it to be. All of your personal stuff will be gone, all apps etc. (Obviously, not the stuff you got stored on your sd card, and apps you already bought are linked to your google account and will always follow you
Gingerbreak works for V10a/b afaik, if you get V10c/d/e, you can use this method:
xantaro said:
I got the EU Version of 10c rootet with this method:
1. Download and start SuperoneClick 1.9.5, click Shell Root
2. When it hangs up on a black CMD windows, close this Window. (You should have Shell Root now)
3. Unpack the attached File in your ADB Folder.
4. open a Command Prompt and enter "adb push su /tmp/" & adb push superuser.apk /tmp/"
5. Type "adb shell" ( When Shellroot worked, you should se a "#" on the shell
6. Enter the following commands in shell:
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk0p8 /system
cat /tmp/su > /system/bin/su
cat /tmp/superuser.apk > /system/app/Superuser.apk
chown root.root /system/bin/su
chmod 06755 /system/bin/su
chown root.root /system/app/Superuser.apk
chmod 0644 /system/app/Superuser.apk
reboot
7. The Phone will now reboot, after reboot it´s rooted again
Click to expand...
Click to collapse
hulkhaugen said:
I would like Sobralobo to elaborate what he is talking about, sounds like it could save some time after a screwup. However, no matter the condition of your software, you can remove battery, hold vol+ and connect the microusb to your pc. On your pc, you run a LG app, input your imei, and the app will identify your device. It will also tell you if a new software is available. Even if it says it isn't, you can click Options > Recovery (or something like that, i write from my own memory now), and force a update. I'm also pretty sure you'll get V10d or V10e if you do. This process equals to format you phone and install everything from scratch, the way LG intended it to be. All of your personal stuff will be gone, all apps etc. (Obviously, not the stuff you got stored on your sd card, and apps you already bought are linked to your google account and will always follow you
Gingerbreak works for V10a/b afaik, if you get V10c/d/e, you can use this method:
Click to expand...
Click to collapse
What Sobralobo said is that just installing Android SDK (Search Google and you get more thousands of tutorials to install SDK and everything you need. Even in O Black section I think there is one with Black drivers and all. Maybe is this one.) you can use "adb reboot recovery" when your Black is in a bootloop or whatever, then you just flash/restore and you are done way faster than reflashing stock firmware. And in certain occasions (for example when you have a certain ROM and you try to flash a modded file in flashable zip that breaks it, you can just flash your ROM without wipe just to fix it and you lose nothing).
PS: You don't even need SDK. There are standalone adb packages, and with LG Black drivers, you can do the same.
This is needed when you mess up with the phone testing all the freaking day like I used to and many others do now.
OK, cool. I'm using adb for rooting and pull/push framework-res.apk and other small mods, didn't know it was compatible with nandroid backups. That can save me a lot of time and trouble next time i mess it up
hulkhaugen said:
OK, cool. I'm using adb for rooting and pull/push framework-res.apk and other small mods, didn't know it was compatible with nandroid backups. That can save me a lot of time and trouble next time i mess it up
Click to expand...
Click to collapse
Well, not directly related to nandroid backups. Just do "adb reboot recovery" (without the "") when you are in trouble. Depending on the situation you will have to input that many times (up arrow and enter fast and many times) if it's bootlooping to find the proper moment when the phone actually receives the command, but it's easy. Once in recovery, you do what you need to do.
aha. so i suppose it won't work with stock bootloader, since LG says "ERROR, LG Security team!!". Still neat that i can restore my backup from bootloader
hulkhaugen said:
aha. so i suppose it won't work with stock bootloader, since LG says "ERROR, LG Security team!!". Still neat that i can restore my backup from bootloader
Click to expand...
Click to collapse
Hmm I think you are partially right. I think in Black bootloader is never changed. When "ERROR, LG Security team!!" is because you really messed up and I believe you have nothing else than flashing. But if you have Clockworkmod recovery (you have if you do nandroid backups), it's worth a try.
I was talking more about bootloops, but maybe when "ERROR, LG Security team!!", if you take the battery off and when put it in again you play with adb reboot recovery, it may work. I can't remember.
antonio1475 said:
Hmm I think you are partially right. I think in Black bootloader is never changed. When "ERROR, LG Security team!!" is because you really messed up and I believe you have nothing else than flashing. But if you have Clockworkmod recovery (you have if you do nandroid backups), it's worth a try.
I was talking more about bootloops, but maybe when "ERROR, LG Security team!!", if you take the battery off and when put it in again you play with adb reboot recovery, it may work. I can't remember.
Click to expand...
Click to collapse
It won't work with adb reboot recovery,I've tried it and failed,won't detect the phone
At least,in my case, it happened when i tried to do a nandroid restore from cm7 to stock (v10a, wiped)
Sent from my heart into yours

Removing System Apps

I'm rooted and am trying to mount the system to remove bloatware apps... However everytime Titanium Backup removes it and I reboot it's still there...
Anyone have any ideas?
System is protected: you can't modify it while the phone is booted. You'll have to make a zip or whatever to delete it in recovery.
You have to be kidding me...
I've spent all day long trying to root this bastard phone and that didn't work then I managed it and now I can't disable, remove any apps ?
So much for HTC being dev friendly
fkofilee said:
You have to be kidding me...
I've spent all day long trying to root this bastard phone and that didn't work then I managed it and now I can't disable, remove any apps ?
So much for HTC being dev friendly
Click to expand...
Click to collapse
It seriously took you all day to root? What went wrong?
Did you try just freezing the app instead?
Brand new trick from HTC?Didn't have it in hox+
Sent from my Nexus 4 using Tapatalk 2
afilopou said:
Brand new trick from HTC?Didn't have it in hox+
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
So you can no longer go into ES explorer, mount root/system go to system > apps and delete whatever you want ?
Sent from my HTC Incredible S using Tapatalk 2
The recovery flashed but wouldnt boot , managed to get round it when i discovered POB with his superboot Thank god for the desire C
Then i realised that i couldnt flash anything because I manged to install 6.0.2.8 as a boot img, and 6.0.3.0 as a proper recovery.
Then i didnt have any files on the device to flash boohoo so i managed to get ADB sideload working through the AIO One Toolkit... And managed to flash AHRD finally getting a working device,
As you see Im a seasoned vet at these things but the HTC One has been the first device that has stumped me....
----------------------
The apps issue is not unkwown for HTC however they havent done this for a while.... Back with the G2 they did exactly the same thing and yes ive frozen them but there should be away to remove system apps for us through root.... But i cant remember how, Throwing it into ADB Shell and requesting SU along with a Remount works fine but still would like to remove the apps.
Im also looking for someone with a locked phone... (Sim Locked) i have a theory and it worked on the Desire C Anyone wanna help?
fkofilee said:
I'm rooted and am trying to mount the system to remove bloatware apps... However everytime Titanium Backup removes it and I reboot it's still there...
Anyone have any ideas?
Click to expand...
Click to collapse
Delete the apps with titanium and power off the phone. Don't do a restart.
Already tried that ^_^
You need to flash a custom kernel with a modified ramdisk to disable system protection Without doing that you're like deleting an app on windows with deepfreeze on it
Is that the only solution?
There are so many bloated useless and intrusive (cr)apps on this phone it's unbelievable.
Other solution is boot in recovery and delete it there. Either thru adb while in recovery mode, flashable zip or through file manager(if you're using TWRP). Other than that nope
Hmmm I'm thinking adb through recovery here but how do I got about doing this?
fkofilee said:
Hmmm I'm thinking adb through recovery here but how do I got about doing this?
Click to expand...
Click to collapse
the joys of a s-on devices
read up on adb commands...
or use the zip I attached and edit line 18 in this format with the apps you want to get rid of, use a file explorer to get the proper names.
make a backup first in case you mess up something
Code:
delete("/system/app/xxxxx.apk", "/system/app/xxxx.odex", "/data/app/xxxxx.apk");
The best way to remove apps in recovery is through adb:
Code:
adb shell
sysrw
rm /system/app/abc.apk
the simple way is ROM CLEANER, but isn't available yet for the One.
cheers
fkofilee said:
Hmmm I'm thinking adb through recovery here but how do I got about doing this?
Click to expand...
Click to collapse
type the following commands.
Code:
adb shell
su
cd /system/app/
ls
rm <insert the name of the apk you want to delete here which can be found in the list shown by the ls command>
Riyal said:
type the following commands.
Code:
adb shell
su
cd /system/app/
ls
rm <insert the name of the apk you want to delete here which can be found in the list shown by the ls command>
Click to expand...
Click to collapse
I dont have a One, and dont plan on having one (ever, thanks to this thread! I think I'll stick to Sony, they have instructions to unlocking bootloader on their official website)
BUT, if the system is locked, it should be locked trough ADB too, so I guess what I'd try is install busybox, custom recovery, go into recovery, connected it to the PC (or a mac, but since we're on no-apple forum, I'll assume PC), mounting system there and doing your thing.
You can install busybox and custom recovery right?
Edit: never mind, I should really learn to read. Sometimes I think I'm dyslexic a little, just for words, not letters.
I did not see the 'recovery' part mentioned.
Anywho, mounting system is what you forgot, so at least I said something helpful
ogdobber said:
the joys of a s-on devices
read up on adb commands...
or use the zip I attached and edit line 18 in this format with the apps you want to get rid of, use a file explorer to get the proper names.
make a backup first in case you mess up something
Code:
delete("/system/app/xxxxx.apk", "/system/app/xxxx.odex", "/data/app/xxxxx.apk");
Click to expand...
Click to collapse
MacHackz said:
The best way to remove apps in recovery is through adb:
Code:
adb shell
sysrw
rm /system/app/abc.apk
Click to expand...
Click to collapse
limx said:
the simple way is ROM CLEANER, but isn't available yet for the One.
cheers
Click to expand...
Click to collapse
Riyal said:
type the following commands.
Code:
adb shell
su
cd /system/app/
ls
rm <insert the name of the apk you want to delete here which can be found in the list shown by the ls command>
Click to expand...
Click to collapse
issak42 said:
I dont have a One, and dont plan on having one (ever, thanks to this thread! I think I'll stick to Sony, they have instructions to unlocking bootloader on their official website)
BUT, if the system is locked, it should be locked trough ADB too, so I guess what I'd try is install busybox, custom recovery, go into recovery, connected it to the PC (or a mac, but since we're on no-apple forum, I'll assume PC), mounting system there and doing your thing.
You can install busybox and custom recovery right?
Edit: never mind, I should really learn to read. Sometimes I think I'm dyslexic a little, just for words, not letters.
I did not see the 'recovery' part mentioned.
Anywho, mounting system is what you forgot, so at least I said something helpful
Click to expand...
Click to collapse
All Wonderful Ideas folks, however i had a go at this last night, it was a fricking nightmare even mounting ADB through recovery

Categories

Resources