Google workaround enables paid apps to be installed on Smart watches

Android wear

Google has a workaround to enable paid apps (and other apps that use Google Play’s forward-lock mechanism) on Android Wear. The directory of those apps, which contains the wearable APK, cannot be extracted or read by the wearable installer. The workaround is to place the wearable APK in the raw directory instead.

As per the documentation, there are two ways to package your wearable app: use the “wearApp” Gradle rule to package your wearable app or manually package the wearable app. For paid apps, the workaround is to manually package your apps with the following two changes, and you cannot use the “wearApp” Gradle rule. To manually package the wearable APK into res/raw, do the following:

  1. Copy the signed wearable app into your handheld project’s res/raw directory and rename it to wearable_app.apk, it will be referred to as wearable_app.
  2. Create a res/xml/wearable_app_desc.xml file that contains the version and path information of the wearable app:
  3. Add a <meta-data> tag to your handheld app’s <application> tag to reference the wearable_app_desc.xml file.
  4. Build and sign the handheld app.

Source: Androiddeveloper

You must be logged in to post a comment Login

Leave a Reply