yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] ramjet73:
Again, the change(s) to the boot.img required for rooting are made in the ramdisk, and not the kernel. I'm positive the [MENTION=631273]Chainfire[/MENTION] version of those changes are included in the ElementalX L kernel for the Nexus 5 since I'm using that kernel and only flash SuperSU 2.19 after the kernel.

I'm pretty sure [MENTION=647113]hellsgod[/MENTION] said at one point he is including the [MENTION=631273]Chainfire[/MENTION] mod to the existing ramdisk for both the Nexus 4 and Nexus 5 but it would be good if he can confirm that.

ramjet73
[Nexus 4 General] bombadier:
[MENTION=275009]ramjet73[/MENTION] you got a good link to read up on kernels,ramdisk etc?

Tapatyping fae the Nexus 4
[Nexus 4 General] ramjet73:
This is the tool I use to unpack/repack boot.img files. If you read through the OP I think that will help clarify things. Once you unpack a boot.img file you can go to the ramdisk directory that gets created and examine its contents in detail.

Edit: Here is a wiki entry that further explains the structure and content of the boot.img file.

Hope that helps.

ramjet73
[Nexus 4 General] Kaiser_93:
Flashed the boot.img, then flashed hellscore kernel v. 65L and now I can set the Idle States and the HKM saves them. Thank you all.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] nachordez:
SOLUTION FOR C STATES NOT WORKING

It seems it's a SeLinux question. Installed SELinux Mode Changer from play store, changed into permissive, and now HKM works fully!

So simple... :)

from Nexus 4
[Nexus 4 General] bombadier:
The wiki link is just what I am after,lol I use osmosis's tool all the time,maybe time I learned to read he he

Thanks again for taking the time
[Nexus 4 General] hellsgod:
I haven't included a modification to get root for the moment. I'd like to get a bigger picture before I decide what to do with root in the future :)

hells
[Nexus 4 General] ramjet73:
That makes sense. :good:

Sorry for the misunderstanding on my part, but that just means when rooting the stock Lollipop ROM the permissive boot.img needs to be flashed before Hellscore and SuperSU 2.19 can be flashed before or after, and CF-AutoRoot should work before or after flashing Hellscore. For ROM's that already have the [MENTION=1050103]sykopompos[/MENTION] permissive boot image included only a flash of SuperSU 2.19 is required, before or after flashing Hellscore.

ramjet73
[Nexus 4 General] stylazation:
Okay, so flashed the kernel. I'm running hellsCore installed HellsCore Kernel Manager off play store. Now how is it helping me have a fast and long lasting charge? There is no battery tab in kernel manager, if there is please point at it. 2nd it took 5 hours to charge on a Sunday starting from 20%. How is that helpful?

Please guide what I missed?
[Nexus 4 General] stylazation:
it stopped responding on me as well, then i realized that tapping twice right in the middle works for it.
[Nexus 4 General] hellsgod:
I have no idea what happened on your device. The device from my mother (she's using my good old mako) charges fine like ever. There is no battery tab in HKM.

hells
[Nexus 4 General] stylazation:
Thanks for reply.

Is this normal

Miscellaneous 44%

4 hrs until full on A/C

Kindly assist.
[Nexus 4 General] Dan1234567890:
This was happening before factory images were released and when wifi bug was present in mako builds. But te latest builds have that bug solved. So if you don't have factory image or the last LP ROM build after the bug was solved, I suggest you flash one.
[Nexus 4 General] stylazation:
I flashed LRX21M the latest available ROM.

12 hours ago.

What do you suggest I should be flashing now?
[Nexus 4 General] Bonvaz:
Guys anyone knows any good L ROMs? Seems that devs on original android development thread are quite calm...

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] manpildo:
Then it's wrong, because the latest is LRX21T.
[Nexus 4 General] hellsgod:
Latest release actually is LRX21T

Flash the factory image http://xdaforums.com/nexus-4/general/nexus-4-factory-image-live-5-0-lrx21t-t2940453 or look for a flashable zip of it if you don't want to have everything wiped.

hells
[Nexus 4 General] stylazation:
I actually installe, Mako-LRX21M-Frank-2.0-now-with-more-cadavers-B22.zip. The one available at the sykopompos custom ROM. Updated 5 Nov.

OK so, I'll follow and download the link you provided and flash that. And then reinstall the kernel available.
[Nexus 4 General] oxxshadow:
anyone know of any good settings for good performance and decent battery life? For me it seems like the stock factory image 5.0 runs slower than custom kit kat Roms such as Purity. I do not know too much about tweaking kernels, so I would really appreciate any feedback.

oxxshadow
[Nexus 4 General] Dan1234567890:
This one seems good, had it running before factory image was released...

http://xdaforums.com/showthread.php?t=2537932
[Nexus 4 General] kermitoo:
Yep, Purity was faster than stock 5.0, unfortunately
[Nexus 4 General] sykopompos:
And now you guys know why I'm still doing permissive :p

I'm still working on the sepolicies and will be going non permissive by default but an option for users to select full permissive if they want.

The selinux stuff needs more then just patching a file to run a superuser binary because su doesn't change the never allow rules or allows the su domain to do so.

Changes to the sepolicy will become the norm or a prebuilt binary added in

Sent from my LG-D851
[Nexus 4 General] hellsgod:
To be honest, I haven't had the time to read me through the changes in the selinux policies. I had a discussion with a friend about that topic, but I couldn't give him a straight answer about in which way Selinux behaves different with that change. You'll give root apps the permissions they need to run, thats the point you're doing this change. Does this also means we have some sort of security loss with that? Don't get me wrong, I don't have a problem with getting permissive to get my root apps working. If you root you already have some sort of security loss. I just don't wan't to force the user to use this way, as long as I don't know exactly what the worst case scenario could be with that change. Any comments about this would be very much apprechiated :)

hells
[Nexus 4 General] sykopompos:
I'm working on going non permissive but I gotta go through and give permissions in the sepolicy for most of the root apps. I'm thinking I can use the su domain to force the access through or if chainsfire insists on using the install recovery domain, we can make it act like the su domain

Sent from my LG-D851

---------- Post added at 06:02 PM ---------- Previous post was at 05:58 PM ----------

Actually, a solution would be to allow install_recovery to switch to the su_domain

Sent from my LG-D851
[Nexus 4 General] ramjet73:
You might be interested in this post from the [MENTION=631273]Chainfire[/MENTION] SuperSU thread if you haven't seen it already. I speculated on what my expectations are for security with SELinux in the long term and he pretty much agreed.

What we really need is a "user friendly" SELinux policy manager that can effectively replace SuperSU over time and handle all other policies as well. Ideally that should be provided by Google as part of the Android system.

ramjet73
[Nexus 4 General] hellsgod:
Alright, thx. Exactly the way I see that also :)

hells
[Nexus 4 General] sykopompos:
But the problem with that is that the install recovery domain that is being used is still confined so it doesn't give 100% access

Sent from my LG-D851
[Nexus 4 General] ramjet73:
That would have to be addressed but we still need a general purpose policy management app.

I've worked with RACF and Top Secret on IBM mainframes and SELinux is just a subset of those security managers.

This time it's you that needs to look at the big picture and not just the issues on a micro level. ;)

ramjet73
[Nexus 4 General] sykopompos:
I think if that is the case, we need to revert a lot of the current sepolicy and move it into something readable by us or give permission to reload the policy which we don't really have right now.

It looks like chains is managing a policy on top of a policy

Sent from my LG-D851
[Nexus 4 General] ramjet73:
Agreed.

We may have to wait for Android 6.0 but you have to take the first step to get there. :good:

ramjet73
[Nexus 4 General] Bonvaz:
Guys double tap to work doesn't work on android l?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] eurochild:
works just fine
[Nexus 4 General] Nizur:
I am using stock 5.0 ROM and b65L hellsgod kernel and it works for me.
[Nexus 4 General] sykopompos:
could you give this a try for me?

http://xdaforums.com/showpost.php?p=56811458&postcount=31713
[Nexus 4 General] Bonvaz:
Mmmm really strange..doesn't seem to work here :(

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] sykopompos:
It looks like the doze service is looking for the interactive governor so switch to that and give it a try. We might just have to figure out the correct settings for it to work

Sent from my LG-D851
[Nexus 4 General] Bonvaz:
OK now it workings great! Sorry for the ot I want also ask if anyone knows a good app to create a turn off widget! My power button is broken

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] sykopompos:
So was that the trick? Interactive governor?

Most people have been using power toggles or quick boot for a widget

Sent from my LG-D851
[Nexus 4 General] Bonvaz:
No,haven't switch to interactive,just tried to reactive again and reboot the phone and that's work:D

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] miksontije:
i install b65,and it kills my batery trough 8 hours in sleeping mode. it look google services have some isue with hc kernel in my case.
[Nexus 4 General] nachordez:
Of Course! I'll try and report back!
[Nexus 4 General] manpildo:
Screen off and lock
[Nexus 4 General] Bonvaz:
Guys I promise this is the last ot , I'm using multirom and I want that my secondary ROM substitute my internal ROM ,there is a way to do it? I promise this is the last ot :D

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] jsauder2:
yes. reboot to recovery, and in the multirom options you can swap your internal rom with another. fyi, there is a multirom thread where you could ask questions.
[Nexus 4 General] lollaz:
In download page... Whats CM means? Sorry for noob questione :)

