yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] biktor_gj:
Kernel side we have choices, user side not so many. We need hwcomposer+mali libraries from exynos 3470, compatible at least woth android 4.4. The only ones I found that worked are what we are using. I hoped I'd get some time to track the problem down this weekend but been very busy with other stuff...

Parts of sensorhub are working. Gear live's sensorhub modules are for the invensense MPU6500 and ADP heart rate module. Those two are working and reporting, the rest are what we're having problems with... If you check my github page, check the differences on drivers/sensorhub on my last commits on android kernel and tizen... Tizen one had a lot more devices, though I still haven't checked it all...

EDIT (from my computer at last!) to add:

Why does Sensorhub don't work with the step counter and the geomagnetic sensor? Because on the Gear 2 they weren't coded in SensorHub! I've just finished comparing the input drivers, and they weren't there the whole time. Maybe I should have looked sooner... Now have to find where they are now and, if possible, migrate their drivers to industrial io so sensorhub can pick them... let's see if I can get model and vendor first...

One step at a time (pun intended) ;)

EDIT (and again and again and again...) Why doesn't the step counter work? Because the Gyro sensor doesn't work! There's no step counter device. The gyro sensor picks the data and the sensorhub driver does some calculations to detect wether or not you have moved...

Sprat (Gear Live) uses a different Gyro sensor, an AK8963C, whereas the Gear 2 uses the same Invensense MPU6500 as accelerometer and as the gyro sensor. That's why screen doesn't come up when you rotate the watch, and that's why the step counter doesn't work.

Now to fix it :)
[Samsung Gear 2] kavinzhao:
Wow.. Big advance.. I synced with your Github source and found nothing I can help... Now back to the topic: About the camera..Sammy's one says that it is missing some libraries. Google's one for Android doesn't even start. If you can tell me what library it is probably needing I may get it ready for testing:)

Also, does Camera and Mic belongs to sensorhub?

Edit: touch wake isn't battery friendly is it? It also wakes up the device unexpectedly some time.. So I think if we can get gyro working let's disable touch wake. What do you think guys?
[Samsung Gear 2] Nilleri:
I don't know how it is on the other android wear watches, but to me touch wake is often quite annoying because of turning on the screen by mistake, but it depends on how well the gyro function would work, I turned it off when it had tizen, because it didn't work well for me, but if you had the chance to turn on and off the different functions, that would be quite nice, but I don't know if this is possible on the android wear watches.. Only if it isn't to much trouble..
[Samsung Gear 2] kavinzhao:
I must be crazy but I still want to ask if there is any way for Tizen Apps to run on Android? Probably with some modification?
[Samsung Gear 2] dataonlycod:
I have search, but i think there is not way. There is a possibility yo port from android to tizen :s
[Samsung Gear 2] kavinzhao:
If so then we can possibly back port Tizen to Android . How to port Tizen to Android? (link to article?)
[Samsung Gear 2] dataonlycod:
http://es.slideshare.net/openmobileww/openmobile-acl-for-tizen?next_slideshow=1 and here there is another one. http://es.slideshare.net/hyeokgonryu/android-to-tizen-conversion-service
[Samsung Gear 2] kavinzhao:
I read those articles and found that what they are actually doing is creating a virtual environment of Android on Tizen. Which is meaningless and wastes processing power.

I was wondering if there are any way to install the same/slightly modified apk on Android.
[Samsung Gear 2] McGuigew:
This is all so crazy, Samsung choses Tizen in order to avoid Android dependance, and here we are discussing the port of Tizen app to an Android port on Gear2 :eek:

I love XDA :laugh:

I think the port of a Tizen app to Android will be easy or hard depending on the software used to make the app in question.
[Samsung Gear 2] andrew.mackew:
Samsung should keep and limited themselves creating, putting stuffs (parts) together, good hardware and leave, delegate, development matter to professionals (Google => Android)
[Samsung Gear 2] kavinzhao:
Otherwise who deals with our Camera and IR?
[Samsung Gear 2] inpherno3:
Same issue here, installed a new rom and now it will not for the life of the watch find my phone and visa versa.
[Samsung Gear 2] biktor_gj:
You guys know that Android wear needs a hard reset when you want to resync the watch after uninstalling the wear app just like tizen, don't you? Or did you just update fron a nightly to newer one and stopped working?

