yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] t0kgrumps:
Hey guys i kinda need some help here.. Tried flashing the latest version but failed a few times.. So apparently i tried flashing back to tizen and it got worse.. And now my watch is just stuck in the gear 2 logo.. Is there any way i can go back to android wear? Or do i need to perforn the experimental instruction which may or may not turn my device into more chaos?
[Samsung Gear 2] WerWolv:
Yeah. In this case just perform the Extreme Recovery Mode. I had to do it too once.

If you follow the step one by one then everything will work again.
[Samsung Gear 2] drakulinho:
Is this possible for gear S? Nice work mate!!
[Samsung Gear 2] sandvich123127:
I have been watching this thread since the beginning knowing that you would complete this project! Nice job!
[Samsung Gear 2] kavinzhao:
I have subscribed to this thread since I registered.(also, thats why i register) and now you almost succeed mate! Wonderful.
[Samsung Gear 2] hashcheck:
Well done mate :)
[Samsung Gear 2] miky1989:
Hello !!

There is any chance to port Android Wear on the first version Galaxy Gear too ?

Thanks anyway and good job !!
[Samsung Gear 2] mag2007:
And now imagine we could get multiboot for our gear 2 :D Tizen and Android whenever we want. But as everyone else, i gonna say it is a perfect job mate! Well done!!!
[Samsung Gear 2] massinegro204:
But this for Gear S .thanks
[Samsung Gear 2] jeffc83:
Told you biktor;) We all knew you'd get it working! Ah, the feel of success...forget the smell, you're touching it;) Neo and Gear 2 standing by for extreme testing...lol.

Folks, I don't mean to be rude but this is NOT for the gear or gear s so stop asking him...READ the thread before asking!!!!!! We don't want him to get upset and stop updating us because of this.
[Samsung Gear 2] cipherswitch:
LMAO..... if you could only see MY inbox over on the Gear S forums, people don't bother reading the thread. They just see GEAR and assume its all the same.

[MENTION=803006]biktor_gj[/MENTION] , keep it up, very good work!
[Samsung Gear 2] McGuigew:
Biktor almighty Gear 2 savior :angel:
[Samsung Gear 2] Razor29:
He is the gear 2 savior I would have sold mine and I almost did until I saw this thread open up and held on can't wait to start testing early working builds whenever they might come
[Samsung Gear 2] snoshark06:
Ahhhhh yeahhh!! Keep up the good work! Excited to see what you come up with!

Keep us updated!! :good:
[Samsung Gear 2] xxboarderxx:
Great work here. Will switching it to Android Wear still allow the phone to retain all of its features (ie. making phone calls)?
[Samsung Gear 2] xxboarderxx:
Thanks for the reply/update. I can't help you as I am not a tech guy...however, have you had a chance to look at my PM?
[Samsung Gear 2] raiu:
Awesome job man! well done and keep it up, your almost there!

Now, to all those nay sayers who ran me away from maintaining the bounty thread for this, **** you! See it can be done.

-End rant.
[Samsung Gear 2] biktor_gj:
A little more to audio crashes

I've been digging into the audio libraries.

The Failed setting ALSA device message comes from audio.primary.b2.so (which in turn really is audio.primary.universal3470.so).

I thought it was coming from the tinyalsa audio library, but it's not. Just previous to that message, I get this:

E/AudioRil( 107): Connect_RILD() error
E/AudioRil( 107): audio secril init failed.
I/AudioFlinger( 107): loadHwModule() Loaded primary audio interface from Samsung SMDK3xxx audio hw HAL (audio) handle 1
D/AudioHardwareTinyALSA( 107): Input	: format = 1, channels = 3, rate = 44100
D/AudioHardwareTinyALSA( 107): default	: format = 0, channelCount = 2, rate = 48000
E/AudioHardwareTinyALSA( 107): Failed setting ALSA device (ffffffea).
D/AudioHardwareTinyALSA( 107): Entering AudioStreamOutALSA standby mode

Then I saw RIL daemon is not starting, which is not surprising, giving that it's not even there on the SPRAT image. It shouldn't be since the watch doesn't have a modem, but all the hw libraries for the exynos3 do, so it's normal that it needs it. I tried copying it but nothing, I guess there's more to it than what I'm seeing.

Thing is... can the RIL daemon be running so libaudio-ril is happy about it, even if there's no radio on the watch?

To check this behaviour, flash the full flash package and reboot. This image will finish booting to the setup wizard, because 'libtinyalsa' is out of the library folder. I've left it on /system (mmcblk0p15). To reproduce the failure, just move it back to /lib from the recovery environment and then reboot. The watch will enter a bootloop, and you'll be able to see the error in logcat.

I still have all the debug info from the framebuffer set on that kernel, so if you spend more than 50 secons with the image booted, all the dmesg will be filled with messages from there, so you won't be able to retrieve the init logs (you won't need more than 15 seconds to get all the errors, so you'll be good)

EDIT: .tar file uploaded to mediafire -> http://www.mediafire.com/download/b1154g7woncjiv9/sprat_wear_09.tar

If you're going to use it MAKE A BACKUP FIRST. I've reflashed my tizenmodfull backup over it and it worked but you never know...
[Samsung Gear 2] kavinzhao:
Bet the RIL Daemon will waste some RAM. 512 MB is pretty small actually. Will be better if you can get things working without it. But, as I have said before, we all want a working rom before you do any improvements to it. Great work, biktor. "You are the most precious thing we have here"

And by the way is the backup and restore feature on TWRP working? Can I backup my watch after flashing?
[Samsung Gear 2] biktor_gj:
That will only backup the 'android side' of the flash, if you are doing a backup of Android data & system ok, if what you want is to backup tizen you'll still have to flash with odin the modules, kernel and ramdisk partitions...

If you want to be safe, do a backup with DD of all the partitions and keep them safe. I have backed it up, but didn't try to restore it, so... Be careful ;)

About audio

I've been fighting all morning with the watch and trying every possible library combination with no success. The one closer to working was the Gear 1 library, but is built for android 4.1, and is not compatible with either KitKat or any version of Android Wear.

Unlike Qualcom, Samsung does not provide any reference opensource audio HAL implementation, but...

I've been looking through github, and it seems the Galaxy Note 3 uses the same Yamaha YMU831 codec as the Gear 1 and 2 (probably gear S and others too). There is an audio HAL library in CM source for it, I will make some modifications to remove the RIL side of the hal driver and try to compile it, hopefully it will, at least, stop crashing the entire system :) and with a lot of luck, it might even work... Will keep you updated!
[Samsung Gear 2] Hearten S:
Hmm.. All the Android wear devices don't support Audio.. right? Is it possible that you can make audio work right?
[Samsung Gear 2] tihimasmo:
I resolved my watch answer button won't engage phone call bug by reflashing phone rom. I suspect I had messed in appops with some vital Google service's permissions. Now it works. Also got a tasker permissions issue after reflash. Resolved by reinstall.

And FFS don't quote one kilometer long logcats. It's bad enough we have to slog through them the first time. We all know what we're talking about here. If xda won't let you crop your quote, then simply don't quote. You can say something like "Hey about that x issue..."
[Samsung Gear 2] McGuigew:
I confirm that playing around with permissions on google services can be very bad for the watch :eek:
[Samsung Gear 2] Alxoom33:
[MENTION=803006]biktor_gj[/MENTION] I get the same screen rotation on my watchface. No camera. Everything else still working. Having adb issues, so sorry no logcats.
[Samsung Gear 2] AntwonJenkins:
This guy apparently has half the equation to actually taking calls via the watch figured out.

