[Android Software/Hacking General [Developers Only]] Lennoard:
Tweaks summary

Fstrim

Discards "trims" unused blocks on a mounted filesystem, reducing the lag by running

fstrim -v /cache
fstrim -v /system
fstrim -v /data

using the fstrim binary (duh :p ).It is recommended that you fstrim at least once in a week.

Zipalign

Optimizes the android package files (and its uncompressed data) alignment. It is not "necessary" on 5.0+ apks

Let us quote developer.android.com :

AdBlocker

[COLOR="#A400"]Not avaliable in the Play Store version, and may not be here for too long.[/COLOR]

Modifies the hosts file (/system/etc/hosts) to block all the advertisements, including in-app ads.

Faster boot

Sets the shutdown mode to hibernate and enables the Quick Power On feature, speeding up the boot time.

Disable bootanimation

Reduces the boot time by disabling the bootanimation (It may seem that your device will not turn on correctly, but it is normal).

​

Improve battery

Avaliable for 5.0- and 5.0+ (yes), Optimizes the Wi-Fi scan interval, enables the power saving mode, disables the error reports without performance impacts to improve your battery life.

Google Play Services drain fix

Not avaliable in the Play Store version.

Fixes the battery drain caused by some of the Google Play Services background services.

WARNING: IT WILL DISABLE THE SERVICES, ENABLE THIS OPTION ONLY IF YOU ARE OK WITH IT AND IF YOU ARE EXPERIENCING DRAIN.

Avaliable services:

Location

Check-in

System update

User report

Reenabling the services may take some time, please be patient

Wi-Fi Sleeper

Increases your battery life by controlling, preventing and scheduling the Wi-Fi to switch itself on/off.

The value set for WiFi idle wait is 15 seconds

Power saver for multicore CPUs

This CPU balance attempts to run the workload in the system on minimum number of CPU packages and tries to keep rest of them idle for longer duration, helping other packages to be in idle state and save power.

First, it checks whether your device has the power suspend mode and then set the value according to your selection to ys/kernel/power_suspend/power_suspend_mode

Let's quote android.com

And kernel.org:

Note that in Android is a bit different but the thought is the same

Disable manufacturer bloatware

Not avaliable in the Play Store version. Currently only available for Sony

Freezes some useless packages and applications,

you choose which

.

​

Performance tweak

Enables the performance tunning mode, decreases the colors number to 16bpp (16 bits per pixel) and optimizes the "fling" velocity (smooth scroll) for a general improvement with minimal impact on battery.

The 16bpp mode is most noticiable in darker areas.

Best Multitasking

Tunes the Low memory killer parameters for a better multitasking profile, based on the amount of RAM available.

Gaming mode

Optimizes the FPS limit, enables purge of assets and frees more RAM for performance improvements in games.

Reduce in-call delay

Reduces the delay to receive or end a call

Better scrolling

Might drain

Improves the scrolling responsiveness and speed.

Liquid smooth UI

Can drain

Optimizes the touch pressure scale for improved user interface elements.

Improve rendering quality

May drain

Optimizes the screen composition properties and enables overlay UI mode for a better graphics quality.

Use GPU Acceleration

Will drain

Enables the hardware accelerated UI, forces GPU screen composing and disables the vsync for a much better performance at the cost of battery.

​

TCP tweaks

Improves various TCP values for the IPv4 protocol such as timeout and sockets reuse.

Use Google DNS

An public alternative to your current DNS provider. Google DNS (8.8.8.8 and 8.8.4.4) will improve the security and speed up the browsing.

Guess what, it is free. :cool:

Improve 3G speed and signal

Improves a set of RIL and HSDPA properties, prefix and GPRS classes to improve the quality of the connection.

Improve browsing speed

Tweaks for the buffer size of the connection types, from LTE to GPRS. Results in a better browsing experience.

Better video streaming

Tweaks for the stagefright (the Android media library, not the bug). Results in smoother video streams.

​

Force connection type indicator

Attempts to force the connection indicator to show (The 4G/LTE, H+, H, 3G, E or in some unfortunately cases, G icon on statusbar). Requires a AOSP or AOSP based Custom ROM.

ART Fix

Only forAndroid 5.0+

Sets the dex2oat as interpret only, making the applications load faster.

The dex2oat is the new runtime since Lollipop, it compiles the dex file directly so your processor can execute the code natively. This process to take the dex and prepare for a direct process is called OAT.

According to Google, interpret only would skip all compilation and relies on the interpreter to run code. This should cause:

Apps will load faster as dex2oat won't touch the code again, so, no more waste of storage too.

There will be less time to that screen "Optimizing app X of X"

Battery calibration

Calibrates your battery by erasing the batterystatus.bin file generated by the Android OS containing battery statistics (which sometimes gets corrupted). YOU MUST ONLY CALIBRATE WITH BATTERY LEVEL AT 100%.

​

Kernel Panic

Kernel panic is an action performed when the system detects a fatal software / hardware error from which it can't recover. Similar to the blue screen of death, of which I was victim. (Dayumm :/ )

Disabling it may slightly reduce lags and avoid random reboots.

Disable logging

If you don't want to see the Android striving to record everything that is happening in all applications, enable this option.

Some say that this can save battery...

SELinux Changer

Tries to changes the Security Enhancements status (SELinux) by running

setenforce [ ]

On Android 4.4 and later, the default value is enforcing, unless changed by a custom kernel.

DPI Changer

Changes the LCD density. Smaller values are equal to larger screen space

Default DPI for some screen resolutions:

240x320(ldpi) - 120
320x480(mdpi) - 160
480x854(hdpi) - 240
540x960(hdpi as well) - 240
720x1280(xhdpi) - 320
1080x1920(xxhdpi) - 480

Warning: Please disregard the above information if you are running this application on a Tablet.

Hostname Changer

Another extra feature to change the hostname (the device's name when connected to a Wi-Fi or Ethernet network).

The default name is someting like android-0d02d3352rd2

See:

​