Changelog.....version 0.5.9(a):
Error handling fixed, script properly exits now if anything failes and won't make further changes
More verbose output
Date and tweak.prop version added to backup files to keep track of them
Special characters like / are now escaped and handled correctly by sed
Slight changes in coding style as it's good practise
no idea if what i'm doing is right. i downloaded from git and got a file named tweakprop-3e33ec320f.zip having md5 59fa0bc96e6d92f854c5b473128c5397.
your file has a 'Example_tweak.prop' file inside the zip. should that remain even after placing tweak.prop file on internal or external sdcard? will there be any conflict?1. Place your tweak.prop file on your internal sdcard
2. Flash the zip file
If it didn't work, place the tweak.prop file on you external sdcard and flash again......
Did you get this error shown in last_log?1. The command "zipit a" results in flashable zip that has /a/ -root folder. It doesn't work.
2. I moved manually the contents of /a/ into root within the zip, and then flashed it. Nothing happened to my build.prop, even though I had edited the tweak.prop -file.
Inside tweak.prop I had this:
BACKUP=n
$ro.qc.sdk.audio.fluencetype|none
Any idea where's the problem?
Did you get this error shown in last_log?
/tmp/tweakprop.sh: line 13: can't create /proc/self/fd/: Is a directory
Because I find that the script runs fine if used as update-binary, but not if it's invoked as a shell script, as done in the "a" form. The error is due to the fact that definition of ui_print() writes to "/proc/self/fd/$OUTFD" which gives the error when invoked in a shell.
Sent from my SM-N9005 using XDA Labs
So many questions!So how do I go about getting
persist.audio.fluence.voicecall=false
in my tweak.prop file to actually edit the build.prop? I've tried both that command and
$persist.audio.fluence.voicecall|false
and neither of them work
I have no problem installing the line you wanted. Did you check that the line isn't already in your build.prop?Nothing out of the ordinary in the TWRP terminal.
It works for adding Google Assistant
tweak.prop is in a folder on internal storage
I have the a but it doesn't seem to work. It works if I have my tweak.prop on the device
I have no problem installing the line you wanted. Did you check that the line isn't already in your build.prop?
Sent from my SM-N9005 using XDA Labs
If you attach your tweak.prop I'll try it out on my phone, which also has that property set to true.The voice call line is in my build.prop and always will be as its a toggle. I'm just trying to get the program to change the end of the argument from true to false
If you attach your tweak.prop I'll try it out on my phone, which also has that property set to true.
Sent from my SM-N9005 using XDA Labs
You have to end each line with a line feed. Just add it to the last line and it'll work. :laugh:Sure, thanks so much!
It wouldn't allow me to upload the .prop extension so when you download it, just change the file extension from .txt to .prop
I added a space between the two lines and it still doesn't workYou have to end each line with a line feed. Just add it to the last line and it'll work. :laugh:
Sent from my SM-N9005 using XDA Labs
No, you need a blank line at the end of the file. Each line must finish with a \n (new line).I added a space between the two lines and it still doesn't work
Can you send me an edited file that shows exactly what you mean? Sorry, I'm not following the /n thingNo, you need a blank line at the end of the file. Each line must finish with a \n (new line).
Sent from my SM-N9005 using XDA Labs
Here you go.Can you send me an edited file that shows exactly what you mean? Sorry, I'm not following the /n thing
version 0.1:
- initial release
version 0.2:
- ignore lines in personal file not matching a valid entry pattern (someVAR=someVAL) to not mess up /system/build.prop and support personal structuring inside the file like "# media tweaks #", "# dalvik section #", etc.
- code cleaned up
version 0.2.1:
- typo fixed in line 24 of tweakprop.sh so the if-statement asks for the correct file (thanks to the_pirate_predator)
version 0.3:
- changed the while-loop to get it's input directly from sed, which makes a second buffer file obsolete
version 0.3.5:
- example.txt provided as tweak.prop template
- ignore lines beginning with # or being empty
version 0.4:
- instead of a fixed path, the personal file gets searched on internal storage (file name can be set in the script) so you can put your file anywhere - no more problems with /sdcard/ or /sdcard/0/ on different devices
- personal file must not be empty, otherwise script aborts#
- only override really different entry values in order to prevent "... value of someVAR overridden" spam in recovery log
version 0.4.5:
- fixed last line of personal file being ignored due to deleting all empty lines before
- speed up search for personal file, now looking on internal storage and even on external SD card if nothing was found before (ext. SD neither gets checked if present, nor mounted or unmounted, just trying to search on it silently)
version 0.4.5a:
- same as 0.4.5a, but personal file is inside the zip and gets extracted to /tmp/tweak.prop, no need to have one on the internal storage
version 0.4.6(a):
- output not shown in TWRP fixed, now works as it should
version 0.5:
- code cleanup: everything's now in the update-binary, resulting in much less code and faster execution time
- output to recovery should now work on all device-recovery combinations
version 0.5.1:
- lines beginning with ! will be removed globally
- little code-cleanup
version 0.5.2:
- lines beginning with @ will append the string after | to values of existent entries
- slight changes in code structure
version 0.5.3:
- lines beginning with $ will change the value to the string after | only if the entry already exists, hence $telephony.lteCdmaDevice|1 is nothing but a more explicit approach of telephony.lteCdmaDevice=1, as the first one will only make changes but no new entries
version 0.5.4:
- the build.prop file can now be backed up before editing using a BACKUP= line, see example.txt for details
- tiny bug fixed
version 0.5.4a:
- tweak.prop file (example.txt) is included, no personal file on your device's storage is used. Edit the zip's content before flashing!
version 0.5.9(a):
- Error handling fixed, script properly exits now if anything failes and won't make further changes
- More verbose output
- Date and tweak.prop version added to backup files to keep track of them
- Special characters like / are now escaped and handled correctly by sed
- Slight changes in coding style as it's good practise
# !!!ALWAYS USE NOTEPAD++ WHEN EDITING THIS FILE!!!
#
# ===============================================
# | |
# | Dynamic build.prop Editor |
# | by |
# | klenamenis |
# | |
# ===============================================
#
# For help and support, please visit my thread:
#
# http://forum.xda-developers.com/showthread.php?t=2664332
#
# !!!ALWAYS USE NOTEPAD++ WHEN EDITING THIS FILE!!!
#
#
#==========================================================================================================================
#
# Add your custom build.prop entries to this file to have them automatically
# applied to your current build.prop when flashing a new ROM.
#
# After flashing your ROM flash the tweakprop.zip and edits will be applied.
#
# Eg:
#
# To enable an edit:
#
# ro.sf.lcd_density="400"
#
# To disable an edit, precede the line with a hash symbol (#):
#
# #ro.sf.lcd_density="400"
#
#==========================================================================================================================
#
# !!! EDITS GO BELOW !!!
#
#==========================================================================================================================