Android Wear for Gear 2 / Gear 2 Neo



This thread is about development of Android Wear for Gear 2 & Gear 2 Neo

IF YOU HAVE A QUESTION, ASK IT HERE: This thread is aboutof Android Wear for Gear 2 & Gear 2 NeoIF YOU HAVE A QUESTION, ASK IT HERE: http://forum.xda-developers.com/gear...ear-2-t3018159

DISCLAIMER

Code: Your warranty is now void. Not only void, it's not comming back. The moment you flash anything on this thread you can say goodbye to it. I almost hard bricked my watch once. It can happen to you too. I do my best to post things that aren't dangerous for the device, but anything as simple as a 9 instead of a 4 in the GPU driver might make it overheat and kill it. Everything here is at your own risk. You have been warned.

Kernel:

Recovery:

Android

Boot

USB: ADB, MTP [july 19th]

Display: Software rendering, OpenGL and mixed compositions

Screen dimming

Screen always on

Battery reporting and charging

Oportunistic Sleep (kernel)

Bluetooth: basic functionality (working for notifications, music control etc), Tethered internet access (still some bugs to work out though)

Vibration

Heart Rate Monitor

Accelerometer sensor

Step counter

Gyroscope (this includes tilt to wake)

Power management: CPU Hotplugging, frequency scaling, Amoled LPM, runtime suspend and opportunistic sleep.

Depending on use, can give from 12 to 48 hours of battery life. Normal use gives me about 18-20 hours with screen always on

Depending on use, can give from 12 to 48 hours of battery life. Normal use gives me about 18-20 hours with screen always on Audio: Input and Output

Infrared

Basic TWRP recovery functions

Camera

There's no way of playing music to the speaker directly from the watch

There's no gallery app

Palm-on-screen to suspend

Anything that's not specifically put as "working"

Android Wear 6

Android Wear 5.1.1

Previous builds:

Installing

KNOWN ISSUES

BE ADVISED: GOING BACK TO TIZEN MIGHT PROVE DIFFICULT TO ANYBODY WITHOUT KNOWLEDGE OF THE WATCH, SDB, ADB, AND ANYONE WHO DOESN'T USE ODIN. DON'T PM ME FOR IT. IT'S WRITTEN BELOW. ASK IN THE Q&A SECTION PLEASE. THIS IS A DEVELOPMENT THREAD, AND THESE IMAGES ARE FOR DEVELOPMENT ONLY.

Extreme Recovery mode - Only use if above method doesn't work

YOU NEED TO KNOW HOW TO USE ADB/SDB FOR THIS.

*NOTE* This is highly destructive. You do this wrong, your watch might not boot again. I'm not responsible for whatever damage you do to your watch.

Code: 1. Flash TizenModFull It will start rebooting itself 2. Flash recovery_fota_cache 3. Enter recovery, and run the following commands through ADB: adb shell -> umount /data mount /dev/block/mmcblk0p15 /system mount /dev/block/mmcblk0p13 /system/opt mount /dev/block/mmcblk0p14 /system/opt/usr rm -rf /system/opt cp /system/usr/system/RestoreDir/opt.zip /system cd /system unzip opt.zip sync cd / umount /system/opt/usr umount /system/opt umount /system Exit the shell and select "Reboot -> PowerOff" from TWRP 4. Now press and hold the power button until "Rebooting..." appears, then enter Download mode 5. Flash kernel_tizen.tar 6. Reboot again to download mode 7. Flash tizenmod2.tar

