私は使用に苦しんだadb.exe。
adb.exebash と同じシェル プロンプトを使いたかったので、デフォルトの bash バイナリを変更することにしました (もちろん、バイナリはクロス コンパイルされており、すべてが完璧でした)。
以下の順序で bash バイナリを変更します
- adb remount
- adb push bash /system/bin/
- adb shell
- cd /system/bin
- chmod 777 bash
- mv sh sh.bak
- ln -s bash sh
最初の変更は成功しましたが、2 回目の変更で問題が発生しました。
新しい bash バイナリをプッシュしましたが、bash のパーミッション 777 の変更と disconnect を見逃していましたadb shell。
後
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb.exe shell
- exec '/system/bin/sh' failed: Permission denied (13) -
C:\Program Files (x86)\Android\android-sdk\platform-tools>
この許可の問題を解決するための賢明なアイデアはありますか?
私を助けてください...