Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,412 Members 45,226 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL] [DEV] [P31xx] AA-ANYKERNEL- fix the Android 4.4.x drain

Tip us?
 
Android-Andi
Old
#1  
Recognized Contributor - OP
Thanks Meter 7582
Posts: 4,304
Join Date: Mar 2013
Default [KERNEL] [DEV] [P31xx] AA-ANYKERNEL- fix the Android 4.4.x drain

AA-ANYKERNEL

Why another Kernel?
A lot of user faced a high Battery-Drain since Android 4.4.x.
It is hard to find the cause of the Problem, because it does not happen to everyone.
The problem seems to be related to the merged commit "apply P3110 JB Update1 from opensource.samsung.com" on our kernel source wich didnīt made Problems before Android 4.4.x.

Who is working on this Kernel?
Since i am still somehow a "Newbie" and donīt understand everything i am not able to sperate the Source of Problem. Our wonderfull Kernel-Dev @ketut.kumajaya is answering my qustions if i run in some trubble.

Why a own Thread for this kernel?
You must know, most of our Roms are using the CM-11.0 Kernel for their Roms - means: a lot of Roms are affected, even if it does not happen to every user. Solveing the issue does not only help fixing CM, also a lot of other Roms wich should be in interest of every user.

Kernel-Source
https://github.com/slimroms/kernel_samsung_espresso10

About the Process:
I took our SlimKat Kernel as base:
1. Applyed the JB Update 1 commit from @ketut.kumajaya
I went back to 3.0.31 kernel and applyed JB Update 1 in 3 parts instead 1 for better changes tracking.
At least i did the upstream from 3.0.31 to 3.0.101 again and added back all other changes wich got applyed on our 3.0.101 kernel before.

@tuxafgmur made huge commit to solve the drain, it was to big to get it merged.
So i made a diff between his changes - 500.000 lines diff - lol.
I worked many days on it to get out the original commits from the diff and found most of them.

So we know JB Update 1 seems to be the source of problem, now lets go ahead:

2. revert some parts from JB Update 1
Only Partially reverted:
arch/arm/mach-omap2/cpuidle44xx.c: (partially) revert JB Update 1 and partially apply "Fix configs & missing log options" from DhollmenKernel by Tuxafgmur
drivers/net/wireless/bcmdhd/dhd_sec_feature.h: partially revert JB Update 1/3

3. Add back missing parts from Upstream 3.0.38 -> 3.0.39

4. some different changes, iīll list the some times later

DOWNLOAD

XDA:DevDB Information
[P31xx] AA-ANYKERNEL, Kernel for the Samsung Galaxy Tab 2

Contributors
Android-Andi, ketut.kumajaya
Kernel Special Features:

Version Information
Status: Beta

Created 2014-06-29
Last Updated 2014-07-27
The Following 32 Users Say Thank You to Android-Andi For This Useful Post: [ Click to Expand ]
 
Android-Andi
Old
(Last edited by Android-Andi; 20th July 2014 at 07:39 PM.)
#2  
Recognized Contributor - OP
Thanks Meter 7582
Posts: 4,304
Join Date: Mar 2013
Default Reserved

DOWNLOADS

Vendor-Blobs
(please flash the vendor-blobs DIRECTLY after the kernel)

For SlimKat:
GT-P31XX-Slim-3.0.101-test2.zip

For CyanogenMod 11:
GT-P31XX-CM-3.0.101-test2.zip
(forgot to upload test2 kernel, will do in the evening)

For OmniROM:
GT-P31XX-Omni-3.0.101-test2.zip
The Following 4 Users Say Thank You to Android-Andi For This Useful Post: [ Click to Expand ]
 
Android-Andi
Old
#3  
Recognized Contributor - OP
Thanks Meter 7582
Posts: 4,304
Join Date: Mar 2013
Default Reserved

The Following 2 Users Say Thank You to Android-Andi For This Useful Post: [ Click to Expand ]
 
Vishesh
Old
#4  
Vishesh's Avatar
Senior Member
Thanks Meter 337
Posts: 599
Join Date: Nov 2012
Location: New delhi
@Android-Andi well done.. Our great andi 😊😊

JUST PRESS MY BUTTON~~~ IF I HELP YOU

 
iSagar7
Old
#5  
iSagar7's Avatar
Senior Member
Thanks Meter 83
Posts: 247
Join Date: May 2012
Location: Mumbai
I am on SOKP so does this kernel wipe out the init.d files like the next kernel..

