how remove apps on unrooted phone? - Nexus One General

so, things like amazon mp3 download, which constantly starts itself up, is useless to me. i can adb shell into the app folder, but i don't know which app it is, or even if i even have permissions to remove it, since i haven't rooted my phone.
any suggestions, help?

timothydonohue said:
so, things like amazon mp3 download, which constantly starts itself up, is useless to me. i can adb shell into the app folder, but i don't know which app it is, or even if i even have permissions to remove it, since i haven't rooted my phone.
any suggestions, help?
Click to expand...
Click to collapse
You have to have root for this, sorry
But when you do root: com.amazon.mp3.apk

Sorry to noob it up in here, but I have root and have been dying to delete the facebook app. Can you put it in simple terms?

:/ what are the possiblities that brute force su password checks would work? i mean, this thing has to have a password, right?

kozm0naut said:
Sorry to noob it up in here, but I have root and have been dying to delete the facebook app. Can you put it in simple terms?
Click to expand...
Click to collapse
u need to establish a command line shell. first you need the sdk, which is probably easier to install with eclipse, just so you have everything. there are instructions around here somewhere.
once you have that, go to the sdk/tools folder in a terminal, and type in 'adb shell', and that'll put you into the file system for the phone. cd to the app directory, and if you have root ownership (dangit), you can remove apps or add apps

on your pc, open command prompt, and type in adb uninstall [directory to the application]

timothydonohue said:
:/ what are the possiblities that brute force su password checks would work? i mean, this thing has to have a password, right?
Click to expand...
Click to collapse
No, it doesn't

Related

preserving market "my downloads" list between wipes/rom installs

I've wiped and installed a lot of roms lately, and generally when I go to 'my downloads' in the market, only my paid apps are there. So, I have to go though the process of searching the installing each app again. It's just easier when they are all in a list.
I figured it would be a good idea to backup all my apps and then reinstall them afterward with adb in linux as such:
for a in `ls *.apk`; do adb install $a; done
this works, but of course they don't show up under 'my downloads' and I don't get update notifications.
Is there a way around this?
gsgleason said:
I've wiped and installed a lot of roms lately, and generally when I go to 'my downloads' in the market, only my paid apps are there. So, I have to go though the process of searching the installing each app again. It's just easier when they are all in a list.
I figured it would be a good idea to backup all my apps and then reinstall them afterward with adb in linux as such:
for a in `ls *.apk`; do adb install $a; done
this works, but of course they don't show up under 'my downloads' and I don't get update notifications.
Is there a way around this?
Click to expand...
Click to collapse
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
I assume you would want to do this to get update notifications. If so you can grab "aTrackDog" from the market. It will list all you apps and when you refresh it will tell you when updates are available and give you a link to get the update from the market.
AdrianK said:
I assume you would want to do this to get update notifications. If so you can grab "aTrackDog" from the market. It will list all you apps and when you refresh it will tell you when updates are available and give you a link to get the update from the market.
Click to expand...
Click to collapse
will it only work for software installed through the market or will manually installed software show up as well?
DirectMatrix said:
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
Click to expand...
Click to collapse
Awesome. I'll do this next time I wipe and reflash with the latest coolest rom. =)
gsgleason said:
will it only work for software installed through the market or will manually installed software show up as well?
Click to expand...
Click to collapse
nope, works for the apps on my ext3 even after switching builds several times, works great.
DirectMatrix said:
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
Click to expand...
Click to collapse
For those of us who are not that familiar with adb, can you give a short tutorial on how to pull and then push that database folder?
well i just wiped and installed the latest cyanogen mod and when i went to the "my downloads" section of the store all the apps i had downloaded before were all there (paid and free)
I also thought it didnt do that, apperently it does
Gilliland12 said:
For those of us who are not that familiar with adb, can you give a short tutorial on how to pull and then push that database folder?
Click to expand...
Click to collapse
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
AdrianK said:
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
Click to expand...
Click to collapse
Many thanks.
Backup for Root works perfectly for me
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
opasha said:
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
Click to expand...
Click to collapse
No, you will not get updates without re-purchasing the app. And talking about ripping off app developers on this forum is frowned up so please stop discussing it.
opasha said:
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
Click to expand...
Click to collapse
If you got a refund, then you shouldn't have the app. That's stealing and it's not nice. Most apps are cheap (a couple of bucks at most), stop being a cheapskate.
Originally Posted by AdrianK View Post
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
i tried this but it dodnt work.
when I did the first command it said ommiting databases. so I thought it worked.
flashed to the new cyanogen 4.0 rom (which is amazing btw!) did the second command and it said cannot stat file "databases" no such file or folder.
what gives??
Id say the databases were open and couldnt be backed up.
You should try to copy them from the recovery.
Also, after copying why didnt you check if the database files were in your sdcard (or the path you specified for the copy) before wiping? If the file is not there its obvious that it cant be restored after the wipe..
thought it might have been hidden or on my ext2 partition! never mind i got atrackdog!
addiosamigo said:
thought it might have been hidden or on my ext2 partition! never mind i got atrackdog!
Click to expand...
Click to collapse
Seems you can only copy each of the four db files individually... but copying the entire folder doesn't work.
All that is needed is assets.db
Open the terminal and enter
$ su
# cp /data/data/com.android.vending/databases/assets.db /sdcard
Wipe, flash, reboot.
YOU MUST OPEN THE MARKET AND AGREE TO THE TOS BEFORE RESTORING!!!!
Open the market, agree to the TOS, and close the market. Open the terminal and enter
$ su
# cp /sdcard/assets.db /data/data/com.android.vending/databases/assets.db
# reboot

How do I get adb shell to work in recovery after root?

I rooted following the 10 minute root video, however forgot to remove a lot of those junk system apps, like CityID. I cannot get back into SU while in recovery, no matter what I do. How do I get back into the shell in recovery so I can remove all the bloatware?
I can get the error message:
- exec '/system/bin/sh' failed: No such file or directory
however i cannot seem to get back into the shell where I can access SU and remove the bloatware, anyone have any ideas on what im missing?
areghas said:
I can get the error message:
- exec '/system/bin/sh' failed: No such file or directory
however i cannot seem to get back into the shell where I can access SU and remove the bloatware, anyone have any ideas on what im missing?
Click to expand...
Click to collapse
I'm in the exact same boat as you. I don't know where to go from here.
run update.zip and let it fail again then you caN adb shell su
hmm doesnt seem to work for me
in order to get the back to adb shell in recovery, you have to go through the whole root process again. Then once you have snuck in the payload-update.zip and it has successfully installed it, you are able to do adb shell.
i had to run do the hole process over again to get su so i could remove cityid after root.
i used the 1.bat file as in the utube video for noobs.
ejlax said:
in order to get the back to adb shell in recovery, you have to go through the whole root process again. Then once you have snuck in the payload-update.zip and it has successfully installed it, you are able to do adb shell.
Click to expand...
Click to collapse
not cool lol, took me 3 hours to get the things to work with my sd card haha not worth it.
that is the only way
They are correct, you must do it all again, but look for a PNY 4gig class 4 sd. I tried hundreds of times over a 3 day period to do it and it worked first time and every time with this card.
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
There is also another terminal app in the market for 1.99, listed as being for that purpose, so, has anyone tried it?
I don't have anything else I want to delete at the moment, since I got rid of cityid at the recovery adb prompt.
qwho said:
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
There is also another terminal app in the market for 1.99, listed as being for that purpose, so, has anyone tried it?
I don't have anything else I want to delete at the moment, since I got rid of cityid at the recovery adb prompt.
Click to expand...
Click to collapse
The nand is locked down when you are in the main OS, so no, it would not work. You would need to do the re-root to gain access to /system/ as recovery is the only place where we are able to access it right now.
qwho said:
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
Click to expand...
Click to collapse
E30kid said:
The nand is locked down when you are in the main OS, so no, it would not work. You would need to do the re-root to gain access to /system/ as recovery is the only place where we are able to access it right now.
Click to expand...
Click to collapse
I can get su access while in the OS. No problem on that. And I tried to delete teeter.apk, but got the "read only" message. So, I mounted it as read-write with
Code:
/system/bin/mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
that went fine too, but when I tried to delete teeter.apk, i got "rm failed, directory not empty"... but I'm not trying to delete a directory...
I guess the "nand is locked" and that's why, but... "the nand is locked" doesn't mean much to me, as I have no clue what that means

How do you remove apps using ADB?

I can't seem to figure out how to remove stock apps using adb? Can anyone list the commands needed to do this?
adb remount
adb shell rm /system/app/YourApplicationHere.apk
cloudedice said:
adb remount
adb shell rm /system/app/YourApplicationHere.apk
Click to expand...
Click to collapse
Does this completely remove the app? I mean in particular the listing in the app drawer, as well as in the "Manage Apps" section (if applicable). Also where will app data be stored, if used?
Thanks
yes, completely.
use "adb shell ls -1 /system/app/" to find out the exact name of the app you want to delete, it's caps sensitive.
you can try these 2 programs to remove apps
you should try using android commander or droid explorer. search for them in the forums. they are free and help out a lot.
+ For Droid Explorer: http://de.codeplex.com/ I use this and it is pretty handy. Though you can just be lazy like I usually am and just uninstall apps via Titanium Backup. I haven't tried Android Commander (yet, but maybe I should...) but in interest of being fair, you can find it here: http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Android-Commander-93099.shtml and the official site is here, but didn't find it very well laid out (no offense PanPiotr...): http://androidcommander.com/
One other thing if you want to backup the app to your sd use cp /system/apps/appnname /sdcard/backup/appname
Sent from my Eris using XDA App
Sorry to ask such a noob question, but I just ran Unrevoked 3 and unrevoked forever. Everything seemed to work correctly, but when I try and run androind commander to delete files it says I need root permissions. I saw the superuser permissions icon in my app list, but when I click it nothing happens. Did I miss something?
ryanmc2033 said:
Sorry to ask such a noob question, but I just ran Unrevoked 3 and unrevoked forever. Everything seemed to work correctly, but when I try and run androind commander to delete files it says I need root permissions. I saw the superuser permissions icon in my app list, but when I click it nothing happens. Did I miss something?
Click to expand...
Click to collapse
do you use other apps (setcpu, etc) that require Superuser permissions? any issues with those? if you do have other apps that have SU permissions, then uninstall/reinstall Android Commander... it should then request permission again.
if neither situation applies... use the directions above to remove the Superuser.apk file from /system/app and then go to this thread and download the new Superuser app
http://forum.xda-developers.com/showthread.php?t=682828

Apks safe to uninstall on Liberated FR series ROM?

