A question to developers about adb shell - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi guys
sorry for this stupid question in this section of XDA but i'm going mad with the adb shell..
Can someone explain to me the "right way" for uninstall and then install a stystem application in the system directory?
what is the difference between the commands "rm" and "pm uninstall"?
i'm testing it with the swype app (for exemple) and i see that if I use "rm /system/app/swype.apk" the app on the phone is gone and for install again I can use the cp command and copy the app in the system folder...
why i have to use the pm unisntall too? is there some difference?
(i also try to use only the "pm uninstall" without "rm /system/app/swype.apk" first and it fails...)
viceversa if i cp the app in the system/app folder i will see swype on the phone working and i dont need to pm install it!
(if i try to pm install it i receive a failure message about INSUFFICIENT_STORAGE_something like this...but i dont need to pm install APPARENTLY because on the phone i see the app working)
can u help me understand those mecanichs? thanks
If u have time to wast maybe u can check THIS thread about adb remount too...another big trouble...
really thanks
Ivan

up...please...is there someone than can try to explain this to me? . _.

rm only deletes the executable, uninstall removes the application related settings + user/system files. same for install.

Search "system app remover" in market. It was created for this purpose.
Sent from my GT-I9000M using XDA App

use this
http://forum.xda-developers.com/showthread.php?p=7840748
Android Manager via WiFi
http://global.mobileaction.com/tutorial/am/agent/
OMG! this app is sooooooooo good and easy to use, it beats Kies hands down!
You'll need to use this along with Android Manager to keep the phone from going to sleep mode
Screen On
Apk: http://www.appbrain.com/app/gr.androiddev.ScreenOn
ADB for non Geeks
http://forum.xda-developers.com/showthread.php?t=683223
Click to expand...
Click to collapse
Narcissus85 said:
Hi guys
sorry for this stupid question in this section of XDA but i'm going mad with the adb shell..
Can someone explain to me the "right way" for uninstall and then install a stystem application in the system directory?
what is the difference between the commands "rm" and "pm uninstall"?
i'm testing it with the swype app (for exemple) and i see that if I use "rm /system/app/swype.apk" the app on the phone is gone and for install again I can use the cp command and copy the app in the system folder...
why i have to use the pm unisntall too? is there some difference?
(i also try to use only the "pm uninstall" without "rm /system/app/swype.apk" first and it fails...)
viceversa if i cp the app in the system/app folder i will see swype on the phone working and i dont need to pm install it!
(if i try to pm install it i receive a failure message about INSUFFICIENT_STORAGE_something like this...but i dont need to pm install APPARENTLY because on the phone i see the app working)
can u help me understand those mecanichs? thanks
If u have time to wast maybe u can check THIS thread about adb remount too...another big trouble...
really thanks
Ivan
Click to expand...
Click to collapse

Related

HTC_IME

Can someone help me? For the longest time I've been running Android Keyboard because HTC's keyboard just doesn't work for me any more. Now I want to get it fixed because Android's keyboard is just miserable.
Every time I click on the HTC Keyboard to type it force closes immediately. Anyone know what that's attributed to?
Running Cyanogen's 4.1.6
kevdawg said:
Can someone help me? For the longest time I've been running Android Keyboard because HTC's keyboard just doesn't work for me any more. Now I want to get it fixed because Android's keyboard is just miserable.
Every time I click on the HTC Keyboard to type it force closes immediately. Anyone know what that's attributed to?
Running Cyanogen's 4.1.6
Click to expand...
Click to collapse
try uninstalling HTC_IME and then reinstalling it.. worked for me and several others
What files need to be deleted to completely remove HTC IME from my phone?
uansari1 said:
What files need to be deleted to completely remove HTC IME from my phone?
Click to expand...
Click to collapse
i just uninstall it through AppManager ... theres an adb command that cyanogen posted a long time ago and i always forget it but ill look for it now .. its something like adb uninstall com.android.htc_ime
EDIT:
here it is:
Code:
adb uninstall com.htc.android.htcime
and then grab HTC_IME from CM Rom and do
Code:
adb install HTC_IME.apk
xidominicanoix said:
i just uninstall it through AppManager ... theres an adb command that cyanogen posted a long time ago and i always forget it but ill look for it now .. its something like adb uninstall com.android.htc_ime
EDIT:
here it is:
Code:
adb uninstall com.htc.android.htcime
and then grab HTC_IME from CM Rom and do
Code:
adb install HTC_IME.apk
Click to expand...
Click to collapse
I may need to try this, since my AppManager seems to not be working properly. After I run the uninstall script, do I just put the extracted HTC_IME.apk in the root folder of my SD card to run the install script?
EDIT: Okay, figured this out! I just put the HTC_IME.apk from the CM-4.1.11.1 ROM zip in my C:\ folder, opened cmd, nav to C:\ and ran those commands. Now HTC_IME Touch Input works!
This was going to be a deal breaker, and I gave up and went back to 4.0.4 until I saw this thread. Thx for the help.
How the noob made it work
http://www.megaupload.com/?d=DGFGMI3I
Link above contains Clicker.apk, HTC_IME.apk, and libt9.so from cyanogen's 4.1.11.1 ROM
Code:
Adb remount
adb push \wateverlocation\libt9.so /system/lib
Then copy the clicker to /system/app... then use a FileManager on your phone to install.. I use ASTRO, its FREE...
you could also adb that, but don't recommend it.
Code:
adb push \wateverlocation\Clicker.apk /system/app
adb push \wateverlocation\HTC_IME.apk /system/app
I have tried what you have written, i have pushed it, but when i find it with the Astro manager i only get the option to UNinstall or details.
And when i try adb install from whateverlocation on pc i get:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
I have Abyzou ROM.
Forget it, it is installed. But now it force closes before it even opens! What the?!
See post HERE for the properly working HTC_IME.
Also has the text to speech option.
Install as instructed and you should be golden
Nice, thanks! But you know what?? It is TOTALLY oversized! I have a tattoo!
Is this ever gonna end for me!

removing quickoffice

how do i do that? using the terminal?
how do i find the filepathname?
i have quickoffice pre-installed and it doesn't have to uninstall button,
so how do i remove it???
thanks
reynchan said:
how do i do that? using the terminal?
how do i find the filepathname?
i have quickoffice pre-installed and it doesn't have to uninstall button,
so how do i remove it???
thanks
Click to expand...
Click to collapse
here do this,make sure u hit enter after each command
1.su
2.cd /data/app_s
3.ls
look at the list and make sure you type exactly how it is named, if the H in htc is caps the make sure you put Htc
4. rm /data/app_s/HtcClockWidget.apk
It depends on the build you are running. The previous post is correct, unless you are on enomthers TheOfficial ADP1.6. In this case, doing the above will erase it until the next reboot. If this is your build, then you need to go to the terminal and enter
su
expsetup
Choose option 15, and you will then be given the option to remove QO (among other things).
cloverdale said:
It depends on the build you are running. The previous post is correct, unless you are on enomthers TheOfficial ADP1.6. In this case, doing the above will erase it until the next reboot. If this is your build, then you need to go to the terminal and enter
su
expsetup
Choose option 15, and you will then be given the option to remove QO (among other things).
Click to expand...
Click to collapse
u know u rght cuz i tried those commands on xROM in they dont work the commands i post was for HERO ROMS..so i had to use cd /system/app
thanks for the tips................I paid the 14.99 for quickoffice and regretting it and want to uninstall.........why in the world do people think this is a wonderful app.........bad excel characters, random crashes from menu.............JUNK..............thanks again
you wanna try documents to go. ive got it myself and it works really well. no problems so far.

how to upgrade to setCPU 2.0?