Reboot to recovery and wipe data, then resync...
[Samsung Gear 2] geri005:
It was a rom specific issue for me(on the phone side), didnt work in Tizen either.
[Samsung Gear 2] inpherno3:
Well thats why your the man biktor_gj. I was a little afraid to wipe the phone in TWRP for fear of having the issues previous people were having in regards to the switch to tizen. Once i wiped and the watch booted back up it was instantly found by the phone. Didnt even think about how Tizen worked when pairing to another phone. Thanks again and btw, been doing one hell of a job on the watch port. Very impressive and as far as i care, its a daily wearer for me :)
[Samsung Gear 2] Android6190:
man love this port gave my watch something to do. been dailying this port. wanted to know if there were any new updates out
[Samsung Gear 2] kavinzhao:
Tizen is using a different partition for userdata. That's /cache in TWRP. If you wipe cache, you wipe Tizen 's data.
[Samsung Gear 2] kavinzhao:
Looks like this is the most valuable thread in the development forums..

Any progress [MENTION=803006]biktor_gj[/MENTION] ? Have you thought of porting Tizen's drivers on to Android?
[Samsung Gear 2] biktor_gj:
I'm not having much time lately, and the little time I had showed no results so far...

I'm fighting the gyro sensor on one side: it's one of the init functions that crashes when sending an instruction after setting the calibration data what renders it unusable. Still don't know how to fix it (it's a lot of code to digest)

On the other side, I'm into the display driver issues and power management.

I'm attempting to kill tizen's power management features so they don't disturb the mali driver but it's a very big pile of s****. Even the touchscreen controller has hardcoded modifications to the power management. I tried to remove it all toghether but the kernel wouldn't boot at all, so stuck with that too. Why all this? To try to fix always on on battery power, and hopefully fix the watchfaces once and for all

Last but not least, I've been looking to code the brightness adjustment for the screen, it blinds me every morning and gets a bit annoying...
[Samsung Gear 2] kavinzhao:
Before you fix the power management, you can always force the GPU to be up. Although it isn't battery friendly, but we can have more features and I believe we value the watch faces more than several hours of battery life.
[Samsung Gear 2] jeffc83:
Agreed! (watch faces are now #1 priority to me personally, even if it degrades the battery life temporarily)
[Samsung Gear 2] biktor_gj:
That's why I'm trying to kill the power management! You can't simply disable mali's power management without touching everything else because code has dependencies on it, and it doesn't even finish building the kernel. Though I'm not even sure if it will fix it but it's the best bet I have right now...
[Samsung Gear 2] aloom:
Amazing work thank you for your efforts. Port is pretty much stable been using it for a while and installed a lot of apps and everything works.
[Samsung Gear 2] kavinzhao:
I know this is very far but [MENTION=803006]biktor_gj[/MENTION] I found a working camera app on Wear.

net.sourceforge.opencamera

I am ready to test the camera. Now it says 'Failed to load the camera. Maybe another app is using it'.

And by the way, can we manually enable the GPU through shell?

A bit off-topic word, I squeezed CM's calculator inside. It looked funny but functioned well.
[Samsung Gear 2] jeffc83:
I just couldn't wait for watch faces, lol. I understand what is going on "under the hood" but I REALLY wanted a dozen or more to choose from until Biktor fixes the "real" issue. I have installed and tested watch styler for android wear and IT WORKS PERFECTLY!!! Now for the hard part: All of the faces cost money and I don't go for that! I've quickly learned that the existing wsthemes work with a little tweaking;) You will need to go to the folder where the app is installed on your phone to get familiar with the "updated" app engine. (it's close but NOT exactly the same with the images) I created 12+ new faces within the app then copied the files from a wstheme file into the "face" folder and replaced the existing files. (this is something we would do with the original watch styler for Gear/Gear 2) FINALLY, I can choose from a bunch of faces to hold me over;)

The app was pulled from the play store due to connection issues but it works fine for me:D

Link to apk - https://docs.google.com/file/d/0B49zHlDT0GFtRUI2VElJTmFDNHM/edit?usp=docslist_api

After it installs on your phone, it'll be added as a watch face option after a few minutes!
[Samsung Gear 2] jeromekobriger:
Is there a reason you posted the APK this way? This isn't the actual app, it's a downloader app. Can't say that I feel confident trusting it.
[Samsung Gear 2] jeffc83:
Oh my gosh, I posted the wrong link. Please do not click on it!!! I was in a rush and looked at my search history to grab the link. I'll be home in a few and will fix it right away...

Lol, I felt bad and pulled at a rest stop to fix the issue...link is fixed. (Its on my google drive now) I apologize, didn't mean to cause harm. Happy watchmaking;)

