Code: #include "std_disclaimer.h" /* * Your warranty is void. * * Team Infinity is 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 this kernel * before flashing it! YOU are choosing to make these modifications, and if * you point the finger us me for messing up your device, we will laugh at you. */

Steps to flash:

Configuring the kernel:

Bugs:

Code: OreoUnified V5.1F: Rebased kernel, removed Spectrum support, will be followed in separate builds, fixed Hotplugs and added Alucard Hotplug. Oreo Build 15.1M: Rebased kernel, removed Spectrum support, will be followed in separate builds, restored 200MHz clock, fixed in-call heating natively, fixed Hotplugs and added Alucard Hotplug. Oreo Unified V5F: Added Spectrum support thanks to @anirudhgupta109 and Franco, limited underclock to 499MHz, removed manual undervolting control. Oreo Build 15M: Added Spectrum support thanks to @anirudhgupta109 and Franco, limited underclock to 499MHz, removed manual undervolting control. Oreo Unified V3.7: Added Intellithermal V3.0, compiled using latest Linaro 7.3.x Oreo Unified V3.6 Revised: Added Governors: Alucard, Impulse, ElementalX, Bioshock, Lionheart; added Hotplug: Thunderplug with Alucard control; fix 1.65GHz overclock issue; upstream to 3.18.113; removed unnecessary governors. Oreo Unified V3.5: Added KCAL V2 colour control, added sound control. Oreo Stable v2: Up the charging current to 2A. Oreo Stable v2: Supports both Murali and Fabian tree now. Oreo Test Build 12M: Since it's a stock, fresh base; it means there are no bugs (as we know of!) now! Oreo Test Build 12M: Stock, fresh base. You can call this "New Generation Infinity" if you want to. :D Oreo Test Build 11M: Fixed a bug. Sorry, our idiocy. Oreo Test Build 9.9.7.6M: Tuned interactive, added Electron Oreo Test Build 9.9.7.6M: Tuned CPU Boost Oreo Test Build 9.9.7.6M: Tuned CPU, deep sleep, wakelock blocker Oreo Test Build 9.9.7.6M: Addd Live Display, LCD notify Oreo Test Build 9.9.7.6M :Better performance, battery overall. Oreo Test Build 9.9.7.6M: Added initial Nethunter support. Oreo Test Build 9.9.7.6M: Upstreamed Linux version to .108 Oreo Test Build 9.9.7M: Xiaomi sure put A LOT of debugging statements. They cause slowdowns. Disabled more debug. Oreo Test Build 9.9.7M: Tuned interactive governor to be stupidly fast. Oreo Test Build 9.9.7M: Added more governors (Cultivation, chill, nightmare and darkness) Oreo Test Build 9.9.7M: Added Alucard hotplug Oreo Test Build 9.9.6M: Fix GPU clock (19mhz bug) Oreo Test Build 9.9.6M: improve and update binder Oreo Test Build 9.9.6M: Fixed memory leaks Oreo Test Build 9.9.6M: Improved suspend state Oreo Test Build 9.9.5M: Implemented Murali's DTS commits. Oreo Test Build 9.9.5M: Increased maximum charging current to 1.5A. Oreo Test Build 9.9.5M: Reverted to gcc 4.9 as 5.3.1 introduced some problems. Oreo Test Build 9.9.2M: Updated gcc to 4.9 -> 5.3.1 Oreo Test Build 9.9.2M: Fixed Qnovo bug present in older build Oreo Test Build 9.9.2M: Disabled more debuging and logging Oreo Test Build 9.9M: Improved Sound quality Oreo Test Build 9.9M: Some debugging and logging features are turned off now Oreo Test Build 9.9M: Improve overall performance and battery Oreo Test Build 9.9M: Zram and LZ4 optimized Oreo Test Build 9.9M: Addef USB HID gadget support Oreo Test Build 9.9M: Added Wireguard Oreo Test Build 9.9M: Crypto for ARM64 has been added and optimized Oreo Test Build 9.9M: Fixed deep sleep Oreo Test Build 9.8M: Improved Bluetooth Oreo Test Build 9.8M: Added new hotplug governors (AutoSMP, AiO) Oreo Test Build 9.8M: Added KSM Oreo Test Build 9.8M: OC, UC Oreo Test Build 9.7: Implemented Mac's battery commits. Oreo Test Build 9.7: Fixed underclocking. Oreo Test Build 9.7: Fixed Overclocking. (FINALLY) Oreo Test Build 7-9.6: Mostly bug fixes. Oreo Test Build 6: Fix powered off charging LED Oreo Test Build 6: Add IntelliThermal Oreo Test Build 6: Dynamic Sync Control Oreo Test Build 6: Optimizations Oreo Test Build 6: High CPU usage fix (hopefully) Oreo Test Build 5: Added Qnovo fast charge technology Oreo Test Build 5: Added Touchboost Oreo Test Build 5: Added Undervolting. Oreo Test Build 4: Added Adreno Idler Oreo Test Build 4: Added Simple GPU Algorithm Oreo Test Build 4: Add Change CRC Oreo Test Build 4: Add more TCP Oreo Test Build 4: Added ExFAT Oreo Test Build 4: Optimizations Oreo Test Build 4: KCAL Oreo Test Build 4: Turning off unnecessary chipsets Oreo Test Build 3: Added LZ4 support Oreo Test Build 3: Added Alucard governor Oreo Test Build 3: Added Sound Control Oreo Test Build 3: Added ZEN I/O. Oreo Test Build 3: Added NTFS support. Oreo Test Build 3: Added MSM hotplug support. 5.5: Support for overclocking upto 1.57GHz (not recommended but still implemented) 5.5: Added Ironactive governor. 5.5: Added zzmoove governor. 5.5: Removed Simple GPU Algorithm due to compatibility issues. 5.5: Added qnovo instead of USB Fast Charge. (enabled by default) 5.0: Optimized the kernel. 5.0: Disabled CRC by default. 5.0: Added exFAT support. 5.0: Added Adreno Idler. 5.0: Added simple GPU algorithm. 5.0: Added LED fix. 4.5: Added MSM Hotplug 4.5: Added KCAL Support 4.2: Added Alucard Governor 4.2: Optimised Hotplug 4.2: Added Sound Control 4.2: Improved Gain 4.2: ZEN I/O Scheduler Before that: Added AIO Hotplug Overclock to 1.49GHz and underclock to 200MHz NTFS Support