I try to download install it but I get error saying it couldnt be installed.
On the main page it says I need to manually update it? I dont know how to do that. Emailed the dev 2 times with no luck. Anybody can help me please?
Thanks
sti-06 said:
I try to download install it but I get error saying it couldnt be installed.
On the main page it says I need to manually update it? I dont know how to do that. Emailed the dev 2 times with no luck. Anybody can help me please?
Thanks
Click to expand...
Click to collapse
uninstall the old one first....
flybyme said:
uninstall the old one first....
Click to expand...
Click to collapse
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
sti-06 said:
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
Click to expand...
Click to collapse
try this in terminal
su
rm /system/app/setcpu.apk
sti-06 said:
that is the thing, when I went under "Manage Applications" setCPU is not even listed in there to uninstall it...
Under the same place I went under "All" clicked on setCPU and uninstall button is not highlighted
Click to expand...
Click to collapse
What ROM are you running? The ROM you are running probably installed setcpu to system so you would have to pull the old version using adb or you might be able to use a file explorer to find it and delete it.
flybyme said:
try this in terminal
su
rm /system/app/setcpu.apk
Click to expand...
Click to collapse
Didnt work, it said "rm failed for /systesm/app/setcpu/setcpu.apk, Read0only file system"
irishrally said:
What ROM are you running? The ROM you are running probably installed setcpu to system so you would have to pull the old version using adb or you might be able to use a file explorer to find it and delete it.
Click to expand...
Click to collapse
I am using kang-o-rama 0.9
I went under /system/app and all I see is setCpuWidgetMod. There is not an app called just setCPU
sti-06 said:
Didnt work, it said "rm failed for /systesm/app/setcpu/setcpu.apk, Read0only file system"
Click to expand...
Click to collapse
Remount and then do it again.
Or download root explorer and browse to /system/app and delete the .apk from there.
mortzz said:
Remount and then do it again.
Or download root explorer and browse to /system/app and delete the .apk from there.
Click to expand...
Click to collapse
I have the astro mananger, browsed inside /system/app but there is not a file called setcpu.apk....
If you have root explorer, do a search for setcpu
Sent from my Liquid using Tapatalk
sti-06 said:
I have the astro mananger, browsed inside /system/app but there is not a file called setcpu.apk....
Click to expand...
Click to collapse
why does it say you cannot install? its the fault of the rom dev of including it in his build. see if you can find and delete the app from /system/app
it may be that mod that you mentioned
su
remount
rm /system/app/setCpuWidgetMod.apk
flybyme said:
why does it say you cannot install? its the fault of the rom dev of including it in his build. see if you can find and delete the app from /system/app
it may be that mod that you mentioned
su
remount
rm /system/app/setCpuWidgetMod.apk
Click to expand...
Click to collapse
From what I see it does not give me reason it just says "Install unsuccessful"
tried:
su
remount
rm /system/app/setCpuWidgetMod.apk
on terminal and gave me same error "Read only file system"
also, when I typed "remount, it said "remount not found"...
If u install it, and while its downloading click the progress bar to get to the setcpu description screen in market, it'll show u the reason it failed.
Most likely it'll say something like insufficient space - which actually is a result of it not being able to overwrite the existing apk thats installed. To find the actual apk try this
find / -name *setcpu*
You should get a list of all files with setcpu on your phone. rm -F the correct apk. If its on /system you will need to do 'adb remount' from your windows command prompt, then open a adb shell before you can delete it.
btw it may actually be these two:
rm /data/data/com.mhuang.overclocking
rm /data/app/com.mhuang.overclocking-1.apk
kam187 said:
If u install it, and while its downloading click the progress bar to get to the setcpu description screen in market, it'll show u the reason it failed.
Most likely it'll say something like insufficient space - which actually is a result of it not being able to overwrite the existing apk thats installed. To find the actual apk try this
find / -name *setcpu*
You should get a list of all files with setcpu on your phone. rm -F the correct apk. If its on /system you will need to do 'adb remount' from your windows command prompt, then open a adb shell before you can delete it.
Click to expand...
Click to collapse
Thanks. It says: "Package file was not signed correctly"
kam187 said:
btw it may actually be these two:
rm /data/data/com.mhuang.overclocking
rm /data/app/com.mhuang.overclocking-1.apk
Click to expand...
Click to collapse
I looked inside the /data/ with ASTRO but there is nothing in there...
Yeah not sure why astro shows it empty. It may be because it doesnt run with root privaledges and only requests them when you try to delete something.
Use adb to check.
sti-06 said:
Thanks. It says: "Package file was not signed correctly"
Click to expand...
Click to collapse
yes this is because the old one is installed.
Use ES file explorer...not sure if its root access will work on that rom but it should
flybyme said:
yes this is because the old one is installed.
Use ES file explorer...not sure if its root access will work on that rom but it should
Click to expand...
Click to collapse
U mean EStrongs File Explorer right?
sti-06 said:
U mean EStrongs File Explorer right?
Click to expand...
Click to collapse
yes
it would be best if you do it through adb though

