DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Help editing .apk files?

  1. budmonster
    Guest
    budmonster's Avatar
    #1

    Help editing .apk files?

    Is there a proper way to edit apk files in general? I pulled the framework-res.apk from my phone the other night to change the sliders on my lockscreen. I used winrar to zip the framework apk and then went in replaced some images, none of them where .9 images. After I swapped images, I pushed the framework back using ADB and my phone instantly reboots every time. When my droid comes back online, the images changed so i figured it worked. But now I'm experiencing some problems, such as, I cant install anything from the Market and, my installed applications have seem to reset to their default settings and I get random FCs. That's why I'm wondering if I'm doing something wrong or if there is any easier, correct way to edit APK's? Could it be that I'm on a CM rom and that's giving me problems? I don't know.

    Also, I belive if you edit third party apps like Tweetcaster, Rom Manager, etc. you have to auto-sign them, correct? But stock apps you dont?

    Thanks,
    Bud
  2. mgx
    mgx is offline
    Junior Droid
    mgx's Avatar
    Member #
    39510
    Join Date
    Feb 2010
    Posts
    27
    Phone
    Enter Current Phone Model Here
    #2
    if its just image themeing youre doing to framework-res just pull the apk and put it on your sdcard and create a metamorph theme that morphs the sdcard copy then reboot the phone into recovery and pull the framework from your sdcard and push it back into system/framework also make sure you m,ount /system/ before pushing when in recovery
  3. Beta Team
    thebowers's Avatar
    Member #
    8519
    Join Date
    Nov 2009
    Location
    Iowa
    Posts
    2,548
    Twitter
    dabowerman
    Phone
    Rooted Droid, OC @ 1.1 Ghz
    DroidForums.net Theme Developer
    Premium Member
    #3
    Open the .apk with 7zip and move the files over to the open archive. Never change .zip and unzip. As stated before you might want to try this through recovery. On the other hand I am doing pushing the framework a couple times an hour to test my theme on CM with no issue. Now if you are putting too many files in there, that will cause issues.

    Edit: For third party apps to get updates they will need to be resigned and don't have to be moved to /system/app to be themed.
    If you like what I do, thanks



    Your can follow me as follows

    @dabowerman - Twitter
    Derek Bower - G+ - this is where I will be @ the most and where stuff gets released first.

    Theming Guides that might come in handy
    Theming Guide for Progress Bar
    Notification Text Color Change (How to)
    Theming Guide for System Text
  4. budmonster
    Guest
    budmonster's Avatar
    #4
    Quote Originally Posted by mgx View Post
    if its just image themeing youre doing to framework-res just pull the apk and put it on your sdcard and create a metamorph theme that morphs the sdcard copy then reboot the phone into recovery and pull the framework from your sdcard and push it back into system/framework also make sure you m,ount /system/ before pushing when in recovery
    Not to sure how to write up the mm file. I've done real simple mm stuff.
  5. mgx
    mgx is offline
    Junior Droid
    mgx's Avatar
    Member #
    39510
    Join Date
    Feb 2010
    Posts
    27
    Phone
    Enter Current Phone Model Here
    #5
    Quote Originally Posted by budmonster View Post
    Quote Originally Posted by mgx View Post
    if its just image themeing youre doing to framework-res just pull the apk and put it on your sdcard and create a metamorph theme that morphs the sdcard copy then reboot the phone into recovery and pull the framework from your sdcard and push it back into system/framework also make sure you m,ount /system/ before pushing when in recovery
    Not to sure how to write up the mm file. I've done real simple mm stuff.
    mm file is all folder hierarchy WAAAYYYY simple, if you need help pm me but try to download a mm theme and compare the theme to the apps internals (file placement etc) first

    alternatively you can also do what the other person above suggested
  6. brusslesprouts's Avatar
    Member #
    46400
    Join Date
    Mar 2010
    Location
    NOR*CAL
    Posts
    82
    Phone
    Droid
    #6
    were do i get the framework.res from i dont see it on my phone?

  7. Droid Ninja
    cupfulloflol's Avatar
    Member #
    12086
    Join Date
    Dec 2009
    Posts
    1,898
    Liked
    65 times
    Phone
    Galaxy Nexus
    #7
    Quote Originally Posted by brusslesprouts View Post
    were do i get the framework.res from i dont see it on my phone?
    /system/framework/framework-res.apk
  8. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #8
    apks can be re-edited a few different ways. The easiest example is by replacing the individual files within the apk by dragging and dropping the files in a program such as 7zip or winrar. In this manner the signature of the apk isnt broken. If you must unpack the apk file then when you pack it back up you must resign the app to have in install successfully. Do a google search for Stericson's apk sign application (its over on xda forums). I usually prefer the first way, but have also done the second method and it works as well.
  9. Senior Droid
    cplus's Avatar
    Member #
    18918
    Join Date
    Dec 2009
    Posts
    234
    Phone
    ROM'd DROID
    #9

    or...

    you can see my post #90 here:

    http://www.droidforums.net/forum/dro...-widget-9.html

    It'll point you also to xda for a tool posted by MixPix which is a zip signing tool modified to do apks. It works perfect on my Win 7 x64. Just make sure you install proper JRE JDK.. You will read in the post I've linked to. Good luck.
  10. budmonster
    Guest
    budmonster's Avatar
    #10
    thanks for the input fellas
Page 1 of 2 12 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. help editing apk png files?
    By starscream in forum Android Themes
    Replies: 19
    Last Post: 12-17-2010, 12:19 AM
  2. Tube-downloader App & ASTRO - need help editing the files
    By drunkpark in forum Android Applications
    Replies: 1
    Last Post: 04-19-2010, 09:09 PM
  3. Editing drawable files in .apk files
    By aufdemrand in forum Android App Developers
    Replies: 0
    Last Post: 01-10-2010, 12:22 AM
  4. Application for Editing .csv files
    By geneticflea in forum Android Applications
    Replies: 5
    Last Post: 01-08-2010, 12:49 PM
  5. Blackberry Files Files Transferred to DROID
    By tblevins in forum Android Tech Support
    Replies: 0
    Last Post: 11-15-2009, 07:54 PM

Search tags for this page

edit apk files
,
file extension smali
,
how to open and edit apk file
,

how to open smali files

,
how to pack and unpack apk files
,
how to rewrite apk files
,

how to theme apk files

,

open smali file

,

smali file

,
theme apk files
Click on a term to search our site for related topics.
Find us on Google+