Go Back   Android Forums > Android Phones > LG Esteem > Esteem - All Things Root

Like Tree11Likes

test: Reply
 
LinkBack Thread Tools
Old March 24th, 2012, 06:35 PM   #1 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default [Guide] How-To Properly Decompile and Recompile apk's with apktool

How-To: Decompile/Recompile apk's with ApkTool

------------------------------------------------------------------------------------------------------------
Requirements:

ApkTool
Java JDK/JRE 32 bit
Basic Cmd/terminal knowledge

------------------------------------------------------------------------------------------------------------
Download ApkTool here

ApkTool.zip

first you need to extract that zip folder to anywhere you choose, preferably on root of c/drive ie: C:/android/apktool extracting the files to 'apktool' folder

Now place the STOCK framework-res.apk & whatever other apk's you would like to modify into the 'apktool' folder

------------------------------------------------------------------------------------------------------------
Getting to CMD directory


Open up a Cmd Prompt (terminal) and get to the 'apktool' directory ie:

Quote:

Your cmd will probly look like this..

C:\users\yourname>

so type in

cd.. (yes include the '..' and press enter after you type each command)

this will get you to back directory so now you will see

C:\users>

so type again

cd..

you should now see this:

C:\>

now type in:

cd 'apktoo'l/'directory'

for me it looks like:

cd android/apktool

now you should see:

C:/android/apktool>

and you are in the apktool directory
------------------------------------------------------------------------------------------------------------
Installing Framework

Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:

apktool if framework-res.apk

this will install the devices framework to your system (need to do this)

------------------------------------------------------------------------------------------------------------
Decompiling

now to decompile the apk you want to edit.. type this:

apktool d framework-res.apk framework1

or

apktool d music.apk music

music.apk is the apk your decompiling
music is the folder you're creating for the decompiled apk

now make your edits DO NOT Change/Edit ANY PNG's

------------------------------------------------------------------------------------------------------------
Recompiling/Finished Product

now to recompile your new apk type this:

apktool b music music-new.apk

or

apktool b framework1 framework-res-new.apk

framework1 is the folder with your edited files
framework-res-new.apk is your new apk file

Now we are NOT done... we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature

use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk

now the apk is ready to flash with your new changes
------------------------------------------------------------------------------------------------------------

Hope this helped some of you new themers out there!!!

Advertisements
__________________
~It's only impossible if you stop to think about it!!
Donate Link - If you like/appreciate my work, feel free to donate

Site Rules & Guidelines and Android FAQ's
LDrifta is offline  
Last edited by LDrifta; March 25th, 2012 at 02:34 PM.
Reply With Quote
The Following 19 Users Say Thank You to LDrifta For This Useful Post:
aaronmy (August 15th, 2012), Chingling (August 1st, 2012), Curster (September 24th, 2012), dangerjaison (May 13th, 2012), Dr0idWhisperer (May 4th, 2012), dubtee (September 15th, 2012), egingell (September 19th, 2012), Fuzzy13 (March 24th, 2012), gbiggie (March 24th, 2012), ghaffar (September 5th, 2014), horsecharles (August 15th, 2012), hvrc (May 26th, 2012), JETMAKERO (March 24th, 2012), Kajangist (March 6th, 2013), meaintsmart (September 26th, 2012), mrpnut (March 25th, 2012), nightwing90 (November 28th, 2012), scary alien (December 16th, 2012), ShinySide (March 24th, 2012)
sponsored links
Old March 24th, 2012, 07:20 PM   #2 (permalink)
La patience et le pardon
 
gbiggie's Avatar
 
Join Date: Sep 2011
Location: Detroit,Michigan
Gender: Male
Posts: 6,903
 
Device(s): Samsung Galaxy S IV
Carrier: T-Mobile

Thanks: 2,640
Thanked 2,690 Times in 1,854 Posts
Thumbs up

You GO BOI
gbiggie is offline  
Reply With Quote
The Following User Says Thank You to gbiggie For This Useful Post:
LDrifta (March 24th, 2012)
Old March 24th, 2012, 07:22 PM   #3 (permalink)
Disabled
 
Join Date: Jul 2011
Location: Palm Bay, Florida
Posts: 5,504
 
Device(s): Huawei Ascend-PlayfulGod's CM7.2 0912 @729 LG Esteem(stock) LG Esteem- running #2
Carrier: Metro

Thanks: 944
Thanked 2,683 Times in 1,460 Posts
Default

I extracted to my desktop then moved adb and related files to the platform tools folder inside the apk manager file.

And just a tip on to know if you did everything right is, when you run apk manager and the window pops up if a green android and "apk manager" does show in the first window when you start it up it wasn't set up right.
ShinySide is offline  
Reply With Quote
Old March 24th, 2012, 07:35 PM   #4 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ShinySide View Post
I extracted to my desktop then moved adb and related files to the platform tools folder inside the apk manager file.

And just a tip on to know if you did everything right is, when you run apk manager and the window pops up if a green android and "apk manager" does show in the first window when you start it up it wasn't set up right.
this method is just for on the computer no adb required...
LDrifta is offline  
Reply With Quote
Old March 25th, 2012, 12:45 PM   #5 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Cleaned up the op a little
LDrifta is offline  
Reply With Quote
The Following User Says Thank You to LDrifta For This Useful Post:
gbiggie (March 25th, 2012)
Old March 25th, 2012, 04:40 PM   #6 (permalink)
Member
 
Join Date: Jan 2011
Posts: 247
 
Device(s): LG G2, LG Esteem,Galaxy Indulge sch-r910,LG Optimus M MS690
Carrier: Not Provided

Thanks: 82
Thanked 21 Times in 16 Posts
Default

Ok..

I must be missing something.

Does the system framework .apk have to be downloaed from another location.
__________________
**************************
This is not my first rodeo. Ha-Ha
**************************
BRIAN5337 is offline  
Reply With Quote
Old March 25th, 2012, 04:48 PM   #7 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by BRIAN5337 View Post
Ok..

I must be missing something.

Does the system framework .apk have to be downloaed from another location.
what do you mean?
LDrifta is offline  
Reply With Quote
Old March 25th, 2012, 04:59 PM   #8 (permalink)
Senior Member
 
HereticSins's Avatar
 
Join Date: Nov 2011
Location: Palm Springs, California.
Gender: Male
Posts: 1,507
 
Device(s): (In Transit) Samsung Galaxy Nexus, (Sold) LG Motion, (Sold) LG Esteem, (Sold) LG Dare.
Carrier: Tmobile Prepaid.

Thanks: 114
Thanked 278 Times in 192 Posts
Default

The system framework apk gets extracted from whatever ROM you want to theme or modify.
__________________
Noob Themer / Support / Proud Dad on 8/22/12.

HereticSins is offline  
Reply With Quote
Old March 25th, 2012, 05:14 PM   #9 (permalink)
Member
 
Join Date: Jan 2011
Posts: 247
 
Device(s): LG G2, LG Esteem,Galaxy Indulge sch-r910,LG Optimus M MS690
Carrier: Not Provided

Thanks: 82
Thanked 21 Times in 16 Posts
Default

Ok..
If i understand correctly.
Say i wanted to decompile any .apk to poke around the files.

When i put the APKtool in the correct directories i then typed in command line the command calling on the apktool if framework-res.apk.

It doesn't find it in the folder.So i downloaded framework-res.apk from another location and did command again,then it saw it and decompiled it.

I'm sure already you can conclude i'm not really familiar with this. Any help will be useful
BRIAN5337 is offline  
Reply With Quote
Old March 25th, 2012, 05:20 PM   #10 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by BRIAN5337 View Post
Ok..
If i understand correctly.
Say i wanted to decompile any .apk to poke around the files.

When i put the APKtool in the correct directories i then typed in command line the command calling on the apktool if framework-res.apk.

It doesn't find it in the folder.So i downloaded framework-res.apk from another location and did command again,then it saw it and decompiled it.

I'm sure already you can conclude i'm not really familiar with this. Any help will be useful
lol you need to have the framework apk in same directory ask apktool.bat, apktool.jar and aapt.something.. lol
your not installing it to your phone lol to your computers system

EDIT: i apologize, let me explain a little further.. when decompiling an apk file, especially a system required apk such as settings, systemui, etc.. you NEED to install the framework resources before decompiling so it will properly recompile

so you dont NEED to do it everytime, but you must do it the first time.. as long as it installs than you will be ok
LDrifta is offline  
Last edited by LDrifta; March 25th, 2012 at 05:25 PM.
Reply With Quote
sponsored links
Old March 25th, 2012, 05:35 PM   #11 (permalink)
Member
 
Join Date: Jan 2011
Posts: 247
 
Device(s): LG G2, LG Esteem,Galaxy Indulge sch-r910,LG Optimus M MS690
Carrier: Not Provided

Thanks: 82
Thanked 21 Times in 16 Posts
Default

Quote:
Originally Posted by ldrifta View Post
lol you need to have the framework apk in same directory ask apktool.bat, apktool.jar and aapt.something.. lol
your not installing it to your phone lol to your computers system

EDIT: i apologize, let me explain a little further.. when decompiling an apk file, especially a system required apk such as settings, systemui, etc.. you NEED to install the framework resources before decompiling so it will properly recompile

so you dont NEED to do it everytime, but you must do it the first time.. as long as it installs than you will be ok
Ok i did that and its working now. Thanks

Is there some sensitive parts of the .APK that might hender it?

EDIT: Oh im glad i can bring you such laughter..with my questions. ha ha
Thanks again
BRIAN5337 is offline  
Last edited by BRIAN5337; March 25th, 2012 at 05:40 PM.
Reply With Quote
Old March 25th, 2012, 06:30 PM   #12 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by BRIAN5337 View Post
Ok i did that and its working now. Thanks

Is there some sensitive parts of the .APK that might hender it?

EDIT: Oh im glad i can bring you such laughter..with my questions. ha ha
Thanks again
what do you mean by that? ^^ Bold
LDrifta is offline  
Reply With Quote
Old March 25th, 2012, 08:54 PM   #13 (permalink)
Member
 
Join Date: Jan 2011
Posts: 247
 
Device(s): LG G2, LG Esteem,Galaxy Indulge sch-r910,LG Optimus M MS690
Carrier: Not Provided

Thanks: 82
Thanked 21 Times in 16 Posts
Default

Quote:
Originally Posted by ldrifta View Post
what do you mean by that? ^^ Bold
This may have a multi part answer.
When you mess with parts of a ROM it causes the ROM to boot-loop at times?

also some .APK ,If its a pay app parts of the registration file may cause it mess up?
BRIAN5337 is offline  
Reply With Quote
Old March 26th, 2012, 01:48 AM   #14 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by BRIAN5337 View Post
This may have a multi part answer.
When you mess with parts of a ROM it causes the ROM to boot-loop at times?

also some .APK ,If its a pay app parts of the registration file may cause it mess up?
depends on wat yu edit.. lol important system files can cause a boot loop..
LDrifta is offline  
Reply With Quote
Old March 26th, 2012, 03:36 PM   #15 (permalink)
Member
 
Join Date: Jan 2011
Posts: 247
 
Device(s): LG G2, LG Esteem,Galaxy Indulge sch-r910,LG Optimus M MS690
Carrier: Not Provided

Thanks: 82
Thanked 21 Times in 16 Posts
Default

Quote:
Originally Posted by ldrifta View Post
depends on wat yu edit.. lol important system files can cause a boot loop..
I will have to find the time to learn where those files are located in each .APK and know what different changed can be done. Lol


Thank you
BRIAN5337 is offline  
Reply With Quote
Old March 26th, 2012, 09:32 PM   #16 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by BRIAN5337 View Post
I will have to find the time to learn where those files are located in each .APK and know what different changed can be done. Lol


Thank you
yeah there not really a way to learn that specific thing at one time.. it's kinda a leran as you go deal with each ind. apk lol some are harder to edit than others..
LDrifta is offline  
Reply With Quote
The Following User Says Thank You to LDrifta For This Useful Post:
BRIAN5337 (March 26th, 2012)
Old April 6th, 2012, 10:28 AM   #17 (permalink)
New Member
 
Join Date: Apr 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default stuck in the last step

i'm stuck at the end of this tutorial... i'm able to recompile my apk but... you said we can't use it because it was obviously signed... but whenever i copy the resources.arcs and manifest file into the 'original' apk... and then i try to reinstall it... i keep getting " INSTALL_PARSE_FAILED_NO_CERTIFICATES...

please help... all i'm trying to do is this application i'm assessing has the debugging statement listed as 'false'... all i'm trying to do is
1. decompile
2. modify debbugable to TRUE
3. recompile
4. install and analyze the logcat

HELP TIA
chessplaya2010 is offline  
Reply With Quote
Old April 6th, 2012, 10:06 PM   #18 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by chessplaya2010 View Post
i'm stuck at the end of this tutorial... i'm able to recompile my apk but... you said we can't use it because it was obviously signed... but whenever i copy the resources.arcs and manifest file into the 'original' apk... and then i try to reinstall it... i keep getting " INSTALL_PARSE_FAILED_NO_CERTIFICATES...

please help... all i'm trying to do is this application i'm assessing has the debugging statement listed as 'false'... all i'm trying to do is
1. decompile
2. modify debbugable to TRUE
3. recompile
4. install and analyze the logcat

HELP TIA
what app are you trying to do this to? for what rom and what kernel do you have?
LDrifta is offline  
Reply With Quote
Old April 7th, 2012, 11:16 AM   #19 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Everytime I try to compile an APK I get an error.

Im not doing it through ADB, Im running it all on my computer and editing them first and then pushing them to the phone. But I cant get an apk to work because I cant compile???
__________________
Suckaface
Fuzzy13 is offline  
Reply With Quote
Old April 7th, 2012, 02:33 PM   #20 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by Fuzzy13 View Post
Everytime I try to compile an APK I get an error.

Im not doing it through ADB, Im running it all on my computer and editing them first and then pushing them to the phone. But I cant get an apk to work because I cant compile???
what apk are you trying to edit? if it's non-stock than you will have issues lol you need to use stock apk, and ONLY edit xml files... DO NOT edit your png files when decompiling/recompiling!!!
LDrifta is offline  
Reply With Quote
sponsored links
Old April 7th, 2012, 02:38 PM   #21 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Quote:
Originally Posted by ldrifta View Post
what apk are you trying to edit? if it's non-stock than you will have issues lol you need to use stock apk, and ONLY edit xml files... DO NOT edit your png files when decompiling/recompiling!!!

I started using AutoApktool and it's working a lot better. I like having the stand alone interface too. I wasn't using Apktool before, it was ApkEdit and that was the one that I couldn't compile with. I tried to compile with Tool and it worked fine but I liked having the interface from which I came across AutoApk and it's much easier. No commands and all that.
Fuzzy13 is offline  
Reply With Quote
Old April 19th, 2012, 09:08 AM   #22 (permalink)
New Member
 
Join Date: Apr 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Question

Is there a problem when it comes to decompling Phone.apk?

Code:
C:\apk>apktool if framework-res.apk
I: Framework installed to: C:\Users\MM\apktool\framework\1.apk

C:\apk>apktool d Phone.apk
I: Baksmaling...
testI: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\MM\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020350
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b0021
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x020b00a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_width, value=0x020b008b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x020b008a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x02020187
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b0094
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020350
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x020204d6
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020200f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020354
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b0021
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0202003f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
text, value=0x020800ae
W: Could not decode attr value, using undecoded value instead: ns=android, name=
text, value=0x02080172
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x020202d4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
button, value=0x0202011c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cf
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0201002b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0202013f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020349
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0202034b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0202034a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_above, value=0x02090032
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_above, value=0x02090032
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020114
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020114
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020114
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020356
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020354
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020357
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020357
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020357
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020355
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020354
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020356
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cc
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cd
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204d4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020399
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x020204d6
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b00e0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x02020354
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cc
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x020204cd
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x020204d4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020399
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020344
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x020b00a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_width, value=0x020b008b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x020b008a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x02020187
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x020a0026
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b0094
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x020a0036
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020101
W: Could not decode attr value, using undecoded value instead: ns=android, name=
divider, value=0x02020498
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x020204ca
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x020b00e4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020430
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_marginRight, value=0x020b00e5
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x020204d0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0202059a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0202056a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x020205a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0202059f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x02020569
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
pagenotfound is offline  
Last edited by pagenotfound; April 19th, 2012 at 10:04 AM.
Reply With Quote
Old April 19th, 2012, 11:40 PM   #23 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by pagenotfound View Post
Is there a problem when it comes to decompling Phone.apk?

Code:
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
EDIT: which framework did you use? from stock rom or modded rom?
LDrifta is offline  
Last edited by LDrifta; April 19th, 2012 at 11:42 PM.
Reply With Quote
Old August 15th, 2012, 07:04 AM   #24 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Say you are editing in the values folder which turns into the resources file when compiled, and you make all your edits. Let's say you make some edits in the colors and public folder. You compile and transfer the resources over to your current fw and push it. Well you find that one of the edits in the colors folder isn't what you want.


Since you must use the stock fw and not the one you just edited do you have redo all your edits even though you want to change just one thing? You go back to change your edits in the colors xml, you have to change everything right?

If there an easier way to do this or am i doing it wrong?




Editing xmls in the layout or drawables folder is easier because they don't compile into one file like the resources. You can just edit it and compile and drag the xml over to your fw and if it's not what you want then all you have to do is edit that one file.
Fuzzy13 is offline  
Reply With Quote
Old August 15th, 2012, 07:57 AM   #25 (permalink)
Disabled
 
Join Date: Jul 2011
Location: Palm Bay, Florida
Posts: 5,504
 
Device(s): Huawei Ascend-PlayfulGod's CM7.2 0912 @729 LG Esteem(stock) LG Esteem- running #2
Carrier: Metro

Thanks: 944
Thanked 2,683 Times in 1,460 Posts
Default

Someone help me with this stupid error. Its driving me insane. Ive downgrade and re-upgraded apktool, used different mms and framework-res', changed the ic_mms_drm_protected.png to 50 million things, deleted it, and even switched to Easy apk disassembler (which my the way uses apktool) and so on and can not get past this dumb error

