Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
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 550
Posts: 3,305
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 1487
Posts: 11,360
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
Get 16 GB of Legit Free Space in Dropbox

Samsung i9000m: on CM9.0
Samsung Nexus S: on JB 4.1.1
Motorola Milestone XT720: on CM6.3.5.3
Samsung Galaxy S II SGH-T989: on CM9.1
Samsung Galaxy NOTE SGH-i717r: on CM9.0
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...