yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] biktor_gj:
Its a bit of both, I think the source files for the kernel where on /home/abuild/RPMS or something like that...

Look for linux in the entire extracted folder and look for a 60-80 mb file. (Or 3.4 or kernel, cant remember the exact file name). When you find the file, its a RPM file, you can either install rpm in ubuntu and extract it manually or you can download 7zip for windows (https://ninite.com is amazing) and get the .tar.gz file from it. That is the kernel source

Now you're going to have a rough time with the resolution... ;)

I don't really think it will work since you are changing the hardware resolution, but take a look ar arch/arm/mach-exynos/board-tizen-display.c

Look for YRES and XRES and change them (default is 320px for both X and Y which is the hardware resolution of the display) you can change all references or only the ones regarding the S6063J0X03 lcd, which is whats physically on the watch

Anyway, if you're looking to change the DPI or virtual resolution you might have more luck if you start looking at the xorg config file on the device, which is in /etc/X11 or in /etc/xorg.conf.d or some place like that (run "find / |grep xorg" through a SDB shell to find)
[Samsung Gear 2] yhaddad:
Thanks again.

But where I can find this directory arch/arm/mach-exynos/board-tizen-display.c?

After I extract the rpm file I'll find this folder?

So how to change only the resolution and compile the source to zImage and flah it?

Another question, how to modify the resolution of x11 via sdb?

Thanks!!
[Samsung Gear 2] yhaddad:
file: etc/X11/xorg.config.d/display.conf

Section "ServerLayout"

Identifier "Test Layout"

Screen 0 "Screen0" 0 0

InputDevice	"Gesture"

EndSection

Section "Screen"

Identifier "Screen0"

Device "exynos"

Monitor "Monitor0"

# SubSection "Display"

# Modes "320x480"

# EndSubSection

EndSection

Section "Monitor"

Identifier "Monitor0"

Option "DPMS" "true"

# DisplaySize 46 76

EndSection

Section "Device"

Identifier "exynos"

Driver "exynos"

Option "exa" "true"

Option "dri2" "true"

Option "sw_exa" "true"

Option "tfb" "true"

Option "cachable" "true"

EndSection

The resolution is with #, so its comment. what I need to change and where ?

The filesystem is read only...

Thanks.
[Samsung Gear 2] biktor_gj:
I can't tell you exactly what you need to do, but you can take a look at this page for some info: https://wiki.archlinux.org/index.php/xorg

About the file system, it's not readonly... are you rooted? if you are, did you "sdb root on" before sdb shell?

Also, if you mess up the xorg file it will bootloop! So keep a copy of your rootfs at hand to restore in case you break something...

I found why it doesn't log to kmsg... it's disabled in the defconfig :eek: If I enable it it disables it back, have to look at what it's disabling it (something conflicts with the ANDROID_RAM_CONSOLE)
[Samsung Gear 2] AntwonJenkins:
:D ya'll got a dude over here filled with all kinds of hope now that his watch will actually see Android Wear one day after all! Keep up the good work guys!! Wish I was more knowledgeable in what you're doing to provide some assistance but if you need some testers i think ya'll got a few here. ;)
[Samsung Gear 2] yhaddad:
Hi,

Yeah it root, sdb root on not work :(

It return read-only...
[Samsung Gear 2] biktor_gj:
At laaaast some progreeeeesss!!:):):):):)

It was damn time! Frame buffer is wooorking! at least part of it ;)

Now to find what's disabling all android related settings... more work!
[Samsung Gear 2] yhaddad:
Can you explain please where I can get the gcc linaro ? I found a lot of versions.

Which one I need ?

Thanks!
[Samsung Gear 2] yhaddad:
Can you attached please .config file with all definition for neo2?

Thanks!
[Samsung Gear 2] biktor_gj:
Which one do you need? Tizen's default is arch/arm/configs/tizen_b2_defconfig

If you want the ones Im working with tell me and Ill post them when Im home...
[Samsung Gear 2] yhaddad:
Yes this file.

I tried everything and I didn't successed to make zImage... :(
[Samsung Gear 2] yhaddad:
After you attached the file please write all the commands for compile zImage file...

I'm using arm-linux-gnueabihf cross compiler.

