who has used virtuous ten before? need help asap for sense 4 modszsszszszs - HTC Amaze 4G

ive loaded 3 frameowrk files that you need to start making apk edits and i just edited the rosie.apk for 4x5 homescreen grid and app drawer grids with no problem. i didnt add anything extra to my system ui.apk, just replaced files and i get a lot of recompile errors. it doesnt even finish the process.
i dont believe anything i did caused this, cause even if i started with an untouched stock systemui.apk and just try to decompile then recompile(just to test, didnt make changes) the recompile will have errors
anyone know whats up here?
please try to help asap im making a badass sense 4 rom -__-

brolic925t said:
ive loaded 3 frameowrk files that you need to start making apk edits and i just edited the rosie.apk for 4x5 homescreen grid and app drawer grids with no problem. i didnt add anything extra to my system ui.apk, just replaced files and i get a lot of recompile errors. it doesnt even finish the process.
i dont believe anything i did caused this, cause even if i started with an untouched stock systemui.apk and just try to decompile then recompile(just to test, didnt make changes) the recompile will have errors
anyone know whats up here?
please try to help asap im making a badass sense 4 rom -__-
Click to expand...
Click to collapse
Computer wise is every thing up to date ?

Related

[Q] Implement Theme in Rom

Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App

Port Theme; Help, having trouble.

I've been trying desperately to port over this theme to the SG3:
http://forum.xda-developers.com/showthread.php?t=726912
But everything I boot with my modified framework I get a boot hang. So I've given up :S Can anyone help me, please!
barqers said:
I've been trying desperately to port over this theme to the SG3:
http://forum.xda-developers.com/showthread.php?t=726912
But everything I boot with my modified framework I get a boot hang. So I've given up :S Can anyone help me, please!
Click to expand...
Click to collapse
i never had a bootloop with a modded framework. Tell me the procedure you did!
First I tried just copy/pasting the files from the minimal matte theme over to the respective folders inside framework-res.apk and twframework-res.apk.
Then I made it an apk file, and copied it back over, it failed. So I tried unsuccessfully to resign it, and I couldn't get that to work. So I tried to make one up on this site:
http://uot.dakra.lt/kitchen/
But again it failed. I was told to resize all the image files to the correct sizes? Maybe that would make a difference? :S
Because the guide I was looking at was to make your entire ROM, and all I wanted to do is just resign the specific APK
I was watching this video: http://www.youtube.com/watch?v=nWWojkrirek
I've been using this to resign apks...
http://forum.xda-developers.com/showthread.php?t=503007
Mate theme files are like drawable-MDPI and G3 is LDPI so you should try to find same images in MDPI (from mate theme) and in LDPI (from your apk u want to modify) and then overwrite them. It should work tho.
Rekooo said:
Mate theme files are like drawable-MDPI and G3 is LDPI so you should try to find same images in MDPI (from mate theme) and in LDPI (from your apk u want to modify) and then overwrite them. It should work tho.
Click to expand...
Click to collapse
Rekooo can you check this out for me? It's the framework-res.apk that I created. I can't tell what's wrong with it..
Edit:: I think they're all the same image size.. Also, would having extra files be a bad thing? I can't figure out for the life of me what's wrong! :S
Holdon, that was really stupid of me... I fixed the APK because the last one I uploaded I realized the directories were all wrong. But this one still doesn't work.
Edit:: I'm guessing it's signed wrong? Or what could be the issue..
Edit:: Got phone to boot, but everything Force closes.. Omg is this ever the biggest pain in the butt ever???
barqers said:
I've been trying desperately to port over this theme to the SG3:
http://forum.xda-developers.com/showthread.php?t=726912
But everything I boot with my modified framework I get a boot hang. So I've given up :S Can anyone help me, please!
Click to expand...
Click to collapse
No need to Sign. Just resize and replace icons in MDPI and LDPI folders in the framework. Open apk with 7zip and just replace both folders.
arunmcops said:
No need to Sign. Just resize and replace icons in MDPI and LDPI folders in the framework. Open apk with 7zip and just replace both folders.
Click to expand...
Click to collapse
I'm trying I guess I'm mistakenly not resizing some of them properly.. :S I'll keep trying!!!
Edit:: Problem is that on Lestatious ROM the framework-res has weird 20x38 dimensions, and the minimal matte has 25x25 dimensions, it's hard to resize properly. I'm going to try a different base framework.
barqers said:
I'm trying I guess I'm mistakenly not resizing some of them properly.. :S I'll keep trying!!!
Edit:: Problem is that on Lestatious ROM the framework-res has weird 20x38 dimensions, and the minimal matte has 25x25 dimensions, it's hard to resize properly. I'm going to try a different base framework.
Click to expand...
Click to collapse
U can use Free Image Convert and Resize. It is a good software.
arunmcops said:
U can use Free Image Convert and Resize. It is a good software.
Click to expand...
Click to collapse
I will check it out! Thank you for helping me out even though I'm really new to this modding stuff
I will release this theme as soon as I get it working!
Ughhhhhh
Everything works fine but "settings" force closes.. I resized to exactly the same sizes. What could be the problem? This is my apk file:
barqers said:
Ughhhhhh
Everything works fine but "settings" force closes.. I resized to exactly the same sizes. What could be the problem? This is my apk file:
Click to expand...
Click to collapse
It happened few times with me also. Just start from scratch again. it is very tough to catch the problem.
arunmcops said:
It happened few times with me also. Just start from scratch again. it is very tough to catch the problem.
Click to expand...
Click to collapse
I'm taking a break for a bit. Then I'll try again in a bit so frustrating! Lol Should I only change the LDPI or should I modify the LDPI AND the MDPI?
Okay, I've been testing, and you don't even need to resize the images for the LDPI res folder. So I've currently modded the LDPI res folder successfully. I simply use this command to copy existing folders over:
Code:
cd %USERDIRECTORYtowhereyouwantthesourcefilestogo%
Code:
xcopy "C:\userdirectoryTOSOURCEFILES" /U
The /U paramter in windows command prompt makes sure that only files that EXIST in BOTH destination folders will be copied over. Thus eliminating adding extra files and possibly screwing up the framework-res.apk, which I think I was doing before.
I'm going to try modding twframework-res.apk and the MDPI folder and then we'll see how that goes!
Okay, i've successfully modded a lot of things now...
I've got a couple questions:
1. Where are the settings icons? Is it in twframework-res? And where?
2. Where are the dialer button icons? I want a transparent dialer...
3. Where are the contact icons (the default contact icons)
Thank you for ALL your help arunmcops
EDIT:: Okay, I found the settings icons in Settings.apk, I found the dialer button icons in DialerTabActivity.apk, and I haven't modded contacts yet.
Almost done though, I THINK
Finally, finished. Theme released here:
http://forum.xda-developers.com/showthread.php?t=1000411
Too late im testing

