yashsingh1/xdaforums huggingface dataset:
[Android General] Kyuubi10:
Well, there's soooo much I could say about this.

It's going to be a bit long... But don't be disheartened. Read on, and learn!

1. Android battery usage is unreliable.

It calculates based on proportion, rather than absolutes.

Example:

If your idle battery drain is 10% because of an app...

It will show 70% battery consumption "app", 30% "phone idle".

But if you uninstall the app, and your idle battery drain is reduced to 3%.

Battery usage will now show 100% "phone idle".

So in short, your idle drain might have actually fallen from 10% to 3%....but the proportion of "phone idle" within that 3% has risen.

Therefore, a higher phone idle percentage doesn't mean that you are getting a higher idle drain. It just means the phone idle contributed to a higher proportion of that drain.

2. If you are having unusual battery drains while phone is idle, there are much better ways to handle it (maybe you're already using them).

Making use of Doze on nougat is going to be your best friend.

Dowload Greenify, and select any app which have high background usage, and also select aggressive doze within settings.

This will keep battery draining apps from running in the background, and will make sure doze starts faster.

Another great app, which integrates with greenify, is wakelock detector.... It helps you visualise which apps are keeping your phone awake, or waking up your phone from deep sleep.

Once you find the problem app it gives you a link to greenify it.

This will give you a much better result than messing with Virtual Memory.

3. About the article, I see what they are trying to do.

And it does work, if improving battery drain is all you are trying to achieve.

I'd imagine you'd also struggle to play high intensity games without having a healthy amount of lag.

I'll be surprised if you can actually game with those settings.

My personal opinion is that the battery gains of those settings (which are real), don't justify the performance drawbacks they cause.

But each user focuses on their own thing... Some like to optimise for battery, others optimise for throughput, others optimise for latency (me).

Therefore... My best advice to you, is after understanding step 1 and 2 from this post....

Read step 3 and be inspired to make your own mind up... Decide what matters most to you.

Then use the knowledge of this thread to come up with your own values :)

Good luck!

Let us know how it goes!
[Android General] GryTEcHoG:
Thank you for your answer, and also give me detailed explanation on my problem.

I did not know android phone idle battery usage calculation can be that wrong (Can we see detailed battery use in any app ?). And I do use Greenify and other my own optimizations(more towards saving battery, as I do not play high intensive games for that I have handheld and console) to make it as I want. I have better battery app to see what is waking up the device, and I see google play wake ups a lot.

Could you share how you improve latency ? Are you talking about SD cards schedulers ?

Thanks
[Android General] Kyuubi10:
You're welcome.

That's what this thread is all about.

To see details, you have to press on the app/phone idle row and it'll take you to a details page.

There you can see an absolute number "computed power use".

It'll be in mAh (MilliAmperes per hour).

And regarding latency...no and yes.

It's about everything, VM, CPU governor, I/O schedulers etc...

Latency is what makes your device feel fast. It's responsiveness.

And i've already shared how to improve latency... Check out the OP, and my previous posts in this thread.
[Android General] alexestanislau:
Hello! I have a LG G3 with android 6.0.1 and i followed your tutorial, had a great improvement of performancy and battery.. But I cant change the ZRAM on Kernel Adiutor, it keeps reseting to the default value.. There is a way to change it? it does make some difference in apps that need a lots of RAM? like games.. Thank you so much!!
[Android General] Kyuubi10:
How to change zRAM...That is a question you would have to ask someone on the LG G3 forums.

However, about the difference in apps...it's not that great really.

zRAM benefits multitasking mostly, not game performance.

I've only seen RAM efficiency improve up to 15% on my M8 and on my Laptop (Running Linux Mint).

So it won't have a huge effect on gaming.
[Android General] Infy_AsiX:
Zram usually has a default fixed in kernel I think. If I change it's value to anything but it's default in Kernel Adiutor, it takes a few minutes of decompressing everything out that loaded into Zram between boot time til KA's settings applied. That's a major waste of power from CPU also adding a bunch of heat and performance drain. If you're not seeing the Zram change after KA's apply it's probably because it hasn't finished unpacking Zram to update the new value. An app that shows Zram size in real time will show this.

There's a few ways to get around this.

1. Use default Zram value. Even turning it off requires decompressing.

2. Set swappiness to 0 via init.d so nothing will load into Zram at boot. You can then set swappiness and Zram via KA without an issue.

3. Set both swappiness and Zram via init.d. This also allows a value higher than the 1000 limit in kernel apps.

Using Kernel Adiutor donate I create a profile of settings changes. Using that, looking at their details shows what commands are used. I put this in my init.d file

swapoff /dev/block/zram0 > /dev/null 2>&1

echo 1 > /sys/block/zram0/reset

echo 1048576000 > /sys/block/zram0/disksize

echo 1048576000 > /sys/block/zram0/mem_limit

mkswap /dev/block/zram0 > /dev/null 2>&1

swapon /dev/block/zram0 > /dev/null 2>&1

echo 40 > /proc/sys/vm/swappiness

The mem_limit line is optional as disksize is technically the limit. Multiply the Zram you want by 1024x1024. For example 1000Mb x 1024 x 1024 = 1048576000
[Android General] alexestanislau:
Thanks!! I did a little search and im thinking about update my kernel..

I dont think is it.. Even with RAMEXPANDER I wasnt able to change the virtual ram.. Im thinking about something related to the kernel itself. But i will try these ways before i change the kernel. Thanks!
[Android General] Kyuubi10:
Let us know how it goes.

Maybe you have a script that sets zRAM automatically...
[Android General] alexestanislau:
I have the confirmation about it, my kernel does support the zRAM, but not its changes, the value is locked at 460MB.. I will try another solution to improve my apps changes and the game performance.
[Android General] Cuzeg Spiked:
I don't quite like the ZSWAP function because it is as slow as normal swap. It kind of helps but not that much imo. I preferred either Zram or no compressed ram. Zram is faster than ZSWAP and none is fastest.

It would help to know exactly what ZSWAP does though since I have no idea how it benefits . I already at least have an idea of how Zram works though. 50% ZSWAP , I wonder who would actually use 50% of the 3GB as ZSWAP for the S6 for eg or some other device. I tried Google searching and looking everywhere for a good reason as to why you should use ZSWAP and what it does but I am still not satisfied.

But if I do use ZSWAP, I use the Swappiness 40 or whatever suits best and I put the % of ZSWAP at 5% or 10%, depending on how much ram I want as swap or maybe storage?.

Zram it doesn't matter how much and I haven't tested that in a long time. I haven't found Zram in the S6 kernels for eg but ZSWAP is a thing. I mean it's already explained about Zram here anyway.
[Android General] Kyuubi10:
Well, otoh i've only heard of zswap.

I've mainly seen zram.

The problem with zswap is that generally (as long as linux distros are concerned) swap is the last thing to be used for cache.

But zswap is the same as zram, but zram is compressed ram...while zswap is compressed swap.

Zswap will be the slowest step prior to storing your cache directly in hard drive memory, or flash drive in case of smartphones.

I don't truly see a benefit of zswap over swap...

The benefit of using zRAM is that RAM drives are CONSIDERABLY faster than swap. Therefore increasing the benefit of using zRAM over swap.

However, swap is NOT considerably faster than flash drive/hard drive memory at all...in fact swap is generally defined as a partition on your hard drive/flash drive.

Therefore it would have the same r/w speeds as your actual drive.

Making zswap SLOWER than your storage drive.

The additional speed you'd gain by obtaining the data from a swap partition, rather than your normal storage drive, would be made even through the compression/decompression process...turning your net gain in speed: 0 in average.
[Android General] dave31g:
Many thanks! This helped me immensely.
[Android General] maxi65:
Hi!

what will be best setting of android low memory killer for multitasking on a phone with 4GB or plus of Ram?
[Android General] Kyuubi10:
Virtually not needed.

Just use your stock values, 4GB of RAM on an Android device is pretty much large enough for most types of multitasking that you will still have spare RAM memory left.

If you have 4GB memory there's almost no point in changing memory values. (Maybe play with I/O schedulers instead).
[Android General] maxi65:
And any suggestions to use which scheduler to make the device smooth and multitasking friendly?
[Android General] Kyuubi10:
I've been quite happy with the performance of Zen lately with a read ahead buffer of 512kb.

However, if you can get your hands on Maple it works much smoother for UI.

Best of luck!
[Android General] Superblazer:
Wow, thank you for the guide!
[Android General] ConnerJSP:
Entropy

What an incredible guide, thank you! May not be the most thorough, but it provides sufficient resources and other guides explaining meticulous terms/features... It seems, after my research, stumbling upon this guide brought a satisfying conclusion.

However, my understanding of entropy is still lacking (I've read so far: reduces lag, possible security risk, and may use more CPU cylces). Your guide at least mentioned it, yet you didn't discuss any values to set and I'm wondering, what knowledge you have of it, any recommendations?
[Android General] Kyuubi10:
Thanks man!

No worries, I was also lacking in my knowledge regarding entropy... Until recently.

However I just never updated this guide.

Please find the below link to gain a better understanding of Entropy: https://www.xda-developers.com/entropy-seed-generator-not-all-its-hacked-up-to-be/
[Android General] AhZhi:
Hi, can u share your settings when you are use HTC M8 as a reference ? I have a phone with 2GB ram
[Android General] mubeen ikram:
please involve a sound section or plese give a link to chage sound settings in kernel using a code or any app because the kernel auditor for my current kernel doesn't show the sound bar in the app
[Android General] know.i.dee:
Thanks ; Thorough & Practical [emoji1363][emoji1360]

Galactic Note 4 Nougat Resurrection Remix
[Android General] Kyuubi10:
Hi Sorry, This has long since been lost in time. There are still some old threads by myself on the HTC M8 forum, so those might be good starting points. Though I didn't quite keep them updated to what I was actually running daily on my device, as I was constantly tinkering and optimizing. The final values I never actually wrote down, and now I don't own the device any longer.

Something I've learned from plenty of time researching audio mods (my other great passion) is that sound mods work differently on each device. Thus making a universal guide would be difficult.

Also sound is always relative to each person's tastes and the headphones which they make use of...

Though in short I can tell you the following for the purposes of this particular thread:

Sound isn't (usually) modded at the kernel level, there are no kernel tunables which you can change to improve sound. Sound is usually a system mod, therefore out of the scope of this particular guide.

There are plenty of real smart people (Much smarter than me), working on Audio mods and I'm sure you've already heard of some of them.

Ainur by [MENTION=6366997]UltraM8[/MENTION]

ARISE Sound Systems by the ARISE Team

Dolby Atmos (up to Nougat) by [MENTION=5357345]ahrion[/MENTION]

Viper4Android by [MENTION=5357345]ahrion[/MENTION]

Dolby Atmos Oreo only by [MENTION=4445176]guitardedhero[/MENTION]

Above are the ones I'm most familiar of. Have a search and you'll see if any of them suit you.

I don't believe there's any guides yet, but it won't take long until you understand which one is best for you.

Thank you very much, it is currently a little out of date, just a shame that with work and real life I've been struggling to find the time.
[Android General] SlimShady08:
This guide is just godlike! I wish, you could get deeper into overclocking. I didn't just want to know what it is, nor how to flash a custom kernel with tweaks. I want to bake one :D Your guide is surely a start though!
[Android General] Kyuubi10:
Thanks for the compliment!

Regarding baking your own kernel... And understanding overclocking... Well, it's complicated.

First things first... Overclocking.

Overclocking requires strong knowledge of CPU voltage. Because in order to allow the CPU to reach the higher frequencies, you must ensure that it is receiving enough juice to support those high frequencies.

Nowadays it is useless to worry about overclocking, as most CPUs since the SD820 have dynamic voltage adjustment... Which means (1) it's a pain to overclock, (2) The CPUs are already pushed to their limits in terms of clock speeds.

I can't speak for manufacturers other than Qualcomm as I don't have experience with their platforms... But as far as QC is concerned overclocking is now a thing of the past.

What people are doing now is UNDERclocking, to save battery and increase longevity of their devices! But obviously underclocking is much easier than over.

Secondly, regarding baking your own kernel.

This is very interesting indeed, and is always much appreciated when someone shows interest in joining the community as a developer... And I'd love to encourage you, though I'm not a developer myself.

My best advice is join a development team :)

Start small, start with learning from more established developers while doing alpha/beta testing of their kernels.

Then join a few projects which interest you, whether it be app development, audio mods, button mapping, magisk modules etc...

Learn how to script and start contributing to those existing projects.

This way you'll gain hands on experience with coding.

Carry on like this until you are confident enough to start more serious contributions to the development team you joined.

Then you could begin creating/leading your own projects, working with your own team of testers as a lead developer.

Until you have enough experience and knowledge to lead your own team into baking your first custom kernel.

From then on you won't need any more advice from me... You'll have found your own 2 feet!

I wish you the best of luck :P and when you're famous on XDA remember little me who first gave you advice on how to get started :P
[Android General] SlimShady08:
Hahahaha thank you good sir! Do you know any communities of this sort? I got some good Linux knowledge but not in Android specifically :D
[T-Mobile Samsung Galaxy S6] stangdriver44:
​

Android 5.0 Lollipop One Zip One Place​

LolliOZOP CUSTOM ROM​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

FASTER LTE APN FIX

Go to settings/Mobile Networks/Access Point Names then "add" to create a new one

Name: T-Mobile US LTE

APN: fast.t-mobile.com

Proxy: Not set

Port: Not set

Username: Not set

Password: Not set

Server: Not set

MMSC:http://mms.msg.eng.t-mobile.com/mms/wapenc

MMS proxy: Not set

MMS port: Not set

MCC: 310

MNC: 260

Authentication type: Not set

APN type: default,supl,mms,hipri,dun

APN protocol: IPv4/IPv6

APN roaming protocol: IPv4

APN enable/disable: APN enabled

Bearer: Unspecified

MVNO type: None

MVNO value: Not set

Quicker responding home button - Open S Voice and uncheck the "Home Wake" button​

Battery Saver - Open Application Permission from the Settings and go to Google Play Services, now scroll to the bottom and turn off "Auto Run"! You can do this for any app you feel shouldn't have that active

​

​

1) Download and transfer to Sdcard

2) Make sure file size and md5 match the download info

3) Boot to recovery using you choice of recovery (TWRP prefered)

4) Make a Nandroid of your current rom!!!

5) Do a full wipe (cache, system, data and dalvik cache)

6) Flash OZOP and reboot when finished (This will take about 10 minutes)

BUGS;

1) The animations on this version are set very slow by default on accident, Go to "Developer Options" and change the animations to 1.0 or even better .5. I placed a flash back to stock zip in post #3

2) This OP is from my S5 rom and will be updated soon. Most of the features and mods are cooked in to this ROM. Thanks for you patience!!

3) The "Center Clock" has some text overlapping once and awhile - to fix this switch to "Right Clock" - a flashable fix is also placed in post #3​

​

OZOP v2​

OZOP v1​

CHANGELOG:

v2
*Samsung apps back as per request
*SystemUI fixes are cooked in, no need to flash anything else (except the S6 Stock Animations, if the one included are too much!!)
*Cleaned up the OZOP Control features that weren't working
*Added more control to OZOP Control
*Hide/show Bluetooth
*Enable/disable Ascending Ringtone
*Removed Carrier Text from pulldown or set to custom text
*Added Memory tweak by @mikeyinid

Honestly a WHOLE LOT MORE That I can't remember.

CREDITS:

Thanks to [MENTION=4921688]The Sickness[/MENTION] for the deodexed apks I used to build my rom

Thanks to [MENTION=2918779]mikeyinid[/MENTION] for hid meta.inf folder and init.d tweaks

Thanks to[MENTION=4714483]daxgirl[/MENTION] for the TW Swipe Launcher mod

Thanks to [MENTION=1042140]tdunham[/MENTION] for the Mod thread from which most of the mods for my rom came

Thanks to [MENTION=4517211]Xileforce[/MENTION] for his work on the killer kernel included in v2

XDA:DevDB Information

[ROM][OCG] OZOP v1 with OZOP ROM CONTROL, ROM for the T-Mobile Samsung Galaxy S6

Contributors

stangdriver44

ROM OS Version: 5.0.x Lollipop

ROM Kernel: Linux 3.10.x

Version Information

Status: Stable

Created 2015-05-29

Last Updated 2015-06-18
[T-Mobile Samsung Galaxy S6] stangdriver44:
Fixes and Add-ons

Lockscreen_Noti_Carrier_Colorize

Home_Wake_Disabled

Home_Wake_Enabled

White_Statusbar_Clock_Fix

Note: All of my "zip" fixes are using my modified vrtheme script and a flashable restore zip will be placed in the "ozop" folder of your sdcard. This can be used to revert back to the previous flash.

Stock_Transition_Animations

Notification_Swipe_Fix

3Minit_Battery_Removal the first shot shows the stock battery

Center_Clock_Overlap_Fix The second shot is the temp fix for clock overlap (bug found, on fresh reboot the clock is stuck on the left but goes to the center and stays as soon as the first ticker texts comes in.)

InCall Audio Fix thanks to [MENTION=464050]-Mr. X-[/MENTION]

GPS Fix Thank to [MENTION=1768899]g.lewarne[/MENTION] (Note - ONLY APPLY THIS IF HAVE GPS LOCK ISSUES)

Smart Manager

S-Voice

Viper4Android with Neon Enable includes convolvers (change UI setting to expert to activate)

Back to Stock White Notification Panel

Stock_White_InCall_Dialer
[T-Mobile Samsung Galaxy S6] Sammydr10:
Ohhh! Nice :D -- 1st?
[T-Mobile Samsung Galaxy S6] lookylookitzadam:
Sweet! Excited!
[T-Mobile Samsung Galaxy S6] mellomelon45:
Nice will try this out when I get home!!
[T-Mobile Samsung Galaxy S6] lizaSB:
Sweet! Glad to see more options for North Americans. :good:
[T-Mobile Samsung Galaxy S6] amarty92:
Great to see another option for us! How big is the rom in size? Curious since I run the Xetro-lightest rom for the s6 :). This will be a must flash once it gets uploaded! The AppOps for me is a huge plus - damn Google Play Services ;)
[T-Mobile Samsung Galaxy S6] twoeleven99:
Nice, can't wait to flash

s6
[T-Mobile Samsung Galaxy S6] mikeyinid:
Dopeness. Glad you came over here ?
[T-Mobile Samsung Galaxy S6] stangdriver44:
Sorry for the delay everyone!! I ran one last full wipe clean install and realized I missed some important file!! The good news is they are in and the flash was a perfect success. The upload in in process now, but moving along pretty slow. Hopefully in an hour or so it will be ready. Thanks again for your patience.

Here is just a few shot of what's included...

While I was attaching the pics a new theme just came in to the theme store "Silver Stud" not a real fan of the name, but the work is nice!! Also the upload is up to 57%

A little info about the rom; It's build from the most recent OC9 firmware. It slightly debloated, most of the google stuff it gone as well as some samsung stuff. I will be adding things back in as I find users needing them. The rom is deodexed and the zip weighs in at about 1.17 gb

This is ONLY an initial release and A LOT more goodies will come in future releases including my Aroma Theme builder "Missing Link"

OZOP v1 IS LIVE!!!​

Remember this is the intial release and may have some issues that will need to be addressed. It works fine for me, but I can't predict how it will act for everyone. Feedback is required to ensure a quality build!! Thanks and enjoy
[T-Mobile Samsung Galaxy S6] mikeyinid:
Downloading now. Looks awesome!
[T-Mobile Samsung Galaxy S6] stangdriver44:
Thanks bro!! I sent you a pm and put you in my OP credits. Please let me know if the install goes well?

The main thing I'm looking for is that OZOP Applications installed and The "Statusbar BG" Mod is working? They are options available in OZOP Control
[T-Mobile Samsung Galaxy S6] mikeyinid:
Did you use Looper as the base for this?
[T-Mobile Samsung Galaxy S6] stangdriver44:
No. [MENTION=4921688]The Sickness[/MENTION] made me a deodexed base, but couldn't test the updater.script since he doesn't have his S6 yet. I used your Meta.inf folder. Sorry I was so excited to get the rom out I forgot to ask if that was ok. I was able to port most of my mods from my S5 build. There were some changes to smali, that's why I don't have all the options avaible yet. It's going to be a lot more hours comparing the new smali to my old smali and getting it to work.

If you haven't seen this thread, most of the mods I have in my rom are from there. GREAT THREAD. Be sure and thank [MENTION=1042140]tdunham[/MENTION] for putting it together and maintaining it!
[T-Mobile Samsung Galaxy S6] mikeyinid:
I'm not one to make a fuss about people using my stuff. I'm all about sharing. I'm 99.9% sure this is Looper with your stuff on top. No biggy. The top notification isn't swipeable which I had a problem with initially. You'll have to edit smali to get rid of sfinder/quickconnect without the swiping being broken. The clock won't set to white on the default theme, you'll have to change the color.

I'm digging what you've done so far, my only complaint would be the boot and shutdown animations. They don't seem to be the right resolution for this device. And, the animations in the rom. Not a fan. Otherwise, seems legit.

---------- Post added at 11:51 PM ---------- Previous post was at 11:44 PM ----------

Remind me where the animations are? I'm gonna swap them out. Are they still an xml?
[T-Mobile Samsung Galaxy S6] stangdriver44:
Thanks for the input. Feel free to open up the apks. You'll see it made from a stock base. I only like to build of stock apks, so I know what's going on inside you know. I did "diff" out your display_settings.xml because of what you did with the Button light!! I was going to put it into my OZOP app, but the script was bigger than the galaxy button app. Good find. I noticed that the top notification wouldn't swipe away like the other. That was different than my S5 so I figured it was an S6 thing. I'll have to get with you on the smali edit if you don't mind?

I am going to change the Bootani for next version. Also when I put my aroma together for this device the Transitions animations are changeable to several others.

Glad to be here and again looking forward to working with you!!

Flash THIS. It is the Stock Animations for the S6