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

Status
Not open for further replies.
Search This thread

PDesire

Inactive Recognized Developer / Contributor
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:

zippy01

Senior Member
Jul 26, 2012
925
363
Nice to see someone is working on this :victory:

Sent from my Sony Xperia Z5 using XDA Labs
 

slowslow9

Member
Aug 16, 2016
32
3
Dear PDesire,,

My support can be only moral..... :crying:

And I hoping good news soon from you

Thx again for your great hard work :good:
 

drakonizer

Retired Forum Moderator
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 / Contributor
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 / Contributor
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.

Top Liked Posts

  • There are no posts matching your filters.
  • 128
    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
    49
    So current progress:

    Code:
    Blobs finished 
    Device Tree needs to be rebased and it will be re-released under GPLv3 license 
    Creating builds which are able to boot

    Future
    Code:
    If all has been finished: RELEASE WHOLE SOURCE CODE (That means kernel and whole Android Source


    Your PDesire
    48
    GUYS BEST NEWS ARE OUT FOR OUR PROJECT

    We can compile now FULL ANDROID WEAR 2.0 for SW3 because GOOGLE RELEASED THE SOURCE

    So that means:
    Fully PlayStore function
    If we can hack SafetyNet then Android Pay too
    Latest Security Patches
    AND ALL GOODIES FROM THE OFFICIAL ANDROID WEAR

    Here you can see what i mean:
    https://android.googlesource.com/platform/build/+/android-wear-7.1.1_r1


    Repo gets synced soon, now we can compile it, we have the blobs and the device tree ready


    Your PDesire
    35
    Guys wish me luck, doing later first build which is theoretically bootable
    (not spamming that on this thread please xd)

    Your PDesire
    31
    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