yashsingh1/xdaforums huggingface dataset:
[Samsung Gear 2] Darth Ziggurat:
[MENTION=803006]biktor_gj[/MENTION]

I tried to install Retroarch and load up NES game, but it crashes. Maybe you can see what is wrong from my logcat?

http://pastebin.com/MsRKFLt2
[Samsung Gear 2] biktor_gj:
Crashes while trying to load audio:

I/RetroArch: ( 2854): [SLES]: Requested audio latency: 64 ms.

I/RetroArch: ( 2854): [SLES]: Setting audio latency: Block size = 4096, Blocks = 3, Total = 12288 ...

--------- beginning of crash

F/libc ( 2854): heap corruption detected by tmalloc_large

Take a look at the functions at the crash time: (androidCreateRawThreadEtc+110), (android::AudioTrack::set(audio_stream_type_t, unsigned int, audio_format_t, unsigned int, unsigned int, audio_output_flags_t, void (*)(int, void*, void*), void*, unsigned int, android::sp<android::IMemory> const&, bool, int, android::AudioTrack::transfer_type, audio_offload_info_t const*, int, int, audio_attributes_t const*)+982)
[Samsung Gear 2] nambavuong:
I need your help guys.... i uninstall this and reinstall and... here screenshot. I use titanium wipe data android wear too but nothing happend.... i reboot my galaxy device and factory reset gear2 too.... and its always there :( can not connect my gear

Sent from my SM-G9250
[Samsung Gear 2] tooandrew:
That's how I did it too

Curious to see the logcat from the usb otg audio experiment as well. I think it is likely that the usb mic was functional, from what I've seen usb peripherals behave oddly when plugged in to an otg cable, particularly lights on those peripherals. Try a powered otg cable, the type that you need to root a chromecast or plug in a usb hard drive. What a spectacularly happy accident it would be if you'd just accidentally enabled the internal mic though XD
[Samsung Gear 2] burgudoy:
I am more willing to help :)

First issue was, it seems I may not be able to debug my watch on my pc since the usb port of the watch is already been used by the soundcard.

However, browsing through the Android wear app on my phone, plus the Developer option of the watch, I tried to debug via bluetooth.

Setup is: phone connected to pc via usb cable, watch connected to phone via bluetooth, soundcard/headset connected to watch via usb otg. (both phone and watched got bluetooth debugging enabled)

I've tried to use voice command again, then input the command on adb: "adb shell dmesg > logdmesg.log"

I got this result:

klogctl: Operation not permitted

Also when I've input "adb shell logcat > logcat.log", I got a log which I suspect all logs from the phone, not from the watch.

Is there other way I can get the results you need please?

PS: now it's the same behavior even without the soundcard/headset. The watch executes things when I try voice commands (call/sms random contacts, or search the web for random words which gets results)
[Samsung Gear 2] tooandrew:
Sideload a root file manager like es with root explorer enabled, navigate to the log and Bluetooth share? Or maybe the shell needs to be root or whatever.

Wouldn't know if Bluetooth share would work but I don't own a laptop and I'm never home to use my desktop so this is usually how I pull logs on my android devices
[Samsung Gear 2] biktor_gj:
I firgot about adb problems...

Try this:

adb shell

su

cd /data

mkdir temp

chmod 777 temp

cd temp

dnesg > logdmesg.log

exit

adb pull /data/temp/logdmesg.log

By the way, this one's on you, thank you guys!
[Samsung Gear 2] jeffc83:
Good for you Biktor, well deserved!

So a USB headset seems to activate the internal mic!? Does it survive a reboot?
[Samsung Gear 2] burgudoy:
Sorry to fail you master biktor :D

I guess I'm quite rusty to do this haha it's been a while.

I followed your instructions and failed the last step (pulling the logs from temp folder):

C:\Users\Burgudoy\Desktop\adb>adb shell

shell@trelte:/ $ su

su

root@trelte:/ # cd /data

cd /data

root@trelte:/data # mkdir temp

mkdir temp

root@trelte:/data # chmod 777 temp

chmod 777 temp

root@trelte:/data # cd temp

cd temp

root@trelte:/data/temp # dmesg>logdmesg.log

dmesg>logdmesg.log

root@trelte:/data/temp # exit

exit

shell@trelte:/ $ adb pull /data/temp/logdmesg.log

adb pull /data/temp/logdmesg.log

error: device not found
[Samsung Gear 2] biktor_gj:
Ooops! i forgot one 'exit' after the other one!

The adb pull command must be done outside adb, from windows command prompt directly

Also, if you can, reboot the watch first so you can get a clean logcat and dmesg
[Samsung Gear 2] tooandrew:
If you can get a file manager on there, try it.

EDIT:nvm [MENTION=803006]biktor_gj[/MENTION] has it covered. I'll just watch the master work :p
[Samsung Gear 2] Darth Ziggurat:
Deleting post, i missunderstood and biktor came with a better solution
[Samsung Gear 2] Ranomez:
Isn't trelte the phone, shouldn't he be connected to the watch?
[Samsung Gear 2] burgudoy:
Oopsie, it's nearly 3:00am here. I'll try again tomorrow (or should I rather say: later), I got a better PC at the office .

Anyway, does anyone got the same behavior as my watch please? The red-circled "G" button is animating, ready to take command, also take random commands as I've mentioned before (call or text random contacts, search a random word, etc.). I just want to make sure if it's a known behavior, or it was merely triggered by the soundcard that I've setup.
[Samsung Gear 2] emuandco:
Yes, it's flickering here too. But no reaction to voice at all
[Samsung Gear 2] jeffc83:
It flickers here as well with no response to voice (did not happen when using Kit Kat) I'll have to try and find my USB headset tonight to test. (at least I know where the adapter is, lol)
[Samsung Gear 2] burgudoy:
Great! Hope we can find clues with these microphone behaviors over usb soundcards. I'm pretty sure everyone's holding their breath with the outcome. This is the last feature that will complete the Android Wear experience (camera is a plus)

Edit: [MENTION=2808427]jeffc83[/MENTION]: if you can provide the logs needed by master [MENTION=803006]biktor_gj[/MENTION] earlier than me, please do so. Thanks man :)
[Samsung Gear 2] McGuigew:
Thanks for sharing a pic of your beer [MENTION=803006]biktor_gj[/MENTION] !

Just because I thought it was awesome, I'm going to take advantage of this post to share this.

how to change DPI on your watch :

1) Connect watch to PC, enable USB debugging

2) First, check what your current DPI is : adb shell wm density

3) And then, edit it : adb shell wm density 200 (yeah, I found 200 to be a good value for Gear2 :) )

I have read that this is cancelled on reboot, but it wasn't when I tested... enjoy :laugh:
[Samsung Gear 2] Darth Ziggurat:
What is the default value if I want to go back? And how doe the watch look with this setting?
[Samsung Gear 2] McGuigew:
If you do step two, you will know what your DPI is...

It looks way better with 200! Just do it, you can change back if you don't like it :)
[Samsung Gear 2] jeffc83:
Definitely will! (hope I can find the headset)

MCGuirew - Any screenshots of both by chance?
[Samsung Gear 2] McGuigew:
You can't really see it on the watch face, so I chose the browser. If you open Facebook with normal DPI (280) you just see a message. If you put 200 DPI, then you see almost everything you need to connect :)

The screenshots are there... :p

Sorry I thought this off topic wouldn't last that long.
[Samsung Gear 2] jeffc83:
Thanks, that makes a HUGE difference! I'm changing it as we speak...Great find there:D This can be very useful to many users so to me, it is not off-topic at all;)

EDIT: 280 is the default density for those who want to revert back. (I know I'm not...LOL) Thanks again McGuigew! I received my first text with the density change...damn that font is small but I like it!
[Samsung Gear 2] McGuigew:
OK, I think I'm going to make a small tutorial about that in the Gear2 section, could be useful...

EDIT : you can find it in the general Gear2 section.
[Samsung Gear 2] Gabri98:
O.o how to install apk ?

pls tell me because adb not working
[Samsung Gear 2] McGuigew:
No apk...

http://xdaforums.com/gear-2/general/guide-changing-dpi-gear-2-t3148934?goto=newpost
[Samsung Gear 2] Gabri98:
how to enter on browser ? because i don't have browser.But i have Wear Store i can find on it ? tell me name
[Samsung Gear 2] jeffc83:
No you need to use ADB... Reinstall the Samsung ADB drivers if its not working. If that doesn't work, read up on how to use ADB/install the correct drivers.
[Samsung Gear 2] McGuigew:
Well, you type "browser"...
[Samsung Gear 2] tooandrew:
I have a powered otg cable too, I'll drop by bestbuy and grab a cheap usb sound card later today, flash this and see what's up. It's a RACE to the dmesg/logcat!
[Samsung Gear 2] DAGr8:
Here is how I got adb working...

If download now is working I t means you have proper drivers...

Windows is just to dumb to allocate them so...

Go in device manager on pc

Find the yellow exclamation point is called android device..

Right click to update ..

Let me chose driver manually...

Pick android device It will show you 2 Samsung drivers pick the first one,iirc its called android debug bridge (lol stupid windows) and ignore the prompt /install anyways.. Voila
[Samsung Gear 2] burgudoy:
I'm back! gonna try again the usb otg/usb soundcard experiment and hopefully get the logs needed by biktor ;)

Can someone help me how am I going to have permission on /data folder please?

I thought this is already been rooted.

C:\Users\Burgudoy\Desktop\adb>adb shell

shell@b2:/ $ su

su

root@b2:/ # cd /data

cd /data

root@b2:/data # mkdir temp

mkdir temp

mkdir failed for temp, Permission denied

255|root@b2:/data #
[Samsung Gear 2] tooandrew:
Cd ..

Chmod 766 data

Cd data

Mkdir temp

?

Maybe.
[Samsung Gear 2] burgudoy:
Negative. "Operation not permitted"

Thanks :D
[Samsung Gear 2] tooandrew:
If there are any non-system folders copy paste to those folders. Have you tried adb pull or a sideloaded file manager?
[Samsung Gear 2] burgudoy:
I've sideloaded the ES File Manager Explorer apk (woah it actually works on this small screen).

Anyway, I've enabled root explorer, and tried to copy-paste non-system files to /data but failed.

Also, I've tried to change the /data folder permissions through this app but also failed.
[Samsung Gear 2] kavinzhao:
ES File Explorer on Wear +1

Guys you can use recovery for file operation. Don't know why the wear never allow us to copy things.
[Samsung Gear 2] burgudoy:
Yes! But better apply the dpi mod by [MENTION=5622621]McGuigew[/MENTION] since the screen is too small you'll just get frustrated with the gesture features ;)

BTW, I've also tried file operation using recovery file manager, but it seems I can only browse the folders/files but no options to modify them :(
[Samsung Gear 2] tooandrew:
Did the cp terminal command fail as well to copy paste the file in a root shell? If so, [MENTION=803006]biktor_gj[/MENTION] will have to help on the morning. My knowledge of adb is more or less limited to push, pull, shell, install, su, and standard Linux commands like cp. If you failed to acquire the logs through those commands all I can think of is to sideload the catlog app from the play store. No idea how to get the dmesg - If you can't cp in a root shell, and the root file manager can't handle it, clearly you don't even have functional read permissions, in which case I'm completely useless.

Does the rom come with/have you sideloaded chainfire's super su? If not please sideload, enter root shell and grant root permissions to the terminal emulator/file manager. Otherwise, I've got nothing for you.

Edit: you're trying to do this via adb, have you sideloaded terminal emulator and a keyboard? You may be more successful that way. I'm going to sleep, if this post doesn't help, im out of ideas. Too drunk for Linux atm.

Edit2: speaking of too drunk, I didn't make it to best buy for a usb sound card. I'll go tomorrow. Last idea: es file manager has a text editor built in. Can you open it as a text file, select all ( swipe from the gesture symbol to the a key with swype keyboard) copy, and paste into an email sent via Bluetooth internet sharing? I used to use Bluetooth internet sharing on @f0mey 's null rom all the time on the gear 1.

Edit3: if there's no way to enable Bluetooth internet sharing consider pushing a copy of the settings app from a 5.1.1 phone to system/app or system/priv-app, rebooting, loading the settings app, enabling Bluetooth internet sharing on your rooted phone, navigating to Bluetooth on the settings app you pushed to the watch and choosing your phone in the Bluetooth menu to enable Bluetooth internet sharing, sideload gmail and paste the log into an email to yourself. Sounds convoluted because it is, but I've done it before to get a log.
[Samsung Gear 2] biktor_gj:
Okay, easier than all this. Reboot to recovery,

When you're in,

adb shell mkdir /data/temp

adb shell chmod 777 /data/temp

adb reboot

OR, in case that doesn't work either,

Boot to Android, run

adb logcat > logcat.log

Do the test with the soundcard, and when done, reboot to recovery and run

adb shell cat /proc/last_kmsg > log_kmsg.log

That way we get also previous bootlogs, but knowing that the last one is the valid one is enough for me to check :)

