@pokipokipxorn I installed this kernel on 2016 latest of RR, but now there's a new RR 2017 version, Im updating the ROM. I hope the kernel works.
Hi Dev,@nougat users
pls indicate which nougat rom, especially version & build date, which is more or less stable, which DOESN'T have any battery draining issues. I will then recompile a custom kernel of that rom, no eta though.
Note that I do not keep track of any nougat roms coz I don't use them. If u give me a buggy rom version, a custom kernel will not have much impact on battery backup (wasted effort). So, pls examine properly which rom version is suitable.
mkdir -p ~/kerneldev/config ;
cd ~/kerneldev/config ;
wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/extract-ikconfig ;
chmod +x extract-ikconfig ;
./extract-ikconfig boot.img > xosp711_Z00L_defconfig
cd ~ ;
mkdir -p ~/kerneldev/source/xosp_nougat ;
cd ~/kerneldev/source/xosp_nougat ;
git init ;
git clone "https://github.com/CyanogenMod/android_kernel_asus_msm8916/tree/cm-14.1"
mkdir -p ~/kerneldev/toolchain ;
cd ~/kerneldev/toolchain ;
git init ;
git clone "https://bitbucket.org/UBERTC/aarch64-linux-android-4.9-kernel.git" ;
export PATH=~/kerneldev/toolchain/aarch64-linux-android-4.9-kernel/bin:$PATH ;
export CROSS_COMPILE=~/kerneldev/toolchain/aarch64-linux-android-4.9-kernel/bin/aarch64-linux-android- ;
mkdir -p ~/kerneldev/source/xosp_nougat/output ;
cd ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916 ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output clean ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output mrproper ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output distclean ;
cp ~/kerneldev/config/xosp711_Z00L_defconfig ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916/arch/arm64/configs/ ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output xosp711_Z00L_defconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output savedefconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 dtbs ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz-dtb ;
mkdir -p ~/kerneldev/bootimg ;
cd ~/kerneldev/bootimg ;
git init ;
git clone https://github.com/xiaolu/mkbootimg_tools.git ;
mkdir -p ~/kerneldev/bootimg/new ;
mkdir -p ~/kerneldev/bootimg/source ;
mkdir -p ~/kerneldev/bootimg/unpacked ;
mv boot.img xosp711_stock.img ;
~/kerneldev/bootimg/mkbootimg_tools/mkboot ~/kerneldev/bootimg/source/xosp711_stock.img ~/kerneldev/bootimg/unpacked/xosp711
cd ~/kerneldev/bootimg/unpacked/xosp711 ;
~/kerneldev/bootimg/mkbootimg_tools/mkbootimg --base 0x80000000 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --second_offset 0x00f00000 --tags_offset 0x00000100 --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 buildvariant=userdebug' --kernel ~/kerneldev/source/xosp_nougat/output/arch/arm64/boot/Image.gz-dtb --ramdisk ramdisk.packed -o ~/kerneldev/bootimg/new/xosp711_MYstock.img ;
fastboot boot ~/kerneldev/bootimg/new/xosp711_MYstock.img
fastboot flash boot ~/path/to/boot.img
CONFIG_CPU_BOOST
CONFIG_MSM_CORE_CTL_HELPER
CONFIG_MSM_CORE_CTL
CONFIG_MSM_PERFORMANCE
CONFIG_MSM_PERFORMANCE_HOTPLUG_ON
CONFIG_DEFAULT_TCP_CONG
CONFIG_CLUSTER_PLUG=n
CONFIG_SCHED_SMT=n
CONFIG_IKCONFIG_PROC=y
CONFIG_NTFS_FS=y
CONFIG_NTFS_RW=y
CONFIG_NTFS_DEBUG=n
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_CONG_WESTWOOD=y
CONFIG_KSM=y
CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y
CONFIG_ZSWAP=n
CONFIG_ZCACHE=n
CONFIG_TCP_CONG_BIC=y
CONFIG_TCP_CONG_HTCP=y
CONFIG_TCP_CONG_HSTCP=y
CONFIG_TCP_CONG_HYBLA=y
CONFIG_TCP_CONG_VEGAS=y
CONFIG_TCP_CONG_SCALABLE=y
CONFIG_TCP_CONG_LP=y
CONFIG_TCP_CONG_VENO=y
CONFIG_TCP_CONG_YEAH=y
CONFIG_TCP_CONG_ILLINOIS=y
CONFIG_DEFAULT_WESTWOOD=y
cd ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916 ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output xosp711v01_Z00L_defconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output savedefconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 dtbs ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz-dtb ;
cd ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916 ;
git status ;
git add arch/arm64/configs/xosp711_Z00L_defconfig ;
git add arch/arm64/configs/xosp711v01_Z00L_defconfig ;
git commit ;
git status ;
[b]23.) Set SELINUX to permissive permanently from the kernel.[/b]
cd ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916 ;
git fetch https://github.com/abhishekr700/Nemesis_Kernel.git ;
git cherry-pick 210b6576b592eaa30c10b688d9b770f3b2a09229 ;
git status ;
git commit ;
cd ~/kerneldev/source/xosp_nougat/android_kernel_asus_msm8916 ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output xosp711v01_Z00L_defconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output savedefconfig ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 dtbs ;
make ARCH=arm64 O=~/kerneldev/source/xosp_nougat/output -j4 Image.gz-dtb ;
.config
CONFIG_ASMP=y
CONFIG_MSM_PERFORMANCE=n
CONFIG_MSM_PERFORMANCE_HOTPLUG_ON=n
Kconfig
config ASMP
bool "Multi-core automatic hotplug support"
depends on SMP
default y
help
Automatically hotplugs the multiple cpu cores on and off
based on cpu load and suspend state
Makefile
obj-$(CONFIG_ASMP) += autosmp.o
Maybe tomorrow.@pokipokipxorn Kernel works on latest RR, but would you still release a kernel for it? Fast Charge is gone after updating. No battery issues whatsoever. Doze works fine, android OS doesn't drain battery and avg sot is 5-7hrs on full brightness
adb shell
su
setprop sys.usb.config diag,adb
DOWNLOAD
https://drive.google.com/drive/folders/0B6el2bQ1QEMuVW5iSDJiYmpQRXM?usp=sharing
before flashing my kernel, read disclaimer at post #1, make a backup of your phone partitions, imei, running kernel, settings, data etc
unzip & copy to sdcard, flash via fastboot or TWRP
New Upload, 2017 Jan 27th, features are the same as previous kernels (nothing new), just a re-compile
ROM RR-N-v5.8.0-20170121-Z00L-OFFICIAL
kernel v05-RR-N-v5.8.0-20170121-Z00L.7z
Need some help from you guys. If you have ZE550KL ZE500KL ZE551KL ZE600KL ZE601KL, SKU Global or WW, can you donate your edited QCN file to me? Please PM or mail (myuserid-at-geemaildotcom) the edited QCN file to me, otherwise I have to send my phone to ASUS service center, and it will take weeks to repair. Coz I don't have any connection to 3G/4G data connection right now, only have 2G. Thank you.
Steps to extract QCN file from phone, you need to backup your own QCN anyway
1st to disable "Driver Signature Enforcement" in Windows, allowing Qualcomm drivers to load/install
- restart windows
- before Windows logo shows, *quickly* press F8 multiple times
- a menu appears, press arrow down key, go to bottom
- select "Disable Driver Signature Enforcement"
- press Enter to continue booting into Windows
Connect phone to PC, set phone in DIAG mode, at any command prompt
wait for the adb shell, then
(phone will switch mode to DIAG, Windows will install some drivers automatically, if driver install is unsuccessful, use Qualcomm_Diag_QD_Loader_2016_driver)
To install QPST v2.7.437 & backup QCN file (note save as .qcn, NOT .xqcn)
Follow this tutorial (Step #4 onwards)
Edit QCN file using HEXedit, to replace your IMEI with 88 88 88 88 88 88 88 88 88 (imei1) and 99 99 99 99 99 99 99 99 99 (imei2), IMEI Converter if required
Follow this guide
Need some help from you guys. If you have ZE550KL ZE500KL ZE551KL ZE600KL ZE601KL, SKU Global or WW, can you donate your edited QCN file to me? Please PM or mail (myuserid-at-geemaildotcom) the edited QCN file to me, otherwise I have to send my phone to ASUS service center, and it will take weeks to repair. Coz I don't have any connection to 3G/4G data connection right now, only have 2G. Thank you.
Steps to extract QCN file from phone, you need to backup your own QCN anyway
1st to disable "Driver Signature Enforcement" in Windows, allowing Qualcomm drivers to load/install
- restart windows
- before Windows logo shows, *quickly* press F8 multiple times
- a menu appears, press arrow down key, go to bottom
- select "Disable Driver Signature Enforcement"
- press Enter to continue booting into Windows
Connect phone to PC, set phone in DIAG mode, at any command prompt
wait for the adb shell, thenCode:adb shell
(phone will switch mode to DIAG, Windows will install some drivers automatically, if driver install is unsuccessful, use Qualcomm_Diag_QD_Loader_2016_driver)Code:su setprop sys.usb.config diag,adb
To install QPST v2.7.437 & backup QCN file (note save as .qcn, NOT .xqcn)
Follow this tutorial (Step #4 onwards)
Edit QCN file using HEXedit, to replace your IMEI with 88 88 88 88 88 88 88 88 88 (imei1) and 99 99 99 99 99 99 99 99 99 (imei2), IMEI Converter if required
Follow this guide
It took me non-stop 36 hours, but I did it. My dead-bricked phone is alive. Just yesterday, it was totally non-responsive, no light, no led, no buzz, not even fastboot/recovery, due to me flashing other Zenfone 2 Laser dump image, while trying to fix my 2G problem.
Luckily, I had a partition dump backup made 2 months ago, which I found deep in my sdcard. I would recommend everyone also make a full backup, and test the restore process.
Will write a proper guide in time, for now, at the very least, use this excellent Partition Backup by wanam. Be sure to choose to backup the 100MB of phone low-level partitions.