yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] Vinchenzop:
The "sed" command used in their script is the stream editor command. From your limited explanation in your OP, it seems like this would be what you'd need. If you want, I could probably make a script for you, but I'd need you to pm me exactly which line(s) need changed/what you're trying to accomplish. I'm at work for the next two and a half hours, but I could maybe get to it after work tonight.

I also may need your entire zip if you want me to set up the updater script too. I'm not incredibly experienced in scripting, but I can fake it till I make it :)
[HTC EVO 3D] il Duce:
He sent me a PM with all the lines, so let me know if you get one too. I told him of the magic of a local.prop in /data/local and how you can override any line in the build.prop so long as it doesn't begin with ro. Part of it was a default.xml which of course can be edited and then put in the zip - easy. It's the ro (read-only) lines that I can't help with, since I'm no script maker. I told him freeza knew how, since I used a freeza .sh script on my heroc to get bootsound on aosp ROMs. Cool to see people still being helpful around here :)
[HTC EVO 3D] unCoRrUpTeD:
I have a flashable zip that will edit anything in the build.prop file. At work till midnight, but I'll shoot it your way in the morning.
[HTC EVO 3D] oakieville:
Originally Posted by oakieville

im trying to edit these lines

ro.cdma.home.operator.alpha=sprint

gsm.sim.operator.alpha=sprint

gsm.operator.alpha=sprint

ro.cdma.home.operator.numeric=310120

gsm.sim.operator.numeric=310120

gsm.operator.numeric=310120

ro.product.brand=sprint

ro.product.brand=sprint(YES THERE ARE TWO OF THESE)

and make them this

ro.cdma.home.operator.alpha=MetroPCS

gsm.sim.operator.alpha=MetroPCS

gsm.operator.alpha=MetroPCS

ro.cdma.home.operator.numeric=310027

gsm.sim.operator.numeric=310027

gsm.operator.numeric=310027

ro.product.brand=metropcs

ro.product.brand=metropcs

i also need to edit /system/customize/mns/default.xml

this line

<item name="MMS_Msg_Size_Choose">5M</item>

and make it this

<item name="MMS_Msg_Size_Choose">500k</item>

can you help thanks

Well, for anything in the build prop that DOESN'T start with ro (read only), you can add the lines you want into local.prop in /data/local and it will override the lines in build prop, and since it's in /data it will survive flashovers. You probably need to create the local.prop file.

For the xml you can change those lines in yours and then copy the modded file into a flashable zip.

The duplicate line is unnecessary and you can simply delete it (using an sh).

Unfortunately the only way to modify ro lines in the bp is with the sh method you mentioned and i don't know how to do those. But freeza does, so send a pm to him/her.

Please copy paste this response into the thread so others may benefit from the info.

Peace
[HTC EVO 3D] Vinchenzop:
You know me Luke...always trying to help someone. I'll try to write him the script, then maybe post it here, for others benefit (of knowledge)
[HTC EVO 3D] il Duce:
unCoRrUpTeD always ftw :)
[HTC EVO 3D] Vinchenzop:
This is a .sh file that is run by the updater-script (in the meta folder) when an update.zip is flashed. It uses a shell script to tell the phone to target the build.prop, find the "to be edited" lines and changes them to the new value. I modded the one that was part of the zip linked earlier in the thread for oak's specific needs

#!/sbin/sh
mount system
mount data
sed 's/^ro.cdma.home.operator.numeric.*/ro.cdma.home.operator.numeric=310027/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^ro.cdma.home.operator.alpha.*/ro.cdma.home.operator.alpha=MetroPCS/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^gsm.sim.operator.alpha.*/gsm.sim.operator.alpha=MetroPCS/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^gsm.sim.operator.numeric.*/gsm.sim.operator.numeric=310027/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^gsm.operator.alpha.*/gsm.operator.alpha=MetroPCS/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^gsm.operator.numeric.*/gsm.operator.numeric=310027/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop
sed 's/^ro.product.brand.*/ro.product.brand=metropcs/g' /system/build.prop > /tmp/build.prop
mv /tmp/build.prop /system/build.prop

The following line needs to be added to the updater-script before the system and data are unmounted (usually one of the last couple of lines in the updater-script), to tell the phone to run the *.sh script.

run_program("metropcs.sh");

I'll send you the file you need via pm Oakieville

The "sed" command used in the script is the command to edit the stream. It will find the line(s) with the specified target, and change them to reflect the user's desire
[HTC EVO 3D] unCoRrUpTeD:
There's no need to move the file. Just take that line out and remove all the > tmp/build.prop. It will just edit the build.prop
[HTC EVO 3D] il Duce:
Can you still upload your generic script tonight though? Hoping to use it myself :)
[HTC EVO 3D] Vinchenzop:
Thanks for the tip man. I'm not extremely experienced in scripting. Like I said in a previous post, I just edited a file that was linked earlier in the post to include the "ro.product.brand". Since the first part was done including the move and the > tmp/build.prop setup, I just left it all the same for uniformity and figured it may be easier for inexperienced users to understand what the script is doing, since it more or less explains itself.

Does it look correct though uncorrupt? I don't want to give oak a bad file
[HTC EVO 3D] Vinchenzop:
And uncorrupted, are you referring to just do it this way?

#!/sbin/sh
mount system
mount data
sed 's/^ro.cdma.home.operator.numeric.*/ro.cdma.home.operator.numeric=310027/g' /system/build.prop
sed 's/^ro.cdma.home.operator.alpha.*/ro.cdma.home.operator.alpha=MetroPCS/g' /system/build.prop
sed 's/^gsm.sim.operator.alpha.*/gsm.sim.operator.alpha=MetroPCS/g' /system/build.prop
sed 's/^gsm.sim.operator.numeric.*/gsm.sim.operator.numeric=310027/g' /system/build.prop
sed 's/^gsm.operator.alpha.*/gsm.operator.alpha=MetroPCS/g' /system/build.prop
sed 's/^gsm.operator.numeric.*/gsm.operator.numeric=310027/g' /system/build.prop
sed 's/^ro.product.brand.*/ro.product.brand=metropcs/g' /system/build.prop
[HTC EVO 3D] Vinchenzop:
After relooking at the file, I noticed a few errors in the script...

first...

#!/sbin/sh

This line was changed to

#!/bin/sh

since "sh" is located in /system/bin not "sbin"

Removed the mount system and mount data, since the updater script will already do this.

Upon advice of uncorrupted and viper, removed the

> /tmp/build.prop
mv /tmp/build.prop /system/build.prop

. Viper says using that line would actually wipe the build prop every time it appears in the script.
[HTC EVO 3D] oakieville:
i tried it with the second file vinchenzop sent and it still dont work this is my update-script

ui_print("*************************************************");

ui_print("* *");

ui_print("* *");

ui_print("* HTC EVO 3D *");

ui_print("* METROPCS MMS FIX *");

ui_print("* 2.08.651.2 *");

ui_print("* by -OAKIEVILLE * *");

ui_print("* *");

ui_print("* *");

ui_print("*************************************************");

show_progress(1.000000, 0);

mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");

mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");

ui_print("Metroizing system...");

delete("/system/app/mms.apk");

delete("/system/app/mms.odex");

delete("/system/app/Mms.apk");

delete("/system/app/Mms.odex");

delete("/system/app/MMS.apk");

delete("/system/app/MMS.odex");

package_extract_dir("system", "/system");

ui_print("done...");

ui_print("Metroizing data...");

delete("/data/data/com.android.providers.telephony/databases/telephony.db");

delete_recursive ("/data/data/com.android.mms");

delete("/data/dalvik-cache/system@app@mms.apk@classes.dex");

delete("/data/dalvik-cache/system@app@Mms.apk@classes.dex");

delete("/data/dalvik-cache/system@app@MMS.apk@classes.dex");

package_extract_dir("data", "/data");

run_program("metropcs.sh");

unmount("/system");

unmount("/data");

ui_print("done...");

ui_print("*************************************************");

ui_print("* *");

ui_print("* *");

ui_print("* u've been Metroized *");

ui_print("* oakieville style *");

ui_print("* E.S.O.V *");

ui_print("* *");

ui_print("* *");

ui_print("* *");

ui_print("*************************************************");

set_progress(1.000000);

do you see anything wrong there

also you guy are awesome for all this help
[HTC EVO 3D] unCoRrUpTeD:
What folder is metropcs.sh in. You have to extract the file. I would extract it to /tmp and then chmod it and then run /tmp/metropcs.sh

I'll try and upload my script tonight if I can locate it tonight. Been through a couple if computers and hard drives, but I should have at least one online, too.
[HTC EVO 3D] oakieville:
Metropcs.sh is on the root of my zip
[HTC EVO 3D] unCoRrUpTeD:
FIRST: The location of shell in recovery should be /sbin/sh. But when you are booted into the ROM it will be /system/bin/sh. Recovery and the ROM are 2 seperate partitions and setup.

SECOND: The script linked WILL NOT add the lines you want if it doesn't exist in the build.prop to begin with.

