yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] yhaddad:
The size of zImage in all neo firmware is 3.5 MB and this is 8MB, what is the problem ?

---------- Post added at 08:47 AM ---------- Previous post was at 08:30 AM ----------

I did all your steps, Erros:

net/netfilter/xt_connmark.c: In function ‘connmark_tg’:

net/netfilter/xt_connmark.c:51:14: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:52:7: error: ‘XT_CONNMARK_SET’ undeclared (first use in this function)

net/netfilter/xt_connmark.c:52:7: note: each undeclared identifier is reported only once for each function it appears in

net/netfilter/xt_connmark.c:53:30: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:53:46: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:59:7: error: ‘XT_CONNMARK_SAVE’ undeclared (first use in this function)

net/netfilter/xt_connmark.c:60:30: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:61:30: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:67:7: error: ‘XT_CONNMARK_RESTORE’ undeclared (first use in this function)

net/netfilter/xt_connmark.c:68:31: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:69:29: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c: In function ‘connmark_mt’:

net/netfilter/xt_connmark.c:104:26: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:104:41: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c:104:55: error: dereferencing pointer to incomplete type

net/netfilter/xt_connmark.c: At top level:

net/netfilter/xt_connmark.c:129:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_tginfo1’

net/netfilter/xt_connmark.c:140:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_mtinfo1’

make[2]: *** [net/netfilter/xt_connmark.o] Error 1

make[1]: *** [net/netfilter] Error 2

make: *** [net] Error 2
[Samsung Gear 2] biktor_gj:
I have no idea why it's giving you all those errors, all the kernels I've built are 3.6-4.1 Mb in size, not 8.

If it's of any use, I'm using gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) on a 64bit machine...
[Samsung Gear 2] yhaddad:
I got these errors after replaced the make file you attached.

---------- Post added at 09:05 AM ---------- Previous post was at 09:02 AM ----------

maybe this is the problem?

gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2

What I need to do ?
[Samsung Gear 2] biktor_gj:
One step at a time... (things start to work out a bit ;))

Sorry for the blurry picture, this screen is too small for my phone...
[Samsung Gear 2] sauliiin:
Woooooooooowwww! Anxious here! Great work, friend!
[Samsung Gear 2] sander2010:
I have respect for your effort to make it work! Keep up the good work :good::good::good:
[Samsung Gear 2] Hearten S:
Amazing work!

I am really looking forward to it!
[Samsung Gear 2] McGuigew:
[IMG="Thanks button"]http://www.pix-host.com/allimages/27925963.png[/IMG]
[Samsung Gear 2] jeanmarctarabay:
coolllllllll
[Samsung Gear 2] AntwonJenkins:
In the end will you be providing the common man as myself with a flashable zip file to install through twrp or some other custom recovery? If not I'm begging now.
[Samsung Gear 2] gypsy214:
I have a question to the OP.. Is this gonna be a port or a convertion from Tizen to Android?

Meaning at the end of the day will users be able to flash back and forward? So far what I been reading it looks like a convertion. You changed partition and bootloader in order to read Android.
[Samsung Gear 2] biktor_gj:
What I'm trying to get working is a common base so ROMs can be ported. I'm still not paying much attention to Android itself, my roadmap is as follows:

1. Kernel running, with all the minimal options working (that is Video, USB, Touchscreen & bluetooth) (I'm here and at point 2, mixed a bit)

2. Get a recovery environment running, to get people with better android background than me help with an initial android port.

--> When I have this working, or if I end up desisting, I will post the kernel source on Github along with instructions to build it, and an ODIN package with the kernel and my recovery so people can test it and improve it (unless someone asks for it first, of course)

3. Attempt to get Android running: if I manage to get it done, I will post it too as an ODIN package. ZIP support will come from recovery, and it will be available if people starts porting ROMs for this watch.

About conversions/ports: I don't touch critical areas of the watch. A simple reflash of a full package restores Tizen along with all its functionality intact. That's how I'm reverting everytime I mess it up. In fact, I made a Tizenmod package with the kernel and other stuff included so I don't need to flash stock, then tizenmod, then get back to tests. If anyone needs it tell me and I'll post it too
[Samsung Gear 2] bitstra:
A2DP --> Bluetooth headphones works!

[MENTION=803006]biktor_gj[/MENTION],

Play Music offline via Bluetooth Speeker / Headset works!
[Samsung Gear 2] Gabri98:
Anyone tell me if working sensor when go back to tizen ? Because i want to install lollipop but if i return to tizen destroy all sensor and reinstall lollipop working ?

anyone reply my message thanks very much
[Samsung Gear 2] alvaromartinezb:
I tried yesterday going back from the last KitKat build, but I haven't tried from lollipop... Let me try. What do you think [MENTION=803006]biktor_gj[/MENTION] ? Might work? Or not even worth trying?

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] biktor_gj:
AMAZING

