在不root手机的情况下读取data目录下的文件 2018-01-182018-01-18 使用 adb shell 指令可以連到 android device 裡,但 $ cd /data $ ls 會顯示錯誤: opendir failed, Permission denied 解法,下指令: run-as com.your.package 醬子就可以進去程式的資料夾裡,然後再透過 cp 指令 copy 要的檔案到 /sdcard/ 再另外下 adb pull /sdcard/filename 就可以把 device 裡的 file copy 出來。
[Android] SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable 2017-05-18