yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Original Android Development] harise100:
Maybe you should talk to [MENTION=3463426]RaymanFX[/MENTION], because his 7.0 doesn't have these problems.

Maybe you are missing a Commit or a hack?
[Galaxy Tab S2 Original Android Development] jaap2012:
Hi,

I 'm running CM14.1 now.

When I run Spotify it will switch off wifi after a few minutes, so of cause Spotify stops.

I think it is a power save setting, but how can it be switched off?

Thanks,
[Galaxy Tab S2 Original Android Development] T_I:
I know, I fixed the camera issue. :D

Looks like it, but I need to figure out why I'm missing the commits. Diving into my build tree.

Edit: indeed, force sync of the build tree helped, doing final recompile, but first test shows working camera and youtube. (and the rotate on lock is still gone)
[Galaxy Tab S2 Original Android Development] T_I:
Ok, uploaded latest build, camera and youtube work.

I also found that the rotate-on-lock issue has been solved. This was an issue in CM core code and is confirmed.

However, to get rid of the bug, an advanced wipe + clean install is required together with a rebuild without restoring old device ID.

The question you get when first starting TB on a clean device with a backup on ext_sdcard, keep the new ID.

I can't explain it, but this is the behaviour I found. With the old ID the bug kept in place, both with a dirty and a clean flash. Clean install (after advanced wipe) with a new ID and the lockscreen adheres to the screen rotation set and doesn't rotate back on lock.
[Galaxy Tab S2 Original Android Development] harise100:
Installed 1117 - Runs nice and smooth ! :)

Thanks for your work!

(Did a clean but not advanced flash, so rotation glitch is still there - no big deal for me.)
[Galaxy Tab S2 Original Android Development] Fritzy62:
OK. I see some flashing coming up. Excellent work!
[Galaxy Tab S2 Original Android Development] T_I:
I lost it after an advanced wipe (all except internal storage and sdcard wiped) followed by a clean install. AFterwards I jusr restored my wifi config (xml), rest was freshly installed. Can't think of a reason why restoring the device ID would cause the rotate to re-emerge.

I wasn't bothered by it as well, until I read that it was 'fixed' in T815 and [MENTION=3463426]RaymanFX[/MENTION] told me he didn't change code, it fixed itself. (Then I want to know how to reproduce)
[Galaxy Tab S2 Original Android Development] harise100:
I don't know.

I am not into the code, but I am having a hard time to believe that Rotation has anything to do with the Google ID.

I will try again, if I got some time.
[Galaxy Tab S2 Original Android Development] DroidIt!:
LOL, well I wouldn't bang your head over it TOO much. It sounds like one of those things where it's something is causing it that you think shouldn't. :) The rom works good and if you find it you do and if you don't then keep an eye open for something in your normal course of working on the rom that might be the cause. Some of these little bugs are hell to find...my opinion. :D
[Galaxy Tab S2 Original Android Development] RaymanFX:
Hey, I think I might have missed something when talking to you back then.

I actually did something to fix the rotation issues on cm-13.0:

https://review.cyanogenmod.org/#/c/149935/

That change is in cm-14.x right now (since the branch was updated in a linear fashion).

On top of that, I fixed the panel rotation in Android Nougat *again* (because Google changed the code):

https://review.cyanogenmod.org/#/c/161715/

Rotation has been fine for me on SM-T815 ever since.

I think I forgot about those when you asked me about it because I had my head buried in camcorder work.
[Galaxy Tab S2 Original Android Development] T_I:
Wow, this explains a lot, as I was looking in the gts2 code, not in the 'regular' cm tree. This also explains why it didn't work in my builds, my development tree was somehow detached from the cm repo. A complete rebuild of the development tree helped though. (I'm now even trying a build for T71x, just to see if my dirty build tree was the cause of those failures as well)
[Galaxy Tab S2 Original Android Development] lewmur:
You're getting close, but still no cigar. Mic isn't working with 1711 build. Camera is working.
[Galaxy Tab S2 Original Android Development] harise100:
Camera is not working!

When taking a picture, any camera app FCs.

Video recording works, but without sound.

I can give you a Logcat later, if needed.
[Galaxy Tab S2 Original Android Development] T_I:
Found it, patch https://review.cyanogenmod.org/#/c/163722/ is still needed, but I'll have to adapt it to the correct labels.

This won't help with mic I guess, but camera should work after that.

In the mean time, as root set selinux to permissive (setenforce 0) and the camera will be able to save the images.
[Galaxy Tab S2 Original Android Development] harise100:
With SE Linux permissive, camera doesn't FC anymore.

For the record: The screen-off Rotation glitch starts,when you enable "Adaptive Brightness" in display settings.
[Galaxy Tab S2 Original Android Development] lewmur:
I know we're not supposed to ask questions about "when" something will be fixed, but this is more a question of "if". Do you have any hints about what might be wrong with the mic? Anything to work on?
[Galaxy Tab S2 Original Android Development] T_I:
It's fixed and patch uploaded. Updated OP, 2111 image has this patch incorporated.

Just tested, with my tablet (advanced wipe of Dalvik, system, data and cache followed by the installation of 17-11 or later images) I can't reproduce anymore.

I just changed every display setting I could find, even switched adaptive brightness off and on several times (I have it on) and the bug is gone (here).

At the moment, I haven't really looked at it, as to my knowledge we had this working in the cm13 tree. Looks like it broke again in cm-14(.1).

Could be anything at the moment, the error I can catch is this one:

11-21 12:51:26.889 2581 2654 V audio_hw_primary: out_set_parameters: key value pairs: routing=2

11-21 12:51:26.889 2581 2654 V audio_hw_primary: start_output_stream: starting stream

11-21 12:51:26.895 10128 10128 D stopRecording: false

11-21 12:51:26.909 2581 2654 V audio_hw_primary: *** select_devices: Routing hasn't changed, leaving function.

11-21 12:51:26.909 2581 2654 V audio_hw_primary: start_output_stream: stream out device: 2, actual: 2

11-21 12:51:26.930 10128 10128 D RecordSer: onCreate

11-21 12:51:26.938 2581 2661 V audio_hw_primary: adev_open_input_stream: Created resampler converting 48000 -> 44100

11-21 12:51:26.938 2581 2661 V audio_hw_primary: adev_open_input_stream: Requesting input stream with rate: 44100, channels: 0x10

11-21 12:51:26.948 2581 10322 I AudioFlinger: AudioFlinger's thread 0xb4683680 ready to run

11-21 12:51:26.956 2581 10321 V audio_hw_primary: ***** select_devices: devices=0x2, input src=1 -> output route: media-speaker, input route: media-mic

11-21 12:51:26.970 10128 10128 D liblame.so: initialized lame with code 0

11-21 12:51:26.973 10128 10324 V MicrophoneInput: Error reading audio

11-21 12:51:26.973 10128 10324 V MicrophoneInput: java.lang.NullPointerException: Attempt to get length of null array

11-21 12:51:26.973 10128 10324 V MicrophoneInput: at com.google.speech.levelmeter.a.run(Unknown Source)

11-21 12:51:26.973 10128 10324 V MicrophoneInput: at java.lang.Thread.run(Thread.java:761)

I'd say it's a routing (looks ok though) or a device driver issue.

Edit: I stand corrected, mic never worked in my builds. Not even in cm-13.0 (Haven't tested cm-12.1 though, that's based on another source stack)
[Galaxy Tab S2 Original Android Development] hurray:
[MENTION=4557146]T_I[/MENTION]: I use your CM13 built as my daily rom and the mic works very well. I record regulary some courses at the university with the TabS2.
[Galaxy Tab S2 Original Android Development] T_I:
Hmmm, which build, or do you use a nightly. (As my restored unofficial cm-13.0 doesn't record sound with the apps I have)
[Galaxy Tab S2 Original Android Development] NeWONEx:
Does it records with same quality as stock? , because i used to record the lectures but after installing Custom rom I started to record by my phone .
[Galaxy Tab S2 Original Android Development] aliusman999:
[MENTION=4557146]T_I[/MENTION] I remember there was an issue with YouTube Play, was that fixed or a work in progress.

Great work with this Rom, this is the only 7.1 available :)
[Galaxy Tab S2 Original Android Development] harise100:
It is fixed in latest build.

Only microphone is missing for perfection. ;)
[Galaxy Tab S2 Original Android Development] aliusman999:
Awesome, I will give it a try. I don't use microphone anyways or camera. :)
[Galaxy Tab S2 Original Android Development] hurray:
I use currently 13.0-20161021-NIGHTLY-gts210wifi.

The apps which I have tested are "Easy voice recorder" and "All that recorder". Both of them are doing records very well. The first app as .m4a and the second one as .mp3.
[Galaxy Tab S2 Original Android Development] aliusman999:
1. Quick Heads up for people want to use Substratum - I tried and it gets stuck in bootloop so substratum is no, no for this Rom (It does work on my Nexus 6 though on CM14.1)

2. Playing a video on YouTube, it was zoomed-in (re-scaled) - I locked the screen while video was playing and after unlocking it in now on Normal size. Did someone else find this bug or is this something on my side.

EDIT:: Correction for substratum: I re tested it and the only overlay causing issue was the "system" overlay. You can tweak settings, apps , navbar etc but when you apply the "system" overlay you get stuck in bootloop. Take a full backup (boot, system, data) in recovery before applying anyways.

Hope this helps
[Galaxy Tab S2 Original Android Development] TheMorpheus:
I'm running t815 version, but I have both of your problems. I've noticed that YouTube videos are zommed-in when I play them at 1080p or above
[Galaxy Tab S2 Original Android Development] aliusman999:
Do you have YouTube RED? if so, you can lock the screen while video is playing in background and then unlock it, fixes the problem. Then you can play any video normally. It is bit weird, i need to test this a bit more - I am using T810.
[Galaxy Tab S2 Original Android Development] aliusman999:
OK I fully tested it, as you said the issue only happens with 1080p and above although the workaround works every time. My workaround is to press the power button while video is playing in the background and then unlock it, fixes the scaling. When you play the next video, it automatically switches to 720p, when you change back to 1080p, same issue happens.

DEV might be able to shad some light on this.
[Galaxy Tab S2 Original Android Development] NeWONEx:
Or you can change view to "view in cardboard" and back to normal view . It will fix it and next video you have to do the same thing.
[Galaxy Tab S2 Original Android Development] lewmur:
For some, myself included, the mic not working is far from minor. I can find a wifi connection just about anywhere I go and therefore I can use Google Hangouts dialer to turn my tablet into a phone. Can't use the Google voice search feature without a mic either. Can't do dictation either. No mic is ROM breaker IMO.
[Galaxy Tab S2 Original Android Development] DPR59:
Hi, great rom good work.

Feedback: Netflix no longer working for me since version from 17-11-16. Tried wiping app memory and a clean installation without success.

Keep up the good work.
[Galaxy Tab S2 Original Android Development] aliusman999:
Yep that works too, although after switching back to normal my video goes black for 10 seconds
[Galaxy Tab S2 Original Android Development] suzook:
Obviously this ROM is NOT for you then.
[Galaxy Tab S2 Original Android Development] lewmur:
Obviously not at this time. But I don't imagine any dev would be satisfied with a ROM that didsn't have a working mic. I fully expect that it will eventually be fixed. I'm just hoping it will be sooner rather than later.
[Galaxy Tab S2 Original Android Development] suzook:
Of course they are not satisfied. The issue is complaining about it.
[Galaxy Tab S2 Original Android Development] lewmur:
I'm not complaining. I'm merely stating my opinion of dubbing the mic as a "minor" defect. Seems to me you are the one making an issue where one doesn't exist.
[Galaxy Tab S2 Original Android Development] tulth:
I installed your cm14.1 this weekend and it works great!

Somehow it even fixed my problem with the logitech tab s2 keyboard case not sending the control-space key combo! I use this in emacs vnc sessions.

Maybe this will help others, my logitech tab s2 keyboard case recent apps button didn't work. To fix, i copied /system/usr/keylayout/Generic.kl to Vendor_046d_Product_b344.kl. I then added "key 183 APP_SWITCH" to the new kl file, and now it works.
[Galaxy Tab S2 Original Android Development] T_I:
Then you're stuck with cm-13.0 for now. The mic is reported to work there.

There are lots of minor issues, for the current dev team, mic is one of them. (The biggest, but still minor after screen, audio, rotation issues had been solved)

For me an issue is 'minor' when it doesn't prevent >75% of the testers to use it as a daily.

It's still marked alpha, so those issues are to be expected, even the cm-14.1 core still has loads of issues. Next to mic not working on this device, small details as battery icon (only nattery, portait works, rest shows that icon) and theme engine are yet to be solved. As far as I can debug the mic issue, it should work. The problem is either upstream (cm core code) or my still limited knowledge on how to debug deeper. (logcat is not showing enough)

Thanks.