Now if I manage to fix the audio and the screen on&and dimming, it will be... Spectacular!
[Samsung Gear 2] biktor_gj:
If it worked with Kitkat, it WILL work in lolipop, no need to try, it is safe to flash!
[Samsung Gear 2] McGuigew:
This thread is making me crazy!!! Are you uploading the full new build Biktor? :highfive:
[Samsung Gear 2] Darth Ziggurat:
I am looking forward to using Circle with the always on screen, going to black and few pixels visible taking advantage of the OLED screen :) But I expect to use more battery than now :/
[Samsung Gear 2] bitstra:
Hier is a Download Link to my Custom watchface, that I metioned yesterday :) : https://www.androidfilehost.com/?fid=24052804347765502

Installation via Phone/wear comapanion app / It will be free for all users in this amazing thread!

I just wanted to give something back to [MENTION=803006]biktor_gj[/MENTION] 's work ...:good:
[Samsung Gear 2] alvaromartinezb:
I'm going to check it out right now

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] biktor_gj:
Thanks mate! I will try it when my watch is back alive ;)

Image packed, uploading now, will edit when it's done!
[Samsung Gear 2] bitstra:
Man you are so fast - amazing!

[MENTION=803006]biktor_gj[/MENTION] ,

BTW: seems 'SCREEN_ALLWAYS_ON" works fine, when USB is connected - wanted to let you know that!
[Samsung Gear 2] biktor_gj:
Image is ready!

First post updated, but for all of you who just look at the last page :)

Working:

Boot

USB (adb is the only thing enabled, but it's by choice -Other wear devices don't have MTP support, so leaving it as is-)

Display (Software rendering, OpenGL and mixed compositions)

Battery reporting and charging

Oportunistic Sleep (kernel)

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

Vibration

Heart Rate Monitor

Accelerometer sensor

Step counter

Gyroscope (this includes tilt to wake)

Power management: partial, PowerHAL is working for devfreq, still some issues (screen always on makes it crash)

Basic TWRP recovery functions

Not working:

IR

Camera

Screen dimming

If set Screen to always on, the kernel crashes trying to put it to sleep (there's a war going on in there)

Audio. Whatsoever. No mic, no audio out, no nothing

Touch wake after wiping system when coming from Kitkat

Anything that's not specifically put as "working"

Fixes from this morning

* Poweroff / Restart hangs

* Recovery

Full flash package: can be used to go straight from Tizen to Wear:

http://www.mediafire.com/download/bmcjbaikve5sob2/Gear2_Wear_Lolipop_5.1.1_06292015.tar.zip
[Samsung Gear 2] McGuigew:
I am on KitKat, would that mean that if I switch to L, I lose touch to wake? I love it :-/
[Samsung Gear 2] biktor_gj:
[MENTION=3962546]AltCtrl701[/MENTION] didn't wipe and he's running lolipop.. You can try ;)

It's on the fix list though, so it will come back eventually...
[Samsung Gear 2] bitstra:
Yes, I lost it this way...

If you want to stay on KitKat - I have made a helper App, that lets run all the watchfaces on the KitKat Rom (EGL issue) !

It creates an ongoing notification with opening framebuffer. This is a permanent Notification card that cant wiped away(accidently). - The funny thing was - I have finished it wen the Lollipop ROM poped up, Ha, Ha, Ha...

If you are interested - quote this post here..
[Samsung Gear 2] Samkitpalecha:
Ok so I flashed the latest build. It gave me some warning on odin for Invalid Signature: Boot but everything is working fine. Thanks for the awesome update. I would have died with tizen :)
[Samsung Gear 2] alvaromartinezb:
Yeah I installed without wiping and it worked perfectly, but indeed touch to wake is dead... I really don't miss it that much, I got used to tilt to wake so it's even easier...

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] bitstra:
Just a reminder: 'SCREEN_ALWAYS_ON' runs with USB connect for 1 1/2 hour now without issues !
[Samsung Gear 2] emuandco:
You should add a setting to switch from Fahrenheit to Celsius, but nice one ^^
[Samsung Gear 2] mikaeldalc:
(New build) Ran into an issue. I was switching the watch face from the Wear App and my screen went all colorfully pixelated.
[Samsung Gear 2] bitstra:
On Phone in Android Wear (companion app) - you can switch this already - Tap on the selected watchface in android wear and there comes a setup page for temp. and 12/24 hour clock - this will be integrated into the watch setup view later too...
[Samsung Gear 2] McGuigew:
Thanks guys, but I flashed L finally, I was too curious not to... :)

I lost Touch to wake, but I am enjoying many new features! I hope touch to wake will come too! Lollipop is very beautiful and smooth!
[Samsung Gear 2] emuandco:
10703 Score in Antutu ^^

Btw, accoding to Antutu we have a compass:

Asahi Kasei Microdevices AK8963C Magnetic Field Sensor
[Samsung Gear 2] alvaromartinezb:
Nice score! And... Uhmm... That's weird...

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] emuandco:
I sideloaded Osmos to the Watch and theres something strange. The watch face shines semi transparent through the full screen game. Did not happen for Antutu
[Samsung Gear 2] daroota:
Latest build that posted today 6-29

Bug:

I tried to turn off Gesture wake, but it continues to wake on gesture even though it shows off.
[Samsung Gear 2] alvaromartinezb:
The gestures option in the watch settings is for the flick-to-switch-card feature... Of you want to stop the watch from waking up, put it into theater mode or turn off the tilt to wake screen in the android wear app! Go into your watch settings (on the app) , click on the name of the watch, and you will find the button there... That one works

Sent from my Nexus 5 - Android M developer preview 1

---------- Post added at 02:22 AM ---------- Previous post was at 02:20 AM ----------

Hey guys, one question of a possible bug, not sure if it's my phone or the watch... But when I play a video on YouTube through my Chromecast I get a message that Android wear has stopped... I don't know if it's because of the watch, or because I am running Android M... Can anyone help me try it?

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] DAGr8:
If I leave screen on option, on boot its fine but the minute I wake the watch with tilt its pixelated screen and only reboot will work. Not sure if it's only when using tilt but yea...
[Samsung Gear 2] alvaromartinezb:
No, that is the always on bug... It happens when the screen is in always on and it tries to sleep... Something crashes and that happens. To avoid the issue, turn off always on... We are working on a fix

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] jkeith1:
Looked the best I can. Is it possible to use the watch as a phone with wear. Anything similar to tizen? I have both the gear 2 and motor 360. I like the gear better for that reason.
[Samsung Gear 2] alvaromartinezb:
Well, that's a tough question, because apparently, no Android wear device has built in speakers... And Android wear doesn't support built in speakers as of right now. Read this article:

http://9to5google.com/2015/05/18/android-wear-rumor-speaker-calling/

Possibly in Android M, watch calling will be supported for new models.

So, by what we know so far it's not possible... Right LG?

Because then I found this companion app from LG:

https://play.google.com/store/apps/details?id=com.lge.wearcontacts

That says it enables calls from your phone without even taking you watch out.... I think they just made a dialer and contacts app based on a comment I found (screenshot attached)

In summary, I think it's possible... Perhaps not on lollipop, when built in speakers are supported, we will be supported...

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] Alxoom33:
That's disappointing!
[Samsung Gear 2] biktor_gj:
Tiny update on brightness control:

The code I was working on yesterday starts to work. I can put it on max brightness, lowest, and different shades of red and blue :)

If I find the hex codes for the correct gamma levels of each brightness setting, by the weekend we may have a working brightness setting!
[Samsung Gear 2] alvaromartinezb:
Yay! Great new... any way i could help? I can help you look for the Hex codes
[Samsung Gear 2] emuandco:
Interesting sidenote. When I wiped my Wear after 5.1.1 flash and it tried to sync my apps, Screen always on was still active like always by default. It seems like it can be revived from rainbow of death by plugging it into the charger, at least it worked here twice.
[Samsung Gear 2] biktor_gj:
Don't worry mate, only have number #3 to fix :)

Level #5:

Level #4:

Level #3:

Level #2:

Level #1:

It will be interesting to see how battery life is affected with actual brightness control!
[Samsung Gear 2] Darth Ziggurat:
This is definitely good to have in place before always on is fixed :)

No point in rushing to release this fix just to release it asap, but if you get a hold up and cant put aside time to find the last codes for nr 3 for a good while, I don't think most people would be angry if you released with a bad #3 setting :P
[Samsung Gear 2] kavinzhao:
Update to Lollipop doesn't need a data wipe..at least for me.

I noticed the logcat said that CameraService was successfully loaded. But it can't find Camera HAL.

So what about a HAL?
[Samsung Gear 2] emuandco:
I am really looking forward to the camera solution. Does ANY Wear device have a camera right now? Otherwise we need not just the HAL mentioned, but a app like focal, too. https://play.google.com/store/apps/details?id=fr.xplod.focal&hl=de

