Help Please trying to edit system files - Droid Incredible Q&A, Help & Troubleshooting

Is there a way to get a listing of the system files so i can edit certain ones from adb. Namely the keypad file. I just know where to look on the device. Thanks

never mind figured it out

Related

mxip files

hi there.
can someone please tell me what are those files
mxip_***, cemail and pim
can I move them somewhere or make them hidden using registry tweak ?
they look like system files I wouldn't delete them but somehow they disturb aesthetics of my device when in file explorer. any info most appreciated.
thanks.
I would like to know what these files are, too. They can't be deleted, and I think they have something to do with why I've had two SD cards now become corrupt with junk files....
GT

Need Guidenance Please

Hey all,
I need alittle help, And yes I looked but nothing is giving me a clear answer in my searches and doesnt seem to be helping me find a way to do this to test things out.
I have been really annoyed with the 2.5 HTC Message Bug/Lag/Error/Whatever, and I have been searching thru the EU rom for hours/days, and I wanted to try some things out, but I've run across a problem. I am testing out possibly seeing is maybe the problem is maybe xml pages, so I want to play around with them and find the association as to why hitting the send key loads the msgs instantly while not doing so takes forever to load. I have a spare tp2 to do testing. But when I try to replace xml pages, it will deny me from doing so. for example, I was trying to replace the htcMsgbox.xml but everytime I try I get this error:
A system file name "htcmsgbox" already exists replacing old file with new file, I say yes, then I get this msg: "Cannot copy "htcmsgbox" access denied.
Obviously its a system file and cant be replace by normal means, so my question is how does one replace these files? I tried total commander to try and open the file to edit it, but that failed too. So can someone tell me how it can be done if at all? I even tried going into the bootloader to see if I could replace files, but that didnt work too, and searching here unless you hit the right keyword isnt giving me an answer.
I guess my question is how to replace any system file be it XML or exe, I know some can be done by disabling Manila, but how of the others?
Thanx for the response.
42 views and no answer? Okay then *Bump*
I don't think it's possible.
I believe that the only way to get at those ROM-locked files, is to open it up in a kitchen...and even then I'm not sure that everything is accessbile
Would the SDKCert cab allow me to replace the XML pages? I would think that when you reboot the phone and go to the home screen the Msging app isnt loaded so why would the xml pages be locked from being changed, when there is other xml pages for other apps in the system not loaded and you can alter them? I am not a programmer right off the bat, but I noticed little stupid things which knowing how Windows works would cause programs or aml pages that would normally seem okay because it runs, window would run it slower because it cant translate something that didnt even have anything to do with the mail xml page or the program, and I found a couple of xml pages that have these stupid errors and thought of replacing them to see if that could be the case, I can copy them off the phone fine, but I cant replace them to test my theories out.
Help!
AngelDeath said:
Hey all,
I need alittle help, And yes I looked but nothing is giving me a clear answer in my searches and doesnt seem to be helping me find a way to do this to test things out.
I have been really annoyed with the 2.5 HTC Message Bug/Lag/Error/Whatever, and I have been searching thru the EU rom for hours/days, and I wanted to try some things out, but I've run across a problem. I am testing out possibly seeing is maybe the problem is maybe xml pages, so I want to play around with them and find the association as to why hitting the send key loads the msgs instantly while not doing so takes forever to load. I have a spare tp2 to do testing. But when I try to replace xml pages, it will deny me from doing so. for example, I was trying to replace the htcMsgbox.xml but everytime I try I get this error:
A system file name "htcmsgbox" already exists replacing old file with new file, I say yes, then I get this msg: "Cannot copy "htcmsgbox" access denied.
Obviously its a system file and cant be replace by normal means, so my question is how does one replace these files? I tried total commander to try and open the file to edit it, but that failed too. So can someone tell me how it can be done if at all? I even tried going into the bootloader to see if I could replace files, but that didnt work too, and searching here unless you hit the right keyword isnt giving me an answer.
I guess my question is how to replace any system file be it XML or exe, I know some can be done by disabling Manila, but how of the others?
Thanx for the response.
Click to expand...
Click to collapse
You generally can overwrite ROM files with the same file name in the same directory. If you want to modify a file, copy it to your storage card, change the properties to not be "read only", then copy it back to the former location.
This won't work for any system files that are actually in use.
In your case, it appears that "htcmsgbox" is being used by the system. I think you might be able to get past this particular one by disabling the HTC notifications system. Do a search - it is a registry mod.
Okay the notification system you wouldnt be by chance talking about the events notification for sms mms email reminders would you? And I made the change on my desktop then copied it back to storage and then tried to overwrite the file, but I did change the attrib back to read only before trying to copy it back...
Most of the XML pages used by HTC is in use
sigh....

Merging Flashable ZIPs

Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
i think you need to edit the meta file and the xml file, but this can be done though.
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
it is possible to merge update.zip files but its important to understand their structure and how the commands are executed.
also signing .zip files is a whole different topic...
hopefully this helps get you going in the correct direction!
joeykrim said:
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
Click to expand...
Click to collapse
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
chandlerw88 said:
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You would want to read up a little bit and make sure you understand the commands, but yes. You do not want to copy the entire set of commands, just the particular needed lines. Often you don't need to change anything because the script may just say copy this entire system directory and everything in it will go.
Sent from my PC36100 using XDA App
It's pretty basic.
Move all the files into the same zip delete everything in meta-inf except the update script.
Adjust the script accordingly, pay attention to syntax or better yet just look at all the individual scripts and put them together, then remove dupes
As for zip signing..
This is what you need
http://forum.xda-developers.com/showthread.php?t=666441
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
PSULightingGuy said:
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
Click to expand...
Click to collapse
yes, its called 7-zip and its your new best friend in this battle. heres how i learned.
i started ripping apart the things that i liked, including roms themselves. now find an update zip that has the files inside the folders that you will need to add, and you can then recycle that update zip. here it is plain and simple:
1.use 7zip to VIEW; NEVER UNZIP the files(forget about windows zips)
2.check what folder the apps you will be putting in belong in
3.put them in their corresponding folders(some apps are tricky when you need to install their libs too and you dont know it)
4.erase the 3 bottom files in your meta-inf folder
5.resign the rom
6.verify the sign(look for the new certs)
7.move to sd
8.flash rom
9.have a pop,beer, or w/e your vice.(my fave is cherry coke)
if you need help getting started feel free to pm. you dont know who i am, but ive been thru this process many times.
​
Actually, that's not quite what I'm talking about... I want a flashable zip that will add certain images (the battery meter) to the INSIDE of a .apk file that already exists on the device. Not sure if it's possible, but if so, I'd love to know... If not, I'll try pulling the .apk and using 7-zip...

23088_Mega_WWE_3G Slightly Changed

Hi All
I made some changes to 23088_Mega_WWE_3G by TAI (http://forum.xda-developers.com/showthread.php?t=458456&highlight=core+21869)
Apps removed: iContact, FingerKeyboard, Skyfire and Showcase.
Changed couple of manila files:
-Removed clock background from homepage
-Changed manila slider and tab background
Changed splash screen (sample below)
Images are not mine, can't remember exactly where I got them from.
For the purpose I used ROMDonald kitchen (http://forum.xda-developers.com/showthread.php?t=319970)
All credit goes to TAI (thank you for all the great ROMs).
Download ROM: http://rapidshare.com/files/415414292/23088_Mega_WWE_3G_Pharmakos.rar.html
In case you're looking to have Solitaire and BubbleBreaker, below the links for the cab files.
http://rapidshare.com/files/409328143/BubbleBreaker.cab.html
http://rapidshare.com/files/409242652/MSsolitaire.cab.html
Disclaimer: I flashed it to my device and so far has been working with no remarks for about a month now. However, use at your own risk.
Notes: After you flash, you should update weather from weather tab, once updated, go to: Start>Connections and click on "Weather". This is necessary for the weather info on homescreen to be updated, also if you don't do this before re-starting the device or before turning off, when you restart again manila won't load.
Recommendations:
1.This ROM has very low reception with radio 1.56.70.11, I recommend to use radio 1.47.30.10 (link available below).
2. If you do task 28 wit MTTY before flashing this ROM, please flash OEM Stripped AT&T and then flash 23088_Mega_WWE_3G (link available below).
http://rapidshare.com/files/415417539/HERM_Radio_Only_1.47.30.10_CustomRUU.rar.html
Att stripped: http://rapidshare.com/files/415708972/att_striped.rar.html
reserved for future comments
Will be tested
Hi Pharmako,
thanks for your work.
Can You please tell me how to remove programs from the Dump folder?
I've dumped the ROM with ROMDonald kitchen but I can't find any if the files or packages (like Skyfire) I would like to remove.
A second question is:
once removed a program or package in necessary to edit the registry?
Many thanks in advance!
I am so going to try this.
Thank you.
eryunt said:
Hi Pharmako,
thanks for your work.
Can You please tell me how to remove programs from the Dump folder?
I've dumped the ROM with ROMDonald kitchen but I can't find any if the files or packages (like Skyfire) I would like to remove.
A second question is:
once removed a program or package in necessary to edit the registry?
Many thanks in advance!
Click to expand...
Click to collapse
Hi, the easiest approach is to go into the dump folder first and search the files you want to remove by name, also when you're changing the registry you will need to search for the applications you want to remove and remove the whole key with whatever strings and dwords they might be under it. Finally when you're editing the "initflashfiles.dat" you should remove from there as well any entries referring to applications you want to remove, also the info in "initflashfiles.dat" will give more detailed info on all the files which are components of the apps you wish to remove, this way you can go back to the dump folder and search and remove the unwanted files.
Hope this helps.
Pharmako said:
Hi, the easiest approach is to go into the dump folder first and search the files you want to remove by name, also when you're changing the registry you will need to search for the applications you want to remove and remove the whole key with whatever strings and dwords they might be under it. Finally when you're editing the "initflashfiles.dat" you should remove from there as well any entries referring to applications you want to remove, also the info in "initflashfiles.dat" will give more detailed info on all the files which are components of the apps you wish to remove, this way you can go back to the dump folder and search and remove the unwanted files.
Hope this helps.
Click to expand...
Click to collapse
Thanks!
This is exactly what I wanted to know!
Ok I just installed it and seems to work great. Thank you for cleaning up this rom as now it seems perfect. I installed iphonetoday cab and it works great with this rom.
Thank you again man.
I'm trying to make the same thing with the Italian version..
Is there any 3G dialer working with this version, having the smart-dialing function too?
Any way to find and put the new version of Internet Explorer?
eryunt said:
I'm trying to make the same thing with the Italian version..
Is there any 3G dialer working with this version, having the smart-dialing function too?
Any way to find and put the new version of Internet Explorer?
Click to expand...
Click to collapse
Well, if it is video calling that you're trying to use, to be honest I wasn't using it as my mobile provider is not too reliable with 3G. The only dialer I installed was PhoneEx and I was very happy with it.
As for Internet Explorer I wouldn't know as I prefer Opera. You might find an Opera Mini, personally I was using "OperaMini-4.2-small", whoever you may find the latest version "10".
the image file is corrupt....cant install at all.
arty said:
the image file is corrupt....cant install at all.
Click to expand...
Click to collapse
Hi, have you tried to download again?
Anybody else having this issue?
yep...but since its zipped i dont think re-downloading helps that much when the content is alrdy corrupt
I just tested the file and its ok.
Download again and this time save on different folder and it should work.
bllohin said:
I just tested the file and its ok.
Download again and this time save on different folder and it should work.
Click to expand...
Click to collapse
bllohin thank you for testing.
arty hope it works for you. Worst case scenario, I could try to upload to mediafire as a mirror, just in case your issue turns out to be rapidshare.
Np, man, thank you for sharing your work.
In his case its just bad download and because its in windows cache it will be bad every time till he flushes cache or saves it elsewhere.
Pharmako said:
Hi, the easiest approach is to go into the dump folder first and search the files you want to remove by name, also when you're changing the registry you will need to search for the applications you want to remove and remove the whole key with whatever strings and dwords they might be under it. Finally when you're editing the "initflashfiles.dat" you should remove from there as well any entries referring to applications you want to remove, also the info in "initflashfiles.dat" will give more detailed info on all the files which are components of the apps you wish to remove, this way you can go back to the dump folder and search and remove the unwanted files.
Hope this helps.
Click to expand...
Click to collapse
Hi Pharmako,
I have a problem editing the registry.
I can easily convert the "default.hv" and "user.hv" files into "boot.rgu" files, but having opened the two "boot.rgu" and edited them with the notepad, even if I save them in "UNICODE" they change dimension end I have errors converting back to "user.hv" and "default.hv".
Even adding the first line "REGEDIT4" doesn't solve the problem.
Tried with WinXP notepae and also withe the "Notepad2"..
What is wrong?
Thanks
eryunt said:
Hi Pharmako,
I have a problem editing the registry.
I can easily convert the "default.hv" and "user.hv" files into "boot.rgu" files, but having opened the two "boot.rgu" and edited them with the notepad, even if I save them in "UNICODE" they change dimension end I have errors converting back to "user.hv" and "default.hv".
Even adding the first line "REGEDIT4" doesn't solve the problem.
Tried with WinXP notepae and also withe the "Notepad2"..
What is wrong?
Thanks
Click to expand...
Click to collapse
Hi eryunt,
I also had that issue. I thought that I had done something wrong along the way and I started the whole dumping, etc couple of times. Then finally I tried to first do all registry changes and then saving as > unicode. Meaning that I was first saving and then changing as described step by step in ROMDonald's manual.
So, bottom line: first do all changes to registry and then save as > unicode. And don't forget to add an extra line at the end of the text. Hope this works.
Pharmako said:
Hi eryunt,
I also had that issue. I thought that I had done something wrong along the way and I started the whole dumping, etc couple of times. Then finally I tried to first do all registry changes and then saving as > unicode. Meaning that I was first saving and then changing as described step by step in ROMDonald's manual.
So, bottom line: first do all changes to registry and then save as > unicode. And don't forget to add an extra line at the end of the text. Hope this works.
Click to expand...
Click to collapse
The problem is that in both ways I can't solve the problem.
First of all, is the line "REGEDIT4" on the top needed?
What I've noticed is that even the original boot.rgu, without any modification, can't be converted back into .hv file.
Looking at the text, after the modifications at the registry, when I save in UNICODE all blank lines disappear..
Moreover, when I open the boot.rgu file I already have a blank line at the bottom, I need to add another one?
Thanks Pharmako!
eryunt said:
The problem is that in both ways I can't solve the problem.
First of all, is the line "REGEDIT4" on the top needed?
What I've noticed is that even the original boot.rgu, without any modification, can't be converted back into .hv file.
Looking at the text, after the modifications at the registry, when I save in UNICODE all blank lines disappear..
Moreover, when I open the boot.rgu file I already have a blank line at the bottom, I need to add another one?
Thanks Pharmako!
Click to expand...
Click to collapse
Hi eryunt, "REGEDIT4" on the top is definitely neeed and even though you see already a blank line, still you need to add another one (know from experience ).
One more thing, once you edit the file, re-open it and look for the following: at the start of the file you will notice that there is certain character space (blanks) between registry values and after many many lines, somehow this spacing thrend dissapears, what you need to do is carefully check till the end of the file and repeat the spacing thrend were needed (I wish I had made a screen shot of this). You should be able to convert then without any further issues.
Please accept my apologies for not mentioning it before, but to be honest it kind of escaped my memmory in my previous post.
Wish you luck and if there's anything else I could help with, please let me know.

Need some help

Hi all I need help I want to start building roms.But I need a good guide for themeing if any one can help me or just show me where to start that would be great ..
Thank you
Sent from my PC36100 using XDA App
There aren't any, try asking this question in the theming section and somebody might be kind enough to help you out...
Are you trying to build a rom or are you trying to theme an existing rom? if you are just trying to change the theme and arent doing any development work it will be much easier on you if you just learn how to make/edit a theme. In fact it can be relatively simple (though very very time consuming) to make your own basic theme.
To start with you will want to get your framework-res.apk file and you will want to decompile it. once you do this you will see several folders in the res folder you should see a drawable folder. this holds all your xml files. These are the actual "code" for a good part of the framework. you should see several other folders drawable-hdpi is the folder that will hold most of your images (in .png or .9.png) these can be replaced with the images you want (keep them same name and same format for .png for .9 it is not suggested that you mess witht hem till you do research and learn how specifically to edit them .once done recompile the framework-res.apk file and put it in your rom or into a flashable zip.
this will let you change a large portion of the framework theme of your phone. it takes a little practice and patients. Obviously there are many other things you an do that are much more difficult but this should get you started at least.
DO NOT EDIT .9s IF YOU DON'T KNOW HOW YET!!
Stick to regular pngs as a starting point.
When decompiling existing themes I have seen them throw errors left and right because of badly edited .9s. These errors won't allow the framework to recompile correctly.
Grab some themes you want to play with and pull the drawable-hdpi folders out of the apk then mix and match the images you want into the apk you are going to use.
Once you get an idea of which images change what in the system then you can start looking at editing .9s. When you get to that point you will see just how amazing it is that themes even work with badly compiled .9s.
I know first hand. I literally had to fix .9 pngs in an entire theme just to be able to edit the xmls myself and have it recompile.
very true i dont sugest editing .9s unless you know how. Most basic icon changes can be made without editing them however if you mess them up it can be a huge pain to get the theme going. Another tip always make a back up of your default untouched framework. this can help save you if you mess something up and need to replace the files.
omegasun18 said:
very true i dont sugest editing .9s unless you know how. Most basic icon changes can be made without editing them however if you mess them up it can be a huge pain to get the theme going. Another tip always make a back up of your default untouched framework. this can help save you if you mess something up and need to replace the files.
Click to expand...
Click to collapse
Another good suggestion.
To add to this, op you should learn to use adb.
It will save you ALOT of time when testing the icon changes.
Instead of having to make a flashable zip file, when you learn adb you can push the one file you are testing and if it bootloops your device guess what, just adb push the original back and your system will boot again.
This prevents you from having to nand restore everytime you boot loop your device.
At this point, the only thing I flash via zips are full roms (mine at least). Everything else I either adb push/pull or fastboot flash it.
Thanks for all your help...I will try to figure this thing out

Categories

Resources