can't apply new theme on the latest firmware - XPERIA X10 Q&A, Help & Troubleshooting

Hi Guys,
there's a custom rom over here (CM 6.1.3 V4 out [Tweaked+Theme+Extras]). From this, i want to add the anims and drawable-hdpi images to the latest official Eclair (2.1) ROM. but no matter how i try, it bricks the phone.
does anyone have any idea?
i replace the files with winrar (don't extract it, just simply overwrite the files within winrar) then using x10 mod tool to move the modified framework-res.apk to the system/framework/ folder.
so any ideas would be lovley. and also, is there a way to check if it works on android sdk? i don't wanna keep restoring the phone all the time
thanks a lot!

not a single answer?

The images are not named the same across all roms so you'll have to look at each image and rename it to the corresponding one in the other drawable-hdpi folder. I don't know an easy way to do this, but I'd love to find one!
and also, is there a way to check if it works on android sdk?
Click to expand...
Click to collapse
+1 on this too. I know you can set up a virtual x10-like device but I don't know if it can preview a theme or how...

AyDee said:
The images are not named the same across all roms so you'll have to look at each image and rename it to the corresponding one in the other drawable-hdpi folder. I don't know an easy way to do this, but I'd love to find one!
+1 on this too. I know you can set up a virtual x10-like device but I don't know if it can preview a theme or how...
Click to expand...
Click to collapse
well, i only overwrote those images that were existing in the framework-res.apk... but there were additional images, that were not existing in the custom rom's framework-res.apk...

Related

[Q] making the theme for the stock ROM

Everyone please try to remember I'm making the theme for the stock ROM
Remember what? Do you need help?
LzVebz said:
Remember what? Do you need help?
Click to expand...
Click to collapse
I want to create themes for the ROM with the stock base .But I do not know how
sorry for my english
1) Download stock 2.3 system dump
2) Extract "framework-res.apk" located /system/framework & "SemcGenericUxpRes.apk"
3) Open .apk files with WinRAR or any other software
4) Navigate to "res/" and copy extract whole "drawable-hdpi" folder
5) Here you will get thousands of PNGs you can edit, the only PNGs you can't edit is pictures with ".9" in their name
Feel free to ask any questions if you're confused sry for late reply

[Q] What is VRTHEME??

I saw lots of theme which has this in their title. but I can't find any guide or tutorial about this. So, what is this? how could I use it? has it any benefit over usual "decompile/theme/recompile/replace"ing an apk?Is there any script to implement it like apktool?
Its the universal theme flasher created by Villain ROM.
As for all your other questions I'm not sure.
Sent from my GT-I9100 using XDA
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
sam5154 said:
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
Click to expand...
Click to collapse
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Ba7rani123 said:
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Click to expand...
Click to collapse
classes.dex is for the smali that has been edited if there was any.
I assume that if the xmls were edited and they point to new PNG images/objects then the resources has been changed. I would say that in this case you would need to have an updated resources file for these adjustments? This could be pulled from your newly compiled .apk that you want to base your flashable theme off?
I am unsure if resources needs to be updated though for certain? I have flashed in the past new xmls and they worked fine, however these were not referencing any new sources or images...so my thoughts are that these mods I made didn't require this additional file?? I could be wrong. I really should read the thread about it here on XDA. I did a long time ago, but have come a long way since then.
I diverse. Try using it without new resources file and see what happens?
You may also like to looking into Morphing as well (very similar concept).
James
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
xdarkmario said:
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
Click to expand...
Click to collapse
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
yep, both my phones i tried them on are deodexed.

[Q] Help decompiling framework-res.apk

Hey, i am a bit noob here decompiling, and compiling system apks, so now im trying to decompile framework-res.apk from my CM7 rom, and i get a 9.png errors when decompiling and another strange one when compiling.
The whole CMD window is attached.
I hope get some help with this, i also got it with CM9 framework.
bump
Sent from my SG Ace
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
zelendel said:
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
Click to expand...
Click to collapse
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
Yes its because of the theme. If yo look at each file it says is broken you will have to remake all those .9.pngs properly. A search will teach you how to do it. You will need the android SDK installed for sure for the .9.png tool.
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
alteredlikeness said:
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
Click to expand...
Click to collapse
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
zelendel said:
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
Click to expand...
Click to collapse
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Adgoosuc said:
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Click to expand...
Click to collapse
The bools XML will be over writted when you flash the theme.
alteredlikeness said:
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Click to expand...
Click to collapse
Ok the 1 px boarder around the image has to be the last thing applied to an image. You can edit it with gimp and 7zip but that breaks the border settings. This is the reason most .9.pngs break when decompiled.

[Q] Path in udatescript and general flashable path

Hey guys, small question.
My path i need to flash something to is
/system/app/systemui.apk/res/drawable-hdpi
My question is do i have to stop at the systemui.apk by replacing that whole .apk of that particular ROM with the new images. Or can I flash past it directly to the drawable-hdpi folder with that path listed above?
If this doesnt make much sense i can try to elaborate. Im new to this stuff
Thanks everyone. Happy Rooting
Almost positive you have to flash the full apk.
thats such a pain.
With every ROM possibly having some minor differences you have to have an individual zip for each ROM.
But thanks a lot
Np, that's why I gave up theming way back when.
fachadick said:
Np, that's why I gave up theming way back when.
Click to expand...
Click to collapse
And just FYI....there our phone uses xhdpi so if you put icons in hdpi, only certain ones will be called to function...

[Q] Rom Development Issues

Hi.
I am trying to build custom rom for Galaxy Note(N7000)
I am trying to build a custom rom with base as stock rom(XXLT5)
I went through some tutorials on XDA, but they were only some basic stuff.
I had lot of questions in mind,and after searching for hours didn't get some help,so posted so maybe some one can help.
I flashed my own rom with some build.prop tweaks and changed wallpaper in framework-res.apk.
But it flashed with no problems.
1] I had lost root but I used Philz kernel(copied all stuff into respective folder)
2]I don't get about the META-INF Folder because I tried to put some s4 mods such as sec.settings.apk,s4 status bar,they also had META-INF but I didn't know what to do with it. I copied the apk of sec.settings into preload /syslink/system/app.
3]When the rom started default-wallpaper didn't changed and any mods didn't applied,so don't know what to do.
Can please any-one say what should I do,and where to put META_INF folder,because all apks aur mods has META_INF folder and will replace every time I put a mod in it.
Please Help Guys.....
please explain it more, didn't get you, what you actually want to do ?
TroubleShooterâ„¢ said:
please explain it more, didn't get you, what you actually want to do ?
Click to expand...
Click to collapse
What is use of META_INF, if want to replace some system apk,there is a meta inf folder in that too, so If I extract it in rom,so it will replace the META_INF folder in the rom.
Azharkanorwala said:
What is use of META_INF, if want to replace some system apk,there is a meta inf folder in that too, so If I extract it in rom,so it will replace the META_INF folder in the rom.
Click to expand...
Click to collapse
META-INF of .apk or zip ?
TroubleShooterâ„¢ said:
META-INF of .apk or zip ?
Click to expand...
Click to collapse
Both.

Categories

Resources