How do you start an Android Wear watch face using ADB?

Anonymous

For testing purposes, I would like to stop and restart my Android Wear watch face service via ADB. Stopping it appears to work normally:

adb shell am force-stop com.package.name

but starting the service back up again has me stumped. Watch faces are not activities, so it cannot be started via am start. I attempted to use the monkey command on the package, but that didn't work. I tried starting the service manually:

adb shell am startservice com.package.name/.watch_face_service

but that doesn't seem to work; either the service isn't started, or the service IS started but is not the current wallpaper.

It MUST be possible, since Eclipse manages to start the watch face when I run or debug it. But how?

Anonymous

After many days of research, I have come to the conclusion that this is impossible.

All WallpaperServices are required to require the BIND_WALLPAPER permission:

String: BIND_WALLPAPER: Must be required by a WallpaperService, to ensure that only the system can bind to it.

...which means that only the system service has the ability to start a wallpaper.

The Android operating system probably has some hardcoded voodoo magic that will automatically start any watchface installed via Eclipse or Android Studio -- that's my best guess considering neither IDE runs any ADB commands to start the wallpaper.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Custom watch face for Android Wear

From Dev

Alignment on Android Wear Watch Face

From Dev

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

From Dev

Android Wear Watch Face: onDraw() alternative in WatchFaceService?

From Dev

Android Wear Watch Face Vibrate With Screen Off

From Dev

Intent for opening the watch face picker in Android Wear

From Dev

Android Wear Watch Face Development Colors

From Dev

Android Wear Watch Face Development Colors

From Dev

Android wear watch face rejected - "basic functionality"?

From Dev

Andorid Wear - Start Mobile Service on Watch Face Set

From Dev

Android Wear How to dynamically switch Android Watch Face by code like 'Beautiful Watches' app does?

From Dev

Android Wear How to dynamically switch Android Watch Face by code like 'Beautiful Watches' app does?

From Java

How to start an application using android ADB tools?

From Dev

Android Wear watch face companion configuration activity not linked

From Dev

Watch Face does not show up on Android Wear app

From Dev

Changing the location of the battery icon on a custom Android wear watch face

From Dev

Android Wear Watch Face get battery percentage of Phone

From Dev

Changing the location of the battery icon on a custom Android wear watch face

From Dev

Adding a simple toggle configuration for Watch Face (Android Wear)

From Dev

How do you enable Android Wear app with in-app purchase?

From Dev

Android Wear: how to store image data into watch

From Dev

Android Wear: how to store image data into watch

From Dev

How to run Android Sample Watch Face?

From Dev

How to run Android Sample Watch Face?

From Dev

How do you add a watch module to an existing Android Studio project?

From Dev

Android Wear Watch Face - INVALID_ACCOUNT when trying to connect to Google Services API

From Dev

Android Wear Watch Face - INVALID_ACCOUNT when trying to connect to Google Services API

From Dev

How to detect if android device is paired with android wear watch

From Dev

Where is getActivity() on Android Wear Face?

Related Related

  1. 1

    Custom watch face for Android Wear

  2. 2

    Alignment on Android Wear Watch Face

  3. 3

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

  4. 4

    Android Wear Watch Face: onDraw() alternative in WatchFaceService?

  5. 5

    Android Wear Watch Face Vibrate With Screen Off

  6. 6

    Intent for opening the watch face picker in Android Wear

  7. 7

    Android Wear Watch Face Development Colors

  8. 8

    Android Wear Watch Face Development Colors

  9. 9

    Android wear watch face rejected - "basic functionality"?

  10. 10

    Andorid Wear - Start Mobile Service on Watch Face Set

  11. 11

    Android Wear How to dynamically switch Android Watch Face by code like 'Beautiful Watches' app does?

  12. 12

    Android Wear How to dynamically switch Android Watch Face by code like 'Beautiful Watches' app does?

  13. 13

    How to start an application using android ADB tools?

  14. 14

    Android Wear watch face companion configuration activity not linked

  15. 15

    Watch Face does not show up on Android Wear app

  16. 16

    Changing the location of the battery icon on a custom Android wear watch face

  17. 17

    Android Wear Watch Face get battery percentage of Phone

  18. 18

    Changing the location of the battery icon on a custom Android wear watch face

  19. 19

    Adding a simple toggle configuration for Watch Face (Android Wear)

  20. 20

    How do you enable Android Wear app with in-app purchase?

  21. 21

    Android Wear: how to store image data into watch

  22. 22

    Android Wear: how to store image data into watch

  23. 23

    How to run Android Sample Watch Face?

  24. 24

    How to run Android Sample Watch Face?

  25. 25

    How do you add a watch module to an existing Android Studio project?

  26. 26

    Android Wear Watch Face - INVALID_ACCOUNT when trying to connect to Google Services API

  27. 27

    Android Wear Watch Face - INVALID_ACCOUNT when trying to connect to Google Services API

  28. 28

    How to detect if android device is paired with android wear watch

  29. 29

    Where is getActivity() on Android Wear Face?

HotTag

Archive