waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Glassware uninstalled after google glass reboot #565

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install a development-build of the glassware
2. Start the glassware by the voice trigger ("Ok glass, play a game with 
<game_name>") or manually (Play a game -> <game_name>)
3. Wait 10 seconds, exit the glassware by swiping down
4. Reboot google glass
5. Wait at least 2 minutes after the reboot is completed.

What is the expected output? What do you see instead?

The glassware should still be available installed on the google glass, but 
instead it has been removed, not just from the menus, but also completely from 
the device (running "adb shell pm list packages" shows it's true).

When we perform the reboot while google glass is connected to our computer, we 
can see the following logcat traces:

07-09 14:28:51.778: I/GlasswareSyncAdapter(768): Uninstalling Glassware ID 
#A113291600F859AC (com.funkywhalegames.beeinvasion).
07-09 14:28:51.778: I/PackageHelper(768): Uninstalling 
com.funkywhalegames.beeinvasion.
07-09 14:28:51.809: I/ActivityManager(524): Force stopping 
com.funkywhalegames.beeinvasion appid=10087 user=-1: uninstall pkg
07-09 14:28:51.863: W/PackageManager(524): Couldn't delete native library 
directory /data/app-lib/com.funkywhalegames.beeinvasion
07-09 14:28:52.184: I/ActivityManager(524): Force stopping 
com.funkywhalegames.beeinvasion appid=10087 user=0: pkg removed
07-09 14:28:52.309: D/PackageBroadcastService(852): Received broadcast 
action=android.intent.action.PACKAGE_REMOVED and 
uri=com.funkywhalegames.beeinvasion
07-09 14:28:52.324: D/BackupManagerService(524): Received broadcast Intent { 
act=android.intent.action.PACKAGE_REMOVED 
dat=package:com.funkywhalegames.beeinvasion flg=0x4000010 (has extras) }
07-09 14:28:54.035: D/VoicemailCleanupService(1010): Cleaning up data for 
package: com.funkywhalegames.beeinvasion

What version of the product are you using? On what operating system?

We're using XE18.3 on google glass Explore Edition 2

Please provide any additional information below.

Original issue reported on code.google.com by moya...@gmail.com on 9 Jul 2014 at 1:47

GoogleCodeExporter commented 9 years ago
Hello,

It seems that you have a private entry in MyGlass while testing and this entry 
is turned off for the account you're using. What is happening is that the 
MyGlass sync notices that this Glassware should be turned off on your device 
and is uninstalling it.

Could you try turning it on and then install your development version on top of 
it with `adb install -r <path/to/new.apk>`? Make sure to use the same signing 
certificate.

Best,
Alain

Original comment by ala...@google.com on 9 Jul 2014 at 3:02

GoogleCodeExporter commented 9 years ago
I am running into the same issue and I can confirm that the -r flag does not 
resolve anything. How can we test apps if they keep getting uninstalled?

Original comment by bram.van...@endare.com on 19 Aug 2014 at 4:19

GoogleCodeExporter commented 9 years ago
This seems to happen only to APK's that you have submitted to Google for 
approval. Just change the package name temporarily and you should be good to go.

Original comment by bram.van...@endare.com on 20 Aug 2014 at 7:17

GoogleCodeExporter commented 9 years ago
I had the same issue with my app submitted to Google for approval. When I 
changed the package name, the issue disappeared. Probably something to do with 
the way glass verifies a package. 

Original comment by banqf...@gmail.com on 24 Aug 2014 at 6:23