[Q] Deleted LG-home, no backup.. now what?

First post! So hello,
I made a big screwup. First i rooted my lg-p990, next i deleted lg-home using Titatium Free. I did not backup my file. Also i never installed a new homescreen.
When finishing this action, the phone didnt respond anymore. Now it wont restart. It is still possible to connect to pc and view sd cards. Also it will restart bringing the installation sequence, but when finishing it, the phone stops responding again.
I realise i havent been very smart. But does anybody have a solution?
Im guessing you will have to push the apk through adb.... but as i have limited knowledge on this i would wait until someone more experienced gives you help!
Moonie17 said:
Im guessing you will have to push the apk through adb.... but as i have limited knowledge on this i would wait until someone more experienced gives you help!
Click to expand...
Click to collapse
thanks for your reply. I heard about this before, but dont have they faintest clue about how to deal with it.. I hope sombody can help me out
goaner33 said:
thanks for your reply. I heard about this before, but dont have they faintest clue about how to deal with it.. I hope sombody can help me out
Click to expand...
Click to collapse
Short answer for you:
1) Download my attachement
2) Rename it from .zip to .apk
3) Put in adb folder
4) Run:
adb remount
adb push LGLauncher.apk /system/app/
adb reboot
doesn't pushing apks to system/app require root? Correct me if I'm wrong
aMpeX said:
doesn't pushing apks to system/app require root? Correct me if I'm wrong
Click to expand...
Click to collapse
Yes it does, as well as removing /system apps
Piter1225 said:
Short answer for you:
1) Download my attachement
2) Rename it from .zip to .apk
3) Put in adb folder
4) Run:
adb remount
adb push LGLauncher.apk /system/app/
adb reboot
Click to expand...
Click to collapse
Thanks again for your reply.
My next problem is that i dont know how to operate adb. I've got android sdk installed, but cant find how to work with adb.. What to do?
-edit-
I did some more research, and i cant use the commandline to acces :\android-sdk-windows\tool. This path doesn excist. Neither am i sure if USB-debugging is activated on the phone. I cannot acces the phones menu, so i cannot check..
what to do....
goaner33 said:
Thanks again for your reply.
My next problem is that i dont know how to operate adb. I've got android sdk installed, but cant find how to work with adb.. What to do?
Click to expand...
Click to collapse
You need to use command line to enter the lines I've written
Piter1225 said:
You need to use command line to enter the lines I've written
Click to expand...
Click to collapse
There are a few problems:
First is that there is no adb map to be found. Second is that when i for example enter the command "adb remount" my system doesnt recognise the command..
Thanks for your efforts though
Well. You rooted the phone. So usb debugging is enabled. It has to be for super one click to work.
Sent from my LG-P990 using XDA Premium App
Try that
Go to C:/Windows/System32
Copy cmd.exe
Paste it in SDK folder, where the ADB.exe is
Than enter my commands
gensplejs said:
Well. You rooted the phone. So usb debugging is enabled. It has to be for super one click to work.
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
And what when i... and i dont know this for sure, turned usb debugging off...
goaner33 said:
There are a few problems:
First is that there is no adb map to be found. Second is that when i for example enter the command "adb remount" my system doesnt recognise the command..
Thanks for your efforts though
Click to expand...
Click to collapse
"adb remount" wont work untill we have a modded boot image.
anyway. I can help you remotely if you want. just write me a PM.
gensplejs said:
"adb remount" wont work untill we have a modded boot image.
anyway. I can help you remotely if you want. just write me a PM.
Click to expand...
Click to collapse
Dam... my bomgar server seems to be down... or i locked myself out :-(
But i can help you remotely tomorrow.
gensplejs said:
Dam... my bomgar server seems to be down... or i locked myself out :-(
But i can help you remotely tomorrow.
Click to expand...
Click to collapse
Wow, that would be great! i'll pm you for my contactinfo!
Piter1225 said:
Try that
Go to C:/Windows/System32
Copy cmd.exe
Paste it in SDK folder, where the ADB.exe is
Than enter my commands
Click to expand...
Click to collapse
Okee, i must sound liek a real noob. I cannot find this SDK folder and the only file that i can find that relates to adb is adb_usb.exe..
i know that i am a real pain in the ass
If you manage to get a working adb connection the commands you need to execute are. Please make sure that the phone is unlocked when typing su (you will get a su access prompt on the phone and need to press allow)
adb push LGLauncher.apk /sdcard/
adb shell
su
busybox mount -o,remount -rw /system
stop
cp /sdcard/LGLauncher.apk /system/app/
reboot
problem solve
E-mail download link of the LGhomeLaunger.apk
Download on you phone and install.
It works as new!
Ok i solved the problem, thanks for thinking along with me..
It seemed i could still recieve emails, so i just sent the lghome.apk as a downloadlink true email..
it worked!
i guess sometimes solutions are not always as dificult!
goaner33 said:
Ok i solved the problem, thanks for thinking along with me..
It seemed i could still recieve emails, so i just sent the lghome.apk as a downloadlink true email..
it worked!
i guess sometimes solutions are not always as dificult!
Click to expand...
Click to collapse
well...
that is not a permanent fix.
when you install that way it is only installed in user space... If you ever factory reset the phone you will be stuck without a launcher again... and probably no way to config ur email :-(
you need to put the launcher apk file on your sd card... and then copy it to the /system/app folder using root explorer.
If you do this it will be fixed even after a factory reset...
anyway. Next time just freez apps. Dont uninstall them. If they are only frozen you can allways factory reset to get them back.

[Q] Remove Android Market App - Yes, seriously!

OK, sounds like the most stupid question ever, but is there a way to remove the google android market from the vegan 5.1 build? I've tried the obvious (i.e uninstall through app manager) but it's greyed out.
I know most people are desperate to get the market app on and working, but I need it removed
Any ideas...? Thanks
Can't see why but...
From pc
adb remount
adb rm /system/app/Vending.apk
adb reboot
Or in shell
#su
#cd /system/data
#rm Vending.apk
#reboot
Sent from my HTC Vision using XDA App
connoisseur said:
Can't see why but...
From pc
adb remount
adb rm /system/app/Vending.apk
adb reboot
Or in shell
#su
#cd /system/data
#rm Vending.apk
#reboot
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
fab, thanks! I know it's crazy, but there is method in my madness
Cheers
archos 101
hey
i am maybe the bigest noob in developing in android. but where do i put those commands on my pc?
Easiest way to do it is to download a root browser from the market or sideload it. Open root browser. Go ti root. System. Data. Apps. Delete vending.apk.
Sent from my DROID3 using xda premium
thnx for the fast reply
but if i open the root folder it is empty. do i need to root my device for this of something like this or is it something else?'
btw i use an archos 101 g9 whit android 3.2 honeycomb
sacratus91 said:
thnx for the fast reply
but if i open the root folder it is empty. do i need to root my device for this of something like this or is it something else?'
btw i use an archos 101 g9 whit android 3.2 honeycomb
Click to expand...
Click to collapse
Yes, you will need to be rooted to remove System apps.

Categories

Resources