yashsingh1/xdaforums huggingface dataset:
[Samsung Gear S] biktor_gj:
I left a copy of the modem firmware in the system partition. If you move all the files at /system/etc/modfirm to /system/etc/firmware, the modem hal driver will load the firmware files for you and attempt to reset the modem and start it.

I think I found the trigger for the first failure with the modem, I think it's with the ADSP.

Tizen dmesg:

[ 8.123824] es70x-codec es704-codec-gen0: es705_sleep: wait 30ms for execution

[ 8.149273] [QCTK-ANDERSON][driver_deferred_probe_trigger] queue deferred_probe_work

[ 8.160290] es70x-codec es704-codec-gen0: es705_enable_ext_clk: clk_get osr_clk enable=0

[ 8.160687] es70x-codec es704-codec-gen0: es705_sleep(): external clock off

[ 8.160810] es70x-codec es704-codec-gen0: es705_sleep(): Exit

[ 8.170567] apr_tal:Modem Is Up

Android dmesg:

<7>[ 9.496894] es70x-codec es704-codec-gen0: es705_sleep: wait 30ms for execution

<7>[ 9.533929] es70x-codec es704-codec-gen0: es705_enable_ext_clk: clk_get osr_clk enable=0

<6>[ 9.534229] es70x-codec es704-codec-gen0: es705_sleep(): external clock off

<6>[ 9.534265] es70x-codec es704-codec-gen0: es705_sleep(): Exit

<6>[ 9.643957] msm_thermal: t: 66

<3>[ 12.722742] q6asm_get_audio_client: invalid session: -1

<6>[ 12.722789] msm_sec_sa_ep_get: sa_ep ret=0 score=0

<3>[ 12.722897] msm_routing_get_dolby_dap_param_to_get_control, port_id not set, returning error

<3>[ 12.723017] APR: Wrong parameters

<3>[ 12.723041] adm_get_params: Failed to Get Params on port 16385

<3>[ 12.723076] msm_routing_get_rms_value_control: get parameters failed

