[英]how to change the adb target shell root directory with my pre-defined directory
i have my android device, whenever I am opening the adb client and giving the "adb shell" command, it is directly getting root directory.or if I want to push any file directly I am using adb push file.exe /data/ like this.我有我的 android 设备,每当我打开 adb 客户端并给出“adb shell”命令时,它都会直接获取根目录。或者如果我想直接推送任何文件,我正在使用 adb push file.exe /data/ 之类的这个。 but as per my requirement, nobody should able to access the root directory if they are trying to connect my device to PC.
但根据我的要求,如果他们试图将我的设备连接到 PC,则没有人应该能够访问根目录。 So I want to know the changes what i need to do so that before "adbd" launch, i will give a pre-defined directory, so that if anyone will push any file with that directory, only it will work or else it will fail.
所以我想知道我需要做的更改,以便在“adbd”启动之前,我将提供一个预定义的目录,这样如果有人将使用该目录推送任何文件,只有它会工作,否则它将失败.
I want to protect the adb shell, so that only my given directory someone can push any file except this all other access should prevent means no access.我想保护 adb shell,以便只有我给定的目录有人可以推送任何文件,除了这个所有其他访问应该阻止意味着没有访问。 I can say adb shell should not work etc. Only adb push should work.
我可以说 adb shell 不应该工作等等。只有 adb push 应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.