So I have tried editing the build.prop file to let me edit the APN by adding ril.sales_code=LOL and ro.csc.sales_code=LOL to the very end of the file. I am rooted and I changed the read/write and successfully added the lines. But no luck. Has anyone found a way to change the APN on this thing?
Related
Ok, got a bit of a problem here... I need to change the default homepage of the browser in a Rom I'm cooking... that means the homepage you get after a full factory reset, not that you set in the menu.... Please don't tell me how to set it in the browser menu....
A bit of background... I'm using a leaked Rom to build from. It was leaked from a Tracfone "LG-L95G" which is identical in every way to the LG-P999 aka T-Mobile G2X. Everything is working 100%. The only problem left from the "porting" is removing Tracfone as the default browser homepage.
This has turned out to be harder than I expected.
What I have done:
Browser.apk - the xml lists Google as the homepage. The word "tracfone" appears NOWHERE in the entire structure of the decompiled xml or values or even in the smali code.
SystemUI & framework-res - I've seen suggestions the homepage hides here. Can't find anything suggesting a setting to "tracfone"
flexdb - I really thought I had it kicked here. /system/etc/flex.db listed m.tracfone.com as the homepage for T-Mobile US. I changed all occurrences here to about:blank. I have also tried simply copying the flex.db from a P999 itself. Ie, removed ALL references to tracfone service and made it identical to a P999 in every way.
Ran grep -R tracfone * on the entire ROM.
Dug through tons of files by hand looking for any clue.
Unfortunately, even with all of that, do a wipe, open the browser, and you GET M.TRACFONE.COM again!
The word "tracfone" does not appear in build.prop, it does not appear in any init scripts, not even in the kernel scripts! Yet it comes back like Christine...
Does anyone have a clue where I could look next? Or failing that, even some way from an init.d script that I can overwrite the setting myself?
EDIT
Okay, I hate giving myself clues like this, but maybe this will help others (if I'm on the right track)...
Instead of doing a grep on the ROM from my PC, pre-install, I decided to actually hit up the RUNNING copy... so from adb into a Bash prompt on the phone itself, I ran a grep -r tracfone * and got the following result:
Code:
data/data/com.android.browser/databases/browser.db:Web page not availablehttp://m.tracfone.com/
data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml:<string name="homepage">http://m.tracfone.com</string>
data/data/com.lge.providers.flex/databases/flex.db:M77BRW_SETTINGDB_CURRENT_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.comI#
data/data/com.lge.providers.flex/databases/flex.db:=77BRW_SETTINGDB_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.como"
data/data/com.lge.providers.flex/databases/flex.db:=;;DATACOM_ACCOUNT_MMSC_0_Ihttp://mms.tracfone.comhttp://[email protected]
data/data/com.lge.providers.flex/databases/flex.db:;%%DATACOM_ACCOUNT_APN_0_Iwap.tracfonewap.tracfone:?
data/data/com.lge.providers.flex/databases/flex.db:M77BRW_SETTINGDB_CURRENT_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.comI
data/data/com.lge.providers.flex/databases/flex.db:=77BRW_SETTINGDB_HOME_URL_Ihttp://m.tracfone.comhttp://m.tracfone.como
data/data/com.lge.providers.flex/databases/flex.db:=;;DATACOM_ACCOUNT_MMSC_0_Ihttp://mms.tracfone.comhttp://mms.tracfone.com6%
data/data/com.lge.providers.flex/databases/flex.db:;%%DATACOM_ACCOUNT_APN_0_Iwap.tracfonewap.tracfone:$
Which is very odd.... considering that is NOT the content of the actual flex.db that was flashed to the phone. That leads to 1 question: Why isn't the phone respecting the flex.db? I've noticed other edits to the file (such as bookmarks) do not apply either. So it is being ignored at somepoint. FlexProvider.apk maybe? Or is something in the ROM still identifying the phone to T-Mobile as an MVNO device and they're pushing out an OTA flex update?
EDIT 2:
AHA! There's a flex.db *INSIDE* the FlexProvider.apk file! So it *IS* ignoring the one placed in /system/etc/flex/! Editing this should solve it - but I'm going to test test test to make sure.
lotherius said:
Ok, got a bit of a problem here... I need to change the default homepage of the browser in a Rom I'm cooking... that means the homepage you get after a full factory reset, not that you set in the menu.... Please don't tell me how to set it in the browser menu....
Click to expand...
Click to collapse
firstly to say interesting question!!
but I think it it not possible to change programmatically default homepage
this is a system app so will be signed by your provider let us suppose you find homepage location in code (could by result of a script parsing) by modifying source of that apk package how to solve signature problem ?!
if in .db file ...this file is created after flashing as a result of script parsing
not framework-res.apk better browser-res.apk if you have one
ruscan.calin said:
firstly to say interesting question!!
but I think it it not possible to change programmatically default homepage
this is a system app so will be signed by your provider let us suppose you find homepage location in code (could by result of a script parsing) by modifying source of that apk package how to solve signature problem ?!
if in .db file ...this file is created after flashing as a result of script parsing
not framework-res.apk better browser-res.apk if you have one
Click to expand...
Click to collapse
man use a ... editor...I can show you for fifty bucks
I was just curious about this tricky change (from your post) so thinking about Google motto don't be bad finally I have found but should recognize that I am bad at this time
here is solution
Actually, you can use an sqlite editor to change the values in the flex.db file... the problem I was having in the OP is that on an LG phone (maybe others?) the flex.db file is ignored and the one inside FlexProvider is used instead, so you have to edit both. You can add new locales the same way. No need to use a hex editor, as that would be much more difficult.
lotherius said:
Actually, you can use an sqlite editor to change the values in the flex.db file... the problem I was having in the OP is that on an LG phone (maybe others?) the flex.db file is ignored and the one inside FlexProvider is used instead, so you have to edit both. You can add new locales the same way. No need to use a hex editor, as that would be much more difficult.
Click to expand...
Click to collapse
maybe you are right regarding your phone... but also I prepare a custom rom for Alcatel ot-908 also to change default homepage was a problem for me but I did and simply works !
Hi I'm running a Roggers rom for the LG P925 and I'm trying to use a custom apns-conf.xml file but I can't seem to get the rom to read these values.
By default the APNs that are displayed are the Roggers APN.
These APN values are not in the default apns-conf.xml but seem to be set via a apk called Flexprovider.apk. If I replace the default apns-conf.xml with a custom apns-conf.xml and select “reset to default” it always reloads the Roggers APN list.
If I remove the Flexprovider.apk and reset to default then the APN list is blank. Putting the apk back gives the APN list again.
I have also replaced the Flexprovider and apns-conf.xml with ones from a similar rom that gives me the APNs I’m after but still the APN stay blank.
I don’t know much about this (only want I have research on the web) but it look almost to me that there is a switch that is telling this rom not to read the apns-conf.xml file and use the Flexprovider files instead.
Has anyone else seen this before?
After a bit more digging and playing I found the answer, I needed to copy another directory over.
so to get this to work I needed to
Replace the flexprovider in \system\apps
Replace Flex folder in \system\etc
Replace apns-conf.xml in \system\etc
attached in the replacement app, folder and config if anyone else needs it
johnw230873 said:
After a bit more digging and playing I found the answer, I needed to copy another directory over.
so to get this to work I needed to
Replace the flexprovider in \system\apps
Replace Flex folder in \system\etc
Replace apns-conf.xml in \system\etc
attached in the replacement app, folder and config if anyone else needs it
Click to expand...
Click to collapse
A little bit late here....
how did you find out that the apns were set from the flexprovider.apk?
xiltepin said:
A little bit late here....
how did you find out that the apns were set from the flexprovider.apk?
Click to expand...
Click to collapse
he is wrong
u do not need any apk's and ****
just copy/replace the apns-conf.xml and then go to APN and from menu choose : "restore to default"
it will force load your new xml.reboot the phone
Hello guys
I need your help, i'm working on a mod and a friend said me to modify the file: settings.db located in data/data/com.android.providers.settings/databases/settings.db
I only have to change "1" to "0" in the "secure" tab
for this I used Sql Lite browser for windows 7.
So i did it and saved the database, and then with root explorer replaced with the original settings.db but ....
I entered in a boot loop, why ?
I know for sure the "0" is a secure value, because used in a stock old rom
Why bootloop so? Have I to changed permissions to file?
Can please help me to do it without a new bootloop?
Thanks
hello
please i need to know if to change the permissions like that of original file prevent me to enter in a boot loop.
Noone have never edited settings.db file and replaced it?
If i am in wrong section, please, move the thread in the correct one.
I've done it before to modify wifi timeout. Here's the instructions I used:
http://forum.xda-developers.com/showthread.php?t=774507
polobunny said:
I've done it before to modify wifi timeout. Here's the instructions I used:
http://forum.xda-developers.com/showthread.php?t=774507
Click to expand...
Click to collapse
Did you change file permissions?
maRRRco89 said:
hello
please i need to know if to change the permissions like that of original file prevent me to enter in a boot loop.
Noone have never edited settings.db file and replaced it?
If i am in wrong section, please, move the thread in the correct one.
Click to expand...
Click to collapse
I bet you replaced the settings.db file with the edited version using ADB? If so you likely stamped the file with shell as the owner... This might have been the problem if the original file had different permissions / owner.
polobunny said:
I've done it before to modify wifi timeout. Here's the instructions I used:
http://forum.xda-developers.com/showthread.php?t=774507
Click to expand...
Click to collapse
THX
I have to crack the password for 9650108725
as the title states i am wondering if anyone can post their default build.prop file, i kinda messed mine up while tweaking some of the settings
Here is one for the rooted stock rom by Hasoon. Just remove the .txt extension.
OK guys I know this should be easier than I am making it.
So far I have tried several apps, none of which will correctly edit the build prop file and either simply refuse to do it or result in a bootloop.
ES File Explorer;
-Mount /system as RW
-Select build prop
-Edit with ES Text editor
Anything I try to add (ie. Pressing enter does nothing/does not insert a blank line)
If I try to edit a line from true to false or vice versa I get a bootloop. Also I cannot append anything to the lines. I can only erase what is there and only add back the exact same number of characters that I remove from said line.
Solid Explorer;
Same thing as ES
920text editor;
Will allow me to place empty lines and append things longer than what is already there (like changing a value from 60 to 600 for example. Not that I would just ES would not let me add the extra 0 at all. With ES I could only delete the 60 and put some other two digit decimal in its place.)
However same deal bootloop if I change anything.
All I did was add a blank line and a comment line with #
Texdroider DPI was able to modify my DPI however, from 640 to 540.
Back when I had my GS3 on AOSP I could edit the build prop on the fly with ES File Explorer. I could add blank lines and add comments all over to remind myself later or whatnot.
What's the deal?
I am running skydragon 2.0 with the SD kernel.
===========
Sent from my Stumped and Bumped Verizon LG G3
Try RootExplorer. I've no issues changing dpi's with it.
Sent from my VS985 4G
maximusmullivan said:
Try RootExplorer. I've no issues changing dpi's with it.
Sent from my VS985 4G
Click to expand...
Click to collapse
I have tried several well known root explorers and I have been using ES for years. One of them should have worked.
I think something bigger is going on here...
===========
Sent from my Stumped and Bumped Verizon LG G3
The G3 build.prop is just too large a file for most editors, so if you edit and save in one of them the build.prop file is truncated and the Phone will boot-loop.
Sent from my VS985 4G using Tapatalk
trent999 said:
The G3 build.prop is just too large a file for most editors, so if you edit and save in one of them the build.prop file is truncated and the Phone will boot-loop.
Sent from my VS985 4G using Tapatalk
Click to expand...
Click to collapse
So what your saying is my best bet is to make the changes in notepad++ from my computer than just copy the file back.
===========
Sent from my Stumped and Bumped Verizon LG G3
Absolutely. Notepad++ is what I've used Do the edit on your PC, save a backup of the file just-in-case. Make sure when you put the new file in you set permissions to 644.