|
|
| Author |
Message |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| J.M. |
This post is not being displayed .
|
 J.M. World Chat Champion

Joined: 27 Mar 2011 Karma :    
|
 Posted: 16:23 - 20 Nov 2015 Post subject: |
 |
|
Are you comfortable with writing scripts?
Take a look at this:
https://www5.zippyshare.com/v/RvfbVEkr/file.html
Use that as a template. They've done the legwork involving creating a flashable zip. It runs the /tmp/mytweaks.sh file when you flash the zip. This is run by the com/google/android/updater-script
This sh already takes care of changing the build.prop (and actually the DPI).
You can extend the mytweaks.sh to then change what you need to in MixerPaths.xml.
Easiest is appending lines. If that's not possible, next easiest is bundling a modified MixerPaths.xml in the zip and replacing the existing. Most difficult is modifying lines using the script, but you could probably utilise sed or something to do it. ____________________ 2004 R1 & 2018 XSR900 |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| J.M. |
This post is not being displayed .
|
 J.M. World Chat Champion

Joined: 27 Mar 2011 Karma :    
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
 Posted: 13:56 - 22 Nov 2015 Post subject: |
 |
|
I haven't had I look yet but will next week, thanks for your input I'll let you know.  ____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
 Posted: 12:18 - 23 Nov 2015 Post subject: |
 |
|
| J.M. wrote: | Are you comfortable with writing scripts?
Take a look at this:
https://www5.zippyshare.com/v/RvfbVEkr/file.html
Use that as a template. They've done the legwork involving creating a flashable zip. It runs the /tmp/mytweaks.sh file when you flash the zip. This is run by the com/google/android/updater-script
This sh already takes care of changing the build.prop (and actually the DPI).
You can extend the mytweaks.sh to then change what you need to in MixerPaths.xml.
Easiest is appending lines. If that's not possible, next easiest is bundling a modified MixerPaths.xml in the zip and replacing the existing. Most difficult is modifying lines using the script, but you could probably utilise sed or something to do it. |
I've had a look at it,
I'd rather change the lines if possible than replace the file, my thinking being if something else is updated in Mixer Paths I do not want to lose that. However the DPI is most important as not doing it has a negative effect.
Am I right in thinking all that zip will do is add the line in tmp/Misc file to the build.prop?
Thanks,
Chris ____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| J.M. |
This post is not being displayed .
|
 J.M. World Chat Champion

Joined: 27 Mar 2011 Karma :    
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| chris-red |
This post is not being displayed .
|
 chris-red Have you considered a TDM?

Joined: 21 Sep 2005 Karma :   
|
 Posted: 15:25 - 23 Nov 2015 Post subject: |
 |
|
My phone is a OP2, so the script should be fine.
I'm ok with the script until the last section that actually does the work it loses me there.
Do you have an example of how to change a value rather than add it?
Another q
Is everything in the in the META-INF folder generic and not to be worried about?
Cheers,
Chris ____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| J.M. |
This post is not being displayed .
|
 J.M. World Chat Champion

Joined: 27 Mar 2011 Karma :    
|
 Posted: 00:34 - 24 Nov 2015 Post subject: |
 |
|
| Code: | for prop in `cat /tmp/$mod`;do
export newprop=$(echo ${prop} | cut -d '=' -f1)
sed -i "/${newprop}/d" /system/build.prop
echo $prop >> /system/build.prop
done |
1. Loops through each entry in the misc file.
2. Splits on the = sign to key the key of the key=value pair
3. Use sed to remove any line in the build.prop for that key, regardless of value
4. Append the entry from the misc file to the end of build.prop
| Code: | Jordans-Mini:~ jordan$ X=lcd=123
Jordans-Mini:~ jordan$ Y=$(echo ${X} | cut -d '=' -f1)
Jordans-Mini:~ jordan$ echo $Y
lcd
Jordans-Mini:~ jordan$ echo "lcd=123" | sed 's/lcd/test/'
test=123
Jordans-Mini:~ jordan$ echo "lcd=123" | sed '/lcd/d'
|
The META-INF folder is actually where the system looks when flashing the script. However the code in their META-INF folder basically takes care of writing the /system partition to be writable and then invoking the mytweaks.sh script.
So all of your changes can be done in the mytweaks.sh without worry about META-INF.
My real question right now is what happens when you modify a file and try to run it. However, I'm 99% certain that flashing a zip through a custom recovery gives you the ability to skip signature verification, so it shouldn't be an issue. If it is, we can just sign it. It's just more effort. ____________________ 2004 R1 & 2018 XSR900 |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| J.M. |
This post is not being displayed .
|
 J.M. World Chat Champion

Joined: 27 Mar 2011 Karma :    
|
 Posted: 14:44 - 17 Dec 2015 Post subject: |
 |
|
What changes did you make in MixerPaths.xml?
I'm going to put together a flashable zip today because I want to change my DPI and I'm no longer rooted, so I might as well do your change too seeming as you think it's beneficial and we have the same device  ____________________ 2004 R1 & 2018 XSR900 |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 10 years, 303 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|