Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Android-Andi

29th June 2014, 05:21 PM   |  #1  
OP Recognized Contributor
Thanks Meter: 10,993
 
5,376 posts
Join Date:Joined: Mar 2013
More
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 38 Users Say Thank You to Android-Andi For This Useful Post: [ View ]
29th June 2014, 05:21 PM   |  #2  
OP Recognized Contributor
Thanks Meter: 10,993
 
5,376 posts
Join Date:Joined: Mar 2013
More
Reserved
DOWNLOADS

Vendor-Blobs-update1.zip
(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
Last edited by Android-Andi; 6th September 2014 at 03:17 PM.
The Following 15 Users Say Thank You to Android-Andi For This Useful Post: [ View ]
29th June 2014, 05:21 PM   |  #3  
OP Recognized Contributor
Thanks Meter: 10,993
 
5,376 posts
Join Date:Joined: Mar 2013
More
Reserved
The Following 6 Users Say Thank You to Android-Andi For This Useful Post: [ View ]
29th June 2014, 06:21 PM   |  #4  
Vishesh's Avatar
Senior Member
Flag New delhi
Thanks Meter: 347
 
627 posts
Join Date:Joined: Nov 2012
More
@Android-Andi well done.. Our great andi 😊😊
29th June 2014, 06:54 PM   |  #5  
iSagar7's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 84
 
251 posts
Join Date:Joined: May 2012
More
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
29th June 2014, 07:00 PM   |  #6  
rakeshbro's Avatar
Senior Member
Thanks Meter: 74
 
268 posts
Join Date:Joined: Aug 2012
More
A new Kernel For Tab 2 Thx Man.
The Following User Says Thank You to rakeshbro For This Useful Post: [ View ]
29th June 2014, 07:07 PM   |  #7  
OP Recognized Contributor
Thanks Meter: 10,993
 
5,376 posts
Join Date:Joined: Mar 2013
More
@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 !!!
The Following 6 Users Say Thank You to Android-Andi For This Useful Post: [ View ]
30th June 2014, 12:44 AM   |  #8  
fr4n's Avatar
Senior Member
Flag Paraisópolis
Thanks Meter: 105
 
349 posts
Join Date:Joined: Nov 2013
More
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
30th June 2014, 03:40 AM   |  #9  
fr4n's Avatar
Senior Member
Flag Paraisópolis
Thanks Meter: 105
 
349 posts
Join Date:Joined: Nov 2013
More
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?
Last edited by fr4n; 30th June 2014 at 04:43 AM.
The Following User Says Thank You to fr4n For This Useful Post: [ View ]
30th June 2014, 08:42 AM   |  #10  
Senior Member
Flag Tiruvannamalai
Thanks Meter: 250
 
606 posts
Join Date:Joined: Dec 2013
More
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:	709
Size:	80.0 KB
ID:	2825018

Sent from my GT-P3100 using XDA Premium HD app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes