Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mm1983
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Aug 2010
Default [Q] Modifying an existing apk

I had posted this in another forum but did not get any reply. Its a noob question so please bear with me. I wanted to know how to go about modifying an existing apk file. Below is what I am doing.

1. Copied the .apk file to my computer
2. Used apk_manager to decompile the apk
3. Made a small change in one of the xml files
4. Used apk_manager to recompile the apk and the sign it
5. Sideload it using the Sideload Wonder Machine

I am not able to sideload the app. Do I need to uninstall the existing app before sideloading its modified version? Or just giving it a new name would work? Thanks.

-mm
 
nbs11
Old
#2  
Senior Member
Thanks Meter 149
Posts: 514
Join Date: Jul 2010
Location: Chicago
Quote:
Originally Posted by mm1983 View Post
I had posted this in another forum but did not get any reply. Its a noob question so please bear with me. I wanted to know how to go about modifying an existing apk file. Below is what I am doing.

1. Copied the .apk file to my computer
2. Used apk_manager to decompile the apk
3. Made a small change in one of the xml files
4. Used apk_manager to recompile the apk and the sign it
5. Sideload it using the Sideload Wonder Machine

I am not able to sideload the app. Do I need to uninstall the existing app before sideloading its modified version? Or just giving it a new name would work? Thanks.

-mm
Try using adb instead of Sideload Wonder Machine. just CD your android sdk tools folder and type
"adb install ~path to file"

or on mac

"./adb install ~path to file"


 
mm1983
Old
(Last edited by mm1983; 24th August 2010 at 01:58 AM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Aug 2010
Thanks. I tried it, below is the output:
* daemon not running. starting it now *
* daemon started successfully *
1172 KB/s (464719 bytes in 0.387s)
pkg: /data/local/tmp/GMMM.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]

I guess this means I need to uninstall the existing application. The app I am trying to tweak is Gallery3D.apk. I made the change and remamed it GMMM.apk. The original app also had an .odex file which I did not touch.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...