Sent from my GT-P3100 using Tapatalk
If helped then don't forget to click Thanks..
 
rakeshbro
Old
#6  
rakeshbro's Avatar
Senior Member
Thanks Meter 68
Posts: 261
Join Date: Aug 2012
A new Kernel For Tab 2 Thx Man.
|--------------------------------------------------------------------------------------------|
Talking to me?? Then Hit This Button
|--------------------------------------------------------------------------------------------|

Lamborghini Theme Only For hTc One V
The Following User Says Thank You to rakeshbro For This Useful Post: [ Click to Expand ]
 
Android-Andi
Old
#7  
Recognized Contributor - OP
Thanks Meter 7582
Posts: 4,304
Join Date: Mar 2013
@iSagar7 no, this does not delete the init.d folder.


This is a development Kernel! No specials inside atm.
I hope we can use it later to compare with CMīs kernel to fix the the Battery-Drain on most Android 4.4.x Roms.


I am uploading a reworked installer, added also an Option to install our batteryfriendly SlimKat Kernel for those who need it after testing the AA-ANYKERNEL
I donīt need feedback here for SlimKat kernel, only for the AA-ANYKERNEL.
The installer includes all needed blobs for both kernel - donīt worry, it will automatically choose the right blobs


Donīt forget to thanks also @ketut.kumajaya and @psndna88 !!!
Devices:
P3110
I8190


My 50 Cent

Omni Rom (official/unofficial) for P31XX and P51XX
and SM-T31X (unofficial)

SlimRom-Team Member
SlimKat for P31XX and P51XX and SM-T31X (unofficial)


TWRP 2.7.1.1 & CWM 6.0.5.0 & PhilZ Touch P31XX and P51XX

GT-I8190
PhilZ Touch
TWRP

All my files and ROMs on www.androidfilehost.com
The Following 5 Users Say Thank You to Android-Andi For This Useful Post: [ Click to Expand ]
 
fr4n
Old
#8  
fr4n's Avatar
Senior Member
Thanks Meter 40
Posts: 203
Join Date: Nov 2013
Location: Paraisópolis
I took a screenshot of BBS, I think I'm having the battery drain issue. I didn't play any game or something, I'm just chatting on Facebook/WhatsApp.



Sent from my Tab 2 using XDA-Developers app
Device: Samsung Galaxy Tab 2 7.0 (Wi-Fi)
CyanogenMod version: 11-20140727-NIGHTLY-p3110
Android version: 4.4.4
Kernel version: 3.0.31 (CM-g9b3f943)
Build number: cm_p3110-userdebug 4.4.4 KTU84Q b406c85431 test-keys
Recovery: CWM 6.0.5.0-Swipe

(Sorry for any grammar errors, English isn't my first language )
 
fr4n
Old
(Last edited by fr4n; 30th June 2014 at 03:43 AM.)
#9  
fr4n's Avatar
Senior Member
Thanks Meter 40
Posts: 203
Join Date: Nov 2013
Location: Paraisópolis
Okay, so I ran the AROMA installer and it gave me three options. Which one should I choose?

Edit: choose the option to flash AA-ANYKERNEL. I'm stuck at the splash screen, can't go to recovery, but download mode is still okay.
Edit 2: managed to get into recovery after few tries, flashed NEXT 2.2.2 and it's booting now. Can you provide a tutorial to install the kernel, please?
Device: Samsung Galaxy Tab 2 7.0 (Wi-Fi)
CyanogenMod version: 11-20140727-NIGHTLY-p3110
Android version: 4.4.4
Kernel version: 3.0.31 (CM-g9b3f943)
Build number: cm_p3110-userdebug 4.4.4 KTU84Q b406c85431 test-keys
Recovery: CWM 6.0.5.0-Swipe

(Sorry for any grammar errors, English isn't my first language )
 
Bhaskara Rao
Old
#10  
Senior Member
Thanks Meter 171
Posts: 411
Join Date: Dec 2013
Location: Tiruvannamalai
Installed smoothly without any hitch on Slimkat 5.10 build. The aroma installer is lovely. The device is functioning smoothly. Shall report battery usage after a day's use. Thanks a lot for this new effort, Android-Andi!

Click image for larger version

Name:	uploadfromtaptalk1404110525452.png
Views:	441
Size:	80.0 KB
ID:	2825018

Sent from my GT-P3100 using XDA Premium HD app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes