[DEV][PACE/STRATOS] Android Wear Framework

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,428
7,694
23
Salford, Greater Manchester, UK
quinny898.co.uk
...and not WearOS because this is from an Android 5.1.1 build from 2015

I talked about the Wear framework in this thread, and how it can be partially installed onto the Pace and Stratos

THIS DOES NOT MEAN A FULLY WORKING ANDROID WEAR BUILD!

It doesn't connect to the Wear app, even after installing all the APKs required and following the correct setup procedure (some bluetooth error, even after patching it with the supposed workaround for normal apps, it doesn't work - maybe the Bluetooth stack on these watches doesn't work for Wear)

What it does allow is for standalone wear apps with really simple functions to work. Good examples of this are Wear Bottle Spinner (eliseo.wearbottlespinner.wear) and Interval timer for Android Wear (wearablesoftware.wearintervaltimer), which on this list are "not working" due to lack of wear framework, but work after these files have been copied.

Please do not attempt this if you want a fully stable device, or don't feel comfortable debugging. It may not work for you, and you may end up having to post crash logs or have a not-working device. This is a development thread, it's not fully ready for use yet

Installation

- Download this zip
- Extract it and run the following commands from the folder
Code:
adb root
adb remount
adb push com.google.android.wearable.jar /system/framework
adb push clockwork-system.jar /system/framework
adb push com.google.android.wearable.xml /system/etc/permissions
adb push clockwork-system.xml /system/etc/permissions
adb push ClockworkAmbient.apk /system/priv-app/ClockworkAmbient/ClockworkAmbient.apk
adb reboot

I think this is all that's needed for it to work. My test device has more Wear framework APKs on it than are needed, so I'm not totally sure. If it crashes after doing this, please post a logcat and I'll see if anything else is needed - that's why this is a DEV thread!

These files were taken from the last Android 5.1.1 Wear build for the Gear 2 (itself a port): https://forum.xda-developers.com/gear-2/development/please-help-kernel-compiling-android-t2992953
 
Last edited:

Ranomez

Senior Member
Jun 1, 2010
1,224
300
HTC One X+
HTC Desire HD
From having followed the AW porting thread for the Samsung Gear S back in the days I can say the following things:
The Bluetooth stack is indeed different between normal Android and Android Wear but IIRC it should be at least theoretically possible to make it work unless Xiaomi/Huami modified it.
To connect to the AW app it will also require to have all the AW GAPPS properly setup AND the fingerprint of a watch it will recognize with said AW version, even an AW port just won't connect with the app unless there is a proper fingerprint setup in build.prop

On another note great job on doing this and I will be testing it out later today when I will have some free time and an easy way of getting said AW apps.
 

zodrac

New member
Apr 19, 2007
1
0
Hello Quinny, I think you're doing a great job, and it's appreciated. What is the scope of this? I am clear that we will not see Android Wear on our devices, but can Google services and applications be installed? Or would it only be used to install certain applications?

Thanks for your contributions.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,428
7,694
23
Salford, Greater Manchester, UK
quinny898.co.uk
Hello Quinny, I think you're doing a great job, and it's appreciated. What is the scope of this? I am clear that we will not see Android Wear on our devices, but can Google services and applications be installed? Or would it only be used to install certain applications?

Thanks for your contributions.

It's to make apps that rely on the Wear framework classes work, but only those that are standalone
 

DanMcz

Member
Nov 5, 2017
36
13
From having followed the AW porting thread for the Samsung Gear S back in the days I can say the following things:
The Bluetooth stack is indeed different between normal Android and Android Wear but IIRC it should be at least theoretically possible to make it work unless Xiaomi/Huami modified it.
To connect to the AW app it will also require to have all the AW GAPPS properly setup AND the fingerprint of a watch it will recognize with said AW version, even an AW port just won't connect with the app unless there is a proper fingerprint setup in build.prop

On another note great job on doing this and I will be testing it out later today when I will have some free time and an easy way of getting said AW apps.

@Quinny899 what do you think, would it be possible?
 

Qufy

Member
Dec 2, 2018
12
0
Hello there! I think you are doing a fanstastic job! But I have a problem, I can't do adb remount... It says permission denied. Any help is appreciated
 

GreatApo

Senior Member
Feb 15, 2011
1,086
658
adb root runs successfully. As for the rooted boot image... Does it mean I need a custom recovery image? (Like TWRP?)
You have to boot (not flash) an boot image with root support and run the commands directly then.

Do a search for root Amazfit, there are some guides.
 

BoJIWeB

Member
Apr 13, 2019
14
3
...and not WearOS because this is from an Android 5.1.1 build from 2015

I talked about the Wear framework in this thread, and how it can be partially installed onto the Pace and Stratos

THIS DOES NOT MEAN A FULLY WORKING ANDROID WEAR BUILD!

It doesn't connect to the Wear app, even after installing all the APKs required and following the correct setup procedure (some bluetooth error, even after patching it with the supposed workaround for normal apps, it doesn't work - maybe the Bluetooth stack on these watches doesn't work for Wear)

What it does allow is for standalone wear apps with really simple functions to work. Good examples of this are Wear Bottle Spinner (eliseo.wearbottlespinner.wear) and Interval timer for Android Wear (wearablesoftware.wearintervaltimer), which on this list are "not working" due to lack of wear framework, but work after these files have been copied.

Please do not attempt this if you want a fully stable device, or don't feel comfortable debugging. It may not work for you, and you may end up having to post crash logs or have a not-working device. This is a development thread, it's not fully ready for use yet

Installation

- Download this zip
- Extract it and run the following commands from the folder
Code:
adb root
adb remount
adb push com.google.android.wearable.jar /system/framework
adb push clockwork-system.jar /system/framework
adb push com.google.android.wearable.xml /system/etc/permissions
adb push clockwork-system.xml /system/etc/permissions
adb push ClockworkAmbient.apk /system/priv-app/ClockworkAmbient/ClockworkAmbient.apk
adb reboot

I think this is all that's needed for it to work. My test device has more Wear framework APKs on it than are needed, so I'm not totally sure. If it crashes after doing this, please post a logcat and I'll see if anything else is needed - that's why this is a DEV thread!

These files were taken from the last Android 5.1.1 Wear build for the Gear 2 (itself a port): https://forum.xda-developers.com/gear-2/development/please-help-kernel-compiling-android-t2992953


Can it delete my ROM(PACEfied)?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    ...and not WearOS because this is from an Android 5.1.1 build from 2015

    I talked about the Wear framework in this thread, and how it can be partially installed onto the Pace and Stratos

    THIS DOES NOT MEAN A FULLY WORKING ANDROID WEAR BUILD!

    It doesn't connect to the Wear app, even after installing all the APKs required and following the correct setup procedure (some bluetooth error, even after patching it with the supposed workaround for normal apps, it doesn't work - maybe the Bluetooth stack on these watches doesn't work for Wear)

    What it does allow is for standalone wear apps with really simple functions to work. Good examples of this are Wear Bottle Spinner (eliseo.wearbottlespinner.wear) and Interval timer for Android Wear (wearablesoftware.wearintervaltimer), which on this list are "not working" due to lack of wear framework, but work after these files have been copied.

    Please do not attempt this if you want a fully stable device, or don't feel comfortable debugging. It may not work for you, and you may end up having to post crash logs or have a not-working device. This is a development thread, it's not fully ready for use yet

    Installation

    - Download this zip
    - Extract it and run the following commands from the folder
    Code:
    adb root
    adb remount
    adb push com.google.android.wearable.jar /system/framework
    adb push clockwork-system.jar /system/framework
    adb push com.google.android.wearable.xml /system/etc/permissions
    adb push clockwork-system.xml /system/etc/permissions
    adb push ClockworkAmbient.apk /system/priv-app/ClockworkAmbient/ClockworkAmbient.apk
    adb reboot

    I think this is all that's needed for it to work. My test device has more Wear framework APKs on it than are needed, so I'm not totally sure. If it crashes after doing this, please post a logcat and I'll see if anything else is needed - that's why this is a DEV thread!

    These files were taken from the last Android 5.1.1 Wear build for the Gear 2 (itself a port): https://forum.xda-developers.com/gear-2/development/please-help-kernel-compiling-android-t2992953
    2
    From having followed the AW porting thread for the Samsung Gear S back in the days I can say the following things:
    The Bluetooth stack is indeed different between normal Android and Android Wear but IIRC it should be at least theoretically possible to make it work unless Xiaomi/Huami modified it.
    To connect to the AW app it will also require to have all the AW GAPPS properly setup AND the fingerprint of a watch it will recognize with said AW version, even an AW port just won't connect with the app unless there is a proper fingerprint setup in build.prop

    On another note great job on doing this and I will be testing it out later today when I will have some free time and an easy way of getting said AW apps.
    1
    can I removed this after install ?
    You will have to delete the files pushed in the system.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone