简体   繁体   English

如何用我的预定义目录更改 adb 目标 shell 根目录

[英]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.

相关问题 如何找出adb shell中目录的大小? - How to find out the size of a directory in adb shell? 如何获得预定义的振动模式? - How to get pre-defined vibration patterns? 如何检查Android Studio中附加到ImageView的图像? 是否有任何预定义的功能? - How can I check which image is attached to my ImageView in Android Studio? Is there any pre-defined function for it? adb shell命令:mkdir(用于创建目录) - adb shell command: mkdir (for creating a directory) adb shell命令-cd:没有这样的文件或目录 - adb shell command - cd: No such file or directory android adb shell 中的“错误=2,没有这样的文件或目录”错误 - 'Error=2, No such file or directory' error in android adb shell 如何使用adb shell手动设置文件或目录时间戳? 在adb shell中是否存在类似unix的触摸? - How to manually set file or directory timestamp using adb shell? Does anything like unix's touch exist in adb shell? 如何使用预定义的数组在android中启动ListView? - How to initiate a ListView in android using a pre-defined array? 如何在Android的预定义sqlite数据库中存储图像? - How to store images in pre-defined sqlite db in android? Android应用程序外壳“无此文件或目录”,在文件资源管理器和adb中很好用 - Android app shell “no such file or directory”, fine in a file explorer and adb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM