简体   繁体   English

如何在没有 USB 电缆的情况下 ADB USB 调试模式

[英]How to ADB USB Debugging Mode without USB Cable

The USB cable interface of my phone is slightly broken, only supporting charging now.我手机的USB线接口有点破,现在只支持充电。 I cannot connect it to the PC to share files over MTP or USB Dedubugging with ADB.我无法将它连接到 PC 以通过 MTP 或 USB 使用 ADB 进行调试来共享文件。

Because USB Dedebugging is not working, I cannot uninstall some system apps with PC-side command "adb pm uninstsall --user 0 package_names".由于 USB 调试不起作用,我无法使用 PC 端命令“adb pm uninstsall --user 0 package_names”卸载某些系统应用程序。 Is there other ways to uninstall them without connecting to PC (not rooted device).有没有其他方法可以在不连接到 PC(不是根设备)的情况下卸载它们

I also tried to install JuiceSSH in the phone, and suppose to run "pm uninstall..", but the command failed for not authorized.我也尝试在手机中安装 JuiceSSH,并假设运行“pm uninstall..”,但该命令因未授权而失败。 I am not sure whether only ADB USB Debugging mode can allow users to execute that command correctly?我不确定是否只有 ADB USB 调试模式可以让用户正确执行该命令?

My main goal is just to uninstall those system apps on the un-rooted device.我的主要目标只是在无根设备上卸载那些系统应用程序。 I am pretty sure that ADB mode should work if my USB cable was not broken.如果我的 USB 电缆没有损坏,我很确定 ADB 模式应该可以工作。 Are there alternative ways to archive this goal (eg to enable ADB shell bypass USB cable, or some command in JuiceSSH to allow me to execute "pm uninstall --user 0..")?是否有其他方法来存档此目标(例如,启用 ADB shell 绕过 USB 电缆,或 JuiceSSH 中的某些命令允许我执行“pm uninstall --user 0..”)?

sadly, no, without root you can't execute this command.可悲的是,不,没有 root 你不能执行这个命令。 if you could then any app could uninstall any other, thats very insecure for user如果可以,那么任何应用程序都可以卸载任何其他应用程序,这对用户来说非常不安全

you have to connect to your PC at least once for enabling ADB wireless connection ( check out how )您必须至少连接一次 PC 才能启用 ADB 无线连接( 查看方法)

starting Android 11 there is and ADB Wireless debug mode built-in, it doesn't need any cable connection, even initial.开始 Android 11 内置ADB无线调试模式,不需要任何电缆连接,甚至初始。 but still limited to currently newest OS version...但仍仅限于当前最新的操作系统版本...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM