adb Permission denied


adb 調試時出現權限不足

Administrator@aaron MINGW64 ~
$ adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
shell@firefly:/ $ cd sys/dvfs
cd sys/dvfs
shell@firefly:/sys/dvfs $ ls
ls
cpu_temp_enable
cpu_temp_target
dvfs_tree
shell@firefly:/sys/dvfs $ cat dvfs_tree
cat dvfs_tree
/system/bin/sh: cat: dvfs_tree: Permission denied

權限不足是因為沒有獲取 root 權限,需要先使用 adb root 獲取 root 權限,再進 adb shell 。

Administrator@aaron MINGW64 ~
$ adb root
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
restarting adbd as root

Administrator@aaron MINGW64 ~
$ adb shell
root@firefly:/ # cd sys/dvfs
cd sys/dvfs
root@firefly:/sys/dvfs # ls
ls
cpu_temp_enable
cpu_temp_target
dvfs_tree
root@firefly:/sys/dvfs # cat dvfs_tree
cat dvfs_tree

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM