XenonHD Unofficial AOSP-based ROM for Find 7a

XDA Recognized Contributor uppon2 & Team Horizon are bringing the Oppo … more

Sunshine Compatible with HTC One M9

Two Senior Recognized Developers jcase and beaups officially released a new version of Sunshine. … more

CyanogenMod 12.1 for YU Yureka

YU Yureka recently received an official Cyanogen OS 12S update. If you prefer to use a newer revision of … more

Open War for Open Android: Antitrust for Cyanogen?

Android and openness is something we talk about all the time, but the recent … more
Post Reply Subscribe to Thread Email Thread

Wink Fix Lollipop Charging

26th February 2015, 03:57 PM |#1  
OP Senior Member
Thanks Meter: 428
 
730 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Hi i have a posible fix for charging off mode on lolliopop we need to integrate this in kernel:
" androidboot.mode=charger"
In the file board-tuna-power.c but i dont know how to
 
 
6th March 2015, 12:00 AM |#2  
Loureiro's Avatar
Senior Member
Flag Alentejo
Thanks Meter: 305
 
672 posts
Join Date:Joined: Aug 2011
More
Quote:
Originally Posted by werty100

Hi i have a posible fix for charging off mode on lolliopop we need to integrate this in kernel:
" androidboot.mode=charger"
In the file board-tuna-power.c but i dont know how to

MWisBest's tuna kernel repository has the file board-tuna-power.c with this function

Code:
static int __init tuna_charger_mode_setup(char *str)
{
	if (!str)		/* No mode string */
		return 0;

	is_charging_mode = !strcmp(str, "charger");

	pr_debug("Charge mode string = \"%s\" charger mode = %d\n", str,
		is_charging_mode);

	return 1;
}

__setup("androidboot.mode=", tuna_charger_mode_setup);
it looks good to me
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes