Android Wear 2.0 for SmartWatch 3 port progress Thread & Creation of OSS project

Status
Not open for further replies.

PDesire

Inactive Recognized Developer / Inactive Recognize
Nov 1, 2014
1,555
5,736
153
21
Frankfurt am Main
Hello,


As some people heard, i really try to get Android Wear 2.0 for our beloved SmartWatch 3.

And it's possible, sources, device trees, all exist to build a working own compiled Android Wear 2.0.


So this thread tells about the current process of the port


PROGRESS
Code:
Repo synced 
First build finished (not buildable yet due no blobs included 
GAPPS Porting in progress 
Fixed to 99% the device tree
Updating Blobs to M1D64T in progress 
Using own Device tree

SOURCES
Device Tree for tetra:
https://github.com/Sony-SmartWatch-3-OSS/android_device_tree_tetra_eng_prerelease

Device Kernel for tetra (unmodified):
https://android.googlesource.com/kernel/bcm/+/android-wear-6.0.1_r0.99
(we can use MM kernel on Nougat too, maybe some patches needed but that's okay)

Prebuilts/Blobs for tetra:
https://github.com/Sony-SmartWatch-3-OSS/vendor_prebuilts_tetra

For Discussions go to this thread please: https://forum.xda-developers.com/smartwatch-3/general/companion-thread-android-wear-2-0-t3565693


If you want to help me on this project, write to me via telegram: https://t.me/PDesire
 
Last edited:

drakonizer

Retired Forum Moderator
May 10, 2013
1,126
2,340
158
Death Star
I checked out your device tree. It looks like it's based off an Open Devices tree. I don't think we need the following lines
Code:
include device/sony/common-headers/KernelHeaders.mk
-include device/sony/common-kernel/KernelConfig.mk
in BoardConfig.mk.
Also, what about the HALs? Asteroid OS used the system.img from a stock build, but we will need to build from source. I do not think it is open source, as it is not available on google git servers.

EDIT: I do not think building from source will work. This is what I found the Google Android building group:
Certain components of Android (and therefore Wear) come from third parties and have licenses which require the source code to be made available (e.g. the Linux kernel). The components made available via the AOSP repositories for releases like Wear are, afaik, the components which have that type of license.

Wear is a release which has taken the same path as Honeycomb. I can understand that for open source fans and people looking to tinker with a working system it’s somewhat disappointing to see, but those are the choices Google has made.
Looks like the only way to go forward is to port it from a pre-compiled version for another watch, like they did for the Galaxy Gear devices.

EDIT 2: Refer:
https://groups.google.com/forum/#!s...nce/android-building/R0r9BBn4M3g/-KexIWTCDwAJ
https://groups.google.com/forum/#!s...nce/android-building/vx0Hcy88Ofs/USxAUaKVAwAJ

These sources are incomplete and only include GPL licensed projects. It is not the complete source, just like google releases preview sources for AOSP preview builds (M, N etc). I suggest you not waste your quota in downloading the source.
 
Last edited:
  • Like
Reactions: Mr_Arash

PDesire

Inactive Recognized Developer / Inactive Recognize
Nov 1, 2014
1,555
5,736
153
21
Frankfurt am Main
I checked out your device tree. It looks like it's based off an Open Devices tree. I don't think we need the following lines
Code:
include device/sony/common-headers/KernelHeaders.mk
-include device/sony/common-kernel/KernelConfig.mk
in BoardConfig.mk.
Also, what about the HALs? Asteroid OS used the system.img from a stock build, but we will need to build from source. I do not think it is open source, as it is not available on google git servers.
Yeah I've seen these, and already fixed. Patch comes soon.
Things for WLAN and BT for example are on google repo too and if a library or something is missing we can use it from M1D64T

EDIT: I do not think building from source will work. This is what I found the Google Android building group:

Looks like the only way to go forward is to port it from a pre-compiled version for another watch, like they did for the Galaxy Gear devices.

EDIT 2: Refer:
https://groups.google.com/forum/#!s...nce/android-building/R0r9BBn4M3g/-KexIWTCDwAJ
https://groups.google.com/forum/#!s...nce/android-building/vx0Hcy88Ofs/USxAUaKVAwAJ

These sources are incomplete and only include GPL licensed projects. It is not the complete source, just like google releases preview sources for AOSP preview builds (M, N etc). I suggest you not waste your quota in downloading the source.
Lel then I can't understand why the build is working xD at least I am building in time and already 14% finished

I know some libs we have to grab from the Marshmallow FW but that shouldn't be a big deal ;)


At least we also need some things from Preview 2 so we can get our AW 2.0 Preview 2 working


So I try my best to grab much from source and if required also from FW, but all in all its possible for our SmartWatch 3 to get Android Wear 2.0


Your PDesire
 

PDesire

Inactive Recognized Developer / Inactive Recognize
Nov 1, 2014
1,555
5,736
153
21
Frankfurt am Main
So current status is:
Code:
Repo synced
First Test build stopped to fix things on device tree
Expected in future:
Code:
Blobs dump 
Fully fixed Device tree
Creating vendor for tetra 
Adding overlays for framework to device tree
Some mix with armv7-a-neon generic
Gapps Dump
Expected in far future:
Code:
Creating an OSS project for tetra (like sonyxperiadev but for tetra)

So guys I will do more tomorrow as I am awake already from Friday 7AM - 3AM Saturday (right now GMT +1) and working on it and I need my sleep xD

So Goodnight guys and I can confirm our dream of Android Wear 2.0 for SmartWatch 3 comes nearer ;)


Your PDesire
 
Status
Not open for further replies.