Hey
I would like to edit the default.prop of my device so I can use some Android debugging tools.
I know I need to change the file in the ramdisk, but I have no idea how to do this.
Can anyone help me with this?
Thanks!
Try a tool like Root Explorer to mount the folder read/write, then edit/save to your heart's content.
Thanks, but that wont work, as the file gets replaced every reboot by the original one
Sent from my GT-I9100 using xda premium
You need to modify the Ramdisk - split the kernel/boot image.
firefds said:
Thanks, but that wont work, as the file gets replaced every reboot by the original one
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Everytime you modify Default.prop it will create a .bak file. Just press back button and whoop back in again . You will see a Default.prop.bak just delete it before rebooting your device.
Hope it helps.
Thanks for your help.
I managed to do this by using this guide for preparing the environment:
http://forum.xda-developers.com/showthread.php?t=1186409
And this guide for unpacking and repacking the kernel:
http://forum.xda-developers.com/showthread.php?t=1294436
Related
I have a question, I need help repacking a system.img. This is what i have done, i unpacked it, removed unnessasary apps and added a different frame work, so now i want to repack back to a system.img file.But have had no luck. I do have ubuntu and windows so no matter what operating system i use.
frankinstine said:
I have a question, I need help repacking a system.img. This is what i have done, i unpacked it, removed unnessasary apps and added a different frame work, so now i want to repack back to a system.img file.But have had no luck. I do have ubuntu and windows so no matter what operating system i use.
Click to expand...
Click to collapse
If you intend on flashing it with a custom recovery, you could also zip the whole package and name it update.zip
There's an excellent guide over here.
The problem is, I used mkcramfs and when I unpacked it again it showed empty
Sent from my HTC HD2 using XDA App
frankinstine said:
The problem is, I used mkcramfs and when I unpacked it again it showed empty
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
I see. But what will the .img be used for?
Thijs96 said:
I see. But what will the .img be used for?
Click to expand...
Click to collapse
I want to edit and change some things in it. I'm doing this for the HD2. The new nand flash. So that's why a zip will not help me, I do know how to make a Rom into an zip. The nand flashs the boot.img and system.img
Sent from my HTC HD2 using XDA App
To be clear I have the system file ready I just need to reach it
Sent from my HTC HD2 using XDA App
frankinstine said:
To be clear I have the system file ready I just need to reach it
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Yes, yes, I know what you mean.
You've got to have /system in a folder, not compressed.
*You've got to be on linux!
Issue:
Code:
mkfs.yaffs2 yourdir yourimage
But you've got to find that command on Google, I didn't find it. Otherwise, flash it to your device and make a Nandroid backup.
Edit: I've found mkfs.yaffs2, but it's ARM only. That means you've got to do it on your device (Busybox/Terminal)
It's here.
Thijs96 said:
Yes, yes, I know what you mean.
You've got to have /system in a folder, not compressed.
*You've got to be on linux!
Issue:
Code:
mkfs.yaffs2 yourdir yourimage
But you've got to find that command on Google, I didn't find it. Otherwise, flash it to your device and make a Nandroid backup.
Edit: I've found mkfs.yaffs2, but it's ARM only. That means you've got to do it on your device (Busybox/Terminal)
It's here.
Click to expand...
Click to collapse
I'll give it a shot then
Sent from my HTC HD2 using XDA App
You can get yaffs2 tool for x86 Linux from here: http://jiggawatt.org/badc0de/android/mkfs.yaffs2.x86.tar.gz
I don't remember off hand what to search for as its been a while since I used it. I'll upload them when I get home if I still have them.
Sent from my HERO200 using XDA App
copy the folder to the sd on the phone, (eg /sdcard/myimg/ open a terminal on the phone, issue mkyaffs2image /sdcard/myimg/ /sdcard/system.img
bgcngm said:
You can get yaffs2 tool for x86 Linux from here: http://jiggawatt.org/badc0de/android/mkfs.yaffs2.x86.tar.gz
Click to expand...
Click to collapse
It's awesome! I've actually copied it into /bin/ on my computer, I'm using it an awful lot
pls help me!!!
how to upack and repack system.img ang boot.img...because i cant understand the guide..i think its missing something..pls help me
Is that for samsung devices?If yes,you can have a look at my sig
Sent from my GT-N7000 using xda app-developers app
I want to edit the build.prop of my phone to add some lines, but i do not want to flash the rom all over again. If i just edit it through a file manager on my phone, will it take effect on the rom? or do i have to edit the build.prop in the .zip fil;e of the rom and flash it all over again?
Edit the Build.prop and then just restart your phone .
Sent from my GT-I9100 using xda app-developers app
okmijnlp said:
Edit the Build.prop and then just restart your phone .
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
same thing with any init scripts right? cuz i want to edit them too
evilcuber said:
same thing with any init scripts right? cuz i want to edit them too
Click to expand...
Click to collapse
Yep.
Sent from my GT-I9100 using xda app-developers app
evilcuber said:
same thing with any init scripts right? cuz i want to edit them too
Click to expand...
Click to collapse
You can edit stuff on the /system partition and they'll survive the device reboot, so go ahead edit /system/build.prop
This does not apply to stuff on the root partition, so you can not edit e.g. /init.rc in the same way and get any lasting change. The root partition is unpacked from flash every boot, restoring any edits you've done. I.e. the running root is only a copy in ram of the root file system from the flash image boot.img containing this plus the kernel. To change files here, you'll have to reflash your device.
It changed after i flashed my ROM
Recently i made a ROM and flashed it , i made many changes to build.prop but when i open it through es file explorer it is not showing those changes ! please help thanks
edit - save - and restart ur phone
Check that you don't have 2 build.prop files after installation
Hi all,
I need help with this problem :
Code:
E/dalvikvm( 111): No valid entries found in bootclasspath '/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar'
It is CM10. Please reply as soon as possible.
Thanks
This is what I mean by your not ready, I've told you what to do multiple times to fix this error
1) decompile boot.img
2) decompile ramdisk.img
3) locate and open init.rc with a text editor (gedit)
4) locate and replace the bootclasspath path with the one in the error
5) recompile ramdisk.img
6) recompile boot.img
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
This is what I mean by your not ready, I've told you what to do multiple times to fix this error
1) decompile boot.img
2) decompile ramdisk.img
3) locate and open init.rc with a text editor (gedit)
4) locate and replace the bootclasspath path with the one in the error
5) recompile ramdisk.img
6) recompile boot.img
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Thanks, that's what I needed to know. I think I'm ready. I read about logcat, what does it consist of ROM, boot.img, etc... I really read a lot. Do not worry. I tried to make a new theme for my phone and bootanimation. I know about the scripts and everything on it belongs to. I really think, that I'm ready and I want to try . But once again THANK YOU. And something else. What should I do if it did not work?
Mlopik said:
Thanks, that's what I needed to know. I think I'm ready. I read about logcat, what does it consist of ROM, boot.img, etc... I really read a lot. Do not worry. I tried to make a new theme for my phone and bootanimation. I know about the scripts and everything on it belongs to. I really think, that I'm ready and I want to try . But once again THANK YOU. And something else. What should I do if it did not work?
Click to expand...
Click to collapse
Try and get a new logcat...its all trial and error...keep experimenting with things...always keep a backup of files before you make changes that way its easy to go back in case you mess something up
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Try and get a new logcat...its all trial and error...keep experimenting with things...always keep a backup of files before you make changes that way its easy to go back in case you mess something up
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
I think the problem is not in this. developer before me was transcribed in "init.rc" in "bootclasspath" that error in logcat, as you said. The bug will be in something else. Bootanimation is working, but the phone after a while restarts and again, again, ... Do you know what it could be? And I also know what the developer before me meant by "use the driver from desire z." CM10 is not a source for Huawei u8800, but can be used from the desire z, because it has the same chipset as my Huawei u8800. Is that okay?
So I tried it (what you said):
1) I extracted boot.img (http://tiad8.com/threads/nand-how-to-unpack-repack-boot-img-recovery-img.839/)
2) I went to the "boot.img-ramdisk"
3) Then I opened the "init.rc"
4) I rewrote the bootclasspath problem, which appeared in logcat
5) I packed boot.img (this has 2x larger size)
6) I have put boot.img to ROM
I'll try flash it via recovery.
It depends on what'll use recovery? I believe, that no.
So I tried to flash it. It does not work. In recovery I give "instalation aborted". It's a bug in the script? Or error in boot.img? I personally think that I had made a mistake in "repack boot.img". What do you think?
Sorry it was my bad. I flashed, but bootloop is still. Freeze in splash screen (huawei boot logo). Please advice.
Sent from my U8800 using xda app-developers app
I've read around on trying to find the answer to this question but cant seem to find it....
I would like to know how you change the kernel boot up image you get when you turn on your phone,
is this even possible? and if it is what format would i have to make the image
-Thanks
Update:
Seriously does nobody know how to change the Kernel boot image???
(the image you get when you startup your phone)
I realy like to know to, because since i start to use hell's kernel never see again the rafael baugis kernel... now i have RB kernel but the boot image never apear again...
Sent from my GT-S5830i using xda app-developers app
You need to edit the kernel source and recompile using the image, aka not worth it
Also the image in present in .lfs partition inside /mnt folder
And please instead of creating new threads for questions, Post them here
http://forum.xda-developers.com/showthread.php?t=2089279
ZakooZ said:
You need to edit the kernel source and recompile using the image, aka not worth it
Click to expand...
Click to collapse
That is incorrect.
As long as the phone is rooted and you have a file explorer (ES File Exp) installed, you need to copy the dowloaded .zip file to the following location:
/system/media/
and rename to bootanimation.zip. Reboot and shazaam
:silly::silly::silly:
:laugh::laugh::laugh:
Squidge1980 said:
That is incorrect.
As long as the phone is rooted and you have a file explorer (ES File Exp) installed, you need to copy the dowloaded .zip file to the following location:
/system/media/
and rename to bootanimation.zip. Reboot and shazaam
:silly::silly::silly:
:laugh::laugh::laugh:
Click to expand...
Click to collapse
You can't understand a bit of what he said
And he is saying Kernel Splash image
Not the bootanimation
So better not tell fairytales here
iamareebjamal said:
So better not tell fairytales here
Click to expand...
Click to collapse
Not a fairy tale, it was a miss read.
Which i am sure 99% of people have done before.
@Xx James xX
Sorry i miss informed as i had miss read :angel:
can anyone upload original build.prop from tablet s pls ?
thx
neimovirne said:
can anyone upload original build.prop from tablet s pls ?
thx
Click to expand...
Click to collapse
This is development. Not general section.
Anyway, download your stock Rom from the link in my signature. Then look in the development section for the tool to decrypt your own Rom then use ext2explore to extract system.img
Or give us more detail off model etc
Further more back up files before modding them
stifilz said:
This is development. Not general section.
Anyway, download your stock Rom from the link in my signature. Then look in the development section for the tool to decrypt your own Rom then use ext2explore to extract system.img
Or give us more detail off model etc
Further more back up files before modding them
Click to expand...
Click to collapse
it takes too much time ..
Use this: http://caftp.3owl.com/File_Upload_Admin/Files/build.prop
It will be in there temporarily so tell me when you have got the file or I will delete it at some point.
You may want to modify it since my device was in the UK and it is using release5a.
Next time try creating a backup, it uses your time for a reason.
If you want to backup in /system/ then you can copy the file in the directory renamed so you can just remove a character or something from the backup file to get it in use also you do need to delete the failed one or if you don't have one then find a way to get in and do it but you can't use ADB in recovery unless you have the release1a recovery.
If I did backup, my device is soft bricked, rooted and have such recovery then what I would do is:
cd /system/
su
rm build.prop
mv build.prop.bak build.prop
EDIT: You have till the 25th before the file gets removed from my website.
Sent from my Sony Tablet S using xda premium
andyabc said:
Use this: http://caftp.3owl.com/File_Upload_Admin/Files/build.prop
It will be in there temporarily so tell me when you have got the file or I will delete it at some point.
You may want to modify it since my device was in the UK and it is using release5a.
Next time try creating a backup, it uses your time for a reason.
If you want to backup in /system/ then you can copy the file in the directory renamed so you can just remove a character or something from the backup file to get it in use also you do need to delete the failed one or if you don't have one then find a way to get in and do it but you can't use ADB in recovery unless you have the release1a recovery.
If I did backup, my device is soft bricked, rooted and have such recovery then what I would do is:
cd /system/
su
rm build.prop
mv build.prop.bak build.prop
EDIT: You have till the 25th before the file gets removed from my website.
Sent from my Sony Tablet S using xda premium
Click to expand...
Click to collapse
thx! so much
u can remove it now
neimovirne said:
can anyone upload original build.prop from tablet s pls ?
thx
Click to expand...
Click to collapse
stifilz said:
This is development. Not general section.
Click to expand...
Click to collapse
As per the XDA rules All questions/requests threads go in the Q&A.
Thanks