FORUMS
Remove All Ads from XDA

 View Poll Results: What about an app? See post #90 for more infos, let me know what you think!

The hell yeah!
 
89 Vote(s)
80.91%
cool idea, but not really neccessary.
 
19 Vote(s)
17.27%
nope, wouldn't even try..
 
2 Vote(s)
1.82%

[ZIP] Dynamic automated build.prop editing

145 posts
Thanks Meter: 172
 
By kl3, Senior Member on 27th February 2014, 07:23 PM
Post Reply Email Thread
22nd February 2017, 11:30 AM |#181  
Lownita's Avatar
Senior Member
Flag Germany
Thanks Meter: 300
 
More
I want to achieve the following two tasks by flashing a .zip file in recovery:

1. Open the following file:
Code:
/system/etc/permissions/handheld_core_hardware.xml​
Add in the following lines right before the </permissions> closing tag at the end:
Code:
<feature name="android.software.vr.mode" />
<feature name="android.hardware.vr.high_performance" />
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
So how can I do it?
 
 
18th May 2017, 06:54 PM |#182  
KrisM22's Avatar
Senior Member
Flag waves gently lapping on the beach
Thanks Meter: 603
 
More
Before doing this, backup your ROM in TWRP, since if anything goes wrong you won't be able to boot your ROM, and you'll have to boot to TWRP and restore that nandroid.

LineageOS ROM 5-18-2017, opengapps nano 5-18. Magisk(hide)

This is the result of many tests:
Huge thanks for this.
I made a tweak.prop and put copies on both internal storage and SDcard.

I flashed 5._MOD_build_prop.zip which was in a separate folder with nothing else, in internal storage.

I had to put a carriage return(enter) after BACKUP=n as well as the extra one at the end.

It puts the mod at the end of /system/build.prop

This is my tweak.prop
Code:
BACKUP=n

ro.build.fingerprint=motorola/osprey_retus_2gb/osprey_u2:6.0/MPI24.65-25/28:user/release-keys
remember to put an EXTRA line feed/carriage return after BACKUP=n, and at the end.

WORKED!

THANKS!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-05-18-21-30-34.png
Views:	30
Size:	172.0 KB
ID:	4154482  
Attached Files
File Type: txt tweak.txt - [Click for QR Code] (105 Bytes, 4 views)
18th May 2017, 08:07 PM |#183  
KrisM22's Avatar
Senior Member
Flag waves gently lapping on the beach
Thanks Meter: 603
 
More
bad post.
Post Reply Subscribe to Thread

Tags
build.prop, flash, script, tweak, zip

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes