1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Trying to make a theme/what am I doing wrong?

Discussion in 'UltimateDroid' started by xkape, Sep 3, 2010.

  1. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    I can't recompile the framework-res.apk on UD 8.0 I believe it's due to the use of 9png files with the guides missing but I can't say for sure. I can't even decompile it, change nothing and recompile it. I'm guessing it's due to that because I can change the other things just fine. Like vending.apk, I make my changes, recompile it, sign it and install it. No issues.
  2. forkup
    Offline

    forkup New Member

    Joined:
    Oct 31, 2009
    Messages:
    317
    Likes Received:
    0
    Trophy Points:
    0
    Are you using eclipse or using the build process from source? More info please...
  3. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    I'm just doing what I know how to do. (Yes I am a noob when it comes to code). So, I pull the framework-res.apk out of UD 8.0, I put that into the "place-here-for-modding" folder in apkmanager. I then decompile it (I have adb by the way). I go in and change all the icons and then go tothe various xml files I want to change and make my edits. Then when I try to recompile the file, it errors out. All the errors are for the png files not being valid. My xml changes seem to be ok.

    Gimmie a minute and I will go do it again and type out one of the errors.
  4. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    C:\Users\Jason\Desktop\Apk_Manager_4.8\other\..\out\res\values\public.xml:3215: error: Public symbol drawable/status_bar_background declared here is not defined


    SIDENOTE: There is no space between ou and t in "out". It just appears that way when I post this reply. If I edit it, it looks right, just doesn't when it posts.
  5. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    no one with help?
  6. nyghtryder_9
    Offline

    nyghtryder_9 New Member

    Joined:
    Aug 28, 2010
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    I'm a noob but I just dabbled with the framework-res APk. Pulled it opened with apkmanager,opened in 7zip, made some changes to the 9pngs, then simply pushed the whole framework ack back with ADB. I never decompiled or recompiled. And it worked perfect. I didn't make any changes to the xml though.
  7. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    Gave that a shot. When I go to close 7zip and it asks me if I want to update the archive, I select "ok" and it tells me "can not update file" c:\Users\Jason\AppData\Temp\7zxxxx\framework-res.apk
  8. ehunter
    Offline

    ehunter New Member

    Joined:
    Sep 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Did you ever find a solution to the 7zip "Can not update file" ?

    I have the same issue and its driving me nuts.
  9. luigi90210
    Offline

    luigi90210 New Member

    Joined:
    Aug 6, 2010
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    0
    is the file in a zip file cause if it is you have to bring it out of the zip, edit it, and than rezip the file replacing the old one

    i have been using that method for a while now and its working for me except i use winrar but 7z is the same thing pretty much

    another trick i have seen people use is they change the extention from .apk to .zip and they use the default file explorer to edit files

    hope that helps
  10. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    hey xkape i know you're trying to theme with apk manager, but have you considered metamorph. from what i'm reading you don't really care about the method just as long as it works right? you can use metamorph to theme images as well as apply any xml changes you've made....i do it all the time after i install a new ROM
  11. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    I have no idea how to use metamorph. I have it installed due to putting on a different battery icon set. But as far as using it to make a theme? No idea how on that one.

    Is there an "instruction manual"? Always good to learn new things.

    ehunter... I went back to apkmanager to do it. sneakey_zekey (user on here) informed me of three images to replace before recompiling and it worked fine.
  12. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    I'll do a write up on how to do metamorph because you're right, trying to find information on how to use it is almost impossible haha
  13. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    Sounds good to me. Let me know when it's done and where you posted it. I'll put it to use. :)
  14. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    How to Use Metamorph - D-Com Forums

    There you go :) I was bored so I wrote it up right now. Don't be turned off by the length of the post, it's actually a really simple process, and I find it's the fastest way to theme
  15. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    That's definately a writeup..lol I will try it tonight when I get home but, I did read thru the entire thing. Very good job I would say. Easy to follow along. I'll put it to good use. You might want to write that up for the How-To section so it doesn't get buried in this thread over time.

    And thank YOU for taking the time to do it in the 1st place!
  16. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    You're welcome and will do. Let me know if you run into any issues.
  17. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    Hey I meant to ask you.. does metamorph only work with things in /system? Reason I ask is, if I moved an app over to the SD card it wouldn't be in /system/app anymore.
  18. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    No you're not moving the app over to the sd card, you're just copying it so you know which files to edit. If you already know the files and file names you dont have to do that step. The apk remains in /system/app/.
  19. xkape
    Offline

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,876
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    OH-IO
    No what I mean is, if I have an app installed on my SD card to save memory on my phone, can I theme it using metamorph?

    Or are you saying that even if I move an app over to my SD card, it still stays in the /system/app folder?

    I have 0 apps installed on my SD card but others do and if I make a theme I need to account for that.... or do i?
  20. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    Oh I see. Yeah it would have to be on your phone, and not your SDcard. That's one con of Metamorph. But can update.zips touch apks that are in your sdcard?