Delete App (.apk) in emulator? -


i know of 2 ways of deleting app under development emulator:

  1. using emulator gui: settings > applications > manage applications > uninstall
  2. using adb: adb uninstall

i may have discovered third way, using 'adb shell':

rm /data/app/<package>.apk 

it seems, however, isn't way delete apps because there may additional information associated (registration?).

what information , can found?

it's interesting mention this. ran quick home made test shed light onto question.

generally, when install .apk file, android creates internal storage area located @ /data/data/< package name of launching activity>. used internal caching area cant accessed other apps or phone user. can read in little bit more detail in internal storage chapter of androids data storage section. area exclusively used app , can write private data there.

once uninstall app theoretically, internal storage area deleted. first 2 ways outlined indeed that: .apk file in /data/app/ deleted aswell internal storage area in /data/data/.

however if used adb shell , run rm command, removed .apk file in /data/app/. internal storage area in in /data/data/ not deleted. in essence correct additional information app not deleted. on flip side, if reinstall app after running command, existing internal storage area gets overwritten fresh copy of being installed.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -