I am developing an Android Wear application. As per my understanding I must use Android Wear (mobile app) and install through it to watch. For this we need to build the apk each time and save it in mobile, and install it through the mobile app, so is there a better way to install the apk in the watch or is it the standard process?
2 Answers
You can install Wear apk in the exact same way as normal Android application.
First, attach Wear device to your computer and allow USB debugging. Alternatively, download and start Wear emulator through Android Studio.
Next, run your app through Android Studio - you can use run or debug modes.
That's it! :)
For distribution, the process is slightly different, depending on whether you want to support Wear 1.0 or only Wear 2.0, and whether companion app is needed on the phone. For Wear 2.0, you don't need mobile app anymore, it can be distributed directly, but of course depending on functionality you might want mobile app as well.

- 1,143
- 12
- 21
-
How does one attach wear device to computer ?? can you please let me know the process ??? Like by bluetooth ? – Pritish May 28 '18 at 07:55
-
The ones I have used before just used a standard USB cable which Wear device came with. Looks like you can use Wifi or Bluetooth as well, depending on the device, this page might help: https://developer.android.com/training/wearables/apps/debugging – sigute May 28 '18 at 07:57
-
Actually I have a watch so I don't really know if there is an option of attaching cable, doesn't seem there is any option. – Pritish May 28 '18 at 08:04
Provided you have root privilege on your Android watch:
1.Use adb shell to connect the watch and switch to su
2.Assume your watch app is called watchapp with com.watchapp so file
chmod +777 /data
chmod 777 /data/data
chmod 777 -R /data/data/com.watchapp
#There might also be other files with suffix
chmod 777 -R /data/app-lib/com.watchapp-1
3.
#adb push your new compiled so file to overwrite that file in your watch
adb push YOURNEWSOFILEPATHONEDISK /data/app-lib/com.test-1

- 325
- 2
- 14