I don't know if I'm getting ahead of myself, but it seems like the ADSP receives (or doesn't receive when it should) some routing parameters so it doesn't correctly start. Now, I'm not sure if this comes from the kernel or the userland. Samsung's source code for the kernel DOES NOT WORK on Tizen. Well, it boots, but it gives no video. The source code they released _is not_ the same source code they use for production builds. I'm going to check if the baseband even boots with a non-original kernel in tizen and if it does, I will try to debug what parameters are being set through the APR kernel driver (arch/arm/mach-msm/qdsp6v2/apr_tal.c). Maybe the key is at q6asm_get_audio_client

By the way, some useful commands:

Android radio debugging: adb logcat -b radio (you'll probably know about it)

Tizen radio debugging: (after sdb root on) sdb dlog -b radio

EDIT: i will debug it... when it gets colder than 70 degrees. After flashing the watch just told me it needed to cool down and it shut down :eek: I hadn't seen that since iPhone 4 days!
[Samsung Gear S] gidi:
Hey [MENTION=803006]biktor_gj[/MENTION] thanks for the update, man!

I used to get that overheating message a lot on sunny summer days (Greece) with my iPhone 4S.
[Samsung Gear S] Spartaner25:
A few notes, as I tried recently to build a image for the pontesolo:

I created this local_manifest, it should contain all needed sources.

I needed this patch to build it, I don't know if it is absolutely necessary in every case.

The Build will not finish, as there is no boot partition in the fstab, but we have everything we need.

And as always, be cautiousness with this build and thanks to Biktor for his great work :good: .
[Samsung Gear S] glos7777:
really great work most of gaer s users wait for android .. thanks a lot.. and We must donation to [MENTION=803006]biktor_gj[/MENTION]
[Samsung Gear S] dev_null:
So... This thing will or won't boot?

---------- Post added at 11:27 PM ---------- Previous post was at 10:27 PM ----------

Any updates?
[Samsung Gear S] biktor_gj:
What Spartaner meant is that there's a lot of manual work to make the final build, since we don't use ramdisks in here. But it does boot.

I've tried a lot of other things, but no luck so far with the modem
[Samsung Gear S] leonidre:
Just curios. Reading on wikipedia MSM8226 is used in Moto G (first one?) (and others). We should probably have good, recent, kernel tree for it.

How incompatible every vendor's firmware make the kernel sources especialy in the area of the modem?

As far as I understand the modem DSP is on the same silicon as CPU so Gear S and Moto G should share same modem+CPU hardware exactly (at least in digital part)
[Samsung Gear S] dev_null:
Can anybody else confirm this?:fingers-crossed::fingers-crossed::fingers-crossed:
[Samsung Gear S] sniickers:
https://github.com/MSM8226-Samsung
[Samsung Gear S] andrew.mackew:
Hey biktor_gj, hope you are going well.

As far you told that modem has been a pain.. and so far no luck with it, I wonder about the other components hal, sensors and the big question.. how far we would be from a functional Wear rom?

Thanks :good:
[Samsung Gear S] tritus:
Yes , I have it on the iPhone and it works great
[Samsung Gear S] lachywallace:
Good work biktor, cant wait till wear is more refined but this test build is certainly a sign of great things to come^_^
[Samsung Gear S] primod808:
Thanks for the mega upload file. You got Bluetooth working and your getting notifications?
[Samsung Gear S] sootyhippo:
As mentioned before, Bluetooth still isn't working.
[Samsung Gear S] tritus:
Yes, and notifications also , ok google work greet too
[Samsung Gear S] sootyhippo:
how did you get BT and Wifi working? My gear won't see my phone, and I need my phone for wifi.

It crashes quire often...reboots into trwp. Suggestions are welcome.
[Samsung Gear S] delboi:
How you managed to get BT and wifi working?? My watch can't find my phone and it needs my phone to enter the wifi password....am I doing something wrong??
[Samsung Gear S] erostiff:
great to have something to play with. Results of the experiments? Weird that bluetooth works to find the device in android wear. You can pair to connect but after that it's never able to connect unless...you have an iPhone. Tried with 2 android phones (cm13 and cos12) and no go. tried with an iPhone and bingo - bluetooth connection works - android wear is able to communicate and goes through the syncing (on android it's stuck spinning). Promising, only a little picky at the moment :) Great work, keep it going!
[Samsung Gear S] imue:
I tried flashing this rom, and success update my gear to android wear.

But I can not connect my gear to phone.

Gear saying syncing, tooooooooooooooo long time... For many hour..... My watch saying only.. Syncing...

What can I do?
[Samsung Gear S] biktor_gj:
Read people... Reaaaaaad!
[Samsung Gear S] sootyhippo:
The mixed messages that were around did make me doubt. So no BT or WiFi.

You've mentioned your system didn't crash, mine does it very often. Did a factory reset, multiple times. Think I will have to wait a little longer for a stable version right?

BTW, love your job.
[Samsung Gear S] delboi:
Read that's all you need to do its explained very clearly afew posts back

---------- Post added at 11:48 PM ---------- Previous post was at 11:42 PM ----------

Hey biktor_gj awesome job your doing are you doing a cm13 build as I'm kinda getting used to having a phone on my wrist I'm happy with the build v40 just wondering if your carrying on with this or moving to just the aw?

Thanks for everything

I'm sure your on Samsung hit list now you no....
[Samsung Gear S] buby78:
you my friend are the man!!! cant wait to see it all done... in other news biktor_gj have you setup a donation page yet??? i and a few others would like to donate for the time you are putting in just to say thanks and show a little love... i donate to other dev just as a thanks for the work lol well let us know
[Samsung Gear S] dashrink:
Ehm....

Are you Biktors secretary? I was referring to Biktor, but you are telling me what I should and should not do. That is very rude and annoying, so please stop answering my posts. How much have you donated btw?