About camera: logs looking better:

I/ExynosCamera( 1326): [CAM_ID(0)][]-INFO(m_eepromThreadFunc[5983]): eeprom read complete. Sensor FW ver: S5K8B1 S5K8B1

W/ExynosCameraParameters( 1326): WRN(m_initMetadata): Invalid min fps value(0)

I/ExynosCameraParameters( 1326): DEBUG(m_setParamCropRegion):size0(4128, 3096, 1920, 1080)

I/ExynosCameraParameters( 1326): DEBUG(m_setParamCropRegion):size(0, 386, 4128, 2324), level(0)

I/ExynosCameraParameters( 1326): INFO(setDefaultCameraInfo[424])

D/ExynosCameraParameters( 1326): DEBUG(m_setBnsScaleRatio[2764]): This camera does not support BNS

I/ExynosCameraParameters( 1326): INFO(setDefaultParameter[437])

E/ExynosCameraUtils( 1326): ERR(android::status_t android::getResolutionList(android::String8&, android::ExynosSensorInfo*, int*, int*, int, int)):cannot find resolutions

The camera model IS correct. Sad that I don't have the actual hardware to test! [MENTION=6568603]kavinzhao[/MENTION], I'm dumping it, check your PM in a minute or so ;)
[Samsung Gear 2] tooandrew:
Thank god you're awake [MENTION=803006]biktor_gj[/MENTION] I wanted to ensure you had a log to wake up to, I'm eager. He is having issues creating the directory, not sure if adb to recovery helps that.

I was about to recommend he skim the logs manually on the watch, looking for any lines with audio, mic, or error in them. I've decided to flash and test your rom for you, that's the type of dedication I'll offer once I'm not blind drunk anymore. I'm really excited.

[MENTION=803006]biktor_gj[/MENTION] regarding your edit, I'm up and I have a pc with Odin, adb and drivers installed, I'll flash and test right now, if you'd like.

Edit: I lied. All the stuff is installed but my pc only sees the download mode gear as "gadget serial" with all manual driver installation options greyed out in device manager.
[Samsung Gear 2] biktor_gj:
I have to go to work, I'll leave ituploading to this folder:

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

In about 15-20 minutes, look for "cameratest_0.zip"

After you try, you might want to go back to previous build, I f***d up something related to suspend and the watch disconnects randomly, but that's another story ;)

First let's see if the camera works at all, and please get me some logs when it crashes :)
[Samsung Gear 2] tooandrew:
KK a reinstallation of the drivers fixed my issues odin is seeing the device properly. i will download the image when it is available and flash

---------- Post added at 06:42 AM ---------- Previous post was at 06:36 AM ----------

is odin 3.09 neccessary? i seem to be stuck at zimage on odin 3.07

EDIT: usb debugging was not enabled
[Samsung Gear 2] emuandco:
[MENTION=5477644]tooandrew[/MENTION] http://androidhost.org/PVAIv I always use this one and it works fine.

[MENTION=803006]biktor_gj[/MENTION] https://dl.dropboxusercontent.com/u/30053674/log.txt Camera app shuts down immediately. Here a log after dirty flash from bootup to trying camera app twice (mLogcat FTW!)
[Samsung Gear 2] annson08:
Deleted
[Samsung Gear 2] Mhmad Hany:
[MENTION=803006]biktor_gj[/MENTION] i can't really find the word to express how i feel and how you made me happy !!!!! THANK YOU bro so much for your effort to port android wear to gear 2 neo god bless you really amazing work hope you fig out the audio problem.
[Samsung Gear 2] emuandco:
Btw, 200 dpi density really really makes the watch even greater ^^
[Samsung Gear 2] tooandrew:
The camera fc's on start.

hope this is helpful. i'll get a usb sound card tomorrow and do the same.

edit: that logcat is incomplete. even on a fresh reboot my logcat seems to be huge, it's been transferring the file for the longest time and is still doing so. presumably there will be a full log when i wake up, which i will upload. the dmesg.log took like a couple seconds, if that

edit2: after skimming this logcat, it seems that there is plenty of info on the camera. if you need more, let me know. im tired and super drunk so im passing out.
[Samsung Gear 2] Gabri98:
Can you tell me guide how to install apk file ?

How to install this es file manager ? I have windows
[Samsung Gear 2] burgudoy:
I'm not sure if it's appropriate here but I think next time we should discuss it on Q&A Section or via private message.

First, you must have the apk file.

There are several ways to obtain it, as much as several ways to sideload it on your gear.

My way is to extract the apk using ES File Explorer itself from my Android Phone.

The original application must be installed on your phone.

Open ES File Explorer -> Menu -> Library -> APP.

Look for the application you want to sideload to your gear. There are very few that will work. In this case, pick ES File Explorer.

Long press the icon and select "backup" at the bottom

the apk will be exported to your sdcard/backups/apps/<name of apk>

Now the more exciting part: Sideloading the apk to your gear via adb :)

Copy the apk file you've extracted from your phone, to the adb folder on your computer.

Make sure you can run adb on your computer (by that I mean you should already have the necessary drivers, your smartwatch is identified by adb, and you can execute adb commands).

On adb, enter the command: adb install <name of apk> and press enter.

Just wait for it to install until the Success status appear :)

Hope it helps. I will remove this post if it violates xda rules.
[Samsung Gear 2] Gabri98:
Thank you very much bro !

If is possible can you create a video tutorial ? And post guide in general because with video i can say how to install .

because adb not recognize my device same for pc i connect but nothing appear.
[Samsung Gear 2] kavinzhao:
[MENTION=803006]biktor_gj[/MENTION]

The logcat I sent you is using the Open Camera app. As I assume that all others are using yours.

And it may be incomplete as Windows Terminal can't hold more. So looks like we are missing

Min FPS