Hello everyone!: Still work in progress. Most functions are working correctly. Expect some bugs.GITHUB REPO: Github Android B2 Repository : Minimal image. Not actively worked on, but enough to wipe and access ADB: MediaFire : Most of it is working, and for me at least, IS usable. Some things are still missing and will need to be worked out though.Remember: These are BETA, things may or may not work. No support, no nothing, just sharing them with you so you can play with them. I already know what works and what doesn't, and I'm trying to fix everythingMarch 4, 2016: https://mega.nz/#!QQwXQKCD!U-y82wTuB...GWtEXMZ6TPikQU Fixes over previous builds: Text To Speech, IR Support & New Gear Kernel SettingsPrevious builds:Beta #3 (Zenwatch based): https://mega.nz/#!FFYjQCxR!Et4bc8QSX...cKsj5tnBNLPZog Beta #2 (Gear Live based): https://mega.nz/#!IExADLQC!HThMj1Sc_...aXiaW-5a5_CHuM Beta #1 (Gear Live based): https://mega.nz/#!tQJFxSLS!Xu4_xJkW7...If0-UZfRTJ0LyM September 24th, 2015: Android Wear Lollipop - 5.1.1 (build LCA43)Full flash Package:Mediafire: http://www.mediafire.com/download/ac...09_24_2015.zip Includes: Kernel Settings application, IR App:** PREROOTED, no need to install anything elseTranslate app DOES NOT WORK!August 13th, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J)** Bugfix release,Full flash Package:Mediafire: http://www.mediafire.com/download/ar...08_13_2015.tar Includes: Kernel Settings application:* Control vibration intensity* Control brightness in ambient mode* Enable / Disable Partial Redraws (enable for best battery life)* Enable / Disable Idle Mode (reduces color depth in ambient mode to enhance battery life)July 22nd, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J)** Bugfix releaseFull flash Package:Mediafire: http://www.mediafire.com/download/pr...07_22_2015.tar md5: def249f18214c7ca00a5bc65391d0c0f wear_511__07_22_2015.tarAfter flashing the big file, flash one of these, depending on what you need:ADB only boot image: http://www.mediafire.com/download/cu...e_ADB_ONLY.tar ADB+MTP boot image: http://www.mediafire.com/download/bs...TP_AND_ADB.tar July 17th, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J)** Screen always on in Low Power Mode, MTP Support, @ bitstra IR App UpdatedFull flash Package:Mega: https://mega.co.nz/#!0ZxgQYZA!7m986v...wFi56otuxQFZbM Mediafire: http://www.mediafire.com/download/k7...07_19_2015.zip MD5: deffb5160968d81a4e560416315791eb Wear__5_1_1__07_19_2015.zipJuly 13th, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J)** Infrared support (thanks @ bitstra for your IR app!)Full flash Package: http://www.mediafire.com/download/6m..._2015_Try2.zip July 12th, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J) ** Screen always on + Audio IN/OUT modificationsFull flash Package: http://www.mediafire.com/download/my...07_12_2015.zip July 5th, 2015: Android Wear Lollipop - 5.1.1 (build LDZ22J) ** Audio support!Full flash Package: http://www.mediafire.com/download/et...07_05_2015.zip July 1st, 2015: Android Wear Lolipop - 5.1.1 (buildLDZ22J)Full Flash Package: http://www.mediafire.com/download/6r...07_01_2015.zip June 27th, 2015: Android Wear Lolipop - 5.1.1 (build LDZ22J)Full Flash Package: http://www.mediafire.com/download/bm...292015.tar.zip June 27th, 2015: Android Wear Kitkat - 4.4.2W (build KNX01Q)Full Flash Package: http://www.mediafire.com/download/2a...06_27_2015.zip Everything I have/done with the Gear 2 is available on this folder: https://www.mediafire.com/folder/092gaz7gudh0f/Gear2 , in case you want to dig a bit deeperOdin: http://www.mediafire.com/download/v6....09%281%29.zip User @ alvaromartinezb has made a really good video explaining what you have to do, check it out! https://www.youtube.com/watch?v=bBqg...ature=youtu.be alvaromartinezb Walkthrough video on audio: https://www.youtube.com/watch?v=klYqseFd90g --> Check if you're running latest build, check your drivers. Windows 7 may have some issues with MTP--> You might need to manually install the driver on the device manager in Windows (you can use Google SDK's bundled driver)--> Be careful with battery hog watchfaces, some will prevent the watch from entering suspend, or keep the heart rate sensor active at all times.--> I haven't found an app that works. We're the only people with a speaker on an Android Wear device, and there aren't many 3rd party apps for that. Driver level is OK--> Work in progress, everything takes time, and my watch doesn't even have a camera!--> Then go back to Tizen. That functionality doesn't exist in Android Wear, and hundreds of hours of work for a function that probably wouldn't end up working anyway. And I hated it when I had it on Tizen, it only gave my phone issues when connecting to my car's bluetooth handsfree, and forcing me to choose back my phone on each and every call. I'm not developing that. If you want to try to code it yourself and you succeed, I can link to your work if you want, but I'm not wasting my time on that.BE ADVISED (again): There's no PIT file for this watch. If your favourite flashing app for samsung phones requests one, use Odin. I know, I don't like it either. But we live in a world full of virtual machines with the ability to share USB ports. Now it's your chance to use them if you don't feel like installing Windows in your machine.*. Walkthrough video by @ alvaromartinezb 1. Flash this file: http://www.mediafire.com/download/3c...ll-Restore.tar 2. When it fails to boot and the screen goes blank, reboot to the bootloader menu and select recovery.It may happen that you try to recover your watch but for whatever reason it still enters a bootloop when attempting to boot Tizen. This might happen if you played with partitions, if some permissions were set where they shouldn't be, etc. If you enter recovery mode in Tizen and you don't see a confirmation that the watch is being restored to default, you can try this:First of all download everything from this folder:And then follow these steps:Some info about the deviceSamsung Exynos 3250, dual core up to 1GHz512 Mb of RAM4 Gb of flash, divided in 15 partitions (see below)Mali 400 GPU, using Exynos DRM driverYMU381 audio, supported by ALSABCM4334W Bluetooth/WLAN controller, already supported by Android in a bunch of phonesSamsung SensorHub (STM32) controlling Gyro/accelerometer and HRM. Supported in the kernel and seen in Android HAL.bota0 -> ../../mmcblk0p1bota1 -> ../../mmcblk0p2csa -> ../../mmcblk0p3 --> ext4 ->boot -> ../../mmcblk0p5 -->csc -> ../../mmcblk0p12 --> ext4 ->fota -> ../../mmcblk0p10 --> seems emptyramdisk-recovery -> mmcblk0p8 -> ext4 -> Unused in tizen --> USED AS BOOT PARTITION IN ANDROIDmodule -> ../../mmcblk0p9 --> ext4 -> /lib/modules --> USED FOR TWRP IN ANDROIDrootfs -> ../../mmcblk0p15 ext4 "/" --> Root file system, recovery works from here too. If you break it it will only boot to download mode. --> USED AS SYSTEM PARTITION IN ANDROIDsystem -> ../../mmcblk0p11 EMPTY --> Did samsung start with Android on this thing then changed their minds?system-data -> ../../mmcblk0p13 --> ext4, /opt --> If you erase this partition, your watch won't boot back into Tizen. Do not touch it unless you have a backup and know your way into restoring it.user -> ../../mmcblk0p14 EXT4, /opt/usr --> all user data, including the MTP available part (/opt/usr/media) --> USED AS DATA & SDCARD IN ANDROID