XDA:DevDB Information

Infinity Kernel, Kernel for the Xiaomi Redmi 4a

Contributors

Version Information

The Infinity Kernel is a custom kernel for Redmi 4A (rolex) and Redmi 5A (riva).For Redmi 4A and Redmi 5A, from Team Infinity!Clear Kernel Auditor's data.Wipe "Dalvik Cache" and "Cache".Flash kernel.Reboot.Please use "alucard" governor instead of "interactive".Other than that, we can't give any other advice. We already have our recommendations set as default.Murali tree based ROMs may give an error at boot. It doesn't affect functionality, though. Most likely a bug in the device tree itself."ondemand" CPU governor is pretty broken but it shouldn't be used anyway.We couldn't find any other, tell us if you do!Overclocking to 1.57GHz doesn't work for now. (We fixed this on Oreo and will fix this on Nougat too. Sometime.)Wi-Fi in some ROMs seems to be broken, since those ROMs require Wi-Fi driver built into the kernel itself.Also, turning on the option to schedule workload on awake CPUs to save battery is causing CPU frequency to fall to 200MHz when phone is idle and is not letting it scale back to normal when phone is unlocked, so we strongly advise youturn this option on in CPU settings for a better experience.There was a time where we had to build two versions for two different device trees.Do not worry, though. Those days are over.A: Please do a "Dalvik cache + cache" wipe, reinstall Infinity Kernel and clear Kernel Auditor's data. If this didn't solve your problem, reach us on this Telegram group A: Install the latest MIUI firmware for your deviceor install this firmware (newer, try this first) or this firmware (older, only if the newer one doesn't work) if you haven't already or if your ROM doesn't do that automatically.. That'll fix the backlight bug in custom ROMs.The best way to contact us is through this Telegram group since we are online most of the time on there. Please try using that group first if you need help or want to ask something. caghandemir , Yousef Algadri, Muralidharan Kumaresan, Myroynaldig, Ryan Andri, Carlos Arriaga, Aryan, MacTavish, WzedlareAlucard hotplug, exFAT and NTFS Support, Overclock up to 1.61GHz, charging upto 2A.Stablev22018-06-022018-04-092018-06-27