Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,353 Members 39,391 Now Online
XDA Developers Android and Mobile Development Forum

[Kernel][TW][AOSP][KK][JB]MaxFour GT-I9500 (5410)[v14]

Tip us?
 
maxfu
Old
(Last edited by maxfu; 8th August 2014 at 09:32 AM.) Reason: version update
#1  
maxfu's Avatar
Senior Member - OP
Thanks Meter 1,174
Posts: 478
Join Date: Mar 2011
Location: Beijing

 
DONATE TO ME
Default [Kernel][TW][AOSP][KK][JB]MaxFour GT-I9500 (5410)[v14]

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:
https://github.com/maxfu/android_ker...xynos5410/wiki
https://github.com/maxfu/android_ker...s5410/releases

I open the issue section for the source code, you can report problems here. Please provide at least version aosp/touchwiz jb/kk.
https://github.com/maxfu/android_ker...410/issues/new

The source code:
You can
git clone https://github.com/maxfu/android_ker...exynos5410.git
git clone https://github.com/maxfu/initramfs_s..._galaxy_s4.git
git clone https://github.com/maxfu/toolchains.git

use the build.sh 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.

Features:
  • 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.

PS:
*1. TC means turbocharged, so it is overclock

Change Log:
v15:
  • 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.
v14:
  • Upgrade kernel to 3.4.10
  • Implement AES-ARM and SHA1-ARM crypto algorithm
  • Rollback selinux related script to v11
v13:
  • 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 ro.secure and ro.adb.secure to 0
  • Camera lag? Less.
  • Upgraded busybox
v12:
  • I don't want to talk about it, this version is totally a rubbish
v11:
  • 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.
v10f1:
  • initial build for XDA users.

Q&A:
  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 62 Users Say Thank You to maxfu For This Useful Post: [ Click to Expand ]
 
Paolonicus
Old
#2  
Paolonicus's Avatar
Senior Member
Thanks Meter 49
Posts: 429
Join Date: Apr 2012
Location: Jubail Industrial City
Quote:
Originally Posted by maxfu View Post
The first time I make AdaMax is 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.

Thanks to a lot of people, I will add their names here...

As my habit, I always put the download link first:
https://github.com/maxfu/android_ker...ses/tag/9500v8

The uploading is still on going...

Features:
  • Based on OSRC GT-I9500 JB Opensource Update4 source tree.
  • Contains most features from Adam kernel, so this kernel is called Adam + Max.
  • 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, smaller images.
  • Native exfat supportbased 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 are implemented in overclock (tc/turbocharged) version.
  • Added more STweaks settings from Adam kernel, including CPU power management, Tools, CPU settings, CPU governor.
  • Logger module is compiled as standanlone module, so user can disable it completely to save powew.
  • Overclock (tc/turbocharged) version contains Persus dvfs for GPU with 700MHz overclock, thanks to AndreaLux.
  • Disabled a lot of rarely used devices support.
  • Built-in Seeder.
  • Built-in busybox with auto-installation.
  • Optimize on ram.
  • Added several I/O Schedulers including ZEN and ROW.
  • Built-in dynamic eMMC read ahead
  • Compiled with compile flag for Cortex-A15 and NEON
  • Disable KNOX and SELinux when booting
  • init.d support.
  • A lot of changes and fixes.
Most features of Adam & Perseus Kernel. Does this include the Wolfson Audio Control?
The Following 3 Users Say Thank You to Paolonicus For This Useful Post: [ Click to Expand ]
 
maxfu
Old
#3  
maxfu's Avatar
Senior Member - OP
Thanks Meter 1,174
Posts: 478
Join Date: Mar 2011
Location: Beijing

 
DONATE TO ME
Quote:
Originally Posted by Paolonicus View Post
Most features of Adam & Perseus Kernel. Does this include the Wolfson Audio Control?
I kept the feature, so it should show up in STweaks on I9500. I am using 9502 which does not have the feature so I can not test it. When I compile for 9500, sound control is enabled.
The Following 2 Users Say Thank You to maxfu For This Useful Post: [ Click to Expand ]
 
a2441918
Old
#4  
a2441918's Avatar
Recognized Contributor
Thanks Meter 3,426
Posts: 1,437
Join Date: Jan 2011
Location: New York

 
DONATE TO ME
@maxfu Is this kernel for the 4.3 or 4.4.2?
The Following User Says Thank You to a2441918 For This Useful Post: [ Click to Expand ]
 
maxfu
Old
#5  
maxfu's Avatar
Senior Member - OP
Thanks Meter 1,174
Posts: 478
Join Date: Mar 2011
Location: Beijing

 
DONATE TO ME
Quote:
Originally Posted by a2441918 View Post
@maxfu Is this kernel for the 4.3 or 4.4.2?
Sorry I did not directly mention. It is for 4.3 JellyBean.
The Following User Says Thank You to maxfu For This Useful Post: [ Click to Expand ]
 
avrahamelaku
Old
#6  
avrahamelaku's Avatar
Member
Thanks Meter 15
Posts: 72
Join Date: Mar 2012
Quote:
Originally Posted by maxfu View Post
Sorry I did not directly mention. It is for 4.3 JellyBean.
Can you please mention it in the op please it's very confusing.
Thanks.

Sent from my GT-I9500 using Tapatalk
The Following User Says Thank You to avrahamelaku For This Useful Post: [ Click to Expand ]
 
Paolonicus
Old
#7  
Paolonicus's Avatar
Senior Member
Thanks Meter 49
Posts: 429
Join Date: Apr 2012
Location: Jubail Industrial City
Question Will there be version for Kitkat?

This is something that prevents me from flashing the newer version of Android.
The Following User Says Thank You to Paolonicus For This Useful Post: [ Click to Expand ]
 
snxxxxx
Old
#8  
Senior Member
Thanks Meter 79
Posts: 843
Join Date: Jun 2010
Location: surakarta
How about battery life and performance compared to stock kernel?

Sent from my GT-I9500 using XDA Premium 4 mobile app
 
maxfu
Old
#9  
maxfu's Avatar
Senior Member - OP
Thanks Meter 1,174
Posts: 478
Join Date: Mar 2011
Location: Beijing

 
DONATE TO ME
Quote:
Originally Posted by snxxxxx View Post
How about battery life and performance compared to stock kernel?

Sent from my GT-I9500 using XDA Premium 4 mobile app
Well it is hard to say. If you use the normal version, it should be battery friendly. The tc version is overclocked. Due to my 3DMark result, the overclock version maxied out the First and Second stage tests.
The Following 2 Users Say Thank You to maxfu For This Useful Post: [ Click to Expand ]
 
DroidX77
Old
#10  
DroidX77's Avatar
Senior Member
Thanks Meter 166
Posts: 523
Join Date: Feb 2013
Location: Yogyakarta - Indonesia
Quote:
Originally Posted by maxfu View Post
Well it is hard to say. If you use the normal version, it should be battery friendly. The tc version is overclocked. Due to my 3DMark result, the overclock version maxied out the First and Second stage tests.
If you can Make it AOSP support also
Waiting Android "L"


Device: Samsung Galaxy S4 I9500
ROM: ARROW V15 XXUGNG3

Tablet: Samsung Galaxy Tab 2 10.1
ROM: Omni Nightly
Kernel: AGNi CM

Respect!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes