[Q][Solved] Help with theming - Epic 4G Q&A, Help & Troubleshooting

I'm trying to port an already existent theme (on windows) except the naming scheme the original theme developer has used put frameworks_res_***** in front of the .pngs that need to be ported. There are obviously a ton and I would not like to individually rename them so I was wondering if it would be possible if somebody could teach how to change them easily so that I could get rid of those first 15 characters in all the file names. I tried to use cmd without avail and attempted to use a batch file but I am lost as to how it works Any suggestions/guidance would be great. Thanks.

tyl3rdurden said:
I'm trying to port an already existent theme (on windows) except the naming scheme the original theme developer has used put frameworks_res_***** in front of the .pngs that need to be ported. There are obviously a ton and I would not like to individually rename them so I was wondering if it would be possible if somebody could teach how to change them easily so that I could get rid of those first 15 characters in all the file names. I tried to use cmd without avail and attempted to use a batch file but I am lost as to how it works Any suggestions/guidance would be great. Thanks.
Click to expand...
Click to collapse
Did a quick google search for multiple file renaming ... found these:
http://support.microsoft.com/kb/320167
http://www.bulkrenameutility.co.uk/Main_Intro.php
http://www.snapfiles.com/get/pwfilerenamer.html
Hope that helps

Thanks so much Worked like a charm.

Related

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.

[Q] Stock MMS app

I installed the stock MMS.apk file on my de'odexed stock rom (rooted of course). Everything worked well and the app runs, but when reading text threads there is an ugly white border around the edge of the screen, its strange. Its not present when viewing the list of conversations, only in the thread view. I'm not sure if that's how its supposed to look or not, but if not, anyone have any idea how to fix this?
I'll get a screenshot up as soon as I get home.
I first obtained the MMS.apk from the cyanogen rom, then thinking that it might be modified and thus creating my problem, I grabbed the AOSP version from this thread:
http://forum.xda-developers.com/showthread.php?t=789493
Any help will be greatly appreciated.
UPDATE:
Found another thread where people are experiencing the same issue, apparently its a problem with how sense handles the application:
http://forum.xda-developers.com/showthread.php?t=752604
I attempted to open up the Mms.apk (AOSP version) with APKtool and play around with the xml files for the UI, but wasn't able to get it to recompile and test any changes I made, the app would just crash on launch. I simply made a few changes to the colors, but I admittedly don't really know what I'm doing and it wouldn't run. If anyone who's more experienced in this area could offer some advice I'll try again.
That's a picture of the issue, it appears in both landscape and portrait mode.
Texts were blacked out just for privacy sake.
Well after a few hours of messing around in the XML files for the AOSP messaging app, I was able to find a solution to this issue. I modified the XML file to have it correctly display the black color background when using the black theme. I was not able to eliminate the border entirely, but by changing the scrollbar type from Inset to Overlay I was able to make it uniform and far more visually pleasing.
I have attached my modified Mms.apk file, feel free to test it out.
For the specifics of what I did for those who are interested:
Two files were modified in the apk
- /res/layout/compose_message_activity.xml
- /res/layout/compose_message_activity_black.xml
In both files I changed the scrollbarStyle propery to "insideOverlay", in addition to removing the reference to always show the scrollbar track.
In the black xml file I changed the background color to "@android:color/black".
The original XML files were extracted using APKTool and Recompiled to their binary format, then reinserted into the original apk without resigning.
This is awesome! ... Except it doesn't filter out the VVM message streams that come through. :|
I haven't encountered this problem though I use google voice so I'm not really sure what it is you're referring to.
Sent from my PC36100 using XDA App
ty!
beautiful ty!!!!!!!!!
Imma cry
I cant send mms!
Try turning off wifi while sending/receiving mms
no wifi
i don't have wifi on when i do this i just have 3g on so i can send mms!
i zipped the file with the one that had the white outline .is there a way to make this new apk. file into a .zip file for me ?
I'd imagine you could simply replace the APK file in your zip with my modified one and install that way. Use a program like winrar or 7zip to replace the apk within the zip.
tehpsyc said:
I'd imagine you could simply replace the APK file in your zip with my modified one and install that way. Use a program like winrar or 7zip to replace the apk within the zip.
Click to expand...
Click to collapse
sorry but i cant find either of thoses programs u mention to replace the APK file in my zip with your modified version .is there another program or a manual way of doing this process ?
how do i install this? since it's an APK, i thought i'd just install it from Astro but it says it's already installed and asked if i wanted to uninstall.
To install this you need to either delete or rename the Mms.apk that's already on your phone in the /system/app directory (I just rename to Mms.apk.bak) and then copy the modified one into that same directory followed by a restart of the phone. Because its a system app you cant install it the same way you would a regular apk, at least from my understanding.
You will need to get write access to the system directory to accomplish this (I used an app on the market called root explorer, though you can also do all this through the ADB shell)

[Q] Noob question will probably get flamed

ok so i tried readin the guides and i have to say i was completely lost. might be cuz i havnt gotten any rest in a while but anyways i was looing for a way to be able to combine 2 themes. i really like the status bar icons on one theme like the bluetooth and wifi however i like everythig else from the other one also one is using launcher pro the other one tw launcher. would like to keep the one with launcher pro and just changethe top icons that always show. if i missed something please let me know any help would be greatly appreciated
Make a copy of the original themes to fall back on first.
What you have to do is open up the zip files of the themes. Extract the res folders from each themes framework-res.apk. Obviously you will have to rename one of them to something like res1 or put it in another place. Once you have the two folders extracted make the launcherpro one your base. Copy the images that you want to keep from the other theme (probably located in drawable-hdpi or drawable-hdpi-v4) and paste them into the same folder of the launcherpro theme and overwrite them. Once you have everything copied the way you want it open the framework-res.apk of the launcherpro theme. Go to the res folder and remove whatever folder you are adding back in (drawable.hdpi for example). Now drag the launcherpro folder that you made all of the changes to (drawable.hdpi or whatever) into the res folder of framework-res.apk. If you took the framework-res.apk file out of the zip file to begin with you have to also add it back into the themes zip file. Otherwise you just put the zip back on the phone and flash. It is always a good idea to put the original theme zip file on the phone also just in case something goes wrong you can just reflash the original theme and start over. If you need any additional help let us know.
^^^What he said
What you're really trying to do is essentially to create your own theme. If those instructions seem overwhelming or dont work, go to the top of this forum and start reading up on theming. Its a fairly simple concept but you might want to familiarize yourself with what it is exactly that you are doing. Everything visual on the phone is stored in image files, you're just swapping out the images. Maybe you'll get inspired and create something totally new that you can share with the community.
I tried reading theming on the top but I guess all that info at once was kind of overwhelming at the moment I was almost dead asleep however the info here seems more direct to the point so ill go ahead and see if I have time to mess with it today. I might also need to install gimp because I only saw like 1 or 2 image files when I opened up the zips with 7zip. Thanks for the help guys ill go ahead and give an update when I'm done maybe post some screen shots
jsredlineracer said:
I tried reading theming on the top but I guess all that info at once was kind of overwhelming at the moment I was almost dead asleep however the info here seems more direct to the point so ill go ahead and see if I have time to mess with it today. I might also need to install gimp because I only saw like 1 or 2 image files when I opened up the zips with 7zip. Thanks for the help guys ill go ahead and give an update when I'm done maybe post some screen shots
Click to expand...
Click to collapse
You will only need gimp if you are editing images. Make sure you are looking in the right directory. You should see a ton of png files. The bulk of the images are located in drawable-hdpi (the native folder) or drawable-hdpi-v4 (some themes have this folder instead). The only tool you need for moving images from one theme to the other is a zip program. I haven't used 7zip but maybe it didn't extract all of the files. I use winrar myself. Let us know how it works out.
OK I made a really quick video. Nothing fancy but puts a visual to the text I wrote. Hope it helps.
Well here are the screenies. Thanks for the help. And also thanks to those who created the original themesblue one is after changes
Sent from my SPH-D700 using XDA App
sorry was having some issues. i couldnt upload pics from my phone
Sent from my SPH-D700 using XDA App

