简体   繁体   English

Android:如何从模拟器上卸载磨损表盘?

[英]Android : How does one uninstall a wear watch face from the emulator?

I'm looking to uninstall a custom watch face from a running emulator without resorting to wiping the emulator and rebooting. 我希望从正在运行的仿真器中卸载自定义表盘,而不需要擦除仿真器并重新启动。 Which ADB commands might I send to the emulator to perform this task? 我可以向仿真器发送哪些ADB命令来执行此任务?

Just like any Android device, you can use adb . 就像任何Android设备一样,您可以使用adb From a command line: 从命令行:

adb uninstall com.your.package.name

If multiple devices are connected, get their names with adb devices and then use: 如果连接了多个设备,请使用adb devices获取其名称,然后使用:

adb -s device-name uninstall com.your.package.name

For the record, you can also delete a face from a watch as follows 为了进行记录,您还可以从手表中删除面部,如下所示

  1. Hook your host phone via usd to a computer with Android SDK 通过usd将主机电话挂接到具有Android SDK的计算机上
  2. execute adb in shell mode adb shell 在外壳模式下执行ADB adb shell
  3. pm uninstall com.your.package_name

This will remove the package from the phone and the watch 这将从手机手表中取出包裹
Ideal for situations where you messed your APK signature leaving package name unchanged. 非常适用于您弄乱了APK签名而使包名称保持不变的情况。

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

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