Sound(should't be important, think Camera can live without it.)

Resolution

Sensor info

Any idea?
[Samsung Gear 2] tooandrew:
install the samsung usb driver, open device manager, find the one with the little yellow triangle, right click, update driver, choose from a list, show all devices, then find samsung adb driver and select it and click ok
[Samsung Gear 2] emuandco:
I use this one to have all my strange Android stuff working with one driver: http://www.mediafire.com/download/0...rsal_ADB_Driver_v0.8-HcH-(www.TechKnow.me).7z
[Samsung Gear 2] daevoq:
[MENTION=803006]biktor_gj[/MENTION] a report for you: something strange happened to battery! i was at work and take my gear with me full charged and with airplane mode activate.. after a few hours (about 4h) and used only to see time.. my battery was 92%.. so nothing strange.. but for lunch i put my watch (still in airplane mode) on my desk.. and now after about 2 hour of complete standby my battery is 43%.. i've thinked wtf lol.. :D.. 49% battery drain in 2 hours of standby? i think there is something strange.. so.. tips?
[Samsung Gear 2] DAGr8:
mind posting that log here ?
[Samsung Gear 2] alirey:
What does your battery stat in Android gear says?
[Samsung Gear 2] daevoq:
How can i retrieve it? From phone going into settings -> Battery i can see phone battery stat (he said me "no stats available btw") but where can i find watch detailed battery stats?

EDIT: screen from my phone battery settings (i'm on moto G - android GPE 5.1)
[Samsung Gear 2] alirey:
I think this question belongs to Q&A section...sorry devs

Android wear - settings
[Samsung Gear 2] fernandogdl:
i noted a strange behavior on battery as well with the latest build posted by Biktor, my watch went from 2+ days of battery usea in one charge to 15-19 hours
[Samsung Gear 2] daevoq:
I'ts a kind of bug report O_o.. btw ok.. i will post in other topic.. you asked me what are my battery stat..:eek:i don't know how to retrieve and i've asked you.. ok lol..:p btw thask for tips.. and here's my battery stats:
[Samsung Gear 2] rperezan:
Hi All

Yes, definitively there is something odd with the battery duration. I thought that maybe it was my watchface (dinamic, as I was eager to find a wonderful face), so I changed to a static one and I still get a big battery drain... Since this morning (10 hours) my battery dropped to 45%. I did not used the watch, i was not moving so Google Fit was not counting steps... nothing obvious for me yet.

We'd need to find who is the subsystem that is draining the battery fast

BRegards

Raul
[Samsung Gear 2] lordmorphous:
This is a known problem with aw5.1.1. Google is aware and is working on a fix. A reboot a day keeps it away from my sw3.
[Samsung Gear 2] daevoq:
i shut down my watch each night and turn on in the morning.

By the way.. i will do some tests and report if there are news.
[Samsung Gear 2] Bern612:
Please don't yell at me. But I have a question. In op it said audio doesn't work. My question is that's audio from the phone not Bluetooth correct.

Reason for asking is as much as I have read no one ever said they could listen through Bluetooth. Listing to Doug e fresh now
[Samsung Gear 2] AntwonJenkins:
Kudos to the quick reply and thank you for explaining your main goals. You may as well post links to those Tizenmod packages...
[Samsung Gear 2] burgudoy:
Kudos to biktor_gj. I like the way you explain your goals, in a realistic way and not in a subtle way.

Also, your regular update whether your attempt is successful or not gives more credibility of the project.

We're here to support you just let us know if you need a beta tester and I'll volunteer myself ;)
[Samsung Gear 2] biktor_gj:
There you have:

http://www.mediafire.com/download/aj9d2ycmhc17wv8/TizenModFull.tar

Kernel+Recovery ramdisk + root filesystem

Depending on the system you're running it might as well reset the watch to defaults, but, unless you mess it really bad, this should fix it right away :)

Now that I was with this I also uploaded some of the kernel config files I'm working with and I'll leave it uploading a bunch of zipped & tar files with different things (kernel, samsung's open source packages) in case it's of some use, so you don't have to use the *useless* samsung's slooow release center

Get it from here

https://www.mediafire.com/folder/092gaz7gudh0f/Gear2
[Samsung Gear 2] yhaddad:
Hi,

Can you compile it to my watch gear s lcd resolution for check if it's work.

Thanks!
[Samsung Gear 2] westwallpoma:
Very nice! BTW - you have an audience of Gear owners as well. We're watching from over the fence from the Gear to Android Wear thread :) I'll take a look back through this and see if we can get something working on that unit too. My touchscreen is goosed, so I'm happy to flash it to within an inch of it's life.
[Samsung Gear 2] ASC33:
android port OK.?

Which files flash.
[Samsung Gear 2] biktor_gj:
Okay, enough :(

Please, read the thread.

Spamming me by PM repeating the exact same words in the same order won't make me give you a magic watch with android running.

NO, ANDROID IS NOT RUNNING ON THE GEAR2.

This *should* be a development thread.
[Samsung Gear 2] ASC33:
ok. thank you.

I do not do spam.

firefox bug