Search code examples
androidapkgoogle-glass

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)

Now that it worked, I'm stuck with 2x "Compass - sample" and can't call either one by voice commands.

glass

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? I have Glass in debug mode and I'm capable of uploading apk's.

Thanks for the help!


Solution

  • You can remove it via the standard way over ADB:

    adb shell pm uninstall com.example.MyApp
    

    (where com.example.MyApp is the package name defined in the manifest).

    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).