yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] tonyp:
no more launcher redraws

I got great news. I don't know if someone remembers, but ages ago in my PA ROM I had experimented with hacking the framework and changed some ADJ values to protect the launcher from redrawing.

One shouldn't just change the values (that's what the SuperCharger does), as that would break androids default memory management, thus I re-arrenged the code in the ActivityManagerService to reflect those changes back then.

I just had a look at my old code and figured out a way better and way cleaner method to hook into that.

I've just compiled my testbuild and it seems to work. It's not yet ready, just a test if my theoretical concept works.

I want to introduce an option for that, where you can control the intensity. By the end of next week I will have a bit more time, then I'll expose an option in the settings.

My current idea is to call it "Prevent launcher redraws" with the levels "disabled", "moderate", "needtothinkofsomething" and "extreme".

Currently extreme is hardcoded.

I've uploaded the build to my TheROM folder if anyone wants to try it out. Please give feedback if you notice an improvement.

With extreme it'll be quite hard to get it killed, as only perceptible apps (like playing music) will be more important.

I've switched around between Google+, Boat Browser and the Reader+ app and I didn't manage to kill the launcher :)

Edit: good, opening webpages with loads of images in the browser does kill the launcher. We don't want to have it unkillable (keep in memory), when the system needs the ram it should be possible to get it.

It's a lot cleaner than the hacky way the Supercharger does to accomplish the same goal.

The supercharger hacks into the framework and changes the ADJ values directly - unfortunately these are directly accessed in the ActivityManagerService.java which causes some unwanted sideeffects with the default android memory management.

I'm just modifing the ADJ value at runtime.

Additionally what I really don't like with the Supercharger: It's prioritizing the Launcher above perceptible and even visible apps.

Killing the music player while listening to music or killing visible elements instead of the launcher when the system needs memory? That's insane imo.

To prevent confusion: visible apps are not identical to the foreground app - but could be some elements visible behind an overlay. Would still look bad if those suddenly dissappear.

Edit: I've decided to just brand it as build 11.

Additional changelog: Android 4.3 JLS36G merged

[MENTION=2731014]SREEPRAJAY[/MENTION]: I beat you :p

It's the Stark Icon Pack, together with the new transparent notification drawer option in the "TheROM settings".
[LG Optimus 2x] SREEPRAJAY:
[MENTION=3605868]tonyp[/MENTION]

Man....you are crazy..i wanted to finish my office chores and get on this....and you are like usain bolt with his winning jiggle

Congrats buddy
[LG Optimus 2x] Dru79:
Is there still problem with DPI like in app drawer in Apex Launcher? Can I disable then hybrid engine?
[LG Optimus 2x] pijas82:
hi

build 11 is brutal, thanks Tony P :good:
[LG Optimus 2x] ps1max:
[MENTION=3605868]tonyp[/MENTION] you are insane, your work is brutal and I'm loving every moment of it, by far the best DEV for our phone. No disrespect for the others, its unbelievable the speed you work.
[LG Optimus 2x] yarisd4dturbo:
Ehm...:o on my phone active notification don't work :(, i'had actived it and i'had reboot my phone, but when i receive a sms my display don't turn on with the notification)...sorry for my bad English :(... i'm on build 11 fyi.
[LG Optimus 2x] ckbogner:
+1
[LG Optimus 2x] wucinac:
rom is excellent, thanks tonyp.

I do have one problem. it seems that the phone does not fall into deep sleep.

unfortunately I did not make logcat.

I tried it with a cleen install, but it did not help.

last picture is cleen install.
[LG Optimus 2x] apokit:
battery drain

I think that there is battery drain with build 10(no deep sleep?).I just flashed build 11 and i ''ll see if the problem remains.....
[LG Optimus 2x] proyatzu:
[MENTION=3605868]tonyp[/MENTION] are you sure the active display doesnt drain battery? I suspect of it, not sure because i didnt install build 10 or 11 yet im still on 09 but almost to flash 11, Just basing on other reports. I'm saying this because I had a brutal battery drain days ago and it was caused from nils notification lockscreen, it keeped the phone awake draining a lot of battery, I had to unistall it for this. So If active display does the same kind of drain I'm not sure it is worth it man..
[LG Optimus 2x] ensboarder:
I jumped from build 8 to 10 and for sure it drains more battery... Thanks
[LG Optimus 2x] aftermath85:
also try stealth, shaded icons or squareHD ^____^

plus transparent theme, or holo glass ;)

thanks to tonyp & pengus77
[LG Optimus 2x] SREEPRAJAY:
OLD BOOT LOADER VERSION Build11 for TheROM JB 4.3 is up

Thanks to [MENTION=3605868]tonyp[/MENTION]

Thanks to [MENTION=4419327]spyrosk[/MENTION]

TheROM OLD BOOTLOADER VERSION BUILD#11

Thanks guys....enjoy now
[LG Optimus 2x] fvioleiro:
Try to reflash the kernel. Maybe solve a bit of the problem! Solved for me
[LG Optimus 2x] LeandroFarias:
On my phone battery drain is normal, I'm finding even better ...

Thanks for your great work ... :good:

Edit: build 11
[LG Optimus 2x] tonyp:
I am not sure who much you're following the Android behind the scence news, with Cyanogen Inc. becoming a commercial company and so on.

But I think this article is worth a read:

https://plus.google.com/106978520009932034644/posts/L8FJkrcahPs

This might even explain some more, why CM dropped support on us.

Non-neon doesn't pass Googles CTS anymore I think, as Google doesn't have support for non-neon gapps since Android 4.2.

The P990 is still at place 16(!) of the most actively used CM devices, way ahead of e.g. the Galaxy S2 Ace.

As you know I've joined the PA team a while ago - maybe it's time to revive my old AOSPA build :confused:

First of all: By default the hybrid engine is deactivated, all apps are running with the stock dpi of 240.

But even if you are using a custom density (personally I am e.g. using 213 as default one) you can still use the per app dpi feature to set apps which are causing trouble to 240.

Oh no, I am sure the Active Display DOES drain battery. :cool:

Be especially careful with the pocket mode, it might prevent deep sleep. Haven't fully tested it myself, yet.

This isn't the feature you want to activate on a 3 day hiking trip.

It's interesting when you're at home, sitting on your desk, with a charger in reach. Or maybe while driving in the car.

Then it can save you a lot of time, as you see incoming notifications with a glance and don't need to press the powerkey.

I will look into making a QuickSettings tile to quickly enable and disable the feature after next week.
[LG Optimus 2x] sandroccomp:
Same here. Any suggestions?
[LG Optimus 2x] LeandroFarias:
[MENTION=3605868]tonyp[/MENTION], Galaxy S2 is described as i9100, just saying... :o
[LG Optimus 2x] daas88:
Man, I can't keep up with you :p

By the way, my phone has no signal (or getting only one bar) pretty often, what would be my best bet: switch baseband or RIL?
[LG Optimus 2x] tonyp:
Hmm.. works here without problems.

Does it work for anyone else?

Deep sleep does work for me, just checked the time-in-state.

Do you have the Active Display pocket mode enabled?

Didn't try it, yet - but as it uses the proximity sensor this might keep the phone awake.

Haha nice, I didn't see the i9100 line, only the galaxys2 one further below. Already wondered :D

I would try to change the BB, this is what helped lots of others.
[LG Optimus 2x] wucinac:
I chek all as is in the wideo you post.

Soo its beter to unchek the pocket mode?
[LG Optimus 2x] darkrulerz:
After having used the CM10.1 version for some time I finally had enough time to test the CM10.2 version today

Right after the install and reinstalling all my apps I found out there was a huge battery drain

First thing I did was use BetterBatteryStats to figure out what the potential cause was...

The app creating an abnormal amount of wakeups is "com.android.phone"

This wasn't so helpful so I figured I would look at the logcat output to see if it contained some error related to com.android.phone

I didn't find anything related.

I did however find out that a certain entry was being spammed multiple times per second

D/CMStats (26862): Next sync attempt in : -383224 hours

Now I don't see a direct connection between CMStats and com.android.phone but it does seem like something that would drain the battery

Final piece of information, I've read that Android 4.3 on a Nexus 4 had a bug that would crash the telephony part if the user used a virtual network provider...not sure if that bug is still present and influences our phone, but I do use a virtual network provider (Source for more info on Google Code)

Attached you'll see the Alarm view of BetterBatteryStats

I hope anyone has any ideas on what the cause and, even better, the solution is

Thanks in advance guys ;)
[LG Optimus 2x] apokit:
There is big battery drain and with build 11even with active notifications off.I think that the phone doesn"t go in deep sleep......
[LG Optimus 2x] LeandroFarias:
Don´t work for me too...
[LG Optimus 2x] tonyp:
I will do a clean build - maybe the merge of the new Android version has messed with something.

Will be up later this evening.
[LG Optimus 2x] yarisd4dturbo:
You are great man :)... I'll wait this new version ;)

Inviato dal mio LG-P990 con Tapatalk 4
[LG Optimus 2x] darkrulerz:
I've just tried a much older version (Build 7) and encountered the same battery drain.

I don't think a clean build will solve my draining issues.

I'm really curious if people with a "real" network provider also have the enormous amount of com.android.phone wakeups
[LG Optimus 2x] daas88:
Okay, I'm checking your BB thread, since I haven't done that in a while.

According to the phone information, I have "LGP990AT-00-V30a-EUR-XXX-NOV-30-2012+0", so I guess I should try V30B next?
[LG Optimus 2x] torstenconrad:
Already posted, but figured this will show the drain a bit more from someone who also did a full wipe with Active Display pocket mode disabled.

Someting prevents deep sleep. 17% drain in like 2 hours and just 2 mins of screen on. That's all I can tell lol
[LG Optimus 2x] pijas82:
hi

:crying: good night, always follow the work of Tony P.

the latter is fluid build but at the same time a disgrace.

today I made dinner on the back cover of the phone.

just being 5 min on the internet gets very hot.

the rest is very good.

I do not have many complaints of battery, they still find myself doing cycles,

but I'm afraid of burning the cellphone.

greetings
[LG Optimus 2x] tonyp:
Edit: Okay, I do notice a higher drain now, I will monitor it over the next few days.

With build 08/09 my battery has been great.

Might be due to the merge from AOSP or Active Display (which is a brand new feature which no-one tested for a steady while, yet).

So an older build is probably the the better choice for now.

This is one of the reasons for my question at the end of this post.

You'll get all the new features almost instantly (I usually just flash, do a quick check if it works, push) - but you can run into multiple errors I didn't notice before pushing the build.

I'll get everything sorted when I'll finally have some more free time again.

Edit2: Pushed build 13, which does remove the Active Display again.

Phone lay next to me for half an hour, 28min deep sleep. Check.

This will probably be the last build until the end of next week.

Changelog build 12:

cleaned some commits, especially Active Display

It works as expected for me - hopefully now for everyone else as well.

Additionally it's a "make clean" build, I assume the android version update broke something here in the last one.

fixed some logspamming

I've discovered a minor bug in the Processor settings in the Performance menu.

Thus I disabled it - to compensate it I included an updated PerformanceControl app again, which gots some decent additions compared to the old version

I removed ViPER FX again as I discovered you can just get it from the PlayStore

Don't worry, it'll be in English once you install it

restructured the TheROM Settings. I've got a PM from someone who wanted to translate it to other languages, this makes it easier.

You can download the strings here

After translating the file move it into the correct subfolder for your language and post it here, then I'll include it.

Changelog build 13:

removed Active Display for now

(fixes the battery drain)

Anyways, now you've seen how development usually works.

I shared most of my builds here with you, without properly testing the added features like I usually do.

Lots of people complained about the low update rate of my ROMs (esp. the CM10.1 t-builds) - well this is the reason.

Usually I only push well-tested updates. When I see a new feature I add it to my testbuilds (at least if I like how it's implemented, I do never merge features which are hacked-together). Then play with it for at least 2 days, then decide to keep or get rid of it. When I decide to keep it I make sure it doesn't break anything. Then I launch a private testbuild to testers, once it's been confirmed it gets out in the open.

Sure, this means you'll get new features at a later stage but on the other hand you could count on my ROMs being suitable to be a daily driver.

I had been working for two month on my CM10.1 builds before even posting about it at xda - as I didn't want to push it before I'm not happy with it myself. After I've been sure that it's been ready to be a daily driver I opened up the thread.

My question is: which approach do you prefer in general?
[LG Optimus 2x] SamReciter:
Hey there - as you have some stable builds - like the t-builds - i really would take out the pressure on this one.

As written in the first post - take it or leave it - and all the experienced guys here - the flashoholics - like me =) - don't matter a phase of slightly bugged versions. Also you have always the possibility to go back to previous version in minutes.

And for the more stable lovers - who however want to be realatively actual - they can wait 2 days until they flash the newest version - and with the current post rate here - they should have the possibility to consider if the version is stable enough for them.

For my opinion - go on like you did with this rom.

Greets...
[LG Optimus 2x] daas88:
I'm already doing the spanish translation of the xml you posted.

And I prefer the more open approach, if someone wants a daily driver there are several stable roms out there.
[LG Optimus 2x] angel_boulevard:
yes.im too.my phone not deep sleep.battery drain terrible
[LG Optimus 2x] tonyp:
battery drain fix

I pushed build 13 which fixes the battery drain. Couldn't leave the ROM at such a state.

Got a drain of 2.1% according to BBS.

It's indeed been the Active Display - I've removed it for now, something fishy is going on there.

Will look into it and bring it back later (the feature is too good to leave it out, I already miss it hehe)
[LG Optimus 2x] echo_21:
incorrect MD5 for build 13

Hi tonyp, thanks a lot! Would you like to check the .md5sum file? Here the zip's md5 88fa25fcfa081d74e19b3ca551de1ff3 does not match that of the .md5sum c1950e3309a3fb61179ba3e032504d2e.

BTW: TWRP only recognizes the extension ".md5" but not ".md5sum". Is there any reason that you upload it as .md5sum?

Best regards echo_21
[LG Optimus 2x] ca229872:
With build 13..... Does bluetooth work?...Bluetooth does not work in my car. I can not sync contacts

thanks!!
[LG Optimus 2x] yarisd4dturbo:
I prefer, in general, stable version :)

Inviato dal mio LG-P990 con Tapatalk 4
[LG Optimus 2x] Beorn1:
I agree with those who favor more frequent builds even if they are less stable, and as SamReciter said, those who want something more stable can use a more stable rom or simply wait a few days before flashing.

I also think that it takes off some pressure from you (tonyp) in this way, not having to test everything yourself so much, but maybe you feel different about it.
[LG Optimus 2x] trocopassu:
+1!...

And Thanks for Your Hard Work tonyp.

Best Regards!...

Edit: Hummm...there is v13, of course!...

LG O2x[P990]@TapaTalk4HD v4.1.3
[LG Optimus 2x] zaldax:
The same here,how do you fix it?:rolleyes:
[LG Optimus 2x] packyman:
I installed "cm-10.2-20130824-UNOFFICIAL-p990.zip" first and then "therom"
[LG Optimus 2x] calatemaze:
It happens the same to me. When choosing language settings are FC. Tried everyway I know. Updated cm-10.2-20130824.2-UNOFFICIAL-p990.zip, didn't work. Wiped everything and didn't work either.
[LG Optimus 2x] PYCON:
Settings often crashes... Entering in Memory... always ! :crying:
[LG Optimus 2x] tonyp:
One more post of a FC without a logcat and I'm going to close the thread again.

All features I need and use are fully working, I would fix the FCs for you in my rom because they are probably easy derps, but those posts are just annoying.

Even worse, the storage FC is covered twice in the OP, and you know my policy about talking about known bugs: don't do it unless you provide new insights.

Oh and before I forget, the OP contains two roms, so you really should mention which one you're talking about.
[LG Optimus 2x] calatemaze:
Ok, but how do I do a logcat if I'm not able to do anything except emergency calls?
[LG Optimus 2x] tonyp:
Edit: Okay, I finally got what you meant thanks to [MENTION=4487475]MisjudgedTwat[/MENTION] trying it with a full wipe for me.

We're on it.
[LG Optimus 2x] mandoku:
Yes u see, very confusing :)

I talk about 10.2, what change from 24 to current? :)

Rly nice rom btw
[LG Optimus 2x] SREEPRAJAY:
​

This is for the first one

DOWNLOAD FOR THE OLD BOOTLOADER ONLY

Thanks: [MENTION=3605868]tonyp[/MENTION] (the wizard of this ROM) [MENTION=4419327]spyrosk[/MENTION] (convertor tool) [MENTION=3783116]pengus77[/MENTION] (KK126)
[LG Optimus 2x] tonyp:
Read the OP?!
[LG Optimus 2x] :
I've tried that, but adb is not enabled by default, and there is no way to activate it since we cannot bypass settings crash.

Am i missing a way to activate adb at first boot?

By the way, i replaced settings.apk from the cm10.2 rom into cm10.2 therom, and it works fine, although missing some things...

Thanks.
[LG Optimus 2x] SREEPRAJAY:
just flash a working JB 4.2.2 ROM (working for you), enable the developers settings and enable the adb and then flash this ROM...and you should get the logcat....normally

cause the new security settings for adb can be selected for a PC and it can recognise your PC after that...even on other ROM

am i right [MENTION=3605868]tonyp[/MENTION] ?
[LG Optimus 2x] ensboarder:
Thanks
[LG Optimus 2x] Selage:
First of all, thanks for the upload!

What recovery are you using? Since I get stuck in a bootloop using CMW. :confused: (I have no problems with flashing back to T-Build4.)

>Greeting.
[LG Optimus 2x] mind_challenge:
TWRP 2.6.0.0

No bootloop, everything flashed just fine
[LG Optimus 2x] Selage:
Changed from CMW to TWRP, didn't help. I'll try a full wipe (and maybe consider going to new bootloader) when I have the time. Thanks anyways :)
[LG Optimus 2x] Custom40:
Can't understand what I'm seeing right now... Messages uses 60% more than screen? Hmm
[LG Optimus 2x] mind_challenge:
Oh, you didn't do full wipe? I forgot to mention that I did it. It should help.
[LG Optimus 2x] tonyp:
Okay, sorry about the two bugs in TheROM CM10.2 - especially the one happening after you do a full wipe.

I have pushed a small bugfixing update online: cm-10.2-TheROM-20130826.2-tonyp.zip

I just did some quick workarounds which certainly isn't perfect, but fixes the FCs for now:

1.) I removed the SetupWizard.apk. The PreferenceDrawer Settings app is causing problems with it. I will fix it properly when I find the time, but the Wizard isn't really needed anyways.

You will just have to manually go to Settings - Accounts and add your Google account now after a full wipe.

2.) I have removed the two SDCards from the storage menu (it now only contains the option to use the external SD as default one).

I tried some quick fixes but they didn't work and I really gtg, so this will do for now. Again I will properly fix it when I get more time.

If you absolutely need access to the menu for something (although I don't know what this could be) you should be able to use the Settings.apk from my CM10.2 build for that.

Now it should be stable. If you get FCs when using the QuickSettings Ribbons this is due to CM - the feature is new and fresh and contains a couple bugs here and there. They will work them out for sure.

That's the only problem currently with CM10.2 - the nightlies are bound to break something every now and then.

At CM10.1 they had stables / release candidates which I could sync to, where I knew everything was properly tested and not rushed out.

Yes, sorry about that, this makes things harder. I had edited my post above, but probably after you read it.

I just didn't fully understand the problem at first. You shouldn't have bugs with this build anymore.
[LG Optimus 2x] thorstenhirsch:
If bluetooth phone calls would work in unstable builds, I had no problems to try bleeding edge features that get merged and removed on a daily basis due to battery drain. But since it is not working I long for the next 10.2 stable.
[LG Optimus 2x] Octalus:
bluetooth

I know that the problem with bluetooth in combination with calls is a huge problem - maybe you could again try to integrate it to TheRom in near future because its essential for a lot of us with bluetooth in cars - as long as this isnt working we have to stay with 10.1 and miss the whole cool new stuff you post here :/

would be very nice if you focus it again. :)

thanks alot
[LG Optimus 2x] alok.tari:
Tonyp, does the above important fix exists in Build 13 as well, or have you reverted it back too?

And in my opinion, I think you can continue with releasing the builds as you are doing now, even if they are unstable. You will get faster feedback from us this way. And those who are uncomfortable can always fallback to the immediate previous stable build of this ROM, or can stay on other stable ROM builds.
[LG Optimus 2x] pirisca:
It is nice for newbies to know what is the last "good". I seen people installing like crazies and complaining after. Having a way to mark the as "good" would help people to download and flash according to their expectations

Good Work tonyp and rest of team !!!!
[LG Optimus 2x] calatemaze:
I also prefer more frequent updates, though I agree that you could do like Pengus on the kernel thread: what's the last stable build and then the nightlies. So that people can choose on their own, and also don't complain too much about minor bugs and things like that.:good:
[LG Optimus 2x] SREEPRAJAY:
OLD BOOT LOADER VERSION Build13 for TheROM JB 4.3 is up

Thanks to [MENTION=3605868]tonyp[/MENTION]

Here we go:

THEROM BUILD#13 OLD BOOTLOADER VERSION

Enjoy guys
[LG Optimus 2x] ca229872:
Hi trocopassu. I´ve a question....Bluetooth does not work in my car. I can not sync contacts. Are these problems solved in build 13?

Thanks
[LG Optimus 2x] trocopassu:
Look, I can pair with the PC but can not get files ... weird!

I'll try to pair with the device of the car to know if it works or not ... then I report.
[LG Optimus 2x] renmazuo274:
I don't mind infrequent updates, as long as they're stable. I did choose LG after all, and managed to get by their good track record in phone updates on the stock rom before switching to CM.
[LG Optimus 2x] pirisca:
xiii...renmazuo274 you made me remember how often LG spoiled us with ROMs... ICS was a killer :victory:

I think everyone still remember that piece of software...lol
[LG Optimus 2x] trocopassu:
Opssss ... unfortunately the sound does not work!

Pairs quickly and perfectly ... and this device is only for speaking / listening, not sync contacts;