1. Download the #1 Android News App:   EarlyBird - News for Android
    Dismiss Notice

[Verizon] Is it possible to add lines to your build prop via updater script?

Last Updated:

  1. p-bOt

    p-bOt Well-Known Member

    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 :)

  2. scary alien

    scary alien not really so scary Moderator

    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:

    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! :)
    teddyearp and iowabowtech like this.
  3. p-bOt

    p-bOt Well-Known Member

    Thank you very much! I was actually already onto this but you clarified it for me. I appreciate it :)

Share This Page