[Q] Patching Slayhers CM7 SystemUI For Transparent Status bar, HELP!

Ok For the last week i have been running the beautiful theme Meizu for CM7 theme chooser. Now I have been trying to create my patch for a transparent status bar. I have been using the Patcher App From Here And Using this Tutorial From Here
Now I have the latest apktool.jar downloaded swapped it in with the One the Came with Zdune's Patch because i dont know how outdated the one that came with the patcher is.
Now the Patcher Works Fine For Decompiling the apk, It tells me to make sure i have both the Framework-res and systemui on my desktop.
So i go through all the steps correctly, I even triple double check to see if ive edited the Statusbarservice.smali correctly and ive done this numerous times. Everything runs smoothly, Even compiling and signing the SystemUI.apk but no matter what i do When i push the modded SystemUI.apk over to my phone it doesnt work. I dont know if there is something wrong with the apktool.jar or if its not signing correctly hell i dont even know if its renaming anything while recompiling.(which i have read elsewhere that it is a common issue.)
The reason im asking for help is because im a graphic designer and im pretty good at reading tutorials and debugging. So im not dumb by any means. And i want to design my own theme. And my theme will have a transparent status bar.
I have attached my unmodded systemui and framework if someone would like to help patch this for me, Or even guide through the process to show me what im doing wrong.
BUMP! Really Nobody?!!!

Compile SystemUi.apk / framework-res.apk

Sorry, but I have to do this here, i tried so many things, so many guides, asked people and still...
It doesn't work.... even if I dont change anything
Simple question, I am using apk manager, de/compiling does not show any errors but the apks wont run properly (other apks running smooth, of course with the right options selected)
framework-res.apk
SystemUi.apk
Both on Villain 2.0. I really dont know, tried with dependencies, without, normal, as system app .... and after maybe 50 times compiling I cant anymore...
Thanks in Advance

Decompiling SystemUI.apk problem

I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
tallgrasshawk said:
I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
Click to expand...
Click to collapse
its better to bring the error log here, its located in apk manager directory log.txt
When at the PC I will zip up my apktool and run you through what I do
---------- Post added at 05:08 AM ---------- Previous post was at 04:53 AM ----------
Here is my APKtool folder (I doubt it matters but I keep it in the C drive) C:\apktool
http://dl.dropbox.com/u/22063477/apktool.zip
1. apktool if framework-res.apk (this is the stock framework from whatever rom you are working on)
2. apktool d -f SystemUI.apk (seem to have better luck with using the force command)
3. make your edits
4. apktool b -f SystemUI SystemUIedit.apk
5. clap with glee that after bashing your head into a wall like I have been you can now edit XML's
6. now come help me fix some things in my themes
Don't you also have to install the twframework as well?
tallgrasshawk said:
Don't you also have to install the twframework as well?
Click to expand...
Click to collapse
I didnt have to but may want to avoid some of the phantom file missing errors
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
tallgrasshawk said:
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
Click to expand...
Click to collapse
here is what I did and it seemed to help me get teh basic understanding (changing clock color etc)
there is a app called CSDiff you can use it to compare diff in a folder, so I decompiled two SystemUI's one stock one themed and then took a look at what changed in the XML then can test and recompile. has worked ok for me so far lol
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
tallgrasshawk said:
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
Click to expand...
Click to collapse
this gave me a headache more than helped but may help you out a bit..
http://www.xoomforums.com/forum/mot...guide-xml-breakout-themeing-full-details.html
Hey boosted, have you seen this version of apktool? It allows the decompiling of SystemUI, etc. with no problem. Rename current apktool.jar and name this new one apktool.jar and put it into APKmanager's "other" folder.
Comment deleted

Categories

Resources