A question to developers about adb shell
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?
If u have time to wast maybe u can check THIS
thread about adb remount too...another big trouble...