简体   繁体   English

要删除Google Glass apk而没有root访问权?

[英]Remove Google Glass apk without having root access?

I was testing out the Glass quickstart and chose COMPASS to "re-upload" as a test (tutorial: https://developers.google.com/glass/develop/gdk/quick-start#for_android_beginners ) 我正在测试Glass快速入门,并选择COMPASS来“重新上传”作为测试(教程: https : //developers.google.com/glass/develop/gdk/quick-start#for_android_beginners

Now that it worked, I'm stuck with 2x "Compass - sample" and can't call either one by voice commands. 现在它可以正常工作了,我只能使用2个“指南针-样本”,并且不能通过语音命令调用任何一个。

玻璃

Compass isn't important to me but I am in the process of making an apps for the medical field and I would like to be able to remove it. 指南针对我来说并不重要,但是我正在为医疗领域开发应用程序,我希望能够将其删除。

Is it possible to remove an .apk from Glass without rooting the device? 是否可以在不生根设备的情况下从Glass删除.apk? I have Glass in debug mode and I'm capable of uploading apk's. 我的Glass处于调试模式,并且能够上传apk。

Thanks for the help! 谢谢您的帮助!

You can remove it via the standard way over ADB : 您可以通过ADB通过标准方式将其删除:

adb shell pm uninstall com.example.MyApp

(where com.example.MyApp is the package name defined in the manifest). (其中com.example.MyApp是清单中定义的包名称)。

If you have more than one device connected the command will fail - you can direct it to the only attached emulator via the -e flag, the only attached USB device via the -d flag, or a specific device via its serial number and the -s flag (serial numbers as listed in adb devices ). 如果连接了多个设备,该命令将失败-您可以通过-e标志将其定向到唯一连接的仿真器,通过-d标志将其定向到唯一连接的USB设备,或者通过其序列号和-s将特定设备定向到-s标志( adb devices列出的序列号)。

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

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