Wow, emacs users... nice to find one. (tried it once after 6 years of vi usage, didn't manage to save a file or even exit and let it be, 22 years ago)

Man I feel old after typing this, was 'only' 16 when I started using vi. :rolleyes: :D
[Galaxy Tab S2 Original Android Development] aliusman999:
Thanks for your work [MENTION=4557146]T_I[/MENTION]

Any idea whats wrong with the YouTube 1080p zoom issue?
[Galaxy Tab S2 Original Android Development] lewmur:
T_l;

Again, let me make it clear. I am in no way complaining about the job you are doing. I am VERY appreciative of the work you are doing. You opinion of "minor" and mine differ on one point. Now, to me, THAT is a "minor problem".
[Galaxy Tab S2 Original Android Development] aliusman999:
Hi [MENTION=4557146]T_I[/MENTION] , this might help

BUG REPORTS:

1. Every-time you reboot your device, the device loses the Root access - You have to tap build number to enable developers option after every boot and grant root access in developers option

2. YouTube video zooms in when you play 1080p video (Workaround: 1- Lock the screen while the video is playing and then unlock 2- Run it in cardboard view and then normal)

Cheers
[Galaxy Tab S2 Original Android Development] T_I:
:D

1. That's an oldy, had that issue way back in cm-13.0 (first versions?). Got fixed by rebuilding my build tree in cm-13.0 before it went nightly and haven't seen it since.

What I noticed before I did a compleet wipe (advanced wipe Dalvik, system, data and cache) to get rid of the rotate on lock was that with the last few cm-14.0 and first 1-2 cm-14.1 builds reset the development option. (However, in both situations, root access was available on my tablet, even before re-enabeling development)

2. Just tested with MINIONS Trailer #2 (HD 1080p] and found no issue. Cardboard view from the start, full-screen - cardboard switching no issue, pauses on lock. (Probably a setting my side)

I'm running 25-11 version. (When I remember correctly installed the 17-11 version after advanced wipe, dirty flashing a couple of versions, including the uploaded set) Can you test (after usual backup's of course) if an advanced wipe + clean install of the 25-11 build still has the issues?
[Galaxy Tab S2 Original Android Development] aliusman999:
Thanks for your reply [MENTION=4557146]T_I[/MENTION]

I wiped and clean installed 25-11.

Issue 1 is resolved :) thank you so much :) yoohoo

Issue 2 : YouTube issue still persists. Please see screenshot attached from YouTube. (Normal video and zoomed video at 00:11)

Also I noticed that the "extended desktop" is broken but that seems to be issue in CM14.1 , I have CM 14.1 on my Nexus 6, extended desktop kinda works on it but not properly. I don't think you can do anything about it but screenshot is attached if it helps.
[Galaxy Tab S2 Original Android Development] harise100:
I can confirm too, sometimes 1080p and 1440p videos on YouTube have problems like in the pictures above. Not always... :confused:

Edit: [MENTION=3463426]RaymanFX[/MENTION] has spent some time with our device according to cm code repository. Do they address any of the known problems?
[Galaxy Tab S2 Original Android Development] aliusman999:
For me its always, every video by default plays in 720p regardless. Switching it to 1080p caused this issue every-time
[Galaxy Tab S2 Original Android Development] aliusman999:
Found the solution of YouTube issue by downloading nodpi YouTube app version 11.45.58 from apkmirror... Playstore version is older which causes zoom issue.

EDIT: The above solution NO longer works after a reboot
[Galaxy Tab S2 Original Android Development] T_I:
Could be orientation issue, full-screen or cardboxed, core cm-14.1. Will test after latest rebuild.

He did most of the work and is most of the time working on gts2-common or exynos parts of cm. My knowledge is a lot less then his, but enough to get the T810 up and running based on his T815 and general sources. (and fix selinux issues, which is part of my regular job on Linux servers) Most of the issues we have seem to originate from those general sections. Cm-13 and cm-14 differ a lot, which most likely has triggered these issues. These are now being worked on when the devs have time.
[Galaxy Tab S2 Original Android Development] aliusman999:
This seems to be a global issue for Tab S2 , I tried other ROM 14.1 and had same YouTube issue. Other devices are fine with 14.1 , its just tab s2
[Galaxy Tab S2 Original Android Development] T_I:
Did you try cm-13.0? When that one has the same issue it's our source in all trees, else it's just the cm-14.1 tree.
[Galaxy Tab S2 Original Android Development] aliusman999:
No, when I installed 13.0, it didn't have that issue :) probably was resolved by then
[Galaxy Tab S2 Original Android Development] T_I:
Then it was introduced with 14(.1). BTW I just tested the same trailer, same mode, no zooming on my device. (or I'm testing wrong, could be, don't watch youtube myself)
[Galaxy Tab S2 Original Android Development] aliusman999:
Yeah it is 14.1 which introduced this issue. The other ROM I tested had the same issue. (Microphone is also a cm 14.1 issue for tab s2 only) although in your version of ROM my battery drains so fast as compared to other 14.1 ROMs

It could be Gapps ,. What version of Gapps you used?
[Galaxy Tab S2 Original Android Development] T_I:
Hmmm, maybe I should give cm-14.1 for my phone a go again. Last time navigation failed, which is the main function of the device. (Yeah, I get called, but only once or twice every 2 months)

I use opengapps pico, with youtube installed via the store. (I prefer to have as little system apps as possible, as fighting bloat is the main reason that I'm on cm)

Mic issue is confirmed, as it also doesn't work on the T815. (still hunting that one down)

BTW did a recompile yesterday, updated OP with link to the file.
[Galaxy Tab S2 Original Android Development] NeWONEx:
[MENTION=4557146]T_I[/MENTION] Samsung published the latest version for T815
[Galaxy Tab S2 Original Android Development] Hitchi:
Will it also work on a T819?

Gesendet von meinem SM-T819 mit Tapatalk
[Galaxy Tab S2 Original Android Development] T_I:
Could have some useful code. Will look into it.

Nop, T819 has a snapdragon cpu, not exynos.
[Galaxy Tab S2 Original Android Development] T_I:
Did a new compile to test a modular setup of the gts2 common code. This included the latest cm-14 updates. One of the changes I notices was the battery icon. The circle and landscape icons work again. Mic however is still b0rken. Updated OP.
[Galaxy Tab S2 Original Android Development] brgroover:
Congratulations for your job! ROM is great, but netflix no longer works.
[Galaxy Tab S2 Original Android Development] lewmur:
I believe that is because they are using a UK or EU version of the ROM. I've never been able to get Netflix to work on any non-stock MM or NN ROM on either my T810 or T710.

Even with the stock ROM, if I root or even just flash TWRP, I have to un-install the Play Store version of the Netflix app and install an earlier version apk and then turn off Play Store's "automatic update".
[Galaxy Tab S2 Original Android Development] harise100:
Netflix works fine on my S5 with CM14.1, but not on this ROM.

LogCat says:

12-09 18:15:40.114 E/BufferQueueProducer(2562): [SurfaceView - com.netflix.mediaclient/com.netflix.mediaclient.ui.player.PlayerActivity] cancelBuffer: BufferQueue has no connected producer
[Galaxy Tab S2 Original Android Development] lewmur:
It isn't just THIS ROM. I have yet to see anyone get ANY CM 13 or 14 ROM to run Netflix on ANY S2 tablet.
[Galaxy Tab S2 Original Android Development] harise100:
I haven't tested it with previous / other Roms on this tablet.

Streaming to Chromecast works, which is what I usually do.
[Galaxy Tab S2 Original Android Development] lewmur:
I've tested it on everyone of them and none of them work. And you can't "cast" an app that doesn't work.
[Galaxy Tab S2 Original Android Development] DPR59:
Netflix works for me in UK on the 17-11-16 version of this rom but none since (even with a clean install).

---------- Post added at 12:49 PM ---------- Previous post was at 12:44 PM ----------

Netflix working for me in UK on 17-11-16 version of this rom but none of the others.
[Galaxy Tab S2 Original Android Development] poteck:
I can confirm that it works for me too on 17/11/16 only. What a shame, I never saw Netflix working on my t810 with cm before. It would be great if we can identify what change from one release to next one in order to fix it.
[Galaxy Tab S2 Original Android Development] halloarno:
Upgraded today from cm13 (dirty flashed, gapps upgraded). All went well.
[Galaxy Tab S2 Original Android Development] T_I:
Hmmm, I just checked and the 18th there were some changes in the sepolicy section, regarding mediaserver and mediacodecs. I build all images selinux enforcing. Can one of you test if netflix works after issuing setenforce 0 from the commandline as root (su -).
[Galaxy Tab S2 Original Android Development] harise100:
Tested Netflix with SE permissive, video does not play. :(

Logcat still shows the same error as posted above.
[Galaxy Tab S2 Original Android Development] DPR59:
Do you still want me to try this given the reply from harise100 below:

"Tested Netflix with SE permissive, video does not play. Logcat still shows the same error as posted above."?

I am happy to have ago but unfortunately will need some more explicit instructions.

Sorry not to be more help and appreciate you taking the time to investigate this issue.
[Galaxy Tab S2 Original Android Development] T_I:
I've looked around a bit and this error is triggered by the media server (player) when it want's to cancel a biffer, but the client initiating it (netflix?) is already closed. At least that's the explenation I find when searching for exactly this error. There are 2 parts in playing a video, the app asking it to be played and the media server doing the actual playing. Looks like the communcation between the 2 failes, with the app giving up and the server wanting to clean up, but can't.

This error is part of the problem. (probably the result of the real problem)

Could you reboot the tablet, start logcat, start netfix and try to play something and when it fails, stop netflix and the logcat.

It would also be nice to have a logcat of the working situation so I can compare. It'll result in to not to small logcats, but at least I can compare and see where the working situation has no issues and the broken situation has.