[MENTION=554771]biktor[/MENTION] (not catalyst):

Confirmation number: 612956380N118930U
[Samsung Gear S] imue:
Omg... I'm sorry..

I respect about your amazing works.
[Samsung Gear S] biktor_gj:
You have a newer build of CM12.1 a few pages back, (02/21).

I'm not abandoning Cyanogenmod. If possible, I want to have both :)
[Samsung Gear S] Corybander:
Gratitude

That is because you are a rockstar.

I have been flashing this onto my watch consistently since I found it. This is literally my first post though. I avoid it (posting). This is an elitist, volunteer community. I respect that.

This is my shoutout to Biktor_gj for his development here.

Thank you for your time and energy.

My main concern with cm is that Cyano seems to keel-over (slow to a crawl) when I use hangouts and my keyboard (stock). It seems like it's just too much for the little guy. This makes me feel that AW is perhaps a more stable way to go (for me, at least).

I'm very glad you are pursuing both builds, but I express my sympathy for your time.

You have my gratitude.
[Samsung Gear S] GADJI-777:
i'm really sorry, but where to read about solving troble with long syncing?:(
[Samsung Gear S] t2bacdp:
Bluetooth doesn't work so no sync.
[Samsung Gear S] gingerdude:
See post #986
[Samsung Gear S] delboi:
There's nothing to solve yet it states clearly it takes along time to sync be patient it will give up and load
[Samsung Gear S] counis:
Hello

Sorry if this goes against forum rules but I was just wondering where the tutorial to flash my Samsung watch with android wear is located?

Thanks
[Samsung Gear S] delboi:
Download the twrp recovery and the new aw zip file flash recovery in odin wait till finished unzip aw zip to find a .tar file flash this also with odin when finished boot to recovery an wipe data and reboot it will hang on sync screen for a long time but it will boot
[Samsung Gear S] dashrink:
How is the battery life in AW?
[Samsung Gear S] delboi:
It's OK it's not rock solid stable yet but it's a sign of good things to come
[Samsung Gear S] sootyhippo:
When I have AW started, it reboots after a couple of minutes. Than all my settings are gone and I have to set time and date again. Am I doing something wrong?
[Samsung Gear S] counis:
Thank you for the heads up. I was doing this correctly then but I keep getting an error with the TWRP file when its loading up with secure check fail:boot. I have absolutely no idea what this means or where to go with it hahaha. have to be completely honest.
[Samsung Gear S] tritus:
activate screen off , greet
[Samsung Gear S] dhkkim:
Anyone making Android Wear rom?

Since lollipop is sucking more power.. how about android wear port?

Thanks.
[Samsung Gear S] sootyhippo:
There is a rom for AW, don't you read properly?

Ir I'd still a test version.
[Samsung Gear S] GOSKA:
No funciona en Gear 2 Neo
[Samsung Gear S] biktor_gj:
HO HO HO

FIRST ANDROID WEAR WITH MODEEEEM!!!

Even before huaweiiiiii!!!

Now let's see if I can replicate it into a fully functional (not unstable image)
[Samsung Gear S] Picard0147:
Biktor, nice to see that modem is working on AW, realy great job :good:

But I have question about cyanogenmod and syncing with phone. When I had my Samsung Galaxy Gear I have flashed _null rom 23 which contain also samsung gear connection framework and that's the point. Do you think that it can be possible to extract samsung framework from Android 4.2.2 and implant it in your build of cyanogenmod for Gear S?

Key feature for me is bluetooth notification push from phone to watch (and HF function is also sometime usefull). Or if you have some tip for some pure BT notification push app it will be also great because I realy don't want apps that using internet connection like pushbullet, I don't trust them.

PS: Do you accept Bitcoin for a donation?
[Samsung Gear S] dashrink:
Really really great news Biktor! Congratulations
[Samsung Gear S] delboi:
Wow biktor_gj just wow there's no end to your talent you really are the man what would we do without you...thanks brother
[Samsung Gear S] biktor_gj:
Really Google? Reaalllyyy??

02-01 22:22:14.734 2634 2634 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.wearable.settings/com.google.android.clockwork.settings.cellular.CellularSettingsActivity}: java.lang.IllegalStateException: Default phones haven't been made yet!

02-01 22:22:14.734 2634 2634 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

02-01 22:22:14.734 2634 2634 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

02-01 22:22:14.734 2634 2634 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)

02-01 22:22:14.734 2634 2634 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)

They have been made! I have one in my hands!
[Samsung Gear S] sootyhippo:
Can't wait to test it further. You have booked great progress.

Thanks a lot!
[Samsung Gear S] delboi:
Hmmm sounds weird try downloading the twrp file again and starting from scratch I came from the cm12 build and didn't have any problems
[Samsung Gear S] GOSKA:
the rom does not work on Gear 2 Neo

You can help me? please...
[Samsung Gear S] AnotherLameUser:
Thanks for your hard work biktor. Can't wait to see what you accomplish now that you got the modem working in android wear. I sent you a donation to say thanks so have a beer on me.
[Samsung Gear S] Picard0147:
Goska, this is rom for Gear S so you more likely brick you Gear 2 Neo instead of make this rom working on it...
[Samsung Gear S] tritus:
look here http://xdaforums.com/gear-2-neo/development/android-wear-gear-2-gear-2-neo-t3182056 ;)
[Samsung Gear S] biktor_gj:
Small progress report

I've been tinkering with Wear the whole weekend, and this is where I am:

I've got two different half working builds:

1. Based on Gear Live (Sprat)

2. Based on Android Wear SDK Image (goldfish)

I managed to start the modem on *both* images, with different results. Using Sprat's image as a base, I can boot the modem, although nothing of it really works. This is because the build is _old_. MEC23G build (which is what everything is based upon officially) doesn't have full support for GSM services. This means the RIL Daemon starts, and you can see a 'No SIM' in the notification area, but Dialer, Settings, and all the backend services do not work.

Using Goldfish as a base, I can make the modem start, and it communicates with the backend half way. That is, it asks for the PIN code, gets network coverage, and looks stable enough to not die, but... A lot of things simply do not work:

Bluetooth, since bluetooth LE is not supported on this image (I guess because it should be running on an emulator)

Calls don't go out (you can dial and try but it's not going to make the call, it will just get stuck), and when you call it from another phone you can hear the tone but nothing shows up. It's just like the RIL starts but doesn't communicate correctly with the framework

Sensor platform is limited, I guess it's for the same reason that bluetooth, that this shouldn't be working at all outside of the emulator.

My next try is to completely deodex the emulator image and try to backport the bluetooth parts of the framework from the Sprat image, unless I can really grab a copy of the Huawei OTA update (it's supposed to be released tomorrow). In that case I will simply start from scratch with all the bits I already have ready now (ADSP, HW Composer, Adreno libraries, baseband etc.) and will start fresh with that, which may have a better chance of success since it will probably use the same modem (even if it has different vendor libraries)

About Bluetooth, I'm still unable to get the UART fully going. The reason it half works, is that it works on LPM (low power mode, aka Bluetooth LE), but not on full speed, standard bluetooth mode. That's why it works on iPhones and not on Androids (still looking into it, my guess is that something around QMI / QMUX interface is still not going well and even if the modem is up, some daemon in the background is not)
[Samsung Gear S] ggaby1981:
Awesome work biktor_gj!!!!!!!!!!

Just one request regarding to the lolipop build: Can You fix the call over the bluetooth headset to work?

Thanx
[Samsung Gear S] Picard0147:
Greeting biktor_gj, thank you very much for your great work on Gear S android development, I have flashed this yesterday and there is great step forward from build 40, here are my observations:

+ More stable and less powerhungry

+ Google apps not crashing

+ After root using recovery flashable SuperSU 2.65 I have full featured Android on my watch again :good: (Titanium Backup crashed several times on build 40)

+ GPS working and fix is pretty fast (on build 40 it was lazy), navigation not tested yet

+ Backlight behaves much better than with build 40

- Compass not working (not tested on build 40)

- Accelerometer wrongly calibrated - without movement shows 3.07 G as you can see in right bottom corner of display View attachment 3663685 but it reacts on movement. (not tested on build 40)

- alarm and timer not ring on time when I switch off display using button and start ringing after I wake watch by button, when display is switched off automaticaly both timer and alarm rings on time. It's still same song on null_ rom (on Galaxy Gear), your build 40 and now again.

Looking forward to working BT audio ;)
[Samsung Gear S] shbekar:
Windows Phone?