I need to uninstall as many apks as I can from my phones memory and download them off of market and install on my sd card to free up memory. My phone memory is pretty full and seems to be causing it to lag.... What are the safe ones and unsafe ones to remove?
Tenacious--M said:
I need to uninstall as many apks as I can from my phones memory and download them off of market and install on my sd card to free up memory. My phone memory is pretty full and seems to be causing it to lag.... What are the safe ones and unsafe ones to remove?
Click to expand...
Click to collapse
If you can find the app in the market then its safe to remove. If its in the market that makes it optional. However removing google apps can have adverse affects on other google apps, but your phone will still continue to function just fine, and most if not all the google apps can be found in the market (with the exception of the market itself, dont remove that!). Apps such as the music app and clock apps can be replaced entirely by market apps. Preinstalled wallpapers can also be removed from the rom. Another thing i remove is any ringtones I dont think I"ll need. I dont know about liberated, but cm6 has WAY more ringtones than I need/want, so I just delete em. I also now remove the boot animation from the ROM before installing it to save a few MB. You just get a black screen where the bootanimation would normally show up until the phone boots.
Whats the easiest way to remove files? Ive tried to use Root Explorer and Titanium Backup but they show back up when I restart... Im hoping there is an easier way to remove than adb.....????
Tenacious--M said:
Whats the easiest way to remove files? Ive tried to use Root Explorer and Titanium Backup but they show back up when I restart... Im hoping there is an easier way to remove than adb.....????
Click to expand...
Click to collapse
adb is pretty easy actually. Search the forums for making a cmd shortcut for adb, or if someone remembers how they could post it (this will make life infinitely easier). Then you just boot into recovery and plug in the phone, type the following without the apostrophes:
'adb shell' hit enter.
'cd /system/app' enter.
'ls' enter. (this will pop up a list of the apps you have)
'rm name of app.apk' and its gone forever.
Just keep repeating that last step for every app you want removed.
Can i do this via Terminal Emulator?
yes but the command is different...id give it if i knew it...
CallMeAria said:
adb is pretty easy actually. Search the forums for making a cmd shortcut for adb, or if someone remembers how they could post it (this will make life infinitely easier). Then you just boot into recovery and plug in the phone, type the following without the apostrophes:
'adb shell' hit enter.
'cd /system/app' enter.
'ls' enter. (this will pop up a list of the apps you have)
'rm name of app.apk' and its gone forever.
Just keep repeating that last step for every app you want removed.
Click to expand...
Click to collapse
Im having a hell of a time removing apps from my Liberated Aria. I have installed ADB and the necessary software. I am able to get into CMD and get a listing of files (apk's), but they do not remove... what commands do I need to use?
Ive tried
rm /youtube.apk
rm /system/youtube.apk
rm /system/app/youtube.apk
They are still there... maybe Im not mounting the drive? Or its not in Read/Write mode?
Tenacious--M said:
Im having a hell of a time removing apps from my Liberated Aria. I have installed ADB and the necessary software. I am able to get into CMD and get a listing of files (apk's), but they do not remove... what commands do I need to use?
Ive tried
rm /youtube.apk
rm /system/youtube.apk
rm /system/app/youtube.apk
They are still there... maybe Im not mounting the drive? Or its not in Read/Write mode?
Click to expand...
Click to collapse
make sure your bored into clockwork recovery. Then go to partitions and mount system. then just follow those same directions I posted above. To remove the app you would type:
rm youtube.apk
Exactly like that, with a space after rm and no /.
hm...
Some times I use SystemApp Remover.
Its pretty easy to work.

[Q] ADB push permission denied while trying to temp root on HTC Glacier via Windows

Hello all,
I'll preface this by saying that I'm completely new to android phones and rooting them so I apologize for being noob in advance.
I have been following this guide (wiki.cyanogenmod.com/index.php?title=TMobile_myTouch_4G:_Full_Update_Guide) to a tee and have ended up stuck at #6 with failed to copy/permission denied errors when I attempt to push busybox, superuser, or temp root over to my phone. I believe I have everything in order, such as: having the latest java sdk, installing the latest android sdk at c:\, downloading and installing the latest platform-tools (rev 4) and google usb driver, and changing the variable value section of path to "%SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools", but i just cannot seem to execute the commands and I'm not sure what I'm doing wrong. I will also add that my phones settings are enabled for usb debugging and disk drive connection to PC.
This is exactly the command I'm trying:
C:\Users\thepaperescape>cd c:\android-sdk-windows\platform-tools
c:\android-sdk-windows\platform-tools>adb push su /sdcard/su
failed to copy 'su' to '/sdcard/su': Permission denied
Any help would be awesome. And sorry to make a new post... I've tried searching for 3 hours but cannot find the exact same incident.
Thanks
thepaperescape said:
Hello all,
I'll preface this by saying that I'm completely new to android phones and rooting them so I apologize for being noob in advance.
I have been following this guide (wiki.cyanogenmod.com/index.php?title=TMobile_myTouch_4G:_Full_Update_Guide) to a tee and have ended up stuck at #6 with failed to copy/permission denied errors when I attempt to push busybox, superuser, or temp root over to my phone. I believe I have everything in order, such as: having the latest java sdk, installing the latest android sdk at c:\, downloading and installing the latest platform-tools (rev 4) and google usb driver, and changing the variable value section of path to "%SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools", but i just cannot seem to execute the commands and I'm not sure what I'm doing wrong. I will also add that my phones settings are enabled for usb debugging and disk drive connection to PC.
This is exactly the command I'm trying:
C:\Users\thepaperescape>cd c:\android-sdk-windows\platform-tools
c:\android-sdk-windows\platform-tools>adb push su /sdcard/su
failed to copy 'su' to '/sdcard/su': Permission denied
Any help would be awesome. And sorry to make a new post... I've tried searching for 3 hours but cannot find the exact same incident.
Thanks
Click to expand...
Click to collapse
You need to have VISIONary.apk downloaded and installed on your phone. and make sure to run it with Visionary.sh and Set system to r/w both checked. And try it again.
How ever their are much easier methods. This being one of them. Makes sure to go to page two.
neidlinger said:
You need to have VISIONary.apk downloaded and installed on your phone. and make sure to run it with Visionary.sh and Set system to r/w both checked. And try it again.
Click to expand...
Click to collapse
The guide I am using gives instructions on how to root specifically without visionary so I'd like to stick to it's outline but just find guidance on how to make it work.
thepaperescape said:
The guide I am using gives instructions on how to root specifically without visionary so I'd like to stick to it's outline but just find guidance on how to make it work.
Click to expand...
Click to collapse
okay.
I've seen alot of people try this method and very little come out okay.
you need SU access to push objects to the phone. The phone is seeing it as a foreign object and is wanting to prevent it from being pushed. The only other option you'd have is to turn on mass media storage and drop/drag the objects to the root of the SDcard.
Agreed with neidlinger, if I'm not mistaken you must have atleast temproot to be able to use the command 'SU' as it stands for superuser and as ridiculous as it sounds you are not the superuser of your phone, Google is
Sent from my HTC Glacier using XDA Premium App
Nicgraner said:
Agreed with neidlinger, if I'm not mistaken you must have atleast temproot to be able to use the command 'SU' as it stands for superuser and as ridiculous as it sounds you are not the superuser of your phone, Google is
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
SU was actually Switch User but Super User is used ATM due to the confusion it created to the newbies a decade ago who didn't understand how permission base structure on *nix worked. Which always required chmod and whole rwx thing even made it more confusing so they preallocated it with [email protected] with UiD:0 as default permission.
Now what I like to know is why are you using that howto? As neidlinger stated just run VISIONary+ to get TempROOT and then do root.sh to obtain PermROOT. If you need to unlock the CiD just call TMo and get the code free as no need to risk it. But if you still want Radio S=OFF then just do the simple gfree step and you will have it.
You shouldn't need temproot to push a file to your sd card. Have you made sure the file is in the same folder as adb directory?
UsrBkp said:
Now what I like to know is why are you using that howto?
Click to expand...
Click to collapse
Well for one, I chose that guide because my goal is to install cyanogen and that is found directly off their site regarding my phone. My expectation is that a group of developers so renowned for their contributions should be able to correctly explain how to get to the point of install. Still I know it's a wiki, and things are constantly changing (generally faster than the wiki). For instance, I did notice that the wiki was incorrect about the location of the google usb drivers post download. I assume that is due to the newer version of the sdk i installed. And the jdk r25 is pretty new and I believe that to be one of the other things causing me problems, but I don't know for sure.
neidlinger said:
The only other option you'd have is to turn on mass media storage and drop/drag the objects to the root of the SDcard.
Click to expand...
Click to collapse
I tried doing this for those two files (su and superuser) that are supposed to be pushed onto the sd root and i thought it worked. cmd allowed me to push the other three files into /data/... no problem. chmod to 0755 even seemed to work (it neither explicitly approved or denied). but then when I got to step 8, terminal on the phone said i did not have access to run that command.
shuka325 said:
You shouldn't need temproot to push a file to your sd card. Have you made sure the file is in the same folder as adb directory?
Click to expand...
Click to collapse
That's what I figured based off of the guide (since it's a guide on GETTING TO temproot, but what do I know... i'm supernoob. I've attached an image to see if you can see ANYTHING wrong with what I'm trying to do.
Thanks for everything guys!
I would give up that guide and use VISIONary to gain Temp Root & Root.sh to obtain perm Root. Then install the latest rom manager and make sure CWM sticks. Then you can flash CM7, or any other ROM for that matter.
Is there any guide you all think stands above the rest?!?!
thepaperescape said:
Is there any guide you all think stands above the rest?!?!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=13989736&postcount=6

Categories

Resources