Hızlı yanıt: kod örneği
stackoverflow.com run-adb-on-the-device-itself-i-e-as-if-it-were-the-pc-issuing-the-commands
The problem is that the client (which you use to communicate to the ADB server which communicates to and from a device on a development machine) is not packaged on an Android device. The daemon, however, (used to communicate between the client and the device) can and will be found on an Android system.There are a few options to help use the client on an Android device: client from sources and push to the device. That is, if you can get it to build on an Android device.The second option is probably the most time consuming, but can be the most "clean" choice. You will, however, have to emulate the authentication system, properly handle streams and so on, which can be cumbersome. The source will help you.In either case, the GitHub source directory should have everything you need for the long road ahead.
adb
adbd
adb
adb
- Try and build the client for an Android device from the
adb
sources on GitHub.adb
- Try and make a makeshift "client". Since the
adb
client andadb
daemon communicate via USB or TCP, you could try emulating the communication protocols to open read/write streams on the device. More on the client-daemon communication protocols here. This library that I am working on might help you: eviltak/adb-nmapadbd
adb
adb
adb