聲明:本技巧借鑒https://segmentfault.com/a/1190000008416511這個大神的文章
一、復制android Sdk安裝目錄的platform-tools路徑;
二、win+r輸入cmd 進入命令提示符;
三、切換到剛剛復制的platform-toos路徑下;
四、輸入adb shell;
五、輸入su,進入管理員權限;
六、輸入chmod -R 777 /data,表示-R遞歸data目錄設置為777權限。
七、現在可以進入data目錄了。
注:如果您能進入data目錄而不能進入/data/data目錄,可以輸入chmod -R 777 /data/data。
C:\Users\Administrator>cd F:\AndroidSDK\platform-tools C:\Users\Administrator>F: F:\AndroidSDK\platform-tools>adb shell generic_x86_64:/ $ su generic_x86_64:/ # chmod -R 777 /data chmod: chmod 'lib' to 120777: Read-only file system chmod: chmod 'lib' to 120777: No such file or directory chmod: chmod 'lib' to 120777: No such file or directory chmod: chmod 'system@framework@boot.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-core-libart.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-conscrypt.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-okhttp.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-core-junit.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-bouncycastle.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-ext.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-framework.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-telephony-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-voip-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-ims-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-apache-xml.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-org.apache.http.legacy.boot.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-core-libart.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-conscrypt.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-okhttp.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-core-junit.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-bouncycastle.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-ext.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-framework.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-telephony-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-voip-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-ims-common.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-apache-xml.oat' to 120777: Read-only file system chmod: chmod 'system@framework@boot-org.apache.http.legacy.boot.oat' to 120777: Read-only file system chmod: chmod 'DynamiteLoader.apk' to 120777: Read-only file system chmod: chmod 'DynamiteModulesA.apk' to 120777: Read-only file system chmod: chmod 'DynamiteModulesB.apk' to 120777: Read-only file system chmod: chmod 'DynamiteModulesC.apk' to 120777: Read-only file system 1|generic_x86_64:/ #