https://play.google.com/store/apps/details?id=wearableloudspeaker.com.wearableloudspeaker
[Samsung Gear 2] adamrpostjr:
So guys I'm sorry if I can't post this here but I just ordered my gear 2 neo today and I was looking into running Android wear off of it. I was wondering if we were able to make and receive calls off of it and use the ir blaster?
[Samsung Gear 2] biktor_gj:
Okay, I've been reviewing the logs that you sent me (thank you!) and it seems it's doing the same both on Gear Neo and Gear 2. So I need something else.

It seems, that when the kernel boots, the fimc driver is loaded, but the camera sensor is not being initialized. So all these test where it was crashing, it may even have a motive to crash after all. I've flashed back Tizen to my watch (doesn't it look old?) just to see what the kernel did, and noticed that along with the fimc* messages, it was probing every sensor in the kernel (8b1 is what you guys need).

But, as I have a Gear Neo, the camera app from tizen doesn't do anything. I'd need someone with a Gear 2, to go back to Tizen (or, [MENTION=2808427]jeffc83[/MENTION], you had one around untouched -do you have root?-) and:

Boot the watch

Just as it finishes booting run:

sdb root on

And then:

sdb shell dmesg > dmesg_boot.log

Do it fast otherwise the logs won't contain the first seconds of the kernel booting, which is where the camera is probed! (you can check if your log is good if you see some text within the first two seconds saying 8b1 probe, fimc or something like that)

Then, unplug from USB, start the camera, take a photo, and plug it back and run again the dmesg, but call the log dmesg_cam.log or something like that. Let's hope I can find the interaction between the driver and the camera!
[Samsung Gear 2] tihimasmo:
Grrr .. I again managed to do something that disabled phone answer function. I only fidgeted a little with the ui since reflash.
[Samsung Gear 2] AntwonJenkins:
If no one else can provide the Tizen camera logs I'll reflash Tizen and grab em in about twelve hours when I get home from work.
[Samsung Gear 2] Arry87:
I'm currently on a clean install of tizan (not flashed this gear 2 yet) if I could have a very brief tutorial on how to get what you need I can do it in less than an hour
[Samsung Gear 2] diamantericos:
So I tried this app and guess we should have done that before we hoped for wonders. The louder spear is activated on the phone not the watch so back to step 1. The title is kind of misleading .
[Samsung Gear 2] WerWolv:
[MENTION=803006]biktor_gj[/MENTION]

Well. I've almost bricked my Gear 2 when trying to go back to Tizen. I think you have to get someone else to get the logs. I would really like to help you but I don't want to have more mini heart attacks for the moment ^-^
[Samsung Gear 2] captFuture:
Super SU install not working (notification annoying ;) )

I get the same behaviour after flashing both (wear5110722 and bootimageMTP-ADB) files with Odin, wiping, rebooting and after the connection setup with my note4 it constantly shows the notification for installing superSU (which is not working)
[Samsung Gear 2] AntwonJenkins:
[MENTION=3426570]diamantericos[/MENTION] My bad, it was super late last night when I was looking at it.
[Samsung Gear 2] diamantericos:
It's cool not your fault it's the developer of the app with the misleading info.
[Samsung Gear 2] jeffc83:
Unfortunately no root on my unmolested Gear 2....if no one jumps in to do this for you on Tizen, I guess I can unlock the bootloader/root it. (sucks that it will wipe the device but I don't use it anyway)

---------- Post added at 06:40 PM ---------- Previous post was at 06:38 PM ----------

Agreed! The developers do that to get you interested but most of it is just BS/lies. We'll get there:)
[Samsung Gear 2] datom84:
maybe this helps
[Samsung Gear 2] tihimasmo:
Someone wanted to know about battery drain on version 5th July. 12 hour work day. Lots of taps to wake screen. Twentyish notifications. 19% battery discharged
[Samsung Gear 2] llsh:
Thanks a lot! What the difference between last roms? Is it berrer, how better?
[Samsung Gear 2] tihimasmo:
I think 30% on the try2 version. But drain depends on so much
[Samsung Gear 2] llsh:
Well, my results on rom form 5th july, 2,5 days!
[Samsung Gear 2] xdamami:
2 Days with 07.22 Thanks for your awesome work King!!!

G920F
[Samsung Gear 2] Gabri98:
Hello [MENTION=803006]biktor_gj[/MENTION] , why don't port the rom null or android wearez on gear fused Android Wear + CM 11 , you can fuse with cyanogenmod 12.1 and i think is possible for call isn't good idea ?
[Samsung Gear 2] McGuigew:
Waow, I think a drunk cat walked on your keyboard.
[Samsung Gear 2] AntwonJenkins:
A drunk cat lol... Anyway, I figured it's with mentioning that I had great battery on the camera test build from last Friday. Used always on and got a bunch of notifications as well as me replying to texts via mic and I move ALLOT so needless to say I USED it today and from 100% at 6am - 4pm at least %35. I like to show off my watch and as long as it lasts me a day at work, I have no problem coming home and plugging it up cuz I have to with my phone anyway.
[Samsung Gear 2] Gabri98:
Anyone if need to root the gear 2 neo with android wear, can flash this : http://rootjunkysdl.com/?device=LG G Watch&folder=Root download name : Wear-SuperSU-v2.40.zip

put this on memory internal and flash on TWRP without wipe.

[TESTED AND WORKING]
[Samsung Gear 2] Alxoom33:
Worked great with my gear2.[emoji15]

Thanks[emoji12]
[Samsung Gear 2] captFuture:
Solved my problem with crashing superSu installation on the base wear rom on the gear 2 :D Thanks
[Samsung Gear 2] biktor_gj:
Will include it in next update,thanks!
[Samsung Gear 2] Gabri98:
On Android Wear 95% of apk not working ..

If anyone port cm 12.1 solve this problem and can call .

Next [MENTION=803006]biktor_gj[/MENTION] fc android wear app when i try to click send message ...
[Samsung Gear 2] tihimasmo:
I have reflashed phone Rom again. Made no changes to sense ui or Google services. After downloading all my daily apps I made nandroid. Phone answer function was still working. After setting all apps I had some trouble with watch notifications and phone answer function. A couple of restarts fixed it so atm everything is working.

My conclusion is that when you start messing with phone root it's easy to upset the fine balance of Google services and thus break parts of watch function
[Samsung Gear 2] llsh:
I like wear interface, and i don't want to see CM on the watch. CM is for phones and tablets, not for watches!

I suppose the difficulty with calls is to make a call from watch using phone's base (modem, sim card etc), CM will not solve this problem
[Samsung Gear 2] AntwonJenkins:
Was anyone able get the camera logs from Tizen for Biktor_gj?
[Samsung Gear 2] emuandco:
Android Wear 5.1.1 != Android 5.1.1. Many aspects are different or not existant at all. Aim is to get the Wear supporting stuff up and running. Anything else is not Android Wear anymore.
[Samsung Gear 2] stephane.papin:
Confirmed battery usage : 30 hours until 0%
[Samsung Gear 2] crime_of_heart:
Thank you all for the great community fo the belowed Gear 2!

I have the best battery life with "22jul ROM, ADB+MTP+1s Bluetooth sleep hack". I got that after changing some permissions of Google Play Services (disabled auto start, wake and keep awake) via privacy on CM based ROM (Resurrection Remix) on my Optimus G E975.

Always screen off , wifi off, now cards off. Received more than 50 notification.

This is not with theater mode (I can probably get 4+ days with it [emoji2] )

Screenshot below.
[Samsung Gear 2] tihimasmo:
I think it depends a lot on how fresh the gear2 battery is. I get about the same with any version of port. Cards on.
[Samsung Gear 2] biktor_gj:
Should I assume nobody wants the camera? Nobody has sent me any log from tizen!!

Anyway, test 2: Same rules apply:

WHAT I NEED:

1. Flash the image with Odin

2. When it boots, open a shell, and run:

adb logcat > logcat.log

Leave it running for 30 seconds more or less, then attempt to launch "OpenCamera" app (it will be bundled on the image)

IF IT DOESN'T REBOOT HARD AND JUST GOES BACK TO THE CLOCK:

press CTRL+C on the shell and run:

adb shell dmesg > dmesg.log

POST BOTH FILES!

IF IT REBOOTS HARD:

Press and hold the power button until reboots, THEN GO STRAIGHT TO RECOVERY.

When recovery is up and adb is available, run:

adb shell cat /proc/last_kmsg > last_kmsg.log

POST BOTH FILES, LOGCAT AND LAST_KMSG /DMESG, WITHOUT CUTTING PIECES! I need the full files to see if the first init was successful, and be able to debug at least a bit.

*** CAMERA TEST IMAGE ***

Contains kernel, boot image, recovery and system partition.

http://www.mediafire.com/download/y5ay2oj1oje0sga/Wear_511__07_28_2015_Camtest_FIMC_ISP.tar

Modifications (for the developer enthusiast ;)): Kernel FIMC force start ISP, force start ScalerP (disabled for Tizen), statically linked 3aa.0 <--> ISP as mandated by the fimc-is-device kernel module
[Samsung Gear 2] biktor_gj:
Interesting, with Resurrection remix I got almost twice the battery life I'm seeing with cyanogenmod 12.1. It looks like it's not using the low power mode or something like that...
[Samsung Gear 2] McGuigew:
I think most of us have a Gear 2 Neo, that's why we can't help you much with the camera :)
[Samsung Gear 2] annson08:
I swear, If it wasn't for my work, I would've done it already. Anyway, I'll try my best to make time for it. And once the camera works, I'll make another donation ;)
[Samsung Gear 2] datom84:
[MENTION=803006]biktor_gj[/MENTION] ?

on page 161 or 160 are my logs! ;)
[Samsung Gear 2] AntwonJenkins:
[MENTION=803006]biktor_gj[/MENTION] [MENTION=597736]datom84[/MENTION] posted some at the bottom of page 160. If those aren't what you need I'll definitely try to flash back to Tizen tonight. I know I definitely want a working camera! I really want you to be the one who gives everyone the first Android wear device with a camera! You already gave us a first with the IR beam!
[Samsung Gear 2] Binary100100:
I have the Gear 2 and willing to help but do I read this correctly when you're asking for the Tizen firmware and not for your ported version?

I think that many of us are intimidated to flash back to Tizen after being so comfortable with your firmware.

Perhaps make a new thread and request those NOT on your ported version to get the logcat for you?
[Samsung Gear 2] biktor_gj:
Thanks man I didn't get to see them!
[Samsung Gear 2] Chattersking:
Im using the July 22 update and sometimes OK google detection is not working on the watch despite several tries but its allright.

What really matters is that I managed to install Android Wear on one try and I couldnt be more happier and its working flawlessly. I really do not care about any features or updates and just wanted to thank you for all you have done. I love you man and not in a homo way lol you brought life into my old watch. :D
[Samsung Gear 2] tooandrew:
Sorry [MENTION=803006]biktor_gj[/MENTION] , the power supply in my pc died, I would gladly provide logs, but for the moment, I'm waiting for a new power supply, and praying this ****ty coolermaster didn't fry the rest of my hardware when it failed.stay away from coolermaster power supplies. My pc pulls MAYBE 850watts under load and a 1000w coolermaster took a **** on me while I was playing a game from like 10 years ago
[Samsung Gear 2] Jhfreeze:
Love the work your doing. I have a gear 2....and gear S, but have also been crazy at work. Although I saw someone posted a couple logs. I'll have more free time later in the week to assist if needed id like to help any way I can.
[Samsung Gear 2] biktor_gj:
Don't worry! With what [MENTION=597736]datom84[/MENTION] provided I have enough but thanks! :)

By the way, my new Gear S is on the way (finally shipped from US today, yayy!), so hopefully, android will come to town too soon for the forgotten watch ;)
[Samsung Gear 2] crime_of_heart:
Yup, I also only have the Gear 2 Neo, sorry :/
[Samsung Gear 2] drones:
Hello, biktor_gj , guys!

I just try to make logs from new image. When I trying to start Camera app I have hard reboot.

There is logcat log file, but when I trying to take last_kmsg.log from recovery i see "error: device not found".

What's wrong?

And... biktor_gj, still need logs from Tizen? I can do it now.
[Samsung Gear 2] NakedFaerie:
This is great! Awesome work.

I tried it out today and it installed nicely, works nicely. Some apps dont work but thats ok. The battery life is no where near Tizen as it dropped about 20% in 2 hours.

I just went back to Tizen as its got features Wear doesn't have that I prefer like the calling via the watch. And the Wear has no sound for some reason?

At least I found out what Wear was like. Its ok but I think its not as good as Tizen. The only problem with Tizen is Samsung. It could be great if someone else did it and made it more well known.

Wear does look better, Tizen lasts longer, Tizen has more sound and can make calls, Wear has better compatibility with apps. Wear is Google. It all comes down to personal choice and mine is Tizen until Wear can do things Tizen can.
[Samsung Gear 2] drones:
Ok, on another PC it works properly :good:

Here is logs files wanted by biktor_gj

Now i flash back to Tizen and try to make logs.

ADD:

I was take logs from tizen :o
[Samsung Gear 2] Hassaan Shahid:
i wanted better battery so i flashed tizen again, but cant even reply to whatsapp in tizen or use google now . (i never used call on tizen)

i couldnt use tizen for more than 2 hours ... immediately flashed back wear ,,

Android wear is the way forward .. once you get used to replying to anything via watch , you cant go back

thanks again [MENTION=803006]biktor_gj[/MENTION] for this development .. made Gear 2 soo much more useful :D

The only thing i miss though is when tizen notifies on watch it gives option of privacy so my complete message dont appear on screen unless i touch the screen ..
[Samsung Gear 2] fernandogdl:
well first of all, this is a developer section, use Q&A for that comments, and second, if you read any of the over 100 pages there are on this thread you should know what are the native features of wear, what it can and it can't do, and why it can't do it. Wear isn't near perfect but thank god there is XDA developers to improve Google's incomplete work with the wear. You have a choice between Tizen and Wear, most of the people here does not have a Samsung Phone anymore, so a Gear 2 with tizen is worthless unless you install Wear on it and make it usable.
[Samsung Gear 2] flatherskevin:
This in no way contributes to the development discussion here. Mostly everything you have had issues with have is not the case for most of us after installing and wiping properly. If you wanna voice your opinions, open a blog. Otherwise, please keep non-development posts off this forum.
[Samsung Gear 2] DAGr8:
i refrained from posting about it in the past and im sorry it comes out on you two guys but a useles post in a dev thread is just that , one useless post , you guys succesfully transformed it into 3 useless post and then me into 4 :confused: . either you guys hit the report button , or ignore guys posting in wrong section there is absolutely no other way around .

sorry for rant
[Samsung Gear 2] McGuigew:
This thread is victim of an ever-growing number of noobs/trolls posting in the wrong section, there should be more aggressive moderation here (I am volunteering if anyone reads this).
[Samsung Gear 2] Binary100100:
---------- Post added at 11:48 AM ---------- Previous post was at 11:47 AM ----------

Trust me. No you don't. Worse decision that I had ever made and I'm very glad to be done with it.

It's fine if you like drama, back stabbing and want to join an exclusive XDA community where you're talking about members behind your back with an exception to the rules though. But you get a lot of mods that play favoritism which make members feel too comfortable and think that they are also exempt from such rules. But... yeah... don't. Please trust me.

(Unfortunately, I'm not permitted to disclose details but other mods might know what I'm referring to.)