Remove All Ads from XDA
Thread Deleted Email Thread
Prev Previous Post   Next Post Next
The first time I made AdaMax was for the Chinese Galaxy S4 Duos GT-I9502. I ported Adam kernel and added more tweaks from other kernels like Persus, halaszk (5420). After several releases, I decidec to spread this kernel to more models. So I built the v8 for both Chinese and international GT-I9500. This thread it for hosting it.

This week, i successed compiling for the s4 with 5410 cpu. As we know GT-I9500, GT-I9502 and SCH-I959. They share almost same compiling configure and their own ramdisk. So I compile them together with almost same features.

At last, I have to make following declarations, AGAIN:
  1. Take your own risk and responsibility on flashing this kernel. I am not responsibale for any loss of your hardware, software, data or warranty.
  2. Read this OP from start to finish before flashing the packages or asking any questions. There is a Q&A section. Any questions already answered will be ignored by me and may be insulted by other members. So save your your keyboard, your time and your data traffic.
  3. No ETAs.
  4. Don't ask me to make this kernel for a specific rom. There are basically only two kinds of roms, AOSP and TouchWiz. So I compile for these two kinds with differnet SDK levels. If it dose not work on some rom, don't blame me and ask me to adapt the rom for it.
  5. If you found a new version, but its download link is not directly showed in this OP, that means it is a version I don't think good enough to be a release. So take your own risk to use it. I will remember your feedback, try to make changes, but not respond with posts.

Thanks to a lot of people, I will add their names here... @wanam, halaszk@github, @Dees_Troy and Team Win, @AndreiLux

As my habit, I always put the download link first:
You can always go to the following addresses to see whether there is a new version:

I open the issue section for the source code, you can report problems here. Please provide at least version aosp/touchwiz jb/kk.

The source code:
You can
git clone
git clone
git clone

use the for exynos in toolchains/script ro build the kernel.
you need to su before build the kernel cause the ramdisk belongs to root.

Since this is a side product of my kernel for GT-I9502 which is the phone I am currently using. I don't actually test this build for GT-I9500, so I really need feedback. And please backup your rom before using this.

  • Built with OSRC KK 4.4 source and ramdisk, now it should work on many 4.4 roms.
  • Contains most features from Adam kernel including Wolfson Audio Control. For I9502 which uses yamaha sound chip, Wolfson Audio Control will be hidden automatically since it does not work.
  • From v10, the kernel is renamed to MaxFour due to wamam's request.
  • Kernel + Recovery release at one time, recovery based on TWRP with EFS_GSM (for Chinese Duos devices) support.
  • Compiled with GCC 4.8 toolchain from Google NDK r9c.
  • Packed in LZMA format to make smaller images.
  • Native exfat support based on OSRC exfat source code.
  • UCI script for STweaks and may be others.
  • Unlocked some hidden CPU frequency: 2.0GHz, 1.9GHz, 1.8GHz, 1.7GHz, 800MHz, 700MHz for big cores; 1.3GHz, 1.2GHz, 400MHz,
  • 300MHz, 200MHz for little cores. Frequencies over stock like 1.7GHz for big cores and 1.3G for little cores are implemented in tc*/overclock version.
  • Added more STweaks settings which are not included in Adam kernel, including CPU power management, Tools with reboot options, GPU settings, CPU governor.
  • Android logger is compiled as standanlone module, so user can disable it completely to save power.
  • Tc/overclock version contains Persus dvfs for GPU with 700MHz overclock, thanks to AndreaLux.
  • Built-in Seeder entropy generator to provide lag reduction although it is not significant as it was on Gingerbread.
  • Built-in busybox with auto-installation.
  • Optimize on ram.
  • Added several I/O Schedulers including ZEN and ROW.
  • Built-in dynamic eMMC read ahead
  • Built-in Asynchronous Fsync
  • Compiled with compile flag for Cortex-A15 and NEON
  • Disable KNOX and SELinux when booting, selinux will be set to permissive with the boot command line.
  • init.d support.
  • A lot of changes and fixes.
  • Disabled a lot of rarely used devices support.

*1. TC means turbocharged, so it is overclock

Change Log:
  • Rebuild with GT-I9502 CHN KK Opensource from OSRC.
  • Upgrade KSM (Kernel Samepage Merging) to uksm (Ultra KSM) which has Super quiet CPU usage, Ultra scan speed and High CPU efficiency.
  • Support init.d.
  • Lower CPU frequencies presented in previous versions, voltage options coming soon.
  • GPU tweak presented in previous versions.
  • STweaks cueerntly unsupported, coming soon.
  • mDNIe and Sound Control coming soon.
  • AOSP support coming soon.
  • Upgrade kernel to 3.4.10
  • Implement AES-ARM and SHA1-ARM crypto algorithm
  • Rollback selinux related script to v11
  • Rebuilt source tree from HNC6 source.
  • Most features kept
  • INT, MIF, MEMIO settings removed, these should not be touched
  • Should be much better than v12
  • Fixed video bug for AOSP, I think it is fixed
  • Upgraded AOSP initramfs, may fix the modem/signal problem
  • Set and to 0
  • Camera lag? Less.
  • Upgraded busybox
  • I don't want to talk about it, this version is totally a rubbish
  • STweaks: Added Chinese UI, works on Chinese system, when the language is set to other ones, English UI will show. An templete is provided for more translations.
  • STweaks: Added boost mode in the Misc tab. The boost mode is found when the news of Samsung cheating on benchmark softwares came out. When a benchmark software is detacted running, the boost mode will be on to allow higher temprature and faster CPU scaling. Simply turn on this mode will not provide any visable change, it should be used with CPU, GPU, INT, MIF clock operations.
  • STweaks: Added control for Internal, Memory Interface and Memory I/O.
  • STweaks: Added a button to switch the USB mode to Mass Storage Mode, which is classical mode before GingerBread got out dated.
  • STweaks: Added a CPU wake lock switch.
  • STweaks: Added instructiuon of Sound Control being not available on models other than I9500.
  • STweaks: Added instruction of GPU voltage control being not available on non-tc versions.
  • Kernel: Added a odin mode. Now we can reboot to download mode with "adb reboot odin". The original commands still work.
  • initial build for XDA users.

  1. I did not reserve a post for this section, so I will put the Q&A here in the OP.
  2. Q: Which package should I use? A: boot is what you need. recovery is just a side product.
  3. Q: Which version I should use? A: Please the "File name instruction" section in the OP, you will find the answer.
  4. Q: Do I need to wipe the data after I flash? A: Well I don't think you need, but due to some report, wiping data can solve certain problems after flashing this kernel. So whatever you like, please backup data before you flash or wipe.
  5. Q: Which rom does this kernel support? A: I can't tell, please refer to the File name instruction section, if you rom is not mentioned there, it is not supported?
  6. Q: Does this support MIUI? A: Official MIUI is based on touchwiz 4.2.2. So please refer to Q2,3,4.
  7. Q: There is no OC in tc version. A: In the init.rc there is a script limiting the CPU frequency to 1.6GHz, so you should use STweaks to unlock it. Please open /sys/devices/system/cpu/cpu0/cpufreq/UV_uV_table, if there is 2000 1900 1800 and 1700, then there is OC, just unlock it.
  8. Q: Some app FC? A: Usually FCs are not due to the kernel, check the rom first, and settings etc, the kernel should be the last reason, cause it just provide the bridge between the system hal and hardware. Report the fc, I will take a look, but I can not say I can fix it.
  9. Q: Battery life? A: It is due to your habit, just like driving a car, a Toyota Prius can use 10L gas if driven by somebody like Michael Schumacher. As my test, due to my habit with non tc version, it is better than stock.
  10. Q: Do I need STweaks to run the kernel? A: The kernel can run without it, but with it you can have more options.
  11. Q: STweaks shows "unextected error"? A: This situation usually happens at the first time STweaks starts, it is OK. Just go on using STweaks.
  12. Q: STweaks FCs. A: Well this sometimes is due to the kernel, sometimes. Here is something you can do: Wipe the STweaks' data, remove /data/.maxfour and /data/.adamax, check the superuser software and give STweaks root access. And yes you need root access. At last, use normal version.
  13. Q: Auto root? A: Use the CWM zip package. And I would take it out soon. Sometimes it breaks root.
  14. Q: Not actually auto-root with v13? A: Yes, v13 will put a wizard like app which will lead you download SuperSU, only when your rom is not rooted.
  15. Q: Conservative governor stock at certain frequency? A: Don't use it, only ondemand governor is optimized for 5410 with big.little cores.
  16. Q: Can you add something? You must do something? Please do something? A: I take advice, but not demand. The reason is simple: I make this kernel due to my interests, not purchase orders. I am not funded for doing this. If the advice is good, I'd take it. If it is just a personal preference, I have to consider it.
  17. Q: Got very low volume of sound? A: Use stweaks, I9500 has wolfson sound control.
  18. Q: Video color is not correct, got blur faces. A: v13 should have this issue fixed.
  19. Q: No internal storage access permission. A: I will make a workaroung later. For now, remount it with rw option through adb.
  20. Q: Random reboot. A: Well, it exists, I admit. I don't know why. I will look for the reason.
  21. Q: After flashing, the phone won't boot. A: Well, I can't guarantee that this kernel works everywhere. And please check if you are using the correct version.
  22. Q: When is your next release? A: I don't know either.
  23. Q: I flashed, it doesn't work. A: Well, it does not work. I don't know why cause it just don't work. I only answer information-rich questions. Questions like this is only a waster of your keyboard, your time and your data traffic. Please at least tell me which version and what rom you are using.
  24. Q: Anything asked above. A: I will keep silence. Other people may insult for this.
  25. Q: Why don't you answer/respond our questions? A: I am a employee, husband, father and son of someone other than XDA and you.
The Following 69 Users Say Thank You to maxfu For This Useful Post: [ View ] Gift maxfu Ad-Free
Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes