An update on my script which will port the ui.xml file from one resolution to another:
It's coming along rather well. Inside the ui.xml file are variable names which if porting manually can be determined if it's based on width or height. However, this can't be done in the script. What I am going to do is have the script find these values then echo that line on to the screen and let the user decide if it should be based on width or height. Once the user makes the decision the script will make it's modification immediately for you.
As for the rest of the values such as h=, w=, width=, height=, y=, x=, and so on, the script will automatically find them and port them for you.
The script will check each value it finds and determine if it is a blank or a zero and if it is, then it will dump that value to /dev/null so the script may continue searching for actual values which need to be focused on.
I am using sed in order to modify these values so to do this successfully, I have to read the original ui.xml file line by line and for each line echo that in to a temporary text file. Then sed will modify that line accordingly within that temporary text file. Once the modification is made, then I will transport that line from that temporary text file to a secondary temp file where it will be stored.
All other lines within the originial ui.xml which does not require to be ported will also be transported over to that secondary temp file.
When the script is finished you will basically have two ui.xml files. One will be the original, and the other will be a copy of that original, only it will be ported to your specified resolution.
Much more work to be done to my script but it's coming along REALLY WELL
Sent from my C525c using Tapatalk