yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] daevoq:
Man.. wear recorder doesn't work for me.. no audio recorded at all.. same thing on Sony Track ID.. no song recognized.. seems the mic works only with google now commands..:confused:
[Samsung Gear 2] jeffc83:
I just tested wear recorder too...not working on mine either.
[Samsung Gear 2] Alxoom33:
Don't mind the blinking but when it is in ambient mode every once in a while it goes into that dotted screen of death[emoji15] for a while, 5 to 30 seconds and back to ambient screen.
[Samsung Gear 2] biktor_gj:
That's because I haven't published the complete firmware with the changes. I'm waiting to fix the display on to push everything ;)

Forget about it, I'm starting fresh again, and recover the suspend functionality. This will kill our battery even with the display off. I will try with a kernel wake lock when the screen is up just like they do with the g watch r. If it works it will remove the blinking, the garbage and will preserve suspend when the screen is off.

By the way, I'm still looking at the camera driver, I will try to implement it the 'classic' way. I did a quick test and have to fix a lot of kernel dependencies, but it might work if I get to fix them all... We'll see!
[Samsung Gear 2] mettercomputers:
great work looking forward to your further work and offer to test for you. Still like this better than stock other than dead battery in 10 hours. Thank You.
[Samsung Gear 2] McGuigew:
Thanks Biktor! A fresh start seems like a good idea to me :)

OFF TOPIC: I know there are a lot of Android Wear lovers here. I made a game with Construct 2 which is a game engine and now I want to port it on Android Wear but I don't have the skills it seems... the game is the one in my signature and you can PM me if you want to help :D thanks!
[Samsung Gear 2] kavinzhao:
[MENTION=803006]biktor_gj[/MENTION] and [MENTION=2981094]bitstra[/MENTION]

About the IR

Biktor you can make a device (something like /dev/ir) and push whatever is written in to the physical device. And bitstra you can make your app write on the device.

This shouldn't involve framework. How's this idea? Possible?
[Samsung Gear 2] Darth Ziggurat:
Try porting it to android in general, but read up and be mindful of the things you cant do specifically on android wear.
[Samsung Gear 2] annson08:
OMG. I can't help much with the technical details but I swear to god if you ever make this work, I'll donate to you. I was planning on ditching my gear 2 and buying an android wear even if it'll cost me a few bucks, but after reading this project, I might as well donate you the few bucks I mentioned.

Ps. Sorry for off topic post.
[Samsung Gear 2] Hec1N1:
[MENTION=803006]biktor_gj[/MENTION] you are taking on a huge project bro. I am sure plenty of heads on here will be greatly appreciative of the final outcome. I my self have a g2 neo, and if this works for the g2 i am pretty sure itll work for the neo. Can you confirm that?

The sheer scope of the progress you have made is truly outstanding. I would have stopped at the first bootloop. I'll shoot you a pm with my donation info soon. Keep up the awesome work. [emoji106] [emoji106]
[Samsung Gear 2] Joeyxc:
In regards to it working on the neo, if you look back at the images of his watch he has the neo and not the gear 2 metal. So you'll be fine :D I'm just hoping people like me who have the gear 2 will get this too.
[Samsung Gear 2] jeffc83:
Now back to what biktor_gj needs to help get this working!!!

Original question: Does anyone know any good porting guide for TWRP?

biktor_gj, I'm not sure if you have seen these but here goes nothing:

https://github.com/smasher816/Team-Win-Recovery-Project-Samsung

http://rootzwiki.com/topic/23903-how-to-compile-twrp-from-source/

http://xdaforums.com/showthread.php?p=32965365#post32965365

http://www.xposedgeek.net/2014/08/how-to-port-philzctrcwmtwrp-recovery-to.html

Although I cannot help with this, I am hoping someone can find this for biktor_gj:

If anyone can find me a Cyanogenmod flash dump / cwm zip / tar file from any of these devices, it would be great:

Samsung Degas (tablet)

Samsung Kmini lte (g800 - the exynos 3470 variant, not the MSM one)

