[Samsung Galaxy A12] LAST_krypton:
DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

​

# knox_bit_warranty:0x1
#
# Your warranty is now void
#
# You have been warned.
#
# I will laught at you if you point the finger at me.

Hello everyone, In this guide I will be showing you how to do some basic kernel tuning and some overclocking. I woun't really be going in advance in this guide because there is just sooo soo many things when it comes to kernel tweaking. I might one day make a follow up guide that will go in to advance but only time tells.

Make sure you have allready followed my guide for unlocking the bootloader and rooting or this guide is pointless.

https://xdaforums.com/t/unlocking-the-bootloader-and-rooting.4331859/

​

Lets first argue about kernels.

​

There aren't many kernels when you talk about this device. There are mainly 2 kernels build and they are only for one model of this phone which isn't really good. If you are not on the A125F you are kindev out of luck with custom kernels for this device, only if you are capabel of building your own kernel which I woun't be expleaning in this guide. I think @physwizz has a guide on how to build a kernel in his telegram, that you will have to go search for. Please don't DM him about that. Anyway continueing on, if you are on the A125F model you can chose between these 2 kernels:

https://xdaforums.com/t/physwizz-a12-kernel-version-2.4334695/

https://xdaforums.com/t/rainbow-kernel-a12-v2-0.4338591/

I on my A12 run rainbow kerenel, you don't necessary have to if you think physwizz's is better. Both are better then stock, and recomended.

Flashing is simple:

1. Boot in to TWRP

2. Tap on install

3. Find the kernel you want to flash and flash it

4. reboot

EDIT:

A127F TWRP and KERNEL released

https://xdaforums.com/t/physwizz-a12s-kernel-twrp.4352297/

https://xdaforums.com/t/aosp-11-unofficial-samsung-sm-a127f-twrp.4351195/

ROMS

​

Woun't talk about this a lot, because it doesn't impact that much but it is still kindev important. If you are able to run a custom rom, I would recomend to do so. Stock samsung isn't really good, there is junk running in the backround which you can disable but It will take you a lot of time and some stuff will break apart. So if you are able to flash a custom rom, I would recomend flashing Linage Os R MOD (LIR)

[UNOFFICIAL] LineageOS R Mod //LiR

L i R < Your warranty is now void! > We're not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in...

xdaforums.com

Only problem is when you put your phone to sleep screen touch stops working, this is something with deep sleep on GSI roms.

Instructions on installing TWRP and custom rom:

https://xdaforums.com/t/installing-twrp-and-linageos.4334465/

EDIT:

A kernel is made both for A125F and A127F to fix display panel sleep issues.

https://xdaforums.com/t/warhammerproject-kernel-sm-a125f.4355663/

https://xdaforums.com/t/physwizz-a12s-kernel-twrp.4352297/

TWEAKING AND OVERCLOCKING

​

Once you have setup Linage Os R MOD (LIR) and your kernel of choice you can install either SMART PACK or hKtweaks or anything you really want, it is up to you which one you want to use. hKtweaks and SMART PACK are similar and have almost the same settings. SMART PACK you can get on F-DROID and hKtweaks is on google play (please don't use google play but rather arura store)

Go in to SMART PACK and give it root_privlages and allow it to manage files. Go in to CPU options and set the CPU GOVERNOR for BIG and LITLE cluster on PERFORMANCE. Set the CPU MAXIMUM AND CPU MINIMUM frequency on BIG and LITLE cluster on maximum speeds. Make sure all cores are checked and the option applay on boot is checked.

Go in to GPU options and set GPU Maximum Frequency to the maximum you can set. Make sure applay on boot is checked

In battery options you can turn on adaptive fast charging and set it to applay on boot.

Go in MISC and set SELinux State to Permissive, set Force Doze to disabled, uncheck Auto-sync Data, uncheck leases enable, set every CPU sets on 0-7 cpu cores. and set it to applay on boot

Go in to Virtual Memory and enable Z-RAM. Increase Disksize to maximum in Z-RAM options, set the Z-RAM algorithm to lz4.

In virtual memory tunable's increase swappiness to 170.

EDITING BUILD PROP

In smart pack go in to Build prop Editor. And now prepare for editing and adding build prop keys(or if you know what your doing, it will take you 5 min :)))))) ). Here is a list of Build Prop Keys to edit. If they don't exist create them.

ro.telephony.call_ring.delay=0

ring.delay=0

net.tethering.noprovisioning=true

ro.wifi.channels=11

ro.lcd_min_brightness=40

ro.lcd_brightness=160

ro.config.nocheckin=1

ro.mot.eri.losalert.delay=1000

pm.sleep_mode=1

debug.bt.lowspeed=true

wifi.supplicant_scan_interval=240

persist.sys.purgeable_assets=1

These other ones are optional because they are TCP/IP tweaks

net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.hsdpa=4096,87380,256960,4096,16384,256960

net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960

Credit for thoes build prop keys:

Android TCP/IP Speed Tweaks

To change TCP/IP related settings in Android you need root access.

www.speedguide.net

LINKS AND OTHER STUFF

​

If you really want to go hard like me then these guides, tools and mods might help.

https://xdaforums.com/t/ref-tweaks-...chedulers-cpu-tweaks-aio-app-configs.1369817/

[Pie/10/11] [System-as-root] Multidisabler: disables encryption, Vaultkeeper, auto-flash of stock recovery, proca, wsm, cass, etc.

The multi-disabler started life on the Exynos S10 range, the first Samsung devices to launch with Android 9 (Pie). Since then, it has grown to support a great many Samsung devices running either Android 9, 10 or 11, and with either an Exynos or a...

xdaforums.com

https://gist.github.com/amitwh/b5c51a8e8c494ca4afdca07a7803fa03#file-init-qcom-post_boot-sh

https://xdaforums.com/t/lkt-legendary-kernel-tweaks-advanced-governor-kernel-tweaks.3896032/

https://xdaforums.com/t/best-android-tweaks.2765343/

SDK Platform Tools release notes | Android Studio | Android Developers

Android SDK Platform-Tools is a component for the Android SDK.

developer.android.com

F-Droid | F-Droid - Free and Open Source Android App Repository

The app store that respects freedom and privacy

f-droid.org

Aurora Store | F-Droid - Free and Open Source Android App Repository

An unofficial FOSS client to Google Play with an elegant design and privacy

f-droid.org

Android TCP/IP Speed Tweaks

To change TCP/IP related settings in Android you need root access.

www.speedguide.net

Linux Broadband Tweaks

The TCP/IP parameters for tweaking a Linux-based machine for fast internet connections are located in /proc/sys/net/... (assuming 2.1+ kernel).

www.speedguide.net

Go figure.

EDIT: there is a new custom boot image, I personaly havent looked at but can possibly have some performance improvements;

boot.img for SM-A127F and SM-A125F with the touch and MTP fixed

NOTE These files might already be quite outdated, it is often the case that you just need to upgrade your stock firmware for the problems to be fixed! Before trying to flash anything make sure that your firmware is exactly the same version as...

xdaforums.com