Stock ROM V20I rooted, cleaned up and updated (fast dormancy fixed)

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
Have a cleaner stock ROM that is best suited for your needs
Install the ROM then flash the optional parts that you want

ROM download (backup made on ClockworkMod Recovery v5.0.2.0):
http://www.mediafire.com/?4a2fnfg8j902b74

Optional parts (flashable ZIPs):
Car Home: http://www.mediafire.com/?4f7hsq05rck3mjz
LG Keyboard: http://www.mediafire.com/?clduteothoarey5
LG PC Suite: http://www.mediafire.com/?1lxa9bz707j5and
LG widgets: http://www.mediafire.com/?445vzwsmiogvj30

In case you're interested, toxicro shared his RingNoFade patch for those wanting to test it.
http://forum.xda-developers.com/showpost.php?p=25024287&postcount=34

NOTE: It started as a personal backup that later I decided to share with everybody. It's not a tweaked/themed ROM. It's a stock ROM with an easier start (already rooted, cleaned up and updated), so you're free to use it as a base to all the changes you like (kernels, tweaks, scripts, themes, etc).



Here is the story of this ROM
Or should I say "backup"?

klaudyuxxx pointed out here that the stock ROM V20I from T-Mobile UK doesn't have the problem of wakelocks caused by fast dormancy.

Then toxicro posted the link to download the *.KDZ of this ROM here.

Huge thanks to both of them!

I installed the stock ROM V20I, made some modifications and then made a backup. Here's what I changed:
- Rooted it;
- Removed all the apps that were put by T-Mobile UK;
- Removed all the apps that can be found on Google Play Store (the only ones I didn't remove were Google Search, Superuser and Voice Search);
- Removed the ringtone, the notification and the alarm sounds that were put by T-Mobile UK (they were excessively high).
- Made Car Home, LG Keyboard, LG PC Suite and LG widgets available to download as optional parts (removed them from the ROM).
- Updated Google Play Store to 3.5.16, Google Search to 1.3.3.247963, Superuser to 3.0.7 (with binary 3.0.3.2) and Voice Search to 2.1.4;

Advantages:
- The superb and well known quality of the camera on stock ROMs;
- If you like Lg's keyboard, it's there. If you like LG's widgets, they're there. LG's launcher is also there;
- CPU sleeps just fine (no wakelocks from fast dormancy);
- All the other things you like on the stock ROMs.

Drawbacks:
- T-Mobile UK boot animation with sound in the very beginning (instead of the mute and coloured LG's animation);
- Couldn't remove T-Mobile UK APN and MMS settings from the list, but I was able to select another APN, having no problem with mobile data. But having two MMS settings seems to be a problem for people who sends and receives MMS.

Enjoy! ;)
 
Last edited:

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
Does anyone know how to remove the APN and MMS settings on this ROM?

As I said, mobile data has no problems with another APN selected, but two MMS settings seems to be a problem.

I tried a different /system/etc/apns-conf.xml, removing telephony *.db files and rebooting, but I think this ROM simply ignores the entries in that file.

Also took a look at the framework-res.apk, but the apns.xml looks the same as on other ROMs.

Am I missing some trick here? Please help! :)

Thanks in advance!
 

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
Keep up the good work...I was waiting for something like this, being to lazy myself to start cooking ROMs.
You are my hero...and Roqu3 - I adopted your kernel over franco's.

:D
 
  • Like
Reactions: Roqu3

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
Check system/etc/flex and remove flex.db or edit it with some sqlite editor
Thanks man!!! Very, very much!

I replaced both files for the ones of brazilian ROM and I have now only the corerct APNs listed and selected. :)

I even made a ZIP to flash during the installation of this backup with the proper brazilian configuration.

http://dl.dropbox.com/u/47227133/Brazil-signed.zip

In case anyone wants the same, just send me the following three files from a stock ROM of your country.

/system/etc/apns-conf.xml
/system/etc/flex/flex.db
/system/etc/flex/flex.xml
The phone won't sleep again if you do this.
 
Last edited:

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
Is it mandatory to edit the files?

In case anyone wants the same, just send me the following three files from a stock ROM of your country.

/system/etc/apns-conf.xml
/system/etc/flex/flex.db
/system/etc/flex/flex.xml
So are you saying the a new APN cannot be created without d!cking around with the files? I'm asking because with V20G (which is Romanian version) I had no problems creating a Canadian APN.
Please keep us updated on your work...as I said, I've been waiting for something like this since I first read about V2oi and the wakelocks fix.
 

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
So are you saying the a new APN cannot be created without d!cking around with the files? I'm asking because with V20G (which is Romanian version) I had no problems creating a Canadian APN.
Please keep us updated on your work...as I said, I've been waiting for something like this since I first read about V2oi and the wakelocks fix.
No, as I've said, I had no problem setting and selecting another APN (because you can select the right one). It's just that you can't remove the T-Mobile entries from the list, meaning that it may be a problem for MMS only (because you can't select a specific MMS setting like you can do with APNs, and I don't know how smart Android is dealing with two different MMS settings).

By the way, you can change the mentioned files by yourself with just a file manager with permission to write on /system partition, like ES File Explorer (enabling the root functionalities of it). I created a ZIP to myself only to make my life easier when installing the backup, eliminating the entries from T-Mobile without having to use a file manager to do it afterwards.

Long story short: I did use the ROM before without this change, only with additional APN and MMS settings and I had no problem with mobile data. It worked just fine!
 
Last edited:
  • Like
Reactions: @ndroidvn

techhead0

Member
Mar 25, 2011
33
13
8
In case anyone wants the same, just send me the following three files from a stock ROM of your country.

/system/etc/apns-conf.xml
/system/etc/flex/flex.db
/system/etc/flex/flex.xml
These are the files I replaced in my custom rom to give me a T-Mobile 2.3.3 ROM base of the 20G Open Europe KDZ. Fixes a few issues if you do it this way.
 

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
These are the files I replaced in my custom rom to give me a T-Mobile 2.3.3 ROM base of the 20G Open Europe KDZ. Fixes a few issues if you do it this way.
Interesting...when I touched the files (replaced the v20i ones with the V20g files) my phone would not boot. I had to recover the ROM.
How do I get rid of the T-Mobile APNs ...and why are they read-only?

/EDIT I can edit the optable.db (to leave only my provider) but you guys did not mention this file. apns-conf.xml can also be trimmed to one provider...flex.xml is still giving me trouble (still looking for the correct codes in flexinfo) and I kind of see what can be edited in flex.db.
If anyone can help sort this mess out, I'd appreciate it :)
Scared of having to recover the phone again if I mess with it.
 
Last edited:
  • Like
Reactions: emem2578

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
Interesting...when I touched the files (replaced the v20i ones with the V20g files) my phone would not boot. I had to recover the ROM.
How do I get rid of the T-Mobile APNs ...and why are they read-only?

/EDIT I can edit the optable.db (to leave only my provider) but as far as flex.db goes, I have no idea what to keep. apns-conf.xml can also be trimmed to one provider...flex.xml is still giving me trouble (still looking for the correct codes).
If anyone can help sort this mess out, I'd appreciate it :)
I installed the flex.* and apns-conf.xml on a clean installation, so I had no problem. I think you had problems because you didn't delete telephony *.db files after changing the files (I suppose you changed the files manually using the phone, so you had data left from previous configuration).
If you can, try the same thing but deleting the *.db files in /data/data/com.android.providers.telephony/databases/
They will be generated again on reboot.
Of course, it's good to have a backup in case it goes wrong again.

By the way, if your flex.xml has FLEX_AUTOPROFILE="true", you will have the problem of fast dormancy (Mine has and I'm suffering from it after disabling mobile data. I suspect that's the case. I'll take a look at the same file of stock T-Mobile setup to see if it's lacking or set as false - which may indicate the way to solve it)
I was wrong saying that.
 
Last edited:
  • Like
Reactions: emem2578

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
IBy the way, if your flex.xml has FLEX_AUTOPROFILE="true", you will have the problem of fast dormancy (Mine has and I'm suffering from it after disabling mobile data. I suspect that's the case. I'll take a look at the same file of stock T-Mobile setup to see if it's lacking or set as false - which may indicate the way to solve it)
WHAT?????? You're killing me...the whole reason I moved to V20i was to get rid of that stupid bug :(
How did you determine it's related to fast dormancy?

Last night my phone was NOT awake at all (unlike V20G) and drained <0.5% /hr


BTW: it is the telephony.db that has the APN list...I see my APN added there. One would think if I edit that db I should get rid of the T-Mobile entries. But then there is the preferred-apn.xml that points to the db....
 
Last edited:

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
WHAT?????? You're killing me...the whole reason I moved to V20i was to get rid of that stupid bug :(
You misunderstood me. The stock V20I on post #1 has a flex.xml without this entry, so I think it won't keep your phone awake as it was promised.

It was my fault to push the brazilian files containing that entry (the reason why I experienced FD bug even on this ROM).
How did you determine it's related to fast dormancy?
For a reason I can't remember :)confused:) I searched for FLEX_AUTOPROFILE and found this page. It's from another LG phone.

And comparing both flex.xml from V20B_00 (Brazil unbranded) and V20I_00 (T-Mobile UK), the latter doesn't have the FLEX_AUTOPROFILE declared.

Don't know if any other ROM without this thing would start to behave fine or not (I don't even know if it's needed to edit also the flex.db file)
Last night my phone was NOT awake at all (unlike V20G) and drained <0.5% /hr
I hope it stay that way! :)
 

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
And comparing both flex.xml from V20B_00 (Brazil unbranded) and V20I_00 (T-Mobile UK), the latter doesn't have the FLEX_AUTOPROFILE declared.

Don't know if any other ROM without this thing would start to behave fine or not (I don't even know if it's needed to edit also the flex.db file)

I hope it stay that way! :)
Thanks for the clarification...for a moment I had shivers down my spine that I'll be in the same boat with wakelocks... :)
If I have any luck editing telephony.db without crashing, I'll be happy. Not that I have any problems at the moment (just annoying that the T-Mobile APN is R/O).

/EDIT I changed my telephony.db on PC and uploaded it to the phone...got only one APN now, and it's mine. Hope it stays that way.
BTW: deleting the telephony.db database only caused the default one to be re-created...not what we needed.
 
Last edited:

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
APN Global Pack (CyanogenMod's APNs - Thanks to them)
Removed - Have to fix behavior on clean installation

APN Brazil Pack (Brazilian V20B_00 APNs)
Removed - Have to fix behavior on clean installation

READ BEFORE INSTALL
If you are flashing one of these packs on the ROM you are currently running, I would recommend you to first delete all content of /data/data/com.android.providers.telephony/detabases/ then reboot to recovery to flash the pack you want.
If you are flashing one of these packs on a clean installation (no /data yet), there's no problem in flashing it.

If you are going to flash the APN Global Pack, containing a huge list, it can take you a fair amount of time to "Reset to default" the APNs list (it took me almost 48 seconds when I tested it), but it works just fine.
However, the best part is that, after applying the APN Global Pack, any apns-conf.xml that you push from another stock ROM to /system/etc/ will be fully understood. So you can have APNs list you want, not forgeting to delete the directory mentioned above before the change.

----------edit----------
Haven't tested if it invokes the problem of fast dormancy (I personally think it's very unlikely, but...)
I'm going to try later
Haven't figured out how to make it work without flex.db (or how to create a flex.db containing all needed APNs)
 
Last edited:

Roqu3

Senior Member
May 9, 2011
256
186
0
You misunderstood me. The stock V20I on post #1 has a flex.xml without this entry, so I think it won't keep your phone awake as it was promised.

It was my fault to push the brazilian files containing that entry (the reason why I experienced FD bug even on this ROM).

For a reason I can't remember :)confused:) I searched for FLEX_AUTOPROFILE and found this page. It's from another LG phone.

And comparing both flex.xml from V20B_00 (Brazil unbranded) and V20I_00 (T-Mobile UK), the latter doesn't have the FLEX_AUTOPROFILE declared.

Don't know if any other ROM without this thing would start to behave fine or not (I don't even know if it's needed to edit also the flex.db file)

I hope it stay that way! :)
Romanian v20h doesnt have that line on flex.xml and that ROM have data tracker-fd problem, so i think it's not that line
 

yuripg1

Senior Member
Oct 9, 2011
289
202
0
29
Canoas, Brazil
Romanian v20h doesnt have that line on flex.xml and that ROM have data tracker-fd problem, so i think it's not that line
Does it have a space before the closing /> ? Could be a parsing problem.

It is somehow related to those files, because when I pushed the files from my stock ROM it started to suffer wakelocks caused by fast dormancy.

----------edit----------
Compared the flex.db files and, despite each one having some some different fields, both have the same values related to fast dormancy (10).
 
Last edited:

Roqu3

Senior Member
May 9, 2011
256
186
0
Does it have a space before the closing /> ? Could be a parsing problem.

It is somehow related to those files, because when I pushed the files from my stock ROM it started to suffer wakelocks caused by fast dormancy.

----------edit----------
Compared the flex.db files and, despite each one having some some different fields, both have the same values related to fast dormancy (10).
yeah but changing that value to 0 or deleting the line had no effect on dtfd-fd bug, you can also delete the whole db file and no effect on that
 

Ipse_Tase

Senior Member
Feb 29, 2012
628
102
73
Happy camper

After a couple of days on V20i with Roq IX (notouch) I can happily reports all's well, good battery life and no FCs.

THANK YOU both yuripg1 and Roqu3 for your work - now the O1 is worth keeping a little longer.

Only issue I have is that Clockworkmod 5.0.2.7 does NOT backup my ext2 partition that I use for apps...I have to back it up manually from Root Explorer.
 
Last edited:
  • Like
Reactions: @ndroidvn

nikola_79

Senior Member
Feb 23, 2012
73
30
0
Skopje
answer for Roq kernel

where can i find the Roq IX kernel? i searched all the forum without luck.. thanks in advance..

you can find it here:
mioptimusone.com/foros/viewtopic.php?f=11&t=684

latest is Kernel-X.
Click on [Descargar Kernel-X] and download latest Roq version.