Samsung Grada LTE (I think its called galaxy light or something like that...)

I'll keep searching myself...

BTW, I have a Gear 2 and Gear 2 Neo so I will have to double my donation once you get this working:highfive:
[Samsung Gear 2] jeffc83:
biktor_gj - Found this, hope it helps!

Samsung Degas (link to .tar) - http://www.reddit.com/r/AndroidQues...hats_the_easiest_method_for_rooting_a_galaxy/
[Samsung Gear 2] xendula:
Just wanted to say thanks for all the hard work.

I am hoping something good for my Gear S will come out of this. :good:
[Samsung Gear 2] biktor_gj:
Hey, thanks for the links, I found what was missing!

After two unsuccessfull builds, I got it to compile... aaand of course it doesn't boot ;)

Well, it sort of does, until it tries to starts the graphics. The github repository where I got all the library files for the Kminilte were marked as "CM12", which is Android API 20.

Unfortunately, that doesn't seem to be the case:

I/SurfaceFlinger( 347): SurfaceFlinger is starting
I/SurfaceFlinger( 347): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 347): loaded /system/lib/egl/libEGL_mali.so
D/libEGL ( 347): loaded /system/lib/egl/libGLESv1_CM_mali.so
D/libEGL ( 347): loaded /system/lib/egl/libGLESv2_mali.so
E/ ( 347): ERROR in Mali driver:
E/ ( 347): * Device driver API mismatch
E/ ( 347): * Device driver API version: 19
E/ ( 347): * User space API version: 401
E/ ( 347): Mali REVISION: Linux-r4p0-00rel0 BUILD_DATE: 2014-07-08 17:50:42
W/libEGL ( 347): eglInitialize(0x1) failed (EGL_BAD_ALLOC)
I/gralloc ( 347): using (id=)
I/gralloc ( 347): xres = 320 px
I/gralloc ( 347): yres = 320 px
I/gralloc ( 347): width = 60 mm (135.466660 dpi)
I/gralloc ( 347): height = 60 mm (135.466660 dpi)
I/gralloc ( 347): refresh rate = 59.26 Hz
E/SurfaceFlinger( 347): hwcomposer module not found
W/SurfaceFlinger( 347): no suitable EGLConfig found, trying a simpler query
F/SurfaceFlinger( 347): no suitable EGLConfig found, giving up

So now, have to download CM11 again (Android 4.4, API 19), copy all the device data, and recompile... Given that it took about 13-14 hours to compile it the first time, I don't expect to push it much further today...

We'll see!

Pastebin logs:

* with libbinder compiled, can't find some property: http://pastebin.com/pVqRWXa9

* with libbinder from another image, can't enable mali: http://pastebin.com/57r8sei6
[Samsung Gear 2] AntwonJenkins:
The progress being made on this is ridiculous! Your step by step explanations are awesome too and help people realize the amount of work put in this. Once again thanks and I look forward to donating cuz I know you'll get it working.
[Samsung Gear 2] Redmen:
You're doing an amazing job! :good:

Hopefully i can use my Gear 2 again with pleasure, i would love to donate aswell.

Have you seen the

"Bounty topic for Gear"

The reward is almost at $3000, which might be even bigger when you manage to get this running.
[Samsung Gear 2] biktor_gj:
Ok, now I _really_ know what's going on.

CM11 build eventually completed after fixing some more errors, and libbinder has all the dependencies from Samsung's libraries... guess what? the error persists. I've been looking it up in the little free time I had, and the problem seems to be the Mali Kernel Driver (drivers/gpu/arm/mali400 in the kernel source).

Samsung used the release 3 for this watch, and the release 4 for... everything else. So of course all the proprietary libraries from the kminilte are designed for use on version 4 (401 to be precise). Next task? Port the platform drivers for the exynos 3250 from release 3 to 4. For what I've seen so far it's going to be a little complicated, but I think it can be done, it's just a lot of work again ;)

One damn day it'll boot!

In case anyone is interested on seeing how the image files are built, I'm uploading a pair of them to mediafire:

https://www.mediafire.com/folder/0txrt0fu5zn88/Boot_Image_Tests

They will show up when the finish uploading (have 200Mb download but only 20 upload...) I have yet to try these images with the 3.10 kernel, which indeed has the mali driver updated to version 4, but I'm not keeping much hope...

Oh, on the images I forgot to switch the root devices (recovery didn't fit so I have repurposed boot and recovery partitions so recovery can get a 10Mb filesystem), so to boot android, you'll have to select "recovery" on the bootloader instead of normal. Not that it will boot anyway, but in case you want to check the logs you will need that ;)

EDIT:

If you want documentation, boot images etc, everything I build goes to this folder at Mediafire:

https://www.mediafire.com/folder/092gaz7gudh0f/Gear2

If you're looking for sourcecode, I'm uploading most of what I'm working on to Github:

https://github.com/Biktorgj

On github you have:

* Tizen shipped kernel

* kminilte kernel

* Gear 1 kernel

* 3.10 Kernel, with defconfig and some trash here and there

* Android_b2_kernel -> this is the one with s3c framebuffer half working and the crashing vibrator (WIP!, no need to raise an issue, I know it's broken :))

To make a zImage:

make ARCH=arm android_b2_defconfig

make

cd arch/arm/boot

tar -H ustar -c zImage > testkernel.tar

Try to compile it with linaro's GCC toolchain 4.7 or older, I've tested it with 4.6 & 4.7 and I use 4.7, but it seems 4.8 might give errors...

Still have to upload android/device & vendor stuff for CM, but... first I want it to boot ;)
[Samsung Gear 2] biktor_gj:
Little update, didn't have time to make much but I have fixed display suspend & resume, now it works correctly, and at least in recovery its faster than tizen waking up from suspend :). Still trying to figure out the vibrator and battery regulation (half done but Im still missing some piece of code I havent found) there's an IC that seems it's not getting initialized...

I also started looking at the mali platform code and I'm starting to figure it out, but that will take a little longer...

Will keep you posted!
[Samsung Gear 2] Xenocide83:
Keep up the great work! I cannot wait to get off this crappy Tizen OS.
[Samsung Gear 2] Caveman39:
Hey, I just want to say thank you for doing this. I think the Gear 2 was a good smartwatch, but could have been truely amazing if Android Wear was on it. You my friend, are making alot of people's dreams come true:D:angel:. I have a question though, if we can get Android Wear to work on the Gear 2/Neo, How will be able to access the camera and IR blaster?
[Samsung Gear 2] biktor_gj:
Well, to be honest.. I haven't even thought of that yet :)

The IR, I think we could build an app for it. It also depends if people then use all this or not, but if someone gets involved, the kernel driver is already working. The camera will be more tricky. I don't even know if Android Wear's framework supports it (I guess it does and simply there's no watch already there with it). If the frameworks has it, someone would have to port, for example, Cyanogenmod's camera app to work with it. I say someone because I have a Gear Neo with no camera, so even if I was to code that myself (which I wouldn't know where to start, I only made an app for android and it was awful _insert grumpy cat meme here_, I couldn't even test it)

New commit to github:

* Garbage cleanup of all the folders I left behind

* Vibrator working! It vibrates, and it doesn't crash the kernel :cool:

* Fuel gauge working (which means, usb/charger detection and battery detection). I checked and it seems to start charging just fine, so all the basic power management functions should work correctly ;)

Now I'll disappear for a week or two and try to make the mali R4 driver work :)
[Samsung Gear 2] juiceppc:
Sorry to clutter the thread but also wanted to mention that I am seriously interested in a Gear 2 or Gear S running full Android. I've been running my Gear 1 with Null for over a year and love it but wish the hardware was on par with the Gear 2 or Gear S. Having wifi would be awesome. I have also pledged and am watching this thread closely. Good luck to you and thank you for your efforts. It's people like you that make XDA what it is!
[Samsung Gear 2] biktor_gj:
[needmoresleep]

Me: Will you behave and do what I ask you to, please?

Gear Neo: No! you can't force me!

Me: and if I ask politely?

Gear Neo: no no no no no no!

Me: and what if I hit you with a hammer if you don't work?

Gear Neo: ....

Gear Neo: ...hmmm okay....

[/needmoresleep]

It should be able to flash zip files, if I had one working ;)

Now only need to get a working rom ;)
[Samsung Gear 2] McGuigew:
Absolutely beauuutiful!!! How hard will it be to find a compatible rom? Maybe a Gear Live rom ??
[Samsung Gear 2] biktor_gj:
Gear Live uses a Qualcomm SoC, so I'm affraid it's a no-go as it is. I will try using the libraries I compiled for CM11, which seems to be the only thing that worked of that build, but dont expect too much from it....

I've been also playing with a null rom port for the gear 1, but cant init the display (Mali400 UMP!= Mali400 on the exynos 3250).

Went patching libraries one by one but in the end it got really messed up.

Problem is, as far as I've read, when people port roms they keep all libraries from a base rom to another, but we don't have a base rom to begin with. I'm using libraries for a exynos 3470, maybe they don't work at all and have to keep looking... Don't know. Later I will post the working recovery image, and a boot template based on the gear 1 (non working but init rc files should be mostly good)

Maybe someone can find what Im missing!

Stupid improvement of the day, backup function works on twrp so now you can backup your non-functional system! :)
[Samsung Gear 2] Chattersking:
My apologies to the developer and other users of this forum but I wanted to ask if its possible to use this rom for a non samsung phone?

I understand its in developmental phase and Im fine with it. As long as the clock works, Im not too worried about other non working things/bugs. I just need to know if I can use this for my LG G3 stock rom?

Thanks
[Samsung Gear 2] alvaromartinezb:
Hello!! I'm sorry I couldn't reply in forever, I was camping so I had no internet. About [MENTION=803006]biktor_gj[/MENTION] 's question, I had just booted the watch... And all the issues started, so it was a failure at boot or probably the firmware got corrupted because I actually tried rebooting and it didn't help, it actually booted even worse... Just to live for a few minutes and then dying for good. Thankfully I was able to wipe everything from twrp and do a clean install, that got everything fixed

Yes you can use it with any device... As long as it's android 4.3 or more... And BTW please use the Q&A before someone kills you
[Samsung Gear 2] flatherskevin:
There is a Q&A thread or if you took the time to read the thread, or use the search bar, you'd have had your question answered. Please don't clutter the development thread with non development questions.
[Samsung Gear 2] biktor_gj:
That device is already there ;)

The access path for the IR subsystem is: /sys/devices/virtual/sec/sec_ir

Normally the best approach is talking to it through the HAL, I don't know if a standard android app would have access to those devices, but maybe a root enabled app can...

Screen always on fixed! New full flash image uploading, including the modifications to the audio out/in volume and switches. 15 minutes more or less, I'll post the link in the first page.

Notice that the display on will prevent the sleep, so it will drain more battery life than having it set to off, but no more screen corruption ;)

Next? Back again with the camera, let's see if I can fix it kernel side...

EDIT: Link up: http://www.mediafire.com/download/myzqnv4bkwa55b3/Wear_5_1_1_07_12_2015.zip

Let me know how it works!
[Samsung Gear 2] Duck4Cover:
Wow I cannot believe how far you guys have come with this!! When I came to have a look in the gear 2 mods it was let's see if we can or not and now look at it. Good work so waiting for the upload to arrive so that I can flash this for the first time. I'm currently on R381XXUOBOA2 I take it I can flash this straight and don't have to have tizmod?
[Samsung Gear 2] bitstra:
Will give a try the direct access to IR device tomorrow. Who knows...
[Samsung Gear 2] McGuigew:
Waow, just flashed it and the screen always on's reactivity is stunning. KUDOS!
[Samsung Gear 2] tnbx:
Guys i want to flash the new update , do i have to wipe it after ?

Do i just go on recovery and flash it on odin and reboot ?

Im loving android wear , hope battery life becomes better

Thank you biktor
[Samsung Gear 2] AntwonJenkins:
I know it's been mentioned but didn't seem like alot of thought went to it afterwards, but has anyone tried sideloading a gallery onto the watch? Like whomever stated, I'm also pretty sure we need one for the camera to work.
[Samsung Gear 2] jeffc83:
[MENTION=803006]biktor_gj[/MENTION] - Thank you, Always on is working and my Gear 2 thanks you for it too! It said "you can wear me now and use me like your other smart watches"...I can't say no to that;) Battery hasn't been dropping too fast in always on mode so far but will need a few days to be sure it'll get us through a full day with moderate use. (I'm confident it will though) BTW, on the last kernel with screen always on OFF, tilt to wake ON, it took 24 hours to get to 53%, which is not too bad considering we could easily get two days out of it! Hats off to you:D

[MENTION=2990941]AntwonJenkins[/MENTION] - I'm not sure about others here but I have not attempted to sideload a gallery yet. However, I do use "MyRoll" from the PlayStore to view pictures from my phone. I am SO close to flashing my other Gear 2 (with camera) to test a gallery but am holding off for an unknown reason. (maybe I keep it stock because it was a gift from someone special, lol) In theory, it should work.

---------- Post added at 04:12 PM ---------- Previous post was at 04:06 PM ----------

Please use the Q & A thread for this but no you do not have to wipe after flashing the latest package. Install with Odin as usual under AP, when it reboots into recovery, select REBOOT>SYSTEM and you're good to go!
[Samsung Gear 2] kavinzhao:
Of course we can access the device. We have root!

Just wondering if the kernel is ready for the device. If it is ready, I believe there is no reason the idea won't work. Good luck [MENTION=803006]biktor_gj[/MENTION] and [MENTION=2981094]bitstra[/MENTION]. Nothing is impossible with you working together.
[Samsung Gear 2] geiti94:
thx you so much. my dream goes up. android wear on the gear 2 *-* i install it now on my gear 2
[Samsung Gear 2] nambavuong:
it work perfectly with darklord rom ( or sixexp) mate :D :P hehe
[Samsung Gear 2] alvaromartinezb:
Hello guys! Found out something that might be helpful about the battery drain in the latest build... As you can see on the image attached, battery was draining pretty fast until I turned on theater mode (cause I went to the theater) and the battery stop draining so much.... That might just be some helpful data
[Samsung Gear 2] Alxoom33:
Absolutely wonderful! Working great![emoji2]
[Samsung Gear 2] Lilchampsean:
After watching this thread for the last few months and deliberating on whether I could take the risk on getting rid of Tizen, I can officially say that I have flashed this rom and I am more than happy with it!! I love this!!!! :)
[Samsung Gear 2] odwaidar:
Can this work on gear 2 neo ?
[Samsung Gear 2] tooandrew:
If you had even looked at the last post, you'd see what is affixed to it. [MENTION=6229712]odwaidar[/MENTION]
[Samsung Gear 2] alvaromartinezb:
Another battery drain update here:

Note that I turned off always on display at about 30%battery... You can clearly notice the change, I hope this info is useful and just tell me if you want to try something else, I'll be glad to help in any way
[Samsung Gear 2] Lord AnubiS:
How do you see your battery stats on the phone?
[Samsung Gear 2] alvaromartinezb:
Go into the android wear app, click on the watch settings, click the watch name and there you will see a battery section... Then click the home button on your phone, go into XDA or alternately open it on your computer, and when you want to ask something, use the Q&A thread please :D
[Samsung Gear 2] Lord AnubiS:
Ok, ok, sorry... :o
[Samsung Gear 2] bitstra:
IR device - direct access

[MENTION=803006]biktor_gj[/MENTION],

No luck wit direct access on IR device...

tried the following write command:

(power off cmd for samsung tv)

root@b2:/ # echo "38000,172,171,21,65,21,65,21,65,21,22,21,22,21,22 ,21,22,21,22,21,65,21,65,21,65,21,22,21,22,21,22,2 1,22,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21, 22,21,65,21,65,21,65,21,65,21,22,21,22,21,65,21,65 ,21,22,21,1673" > /sys/class/sec/sec_ir/ir_send

result:

sh: can't create /sys/class/sec/sec_ir/ir_send: Permission denied

looked for chown/rights:

root@b2:/ # ls /sys/class/sec/sec_ir/ -all

result:

1|root@b2:/ # ls /sys/class/sec/sec_ir/ -all
-rw-rw-r-- root root 4096 2015-07-13 10:06 check_ir
[COLOR="Red"]-rw-rw-r-- system radio 4096 2015-07-13 10:02 ir_send[/COLOR]
-rw-rw-r-- root root 4096 2015-07-13 10:06 ir_send_result
-rw-rw-r-- root root 4096 2015-07-13 10:06 irda_test
drwxr-xr-x root root 2015-07-13 10:02 power
lrwxrwxrwx root root 2015-07-13 10:06 subsystem -> ../../../../class/sec
-rw-rw-r-- root root 4096 2015-07-13 10:06 toggle_rst
-rw-r--r-- root root 4096 2015-07-13 10:02 uevent

could we "chown root root /sys/class/sec/sec_ir/ir_send" in init.rc at boot - maybe, so we can get it working... ???

Or any other idea?

Edit: The best way would be though the use of systemService/HAL, because i have to rewrite all all blaster/send command for the use of echo "xxx,xxx,..." > /sys/class/sec/sec_ir/ir_send. To convert all written hex command sets(blank delimited) to Integer (comma delimited) ...
[Samsung Gear 2] biktor_gj:
I fixed the hal issue! now it's booting, but I don't know if it works, I tried with 2 tvs and no result... Image is uploading with your apk and hal bundled in...
[Samsung Gear 2] bitstra:
Please don't bundle my 'old' apk - I have a newer one here. The old app maybe using a debug device for testing only!

---------- Post added at 11:07 AM ---------- Previous post was at 11:03 AM ----------

Will upload the newer apk today afternoon, out oft town now! :angel:
[Samsung Gear 2] McGuigew:
I've been testing always on screen yesterday and today and it seems like a full day with it is impossible. Always on screen will still be useful as a temporary solution if we need to see the time very often for some reason and not for too long :) however, it is now working perfectly!
[Samsung Gear 2] emuandco:
Test of today.

Started off PSU @ 07:30. with 100% battery.

@ 11:30 49% battery left, so... about 8hrs are possible right now.
[Samsung Gear 2] McGuigew:
Yep, I dont interpret that as viable, but that's only me !
[Samsung Gear 2] emuandco:
Btw, your app in the version biktor_gj added hates DPI settings like 200 dpi ^^

AAND it does not show up in Wear Mini Launcher, only in the settings/G+ menu

EDIT: OK... now it is in Mini Launcher ^^
[Samsung Gear 2] bitstra:
Where to download this bundled tar?

---------- Post added at 02:28 PM ---------- Previous post was at 01:58 PM ----------

[/COLOR [MENTION=803006]biktor_gj[/MENTION],

Do I have any chance to test/debug my new IRremote app with consumer IR / HAL before uploading ?

Edit:

Got it - didn't see new PMs - LOL Thanx [MENTION=803006]biktor_gj[/MENTION] and [MENTION=1992533]emuandco[/MENTION]!

Flashing now and testing the 'new' apk... (fingers crossed too!)
[Samsung Gear 2] jeffc83:
I'm getting about the same. (7-9 hours with screen always on) Biktor_gj, sleep is currently disabled when the screen is set to always on due to the amount of conflicts, correct?

[MENTION=2981094]bitstra[/MENTION], I'm keeping my fingers crossed for you, let's hope this works!!!
[Samsung Gear 2] McGuigew:
Also, I would like to report connection issues. Often, when I want to perform OK Google commands, the watch ends up telling me that it's not connected. Am I the only one going through this? Sorry I don't want to be negative, I still love it as it is!! :o