My application can be installed and run on android,
in two different places:
"/data/MyApplication"
and
"/system/MyApplication".
I need to know where at the moment is my application installed,
if it is in “/data/” or if it is in “/system”.
Can anyone help?
Thank you very much
You can use adb to find out:
$ adb shell ls /data
or
$ adb shell ls /system
Or do you want this check at runtime from within your application. In that case you could use
System.getProperty(“user.dir”)
in your Java code.