Same for speakers. No way to set volume and stuff, right?

Btw, [MENTION=803006]biktor_gj[/MENTION]. Did you see my comment regarding the compass sensor (Asahi Kasei Microdevices AK8963C Magnetic Field Sensor ) which Antutu claims to see and my explaination of the problem with sideloaded Osmos game? I will make a screenshot later after work.
[Samsung Gear 2] biktor_gj:
Yes, I thought I had answered but it seems I didn't, sorry;)

Wear thinks it has a compass because I'm using Gear Live's sensor library and firmware and that has one, it doesn't report anything because nothing is physically attached to those pins in the microcontroller.

About the camera, wear lolipop has camera support at hal level, I have a donor for apps and libraries but it will need work before we can try it.
[Samsung Gear 2] Gabri98:
working only when usb is connected ? Or need only to put usb and remove and fine works ?
[Samsung Gear 2] kavinzhao:
Mentioned long ago, we do have such a app. I found one working on wear. It's open source so we can optimize it's Ui for wear.

net.sourceforge.opencamera
[Samsung Gear 2] bitstra:
... only when USB stays connected :(
[Samsung Gear 2] Gabri98:
Love this project ☆☆☆☆☆

For me this is a great news because when i'm on my home i can use it with usb :D when play the games or play videos.

Thanks for this reply.

I flash lollipop later BIG THANKS Sir [MENTION=803006]biktor_gj[/MENTION] you are rock!
[Samsung Gear 2] biktor_gj:
That's because when USB is connected, power management is disabled.

Once you disconnect from USB power management kicks in, and when you have the screen set as always on, when the watch tries to enter sleep mode it shuts down the controller, but the framebuffer seems to be improperly closed (or doesn't even know it's being shutdown, not sure), then, when it comes back, there are a ton of errors while trying to write to the display and the framebuffer dies. That's what happens. How to fix it? I'm still not sure ;)

About touch wake, I think I got the problem, will try to push the fix onto the next build along with the brightness.

About the brightness... this doesn't make any sense:

Levels: Android levels ( I set them that way) (01 Lower - 05 Max)

Hex code: What I send to the LCD: 0x00 - 0xFF

Decimal value: internal kernel value for the brightness level: 0- 255

Binary: To try to make some sense of it

Level // Hex code // Decimal value // Binary value

01 -> 0x26 // 38 // 0010 0110 // This is OK, minimum brightness

02 -> 0x10 // 16 // 0001 0000 // A bit brighter, OK

/* TESTS */

03 -> 0x40 // 64 // 0100 0100 // Greenish, lower light than 0x26

03 -> 0x55 // 85 // 0101 0101 // Blue, min light

03 -> 0x66 // 102 // 0110 0110 // RED

03 -> 0x64 // 100 // 0110 0100 // RED -- brightness like 0x10 +-

03 -> 0x80 // 128 // 1000 0000 // RED --brightness like 0x40

03 -> 0xC0 // 192 // 1100 0000 // Like HBM

03 -> 0xF3 // 243 // 1111 0011 // Like 0xFF

/* /TESTS */

04 -> 0xFF // 255 // 1111 1111 // Almost at max

05 -> 0xEA // 234 // 1110 1010 // Maximum brightness

16 is brighter than 38, and 234 is brighter than 255... Oh, and 0x00 (0) is screen off.

View attachment 3384940
[Samsung Gear 2] WerWolv:
Wouldn't it be possible that the first nibble defines the brightness and the second nibble defines the color? Or something like that... ^-^
[Samsung Gear 2] Gabri98:
Up the thanks on this thread for this hard work.

Ok,I understand the process that you are processing,compliments is very experienced.

any idea for audio ?
[Samsung Gear 2] McGuigew:
I found a bug I think : multiclock watchface has been indicating 9PM since yesterday... :laugh:
[Samsung Gear 2] kavinzhao:
I was about to ask the same question:)

Now A2DP works. So I think we can emulate a A2DP device to trick the wear to enable audio(if it doesn't formally support)

Any ideas for audio? Especially microphone? ;)

---------- Post added at 22:04 ---------- Previous post was at 22:00 ----------

Also for the Open Camera app, it works like a charm(if camera is working. I mean that the app itself functions.) . So all we need to do is to optimize the UI. And we have a application expert here: bitstra
[Samsung Gear 2] fireproof34:
Sorry if i missed it in my search of the thread but is there a step by step on how to install the Android wear tar?
[Samsung Gear 2] Samkitpalecha:
Search on youtube you'll find it.

Also, Battery on Android 5.1.1 is pretty bad. Only got One day. For Everyone?
[Samsung Gear 2] jeffc83:
Battery life did take a hit on mine too but there is a known issue with 5.1.1 on ALL wear devices. (you'll find articles everywhere online and Google is working on a solution) Overall, it is not that bad and I can still get a full day out of it:D

Hopefully Biktor can get that mic working so we all can start using Wear the way it was designed and so we can get rid of that "OK GOOGLE" watermark on the home screen/watch face;) I can't believe you have to say "OK GOOGLE" several times to get rid of that watermark...what the h*ll were they thinking???
[Samsung Gear 2] fernandogdl:
well 1 day is like average in all android wear devices so... so don't know if it's bad or just fair. i saw a drop of 23% of battery use in 10 hours
[Samsung Gear 2] emuandco:
Hm, I took it with me to work [MENTION=1412615]100%[/MENTION] and now after about 9hrs I have 82%. I used it more than just a few times and all my work messages from our document management system app hit the watch too, same for Facebook and WhatsApp. So... Nope, works fine here
[Samsung Gear 2] fernandogdl:
Well, i would like to report that the step counter is not accurate. just walked like 65 steps and it counted 167 in the watch, and just by being sitting on my desk it counted another 15. so i really don't use it that much, but if you are planning to use it as fitness tracker beware of inaccurate step counter.
[Samsung Gear 2] mikaeldalc:
Don't rely on the watch count. Look at the FIT app and use those numbers.
[Samsung Gear 2] bitstra:
[MENTION=803006]biktor_gj[/MENTION],

I've tried to mount /system rw:

1|root@b2:/ # mount -o rw,remount /system
[COLOR="Red"]mount: Operation not permitted[/COLOR]
255|root@b2:/ #

so I had a look for SElinux:

root@b2:/ # getenforce
[COLOR="red"]Disabled[/COLOR]
root@b2:/ # setenforce 0
[COLOR="red"]setenforce: SELinux is disabled[/COLOR]
1|root@b2:/ #

And I saw this:

root@b2:/ # cat selinux_version
samsung/[COLOR="Red"]sprat/sprat[/COLOR]:5.1.1/LDZ22J/1944630:user/dev-keysroot@b2:/ #
root@b2:/ #

I know, you ported the ROM from sprat...

Any chance ,we can get SElinux 'enabled' in one of the next builds?
[Samsung Gear 2] WerWolv:
[MENTION=803006]biktor_gj[/MENTION]

I think I found something quite interesting. Would it be possible to test the microphone this way? I found this in the Developer Options under 'Wear Developer Options'.
[Samsung Gear 2] fernandogdl:
I belive that, that option is only for third party audio input only as it disables de HW microphone
[Samsung Gear 2] biktor_gj:
Do you need it for anything? Kernel has it bundled in, but with original unit I could not set it to permissive and it wouldn't boot. If you know how to rebuild the policies and make the image work with it tell me and I'll make it, but I have no idea on how selinux actually works, that's why I disabled it ;)

If you want "just to try a mic" I left enabled USB audio support. Just pick a USB OTG adapter and a usb soundcard and it should work!(havent tested it though, cant find my adapter :()

I'm testing touchwake in lolipop, so far so good but it feels like sometimes it fails to slide from upside down when you just woke up the display... If it's good it'll go on next build
[Samsung Gear 2] McGuigew:
Just to make sure : has anyone noticed that the left/right swipe is less efficient than on KitKat? The card I want to get rid of often ends up staying on the screen... but that's not a very big issue :)
[Samsung Gear 2] bitstra:
No I don't need it really! - I've wondered, why root user can't remount /system rw; I wanted to push busybox to /system/bin.

I've managed that in recovery mode...

I need busybox for testing my Port to Wear of "Kernelaudiutor"-App - Update.

So all is fine!

maybe, you can insert busybox into /system/bin in future builds...

Thank you for all your hard work!

Edit: About SELinux - I only know, that the complete filesystem must be correctly SElinux-labeled...

I have somewhere a good documatation about how is SElinux working - if OI find it I will post it...
[Samsung Gear 2] jeffc83:
No issues here with swiping left/right/down/up but in KitKat, I always had issues swiping the card down to hide it.
[Samsung Gear 2] McGuigew:
Thank you for porting Audiutor, it looks awesome!!

OK Jeff, thanks for telling me!
[Samsung Gear 2] bennero:
Sorry for the lame question guys, I have read almost every page of this post, and cannot find this.... What are the instructions to flash this? Do we use ODIN, or ADB? Could someone post the step by step they used?