EDIT 2: I've screwed up my watch by pushing crap from a Zenwatch dump...I had to reset the watch and redo everything. (at least syncing works) Oh well, I'm surprised it took me this long to screw it up;)
[Samsung Gear 2] kavinzhao:
The watch face and app installs. But it keeps crashing.. Any ideas?
[Samsung Gear 2] jeffc83:
Just got everything reinstalled and its working fine. You may need to keep the aeris weather app card open AFTER you scroll to the weather map on the right. (When I swipe that card away, it freezes on me too) To get this card, you'll need to go into settings and choose force weather card update. (OR you can wait for it, I'm just impatient) Good luck!
[Samsung Gear 2] cool2004:
On my watch-black display. What am I doing wrong?
[Samsung Gear 2] jeffc83:
Use the Aeris weather app; I have been using it for a while now to help kick in the watch faces and keep them ticking;) Without it, the face may be black or frozen with the time. Keep the weather card notification open.
[Samsung Gear 2] alvaromartinezb:
Hi Biktor!!!

I think we would all love to hear if you've had some progress this weekend? Were there some breakthroughs? Do you need any help? Just say and we'll get it done! :D

PS: were you able to see my post in the Q&A thread about taking screenshots on the watch? I think you would find it helpful...

Thank you!!!
[Samsung Gear 2] bitstra:
GPU support

[MENTION=803006]biktor_gj[/MENTION]

I've installed busybox(busyboxOnRails) + Kernelaudiutor for playing around with governors on my Gear 2(neo)...

And there is no kernel-gpu section active/shown!

Even I'm not sure, if this is related to the egl-issues...

maybe, you want to have a look Into kernel, if GPU support is really active?
[Samsung Gear 2] kavinzhao:
That's what exactly I did and I'm not surprised with that.

Every feature requires kernel support and biktor has not added it in.

If you want it, build the kernel yourself.

and BTW, it isn't really comfortable to look at Kernel Auditor is it? Finding a replacement....
[Samsung Gear 2] bitstra:
I've contacted the dev of kernelaudiutor, if he will make wear version of his app - he answered, that he won't do it��

But I' ve forked bis github code and try to adapt/patch it for wear...

If all goes well, I will ask him, if I can publish it via xda...

Edit:

If you scroll the cards in kernelaudiutor far down enough, until you See the value Entry AS a rudiment, then you can do seetings with it.

BTW cpu-governor 'interactive' seems to give more battery life...

'smart kernel toolkit' looks better in wear, but the pro Version price is about $ 3...

https://play.google.com/store/apps/details?id=com.dsmartapps.root.kerneltweaker
[Samsung Gear 2] kavinzhao:
Saw

I am working on adding more governors to Biktor's code. Later you'll find out who is the real power savior .

---------- Post added at 18:44 ---------- Previous post was at 17:53 ----------

@biktor_gj

I suddenly thought we can use 'themes' to adapt the TWRP display..

Should make things better.

I have made some changes(messed up? ) to the kernel source. Take a look.
[Samsung Gear 2] westwallpoma:
Just a small nudge to the R380's older sibling, the V700. I thought I'd do a comparison of the two devices and see what's shared. Biggest problem for me is I cannot revive the Melfas TSC on my V700, probably due to borking the firmware upload on the controller chip.

http://xdaforums.com/showpost.php?p=61095447&postcount=267

Edit: I've done a comparison table see what is hypothetically possible in terms of using Biktor et al's exceptional work on the V700. Loving everything that's going on in this thread, so thanks to all the contributors.
[Samsung Gear 2] kavinzhao:
Lucky we are having Gear 1 or Gear 2. It would be impossible to port Wear to Gear S (do you count it as a square or a circle).

As far as I know, they share the same or similar Sensorhub
[Samsung Gear 2] kavinzhao:
I suddenly thought that we should fix mic first as it is the core of Android Wear UX. Biktor can you tell me where is the driver files (in the kernel source) and which mic the watch is using?
[Samsung Gear 2] bitstra:
My Adaption of KernelAudiutor is ready and is running fine in wear(Gear 2 neo + LG g watch)! - all Functions are working like on phone!

If you are interested in testing/using it, PM me...:good:

Edit: I'll post some Screenshots later...

Because of some askings for Firmware via PM - my work is kernel manager APP! No Firmware!

Edit 2:

I've got the permission by [MENTION=4443334]Grarak[/MENTION] for publishing the cloned KernelAudiutor (4Wear) here on XDA - I will open a new thread in Wear Apps Section later today, so every one, who is interested in playing with governors and other kernel settings, can download it there...
[Samsung Gear 2] cpope-11:
Anyone got a video of working and what's not?
[Samsung Gear 2] alvaromartinezb:
I can sure shoot a quick video right now... I'll give the link in a few minutes...

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] sandvich123127:
BRIGHTNESS WORKS WITHIN THIS APP ON THE PLAYSTORE!

This app called swApp True Dark Wear allows you to change the brightness of your gear 2 :).
[Samsung Gear 2] alvaromartinezb:
Oh thanks man you saved my eyes! I'll have to add that to the description of the video... It's already processing... :(

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

Sorry but no progress at anything... I learnt that the gpu code is hardcoded to make the power management parts think it's always working (always at 255), and tried to replace all that but failed miserably, still need to check the latest 3.4 kernel release from samsung (they hide it in the tizen build service but you can download it) to see if they fixed that mess at some point for Tizen 3.0. Maybe we're lucky!

On the other side I've been looking into Plan B... As I'm not even sure if these issues can be fixed in this kernel (maybe it's too patched or too old after all), I picked up again the 3.10 kernel. Android Wear uses it as standard, so it would be better on that I think, and Samsung released Exynos 3.10 kernel in may with the Galaxy S6, so I've been trying to migrate Android USB driver and some bits more, but I'm stuck fighting the display code trying to make it work (Samsung is cleaning up their code and it shows, but that means that a lot of functions have disappeared or have been renamed and need to be looked up one by one and replaced)

That's what I posted about a while ago, the GPU frecuency is hardcoded on the kernel, so no matter what governor you try to use, it will run at 133 MHz... maybe that's why it doesn't show up?
[Samsung Gear 2] alvaromartinezb:
Thank you very much [MENTION=803006]biktor_gj[/MENTION] I hope the 3.1 version is better... And easier, I know you've been working really hard. Really, if you need help from me... You can PM me and I'll help you in every way I can, if you want me to search and replace the functions... I would just need a quick class on how to do it and I'll be glad to do it...

Also!!! Some good news, as [MENTION=4606951]cpope-11[/MENTION] requested... Here's a video of what works and what doesn't:

https://youtu.be/6qfBbdtjWqA

I think it might be helpful for some people doubting about installing or not

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] indyroid:
Video link dint work. Says video not available.
[Samsung Gear 2] bitstra:
Kernel Auditor For Wear

my port for Androis Wear of [MENTION=4443334]Grarak[/MENTION] 's app 'KernelAudiutor' is ready!

See the my thread in Wear Apps Section here...

this APP wants to have busybox installed!

You can install 'Busybox on rails' from playstore... Works fine with wear!

(Install it via adb)

[MENTION=6568603]kavinzhao[/MENTION]: the app in this thread is newer than the 'private test app', you've got yesterday!
[Samsung Gear 2] alvaromartinezb:
Can you try now to see if the video works now? Anyone else having this issue?

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] Kwbmm:
It worked fine for me..
[Samsung Gear 2] sandvich123127:
Ummm I guess you can use a browser if needed. Browser for wear works, and it's transferring from the phone's network (it doesn't have to be off LTE ;) )!
[Samsung Gear 2] alvaromartinezb:
And how do you type?

Dictation is not working... :(

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] sandvich123127:
Install minuum keyboard from playstore

edit: Quoted from http://xdaforums.com/android-wear/development/guide-connect-to-public-wifi-hospots-t3123995
[Samsung Gear 2] kavinzhao:
I have been using Analog keyboard from Microsoft.
[Samsung Gear 2] blweldon2:
Google Keyboard works pretty well.
[Samsung Gear 2] indyroid:
[MENTION=6322628]alvaromartinezb[/MENTION] Link works, great video thanks.
[Samsung Gear 2] alvaromartinezb:
Thank you!

I'll do one of how to install soon... I was planning to do it yesterday but time wouldn't allow it so... I hope I'll have time to do it today

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] Darth Ziggurat:
Thanks, the reason why I have not installed is that I don't know what settings to have in Odin. :P I suppose the default settings, but I think I read trough almost all the pages in this thread and it said no where.
[Samsung Gear 2] alvaromartinezb:
Wait until tonight and I'll have the video... As soon as I arrive home I'll do it

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] Darth Ziggurat:
Thank you very much, its tonight here, so I'll do it after work tomorrow :D
[Samsung Gear 2] alvaromartinezb:
Ugh this windows drivers are really showing down the making of this video...

But I'll work all night on it if needed ;)

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] alvaromartinezb:
How to install Wear in the Samsung Gear 2

Hello Everyone!

Ive finally finished the video on how to install Android wear in the Samsung Gear 2/Gear 2 Neo

Go ahead and watch it here:

https://www.youtube.com/watch?v=kTLMIjFF-cM

Good luck! I hope its helpful! :D:D:D
[Samsung Gear 2] Darth Ziggurat:
Thanks a bunch, watching the video now. Will follow the instructions when I get home.

And by the way, its pronounced Oh-din like how Thor in the Avengers or Thor movies pronounces his fathers name :P
[Samsung Gear 2] biktor_gj:
Just a little update...

The 3.10 kernel was _indeed_ booting!

USB doesn't work, and the rest of the OS crashes due to X11's drm library not working with that version... I thought it didn't do anything because it didn't even write a log to memory, but what it's doing is:

Boots -> blanks the lcd and set it black -> do something weird with USB -> keep booting -> crash X11 because it can't load either exynos drm driver or framebuffer device -> enter bootloop.

Also, s3c framebuffer gets correctly compiled in 3.10 kernel, but display panel driver doesn't exist outside the drm code in 3.10, but for what I've seen, it could be backported.

So, new plan:

1. Rewrite the s6e63j0x03 DRM panel driver to work with video_exynos

2. Remove drm dependencies from exynos3250.dtsi device tree config

3. Enable s3c framebuffer and attempt to write *anything* to screen

4. Try to make it boot

5b. If it boots->

6. Enable back all the android related stuff and recreate a defconfig without all the tizen stuff in the new kernel

7. Try to make it boot :)

Hope this gets easier than with the original Samsung released code... will keep you posted!
[Samsung Gear 2] jookdakang23:
Hey biktor im here to help you port Android. Im proficient in android and i think we can get this done together.
[Samsung Gear 2] gypsy214:
Hey brooo.. Haven't seen you since the S2 - S3 days.. Glad to see you back on gear lol
[Samsung Gear 2] yhaddad:
Thanks a lot for your trying porting to Android! ☺

Do you know maybe where I can find source code of gear 2 tizen kernel?

Thanks
[Samsung Gear 2] biktor_gj:
Welcome!:highfive:

Anything I can get you just PM ;)

It depends which version you want. You can get the original 3.4.39 kernel, which is what's running on the watch from the OpenSource Release Center at samsung:

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=r381

If what you're looking for is the latest Tizen release, you can get it from the Tizen Build Service:

https://build.tizen.org/package/show?package=rinato-linux-kernel&project=Tizen:Wearable

If you're going to work with the 3.10 version, notice a pair of things:

* You won't get /proc/last_kmsg: The thing boots, but it looks like it's writing messages to somewhere else (I haven't had time to see what's exactly doing, but I guess it won't be too hard to find out :rolleyes:

* It won't boot. It will start, the kernel will boot, but it won't run Xorg, so it won't run Enlightenment (the Window Manager), and if Xorg doesn't start, the Debug Bridge won't start either, so no sdb. The weird thing with the USB I told in my previous post? yep, that was it, it starts, crashes Xorg, stops USB ;)

Right now I'm working with the 3.10 kernel because it looks much cleaner than the original, release, but I will need to sort out the kernel messages thing to be able to correctly debug. Maybe ADB works OOTB, didn't check it out yet...
[Samsung Gear 2] yhaddad:
Thanks for your reply.

Can you explain me please how to compile the source code of kernel and how to create the zimage for flash it with odin.

I just need to change some things and flash the zimage with odin.

If you have any tutorial please send me link.

Thanks again!
[Samsung Gear 2] biktor_gj:
Firs get a cross compile toolchain, Im using linaro gcc which can be installed via apt-get in ubuntu, then

make ARCH=arm tizen_b2_defconfig CROSS_COMPILE=[your arm crosscompiler]

Change your options in the .config file, then

make CROSS_COMPILE=[your arm cross compiler]

Once its compiled, go to arch/arm/boot

tar -H ustar -c zImage > yourkernel.tar

And flash with Odin
[Samsung Gear 2] yhaddad:
Thanks for your help!

I already downloaded the source from your link.

Where I can find the kernel source files? I just want to change the LCD resolution. How i can do it?

The files/folders there looking as rootfs...