Should i download normal or CM files...
[Nexus 4 General] bombadier:
Are you running a CM (Cyanogen) based Rom or AOSP ? I see in your sig that you are using purity so get the non CM one (L denotes a lollipop release)
[Nexus 4 General] eurochild:
version of the kernel for cm (cyanogenmod) based roms
[Nexus 4 General] Nicknoxx:
CM = cyanogenmod

You want the other one
[Nexus 4 General] xanthrax:
My 2¢ here...

If you don't know what CM is, better study a bit more before flashing anything in your phone

Sent from my Darkside of 1+1
[Nexus 4 General] paul c:
That build was when the "miscellaneous" entry disappeared for me. Just bear in mind the screen says "since last charge", so presumably it logged that miscellaneous before you flashed the latest ROM? Assuming that the gap is when you were flashing/rebooting.

Charge it up fully and see what it says after a couple of hours unplugged.
[Nexus 4 General] bombadier:
Do I detect that you be rolling with a oneplus ? Having a blast on the forums trying to complete my order :laugh:
[Nexus 4 General] xanthrax:
Yup, got it a month ago, bloody monster, good luck!

Sent from my Darkside of 1+1
[Nexus 4 General] lollaz:
Just my 2¢ here..

I know what cyano is, i flashd on my gnex some times ago.. I askd Just to be sure.

Is the same when i.e. When i watch streaming movies and dont remember what MD, TS, TC, WP means..

Sorry for question tho.

Regards

And thanks for answers :)

M.
[Nexus 4 General] xanthrax:
that was 5c ... :P

you`re good pal , i just wanted to be sure that you know what you do :cool:
[Nexus 4 General] kermitoo:
Only 3h Screen On with this kernel ( b65l ) and 5.0 stock, is it normal ?

And it's not super smooth.
[Nexus 4 General] eurochild:
u're posting a "3hrs sot" and thats it? in how many hours total? wifi? 3g? usage? compared it with stock?

dont use it if you dont like it

b65L in a custom L rom is running perfect for me and many others
[Nexus 4 General] xanthrax:
but you can like it , even if you don`t use it :cowboy:
[Nexus 4 General] eurochild:
yep this reminds me a good friend that gave his mako to her daughter but he still likes this kernel :P
[Nexus 4 General] kermitoo:
13h total. No games, only Chrome and small apps. 50% wifi 50% 3G

With Purity 4.4.4 and Franco Kernel I had something like 3h30 with same usage.
[Nexus 4 General] xanthrax:
Was SHE blonde? Lol... I know a nice guy in exactly the same situation like her, what a coincidence!

Sent from my Darkside of 1+1
[Nexus 4 General] stylazation:
Went to the stock kernel and still facing the miscellaneous. Dont knw if someone came up with any fix for that any where.
[Nexus 4 General] paul c:
So, did you wait till the battery reached full charge?
[Nexus 4 General] stylazation:
Yeah well this is status.

And I'm on stock kernel. So confused between ROM kernels and stock IMG. To get the stock had to go through hell and titanium back up gave up on me got data back after an hour or so of trying different things. Will see how this lasts long. Can't get away from miscellaneous anyways.
[Nexus 4 General] paul c:
Come on, your phone still has not charged up to 100% so "use since last FULL charge" is that. Android has logged a lot of "miscellaneous" and it's still there. Less than before since it is diluted over a longer period of time.

You almost certainly do not have an issue - even if you had a complicated upgrade. Just wait till you reach full charge (=100%!)

Nothing to do with the kernel - we are on a kernel thread. Just let your battery reach 100% and you will see how the "miscellaneous" disappears now that you are on the . Let us know what you find AFTER a full charge :)
[Nexus 4 General] xanthrax:
Go to developer options and check process stats, you'll find more answers about the battery usage

Sent from my Darkside of 1+1
[Nexus 4 General] stylazation:
Yeah, sorry about that. And thanks for bearing up with me. I did understand the last time you told me about letting it have a full charge. For that I even tried charging while turn off. It's just I guess the only option is to put it on all night and go to sleep and look at it at the morning run it all day and will see how it goes.

Thanks for understanding and teaching.
[Nexus 4 General] hellsgod:
Don't try to compare purity with stock. Its not always the kernel to be blamed if you have drain. But you can try some other kernels, maybe you'll find one that suits you better on "L" :)

hells
[Nexus 4 General] nachordez:
Tried!

It seems to work, though I cannot say totally for sure.

HKM, obviously, did not work for not having it's designed kernel, but LTM Pie, which also didn't work with restricted SELinux, did worked with restricted with your test kernel.

So, perhaps what you did was in the proper way...

Now, again in Hells with SELinux Mode Changer to get things working (and with my fav. kernel)
[Nexus 4 General] paul c:
no problem - did a full charge sort things out for you?
[Nexus 4 General] Wassupdog:
I think my battery drain is kinda big on 65L.

I'm using stock Lollipop with 65L, 7H ( maybe 7H and 30 min) standby, almost 2H screen on time, almost 2H and 30min of Google services (how can I disable it?) and 28% left.

Is it ok or the battery drain is big?
[Nexus 4 General] :
Guys, if I root using CFAR while on stock kernel, and I flash Hellscore, will the patched kernel stuff from CFAR(required for SuperSU to run properly while the phone boots) still be present? Or to I have to use CFAR once more while on Hellscore? (If you don't have any idea what I'm talking about, check chainfire's G+)
[Nexus 4 General] bombadier:
Someone can correct me if I have it wrong

CFAR will patch the selinux policy to enable root to be installed after that apply hellscore, neither will interfer think of each thing applying a process independent of the other

so patch stock with cfar for root then flash hellscore and thats you rocking in the free world
[Nexus 4 General] sykopompos:
AFAIK know it doesn't patch the policy at all, it just deletes one line from the init.rc which sets the context of install recovery
[Nexus 4 General] bombadier:
there is the answer from someone that knows more about it as me, I just know that wizardry is performed and stuff then works, still if you want to have root that will still need to happen as hellscore does nothing with that

Edit

so chainfires "stock kernel" has that line removed which is what I understood to be patched
[Nexus 4 General] danieleb89:
Hi I have a problem, I believe it's kernel related, when I'm listening music with headphones and I receive a call it seems that the microphone keeps awake after the end of the call. If I move my finger near it (near the usb) I can hear the noise in the headphone, also when I touch the screen with a fingernail I hear the hit in the headphones

Is it normal? Can you help me?

Thanks
[Nexus 4 General] RASTAVIPER:
4:45 SOt in more than 12 hours out of charger

b65L at smartmax, no other modifications or freezing applications installed
[Nexus 4 General] :
No miscellaneous drain?
[Nexus 4 General] stylazation:
Well that's the status. Running stock kernel came with the ROM flashed by sykopompos. So yeah.
[Nexus 4 General] RASTAVIPER:
As you can see, no..

If I find a way to reduce nlp wakelocks, maybe I could pass 5 hours of SOT.
[Nexus 4 General] stylazation:
Well I'm facing it, as you can see in the post above.
[Nexus 4 General] RASTAVIPER:
But you are using Syko's rom, correct?

I have the official one.
[Nexus 4 General] NooBs7yL3:
yesterday I make a photo with flash, after that it shows me the photo and after some seconds black screen and touch unresponsive, just rebooted it and in the gallery the photo was all black.. b65L without any modification, do you think I have to add some volt?

excuse me for my English

Inviato dal mio Nexus 4
[Nexus 4 General] Rohit02:
Try this.. Before clicking the pic tap the screen once(to focus) and then click the pic.
[Nexus 4 General] hellsgod:
It a known issue that some Nexus 4 rebooting while taking pictures with flash. Some experience this issue with the stock kernel too, so it seems there's an issue in the aosp code. You may not experience this issue with another kernel, or the stock, but its there and you'll find reports about that. Idk if I have some commits which trigger this bug more often, all I can say its not possible for me to track it down.

Try it with the way [MENTION=4851200]Rohit02[/MENTION] mentions above my post :)

hells
[Nexus 4 General] sykopompos:
I don't hide the misc stats. You are still getting misc drain, it is just masked
[Nexus 4 General] RASTAVIPER:
No argue mate.

I use also your Rom as secondary Rom.

But may I ask where is the misc percentage hidden in the stock rom?

Cause even if its included in other batttery categories, it can't be any big percentage anyway.

Unleashed by my Nexus 4
[Nexus 4 General] sykopompos:
They get hidden in user builds but will show up in userdebug/eng builds.

It is just unprocessed stats
[Nexus 4 General] flogi12:
I can confirm this, but i have the stock ROM/kernel and just rooted it.

For me it is reproducable:

Listen to Google Play Music with headphones -> unplug headphones -> make a call -> plug in headphones

