Keep build.prop setting after ROM upgrade - Nexus 4 Q&A, Help & Troubleshooting

Is it possible to keep some of my build.prop settings intact after I upgrade my ROM? I'm on CM10.1 and I like my WiFi scan interval higher than 15 seconds so it doesn't scan so often. Its just annoying to have to keep updating it when I upgrade
Sent from my Nexus 4 using Tapatalk 2

I guess you can just backup/restore build.prop file manually?
Haven't seen an app that does it...
Btw, any other interesting tweaks that you use?

Add a new line with "build.prop" to 70-gapps.sh in /system/addon.d

That's the only tweak I use. I found that you can create a build file in data/local.prop and whatever settings you put in here will be kept during upgrades and they overwrite the settings in the build.prop

Related

APN settting in startup file: is it possible?

I don't know if this is possible but it would be nice to have APN settings in the startup file. Have to re-set it everytime I try another build.
you can always add your APN settings in the apns-conf.xml located in system/etc/ then when you change builds, just copy it and put in int the new build in root/system/etc and it will be copied automatically to the specified location.
Thanks. I open the existing file but don't see all info there. Do you have an example?
I'm interested in this also. I find myself using a lot of Android builds and I always have to make some modification to the APN settings. What are you using to access that location? Droid Explorer?
Sorry, I've been lazy with learning how to modify the system files using ADB or Droid Explorer... I'll get up to speed soon enough.

[Q] Permanent minfree settings on Cyanogen 6

I've been using AutoKiller Memory Optimizer to change the minfree settings on my phone on bootup. However, I'd like to lose the app and make the changes myself. I tried following the instructions here, http://forum.xda-developers.com/showpost.php?p=5465806&postcount=40, but when I edit and re-save the files in my system/etc/init.d/ directory with the echo command, nothing happens. I even tried simply creating my own file and putting it in the init.d folder like this post suggests, http://forum.xda-developers.com/showpost.php?p=5466169&postcount=44, but it still doesn't work.
My only guess is that I'm looking in the wrong location? Where can I find a working init-script on my phone to edit? I'm using the last Cyanogenmod 6 nightly that was developed for the HTC Magic.
Thanks in advance.

New ROM :: 407 OFFICIAL GB ROM - OLLEH - Remove default APNs

since my carrier uses a lot of different apn addresses depending on which contract you have, I always must manually edit the preset ones to my needs. I noticed that in this ROM by default you cannot edit, delete or even just view said default APNs (you still can add them to your liking though, so no real harm done).
while fiddling through the build.prop file in this new gingerbread rom I happened to stumble upon these two lines:
ro.build.OEM_PRESET_APN_LOCK=1
ro.build.OEM_PRESET_APN_HIDE=1
I changed the values to 0 and now the APN entries are fully editable and removable. just a quick reminder of the correct procedure:
- have a rooted streak
- install a root-enabled file explorer (root explorer works fine)
- mount system as R/W
- goto /system and edit file build.prop
- search for the above lines and change 1 to 0 (duh!)
- save, exit, reboot, enjoy
note: I found multiple instances of those two lines throughout the file. check thoroughly and change them all!
Awesome. I'm finding it.
Gonna give a try....
Btw, how to show up sim toolkit on apps drawer.
Thanks
Sent from my PC36100 using xda premium

dpi ? whats the deal?

can someone take the time to school a noob on DPI? I change the dpi n my ro.build and I see no difference... pretty sure I am misunderstanding some part of it.
From my understanding you change the build.prop... save and exit the text editor (must be rooted) and restart the device... I've been using that method on my galaxy nexus and now nexus 7 and it works perfect... think of lowing the dpi as in tricking the OS into thinking you have a bigger screen than you actually have... thus making everything smaller and also triggering tablet mode
No I've been there and done this too. If you open and save the file... then open it back up, the changes are reverted. Yea I was rooted and was using root explorer. Once I flashed a custom rom, I could change it no problem. Maybe something with stock rom or something else not allowing the file to change, even though the folder is R/W and all that.
The file keeps reverting back after you save it.
Sent from my Nexus 7 using xda premium
player911 said:
No I've been there and done this too. If you open and save the file... then open it back up, the changes are reverted. Yea I was rooted and was using root explorer. Once I flashed a custom rom, I could change it no problem. Maybe something with stock rom or something else not allowing the file to change, even though the folder is R/W and all that.
The file keeps reverting back after you save it.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
It should work if the folder is R/W and you save and exit. Maybe you should try es Flie Explorer?
I was rushed while posting that and I believe I was completely unclear. I did edit the you Build.prop, I am on a custom rom sgt7 and the dpi and build.prop and DPI was 213 I think maybe 216, I changed it to 180 and I saw no difference at all. this is possibly because there are other modifications to the Rom that aren't dpi dependent or something.

4g connection lose at every reboot

Please with every modded rom this problem.it switch at 3g at every reboot.is there any solution simple? I deleted lteconfig in system folder but no effect.thanks
myabc said:
Please with every modded rom this problem.it switch at 3g at every reboot.is there any solution simple? I deleted lteconfig in system folder but no effect.thanks
Click to expand...
Click to collapse
I don't know what ROM your on but here's the list of things you can change:
In build prop, make the following changes
- to.product.locale.region= your region (eg US)
- to.build.target_operator= your carrier (eg vzw, att_us)
- ro.telephony.default_network= change from 9 to 11 or 13 if 11 doesn't work
Open hidden menu *#*#4636#*#*
- phone information
- select lte/gsm/cdma preferred
Hello!
So i just tried this method, but nothing really happens. When i change the ro.telephony.default_network to 11 and reboot the phone, it goes back to 9.
So what i've tried:
1. Edit the file on the phone with ES File Manager app -> for some reason it doesn't lets me to add bigger number than 9, and when i add something like 8, it says that i'm not able to rewrite the file.
2. Build.prop editor App from googleplaystore -> I can edit that to 11 or 13, i gave the root perm for the app to edit. After it's edited, the build.prop file is edited too, but after a restart ro.telephony.default_network goes back to 9.
3. Edit the file on PC and rewrite. -> I can rewrite the file, but after the restart it goes back to 9
Can you please give me some advices?
I have tried all of these. None could make it permenent. Build prop is saved but everytime I reboot I have to select preferred network to LTE again. Im on optimusflex rom now. And I have tried it on most of other custom roms too. None could make it.
Sent from my LG-D802 using XDA Free mobile app
kemenydani said:
Hello!
So i just tried this method, but nothing really happens. When i change the ro.telephony.default_network to 11 and reboot the phone, it goes back to 9.
So what i've tried:
1. Edit the file on the phone with ES File Manager app -> for some reason it doesn't lets me to add bigger number than 9, and when i add something like 8, it says that i'm not able to rewrite the file.
2. Build.prop editor App from googleplaystore -> I can edit that to 11 or 13, i gave the root perm for the app to edit. After it's edited, the build.prop file is edited too, but after a restart ro.telephony.default_network goes back to 9.
3. Edit the file on PC and rewrite. -> I can rewrite the file, but after the restart it goes back to 9
Can you please give me some advices?
Click to expand...
Click to collapse
What country are you in? And are you using g3 rom? If you are use 12 instead of 11 or 13
Art Vanderlay said:
What country are you in? And are you using g3 rom? If you are use 12 instead of 11 or 13
Click to expand...
Click to collapse
I am in Hungary and i'm using the latest G2 rom rooted
kemenydani said:
I am in Hungary and i'm using the latest G2 rom rooted
Click to expand...
Click to collapse
Try changing ro.build.target_country= from com to EU.
Its really annoying, I used to get this problem too. The networks are hardcoded into each regions rom. If you still can't get it, this might make your life easier https://play.google.com/store/apps/...oggle&pcampaignid=APPU_kW7kU8nUDYbtoASNlYKQBA
So you can easily switch it back after booting

Categories

Resources