[Miscellaneous Android Development] kartik verma:
This is the new Kernel based mod for Gionee P5W :fingers-crossed:

Enjoy !!! :laugh:

Contents :

- Notification :eek:

- About :cyclops:

- How to Apply :mad:

- Requirement :confused:

- Bugs :crying:

- Installation Procedure :rolleyes:

- Features :silly:

- How to Disable CPU Rendering :angel:

- How to Enable/Disable CPU Cores :angel:

- New Method of Enabling/Disabling Core ;)

- Downloads :cool:

- Credits :good:

Few things to be noted here :

- This guide is only meant for GioneeP5W

- Required Android Version 6.0 (Marshmallow)

- Required Kernel Version 3.18.19

- The zip contain GioneeP5W firmware files

- Flashing on another device may cause Bootloop or Hardbrick​

About :​

This mod is only meant for Gionee P5W. With this mod you were allowed to Enable/Disable CPU Core on the fly. This will save Battery Power as much as possible without causing any bad effect. Gionee P5W has 4 Core 0-3 (0 > 1 > 2 > 3). if you are using all the 4 Cores this may distribute equal amount of task on all the CPU Cores and Prevent consumption of High Power this also saves Battery Power and Prevent device from Overheating.

Disable CPU Rendering means disable Software Rendering and shift CPU work load to GPU. On the other hand Enabling GPU means enable Hardware Rendering. It make applications load faster, improve touch response, prevent heating of CPU Cores, improve power consumption.

How to Apply :

- Your device must rooted, in order to use full functionality of this mod

- Installed Philz Recovery Required

If you haven't Rooted and Installed CWM on your device. Check below thread

Thread link : https://xdaforums.com/android/development/install-philz-recovery-root-gionee-t3611051

Requirement :

- A GioneeP5W :D :D

- Running on Android Version 6.0 (V8145 or V8163) ;)

- Sp Flash Tool :)

- Installed VCOM, Preloader, CDC Drivers in your PC :silly:

- USB Cable :eek:​

Bugs :​

- Not Found Yet :highfive:

Installation Procedure :

- Switch Off Your Device

- Unpack Zip file (Contain Scatter file.txt, boot.img, Preloader.bin)

- Open Sp Flash Tool

- Locate Scatter File

- Connect Device With USB

- Click On Download Button in Sp Flash Tool

- Hit Device Power Button Once

- Wait Until Sp Flash Tool Complete Flashing Process

- After Flashing

- Disconnect & Reboot

Features :

- Enable/Disable CPU Cores :cowboy:

- Prevent Device Overheating :angel:

- Improve Battery life :o

- Limit Consumption of Battery Power :fingers-crossed:

- Load APPS Faster :victory:

- Disable CPU Rendering :cool:

- Enable GPU Rendering :p

- Enable 4 Core Boosting :eek:

- Interactive Governor Tweaked For Balanced Performance :cyclops:

- Save Battery Power :silly:

How to Disable CPU Rendering :

- Requirement Root Explorer Application

- Open egl.cfg with the help of Root Explorer Application

- egl.cfg file present in /system/lib/egl/egl.cfg

- Edit this file like this, in order to disable CPU Rendering

- EDITED CODE

#0 0 android
0 1 mali

- ORIGINAL CODE

0 0 android
0 1 mali

- After Editing Save & Exit

- Reboot Device Now

- It is necessary to remove egl.cfg.bak from /system/lib/egl/HERE​

How to Enable/Disable CPU Cores (Traditional Method !):

By Using Terminal Emulator App

Tag : 0 (Disable)

Tag : 1 (Enable)

Type :

su

Then Type (as per your need) :

Disable/Enable First Core -

echo "0" > /sys/devices/system/cpu/cpu0/online;

echo "1" > /sys/devices/system/cpu/cpu0/online;

Disable/Enable Second Core -

echo "0" > /sys/devices/system/cpu/cpu1/online;

echo "1" > /sys/devices/system/cpu/cpu1/online;

Disable/Enable Third Core -

echo "0" > /sys/devices/system/cpu/cpu2/online;

echo "1" > /sys/devices/system/cpu/cpu2/online;

Disable/Enable Fourth Core -

echo "0" > /sys/devices/system/cpu/cpu3/online;

echo "1" > /sys/devices/system/cpu/cpu3/online;

New Method of Enabling Disabling Core (Use Kernel Adiutor app) :

- First patch this app with Lucky Patcher App

- Check ScreenCaptures in attachment, How to patch

- Open this application

- Select CPU from menu tab

- Enable/Disable CPU Core as per your need

Downloads :

- Download from below attachment​

Credits :

[MENTION=4206297]leolawliet[/MENTION]

#POST_2

Thread UPDATED :​

Gionee P5W Kernel Update :

- Fix slow charging issue

- Enable Fast charging

- Disable HEVC cpufreq control

- Modify prefservscntbl for touch boost, for now touch boost disable in kernel

- Edit perfservscntbl.txt file present in /system/etc/HERE

- Edit like below

- it is recommended to delete perfservscntbl.txt.bak file

Modified Code :

CMD_SET_CPU_CORE, SCN_APP_TOUCH, 4
CMD_SET_CPU_FREQ, SCN_APP_TOUCH, 1300000
CMD_SET_CPU_CORE, SCN_SW_FRAME_UPDATE, 4
CMD_SET_CPU_FREQ, SCN_SW_FRAME_UPDATE, 1300000
CMD_SET_CPU_CORE, SCN_APP_SWITCH, 4
CMD_SET_CPU_FREQ, SCN_APP_SWITCH, 1300000
CMD_SET_CPU_UP_THRESHOLD, SCN_SW_FRAME_UPDATE, 80
CMD_SET_CPU_DOWN_THRESHOLD, SCN_SW_FRAME_UPDATE, 65

Original Code :

CMD_SET_CPU_CORE, SCN_APP_TOUCH, 3
CMD_SET_CPU_FREQ, SCN_APP_TOUCH, 819000
CMD_SET_CPU_CORE, SCN_SW_FRAME_UPDATE, 3
CMD_SET_CPU_FREQ, SCN_SW_FRAME_UPDATE, 819000
CMD_SET_CPU_CORE, SCN_APP_SWITCH, 4
CMD_SET_CPU_FREQ, SCN_APP_SWITCH, 1300000
CMD_SET_CPU_UP_THRESHOLD, SCN_SW_FRAME_UPDATE, 80
CMD_SET_CPU_DOWN_THRESHOLD, SCN_SW_FRAME_UPDATE, 65

​

Installation Procedure :​

- Switch Off Your Device

- Unpack Zip file (Contain Scatter file.txt, boot.img, Preloader.bin)

- Open Sp Flash Tool

- Locate Scatter File

- Connect Device With USB

- Click On Download Button in Sp Flash Tool

- Hit Device Power Button Once

- Wait Until Sp Flash Tool Complete Flashing Process

- After Flashing

- Disconnect & Reboot​

Downloads :

Download this "Update_GioneeP5W_Kernel_13_06_2017.zip" from below attachment, Sp FlashTool Flashable

Philz Recovery Flashable :

Download this "Flashable_Update_GioneeP5W_Kernel_13_06_2017.zip" from below attachment, Philz Recovery Flashable ZIP file for Non-PC users

NOTE :

I am not going to test this flashable zip file, test your own. You may get stuck on bootloop after flashing. So, have a nandroid backup first or if no nandroid backup than official Gionee P5W Firmware required. If flashing gone right than post last_log here, get last log from this directory "/cache/recovery/last_log"​