Then you hear the bottom mic on the right headphone channel.

I will look into reporting this bug to google.
[Nexus 4 General] stylazation:
So, no getting rid of it?

---------- Post added at 11:00 PM ---------- Previous post was at 10:58 PM ----------

No matter what I will not let go the ROM. Guess trying different kernels I'll get what I want. I fast and long lasting charge.
[Nexus 4 General] hazwheel:
I've had it happen on totally stock lollipop factory image too
[Nexus 4 General] LeoPosas:
It's all about "permissions", I feel that installing Android 5 without wipe internal SD Card, mess up everything.

The only real solution it's wiping the internal SDCard, or delete DCIM folder, after move your old pics.
[Nexus 4 General] vampire36:
[MENTION=647113]hellsgod[/MENTION] : Wanted to post here a fact...in msm even when you set min cpu to 2...the cpu that is online with 1st 1 keeps changing...so with cpu 0 if its cpu1 online...you will see even after minimal load i.e before touching threshold cpu1 goes down and cpu2 is ol...then cpu 3 and then next cpu randomly...basically its not working the way that...cpu 0 and 1 are ol all the time and when both reach max limit that cpu2 enters and so on and so forth...can you confirm this behaviour...which almost defeats the purpose of having 2 cpu online all the time if min cpu is set to 2 :)
[Nexus 4 General] hellsgod:
But two cores are online all the time. It doesn't matter which ones. I've seen this behavior long time ago. It was never cpu0 and cpu1, it changes randomly.

hells
[Nexus 4 General] hazwheel:
I did wipe, had to, was stuck in a bootloop until I did
[Nexus 4 General] vampire36:
Coorect but then the point of plugging in a new core which needs max battery...which kinda is tried to reduce with min core 2 is defeated...with this behaviour don't you think sticking to 1 is then the best option than 2...as it adds no value ?
[Nexus 4 General] Sir_gpm:
Any mirror for the last release, from the links in OP, I can not download from one and can not find it in the other one. Thanks.
[Nexus 4 General] snapdesign:
Try Hellscore updater from playstore https://play.google.com/store/apps/details?id=lb.themike10452.hellscorekernelupdater
[Nexus 4 General] hellsgod:
Hard to say. You've to try both ways and decide if it has an impact on battery life. I had the setup of 2 cores min default a long time ago. The impact wasn't that much, or even noticeable imho. It was also jumping around on cores back then, so I doubt it'll make that much difference :)

hells
[Nexus 4 General] vampire36:
Cool thanx bro :)

Am testing currently with 1 lets see
[Nexus 4 General] twowheeler:
Do we still need to wipe cache and dalvik after flashing a kernel?
[Nexus 4 General] hellsgod:
There was never a need to do that.

hells
[Nexus 4 General] twowheeler:
Lol, well I've been doing that wrong for far to long then :P
[Nexus 4 General] mymeatb18:
Is anyone having issues where wifi is reported in battery that its still on even though WiFi and scanning is off?

I'm on a fresh install of factory image
[Nexus 4 General] hellsgod:
Not kernel related. On hammerhead there are also multiple reports in many threads about that.

hells
[Nexus 4 General] mymeatb18:
[MENTION=647113]hellsgod[/MENTION] didn't think it was kernel related but figured i would get a better response in this thread. Could it possibly be related to cf auto root as I read it has something to do with a boot.IMG?
[Nexus 4 General] hellsgod:
No, I don't think so. CF Autoroot does only modify one line in the ramdisk. I've read about that on devices without root also. Maybe a genberal "L" bug?

hells
[Nexus 4 General] sykopompos:
It is a bug in L that has been there through all the previews. I remember chasing it all through the preview
[Nexus 4 General] mymeatb18:
So are there people that don't have this issue?
[Nexus 4 General] Ginel:
in L 65 default governator is ONDEMAND ????
[Nexus 4 General] svnhvn:
Is this SELinux thing going to permanent? Kinda sucks.
[Nexus 4 General] xenyz:
I'm on another kernel with SuperSU 2.23 and it doesn't seem necessary any longer:

root@mako:/ # daemonsu -v
2.23:SUPERSU
root@mako:/ # getenforce
Enforcing
root@mako:/ #
[Nexus 4 General] vampire36:
Hellsactive !!!
[Nexus 4 General] RASTAVIPER:
Also with Lollipop great stability for undervolting.

Currently at -160

Unleashed by my Nexus 4
[Nexus 4 General] jakobWango:
Is it possible to flash this kernel on the factory stock lollipop ?

How does it work?

of course i know i have to have twrp and root. Maybe not necessarily root though