Quote:
C:\apk>apktool b mmsesteem Mms-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apk\mmsesteem\res\drawable\ic_mms_drm_protected .PNG: error: File is case-inse
nsitive equivalent to: C:\apk\mmsesteem\res\drawable-hdpi\ic_mms_drm_protected.p
ng
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Adam\AppData\Local\Temp\AP
KTOOL6810626720324570876.tmp, -I, C:\Users\Adam\apktool\framework\1.apk, -S, C:\
apk\mmsesteem\res, -M, C:\apk\mmsesteem\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:302)
at brut.androlib.Androlib.buildResources(Androlib.jav a:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Adam\AppData\Local\Temp\APKTOOL68106267203245 70876.tmp, -I, C:\Users\Adam\a
pktool\framework\1.apk, -S, C:\apk\mmsesteem\res, -M, C:\apk\mmsesteem\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

C:\apk>
ShinySide is offline  
Reply With Quote
Old August 15th, 2012, 08:28 AM   #26 (permalink)
Senior Member
 
Johnny Crapple's Avatar
 
Join Date: Jul 2011
Location: Texas
Posts: 1,017
 
Device(s): Samsung Galaxy S4
Carrier: T-Mobile

Thanks: 441
Thanked 257 Times in 214 Posts
Default

Quote:
Originally Posted by ShinySide View Post
Someone help me with this stupid error. Its driving me insane. Ive downgrade and re-upgraded apktool, used different mms and framework-res', changed the ic_mms_drm_protected.png to 50 million things, deleted it, and even switched to Easy apk disassembler (which my the way uses apktool) and so on and can not get past this dumb error
update aapt is what I found with a little googlin

Sent from my typewriter.
Johnny Crapple is offline  
Reply With Quote
Old August 15th, 2012, 08:36 AM   #27 (permalink)
Disabled
 
Join Date: Jul 2011
Location: Palm Bay, Florida
Posts: 5,504
 
Device(s): Huawei Ascend-PlayfulGod's CM7.2 0912 @729 LG Esteem(stock) LG Esteem- running #2
Carrier: Metro

Thanks: 944
Thanked 2,683 Times in 1,460 Posts
Default

Quote:
Originally Posted by Johnny Crapple View Post
update aapt is what I found with a little googlin

Sent from my typewriter.
Updated it after I posted. Still the same error
ShinySide is offline  
Reply With Quote
Old August 15th, 2012, 10:49 AM   #28 (permalink)
Member
 
gamer30168's Avatar
 
Join Date: Apr 2012
Location: Atlanta
Posts: 272
 
Device(s): LG MS910 ZVD, Black Plague with Plague kernel; OC'd to 2ghz, 32GB class 10 SD card, 3000 mAh battery
Carrier: Not Provided

Thanks: 52
Thanked 39 Times in 23 Posts
Send a message via Yahoo to gamer30168
Default

i found a tool called apk edit 0.4....i dont have a link cuz i suck but i found it on XDA. It allows you to poke around in an apk and do stuff like change the icons of the apk, change the name of the apk and mess with various elements of the apk. its regular windows GUI too..not like linux...i thought you GNU
gamer30168 is offline  
Reply With Quote
Old August 15th, 2012, 11:28 AM   #29 (permalink)
Member
 
Join Date: Jan 2012
Location: NYC, New York
Posts: 112
 
Device(s): Samsung Galaxy S III, Samsung Admire, Samsung Indulge, LG Esteem, Nexus 7, Nexus 10
Carrier: Not Provided

Thanks: 41
Thanked 15 Times in 12 Posts
Default

Quote:
Originally Posted by Fuzzy13 View Post
Everytime I try to compile an APK I get an error.

Im not doing it through ADB, Im running it all on my computer and editing them first and then pushing them to the phone. But I cant get an apk to work because I cant compile???
Same thing happens to me. I'm trying to do shiny's mod to change lockscreen background and the apk decompiles fine but when i try to recompile it i get a bunch of errors. Same thing happens in apkmultitools. It just wont let me recompile. Im using Number 2 2.2 trying to recompile frameworkres.apk.
KlexKavark is offline  
Reply With Quote
Old August 15th, 2012, 11:36 AM   #30 (permalink)
Disabled
 
Join Date: Jul 2011
Location: Palm Bay, Florida
Posts: 5,504
 
Device(s): Huawei Ascend-PlayfulGod's CM7.2 0912 @729 LG Esteem(stock) LG Esteem- running #2
Carrier: Metro

Thanks: 944
Thanked 2,683 Times in 1,460 Posts
Default

Quote:
Originally Posted by KlexKavark View Post
Same thing happens to me. I'm trying to do shiny's mod to change lockscreen background and the apk decompiles fine but when i try to recompile it i get a bunch of errors. Same thing happens in apkmultitools. It just wont let me recompile. Im using Number 2 2.2 trying to recompile frameworkres.apk.
You need to take the drawable-hdpi folder out of LD-LG zvd and put it in Number #2's, decompile, make your changes, recompile then transfer the drawable-hdpi back
ShinySide is offline  
Reply With Quote
sponsored links
Old August 15th, 2012, 11:37 AM   #31 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Quote:
Originally Posted by KlexKavark

Same thing happens to me. I'm trying to do shiny's mod to change lockscreen background and the apk decompiles fine but when i try to recompile it i get a bunch of errors. Same thing happens in apkmultitools. It just wont let me recompile. Im using Number 2 2.2 trying to recompile frameworkres.apk.
No you gotta use the stock frame work. Like the original bone stock one not the one from the #2 ROM. Then you transfer whatever you modded over to your current fw that your going to use.
Fuzzy13 is offline  
Reply With Quote
Old August 15th, 2012, 04:25 PM   #32 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Quote:
Originally Posted by ShinySide View Post
You need to take the drawable-hdpi folder out of LD-LG zvd and put it in Number #2's, decompile, make your changes, recompile then transfer the drawable-hdpi back

Im loosing my mind.

Im gonna edit something in ICK theme framework.apk that will compile into the resources file. Where can I paste it to to get it to compile? I paste it to the stock framework and i get battery errors and everything else. Obviously I cant compile it as is cause it will throw errors. UGH
Fuzzy13 is offline  
Reply With Quote
Old August 15th, 2012, 04:35 PM   #33 (permalink)
Senior Member
 
nuttmeg's Avatar
 
Join Date: Feb 2011
Location: Lone Star State
Posts: 7,330
 
Device(s): (SGS3)(Evo 3D)(LG Esteem)(Kindle Fire CM10)(Note 2)(LG L9)(LG F3)(Galaxy Note 3)
Carrier: Not Provided

Thanks: 1,800
Thanked 2,536 Times in 1,730 Posts
Send a message via Yahoo to nuttmeg
Default

Quote:
Originally Posted by Fuzzy13 View Post
Im loosing my mind.

Im gonna edit something in ICK theme framework.apk that will compile into the resources file. Where can I paste it to to get it to compile? I paste it to the stock framework and i get battery errors and everything else. Obviously I cant compile it as is cause it will throw errors. UGH
use the stock framework.
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Join our Android Facebook Page Droidz DNA
Sign up for @copyapp with this link, and we'll both get 5 GB of free cloud storage in addition to the usual 15 GB: https://copy.com?r=bMXFAm
nuttmeg is offline  
Reply With Quote
Old August 15th, 2012, 04:39 PM   #34 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Quote:
Originally Posted by nuttmeg View Post
use the stock framework.

Doesnt work. PNG errors that dont exist in the stock. Like batteries. Stock isn't 1% increments but the public folder has the text for it so it throws an error.
Fuzzy13 is offline  
Reply With Quote
Old August 15th, 2012, 05:17 PM   #35 (permalink)
Member
 
Join Date: Jan 2012
Posts: 115
 
Device(s):
Carrier: Not Provided

Thanks: 31
Thanked 33 Times in 22 Posts
Default

Pull the framework from Mt's broken out. That is the framework I always use for the drawables. It will decompile and recompile with no .9 errors and it has 1% battery.
blitz468 is offline  
Last edited by blitz468; August 15th, 2012 at 05:22 PM.
Reply With Quote
Old August 15th, 2012, 06:10 PM   #36 (permalink)
Senior Member
 
Fuzzy13's Avatar
 
Join Date: Dec 2011
Location: A-T-L-A-N-T-A
Posts: 7,288
 
Device(s): Nexus 5. (White 16GB)
Carrier: $60 AT&T pre paid pushing 50-60mbps

Thanks: 1,540
Thanked 2,504 Times in 1,433 Posts
Default

Ugh. After staring at my 9mm for a while and contemplating taking the easy way out, I tried one more time and finally got what I wanted. Dammit man.
nuttmeg likes this.
Fuzzy13 is offline  
Reply With Quote
Old August 15th, 2012, 06:19 PM   #37 (permalink)
Senior Member
 
Johnny Crapple's Avatar
 
Join Date: Jul 2011
Location: Texas
Posts: 1,017
 
Device(s): Samsung Galaxy S4
Carrier: T-Mobile

Thanks: 441
Thanked 257 Times in 214 Posts
Default

Quote:
Originally Posted by Fuzzy13 View Post
Ugh. After staring at my 9mm for a while and contemplating taking the easy way out, I tried one more time and finally got what I wanted. Dammit man.
I gotta 40. you can borrow jk glad you got it going

Sent from my typewriter.
Fuzzy13 likes this.
Johnny Crapple is offline  
Reply With Quote
Old August 16th, 2012, 12:11 AM   #38 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ShinySide View Post
Updated it after I posted. Still the same error
hey shiny, i just tried it myself threw framework and mms in.. ran 'apktool if framework-res.apk' then 'apktool d mms.apk mms' and it worked perfectly.. this is the apktool i use and remember you nedd java jdk installed 6+ for gb

EDIT: wth why cant i add an attachment?

Dev-Host - apktool.zip - The Ultimate Free File Hosting / File Sharing Service
ShinySide likes this.
LDrifta is offline  
Last edited by LDrifta; August 16th, 2012 at 12:15 AM.
Reply With Quote
Old September 24th, 2012, 06:04 AM   #39 (permalink)
New Member
 
Join Date: Sep 2012
Location: New Delhi, Bharat
Gender: Male
Posts: 5
 
Device(s): Galaxy Ace
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ldrifta View Post
what apk are you trying to edit? if it's non-stock than you will have issues lol you need to use stock apk, and ONLY edit xml files... DO NOT edit your png files when decompiling/recompiling!!!
what if i want to edit a non stock rom? I was trying to edit a non stock rom, it got compiled but while installing I got parsing error.
ashishkum is offline  
Reply With Quote
Old September 24th, 2012, 04:21 PM   #40 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ashishkum View Post
what if i want to edit a non stock rom? I was trying to edit a non stock rom, it got compiled but while installing I got parsing error.
be a lil more specific lol, which apk from which rom etc..? generally this should work for all cases unless the apk has some added image files vs stock version of that specific apk.. ie: framwork-res.apk from #2 has an added image, so instead of copying the whole drawable-hdpi from stock to new, you would instead only add the actual images from stock into the new apk's drawable-hdpi folder , then de/re-compiling should work fine..

and remember you cant use the actual new compiled apk, you need the original signature from stock/previous version of apk
LDrifta is offline  
Reply With Quote
sponsored links
Old September 24th, 2012, 09:45 PM   #41 (permalink)
New Member
 
Join Date: Sep 2012
Location: New Delhi, Bharat
Gender: Male
Posts: 5
 
Device(s): Galaxy Ace
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ldrifta View Post
be a lil more specific lol, which apk from which rom etc..? generally this should work for all cases unless the apk has some added image files vs stock version of that specific apk.. ie: framwork-res.apk from #2 has an added image, so instead of copying the whole drawable-hdpi from stock to new, you would instead only add the actual images from stock into the new apk's drawable-hdpi folder , then de/re-compiling should work fine..

and remember you cant use the actual new compiled apk, you need the original signature from stock/previous version of apk
I was trying to mod winamp, I run a CM 7.2 so used framework-res.apk from CM7.2, I didnt change any images I changed some string values which are present in res/values folder. Then compiled it, which it did without any error. Then I copied the resourses.arsc file to the original apk. When I copied to my phone and tried running it, it showed an error while installing "application not installed".
ashishkum is offline  
Reply With Quote
Old September 24th, 2012, 10:14 PM   #42 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ashishkum View Post
I was trying to mod winamp, I run a CM 7.2 so used framework-res.apk from CM7.2, I didnt change any images I changed some string values which are present in res/values folder. Then compiled it, which it did without any error. Then I copied the resourses.arsc file to the original apk. When I copied to my phone and tried running it, it showed an error while installing "application not installed".
how are you installing it?
btw some modified apk's cant be installed to data, you may have to push it to system via adb or a file manager app and reboot

an example would be, if you theme the youtube.apk, wont let you install it into data/app, can only install it to system/app
LDrifta is offline  
Reply With Quote
Old September 25th, 2012, 05:54 AM   #43 (permalink)
New Member
 
Join Date: Sep 2012
Location: New Delhi, Bharat
Gender: Male
Posts: 5
 
Device(s): Galaxy Ace
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ldrifta View Post
how are you installing it?
btw some modified apk's cant be installed to data, you may have to push it to system via adb or a file manager app and reboot

an example would be, if you theme the youtube.apk, wont let you install it into data/app, can only install it to /system/app
yes, i was installing it as a /data/app, but as per your advise I pushed it to /system/app using terminal and gave proper permissions (644) but its not running, its giving message "the app stopped unexpectedly", moreover the winamp icon is also gone from the apk after I recompiled it (the file manager shows the icons of apk's), what u think is there any mistake in recompiling?

Thanks
ashishkum is offline  
Reply With Quote
Old September 25th, 2012, 02:02 PM   #44 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ashishkum View Post
yes, i was installing it as a /data/app, but as per your advise I pushed it to /system/app using terminal and gave proper permissions (644) but its not running, its giving message "the app stopped unexpectedly", moreover the winamp icon is also gone from the apk after I recompiled it (the file manager shows the icons of apk's), what u think is there any mistake in recompiling?

Thanks
possibly.. are you sure you ONLY edited the strings.xml?? you didn't add anything else to a folder in 'res'?
LDrifta is offline  
Reply With Quote
Old September 26th, 2012, 09:39 AM   #45 (permalink)
New Member
 
Join Date: Sep 2012
Location: New Delhi, Bharat
Gender: Male
Posts: 5
 
Device(s): Galaxy Ace
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ldrifta View Post
possibly.. are you sure you ONLY edited the strings.xml?? you didn't add anything else to a folder in 'res'?
yes, I am editing strings.xml under values folder. For testing I decompiled the app and recompiled it without making any changes, strangely the size of the output app reduced to 429 KB ( as compared with 434 KB original). May be it cannot handle 3rd party apps and can only work with stock apps??
ashishkum is offline  
Reply With Quote
Old September 26th, 2012, 12:14 PM   #46 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ashishkum View Post
yes, I am editing strings.xml under values folder. For testing I decompiled the app and recompiled it without making any changes, strangely the size of the output app reduced to 429 KB ( as compared with 434 KB original). May be it cannot handle 3rd party apps and can only work with stock apps??
no thats just because the new one doesn't have it original signature... you need to use like 7zip or something to extract the files from new and place them into the original apk for it to work... i though you knew that..? LOL
LDrifta is offline  
Reply With Quote
Old September 26th, 2012, 10:49 PM   #47 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

First of all, Thanks for making this! It helps noobs like me that have no experience building apks.

Okay so for me, I read somewhere where someone wanted to run 2 instances of an app and another person recommended to decompile, edit manifest file to rename the app, then compile, sign, etc.

I want to do exactly that and whenever I just tried to change the name at the header of the AndroidManifest.xml file, it wouldn't recompile. I have computer knowledge, but none whatsoever to do with programming apps. So I was wondering if someone could help me out and explain to me how to rename the app so it'll work.

Big Thanks!
meaintsmart is offline  
Reply With Quote
Old September 27th, 2012, 12:10 AM   #48 (permalink)
New Member
 
Join Date: Sep 2012
Location: New Delhi, Bharat
Gender: Male
Posts: 5
 
Device(s): Galaxy Ace
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ldrifta View Post
no thats just because the new one doesn't have it original signature... you need to use like 7zip or something to extract the files from new and place them into the original apk for it to work... i though you knew that..? LOL
Well, I used Winrar to copy resourses.arsc file into the original apk. I copied the resourses.arsc file from the recompiled apk. But it still aint working
I think i am making some serious mistake here. I will try to edit some system app(like phone.apk or settings.apk) and let you know the outcome
ashishkum is offline  
Reply With Quote
Old September 27th, 2012, 02:36 AM   #49 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by ashishkum View Post
Well, I used Winrar to copy resourses.arsc file into the original apk. I copied the resourses.arsc file from the recompiled apk. But it still aint working
I think i am making some serious mistake here. I will try to edit some system app(like phone.apk or settings.apk) and let you know the outcome
h... this is a tricky one, LOL im not really sure.. wish i could 'see' the issue that what happenning and how you were doing it than i could help but i cant teleport haha
LDrifta is offline  
Reply With Quote
Old September 27th, 2012, 04:39 AM   #50 (permalink)
No Stranger 2 Danger
Thread Author (OP)
 
LDrifta's Avatar
 
Join Date: Jun 2011
Location: Lynn, MA
Gender: Male
Posts: 3,888
 
Device(s): DREAM, MS910, MS840, D2mtr, M931, CodinaMTR, SGH-T599N, G900T1
Carrier: Metro PCS

Thanks: 741
Thanked 3,178 Times in 1,264 Posts
LDrifta
Default

Quote:
Originally Posted by Mitchell481 View Post
Pull the framework from Mt's broken out. That is the framework I always use for the drawables. It will decompile and recompile with no .9 errors and it has 1% battery.
my framework does too (NOW LOL) but it's not the isssue, he's trying to edit an app from market
LDrifta is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > LG Esteem > Esteem - All Things Root

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:02 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.