i'm trying to get an app started so I can backup my apps to sdcard. I ran:
Process p = Runtime.getRuntime().exec("su");
Process c = Runtime.getRuntime().exec(
"cp /data/app/com.ebay.mobile-1.apk"
+ Environment.getExternalStorageDirectory()
+ "/ebay.apk");
Log.d("copy", "done");
When it runs I can grant super user then it says it's done but there is no file is not copied. I'm just using the eBay app as an example and test.
Thanks for any help.
Fix: thanks for the help below but i found a full fix and kinda different way of doing things here "http://stackoverflow.com/questions/10735273/copy-folders-in-data-data-to-sdcard-viceversa?rq=1"