yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] McGuigew:
OK thanks for your answer. This is already a massive step achieved :highfive:

I hope someone can help with the rom port!
[Samsung Gear 2] kavinzhao:
One step away. The work you done must mean a great deal to Gear 2 owners. And how about API21? Posted some links for you. Anyway just keep doing with CM11 before a usable one is ready. Thats Greatttttt work!!
[Samsung Gear 2] biktor_gj:
I got the image you posted but couldn't unpack it (the zip has an image file that I cannot mount, I'll have to try with simg2img and see if I get lucky). Still haven't paid much more attention to it since I was working on the kernel and recovery, and, as you can see, I'm still a bit busy with it :P.

** HELP **: While playing around I've f****d one of the tizen partitions, and I have no way to restore it. The partition I was going to use for cache is system-opt, and that is not restored after a full flash, so now I'm stucked unable to boot to Tizen. I will not post the recovery as is, as I don't want to be responsible of anyone's bricked watch, but I need anyone with a rooted watch to do something for me...

Can anyone post me a copy of that partition?

With your rooted watch, I'll need you to run:

sdb root on

sdb shell

cd /opt/usr/media

dd if=/dev/mmcblk0p13 of=./partition13.img

exit

sdb pull /opt/usr/media/partition13.img .\partition13.img

I had a copy of it but it seems it's corrupt... and I'd really like to see the time ;)

If it does work, it'll leave you with a 131Mb file called partition13.img. Zipped it should be less than that, 5-10Mb approx. Can anyone send it to me?

Thanks in advance!
[Samsung Gear 2] soylomass:
I'm back home at night (it's 11:50 am now). If by that time no-one uploaded it, I'll root my watch and do that. It's a Gear 2.
[Samsung Gear 2] banishedmonk:
And I'll back him up. My watch is at home and I have classes until 9pm est (about 9 hours later)
[Samsung Gear 2] biktor_gj:
Thank you guys, I just fixed it :)

I'm going to write a book on how to break things until it seems like there's no return and then messing around even more until it works.

I'm going to make a brick-recovery image including all the necessary partitions to bring it back to life just in case.

What I've done (just in case someone breaks it *this* much):

Using the TWRP image:

1. Reformatted system-data partition (mmcblk0p13)

2. Reformatted user data partition (mmcblk0p14).

3. Mounted rootfs on /system

4. Mounted system-data on /system/opt

5. Made a directory called 'usr' inside /system/opt

6. Mounted user-data partition on /system/opt/usr

7. Copied /usr/system/RestoreDir/opt.zip to /system (Guess what, there was a zip for that!)

8. Unzipped the file and let it populate both partitions

9. sync'ed and rebooted

10. Reflashed tizenmod

11. After unsuccessful boot, entered bootloader and then recovery.

12. Tizen restored defaults and now it's on welcome screen.

Not bad, huh!
[Samsung Gear 2] McGuigew:
Well, I can help too if you have any simple problem in the future:p
[Samsung Gear 2] biktor_gj:
Okay, here's the recovery:

http://www.mediafire.com/download/33otr8jie2tnptf/recovery_fota_cache.tar

DO NOT USE THE WIPE DATA FUNCTION

I've changed the problematic partition to avoid mistakes but you never know what can go south. This image is specially useful for people who want to tinker with boot images and need an ADB environment to recover logs, and to make different tests.

* Resolution is fine

* Touchscreen works

* ZIP install should work, and the fstab reflects the actual partitions that will be used by the bundled kernel

* Backup works, restore should work too :) (not tested, be careful)

* USB / ADB works (Sideload should work too)

* Partition used:

"modules" partition (Partition #8) is used as the boot device, and the main kernel as the boot kernel. If you simply flash a tizen kernel it will boot straight to tizen on the next reboot.

Recovery.fstab:

/boot emmc /dev/block/mmcblk0p9
/cache ext4 /dev/block/mmcblk0p10
/data ext4 /dev/block/mmcblk0p14
/efs ext4 /dev/block/mmcblk0p3
/recovery emmc /dev/block/mmcblk0p8
/system ext4 /dev/block/mmcblk0p15

I jsut saw recovery should say ext4 not emmc, but don't worry too much about it ;)

Once flashed, the watch will enter a bootloop because it will try to boot Android. As you don't have Android on your watch, keep the power button pressed until it does a hard-reboot, and enter the bootloader menu, then select Recovery.

ADB drivers: Once detected by the OS, if you use Windows, you might have to manually tell it to load Android ADB USB driver. You can use the one from Android SDK, it will work fine.

Tizen will not boot with the bundled kernel, so, after testing, get your watch back to a working state by flashing either a kernel or the full tizenmod package.

When I get some more time I will post the libraries, a full restore package and the boot image template as promised.

One important thing I forgot to mention before:

All the kernels try to load init from /sbin . I will change that in the next commit, but until then, on your boot image, place a copy of the init binary there, otherwise the kernel will panic because it can't find it!
[Samsung Gear 2] biktor_gj:
What could this be?

Is it...

Android wear boot animation showing up?

Yeeees!

S3C-Framebuffer + Android's OpenGL + HWComposer is working!

Now it gets to a bootloop with the audio libraries failing to start. Let's see if I can fix that too, but this means I have a working video library set :)

As GladOS would say...

[geekmodeon]

Federal regulations require me to warn you that this next test chamber...

is looking pretty good.

[geekmodeoff]

Logcat --> http://pastebin.com/8yku20in

Now to get audio up & running ;) *flies away*
[Samsung Gear 2] AntwonJenkins:
Pardon my French but you sir are the sh!t.
[Samsung Gear 2] tnbx:
Sounds really promissing , i still like this watch , thank u for ur eford
[Samsung Gear 2] biktor_gj:
A little more, but it's not booting yet.

Now it detects the audio device, it seems like it turns it on even, and then after some time the 'mediaserver' dies, without saying a thing, and the watch enters a bootloop while waiting to the audio policy manager to finish starting (which in turn, is waiting for the death mediaserver process)

http://pastebin.com/2hXJCJea

If anyone sees something I'm not seeing, please say it so ;)
[Samsung Gear 2] Spartaner25:
When i was porting Android for a device, it helped me more to take a look at the tombstones at /data/tombstones, than using "only" logcat.

The tombstones tend to include a few more infos, maybe there is a tombstone for the mediaserver, too?
[Samsung Gear 2] natefish:
Just got through reading several pages of this thread. It reads like a labor of love from a passionate person who will inevitably be victorious. Great work so far! I can't develop or code, but I've been around this community long enough to know you are doing some great stuff. I'll have my donation ready, for sure.
[Samsung Gear 2] biktor_gj:
Welcome home

Welcome home, Android

I've spent four months searching for you :)

We still have a lot of work, but it's nice to see you finally showing up!

Edit: Logcat here -> http://pastebin.com/rSPLTCrX

*flies away to repair all the crashing stuff*
[Samsung Gear 2] markvann:
biktor_gj, I've been following this thread since the moment you placed your first post here.

I'm so happy that someone with coding skills is cool enough to try to help the whole Gear2 community.

It's great that you're telling about each form of progress that you're making in this huge project!

Thanks for helping us. Amazing that Android Wear boots now, and I guess we will hear a lot about it in the future, as I'm fully convinced that you will manage to let it run perfect in the future!
[Samsung Gear 2] Jeshter2000:
You'll be featured on SamMobile!

Edit: Published: http://www.sammobile.com/2015/04/24/developer-gets-android-wear-running-on-the-samsung-gear-2/
[Samsung Gear 2] Razor29:
Amazing work, i applaud you sir !!
[Samsung Gear 2] gingerdude:
Congrats your hard work and diligence is paying off, just been reading the sammobile article. ..you deserve your moment in the sun. Cheers
[Samsung Gear 2] biktor_gj:
Which watchface are you using?
[Samsung Gear 2] jeffc83:
I have approximately 40+ faces loaded into watchmaker and pushed them all to the watch. (lol, my poor Urbane has just under 500 loaded in it since I am a watchaholic) None of them are complex nor do they track anything such as steps, heart rate, etc. since they are known battery killers. (I make my own faces and post most of them on Google+) Sometimes, I will use faces that I downloaded from the Play Store but since they don't make any difference with battery life, I rarely use them. Watchmaker is solid and I use it on all of my smartwatches:) I'm sure that the best face will always be the simplest one but the heck with doing that, I want to enjoy my watch face creations, LOL;)

UPDATE: Hour 2.5 and and battery drain with always on is slowing down! Now at 4.5% drain per hour. Thanks again biktor, that'll easily get us through the day! Aaand hour 3, it is dropping even more...now at 4% drain per hour, which matches all other watches. To me, the drain is back to normal with always on active:)
[Samsung Gear 2] stephane.papin:
Language ?

Hi very nice port. Does rom have another language than EN ? like FR ?
[Samsung Gear 2] Alxoom33:
Does r3 include the new IR remote.apk that was posted yesterday? Thanks for your wonderful work!
[Samsung Gear 2] McGuigew:
ROM includes all languages supported on Android Wear, just make a full wipe and you'll get to choose your language.

La prochaine fois, pose tes questions sur le fil Q&A :)
[Samsung Gear 2] biktor_gj:
It's just the kernel, once debugged I will pack [MENTION=2981094]bitstra[/MENTION]'s wonderful app and post a full flash pack ;)
[Samsung Gear 2] annson08:
Got my watch back from service center in less than 72hrs, they replaced the entire watch exept for the strap. Good thing I claimed the warranty 10days before expiration haha.

Am back on android immediately after getting home.

Anyway [MENTION=2981094]bitstra[/MENTION], may I suggest opening another thread for the IR remote app? That way all the discussion and requests regarding that will be easily read and also to properly address our thanks to both you and [MENTION=803006]biktor_gj[/MENTION] on the separate developments?
[Samsung Gear 2] McGuigew:
Good idea +1

This way, we can properly thank [MENTION=2981094]bitstra[/MENTION] and ask him to add our cable or TV to the app :laugh:
[Samsung Gear 2] bitstra:
Thread for 'IR remote Gear2' opened -> http://xdaforums.com/gear-2/development/app-ir-remote-gear2-t3159520#post61912289

---------- Post added at 07:19 PM ---------- Previous post was at 07:17 PM ----------

[MENTION=803006]biktor_gj[/MENTION]

my response to battery life with kernel r3:

"screen always on" -> OFF + "NORMAL" USAGE - used 11% in about 6 hours :good:
[Samsung Gear 2] bounddyy:
Hey guys how do you reconnect to your watch after a phone restart or watch reboot? Both my phone and watch are on but both of them are not connecting to each other I do see the Gear 2 being paired on my phone but it doesn't do anything when I tap on it.
[Samsung Gear 2] McGuigew:
Q&A thread please.

---------- Post added at 08:26 PM ---------- Previous post was at 07:40 PM ----------

@biktor not sure if this is what someone else reported, but I get my ambient mode going from normal colors to that 4 bit thing. It goes back and forward every 2 seconds or so, very random... I am on aeris weather watchface and it is unusable as it is...
[Samsung Gear 2] jeffc83:
[MENTION=5622621]McGuigew[/MENTION] - I reported it this morning but thanks for confirming:)
[Samsung Gear 2] McGuigew:
[MENTION=554771]biktor[/MENTION] I suggest you use aeris weather watchface, I think it is a good one for seeing bugs ;)

[MENTION=2808427]jeffc83[/MENTION] yep, I thought it would be useful anyway :highfive:
[Samsung Gear 2] biktor_gj:
Guys, please give me a watchface that I can download to try it on, all the watchfaces I use run correctly!!(tried stock, samaritan, runner, torque and a few more)

I don't see it blinking either, it does the same when you set a stock watchface too?

By the way, by popular demand, I will try to make MTP available on the next build
[Samsung Gear 2] martreintje:
You could try the wear media app

with the wear media app you can sync files true a file browser on the phone, you can also see the map structure of the watch that is currently connected and sync audio and images to every folder on your watch.

it also has a media player that works on android wear with internal speaker.

and a galary/image viewer.
[Samsung Gear 2] McGuigew:
I suggested the aeris weather watchface which is totally wrong, I meant Instaweather :)
[Samsung Gear 2] biktor_gj:
Ok, now I see it, thanks!

I will keep the limited screen refresh, but disable the color depth downgrade for all that energy hog ambient displays ;)

How's battery going after a few hours?
[Samsung Gear 2] jeffc83:
I hit 85% after 5 hours then decided to charge it back up for the evening...this is with the screen always on! How it drained just 3% an hour with the screen on, I do not know;) If you disable the "color depth downgrade", it will be perfect!!!
[Samsung Gear 2] McGuigew:
Sorry, I was very busy today and did not check hours and battery left when I flashed. My impression is that it's either the same or better which is good already :) you're on your way to a fully usable ambient mode :good: I will give better details regarding battery tomorrow
[Samsung Gear 2] biktor_gj:
I'm really not too sure how it worked so well ;) the lower depth is just a line of code so it's easy to correct!!
[Samsung Gear 2] youngpro83:
Battery life on the newest R3 is better than the rest. I have always on enabled. Priority notifications. Turned off google now cards. Disabled wifi sync. From 11am to 5pm I am down to 77%. More would be better but this is looking like at least a days worth. If I can get 24 hours out of it that is a major improvement from the 5 to 6 hours I was getting before.
[Samsung Gear 2] jeffc83:
Sometimes one line of code can make it or break it;) Thank you for changing that line, I am excited to get FULL ambient mode back:D I also see that [MENTION=1850243]youngpro83[/MENTION] is experiencing similar results (3.83% an hour), which is good to know that my watch isn't possessed!
[Samsung Gear 2] aguiamaster:
One stupid question, best way to send the r3 to the watch and flash?

