Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,757 Members 48,397 Now Online
XDA Developers Android and Mobile Development Forum

A question to developers about adb shell

Tip us?
 
Narcissus85
Old
#1  
Senior Member - OP
Thanks Meter 0
Posts: 137
Join Date: Oct 2007
Default A question to developers about adb shell

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
 
Narcissus85
Old
#2  
Senior Member - OP
Thanks Meter 0
Posts: 137
Join Date: Oct 2007
up...please...is there someone than can try to explain this to me? . _.
 
etking
Old
#3  
Member
Thanks Meter 1
Posts: 45
Join Date: Aug 2010
rm only deletes the executable, uninstall removes the application related settings + user/system files. same for install.
 
Daneshm90
Old
#4  
Daneshm90's Avatar
Recognized Developer
Thanks Meter 634
Posts: 3,309
Join Date: Jun 2009
Search "system app remover" in market. It was created for this purpose.

Sent from my GT-I9000M using XDA App
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
AllGamer
Old
#5  
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter 1575
Posts: 11,521
Join Date: May 2008
Location: buried under loads of work IRL

 
DONATE TO ME
use this
http://forum.xda-developers.com/show....php?p=7840748

Quote:
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
Quote:
Originally Posted by Narcissus85 View Post
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

Donation is appreciated but not required, a cup of Coffee would suffice

Samsung i9000m: on CM10
Samsung Nexus S: on JB 4.2.2
Samsung Galaxy S II SGH-T989: on CM10
Samsung Galaxy NOTE SGH-i717r: on CM10
Samsung Galaxy NOTE 3 SM-N900W8: stock 4.3
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes