yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S Android Development] MateusL13:
Really great work 🤩

The rom runs pretty good, but just without Gapps.
[Galaxy Tab S Android Development] shaglord:
I believe the full charge marker can get reset. I only charge to 95% and after leaving it powered off for 2 weeks it booted up as 100%.

After installing or updating try to charge it and leave it on the charger despite it showing 100%. It should calibrate automatically.

An advantage with this rom is that it comes with the Deathly kernel and app (requires root, simple procedure). In it you can disable all the crap that samsung does to slow down charging. Several of my Tab S first gen are notorious for not being able to charge fast enough to be used while charging (they're picky with cables and chargers). This annoying problem is now solved, many many years later. The low speaker volume and cpu overheating issue are also taken care by Deathly. It's working great now.

If the problem remains try to wipe system and data before installing the rom. Root it too so Deathly can work.

(Suggested install procedure: 1. Install magisk on old rom, and patch the new rom zip for root. 2. Boot into twrp and copy the magisk patched boot.img onto the computer (so it dosen't get deleted). 3. Wipe system and data and cache. 4. Transfer over the lineage zip, gapps pico, boot.img and magisk.apk to the tablet. 4. Install the first three before rebooting. 5. Install magisk after booting.)

There are settings like "power saver" that bring the cpu clocks down in idle (without sacrificing max clock). It sounds odd but in power saver mode the cpu acts like it should for a mobile device. Default it's more or less in "performance" mode which drains the battery. You can find the performance slider in the tablet settings. Pull it to the left to "power saver". Don't worry. It won't make it slow.
[Galaxy Tab S Android Development] shaglord:
Works pretty good with gapps (pico) too. But yes, if you can do without you'd save more battery.
[Galaxy Tab S Android Development] dmitry1986:
I think this will not help, since the 807 tablet is discharged when it just lies with the screen turned off. And the tablet 800 is almost never discharged. I also noticed that at idle the 807 is a little warm, and the 800 is cold. Are there any users of the 805 or 807 tablet? How are you doing with battery drain when idle?
[Galaxy Tab S Android Development] Hazou:
I can't test anything. But what firmware do u flash on the t807? I don't build for that one.
[Galaxy Tab S Android Development] dmitry1986:
Firstly, I want to thank you for the excellent work on creating the custom firmware, you gave the tablet a new life! As for the 807 tablet, this is a version for mobile operators (I have the 807t version, that is, TMobile) and I am sure that it is no different from the regular 805 model. I disassembled the 807 and 800, everything is the same inside, except for the absence of a modem in the 800 model. I think the discharge has something to do with the presence of a modem. Because of this, I have a question, how are things going with the discharge of users of the 805 tablet model? Is it possible to turn off the modem using software?
[Galaxy Tab S Android Development] shaglord:
The T807 could be the snapdragon version. I'm not sure. This thread is for Exynos versions only.

If my memory recalls, the snapdragon version existed only in the us.
[Galaxy Tab S Android Development] dmitry1986:
The exynos chip, otherwise I would not have been able to install the firmware.
[Galaxy Tab S Android Development] FengWind:
The download link is not working.
[Galaxy Tab S Android Development] shaglord:
I have the chinese T805C and it's got a different code, not chagalllte, but the T805 version installed and runs fine.

Are you sure you installed the lte version of the rom?

Did you wipe system/data/cache?

Are you using the latest version of twrp?
[Galaxy Tab S Android Development] Hazou:
New release: 1.7, 29-10-23

LineageOS 17.1 for Samsung Galaxy Tab S 8.3/10.1 Wifi/LTE (T700/T705/T800/T805)

Changelog:

Selinux set to Enforced!

Added extra security patches to WebP library

Disabled ZSWAP (Samsung) and ZCACHE (ZCACHE could cause problems with video playback and maybe more memory issues)

Updated ZRAM (Android default)(Replaces ZSWAP and ZCACHE entirely)

This build passes SafetyNet Attestation on at least the T800.

Make a backup before installing. Selinux enforced may cause issues.

Release Samsung T700/5 T800/5 LineageOS-17.1-29-10-2023 · HazouPH/android_device_samsung_universal5420-common

LineageOS 17.1 for Samsung Galaxy Tab S 8.3/10.1 Wifi/LTE (T700/T705/T800/T805) Changelog: Selinux set to Enforced! Added extra security patches to WebP library Disabled ZSWAP (Samsung) and ZCACHE...

github.com
[Galaxy Tab S Android Development] aelfinn:
Should a dirty flash over the previous release work okay?
[Galaxy Tab S Android Development] Hazou:
I think it will, done it myself. But in case it won't, you have a backup I presume.
[Galaxy Tab S Android Development] acytoo:
Thank you for the new build!

I saw the change in RAM, will this improve the performance?

Also, what's your recommended version for twrp? I remembered many twrp can't backup and restore successfully.
[Galaxy Tab S Android Development] Hazou:
Nope, won't change performance. I don't think any change will do that anymore. This hopefully makes the ROM more stable.

I use TWRP 3.7.0_9-0 without any problems. I believe it is one of the latest.
[Galaxy Tab S Android Development] aelfinn:
Which

Would you say any of the CPU governors makes a difference in responsiveness of the tablet?
[Galaxy Tab S Android Development] Hazou:
Yes, they do. But the overal performance won't increase. Which one is better, I don't know
[Galaxy Tab S Android Development] prodj77:
Wow Hazou 😀, you included the SafetyNet pass in record time!!!! 👏🏼👏🏼👏🏼.

Thank you so much for the great work you put into the ROM 👌🏼
[Galaxy Tab S Android Development] prodj77:
Hi again @Hazou,

I did a dirty flash and it worked, but then I did a clean flash with the GApps "open_gapps-arm-10.0-mini-20220215" and enter to a boot loop... any suggestion? Thanks
[Galaxy Tab S Android Development] Hazou:
Force restart. I noticed that the Touchhal sometimes doesn't load. This may cause the bootloop. I have experienced that a few times after a dirty/clean flash. Needed to force restart it up to 3 times. Why I don't know yet, haven't searched for an answer because of the low frequency.
[Galaxy Tab S Android Development] prodj77:
Thank you, I'll try 👍🏼
[Galaxy Tab S Android Development] shaglord:
On my other devices it would bootloop when I forgot to wipe cache. Try that.
[Galaxy Tab S Android Development] prodj77:
Thanks, I wiped everything. But, as Hazou said, some restarts solved the problem 👍🏼
[Galaxy Tab S Android Development] dmitry1986:
I reinstalled the four-file stock firmware, installed the latest twrp, installed lineage17.1 from 20231029, installed root rights. Did a wipe system/data/cache. The result is the same.
[Galaxy Tab S Android Development] shaglord:
Sorry to hear it. It's a surprise to me because I was able to install the T805 rom on T805C and everything is fine except the high clocks in idle (fix available).

Did you download the lineage version "chagalllte"?

If the battery does indeed hold a normal charge and then drains fast something must be getting really hot. Is the back of the tablet burning hot?

I'd also try to install Magisk and give Deathly root permissions. Deathly customizes many aspects of the hardware. You can try to change some cpu or battery related settings. There are interesting statistics in there too that you could analyze or take screenshots of. If you notice something maybe it can be patched on the next version.

Did you get any error messages during the install of Lineage in twrp?

CF-Autoroot is available for our tablets. I don't know if that's needed for the T807.
[Galaxy Tab S Android Development] dmitry1986:
How do I understand that I might have the same problem?

Yes, chagalllte.

After flashing again, the tablet is cold, but the battery drains just as quickly.

There are so many parameters that I don’t know which parameters to change. I'm afraid to kill the tablet, since there are changes in the frequency and voltage of the processor. Perhaps you could advise me which parameters and in what intervals can be changed? I can also provide statistics (for what time interval?).

yes, one error constantly appeared during the installation process in twrp - failed to mount '/hidden' (invalid argument).

yes, this is installed, without this it was not possible to install twrp via odin.
[Galaxy Tab S Android Development] shaglord:
Sounds like you might need a custom twrp version. But I'm not a pro. So maybe wait for someone more knowledgeable in twrp to reply.

I'm just a very excited user of the first gen Tab S. I have 3 of them.

I have a feeling the rom is fine. It's just that you've got a different partition configuration that screws up twrp. Have you checked if there's a T807 twrp? Official or unofficial?
[Galaxy Tab S Android Development] dmitry1986:
I installed the latest official version of twrp for sm-t805. I couldn’t find a custom or official version for the 807 model.
[Galaxy Tab S Android Development] shaglord:
This can be dangerous but perhaps there's a way to crossflash the T807 over to a T805 with the samsung rom.

It could brick the device. I suggest you verify with someone more knowledgeable before trying.
[Galaxy Tab S Android Development] Hazou:
I see there is a device tree for the 807T. It is just old.

GitHub - exynos5420/android_device_samsung_chagallltetmo: Device tree for chagallltetmo (SM-T807T)

Device tree for chagallltetmo (SM-T807T). Contribute to exynos5420/android_device_samsung_chagallltetmo development by creating an account on GitHub.

github.com

Maybe if someone updates it, it could help with your issues.
[Galaxy Tab S Android Development] dmitry1986:
I think that thread is dead. Maybe it is possible to diagnose and log the reason for the battery draining so quickly using some tools?
[Galaxy Tab S Android Development] Hazou:
BetterBatteryStats could do it. With root acces it can monitor almost everything.
[Galaxy Tab S Android Development] stsz1954:
Hello.

I have cleanly installed this rom on my tablet (SM-T700) I have fully charged the battery. I

have set the battery to power save. now, when I go to Battery in Settings, the "Last full Charge" and "Screen usage since full charge" are all over the map They go up and down and sometimes reset themselves when the tablet is turned on. What could be causing this and is there a fix for this?
[Galaxy Tab S Android Development] Charuzu:
Good evening, Hazou. Are you perhaps, a Filipino as well? I have my T700 and if it's okay with you, may i ask directions for flashing this rom properly? I've been using blues557's (sorry if i spelled it wrong) lineage 17 rom for a year already. I seek to make my T700 run the smoothest, and most stable possible whilst being able to record videos with audio properly. Thanks in advance!
[Galaxy Tab S Android Development] Hazou:
I do think the smoothes experience is with the stock 6.0 ROM. It is most optimized with proprietary code to run on those tablets. All others will get close, but not equall. The only downside with the Stock rom, it is old and may have security issues.

The most basic variant to say how to install this rom is:

- Download latest stock rom and install it

- Flash the latest TWRP through ODIN

- Flash the latest ROM u wanna have through TWP

- Flash the latest GAPPS u wanna try through TWRP

And no, I am not a Filipino. I live 10.0000km abroad.
[Galaxy Tab S Android Development] bluess57:
Knock yourself out:-

Analyze power use with Battery Historian | App quality | Android Developers

The Battery Historian tool provides insight into a device’s battery consumption.

developer.android.com
[Galaxy Tab S Android Development] shaglord:
I like that your rom has more free ram. PIP is working too, and Deathly. Awesome! Haven't had a crash since I updated to v1.7.
[Galaxy Tab S Android Development] teohub:
I think Hazou's latest ROM v1.7 is the most stable, fastest ROM for T700 in years. Haven't had any problems with it yet.
[Galaxy Tab S Android Development] Bushcrafter:
Thanks Hazou for v1.7. It seems to work really well on my T800. No freezes so far.😊👍
[Galaxy Tab S Android Development] Hazou:
Good to hear. I still think we can improve the media codecs. I find them somewhat slow on this device. Even the hardware backed codecs. Maybe someone knows anything?.
[Galaxy Tab S Android Development] bestiatester:
Great ROM, a lot of work on those sources :)

Thanks a lot for your work, it is nice to see people caring for this "old" devices.

BTW, just for curiosity... why LOS 17 and not 18 which is typically the last one for this old devices.

Thanks again for that hard work.
[Galaxy Tab S Android Development] Hazou:
I don't think 18 is the typical last one. I know people who are using lineage 19/20 on this device without much problems. I chose 17, because I already did some changes back in 2020 on 17 sources and it was at that time the most stable rom that didn't need much change to run smooth. It just needed some refinements. Maybe, when I have some time in 2024, I will try 20 or 21. But most problems on those roms are fixable. It just cost to much time at the moment to do anything on those.
[Galaxy Tab S Android Development] shaglord:
I'd like to report an issue that may or may not be rom related.

I noticed that my bluetooth earbuds sound a lot better connected to my phone than the tablet. I noticed that if I go into developer settings and switch the codec settings to what they are on my phone it sounds better, maybe as good. The problem is the settings don't stick. After reconnecting, everything is back to what it was and I need to change them again. Any ideas? Thanks!

The pic are the settings I'm trying to save.
[Galaxy Tab S Android Development] shaglord:
I have no need to switch to L20 - A13 but for resizing the PIP window. That's the only feature I miss in A10. What else is better in A13?

Oh yes, I heard that L20 has Miracast support. I'd love for my tablet to be able to receive casts.

Would L20 mean that we don't have Deathly anymore? That app+kernel are absolutely essential. If you asked me 2 months ago, I'd never have heard about them. They fixed so many things like low volume, slow charging, overheating, throttling etc.
[Galaxy Tab S Android Development] Hazou:
But which parameters did u change?

Nope. If I try that on in the future. I will take that as well.
[Galaxy Tab S Android Development] shaglord:
The pic in the last post are the settings I wish to set. The pic in this post are the settings after a reconnect. Some do save, some do not. See below.

AVRCP - ok (saves fine)

Audio Codec - resets

Sample rate - resets

Bits per Sample - resets

Channel Mode - resets

LDAC Codec - resets (sometimes it doesn't reset, today it did)

If I could choose to fix only one or two of these it would be the audio codec and LDAC.
[Galaxy Tab S Android Development] racingweirdo:
Did you change "earpiece volume" or left/right speaker gain?
[Galaxy Tab S Android Development] glennza:
Just speaker gain. I don't use headphones with my tablet. You can change both if you need to
[Galaxy Tab S Android Development] hothanh:
Could you know may I use this build on au model (the code name stc21)

It has the same soc exynos.

Thanks
[Galaxy Tab S Android Development] Hazou:
If I look at this page:

Samsung GALAXY Tab S SCT21 au / Speed Business .NET

www.speedbusiness.net

It says it has an msm8974AC core. This will ROM will not work on that device.
[Galaxy Tab S Android Development] Charuzu:
Hey, Hazou. Thanks for the response from a few days ago. I was able to flash the ROM properly, and it runs well. In fact, it feels smoother than blue's build somehow, even if the Roms are identical.

I have a question

I noticed that this rom has this app called deathly adiutor, and it made me recall reading somewhere in blue's rom thread that one can undervolt and apply frequencies in a sweet spot where performance and thermals will be in the best possible state, such that best performance would be given. Is deathly adiutor capable of doing those? will you help me?

Thank you!
[Galaxy Tab S Android Development] shaglord:
Install the Magisk apk. In it you patch the Hazou zip file. It'll spit out a boot.img which you then flash in TWRP to the Boot partition (select Flash Image).

This gives you root which Deathly needs to work.

On my Exynos5420 devices I've undervolted between 88-112mV. Try maybe -75 and see if it crashes, then lower step by step.

Cooling is a weakness on these tablets. You need to do a mod of adding thermal pad on top of the cpu if you want to be able to sustain 1600+ MHz on that cpu. Otherwise without the mod you'll be limited to about 1400MHz. Limiting is important because if you don't and let it run dynamically up to 2100MHz, you'll end up stuck with 600MHz which is what it throttles to after just a few seconds (maybe 20) at full load. I've got my T700 running up to 1900MHz and my T800 up to 1800MHz (with thermal pad). The smaller 8.4in runs cooler for some reason.

Other Deathly features are to increase speaker volume and to remove the low charging current limits. With all the tweaks this tablet is now way better than Samsung ever made it. It can now charge with noname chargers and cables at 2500mA (sweet!).
[Galaxy Tab S Android Development] dmitry1986:
Hello everyone! I received data from the betterbatterystats, the tablet was 100% charged during testing, and airplane mode was turned on. The results are in the screenshots. If I understand everything correctly, the device modem is to blame for the rapid drainage of the battery. Is it possible to deactivate it?
[Galaxy Tab S Android Development] Hazou:
It seems that the modem is indeed doing something. But what I don't know.
[Galaxy Tab S Android Development] affter333:
I bought a rooted t705 only on android 5,

I cannot upgrade to official android 6 even after unroot,

Can I just flash the custom rom? Thanks..
[Galaxy Tab S Android Development] dmitry1986:
Continuing the topic about the sm-t807t tablet. I tried to flash it with firmware from chagallwifi, changed the files in the firmware a little so as not to swear at the tablet’s mismatch. And I got 8 days until the battery was completely discharged (according to Android calculations) instead of 2 days on the chagalllte firmware.
[Galaxy Tab S Android Development] ped078:
Link to the SM-T700 ROM is dead? Does anyone have another link?
[Galaxy Tab S Android Development] Hazou:
I think, because the wifi variants don't include the modem driver into the kernel. And offcource the user space doesn't start the ril service.
[Galaxy Tab S Android Development] dmitry1986:
Well, okay, I think this can be considered a solution to my problem.
[Galaxy Tab S Android Development] shaglord:
Great. Thanks for the tip.
[Galaxy Tab S Android Development] shaglord:
Hazou in this thread has newer builds to this tablet. Click the link in his signature. The repository name is long. "5420" and "common" are in its name.
[Galaxy Tab S Android Development] ped078:
Thanks, I've had a look and can't see the zip file (ROM) I need to download :/
[Galaxy Tab S Android Development] shaglord:
It's under "Releases"
[Galaxy Tab S Android Development] ped078:
Says "No releases published" :/
[Galaxy Tab S Android Development] Hazou:
This one:

GitHub - HazouPH/android_device_samsung_universal5420-common

Contribute to HazouPH/android_device_samsung_universal5420-common development by creating an account on GitHub.

github.com
[Galaxy Tab S Android Development] ped078:
Got you. Thanks very much.
[Galaxy Tab S Android Development] runekock:
It's probably best to start from the latest Samsung rom, so that the bootloader, radio and other secondary partitions are up to date - those will be the versions that custom roms get tested with.

Have you tried downloading the Samsung rom and flashing it manually with Odin/Heimdall?
[Galaxy Tab S Android Development] bluess57:
If you don't want the RIL service to extend battery life,

you can try (and I haven't tested this) doing either below:-

modifying the file init.basebase.rc and remove or comment out starting the cbd daemon eg. this

service cpboot-daemon /vendor/bin/cbd -d -txmm7160 -bh -mh -p 13
class main
user root
group radio cache inet misc audio sdcard_rw log sdcard_r shell

I haven't tested, and it may get stuck at lineageos animation at boot.

or using adb root killing the cbd process.

The process may restart idk.
[Galaxy Tab S Android Development] Charuzu:
Thank you very much for this response, Shaglord.

I have rooted through Magisk before reading your quote (I don't know what the Hazou.zip is).

I was confused at first while reading your info about undervolting at -75, and that your devices could do -88 down to -112. And so I scrutinized the CPU and GPU voltage sections of Deathly Adiutor and noticed that there is a button named GLOBAL OFFSET. I tapped it and saw that I can increase and decrease the voltage. When I tapped the Minus Button, it gave a negative number, which made me remember the -75 you mentioned. So i kept decreasing it until it became -75. Upon pressing Ok, It lagged for 1-2 seconds, then it was able to apply it. I did the same for GPU voltage. I tried -125 on GPU and my T700 crashed (screen hanged) after 3 minutes of usage. I tried -100 then it still crashed (soft rebooted) but it lasted a longer time (7 minutes). -87 also crashed, so I stayed at -75, as shown in the screenshots i attached.

I have no thermal pads, and even if I do order, I'm afraid of opening my tablet up... I fear that I might break it. And so I set the max cpu frequency to 1600MHz, and min to 100MHz.

As for speakers, yes I discovered the left and right speaker gain, and it really does increase the speaker's loudness of my T700 (very satisfied).

About charging speed, my T700 was already charging fast, and it got slightly faster thanks to Deathly Adiutor, and you telling me about it (2500ma).

Again, thank you. If i happened to be understanding the terms and instructions wrong, please do tell me 😊
[Galaxy Tab S Android Development] Charuzu:
Good afternoon, Hazou.

(message 1/2)

I have some things I wanna ask/request for this rom, and if it's okay with you, please take them into consideration.

1. Can you add a feature where screen resolutions can be changed? Like 1080, 720, and 640. It boosts the performance of the tablet a lot, especially when playing heavy games, or just for the sake of smoothness in exchange for picture quality. I know that there are apps that can do resolution and dpi changing, but there's a problem about it. Whenever i had changed the resolution (auto match dpi) of the tablet through one of those apps (Pixels: Resolution Changer), frame drops occur in scrolling, and games like Geometry Dash gets those frame drops, even when game is running at 100% speed. It has only benefited me currently when playing God of War: Ghost of Sparta through PPSSPP, in which i set my T700's resolution at 640x400, which changes the resolution of GoW when using "Skip Buffer Effects". Using skip buffer effects makes the psp game run faster by drastically decreasing cpu ,& gpu demand, but it makes the resolution of the game unchangeable and it sets it to the native resolution of the tablet (1080p), which ironically just makes the game run heavier instead. So as i mentioned above, changing the resolution of the tablet made the fixed 1080p of skip buffer effects into the resolution i had set through the 3rd party app (640p). That change in resolution was enough to make Ghost of Sparta run at 100% game speed (no audio lags) at 17 fps (it's not so bad, i got used to it and it's very playable) with frame skipping set to 4.