I removed some things from this as it was used for something else. I haven't tested it but all I did was remove some extra things that were in it and renamed some things.

First thing to note is that in the updater-script you need to extract the files. We will get to that in a second. There are 2 files that are used. Create a folder inside the zip called tmp. Inside the tmp folder should be 2 files. The first one is called mytweaks.sh and the second one is called misc.

mytweaks.sh

#!/sbin/sh

bp="/system/build.prop"

busybox mount /system
busybox mount /data

if [ -f /system/build.prop.bak ];
then
rm -rf $bp
cp $bp.bak $bp
else
cp $bp $bp.bak
fi

echo " " >> $bp
echo "# unCoRrUpTeD build.prop editor" >> $bp
echo " " >> $bp

for mod in misc;
do
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
done

misc

dalvik.vm.startheapsize=24m
windowsmgr.max_events_per_sec=60
ro.product.multi_touch_enabled=true
ro.product.max_num_touch=2
keyguard.no_require_sim=true
debug.sf.hw=1
ro.opengles.version=131072
ro.default_usb_mode=2
ro.qualcomm.proprietary_obex=false
ro.display.width=320
ro.display.height=960
ro.telephony.call_ring.delay=1000
ro.mot.eri.losalert.delay=1000

There should be no reason to mess with mytweaks.sh unless "#!/sbin/sh" needs to be changed.

Inside the misc file you can delete what I have posted and add the lines you want to add or modify in the build.prop. Make sure that each setting is on it's own line.

The script should run through each line and if it found a line that has the same text before the "=" it will remove that line and then add the contents of misc to the bottom of the build.prop file. This way, even if the line is not present in the build.prop it will still be added.

Now back to the updater script. You will need to extract the tmp folder so that you can access the files. Add the following lines in the updater-script

updater-script

package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0777, "/tmp/mytweaks.sh");
run_program("/tmp/mytweaks.sh", "mytweak");

Attached is the zip with everything setup.

The script also creates a backup of the original build.prop in /system/build.prop.bak just in case there is a problem.
[HTC EVO 3D] oakieville:
thanks unCoRrUpTeD you are awesome that did the trick i had tried extracting to "tmp", "/tmp" but with other script it didnt work so i will add this to my mms fix thread and give thanks thanks again so much
[HTC EVO 3D] Crowds:
Hi guys;)

you´re discussing something i need:)

i need to add/create this lines into build.prop file

ro.build.display.id=BlackEditionHD
ro.build.version.release=4.0.1 [ICS]BlackEditionHD-v02.0
ro.build.description=BlackEditionHD 6
ro.build.version.incremental=002
ro.product.model=X10i
ro.romupdater.repository=http://dl.dropbox.com/u/10667739/Crowds/

i´ve tried to use the methods discussed here without any success, any idea?

thks for your time
[HTC EVO 3D] il Duce:
have you tried the build prop editor zip that uncorrupted put up?
[HTC EVO 3D] Crowds:
yes. i´ve changed what need to be changed but ended up up a screen 10 times smaller :D like if i´ve putted lcd density around 150 or something. i even put the "normal" values to see if work ok but no go :(
[HTC EVO 3D] Crowds:
i was able to insert the needed lines:

#!/sbin/sh
busybox echo "" >> /system/build.prop
busybox echo "ro.service.swiqi.supported=true" >> /system/build.prop
busybox echo "" >> /system/build.prop
busybox echo "persist.service.swiqi.enable=1" >> /system/build.prop
busybox echo "" >> /system/build.prop

but if i want this files do a search to know if those lines already exist and just want to change

ro.service.swiqi.supported=true

to

ro.service.swiqi.supported=false

?

i need this type of command because in my build.prop would be a incremental change from one rom into another and if i just use the first code it will duplicate and only the previous version would be visible.

thks;)

EDIT: i was able to manage what i need ;)
[HTC EVO 3D] unCoRrUpTeD:
My script should delete the line and then replace it. Since I haven't tried it on this phone, not sure of your problem. I may change something and see what I get.
[HTC EVO 3D] joeykrim:
All of you guys gave me an idea ... so I built an application to allow editing the build.prop file on the phone!

Also, can view the current build.prop and export to email to share/collaborate!

Plus will be improving the tweaks section in the app after I do some thorough research and receive feedback on what people want to see!

Thanks everybody!

I'll start the XDA thread later today ... for now the free version is at SDX and 99 cents on the market:

http://forum.sdx-developers.com/index.php?topic=18572.0
[HTC EVO 3D] nqk:
TWRP doesn't install the zip. I only edited the misc file

http://goo.gl/M3k9c

Pls help

This is the screenshot

http://db.tt/yHWNmkU7
[HTC EVO 3D] kowcop:
the actual file update-binary in the zip is the problem.. just replace it with a current one
[HTC EVO 3D] Near_07:
+1 this is the question that i am looking for, did u sove this mate?
[HTC EVO 3D] HassanMirza01:
[MENTION=6008647]Near_07[/MENTION] [MENTION=2445352]unCoRrUpTeD[/MENTION]

okay guyz,,, one thing for me too please,,, i wanna change android security patch level in 2 files, system/build.prop and product/build.prop

some members have different level too so how can i make a patch which could change all of them to one level ??

write the code for that so i can put it in my patch file as it is... waiting

i wanna run a patch.sh script using updater script not using binary script,,,
[Sony Ericsson XPERIA X10 Mini] Delano.888:
I am really really sorry for such a noob question I don't actually have this phone but my sister does, and she really really really did not find the option "move to sd" in the applications part in settings, where I told her it should be (I use HTC).

I wonder if it is in any way possible, on stock, to move some apps to SD. Like angry birds, that wasn't even movable, while it sure is on my phone.

Thanks!
[Sony Ericsson XPERIA X10 Mini] sunil.s125:
i think moving app to sd card is available from 2.2 and above version of android.

you cant do it on stock rom as it is 2.1 you have to install custom roms (android 2.3) to enable app2sd feature...

if you find this info usefull pls click the thanks button:)
[Sony Ericsson XPERIA X10 Mini] Delano.888:
So basically, not possible without root?
[Sony Ericsson XPERIA X10 Mini] sunil.s125:
Yes as your x10 mini is running 2.1 stock rom...

If you root your phone you can get this feature.....

If you brick your device its not my responsibility or any1 on the xda.....

If you want to root I will guide you through ......
[HTC EVO 3D] didit.here:
i have tried install cwm 5.0.2.0 from fastboot and rom manager but all of em hav failed to install it.... it wont reboot to recovery but to normal reboot....

is anyone have trick to resolve this??
[HTC EVO 3D] SketchyStunts:
Not sure about CWM but here is a version of TWRP for hboot 1.50 http://xdaforums.com/showpost.php?p=16964833&postcount=223

place file in SDK/Tools folder

in ADB type:

adb push recovery.img /sdcard/

adb reboot bootloader

fastboot flash recovery recovery.img

off topic from CWM but did this last night to my 3hr old 3vo & it worked fine.
[HTC EVO 3D] nuggyunlimited:
Same situation
[HTC EVO 3D] didit.here:
i've tried for twrp and it worked nor for cwm :(
[HTC EVO 3D] flonker:
Turn off fastboot under power settings, it's probably installed.
[Epic 4G Apps] caileb:
Yeah that's right crackers.

I'm bustin' out. It's like WoW on your phone. ph33r my level 10 enchantress!!
[Epic 4G Apps] zanderman112:
Star Legends.

Sent from my Samsung Legendary 4G, a Universe UTES Phone, running "two. two"
[Epic 4G Apps] j00manji:
Order and Chaos is pretty sweet too, except for its (super low) monthly fee and the inital cost of the app.
[Desire HD General] lkj-17:
Hi, Guys

I was trying to root the phone by using the hack-ace.cmd and when I get into the final step - updating the ROM from SD card...I accidentally pull out the cable and then the screen stays on the welcome HTC logo forever.

I have tried the volume down button + power or home + power or even re-root the phone. It came back HTC logo again. But the screen will change to something else when I trying to re-root the phone. The process acually successful, but it still report errors in the very end saying "USB connection fail" or "Golden Card fail".

Here are the steps I followed,

Steps for this process:

1. Download the Advanced Ace Hack Kit

2. Extract the files

3. Install Desire HD drivers in /tools/windrivers/

4. Connect the device via USB and turn on USB Debugging in Settings-Applications-Development

5. Run the hack-ace.cmd as Administrator and start the process by typing "1" and "Enter"

6. The process will run and will take about 5-6 minutes to complete

7. Download your ROM of choice, do not extract it, and copy the .zip to the device SD card

8. Rename the file to "update.zip"

9. Power off your device

10. To boot in the bootloader, perform a battery pull, reinstate the battery, and hold the volume down and power buttons

11. Using the volume buttons to navigate, and power button to make selections, boot into Recovery, clear the cache, and select 'install update from sdcard'.

12. When the flashing process has completed, reboot your device and wait about 3-4 minutes for it to boot fully

13. You device is now rooted and has a custom ROM installed

I strongly believe, I forgot to power off the device and go straight to the bootloader and pressed the install update.zip from SD card.

Then I also believe that I used a corrupted ROM from a crap website, which is about 75Mb...Not normal, right?

The screen turn into HTC logo and I waited for 2mins and seen no changes, hence I pulled the cable out....

The final result is that I always get the HTC logo even if I tried to install new ROM file downloaded from a valid site.

Now the problem solved. Love your guys:)
[Desire HD General] veasna.kelly:
No so understand ur indication issue. Firstly are able to get into bootloader mode? If yes, try to flash stock firmware 1.32......from the billiard, but make sure you have stock firmware in your sd card which it should be a Goldcard.
[Desire HD General] lkj-17:
Hello. I am unable to get into any mode. Just the big welcome screen. Please advise further...
[Desire HD General] veasna.kelly:
Use the button combo to get into bootloader mode.
[Desire HD General] lkj-17:
Hello. The button combinations do not responde. I have tried the "Volumn Down + Power" and "Home + Power". No changes at all.
[Desire HD General] veasna.kelly:
Pull out the battery first, put back, Volume down + power button together at the same time.

Let me know if you have followed this so far and could get it working?
[Desire HD General] lkj-17:
That is awesome...This time succeeded.. Then, I press the recovery...The screen goes to black with a red upward triangle... now please tell me the next step..
[Desire HD General] Aamir.Badat:
you have gone into stock recovery not a custom recovery, you could flash stock firmware from boot loader i think but you cant install custom roms untill your get custom recovery + root + eng s off
[Desire HD General] lkj-17:
hi, thank you for your reply. I have downloaded the Radio.img. and I have tried to wipe the data/factory reset, and wipe cache partition. Then I have transferred a valid ROM into SD card and press "Apply sdcard: update.zip" It returned "Signature verification failed, installation aborbed" The phone before was on usb debugging mode and has been rooted successully. Now, I think the original system is died.... Please advise further. Cheers
[Desire HD General] veasna.kelly:
If u r already in custom recovery and s-off applied with fully rooted, u may flash the rom through install zip file option in custom recovery not update zip file. What was ur last running rom? Stock with rooted or.was already flashed from stock to any custom roms? U my tell us more details so that we could be helping u.
[Desire HD General] Reinaldo33897:
Dude here is the rooted stock ATT ROM it includes the radio. Just download place in root of gold card then go to bootloader with power - volume button. it will recognize the PD98IMG file, will ask to load volume up for yes then let it do its thing. Please search and read before you attempt anything with phone. AS ADVICED ON XDA FLASH AT YOUR OWN RISK.

http://www.megaupload.com/?d=Q6YYQFIM

This is the rooted ATT updated ROM with radio do not rename file just place in root of SD (Not in any folder) Good Luck.
[Desire HD General] lkj-17:
Hello, please look at my original post. I have edited and provide more history. Cheers
[Desire HD General] lkj-17:
Hi mate, I am still little bit confused. You said "place in root of gold card" then "do not rename file just place in root of SD"........I am not professional, but I heard the Goldencard before.. Should I just download the PD98IMG.zip then send it to SD card then go to the bootloader see how it goes?
[Desire HD General] veasna.kelly:
Yes, u need to flash PD98IMG.ZIP to have your device working back. If your phone is branded , it will require gold card which u should create it one for your device to recognize it or u may download the above mentioned zip file to ur pc then copy to ur sd card first, and get the phone into bootloader mode to see If it could recognize in case ur phone is not branded, If it is so, then u can save time for not creating goldcard and progress to flash the rom from as card.

Remember no need to rename the file. Ur responding in this thread is on & off, users here could not help u when u urge to get ur phone working back.
[Desire HD General] lkj-17:
Thank you so much. This file got my system back and it works perfectly.
[Desire HD General] prasadz8:
my phone jammed at STEP6 with RUU on my bootloader screen and 'waiting for device' on my WinXP. now I cant do anything!!!

HElp me!!!
[Desire HD General] scifitrekkie:
I am picking you need to install the right HTC driver, there should be one on the hack kit, if not google it, look for version one. Once I installed it

It carried on and rooted without issue.
[Desire HD General] scifitrekkie:
Go to desktop, right click on my computer select manage, select device manager from left locate device driver from the list in middle panel, locate the htc usb it may have a yellow triangle next to it, right click and select update software Try this first before downloading another driver, if this doesn't work then you well have to locate new driver

Hope this helps
[Desire HD General] scifitrekkie:
Here's another option.

http://xdaforums.com/showthread.php?t=1259821

Sent from my Desire HD, running RCMix Runny v3.3