Compiling two SystemUI.apk's into one

Hello. I would like to know how to compile two SystemUI.apk's into one .apk
I found two mods here on XDA-one is a NavBar theme, and the second one is a mod to show battery stats in the notification bar.
Im not a real expert about these stuff but Im willing to try, so if someone could tell me how to do it, instead of doing it for me, I would be glad
Thanks!
Use 7zip to extract the navbar mod and find the images (right click the apk and extract like a zip file). Now place those images into the battery mod system.apk my right clicking and opening with 7zip (don't extract). Then just sign the apk and push it back to the phone. The reason to do it this way is that disassembling SystemUI.apk can cause issues if done wrong, simply replacing images is safer.
Thanks for the quick replay! I have one last question-do I really need to sign the .apk? Or it can work even without singing it.
[EDIT] Never mind, did everything u said about copying the .png's but without singing-and it worked. Thank you so much!
problem
hi good day!
i have a very big problem with my android phone i wiped out all data including system files with out back up..how to fix it and restore the original files..can somebody help me...

[Q] Edit system/framework/services.jar ?

I got tired of waiting for a nice custom ROM or Xposed to drop, so I decided to look into doing my own mods. I've been wanting to learn for the longest time.
My Googling suggests things I mostly want (such as the five-way-reboot and disabling of screen-on when plugged/unplugged) are options that can be change in services.jar.
But I'm not finding the classes.dex in my services.jar file.
Can anyone point me in the right direction to get started?
Maybe toss a link my way to read?
I got brain tired after 20 minutes of Googling only led me to how-to guides that aren't working out because I don't have this classes.dex thing?
CZ Eddie said:
I got tired of waiting for a nice custom ROM or Xposed to drop, so I decided to look into doing my own mods. I've been wanting to learn for the longest time.
My Googling suggests things I mostly want (such as the five-way-reboot and disabling of screen-on when plugged/unplugged) are options that can be change in services.jar.
But I'm not finding the classes.dex in my services.jar file.
Can anyone point me in the right direction to get started?
Maybe toss a link my way to read?
Click to expand...
Click to collapse
Pull the .jar file to your local machine and open it in an archiver that supports .zip compression. Many files including 'classes.dex' are inside the .jar file. Simplest way is to extract the classes.dex then decompile it using backsmali.
mostyle said:
Pull the .jar file to your local machine and open it in an archiver that supports .zip compression.
Click to expand...
Click to collapse
Right, but there is only one file inside the services.jar and it's not classes.dex. It's just the META-INF folder wiht MANIFEST.MF inside.
As well, the services.jar is only 318 Bytes.
I use 7zip on my computer or Root Explorer on the phone.
Good Job Eddie!
While you are learning can you incorporate a dark background in the app drawer.
Keep up the good work.
CZ Eddie said:
Right, but there is only one file inside the services.jar and it's not classes.dex. It's just the META-INF folder wiht MANIFEST.MF inside.
As well, the services.jar is only 318 Bytes.
I use 7zip on my computer or Root Explorer on the phone.
Click to expand...
Click to collapse
Same here. I suspect the dex code you are looking for has moved either to an APK or a different JAR.
Have you looked at the classes.dex in framework-res.apk?
There are a LOT of 318 byte files in /system/framework. This tells me most definitely that the code has been offloaded elsewhere and that these files were likely left as legacy reference. Apologies for not looking at the files before replying.
Now that you mention it, I did try all the other jar's in /system/framework.
The only one that had a classes.dex was embmslibrary.jar.
But I got errors when trying to unpack it.
Wish I'd saved the errors to post here.
Figured I'd give some of the ROM building utilities a go but have not had success yet. I'm only still just starting out though.
I'm thinking we'll probably need an all new ROM Kitchen for 7.1 due to many significant changes.
Which are probably what's holding up ROM development so far.
I got the Nexu.... uh, Pixel because I figured we'd have a bunch of cool AOSP ROM's within a week or two. doh.
DIXZ06 said:
Good Job Eddie!
While you are learning can you incorporate a dark background in the app drawer.
Keep up the good work.
Click to expand...
Click to collapse
There are already mods out there for the Pixel Launcher.
I use Nova Launcher though, which has color and transparency options built right into it.
XDA's Chef Central subforum:
http://forum.xda-developers.com/chef-central/android
The reason you're not seeing the classes.dex file in any of the jar files is because the system is odexed. The classes.dex file is actually services.odex in /system/framework/oat/arm64.
Good to know, thank you!
It's a bummer about all these Android Kitchen variations out there.
None work with the Pixel yet.
I'm not having warm & fuzzy feelings about development for this phone.
Has anyone found a way to deodex the Pixel 7.1 yet?
I'm not finding any "utilities" that support Pixel yet.
disable screen on when plugged in can be disabled by editing "bools.xml" in the framework-res.apk
i can do it for you if you want
flex360 said:
disable screen on when plugged in can be disabled by editing "bools.xml" in the framework-res.apk
i can do it for you if you want
Click to expand...
Click to collapse
Thank you!
Holy moly, I've already found 18 bools.xml's in framework-res.apk and there are still about two hundred folders to manually open to see what's in there.
Do you know which one to edit? I'd like to learn all this myself.
I'm using APK Studio and really wish it had a better search function.
CZ Eddie said:
Thank you!
Holy moly, I've already found 18 bools.xml's in framework-res.apk and there are still about two hundred folders to manually open to see what's in there.
Do you know which one to edit? I'd like to learn all this myself.
I'm using APK Studio and really wish it had a better search function.
Click to expand...
Click to collapse
the one in the "values" folder
Ahh. There are like five million Values folders.
But only one value folder.
I missed that. lol
Thanks
CZ Eddie said:
Thank you!
Holy moly, I've already found 18 bools.xml's in framework-res.apk and there are still about two hundred folders to manually open to see what's in there.
Do you know which one to edit? I'd like to learn all this myself.
I'm using APK Studio and really wish it had a better search function.
Click to expand...
Click to collapse
And you thought this was going to be easy why??? LOL
You're not kidding.
Just one roadblock after another.
And all my Googling leads to old research/faq's that just don't seem to work on the Pixel.
I need to go buy an old Nexus running Gingerbread just to get some of this stuff to work.
My current roadblock is trying to write to /system via ADB.
It pretends to let me write.
But after a reboot, all my changes are gone and it's gone back to the original files again.
adb root
adb remount
adb push filename /system/folder/filename.
It's like yeahhhh, 100% write complete.
PSYCH! Then you reboot and it's like you never wrote anything.
I even tried replacing the framework file using Root Explorer but it just immediately reboots and bootloops.
I did sign the apk succesfully before trying that.
FINALLY I have success.
I'm now able to unplug my phone without the screen turning on.
This was a huge frustration when car-docked.
Now I can work on a few other things and come back and play with some more mods later. :good:
So my stumbling blocks were permissions (duh) and being unable to decompile, recompile and then sign the apk and get it onto the phone without bootlooping.
I still don't have a good way of dcompiling/recompiling without doing some 7zip magic afterwards. But at least I have some success and a footprint to move forward with learning some further mods. :good:
And I had to get this done using Root Explorer, so I still need to figure out a proper way to mount the system and push system files with ADB and get them to stick.
Well, so my ultimate goal was to do a bunch of mods and then release a custom stock-based ROM to the community.
But holy moly, more stumbling blocks.
Couldn't figure out how to create a simple flashable ROM zip.
So I just released my mods in the Themes & Apps subforum:
http://forum.xda-developers.com/pixel-xl/themes/framework-mods-disable-screen-off-usb-t3508322
Thanks for the help, guys. :good:
I'll get back at the custom ROM thing another time.
I'll tell you what though.
I have tons more respect for devs after trying all this on my own.
Even if it's something you know how to do, there is a LOT of time and work spent on modding.
And then figuring out something new for the first time is incredibly frustrating.

Categories

Resources