Enviado do meu SM-N9005 através de Tapatalk
[Samsung Gear 2] McGuigew:
Not stupid, but in the wrong thread : go to Q&A thread :D
[Samsung Gear 2] aguiamaster:
Ok thx, btw good work developer, its wierd how can your rom at this watch holds alot more time then my 360 in battery, google should hired you

Enviado do meu SM-N9005 através de Tapatalk
[Samsung Gear 2] alvaromartinezb:
Hey guys!

That's very cool! Thank you [MENTION=803006]biktor_gj[/MENTION] I will do the video about this update once the full package is finished (makes it a lot easier for a lot of people) I'll try it out right now!
[Samsung Gear 2] McGuigew:
Bug report : just woke up and thought I would try to start always on screen with a 100% battery at 11am to test the battery, but when I activate the always on screen, it just doesn't activate it, the screen goes black. Even a reboot does nothing :/
[Samsung Gear 2] dmitry.matora:
I was so excited to be able to put android wear to my gear 2

Now when i did i am shocked that this superior system not only works 20 hours instead of 2-4 days (which i knew), but also can not place or receive calls without picking phone from bag (which was a huge surprise for me)

Going back to tizen until google or someone else solves wrist calls
[Samsung Gear 2] emuandco:
Android Wear is faaaar superior to Tizen in most ways. But as you might/should know NO official Wear watch has a speaker at all, so... how should this have worked anyway?
[Samsung Gear 2] jeffc83:
His loss...would be nice to make calls from the wrist but obviously it is not needed and is sort of gimmicky. I might have used it 3 times total and people stared at me two out of the three, lol. To each his own but I certainly don't need it.

FYI: Screen went black on me overnight with screen set to always on, off charger. (on the plus side, it drained 3.6% an hour) I touched the screen; nothing. I hit the button; nothing...I started holding the button down to reset it and the screen came back on. I have to think that it was doing something in the background, maybe updating? I've had similar issues with my other smartwatches so it could be a wear bug. Biktor is absolutely right, we all need to reboot once a day to keep the watch stable. My Urbane is the worst and will freeze if I don't do that daily reboot:(
[Samsung Gear 2] dmitry.matora:
I never used android wear before, so this was last thing i expected. And i am still shocked. There apps on android wear that make sounds, apparently the os is not one of them.

Like? After playing with it for a couple of days i really see not much difference. Android wear has much bigger potential, but so far tizen looks more appealing.

---------- Post added at 11:14 AM ---------- Previous post was at 11:14 AM ----------

My wife uses it all the time. And she forced me to put her back on tizen just because of that single reason.
[Samsung Gear 2] jeffc83:
^^ You HAVE to please the misses, understood;) I would've done the same thing! If it makes you feel better, I can't flash my Gear 2 because it was a gift from my other half, LOL. (Thank god I bought a Neo) I should be able to convince her once everything is working!
[Samsung Gear 2] emuandco:
Well, I prefer other things as it seems. I used it to reply to calls sometimes, too, but it was way too silent and yet non private to be of much use for me. I am now used to use my watch for replies to our GSD DocuFrame CMS [MENTION=408485]work[/MENTION]. Sitting somewhere in between some 19" server racks makes it really useful in this case. ^^ Sure, phone calls would be nice there, too. But I tend to have my calls on my Note3 + a notes app to make important notes while calling some provider or hw manufacturer. (Yes, I measure the watch by it's usefulness @ my job, because privately it's a nerdy gimmick for most of my friends anyway meaning they don't care about the features at all and it's not of any use @ my favorite pub next to 3 Maß of b33r :P )

Why it's far superior? Well, many apps support the mentioned reply features and Tizen does not care about it at all. The way messages are shown is much better, too. Screen always on is even more of a use. Regardless if you can look at the screen directly or maybe someone else next to you... It just does it's job as watch. And yeah, you are right, there are apps with sound, but these are made for a attached headset by default.
[Samsung Gear 2] diamantericos:
The call feature is user preferred . Like me for example I like how I can just say answer if I'm busy doing something and keep working my boss liked it too I answered a call and still kept doing my job. On another note I don't minds sacrificing I'm a serial flasher for years I love new things. So I will try This
[Samsung Gear 2] Redmen:
100% battery. After one hour playing a little i had 87% left.

Left in on the table for 7 hours, picked it up and it drained about 15%.

Now i still didn't touch the watch but my phone is close to the watch, drained 44% in 1 hour without touching the device (except check battery stats)

Screen always on, Wifi cloud sync on, no weather watchface.

While posting this it drained 3%.
[Samsung Gear 2] annson08:
Here's my average usage.

I have minimal & elegant watchface. Screen always on is off, wifi cloud sync is off (coz our watch doesn't support wifi). Screen brightness at level 3.
[Samsung Gear 2] Redmen:
Almost 50%, 6 hours left.

I actually noticed that the big draining was extra weird cause i didn't have bluetooth enabled on my phone when i left it on the table.
[Samsung Gear 2] jeffc83:
I wanted to reboot myself and that is what caused the issue for me. (I duplicated it on mine by simply selecting restart) It does reboot but then goes into a loop rendering the touchscreen useless...screen will go black then come back on briefly but is frozen. To fix it, I held the power button to reset then in the BL menu, I selected POWER OFF. When I turned it back on, everything was back to normal. I repeated this process to duplicate it again and every time I restart, the watch goes into that loop after rebooting! Only way to get out of it is to shut down and then restart. Any thoughts [MENTION=803006]biktor_gj[/MENTION]?
[Samsung Gear 2] martreintje:
check this site for your answer..

http://www.techtimes.com/articles/61529/20150619/google-acknowledges-android-wear-5-1-1-bug-causing-battery-drain-issues.htm
[Samsung Gear 2] Redmen:
Thanks but i'm aware of that bug.

Haven't had any large draining before going to build R3. Before that flash the watch could easily hold it for 2 days.

And it's kinda strange that the watch used so many battery when it was not connected to my phone and that the large draining stopped after i reconnected te watch.
[Samsung Gear 2] crime_of_heart:
Disable "Wifi cloud sync" as we do not have wifi. This is probably the cause of the draining.
[Samsung Gear 2] alvaromartinezb:
My screen also went black over night, and mine was actually connected... Probably if it doesn't detect motion the screen goes black... Because it woke up right away, and in the whole day that I've been wearing it always on has worked flawlessly. (Still have 48% after 7 AM - 5:30 PM, I started at 100)
[Samsung Gear 2] biktor_gj:
Ambient mode works for 4 hours or so, then if you don't touch it, it sleeps, unless there are notifications, alarms or events (tilt wake, disconnect/reconnect etc) within that time. The strange thing is if it doesn't come back, like some have reported, but that's another story...

Without touching it, my watch has gone (ambient mode) from: 92% at 11:27 am to 58% at 12:29 am
[Samsung Gear 2] titusxperia10:
Hi there guys, been using this great rom and everything in it is just great, to the point that switched from my touchwiz rom to a cm12 rom to have the complete nexus and google expierence, and couldn't be happier. Anyway just to report some rare battery drain, as a crewmember I spend some good average hours in airplane mode, and with that config both phone and gear with official roms had very little batt usage, the funny thing is that with release 12th my watch seems to eat battery faster when phone in airplane mode despite it remains paired at all times. Disconnected watch at 3 am, turned it off for a couple of minutes (same with the phone) at 5 am with very little usage 80% and through the day at 5 pm is only with 17% left. Here my setup: Hand gestures disabled, wifi of course disbaled, screen on all time is off, a48 and f05 watchfaces used ramdomly with just weather updates set every 3 hrs, not using biometrics, and location history on for google fit. On the phone side, drain is liitle more than tw but not to much.

About to flash 13th latest release and see how it goes, by the way, all my flashings had been clean ones :D Thanks for terrific work and some love in its way in next pay day :good: Thanks!
[Samsung Gear 2] alvaromartinezb:
Hey guys! Just found out something interesting:

Most of my drain comes from the misselaneous thingy... Do you think this is related with a lollipop issue? (Back when Lollipop was still in beta, this was the biggest issue for phones... They did solve it on the final release for phones, but they didn't on watches? :eek:

BTW: thanks for the good wishes on payday ;) good luck for you too!
[Samsung Gear 2] diamantericos:
Funny thing about the battery drain I just flashed this port today for the first time . While I was home for about 4 hours the drain was ridiculous like a percent a minute I had to charge my watch 4 times in 4 hours . Now this is the strange part I went to work it's the drain stopped for 3 hours I was at 73 percent for those 3 hours I almost thought the watch wasnt working lol. Them I left work and drain started again crazy crazy ****