Just an idea: Did anyone try carrying not Android but Windows to Samsung Gear S? :p
[Samsung Gear S] matt4321:
Gave the thread a little tidy let's keep all non essential talk in:

[Q&A] [DEV] Gear S: Android Port

Forum moderator,

matt4321
[Samsung Gear S] tritus:
biktor_gj look this possible update for huawei https://www.reddit.com/r/hwatch/comments/48irjq/marshmallow_ota_update_link_here/
[Samsung Gear S] drkfngthdragnlrd:
If you mean pair with a Windows phone. You can pair it and use it as a headset. Meaning you can answer/deny/make calls from it. If you root it, you can copy contacts over from a PC (someone made a tool on here, look around). There are also some themes out there and I made an icon pack to make the stock icons look like Live Tiles so it matchs my Lumia 950 XL better.
[Samsung Gear S] skyred5:
Hi [MENTION=803006]biktor_gj[/MENTION], thanks for the awesome work you've been doing. As with the disclaimer statement, just want to be on the safe side for myself.

Do you have the original tizen image, and guide to restore back to tizen if something goes wrong? Did a search but nothing relevant came up.
[Samsung Gear S] jorvin:
go to page 1
[Samsung Gear S] tritus:
update for huawei is here https://www.reddit.com/r/hwatch/comments/48irjq/marshmallow_ota_update_link_here/

Ilook inside the zip an is 6.0.1 mm
[Samsung Gear S] skyred5:
Thanks. Just curious is there any instruction on Tizen recovery, or just flash the image will do?

Also, if it's possible is there a way to backup Tizen before changing to Android wear?
[Samsung Gear S] runningwarrior08:
[MENTION=5115264]skyred5[/MENTION]

For future question please use the Q A thread but to answer you now look at post 899 of this thread.
[Samsung Gear S] skyred5:
Hey thanks for pointing me to the right direction.

I got the watch up and running smoothly on android! wohoo! Just to report, calculator is still bugged. buttons dont appear properly.
[Samsung Gear S] counis:
Hey guys

I was just wondering if there is someway I can check on the watch to see if I have an AT&T watch or not. Thank you
[Samsung Gear S] computerguru:
I'm just wondering when people will use the Q&A forum instead of the DEV forum to ask questions. A guy can dream...right? ;)

http://xdaforums.com/gear-s/help/qa-gear-s-android-port-t3177751

But, because I'm a nice guy - you can determine it from your model number. SM-R750A should be the one for AT&T. For a fairly comprehensive list of model numbers/networks, scroll down a bit in the first post of this thread:

http://xdaforums.com/gear-s/development/definitive-guide-to-rooting-gear-s-t2973455
[Samsung Gear S] computerguru:
[MENTION=803006]biktor_gj[/MENTION] (or anyone else who might be interested): So you don't have to hunt them down, here's a list of links for the Huawei watch, from stock firmware all the way to MEC23L (the Android Wear OTA update.) I think I got all the updates listed here...let me know if I missed one...since it appears they need to be applied in the correct order to recover the actual files from the bsdiff patches. Hopefully this helps us get one step closer to full Android Wear on our watches. :)

