Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (Verizon) Galaxy Nexus - All Things Root

Like Tree1Likes
  • 1 Post By scary alien

test: Reply
 
LinkBack Thread Tools
Old January 12th, 2013, 12:52 AM   #1 (permalink)
Senior Member
Thread Author (OP)
 
p-bOt's Avatar
 
Join Date: Jul 2011
Posts: 907
 
Device(s): Nexus 5 CM11 Nexus 7 (2013) CM11
Carrier: Not Provided

Thanks: 215
Thanked 262 Times in 146 Posts
Default Is it possible to add lines to your build prop via updater script?

This may sound weird, but it would serve me a great purpose. I flash the newest CM Nightly about every 3 or 4 days. So I made my own flashable zip file that adds a few init.d tweaks and flashes a framework-res that I modded to get rid of that stupid CRT animation and shortens the "hold back to kill" timeout to an actual usable amount of time instead of having to hold the back button for 5 seconds lol. Along with delete some system apps that I have no need for...and add a modded sysctl file for battery life. And I do this all by flashing one file.

But I usually have to add a couple build.prop tweaks that I like to use by hand. I was wondering if anyone knew if it was possible to add build.prop lines via the updater script? Then I would truly be able to flash the new versions of CM Nightlies with absolute ease

any help is appreciated

Advertisements
__________________
THEMER/MODDER
HIT THAT "THANKS" BUTTON! I WOULD DO IT FOR YOU!!
Donate Link! Donate if you want to give back to the community!
p-bOt is offline  
Reply With Quote
sponsored links
Old January 13th, 2013, 10:03 AM   #2 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 17,291
 
Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 32,638
Thanked 14,892 Times in 7,289 Posts
Default

Quote:
Originally Posted by p-bOt View Post
This may sound weird, but it would serve me a great purpose. I flash the newest CM Nightly about every 3 or 4 days. So I made my own flashable zip file that adds a few init.d tweaks and flashes a framework-res that I modded to get rid of that stupid CRT animation and shortens the "hold back to kill" timeout to an actual usable amount of time instead of having to hold the back button for 5 seconds lol. Along with delete some system apps that I have no need for...and add a modded sysctl file for battery life. And I do this all by flashing one file.

But I usually have to add a couple build.prop tweaks that I like to use by hand. I was wondering if anyone knew if it was possible to add build.prop lines via the updater script? Then I would truly be able to flash the new versions of CM Nightlies with absolute ease

any help is appreciated
A: Yes .

Create a script file (say, "upd-build-prop.sh") that will do the updates (something like: echo new-prop=value >> /system/build.prop) and place it in the top-level of your update.zip file.

Then, in your updater-script, extract your script and then use run_program function to execute that script:

Quote:
assert (package_extract_file ("upd-build-prop.sh", "/cache/upd-build-prop.sh"));
run_program ("/sbin/sh", "/cache/upd-build-prop.sh");
Note that you'll likely have to mount /system if you haven't already in order to update the /system/build.prop file.

Hope that helps!
iowabowtech likes this.
scary alien is online now  
Reply With Quote
The Following 2 Users Say Thank You to scary alien For This Useful Post:
iowabowtech (January 13th, 2013), teddyearp (January 13th, 2013)
Old January 13th, 2013, 11:24 AM   #3 (permalink)
Senior Member
Thread Author (OP)
 
p-bOt's Avatar
 
Join Date: Jul 2011
Posts: 907
 
Device(s): Nexus 5 CM11 Nexus 7 (2013) CM11
Carrier: Not Provided

Thanks: 215
Thanked 262 Times in 146 Posts
Default

Thank you very much! I was actually already onto this but you clarified it for me. I appreciate it :-)
p-bOt is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (Verizon) Galaxy Nexus - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.