Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Page 2 of 2 FirstFirst 12
Results 26 to 44 of 44
Like Tree7Likes
  1. #26  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default

    You cannot use 7zip to achieve anything within an apk or jar file (well besides theming to swap pngs). You need apktool or apk manager to properly decompile, edit and recompile.



    That is the apktool version I use, download link is there. Simply extact the contents (I keep the zip handy so when starting a new project I can simply reextract for a clean slate). Open the folder "PlaceApksHere" and place your apk or jar files to edit within. From within that folder, hold shift then right click and click on "Open command prompt window here" for simplicity. Make sure you place framework-res.apk in there first and "apktool if framework-res.apk" first and go from there.
    Last edited by hlxanthus; 07-26-2012 at 12:53 PM.
    Thanked by:
  2. Thread Author  Thread Author    #27  
    jstntp's Avatar
    AC Forums Android Developer

    Posts
    1,718 Posts
    ROM
    aosp - JellyBean

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    Quote Originally Posted by vernotzy21 View Post
    Well I used 7zip to decompile the apks now without reading anything I'm guessing apktool works pretty much like the command line version of winrar?? Just a little different though
    Maybe something like
    Apktool- compile apklocation
    Or something to that effect?
    But after I decompile the apks with 7zip the files are in a folder
    Do I keep the folder to recompile or did 7zip add the folder?

    Sent from my LS670 using Android Central Forums
    As hlxanthus just stated, I think you are confusing extracting with decompiling. 7zip won't decompile anything. It will extract the files from the apk but there is nothing you can do with the xml files like that.

    I will elaborate a little on his above instructions:

    What you need to do is read up on apktool and download the right files for it. You can get them here.

    Essentially you will create a folder on your C drive to work out of. Call it "apktool" or whatever you want.

    -Place the downloaded, extracted apktool files (apktool.jar - apktool.bat - aapt.exe) in said folder along with the framework-res.apk from the rom you are working with. (Important)

    -Then place any other .apk files you want to modify in the same "apktool" folder as well.

    Open a command prompt and navigate to your "apktool" folder and then you will type these commands:

    Code:
    apktool if framework-res.apk
    - This loads the resources from framework-res.apk to a folder on your hard drive that apktool will use when decompiling and compiling the other .apk's you are modifying. If you switch to different rom to modify, you must run this command again using the framework-res.apk from that rom. You do not need to try to find this loaded file.... there is nothing you need to do with it once it is in place. But just remember to reload it if switching to different rom files within the "apktool" folder.

    (I will use SystemUI.apk as an example for the rest of these instructions so place SystemUI.apk in your "apktool" folder)

    Then type:

    Code:
    apktool d SystemUI.apk
    - This will decompile the .apk and when it's finished, you will have a folder named "SystemUI". You then can modify the xml files, .9.png images (be careful with these), and any other files you wish to change.

    When you all done with your changes type this:

    Code:
    apktool b SystemUI
    - This will compile everything back up. When it is done, go back into that SystemUI folder and you will see two added folder inside. One is "dist" and the other is "build".

    -Open the "dist" folder and you will see a nice looking built SystemUI.apk there.

    -Now for a little trick that will save you the trouble of trying to resign the modified apk. - Grab a copy of the original, unmodified SystemUI.apk and open with your 7zip. Open the new compiled one as well and place next to each other. Now take the META-INF folder from the original SystemUI.apk and place it into the newly compiled SystemUI.apk.

    And that's it! Place the new SystemUI.apk back into your rom and flash the rom. Hopefully it boots up and you get no errors or FC's....... but if you do...... welcome to the world of custom ROMs! Try to grab a logcat and/or look back inside your decompiled .apk to see if you can find where things went wrong.

    Hope this helped - Enjoy!!
    Thanked by:
  3. #28  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default

    ^also what jstntp said. He is the one that did the most to get me rolling. I still recommend that version of apktool I posted about, makes it very easy. Another little trick, once within the folder with all the necessary files, hold shift and right click within the window. That will give you the option to open a command line at that location.
    Thanked by 2:
    jstntp likes this.
  4. #29  

    Default

    Im so happy you guy r takeing the time to teach me
    Thank you so much!!!!
    I cant wait to make a custom rom and release it i have so many ideas
    Im going to customise this one I think....mmmm "eVil RoM" maybe themed for the dark side or "rainbow rom" for the pot lovein hippys out there or iv been thinking about this one for awhile
    "insulting rom" a rom that actually lowers the users self esteem

    Im REALLY happy to learn a new skill
    Now if my time between real life/computer life will allow me

    Where do I get the raw builds from google? Do I just extract the source from sdk
    And I heard that you can only compile rom source from linux?
    Idk I do know I got like a gaabbgillion questions and im adhd
    Sent from my LS670 using Android Central Forums
    Last edited by vernotzy21; 07-26-2012 at 09:15 PM.
  5. #30  

    Default

    Quote Originally Posted by hlxanthus View Post
    You cannot use 7zip to achieve anything within an apk or jar file (well besides theming to swap pngs). You need apktool or apk manager to properly decompile, edit .
    So is that why all the xml code says "null" everywhere because it wasnt properly decompiled?



    Sent from my LS670 using Android Central Forums
  6. Thread Author  Thread Author    #31  
    jstntp's Avatar
    AC Forums Android Developer

    Posts
    1,718 Posts
    ROM
    aosp - JellyBean

    Default

    Quote Originally Posted by vernotzy21 View Post
    So is that why all the xml code says "null" everywhere because it wasnt properly decompiled?



    Sent from my LS670 using Android Central Forums
    Yes, and until you use apktool, its not decompiled whatsoever, only extracted. If you want to build from source, you will have to build cyanogenmod. You won't be able to build from stock source because there is none available for this phone. I would advise taking this stock based rom I have posted in the OP and starting with it. No Linux needed and you can become familiar with things. But to answer your question....... yes, if you build from source, it has to happen in Linux.
    Thanked by:
  7. #32  

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    what do you guys think of the auto apktool over at xda?
    He who stands on toilet is high on pot
  8. #33  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default

    Quote Originally Posted by vernotzy21 View Post
    what do you guys think of the auto apktool over at xda?
    Not used it

    Sent from my Nexus S 4G using Tapatalk 2
    Thanked by:
  9. Thread Author  Thread Author    #34  
    jstntp's Avatar
    AC Forums Android Developer

    Posts
    1,718 Posts
    ROM
    aosp - JellyBean

    Default

    Quote Originally Posted by vernotzy21 View Post
    what do you guys think of the auto apktool over at xda?
    Are you talking about Apk Manager? If so, a lot of people really like that one too. My advice is to go ahead and use the original apktool at least a couple times simply to gain the extra knowledge of how it works. I've always found that learning the cmd prompt method of things before using tools/kitchens proves useful in the long haul. Not to discredit the tools/kitchens that people have created along the way.............. a really cool one to check out is dsixda kitchen. That only runs in Linux or a virtual machine through windows, but it does some really cool stuff.
    Thanked by:
  10. #35  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default

    There is an automated apktool out there but I have not used it myself. The original is easy enough though.

    Sent from my Nexus S 4G using Tapatalk 2
    Thanked by:
  11. #36  

    Default

    How the heck do you guys theme so fast to edit every single PNG and graphic!!! That's crazy....at least from my pov

    Sent from my LG-LS670 using Android Central Forums
    He who stands on toilet is high on pot
  12. #37  
    jonny5449's Avatar
    AC Citizen

    Posts
    2,571 Posts
    ROM
    Cm7/Cm9/Cm10

    Default

    Quote Originally Posted by vernotzy21 View Post
    How the heck do you guys theme so fast to edit every single PNG and graphic!!! That's crazy....at least from my pov

    Sent from my LG-LS670 using Android Central Forums
    What do u mean

    Sent from my LG-LS670 using Tapatalk 2
  13. #38  

    Default

    Quote Originally Posted by vernotzy21 View Post
    How the heck do you guys theme so fast to edit every single PNG and graphic!!! That's crazy....at least from my pov

    Sent from my LG-LS670 using Android Central Forums
    Certain Images are needes to be themed, and once you do that, its straight forward from there. Thry each have a name which makes everything easier

    Sent from my LG-VM670 using Tapatalk 2
  14. #39  

    Default

    Quote Originally Posted by jonny5449 View Post
    What do u mean

    Sent from my LG-LS670 using Tapatalk 2
    After decompileing framework Res I looked at all the PNG graphics and to open up each one and edit it with gimp or paint would take me an eternity

    Sent from my LG-LS670 using Android Central Forums
    He who stands on toilet is high on pot
  15. #40  

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    Can someone email the rooted version of stock zvj. The link above didnt work for me
    rustypeters3.14@gmail.com
    i would appreciate it.
  16. #41  

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    can someone please email me the zvj stock rooted rom base
    to
    rustypeters3.14@gmail.com
  17. #42  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    What you want is not possible with the current root methods. If you want to end up with rooted zvj use this [How-To] Automated Rooting of LS670ZVD/ZVH/ZVJ
  18. #43  
    thewraith420's Avatar

    Posts
    1,954 Posts
    ROM
    Changes Daily

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    Quote Originally Posted by Rustymp View Post
    can someone please email me the zvj stock rooted rom base
    to
    rustypeters3.14@gmail.com



    Quote Originally Posted by hlxanthus View Post
    What you want is not possible with the current root methods. If you want to end up with rooted zvj use this [How-To] Automated Rooting of LS670ZVD/ZVH/ZVJ
    Umm I don't understand..... Your own danterom was based on the community rom he's asked for a link to....


    Sent from my Evo V 4G using Tapatalk 2
  19. #44  
    hlxanthus's Avatar

    Posts
    1,790 Posts
    ROM
    RasbeanJelly/DanteRom v4

    Default Re: [COMMUNITY ROM][2.3.3][ZVJ] Stock Rooted ROM Base

    Ahhh, wow. I can only claim lack of sleep. I was thinking he wanted a rooted update.zip like other devices have (guess I have been on other devices too long) more like an odin package. I will look through my files and see if I have this and upload it for you @Rustymp

    Edit: I found it and have set it to upload into my dropbox account. Below is a link for it but it will take about an hour to upload.

    Download - ZVJ-stock-rooted-base_unsigned.zip
Page 2 of 2 FirstFirst 12

Posting Permissions