Guys i want to modify some properties which actually require deletion of a property...my linux knowledge is far less but i understand things quickly...so tell me how to modify build.prop perfectly
I know however to add lines using sh. But what about deletion
Related
Ok, basically my linux knowledge is very limited and i need help modifying a file that gets written on boot (i don't know if this would even work, so if someone could answer that it would be very much appreciated).
The file i'm looking to change is '/sys/module/q6audio/parameters/speaker_max_gain'. In the latest 2.1 build this file is set to '602', which i think explains the slight volume increase from 1.6 (it was set to '600', but located in 'sys/module/msm8k_cad_volume/parameters/handset_max_gain' instead)
So, does anyone know how to alter this file? I know it gets re-written every time you boot the phone, but i can't find where it's being written from. Is it a kernel thing or am I completely wasting my time with this?
Cheers
UPDATE - Thanks to @VogelDerNacht, i've tried a few things like trying to change the value in the init.rc (echo "value" > sys/module/q6audio/parameters/speaker_max_gain) which didn't work, and i then tried to use a sysctl.conf in /system/etc/ to do the same thing, which also didn't work (don't think the kernel supports this), so now i'm pretty stuck
It seems like i may have to wait for the kernel source to be release now ><
how about creating a simple shell script and having it execute as a service from one of the init scripts ?
its possible the sys entry is not created until later in the boot sequence
DJ_Steve said:
how about creating a simple shell script and having it execute as a service from one of the init scripts ?
its possible the sys entry is not created until later in the boot sequence
Click to expand...
Click to collapse
could you give me an example please? i'm pretty new to all this linux stuff
The problem seems to be that when i add the line in to the init.rc (or any of the init files) it gets overridden by something else (probably the kernel) and i can't get it to apply my changes. I can change it fine whilst the phone is running, but that doesn't do anything because i think these files only get read from once when the phone boots.
I could be completely wrong though, like i said, my linux knowledge is pretty bad ><
First you need to confirm that entry boosts what you want
DJ_Steve said:
First you need to confirm that entry boosts what you want
Click to expand...
Click to collapse
That's the problem. I think it reads from the file only once when the phone boots but i don't know, that's why i want to change it on boot to see if it works
their should be a simple script (.sh extension) in /system/etc that you may be able to edit to add echo *your value > sys path to end of
DJ_Steve said:
their should be a simple script (.sh extension) in /system/etc that you may be able to edit to add echo *your value > sys path to end of
Click to expand...
Click to collapse
Tried that. Tired editing the init.rc, that didn't help. I tried adding a sysctl.conf but i don't think the kernel supports it. I tried editing every .sh file i could find but it looks like the kernel just overwrites everything
ok if you fancy a hand trying to get the volume to boost drop me a pm as i woudln mind being a tester ffor playing with werid options (and since iport android anyway i know my way around
OK guys I am working on a patch will let the users of captivate, galaxy s and vibrant user flash each others roms but to accomplish this I need to provide build.prop file which will not let the users feel complete
I know how to add lines to build.prop but want to learn how to remove some lines from build.prop with some script command
I want to add ro.product.model but without removing previous line I cannot add another so please teach me
Anyone have any usefull links that explain the build.prop file in DETAIL as to everything and anything that can be added, deleted, modded etc... ?
build.prop line properties
MikePierotti said:
Anyone have any usefull links that explain the build.prop file in DETAIL as to everything and anything that can be added, deleted, modded etc... ?
Click to expand...
Click to collapse
I would also be very interested in knowing this. I just loaded CM9, and want to run chrome but can't. I can't help but think it is finding a reference to Gingerbread in my build.prop file (it is still listed in two places). I tried making these changes myself to something else, but it didn't help - likely because I didn't know what the proper parameters were for the lines I changed.
I'm searching for a line by line description for the build.prop file too... if I find it, I'll repost. I'm thinking it has to be out there somewhere...
Hello friends!
I was inventing the heapsize lowering the build.prop to 8m and mobile is not starting anymore. It sits at the boot screen looking like it is failing to boot and is restarting. How do I edit the build.prop by the computer so I can change the heapsize in build.prop?
theusfalcao said:
Hello friends!
I was inventing the heapsize lowering the build.prop to 8m and mobile is not starting anymore. It sits at the boot screen looking like it is failing to boot and is restarting. How do I edit the build.prop by the computer so I can change the heapsize in build.prop?
Click to expand...
Click to collapse
Before you do anything I would recommend booting into recovery and whipping the data and cache, and performing a factory reset to be on the safe size this should hopefully get your phone booting again. Now before you go making any more build.prop edits I would highly suggest you make a backup of your current ROM in recovery first, that way you can easily revert any changes you make to the build.prop file that don't play nicely with your phone. Next you don't even need to use a computer to edit the build.prop file, it can easily be done using a build.prop editor app such as the free build.prop Editor by Nathan Campos. Using the app find the property for heap-size (Usually it's called: "dalvik.vm.heapsize") and change it to the value you want. Then make you save the changes and reboot the phone, and you should be all set. For future reference always make a nandroid backup of your current ROM before making any build.prop eidts (Or any system modifications for that matter) no matter how small you think the changes are, it will save you a lot of headaches in the end, taking this simple precaution. Hope this helps .
shimp208 said:
Before you do anything I would recommend booting into recovery and whipping the data and cache, and performing a factory reset to be on the safe size this should hopefully get your phone booting again. Now before you go making any more build.prop edits I would highly suggest you make a backup of your current ROM in recovery first, that way you can easily revert any changes you make to the build.prop file that don't play nicely with your phone. Next you don't even need to use a computer to edit the build.prop file, it can easily be done using a build.prop editor app such as the free build.prop Editor by Nathan Campos. Using the app find the property for heap-size (Usually it's called: "dalvik.vm.heapsize") and change it to the value you want. Then make you save the changes and reboot the phone, and you should be all set. For future reference always make a nandroid backup of your current ROM before making any build.prop eidts (Or any system modifications for that matter) no matter how small you think the changes are, it will save you a lot of headaches in the end, taking this simple precaution. Hope this helps .
Click to expand...
Click to collapse
A full wipe and wipe cache will not revert any changes made to the build.prop so it won't fix his problem.
The reason he's using his computer is because the phone is in boot loop.
You haven't really given a solution to his problem, more just advice on how to do it better next time. But yeah good advice nonetheless
@OP Google on how to use Android Commander, navigate go system and pull the build.prop, then make the changes you need to make then push it back into the system.
Sent from my GT-I9000 using xda premium
You could also re-flash your current ROM that what I originally meant (My bad) as that will replace the bad build.prop with a good fresh build.prop, this should give you a clean start to work from for then editing the build.prop. As an alternative to using total commander you could also use ADB if you have that set up and working. From ADB:
Code:
adb pull /system/build.prop
Edit it using a text editor, such as Notepad++
When your done mount system a r/w:
Code:
adb remount rw
Then push back the build.prop:
Code:
adb push ./build.prop /system/build.prop
Make sure the correct permissions are set:
Code:
chmod 644 /system/build.prop
Finally reboot:
Code:
adb reboot
i want to modify some properties which actually require deletion of a property...my linux knowledge is far less but i understand things quickly...so tell me how to modify build.prop perfectly
I know however to add lines using sh. But what about deletion