yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Android Development] T_I:
Uploades last build from yesterday. Minor settings changes, tablet could be a bit faster. (slight change noticed, could be placebo effect)

Yesterday I talked with [MENTION=3463426]RaymanFX[/MENTION] and we couldn't think of a reason why the camera won't work on some devices. There was no hardware change, so the image should work the same on all T810 models. Did a clean flash of the 4-6 image and I now have the camera app available in my launcher(s) so I can test it.

BTW Currently I'm adapting settings from [MENTION=3463426]RaymanFX[/MENTION] hist cm13 tree for the 815 to see which settings break my 12.1 build. Each day I'll upload the last working image, when I have one. Most changes are tuning variables. I don't expect stuff to work overnight until I start messing with the code.
[Galaxy Tab S2 Android Development] pilspeda:
Camera works like a charm now (after clean flashing the latest release). And btw: Camera Zoom FX Premium has a 90% discount in google play store (bought it asap)
[Galaxy Tab S2 Android Development] suzook:
I just advanced wiped, reinstalled latest build. Still no camera:( I am wondering if it has anything to do with me being on the Samsung MM build??
[Galaxy Tab S2 Android Development] ivanox1972:
Definitely, effort should go in direction of making cm13 based on Raymans t815 bulid...
[Galaxy Tab S2 Android Development] suzook:
So then do it!
[Galaxy Tab S2 Android Development] Dekan54:
[MENTION=4557146]T_I[/MENTION] I had some time today to do some testing on your latest build. I used your instruction in the OP and my camera works just fine with no additional apps. I can also confirm that the microphone does not work. Not complaining..... just giving feedback on a great build you have put together.

It is 85 and sunny today in Florida so I am heading to the beach. Let me know what more I can do to help you test.
[Galaxy Tab S2 Android Development] T_I:
Nice to know. Thanks for the test. (And yeah, I bought the app with a major discount as well, couple of years ago)

Probably.

My attempts on the MM build died horribly, as stated earlier.

Taking [MENTION=3463426]RaymanFX[/MENTION] his sources and replacing lte with wifi and 815 with 810 should work, as the only difference is the lte module, but it refuses to start at all. (bootloops on the Samsung logo, not even reaching the kernel boot stage)

Dumping my build in cm13 tree gives a totally black device, but it's accessible with adb shell. I'm currently taking small steps in pulling the T815 settings in my tree to see where it breaks. (found an issue already) As this takes complete rebuilds between edits, taking about 4-6 hours on my hardware, it's a slow proces.

We haven't been able to determine the cause of each issue, but I got speed improvement and camera due to this course of action.

Totally agree. The sources are in github, have fun. I didn't develop for cm before december, only compiled for titan, so anybody eager enough to get their device on cm should be able to take them and build. Should give the same results though, my latest commits are there.

Still not sure if gps is working or not. In T710 build it works and we share the code. I expect it to still be broken, but haven't tested it yet. gps status reports sensor available, but config could be the issue.

BTW the 5-6 build is uploaded, small changes in egl settings.
[Galaxy Tab S2 Android Development] DAE1964:
Just updated to today's build, still no camera or GPS for me. Could be my tablet being a t817w. Everything else seems fine and snappy. I don't use the camera on this so no big deal.

Thanks for your hard work. ?
[Galaxy Tab S2 Android Development] T_I:
Just some minor changes, Noise reduction property files from the T815 build have been added and clean rebuild. No change in functionality for gps and mic I'm afraid. Also switched from pre-build libsensorservice to compiled one. All sensors that were working still are, even after clean flash. Hope this make a small difference for the camera sensor on the devices that are missing it now. (Can't test, camera works at my tab)

OP updated with link to 6-6 build.
[Galaxy Tab S2 Android Development] LONGXF:
I love you. Quite good job.waiting for MM.(ﾉ≧ڡ≦)
[Galaxy Tab S2 Android Development] T_I:
Another minor update, some system.prop tweaking, including camera2.portability.force_api. I hope it helps a bit with one of the camera's. With the CM camera app I can switch between back and back camera and v.v., with own app just back to front, not front to back.

OP updated
[Galaxy Tab S2 Android Development] DAE1964:
Just did a clean install. Unfortunately camera still not working. Tab is still better than stock. Thanks again for your hard work. ☺
[Galaxy Tab S2 Android Development] T_I:
Messing around a bit again with the cm 13 version and it's looking good.

Biggest issue I had but didn't think about was the requirement to havenminstalled the stock MM before flashing cm 13. Lte version runs, after some tricks. Recompile with the correct model running.

Sent from my SM-T810 running cm-13
[Galaxy Tab S2 Android Development] suzook:
Wow! Awesome news
[Galaxy Tab S2 Android Development] DAE1964:
Great news. Maybe that's why I couldn't get the LTE version to run. I will try again after installing MM stock.

???
[Galaxy Tab S2 Android Development] DAE1964:
I have cm 13 LTE version up and running. Camera works but my sim card not detected. Don't use data anyway so no big deal. ???
[Galaxy Tab S2 Android Development] suzook:
This is a t810 thread. Of course you have cm13 running on your t815:rolleyes:
[Galaxy Tab S2 Android Development] T_I:
I currently have the T815 build running on my T810, so yeah, why not. :) I needed to repack so it didn't check if I have the T815, but I know it should work and why it previously didn't. Almost everything works, but it tels me I have a T815 and it keeps nagging about not having network coverage.

Compiling (again) with the T815 sources adapted to state it's a T810 and wifi model, after that I'll start hunting for the lte section and killing it off.
[Galaxy Tab S2 Android Development] DAE1964:
Sorry for the mix-up. I've been running your cm 12.1 from from the beginning. Just wanted to inform you cm 13 was working. I would prefer to use a wifi only rom from myself. Keep up the good work you are doing.
[Galaxy Tab S2 Android Development] suzook:
How much crack do you smoke?? I am not the dev....wtf?

---------- Post added at 07:46 PM ---------- Previous post was at 07:45 PM ----------

Can't.wait. Thanks
[Galaxy Tab S2 Android Development] DAE1964:
Rude
[Galaxy Tab S2 Android Development] T_I:
Could be stated a bit friendlier...

OMX sources look b0rken. Building with prop OMX blobs doesn't work as well. Syncing tree again, to see if the upstream sources gave been fixed.

When I get a build compiled I'll upload and try to kill off lte.
[Galaxy Tab S2 Android Development] DAE1964:
Thanks
[Galaxy Tab S2 Android Development] Philippovitsch:
OMXCodec.cpp is working now... CM fixed the kClientNeedsFrameBuffer error. Got a good built today :)
[Galaxy Tab S2 Android Development] T_I:
Nice to read, rebuilding.
[Galaxy Tab S2 Android Development] DAE1964:
Good luck [emoji1]
[Galaxy Tab S2 Android Development] LONGXF:
I think exynos 5433's dispatcher has some problems.When I play GTA SA game,The big cores don't work,So the game lags.My phone's cpu performace is weaker than the Tab S2,but more smooth......Can you improve it?_(ÒωÓ๑ゝ∠)_ Thanks. I think you can make a kernel...I don't know...Depend on you...Your ROM is quite good .
[Galaxy Tab S2 Android Development] pilspeda:
I cannot connect my tablet via Bluetooth with my UE Boombox. Are there any known issues with BT?

Sent via my bacon device
[Galaxy Tab S2 Android Development] T_I:
Looks like there are now. Haven't tested BT myself. (don't use it)
[Galaxy Tab S2 Android Development] pilspeda:
I'll try and pull a logcat later, to see if there is a clue hidden in it

Sent via my bacon device
[Galaxy Tab S2 Android Development] T_I:
Finally I finished a cm-13.0 again after I discovered you need to odin a stock MM on the device before it'll boot. (In the meantime gcc was updated and now needs another CCACHE setting to kill the ccache... build kept on crashing on space issues, which I couldn't find, as it cleaned up after the crash)

BTW build resulted in non-boot. :(

Looks like I got a damaged dtb.img, nicking the lte one. (that one works)
[Galaxy Tab S2 Android Development] benoga:
your cm12 on my Tab S2 works very good

many thanks to you, for your work :good:

nice to hear, that you work on cm13 :cool:
[Galaxy Tab S2 Android Development] T_I:
It looks like the it is less work to convert a working T815 cm-13.0 to the T810 then fixing the cm-12.1. I'm just being selfish, want the damned thing to work on my tablet and know it's name. (but you guys and galls can share the results :D )
[Galaxy Tab S2 Android Development] DAE1964:
Do what's best for yourself. I appreciate your hard work and will test any ROM you produce for us lucky S2 owners.
[Galaxy Tab S2 Android Development] suzook:
So it sounds like we will have cm13 soon?
[Galaxy Tab S2 Android Development] T_I:
I hope, I'm now compiling the lte sources to see if the environment is ok.

I also found small differences with the dtb.img, including that both have 2 modems named, only each one has a different one at some point in their strings output. Long shot, but hey, it's not working anyway now, I'd rather get it fixed via this long shot then not at all :D. (and if not fixed, well, that'll be one difference we can strike off as the cause of my build issues.
[Galaxy Tab S2 Android Development] T_I:
Upload running, in seperate cyanogenmod 13.0 Alpha section. I will create new topic tomorrow. For some strange reason the build included everything from gts2-common device, but not the vendor blobs.

The image has the same issue as the T815 image, microsd is mounted on /mnt/media_rw/UUID instead on /storage/UUID. Will need to figure out why it does this. (And kill off the telephony support)

Sent from my SM-T810 using cm-13.0
[Galaxy Tab S2 Android Development] anks329:
Awesome! Very excited to test this tomorrow. We need to Odin the stock mm rom first?
[Galaxy Tab S2 Android Development] T_I:
Looks like I'll be signing off on this project, cm 13.0 is giving a lot less issues. :D
[Galaxy Tab S2 Android Development] suzook:
I am running cm13 and its incredible! Thank you so much!
[Galaxy Tab S2 Android Development] bryntz:
hello, Sir.. can you compile CM 12 for our T715Y? thank you
[Galaxy Tab S2 Android Development] T_I:
Nop, don;t have one, don't know the differences with the 810.

Dusting off the cm-12.1 sources, doing a new build today. Some issues emerge on the cm-13.0 build I wasn't expecting, so I'm compiling both with the latest cm sources and some settings copied from cm13 to cm12 to check where things differ.
[Galaxy Tab S2 Android Development] T_I:
Uploaded today's cm-12.1 build. Noticed that the cm-13.0 included aosp-base, which I didn't in cm-12.1. It boots, but not tested much, although I can confirm, when you had Android 6 on the device, the camera in this image won't work. Must be something with the firmware of the sensor that got changed in the Android 6 stock image.

When someone hasn't switched to the cm-13.0 image yet, can they check this image to see if there is any improvement?
[Galaxy Tab S2 Android Development] suzook:
WHAT????????? WOOHOOOOOOOOOO:):o:D:mad::p:fingers-crossed::good::laugh:
[Galaxy Tab S2 Android Development] T_I:
Just added to my local tree, when it results in a working build, I'll commit.

Edit: Drat, typo... # lost in the copy. (so comment turned into command not found)

While I was at it, found a fuse_extSdCard with status disabled... lets see what this build brings.
[Galaxy Tab S2 Android Development] suzook:
Keeping fingers crossed!!! This is BIGGGG:)
[Galaxy Tab S2 Android Development] T_I:
You can untie them, screen rotates, wifi works, image uploaded. (although screenshots are giving trouble)

Remember, there is no sdcard what so ever, internal and external aren't working. (and in my gapps the play store didn't want to play nice) However, I found the corner I have to look in to find some issues. The commit I just did was in the right corner, but not all I need to do. More tomorrow.
[Galaxy Tab S2 Android Development] suzook:
Typing this on cm right now!!!! Thanks! Have the playstore issue like you too, but wow...this is great!
[Galaxy Tab S2 Android Development] T_I:
I guess this is related to the missing storage. Play store opens and let you select apps to install, but as soon as the download needs to be stored it's end of story.

As soon as we have storage, I'll call it alpha, until then I don't think it is ripe for anything else then pre-alpha.
[Galaxy Tab S2 Android Development] T_I:
Ok, I'm at a loss, need info on how to debug the filesystem mount options. Location of the github repo: https://github.com/Galaxy-Tab-S2/android_device_samsung_gts210wifi

I've got logic behind the mounts in rootdir/etc/fstab.universal5433, the first set is statically mounted, nicely via /dev/block/platform/15540000.dwmmc0 . However, as soon as the fstab comes to the vold mounts, there are issues.

The fstab states /devices/platform/dw_mmc.2/mmc_host/mmc2*,/devices/15560000.dwmmc2/mmc_host/mmc1* as possible device locations for extSdCard, but the complete /devices tree is missing. The microsd is available via /dev/block/platform/15560000.dwmmc2, so it isn't a kernel issue, at least not with the dev entries, this is in userspace. (or wherever vold is residing)

When I check file rootdir/etc/init.universal5433.rc I find lots of services that should get defined, but the ones I can check, none work. As of line 608, all seems to be ignored. Below the line to define the service sdcard, which should handle the first redirect/mount of the internal sdcard. (but fails)

service sdcard /system/bin/sdcard -u 1023 -g 1023 -l -r /data/media /mnt/shell/emulated

class late_start

oneshot

When I try to execute the sdcard command without 'service sdcard', I get an error 'option r not supported'. Same with the next line (then option f not supported). I'm lacking knowledge on how to debug this. Where can I find the logging for the init.rc scripting tree? Is it starting the init.universal5433.rc the problem, is the service command the issue, is the sdcard part the issue? (Or is all captured by logcat during boot?)
[Galaxy Tab S2 Android Development] suzook:
There was a guy [MENTION=2346758]eousphoros[/MENTION] who got cm working on the original Tab s. I believe the same issues with sd card. Im wondering if he would be able to help?
[Galaxy Tab S2 Android Development] T_I:
Thanks for the pointer to him, I've contacted him.
[Galaxy Tab S2 Android Development] T_I:
While I was looking into the Tab S sources, [MENTION=6584695]CTXz[/MENTION] was looking at the Note 4 sources. He used their storage fix and got storage working for the T710. I've added the same patch and I'm now building an image from scratch (with the latest cm patches as well). When this works, I'll up to Alpha.

Edit: Kinda works. I now have an image on which /storage/emulated/legacy works, but everything else doesn't. It means apps can be installed, but the /sdcard mountpoint isn't there, also extSdCard is not available. The /devices directory tree is still MIA. (latest image in OP)

Edit 2: Ok, found the biggest difference between the T710 and T810 devices. Nicked the init.*, fstab.* and ueventd.* files and will start comparing and testing until I have storage on the locations we expect it.
[Galaxy Tab S2 Android Development] benoga:
Thanks you for your hard work!
[Galaxy Tab S2 Android Development] suzook:
Very nice. Keep up the great work

EDIT..Latest 12/22 file is corrupt. Not complaining, just letting OP know.
[Galaxy Tab S2 Android Development] T_I:
Ok, my bad, uploading and recompiling don't mix well. :( New compile run is active. I'll upload when this one does what is posted it should do. (if not, revert changes and build a good image that can be used)

Edit: I'm now uploading the image I had on my tablet. It works as described, no md5sum calculated.
[Galaxy Tab S2 Android Development] suzook:
Awesome work! My tab s2 is like a new tab with cm.
[Galaxy Tab S2 Android Development] benoga:
Where do you download the newest Rom without the ZIP corruption?
[Galaxy Tab S2 Android Development] T_I:
I just manually mounted sdcard1 and restored my setting. It is indeed as new with this image. I'm still stumped why the mount/storage/sdcard1 fails though. The service is defined in init.universal5433.rc, but if just doesn't register.

Edit: learning more and more, /devices is shorthand foor /sys/devices... I'm missing /sys/devices/platform/dw_mmc.2 (or even any dw* or *mmc* directory) The hunt is on, again.

Edit 2: Hmmm, when you want dw_mmc, maybe the dw watchdog is a useful option in the kernel. Enabled and compiling.
[Galaxy Tab S2 Android Development] suzook:
OP hasn't posted it yet, but i thought he stated yesterday he was uploading it. Maybe he forgot to post the link.

---------- Post added at 07:25 AM ---------- Previous post was at 07:24 AM ----------

Is that ext sd?
[Galaxy Tab S2 Android Development] T_I:
Upload failed, started it again, should be visible via 'all files' link.

Edit: Failed again on the German server, the server in Canada is already at 50%.

Yes, I think I found the issue, compiling.

Sent from my T810 running cm 12.1
[Galaxy Tab S2 Android Development] T_I:
Finally, the upload of the 22-12 version succeeded. Updated OP with link to this image.

I've just switched to this rom as my daily, so I think it's ripe for Alpha phase.

Lots of issues left, but for me no show stopper. (First thing I do on the tablet is mute the thing, but sound is the next target, when the external SD mounts at boot ;) )
[Galaxy Tab S2 Android Development] suzook:
Great build! Thanks SO MUCH!!!
[Galaxy Tab S2 Android Development] T_I:
Ok, small update. The current 24-12 build is minus the gsm module, as the T810 doesn't have a sim slot. I'm now recompiling in the hope I finally found the correct device to let the vold process mount the external sdcard.

Sent from my T810 running cm 12.1
[Galaxy Tab S2 Android Development] suzook:
WOW, your unstoppable. Thats awesome! Keep up the great work. We really appreciate it.
[Galaxy Tab S2 Android Development] daavm:
Any possibility to have the fingerprint scanner working?
[Galaxy Tab S2 Android Development] suzook:
Seriously??? Dont push your luck. OP, keep up the great work!
[Galaxy Tab S2 Android Development] T_I:
Yep, minimal chance, but there is one. Haven't tested it, as I don't use it. Didn't do anything to the sources to activate it. When it is working, it's due to luck. [emoji1]

Sent from my T810 running cm 12.1
[Galaxy Tab S2 Android Development] T_I:
Ok, I'm at a loss, again. I'm missing something crucial. Device is ok, but storage section in settings is missing the mount option for sdcard, but not for usb.

I also have issues with root in the development section. Each reboot I need to switch it from apps and adb to something else and back again just to get su back. As if the image will not accept a start with su available.

More after christmas, happy holidays.

Sent from my T810 running cm 12.1
[Galaxy Tab S2 Android Development] suzook:
I had the su issue. I installed supersu from play store, su sticks after reboots.
[Galaxy Tab S2 Android Development] T_I:
As I'm developing the rom, I'll add this as a solution, but will refrain from using at, as to be able to see when I fixed this issue. ;)
[Galaxy Tab S2 Android Development] T_I:
Yes, I got him... :victory:

OP updated with link to this image, update log and screenshots. Re-added recovery instructions, as there were still some issues on other tablets with some of the images.

I'm going to enjoy christmas at home, away from the computer now, see you on the flipside.

P.S. Yeah, I'm totally happy, I got this myself. (Took me long enough though, but still happy)
[Galaxy Tab S2 Android Development] suzook:
Awesome!!! Merry Xmas!
[Galaxy Tab S2 Android Development] kisypher:
To get 5g Wi-Fi working I went into /device/system/etc/WiFi/nvram_net.txt and edit ccode=all to ccode=US then reboot.

Sent from my not-so-stock SM-T810
[Galaxy Tab S2 Android Development] TheMorpheus:
Nice work!! I own a T815 and when you'll fix the sound (I can't afford to lose it) I can help you test for my model if you want to support it!
[Galaxy Tab S2 Android Development] CTXz:
I'll commit a fix for this to the repo. Thanks.
[Galaxy Tab S2 Android Development] T_I:
Ok, next issue, su not working at boot. I use adblockplus to block ads, which is a nice test case. Disabled autostart, reboot tablet, adb logcat and then:

Go to apps & start adblock+ -> su failed (starting daemon client -> E/su ( 7161): connect failed with 2: No such file or directory)

Kill app (settings -> app -> force stop)

Change Root Access from Apps + adb to adb and then back)

Start adblock (starting daemon client -> D/su ( 7336): remote pid: 7333)

Haven't got a clue (yet) on where I can find the start of the 'remote pid', or to be more presice, the parent proces that starts it. Somewere while changing de developer settings (after D/SubSettings( 7187): Launching fragment com.android.settings.DevelopmentSettings) the damon handeling the connections between client and policy manager gets started. I just can't find it. Logcat is here is it's to big to include in this post.
[Galaxy Tab S2 Android Development] T_I:
Ehm, will this not break the wifi settings for all non-US users?
[Galaxy Tab S2 Android Development] CTXz:
No, I will use a different fix ;)
[Galaxy Tab S2 Android Development] T_I:
Hmmm, found this github repo. Would explain a lot, as we don't start a su daemon... building.
[Galaxy Tab S2 Android Development] T_I:
Right idea, wrong solution. Something to dive into.

Edit: this looks like the correct commit. Only issue I have was that it wasn't included in the init.rc. Lets see of just including it helps.

Sent from my T810 running cm 12.1
[Galaxy Tab S2 Android Development] T_I:
Yes, [MENTION=6584695]CTXz[/MENTION] got sound working on the T710. I've included his commits in the T810 tree. I had some issues which didn't turn up on the T710, so I decided to grab all proprietary blobs from the T810 image I have (again) and kick them in the repo. It looked like I forgot a few last round, so I'm recompiling from scratch to see if these commits and the bob updates will work for this build to fix a couple of issues.

Differences between the T710 and &810 build are now:

Sound (T710 just got fixed)

su --daemon (T710 works as it should, T810 won't start it)

GPS (T710 worked from the start, don't know why it didn't on T810)

I hope I fixed those 3 with the latest patches. (or at least the first 2)
[Galaxy Tab S2 Android Development] T_I:
Drat, what a noise those games I play make. Sound is working. :D

Uploaded image, updated link in OP.

Fir gps I found an error, gpsd was missing libsecril-client.so, I'm curious why the T710 build has it (or doesn't use it) and the T810 is missing it (or is using it). It is in de prop-blobs tree, but not (yet) included. First step is to build with this lib.
[Galaxy Tab S2 Android Development] anks329:
Thanks for all the hard work! Looking forward to trying out the new image :)
[Galaxy Tab S2 Android Development] suzook:
SOUND!!!!!!! OP, your the best.
[Galaxy Tab S2 Android Development] T_I:
And with the latest build GPS is working as well, replacing previous upload with new one. (so link in OP is not working at the moment)

Edit: upload finished, link updated
[Galaxy Tab S2 Android Development] T_I:
Ok, I got a work-around that people can implement when they want su after boot fixed.

Just create a file userscript.sh with content

#!/system/bin/sh

/system/xbin/su --daemon &

and reboot.

Haven't got a clue why this works, but the regular /init.superuser.rc (included by init.cm.rc, which in turn is included by init.rc) fails for some reason, unclear to me.

It's a very dirty work around, but it works.
[Galaxy Tab S2 Android Development] suzook:
Wow! You ever take a break??? Thanks again!