Full Stock - http://xdaforums.com/huawei-watch/general/guide-return-to-stock-huawei-watch-t3219596

LCB43B - http://xdaforums.com/showpost.php?p=64009566&postcount=14

MEC23L (latest) - https://android.googleapis.com/pack...866b47.signed-sturgeon-MEC23L-from-LCB43B.zip
[Samsung Gear S] GOIGIG:
Wear is running great with my iPhone honestly lol it does kick the vibration motor on randomly and I'll have to hold the home button until it stops usually after a reboot or when it's turnomg on, amazing work again biktor forever greatful
[Samsung Gear S] skyred5:
Currently flashing android wear right now. I'm looking forward to more updates from you [MENTION=803006]biktor_gj[/MENTION]! Everyone's rooting for you!
[Samsung Gear S] tritus:
12h battery lasts me and you
[Samsung Gear S] mehdighasemi198:
I install this version but i can not connect to android wear app via bluetooth.please help me
[Samsung Gear S] GOIGIG:
sir, Bluetooth is only working for iPhone because bluetooth low power is the only functional version of Bluetooth we have. Please try and read a little more into it before asking, so you have a better idea how the forum works and are able to start solving your own/other people's problems, with all do respect I just want to help but we all have the same issue.

That being said, here are the problems I've encountered....

It will randomly unpair without factory resetting so i need to go into setting and reset it, (not that big of an issue) the time is off but I am just using it as a proof of concept and notification device. The only other issue I have is the random continuous vibration that will happen when it randomay reboots (quite often for me between every 2-10 minutes) but it's still running amazing other then that.
[Samsung Gear S] mehdighasemi198:
Is your idea that i use wifi connection for pair my device with app?
[Samsung Gear S] sootyhippo:
When you have an android phone it won't connect. You can use your s2 just as a watch. Wear is not yet fully operational.

So no, you can't pair it yet..... unless you have an iPhone.
[Samsung Gear S] tritus:
if we always active settings screen off not reset, two days without reboots :good:

---------- Post added at 11:15 AM ---------- Previous post was at 11:05 AM ----------

Biktor_gj , this is my file Logcat if can help https://mega.nz/#!BYYSVbKR!6XmoWRioaO2TLdAHWfdi6-MKy9T_Dz6xpIbCafCS9Tw
[Samsung Gear S] GOIGIG:
I tried it before but it did restart on me, I pulled it back on and reset it one more time and switched motion gestures and always on off, will report on stability.

I must admit it's immaculate I've personally never used android wear before and I'm in love with this watch I don't want to buy a new one lol I am so greatful biktor I'm broke as broke but I'm going to donate Friday
[Samsung Gear S] Harrocan:
So, anyone can explain me, because I'm little miss here. This is fully CM12 port, with some Android Wear functions, yes?
[Samsung Gear S] kevmass:
There is two if you read all the posts there is cm12 build 40 and android wear test build
[Samsung Gear S] tritus:
Biktor_bj the link for azus zenwatch sparrow if is possible you interest https://android.googleapis.com/pack...7.signed-signed-sparrow-MEC23U-from-LCB51.zip

I continued searching and found this http://xdaforums.com/show...9&postcount=10

system.img sparrow

I am confirmed img sparrow LCA49B api 22
[Samsung Gear S] Harrocan:
Thanks for info! :) I cant find anywhere this Wear test build, it's somewhere hidden? Or not released yet?
[Samsung Gear S] sootyhippo:
It is a couple of pages back. You will find it.
[Samsung Gear S] Corybander:
Android Wear -> Nokia Lumia

Initial tests show that the low-power bluetooth can pair with a Windows Nokia Lumia 635. So. Happy news Windows fans. Especially if you need a 50$ phone and have a watch.

Edit: However, I am unable to get past the sync screen thus far. But, farther than my Android device.