Related
I am just about to release my new barebones build with a lot of new features but one thing is killing me. I cannot get superuser to work anymore with the latest build and the latest kernel. Rogue tools won't overclock without SU working and that just totall kills the speed of my build =(. The build is based off scoot's release 5 and I am using the latest kernel with and without the module update SU is unaffected. Everything else works though.
What have you changed from the build i sent you that might effect it? Does it work for you with the original build? Things to check are the sysinit.rc, make sure it calls userinit.sh on startup, and also check your userinit.sh in the /bin directory and make sure the su fix is still present in the file Otherwise, try opening the super user app and downloading the latest su binary file, if it fails to install then you most likely have partition permission issues.
I did edit userinit to enable the odex script. I am gonna check that now.
Ok I am pretty sure that was it. how do I add this line to userinit to have it be proper then? /system/bin/odex.sh
aceoyame said:
Ok I am pretty sure that was it. how do I add this line to userinit to have it be proper then? /system/bin/odex.sh
Click to expand...
Click to collapse
You'd need to put it in sysinit.rc like this :
service odex /system/bin/odex.sh
So put that line right at the end then? Or is there a special format it has to go in. Sorry, I have just never had to edit this particular file before lol.
aceoyame said:
So put that line right at the end then? Or is there a special format it has to go in. Sorry, I have just never had to edit this particular file before lol.
Click to expand...
Click to collapse
At the end is fine, you will see some similar lines in there, you may want to add some options such as :
console
user root
oneshot
I don't know what the structure of the odex script is so i don't know which options you will need to get it to run properly but these are the most likely, just experiment and see
I've always put it at the end, after the su fix just as "/system/bin/odex.sh" and nothing else. What does service do? will it run it continuously or just with different permissions?
I would say its more likely that something's gone wrong while you edited userinit.sh, and now it can't be executed.
did you edit it in windows? you may have /n/r line endings now instead of /n
if you did it in linux it may be a permissions problem
fixed! I used the userinit from my old barebones. Something changed in the update. The two looked totally different.
GUIDE: Getting some old features back
INTRO: For those who dislike some of the changes/features made to roms as they are developed and are asking how to get them back, here is a how to. It is usually a simple matter of pushing the old files from previous builds into your current rom. Keep in mind that the devs are building a rom as they see fit. As with any rom that you don't build yourself, there will always be things you want to change.
-If there is a bug, post it in the thread.
-If there is a change that you personally want, then do it yourself. Don't expect the dev, and everyone else who uses the rom, to accommodate your specific needs/wants. You may not have noticed, but you aren't the only one using the rom!
NOTE: This guide and code are meant for the virtuous sense rom, but the concept is universal. For example, if you are using some rom and the new version is posted with, say the amazon mp3 apk removed, and you want it back, refrain from cluttering up the dev's thread with a request to have it back. This is both selfish and a waste of posting space. If you are to the point of installing custom roms, you should first be able to type basic adb/terminal emulator commands to copy/delete files. In this case you would extract the amazon mp3 apk from an old .zip and push/install it into your current one. Now wasn't that easier than waiting and hoping that someone will do it for you?
NOW TO THE GUIDE:
Auto brightness mod - To revert from the auto brightness 'mod', which is far too sensitive, to the original, simply pull the services.jar and framework-res.apk from a rom before the patch, and push them to your framework folder. I've attached them to the second post for ease.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/framework/services.jar
adb shell rm /system/framework/framework-res.apk
adb push [directory of saved file]\services.jar /system/framework
adb push [directory of saved file]\framework-res.apk /system/framework
Reboot
-------------------
Keyboard mapping - The www/com key has been changed to a tab, which is good, as it was non-functional before. However the user keys have been changed too. I've modified a file which keeps the www/com key as TAB but also keeps the user keys as user assignable keys. Also attached to second post.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/usr/keylayout/vision-keypad.kl
adb push [directory of saved file]\vision-keypad.kl /system/usr/keylayout
Reboot
-------------------
Rosie auto-rotate - If you want to keep it so that rosie will only be in portrait mode with the keyboard closed, but dont want to turn off auto-rotate throughout all apps, just push the old rosie. Also attached to second post.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/app/com.htc.launcher.apk
adb push [directory of saved file]\com.htc.launcher.apk /system/app
Reboot
Attachments:
You need to rename "services.jar.zip" back to "services.jar" and "vision-keypad.kl.zip" back to "vision-keypad.kl". This is because the forum wont let you upload .kl and .jar extensions as attachments.
Thanks so much for this. I'll definitely be pushing the auto-brightness mod back, and I may do the keyboard, too (might let others do that one first, or see if rmk40/eViL release an update with that first).
Thanks for this!
Sent from my HTC Vision using Tapatalk
Couldn't make the quick key to work.. maybe I might be doing it wrong but I couldn't make it work.. ill keep trying
sent from t-mobile g2 using HTC sense
android602 said:
Couldn't make the quick key to work.. maybe I might be doing it wrong but I couldn't make it work.. ill keep trying
sent from t-mobile g2 using HTC sense
Click to expand...
Click to collapse
What version of virtuous are you running? Did you rename it and remove the .zip from the end?
I'm using that exact file w/ no issues
calendar/lockscreen
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
Lockscreen - no.
Calendar - maybe, haven't tried. However I did find these 2 threads by typing in the words "htc calendar" in the search box (which means you didn't search very hard )
http://forum.xda-developers.com/showthread.php?t=795222
http://forum.xda-developers.com/showthread.php?t=723761]
They may help you.
Good idea with this thread. It's impossible for us to please everyone and this is absolutely the most constructive way to deal with everyone's personal preferences. There is one key consideration for everyone. If we make other changes to the frameworks which you DO want, pushing files from this thread which have not been updated with said features will eliminate those changes as well. Point is, the concept here is good but it needs to be maintained.
Also, the intention with Virtuous is to provide options. The ROM isn't finalized so ROM Manager isn't populated with all the variants it will eventually have. Case in point, we had to re-base on the new Egypt RUU and are in the process of re-applying all our changes. If we had a variety of options, we would have to redo all of those as well. Once we're in a more "final" state, you'll start to see a lot more choices officially supported with the ROM.
The keyboard mod you have here will probably just become part of Virtuous 0.8.0, by the way. I had not realized our replacement eliminated the quick key customizations (oversight).
Chances are I'm not doing it right, as I'm only about 2% oriented in using ADB, but after following the code, pushing the files, etc, the phone boots up with perpetual errors and crashes. (Phone cannot be launched, etc.)
The process in which I did it was:
Wipe the G2, install v0.7.0, update to 0.7.4, remain in recovery and use adb and followed the code you provided above. (Everything says it works, in terms of mounting, pushing, etc.)
I've also tried it where I reboot after updating, let the phone launch fully, then go back to recovery to push the mod files. Same errors occur.
The only two mods I was interested in were the auto-brightness one and the orientation one.
Any idea what I did wrong?
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
You could possibly try pushing the lockscreen apk from SuperVillainZ.
NANDROID 1ST THOUGH!!!!!
Sent from my HTC Vision using XDA App
fox-orian said:
Chances are I'm not doing it right, as I'm only about 2% oriented in using ADB, but after following the code, pushing the files, etc, the phone boots up with perpetual errors and crashes. (Phone cannot be launched, etc.)
The process in which I did it was:
Wipe the G2, install v0.7.0, update to 0.7.4, remain in recovery and use adb and followed the code you provided above. (Everything says it works, in terms of mounting, pushing, etc.)
I've also tried it where I reboot after updating, let the phone launch fully, then go back to recovery to push the mod files. Same errors occur.
The only two mods I was interested in were the auto-brightness one and the orientation one.
Any idea what I did wrong?
Click to expand...
Click to collapse
Well from what you are saying, it sounds like the methods are correct. Did you make sure to remove the ".zip" from the end of the services.jar.zip file?
Can this be modified to restore ".com/www" to G2's?
the1wingedangel said:
Well from what you are saying, it sounds like the methods are correct. Did you make sure to remove the ".zip" from the end of the services.jar.zip file?
Click to expand...
Click to collapse
Yup, and I have "always show extension" enabled in folder options, so I definitely got rid of the .zip.
Maybe I'll fiddle with it a little more, see if I missed something.
All right, here's the error I get after removing the files for the brightness mod, and pushing the ones you attached in:
"The application Google Services Framework (process com.google.process.gapps) has stopped unexpectedly."
Basically the launcher is completely inaccessible, the phone remains perpetually in the settings screen because I suppose it's the only thing that it can load without the launcher. It also can't get a signal except for wi-fi, "Mobile Networks" in the settings remains unchecked, and it can't be turned on. Hahaha pretty severe for a rather simple mod.
Here's a full step-by-step of exactly what I did:
Wipe User Data, Wipe Cache
Install virtuous v0.7.0, then v0.7.4 from zip
Remain in Recovery
Open command prompt Change directory to ADB (c:\AndroidSDK\tools)
Entered the following codes one at a time:
- adb shell mount /system (mounts)
- adb shell rm /system/framework/services.jar (file removed)
- adb shell rm /system/framework/framework-res.apk (file removed)
- adb push C:\services.jar /system/framework (success 0.250s)
- adb push C:\framework-res.apk /system/framework (success 1.80s)
(I just have the files on C temporarily for the ease of it.)
Reboot
Then the errors hit once I unlock the screen.
Heheh, I can't really think of any other way to approach it. Hmmmm.
Any idea what I'd need to put back for video codecs? I'm running CM 6.1 but it doesn't run streaming videos from the NHL Gamecenter unlike the stock rom. I'm assuming its a codec issue and was wondering what I'd want to replace.
fox-orian said:
All right, here's the error I get after removing the files for the brightness mod, and pushing the ones you attached in:
"The application Google Services Framework (process com.google.process.gapps) has stopped unexpectedly."
Basically the launcher is completely inaccessible, the phone remains perpetually in the settings screen because I suppose it's the only thing that it can load without the launcher. It also can't get a signal except for wi-fi, "Mobile Networks" in the settings remains unchecked, and it can't be turned on. Hahaha pretty severe for a rather simple mod.
Here's a full step-by-step of exactly what I did:
Wipe User Data, Wipe Cache
Install virtuous v0.7.0, then v0.7.4 from zip
Remain in Recovery
Open command prompt Change directory to ADB (c:\AndroidSDK\tools)
Entered the following codes one at a time:
- adb shell mount /system (mounts)
- adb shell rm /system/framework/services.jar (file removed)
- adb shell rm /system/framework/framework-res.apk (file removed)
- adb push C:\services.jar /system/framework (success 0.250s)
- adb push C:\framework-res.apk /system/framework (success 1.80s)
(I just have the files on C temporarily for the ease of it.)
Reboot
Then the errors hit once I unlock the screen.
Heheh, I can't really think of any other way to approach it. Hmmmm.
Click to expand...
Click to collapse
Weird, I have no idea why that won't work for you. Anyway, there is another way around it. Just open up your patch.zip (from 0.7.0 to 0.7.4), go to the framework folder, and remove the services.jar and framework-res.apk from it. Then go about the wipe/install of both zips like normal. That way the patch zip will no longer replace those two files. Anything that you don't want changed in a patch zip can just removed from it.
Snap Jackel Pop said:
Any idea what I'd need to put back for video codecs? I'm running CM 6.1 but it doesn't run streaming videos from the NHL Gamecenter unlike the stock rom. I'm assuming its a codec issue and was wondering what I'd want to replace.
Click to expand...
Click to collapse
Sorry cant help on that one, I haven't run a CM rom since like 1 or 2.0 haha. You may try to see if others are having that problem, or if it is a known issue with the 6.1 and streaming videos. Is it only that site? Maybe a flash player version problem?
rmk40 said:
Good idea with this thread. It's impossible for us to please everyone and this is absolutely the most constructive way to deal with everyone's personal preferences. There is one key consideration for everyone. If we make other changes to the frameworks which you DO want, pushing files from this thread which have not been updated with said features will eliminate those changes as well. Point is, the concept here is good but it needs to be maintained.
Also, the intention with Virtuous is to provide options. The ROM isn't finalized so ROM Manager isn't populated with all the variants it will eventually have. Case in point, we had to re-base on the new Egypt RUU and are in the process of re-applying all our changes. If we had a variety of options, we would have to redo all of those as well. Once we're in a more "final" state, you'll start to see a lot more choices officially supported with the ROM.
The keyboard mod you have here will probably just become part of Virtuous 0.8.0, by the way. I had not realized our replacement eliminated the quick key customizations (oversight).
Click to expand...
Click to collapse
Yea, I assumed it would be out-dated soon anyway, as changes are made to your roms. I'll adjust it to keep up if the need is there though. It was just a couple of the more simple alterations that I made, and after seeing so many people cluttering up your thread with posts about them, I decided to post this.
Mostly, though, I just wanted to remind people that many simple issues/personal needs (like an app being removed from a rom, or a small change to one or two apps) can be solved with a little bit of thought and some adb knowledge - both of which should be present if you are working with a rooted phone in the first place!
the1wingedangel said:
many simple issues/personal needs can be solved with a little bit of thought and some adb knowledge - both of which should be present if you are working with a rooted phone in the first place!
Click to expand...
Click to collapse
I really cant emphasise this enough!
Sent from my sweet G2
Do you know if there is anyone to return the power down message. I remember before there being and option to restart the phone, hibernate, power off, or reboot into recovery. I liked having that. Is there anyway to return this feature?
Sent from my sweet G2
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
ddotpatel said:
You could possibly try pushing the lockscreen apk from SuperVillainZ.
NANDROID 1ST THOUGH!!!!!
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
by chance, did anyone try this? if not, I will try it in a few...
how does one go about accessing these?
Easily customizable if you use a text editor(scripts located in /system/etc/init.d)
I have no idea how to do this, but I do have a text editor
there is a java script in the folder /system/etc/init.d/ that conrols the profiles and screen off battery saver. if you dont know how to find it on your own, you wont be able to edit the java probably.
dkdude36 said:
there is a java script in the folder /system/etc/init.d/ that conrols the profiles and screen off battery saver. if you dont know how to find it on your own, you wont be able to edit the java probably.
Click to expand...
Click to collapse
have to start somewhere, and seems like a reasonable place. How do i find that /system folder?
alaman68 said:
have to start somewhere, and seems like a reasonable place. How do i find that /system folder?
Click to expand...
Click to collapse
Hah I like your attitude. So, do you have adb set up, or would you prefer to use root explorer?
Would like to follow this as well
Lurker for a long time...
just rooted and am using this rom as well.
would like to follow along if you dont mind.
I myself do not know what 'dab' is so root explorer would probably be my way to go.
My bad adb not dab. Stupid iPad spell check.
Adb is a command system through which your phone communicates to the computer through USB. It is very useful for hacking especially in recovery mode. It's not that hard to set up, but you can always just use root explorer and make your life easier.
adb
Ok, is see what you mean.
I was looking for the adb_shell.zip or whatever was needed to get that setup last night but couldnt find it (now i didnt look probably everywhere).
some more information about how i am set up now is:
kernel version: 2.6.32.17-gee557fd [email protected] #15
build: calkulin's evio 2 rom v1.8
software: 3.70.651.1
pri: 1.90_003
hardware version: 3
I used unrevoked to root. I have nand back up transfered to pc, retrieved my MSL, I tried the undervolt to 150 with no success(maybe did it wrong).
I also flashed to Ava_Froyo just to have a look see and then cam back to Calkulin.
dkdude36 said:
Adb is a command system through which your phone communicates to the computer through USB. It is very useful for hacking especially in recovery mode. It's not that hard to set up, but you can always just use root explorer and make your life easier.
Click to expand...
Click to collapse
After reading your thread on rooting, I will go with whatever method you recommend, so I will get root explorer if think that is the easiest way. Totally agree with you about learning as much as possible.
i don't have adb set up
don't worry I haven't forgot about you guys! I'm busy right now but I'll post tomorrow.
abdabbs said:
Ok, is see what you mean.
I was looking for the adb_shell.zip or whatever was needed to get that setup last night but couldnt find it (now i didnt look probably everywhere).
some more information about how i am set up now is:
kernel version: 2.6.32.17-gee557fd [email protected] #15
build: calkulin's evio 2 rom v1.8
software: 3.70.651.1
pri: 1.90_003
hardware version: 3
I used unrevoked to root. I have nand back up transfered to pc, retrieved my MSL, I tried the undervolt to 150 with no success(maybe did it wrong).
I also flashed to Ava_Froyo just to have a look see and then cam back to Calkulin.
Click to expand...
Click to collapse
By what measure are you determining success? Specifically what happened or didn't happen after you flashed that file.
I will say this, if your experience is anything like mine with #15 kernel, good luck getting anything to be executed from the init.d folder. Changing kernels fixed this for me - well, actually i reverted to the an older version of the rom which i had flashed with a diff kernel. But alas, a diff kernel in 1.80 will also fix the problem (or did for me when testing the update)
To the OP, what are you trying to accomplish?
gpz1100 said:
By what measure are you determining success? Specifically what happened or didn't happen after you flashed that file.
I will say this, if your experience is anything like mine with #15 kernel, good luck getting anything to be executed from the init.d folder. Changing kernels fixed this for me - well, actually i reverted to the an older version of the rom which i had flashed with a diff kernel. But alas, a diff kernel in 1.80 will also fix the problem (or did for me when testing the update)
To the OP, what are you trying to accomplish?
Click to expand...
Click to collapse
1. learn how to get to the script
2. Change overclocking without setcpu
I use an NA kernel.
thought this would be a fun project instead of another download / copy / wipe / flash / restore
ok, so baisically, go to root explorer. go to the folder system, in that the folder etc, and in that the folder init.d. init.d holds all the clock and volt hacks calkulin has implimented. hit mount r/w (top right) and then long press on 01cpufreq_screenstate_scaling in init.d. choose edit text or something like that. all of the changable values are at the top. calkulin did that on purpose to make it easy to edit. change some values, and reboot. good luck.
dkdude36 said:
ok, so baisically, go to root explorer. go to the folder system, in that the folder etc, and in that the folder init.d. init.d holds all the clock and volt hacks calkulin has implimented. hit mount r/w (top right) and then long press on 01cpufreq_screenstate_scaling in init.d. choose edit text or something like that. all of the changable values are at the top. calkulin did that on purpose to make it easy to edit. change some values, and reboot. good luck.
Click to expand...
Click to collapse
Dumb question, but if I botch this (failed C++ in college) and it doesn't work, I can wipe / reflash and try again?
The script is already established. You're simply changing the contents of several key variables.
alaman68 said:
Dumb question, but if I botch this (failed C++ in college) and it doesn't work, I can wipe / reflash and try again?
Click to expand...
Click to collapse
yep. root explorer is even smart enough to create a .bak backup file in the same directory for you.
Hi, I am currently using stock JB with a couple of mods/extras i managed to link in via the kitchen. But frustratingly so I cannot change the boot image and are hoping with appreciation someone in here can direct me. So far I have tried everything I am capable of. That is from within the kitchen enabling the function which is suppose to allow you to change your boot animation. Although it gives you the tick and creates a different directory for your boot animation this still doesn't work. I have tried replacing hTC_boot_one.zip file but does not work. Whenever i do replace or alter that file the boot starts as normal with white htc and then goes to black with android with a back light rolling from side to side, like kit in night rider. I also have tried flashing Mattmans-Boot-Animation which uses aroma installer. Still didnt work and as far as I know it just added the file in system/customize/resource/. There appears to be a command file preventing any changes internally in stock. Really appreciate and hope someone can help. Thanks in advance......happy new years.....:good:
Did you root the rom ?
You need root acces to write in the system directory's ......
You need SU
Mr Hofs said:
Did you root the rom ?
You need root acces to write in the system directory's ......
Click to expand...
Click to collapse
Yeah rooted with su access to system files.....cheers!
basically is just stock jb base.....
veroby said:
Hi, I am currently using stock JB with a couple of mods/extras i managed to link in via the kitchen. But frustratingly so I cannot change the boot image and are hoping with appreciation someone in here can direct me. So far I have tried everything I am capable of. That is from within the kitchen enabling the function which is suppose to allow you to change your boot animation. Although it gives you the tick and creates a different directory for your boot animation this still doesn't work. I have tried replacing hTC_boot_one.zip file but does not work. Whenever i do replace or alter that file the boot starts as normal with white htc and then goes to black with android with a back light rolling from side to side, like kit in night rider. I also have tried flashing Mattmans-Boot-Animation which uses aroma installer. Still didnt work and as far as I know it just added the file in system/customize/resource/. There appears to be a command file preventing any changes internally in stock. Really appreciate and hope someone can help. Thanks in advance......happy new years.....:good:
Click to expand...
Click to collapse
Dude. I think you need root your rom to get custom boot (-:
There're a lot ready-to-go tools for booting animation
Good luck !
allv.newbie said:
Dude. I think you need root your rom to get custom boot (-:
There're a lot ready-to-go tools for booting animation
Good luck !
Click to expand...
Click to collapse
its rooooooooooteeeeeeeed thx..
veroby said:
its rooooooooooteeeeeeeed thx..
Click to expand...
Click to collapse
lol
https://play.google.com/store/apps/details?id=com.simproductions.bachanger&hl=it I think it can works
fez vrasta said:
lol
https://play.google.com/store/apps/details?id=com.simproductions.bachanger&hl=it I think it can works
Click to expand...
Click to collapse
hey thx, but it did not work. I cant even find where it has placed the file. If it managed to. Man im p-i-s-s-e-d. not your fault its just on my tits. cheers....
allv.newbie said:
Dude. I think you need root your rom to get custom boot (-:
There're a lot ready-to-go tools for booting animation
Good luck !
Click to expand...
Click to collapse
Its rooooooooooooooooooteeeeeeeeeeeeeeeeeeeeed cheers....
Its my own custom rom but this little simple thing i cannot get around. I can only semis that within stock base there's a system file preventing any change...
Have you mounted system as rw? In root explorer you just press the button, not sure on other apps, and have you set the right permissions? rw-r--r-- to match everything else in system/customize/resource.
maXimus One X
evo1rs said:
Have you mounted system as rw? In root explorer you just press the button, not sure on other apps, and have you set the right permissions? rw-r--r-- to match everything else in system/customize/resource.
maXimus One X
Click to expand...
Click to collapse
Thanks for your help. Not sure what you mean by mount the system as rw. The permissions - yes always changed permissions when trying to replace the hTC_bootup_one.zip file. Cheers...
veroby said:
Thanks for your help. Not sure what you mean by mount the system as rw. The permissions - yes always changed permissions when trying to replace the hTC_bootup_one.zip file. Cheers...
Click to expand...
Click to collapse
If system is mounted as ro (read only) you can't change anything in the folder, this is the default setting I think and it needs to be mounted as rw to allow changes.
You could try to rename something in the system directory and if it doesn't actually change then you need to change it, or check if the filesize of the boot animation you replace changes.
Like I said, rootexplorer app changes it with a tap of the button, not sure what else to use
maXimus One X
evo1rs said:
If system is mounted as ro (read only) you can't change anything in the folder, this is the default setting I think and it needs to be mounted as rw to allow changes.
You could try to rename something in the system directory and if it doesn't actually change then you need to change it, or check if the filesize of the boot animation you replace changes.
Like I said, rootexplorer app changes it with a tap of the button, not sure what else to use
maXimus One X
Click to expand...
Click to collapse
Thanks again. No problem renaming any file within system so I guess it is mounted as rw. As to file size, i have tried different file sizes and identical file sizes to the hTC_boot_one.zip file. I have even tried using the same Zip file and just replacing with different images. Making sure to end up with the same values. Nothing seems to work.
Strange, I had rooted stock Rom and it worked fine, maybe you have the wrong format of files or haven't zipped as store only, no compression. I assume it is a sense one x Rom?
Maybe try this one I made for the Rom I use
http://forum.xda-developers.com/showthread.php?p=31136343#post31136343
maXimus One X
evo1rs said:
Strange, I had rooted stock Rom and it worked fine, maybe you have the wrong format of files or haven't zipped as store only, no compression. I assume it is a sense one x Rom?
Maybe try this one I made for the Rom I use
http://forum.xda-developers.com/showthread.php?p=31136343#post31136343
maXimus One X
Click to expand...
Click to collapse
Lol - hadnt planned on having maximus on my own custom rom but will give it a try tomorrow. Let you know...cheers again...:good:
Yeah, just to test formats and setup of course!
maXimus One X
Hello fellas.
Back in the day, if I wanted to keep my dpi setting of 280 after flashing a new nightly (talking CM now), I just made a local.prop with the modified line and put it in /data.
Since, I think, CM10, though, local.prop doesn't get loaded, so I have to manually change build.prop.
I know a solution to this would be just keeping the same build.prop and flashing it after the rom (I already have a zip with the modifications I like that I flash after each nightly), but I don't really want to keep an old build.prop. What I want is to juat modify the line through my zip, so it stays updated while I don't have to modify the line every single day.
I found very quickly that I can use this line:
sed -i 's/ro.sf.lcd_density=320/ro.sf.lcd_density=280/g' /system/build.prop
to get the job done, and it does indeed work if I run it using the terminal. The problem is, I can't get it to work in recovery.
Having very little experience with programming, I'm just trying stuff to see if it works. I treid directly including the like line in the updater-script, didn't have too much hope for that.
I also tried including another simple file with this code:
#!/sbin/sh
sed -i 's/ro.sf.lcd_density=320/ro.sf.lcd_density=280/g' /system/build.prop
that I then extract and run, as I've seen in threads in the forum, but still doesn't work. The file gets extracted, but it doesn't work
I even tried to do it in a userinit script form, just to see if the rom loaded it on boot, but nope.
This is pretty friggin' simple to do, and I'm sure I'm probably making a silly noob mistake, but I just don't have any experience with this kind of code, so if someone can tell me how to make my zip run that very simple line, I'd much appreciate it.
Thanks.
Ok, after moar and moar and moar search, I finally found a script that does the job.
Problem solved.
yay
yay
Hi,
can you please provide your solution. I'm also trying to edit values in build.prop.
I tried to do via init.d script. The script is fine but / system seems to be read only when executing script at startup.
So it would be great if you can reply how you did it (maybe complete other way).
Thanks in advanced!
This is the post in question.
Swiftkey'd from my GNexus
Perfect, thanks a lot! I already found a workaround via an init.d script but this looks very promissing....
Sent from my XT894 using xda app-developers app
It's very useful.
I just included it in my after-nightly zip, so everything becomes automated with cyandelta.
Swiftkey'd from my GNexus
Hi,
So how do I edit AND add lines to build.prop from recovery ZIP?
Easy solution
Or maybe using just the updater-script and this code (this should also work on every rom)
run_program("/sbin/sh", "-c", "sed -i 's:ro.sf.lcd_density=.*:ro.sf.lcd_density=280:' /system/build.prop");
Click to expand...
Click to collapse
You can change 280 to another value if you want.
..
Molitro said:
Hello fellas.
Back in the day, if I wanted to keep my dpi setting of 280 after flashing a new nightly (talking CM now), I just made a local.prop with the modified line and put it in /data.
Since, I think, CM10, though, local.prop doesn't get loaded, so I have to manually change build.prop.
I know a solution to this would be just keeping the same build.prop and flashing it after the rom (I already have a zip with the modifications I like that I flash after each nightly), but I don't really want to keep an old build.prop. What I want is to juat modify the line through my zip, so it stays updated while I don't have to modify the line every single day.
I found very quickly that I can use this line:
sed -i 's/ro.sf.lcd_density=320/ro.sf.lcd_density=280/g' /system/build.prop
to get the job done, and it does indeed work if I run it using the terminal. The problem is, I can't get it to work in recovery.
Having very little experience with programming, I'm just trying stuff to see if it works. I treid directly including the like line in the updater-script, didn't have too much hope for that.
I also tried including another simple file with this code:
#!/sbin/sh
sed -i 's/ro.sf.lcd_density=320/ro.sf.lcd_density=280/g' /system/build.prop
that I then extract and run, as I've seen in threads in the forum, but still doesn't work. The file gets extracted, but it doesn't work
I even tried to do it in a userinit script form, just to see if the rom loaded it on boot, but nope.
This is pretty friggin' simple to do, and I'm sure I'm probably making a silly noob mistake, but I just don't have any experience with this kind of code, so if someone can tell me how to make my zip run that very simple line, I'd much appreciate it.
Thanks.
Click to expand...
Click to collapse
Sir can you tell me what to do to change ro.product.name if same phone in different regions is having different ro.product.name so that the build.prop for every phone that's installed.