Thanks
[Samsung Gear 2] kavinzhao:
Hey guys, again not wanting to be rude but this is the development thread. The things above(like videos, instructions etc.) should be in the Q&A thread.
[Samsung Gear 2] alvaromartinezb:
Okay, no problem

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] droidnew:
My problem is I can't get the watch to reset. Just reboots from recovery mode without a chance to wipe anything....
[Samsung Gear 2] alvaromartinezb:
Restore to tizen and flash again... That's what I did, or you can install the recovery biktor_gj mentioned in the first post

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] blweldon2:
You don't need to go back to tizen to wipe wear. Just Odin wear again. Best option is still biktor's recovery though.
[Samsung Gear 2] droidnew:
I went back to tizen, reinstalled the rom along with the mentioned recovery. ...that got me going again. Thanks!
[Samsung Gear 2] kavinzhao:
It's been a long time since we last spoke. Any progress here?
[Samsung Gear 2] andrew.mackew:
[MENTION=803006]biktor_gj[/MENTION]

Good question buddy, any news from our beloved dev? :D
[Samsung Gear 2] Henkl:
I would give it a try, only if all watchfaces would work.

Allthough this project came a long way, it is still not finished?

Please keep up the good work Biktor!
[Samsung Gear 2] biktor_gj:
Not much really, I started a new job last week and been struggling to find time to keep working with the watch.

I got to remove the damned pmqos module from the kernel (what I thought was responsible for the PM mem sleep shutting down the display and making the gpu idle) but no luck getting opengl to fully work... And the stupid display keeps shutting down! It's killing my nerves... So the little work I did has so far only served to kill 64% of the battery in 24 hours... Not giving up though!
[Samsung Gear 2] alvaromartinezb:
Yes, it's still not finished... A lot of progress has been made, but not everything is working yet... I would recommend you to try it, the only watch face that works is not that bad so it doesn't matter to me... You can check out this video of what works and what doesn't:

https://youtu.be/6qfBbdtjWqA

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] prenxda:
I tried but my watch would go blank screen once a while until I reboot it. I did use the simple watch face. Is it just me or anyone else has the stability issue?
[Samsung Gear 2] alvaromartinezb:
It's because the always on feature is enabled, it causes the system to crash..

Disable always on on the settings menu

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] prenxda:
Thanks for the tip but i did have that off. I followed the youtube procedure exactly. Maybe all the notifications I got screwed something up.
[Samsung Gear 2] alvaromartinezb:
Oh... Then it's weird... It did happen to me, but it got fixed turning that off... I'm not really sure what to tell you, perhaps toggling some settings or apps might help

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] Magik_Breezy:
My device too has this problem, although not frequently. After being left to idle for ~8 hours the watch display will (sometimes) remain off until rebooted
[Samsung Gear 2] kavinzhao:
Same problem here.

**note: this is not the 'Always On Screen' problem. It is another issue unknown and unsolved. And it is weird because as Magik said, sometimes. I think it's gonna be hard to solve since we have to read the entire day's logcat to find out what's wrong.

PS. Another bug is that I can't turn off the screen by pressing power button until I launch something on my watch. Anyone noticed that?
[Samsung Gear 2] alvaromartinezb:
Yeah i have had that issue of the screen not turning on once... i was freacked out because i was sure i had battery but it wasnt turning on XD... the second issue, i havent noticed it...
[Samsung Gear 2] kavinzhao:
Then it may be my issue...

[MENTION=803006]biktor_gj[/MENTION] I think if we want to have all the features that is available on Tizen we need to start with something open source. Like cyanogenmod.

Or we can try using Xposed but it is generally complicated and not worth doing. (Xposed is known to work on Wear)

Otherwise you have got better ideas?
[Samsung Gear 2] mikaeldalc:
Damnit, im so ready to flash this. I hate tizen, but without a working mic, theres no point.

Thumbs up to the dev no matter the case.

1 could only hope and dream. Keep up the good work.
[Samsung Gear 2] gypsy214:
Been keeping with the thread since day 1.. But I have not tried to flash any of this since I had a Moto 360.

Well now my Moto died on me and while waiting for the replacement I'm thinking about flashing this. It seem stable enough to at least check time and weather.

Good job to the dev like i said i've been keeping up since day 1..
[Samsung Gear 2] mikaeldalc:
I too have a Moto 360, but i'd much rather have android wear on my gear 2 neo. Motorola went with a crap of a processor for the Moto 360 and it shows. I bet the gear 2 can run circles around the moto 360.
[Samsung Gear 2] Lord AnubiS:
If you follow the procedures you can use it without too much problem. Remember to use aeris weather for the standard watch faces too work and keep a weather card on the watch. For me the music controls work without issues and the notifications works too.

Sent from my OnePlus Sandstone Black.
[Samsung Gear 2] llsh:
could you record the video of working all stuff?
[Samsung Gear 2] alvaromartinezb:
This is what works and what doesn't work:

Android Wear on Gear 2: https://youtu.be/6qfBbdtjWqA

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] llsh:
i mean watchfaces, for example, i saw that video
[Samsung Gear 2] youngpro83:
Some watch faces work but you need Aeris weather running. The notification needs to be running on watch. Close that weather notification and watchface crashes.
[Samsung Gear 2] cpope-11:
How many apps work som? none? lots?...and is it hard to to get back to tizen ?
[Samsung Gear 2] llsh:
weel that's why i asked video of that
[Samsung Gear 2] Motivateme:
Strange, For me Aeris weather just force closes when I try to display cards.
[Samsung Gear 2] lordmorphous:
It did for me too, but if I left it alone eventually it would show me a card and the watchface would work. Then I would just minimize that card (not close it), and the watchface would remain.
[Samsung Gear 2] gypsy214:
Are the files on OP the latest ones to flash?
[Samsung Gear 2] inpherno3:
Yes they are
[Samsung Gear 2] Redmen:
Plz stay on topic. All those questions can be asked in Q&A topic. This is DEV topic.
[Samsung Gear 2] llsh:
well, i cant see "development discussion" in the thread lately, as we see, android development has been stopped, unfortunately, but then we can discuss anything here
[Samsung Gear 2] kaos420:
Where did op say development has been stopped? According to his last few post hes working and is trying other kernel option when he can? No where did he call it quits.

Sent from my 0x1 Note 3...... I love tep
[Samsung Gear 2] kavinzhao:
The development has NOT been stopped. And it will not stop unless it is completed or all of us quit.

Even if it stops, it is not a reason why you can discuss these things in the development thread.

This is the fifth time: Discuss these topics in the Q&A thread.
[Samsung Gear 2] Android6190:
Love my watch again. Using it on HTC one m8 running cm12.1. I daily my watch and it's awesome. I get almost two days of battery, all my notifications come through. Plus with browser and text working. I love it. Thanks for all the hard work. You brought my watch to back to life. Almost went to buy android wear watch this helped me say no. Thanks again for the hard work
[Samsung Gear 2] gypsy214:
Is that on Wear OS? how did you get another watch face?
[Samsung Gear 2] a4t:
Nevermind. Problem solved..
[Samsung Gear 2] Android6190:
With the weather aeris weather app. Also that's the stock clock but I do have an app. Weather styler
[Samsung Gear 2] jeffc83:
Watch Styler works too...I posted a link for it on my Google drive a few pages back. Works great!
[Samsung Gear 2] Alxoom33:
I dl'd it, thank you. Tried to use it, but when I uploaded the watch face to my Gear 2 all I got was black. Am I doing something wrong. Thanks!

---------- Post added at 11:30 PM ---------- Previous post was at 11:26 PM ----------

Thanks [MENTION=803006]biktor_gj[/MENTION];61347034 I flashed your Rom on my Gear 2 and I am very happy that I can finally use my Gear 2 with the Nexus 6. Absolutely awsome!!! Be waiting with baited breath for your new developments. Thank you again! Great work!

---------- Post added 16-06-2015 at 12:18 AM ---------- Previous post was 15-06-2015 at 11:30 PM ----------

Yeah, that's amazing. I wonder why it works that way? Perhaps it can be incorporated into the next iterating of the rom?

---------- Post added at 12:42 AM ---------- Previous post was at 12:18 AM ----------

Watch faces work when Aeris Weather is active.
[Samsung Gear 2] kavinzhao:
If aeris can insert another layer into frame composition, we can, too. [MENTION=803006]biktor_gj[/MENTION] can you do that?

BTW awesome work. Keep up.
[Samsung Gear 2] McGuigew:
Hi there,

I'd like to report a bug. I flashed Android Wear yesterday using Alvaro's nice video and this morning while I was walking in the street not using my phone nor my watch, the watch started vibrating continuously and when I looked at it, it was disconnected from the phone but the phone still said connected to the watch. I pressed the watch's button for a while, it restarted and everything is back to normal :)

It's a Gear 2 Neo paired with a Note II and otherwise I am happy with it (Wear mini launcher is AMAZING, you need to install that!) :)
[Samsung Gear 2] kavinzhao:
This bug is present. I have experienced it too.

Actually you don't need to restart the watch, just enter Settings and the vibration will stop.
[Samsung Gear 2] Demo Guo:
I also faced the same problem but it mostly happen when I restart the android wear...
[Samsung Gear 2] jeffc83:
[MENTION=4100646]Alxoom33[/MENTION] - The watch styler faces will work...don't forget the Aeris weather app card! (when the weather card shows, scroll to the map on the right then HIDE the card, the watch faces will show) If you are at all familiar with the app, you can easily make your own OR can convert the original watch styler .wsthemes over. (it is in a similar format) So far, I have about a dozen watches loaded into Watch Styler.

Vibration on restart is an issue here too but as kavinzhao mentioned, it can easily be corrected without rebooting.
[Samsung Gear 2] bitstra:
I will try to make a small APP with hidden system_alert_window that will do that for US in background - AS A WORKAROOUND..:good:

Edit:

Hmm,

that's weird: I wrote a small watchface app for testing (with EGL layer...)

The interesting thing is: if I let run it as Watchface(!)

with app's Manifest tags
<android:allowEmbedded="true">
&
<category android:name="com.google.android.clockwork.home.category.HOME_BACKGROUND" />

and select it in watchface picker view it crashes, like other watchafces...

but when I let run it ass 'normal' app

without app's Manifest tag
<android:allowEmbedded="true">
& Tag
<category android:name="android.intent.category.LAUNCHER" />

it runs fine like Aeris Weather ! (both app-modi are the same without any changing of code! (BTW)

So I think about the real culprit with EGL-layers...

But I'm working on the "hold an EGL-layer in Background"-solution with my test-app now!

Hope, I can make it working as interims solution for making Watchfaces running this ROM.
[Samsung Gear 2] bitstra:
My Thoughts about framebuffer allocation

Apps and/or notification(from phone/mobile)-layouts with EGLsurfaces can allocate the framebuffer (fb0) fine via EGL surface / even if the GPU in idle state or not!

Watchface's surfaces cannot allocate fb0 (somehow).

But in my test-app the EGL surface runs with equal code as app and/or as watchface...

Hmm...

So the issues are not really Kernel-stuff related - I think.

And how could Aeris Weather app notification (i.e.) 'unlock' the gpu state???

(BTW my Testapp makes that not working atm, because it let android OS release the fb when surfacee-view is going into background :( )

So my question to [MENTION=803006]biktor_gj[/MENTION] goes: Is it possible, that the watchface/clockwork misses some permissions?

Or are there SElinux issues/gaps ?

Or could this ran in wrong domain ?

only thoughts! - but who knows...

[MENTION=803006]biktor_gj[/MENTION]: Is it possible to let to be 'com.google.android.clockwork.home/ClockworkHomeGoogle.apk' (should be the wallpaper framework) or the installed watchfaces in the same domain like user(installed)-apps are running; And let it act like a user-app? - I think the SElinux-policies have to be edited/manipulated that for.

This should be a good workaraound for now!
[Samsung Gear 2] Demo Guo:
I'm really sorry I am not to be rude to be out of the watch face topic, is it possible to port the BLE (Bluetooth Low Energy)?

I wants the gear2 to be connected with iphone by wear_for_ios on gear2 and BLE utility on my iphone5.

But when I tried to open wear_for_ios on my gear2 it prompt error message "wear_for_ios has stopped"

I checked the logcat output and the error message is as below:

Could not find class 'android.bluetooth.le.ScanFilter$Builder', referenced from method com.shiitakeo.android_wear_for_ios.BLEService.crea te_scan_filter

So I'm guessing the required BLE library is missing in the current android wear porting.
[Samsung Gear 2] makinaking:
nice work , but i wanna know if this is good for daily usage or no?
[Samsung Gear 2] kavinzhao:
Yes and no.

If you just want to pair with a phone, measure your heart rate, know the time, get notification, YES

If you want to count your steps, use speech recognition, take pictures or use IR, No.
[Samsung Gear 2] alvaromartinezb:
Hi!

Here is a video of what works and what doesn't:

https://youtu.be/6qfBbdtjWqA

And I want to ask you, if you have further questions, use the Q&A section and we will be glad to answer... But let's leave this thread for development

Good luck!

Sent from my Nexus 5 - Android M developer preview 1
[Samsung Gear 2] bitstra:
Good conclusion mate!
[Samsung Gear 2] biktor_gj:
Well, they request the allocation, then the eGL library returns an error into libvirtualdisplay which passes along to the surfaceflinger...

The funny stuff comes when you run Aeris weather in a production wear watch, and you see that *sometimes*, the notification shows up on the screen but when you 'expand' it it shows a black box in what should be the information, doing exactly the opposite to what happens on the gear. And if you sync it to two devices it crashes randomly, but that's another story.

All that I could think of in the kernel I have checked, tried, and gone forward and backward multiple times. That's why I'm waiting for Samsung's lolipop release of the Galaxy S5 Mini, so we can at least work with libraries compiled for the same API level as Wear, but knowing samsung we can wait forever on that... they said Q2 2015 but you never know...

SELinux is very unlikely, it failed too on the previous 4.4 release, and selinux wasn't working then ;) About the permissions, it could be, I copied everything from the donor image with the exact same permissions, but it's a very very hacky system image... and the destination partition might not have the exact same attributes as the donor... thought I would guess that more things would crash if that was the case... The easiest thing you can do is boot into recovery, copy ClockworkHomeGoogle.apk to /data/app so it treats it as an update and check if your app does something differently that way. Have you checked Aeris' wear app's Manifest? something worth trying?

The other problem with SELinux is that the watch doesn't boot without it (at least if it's removed from the kernel). Maybe we can try setting it to permissive on boot just to get it out of the way? That should be easy enough, will try when I get some time

EDIT: SELinux needs to *exist* in the kernel, but it is disabled:

shell@b2:/ $ su
su
sroot@b2:/ #setenforce 0
setenforce 0
setenforce: SELinux is disabled

EDIT again:

I've been thinking about it more... maybe selinux's abscence IS what blocks google services from running? like it causing an exception and not allowing the connections to go through, or clockworkproxy not working with netfilter because selinux is not running? I will build (again) the system image from scratch, but this time trying to respect the selinux tags and only editing into the libraries, instead of copying to a new image and see how that goes...
[Samsung Gear 2] bitstra:
Sounds good to me :highfive:
[Samsung Gear 2] elitecmdr666:
removed
[Samsung Gear 2] Alxoom33:
It's not just about you! All of us have the gear 2 with non Samsung phones...it already works! It's just going to get better!
[Samsung Gear 2] Alxoom33:
Don't know about that. Your post says a lot about "I" and "my gear 2" so pardon me if I misunderstood your intentions in writing the post.

By the way, I have read the thread and reconfigured my Gear 2 to Android Wear to now work with my Nexus 6. Have you?
[Samsung Gear 2] elitecmdr666:
understood posts removed
[Samsung Gear 2] Android6190:
has anyone gotten super su to work?
[Samsung Gear 2] kavinzhao:
Yes. Long ago

not wanting to be rude but please

[Search before you post(forum rules)]

To root, enter recovery.

Select reboot recovery

Confirm supersu install when prompted

When you enter recovery again,

Mount system

Go to Advanced/File Manager and delete /system/app/superuser.apk

There you have root
[Samsung Gear 2] abelavila:
hello I can not work my gear 2 asus tizen Zefone 2 I've tried everything

help
[Samsung Gear 2] Alxoom33:
Did you read the OP and watch the video's in the Q & A's section. Worked for me and countless others. Good Luck! Also, please try your search function, it beats waiting for an answer. Lot's of questions were asked and answered many times before.
[Samsung Gear 2] mikaeldalc:
Holy Cow! Finally flashed this since i traded my S6 for an LG G4. This is Awesome. I love the Look of the Galaxy Gear 2 compared to all of the Android Wear Watches (Aside from the SmartWatch 3). Now that its running Android Wear software, I could only sit and smile happily lol. Good Job biktor_gj and thank you for all your hard work.
[Samsung Gear 2] Alxoom33:
By the way, the Look Behind app is working perfectly! Well, until the watch crashes and we have to refresh Aeris weather, or reeboot. This is as operational as my Gear 2 has been for more than 3 months, Thanks [MENTION=803006]biktor_gj[/MENTION].

---------- Post added at 12:45 PM ---------- Previous post was at 12:40 PM ----------

Thanks, that worked wonderfully!

Question, is there a way of checking if you still have maintained root on the Gear 2?
[Samsung Gear 2] Alxoom33:
Any way of getting Google Now or the Gear 2 Camera working? I tried several app searches and nothing seems to work. Perhaps further development is needed to make this the best wear device yet!

---------- Post added at 02:15 PM ---------- Previous post was at 02:07 PM ----------

Tried various Wear dialer apps, while they downloaded ok, don't seem to work. Anyone have any luck with Dialer and Keyboard apps for Wear?
[Samsung Gear 2] mikaeldalc:
Wear messenger works for texting.
[Samsung Gear 2] menissalt:
Read the forum, this is in active development and the camera is on the list but there are bigger bugs to squash. There is a Q&A thread for these types of comments.
[Samsung Gear 2] kavinzhao:
Just check using whatever file manager or shell if /system/xbin/su is present. Remember to mount /system first.

Actually there is no need to check since nothing will remove it without your command.
[Samsung Gear 2] fernandogdl:
Hello Jeff

Sorry to ask here, but in the Q&A section i could not get an answer, when i install Aeris, ( so i can use a watch face) Aeris does not come up to my Gear 2, it only remains as a phone app, any thought?