Jump to content

Apk Recompiling help


Go to solution Solved by fahadxmb,

26 posts in this topic

Recommended Posts

Posted

Hello ! 

 

 

SO i usually recompile and decompile apks , duh but there is something significant about some apps like free fall is that you can decompile the apk , but you can never recompile it even if you made a change or no :(

 

I use apktool to decompile and recompile as it works the best and designed to do so 

 

Here is an error screenshot if you would like to look at it  :

 

Users/arm21/com.disney.cinderellafreefall_goo/assets/com\tapjoy\res\countdown_image.png: error: Invalid filename.  Unable to add.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/lf/jygdbj3j7vb_srz7hg6rrw040000gn/T/brut_util_Jar_2380018692835214191.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 24, --version-code, 105, --version-name, 2.10.0, -F, /Users/arm21/com.disney.cinderellafreefall_goo/dist/com.disney.cinderellafreefall_goo.apk, -0, arsc, -0, zip, -0, properties, -0, arsc, -A, /Users/arm21/com.disney.cinderellafreefall_goo/assets, /Users/arm21/com.disney.cinderellafreefall_goo/build/apk]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)

at brut.androlib.Androlib.buildApk(Androlib.java:675)

at brut.androlib.Androlib.build(Androlib.java:315)

at brut.androlib.Androlib.build(Androlib.java:264)

at brut.apktool.Main.cmdBuild(Main.java:227)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/lf/jygdbj3j7vb_srz7hg6rrw040000gn/T/brut_util_Jar_2380018692835214191.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 24, --version-code, 105, --version-name, 2.10.0, -F, /Users/arm21/com.disney.cinderellafreefall_goo/dist/com.disney.cinderellafreefall_goo.apk, -0, arsc, -0, zip, -0, properties, -0, arsc, -A, /Users/arm21/com.disney.cinderellafreefall_goo/assets, /Users/arm21/com.disney.cinderellafreefall_goo/build/apk]

at brut.util.OS.exec(OS.java:95)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)

... 5 more

 

 

I would like to know if there is a way around ...

  • Replies 25
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

I remember this kind of error,

 

If I remember correctly, you'll have to downgrade your apktool version to 2.1.1

 

Then decompile the apk again & then you should be able to recompile again

Posted

What version of apktool version are you using?

2.2.0 works fine with me (tested Free Fall)

Its cinderella free fall and how to check apktool version ?

Posted

@TheArmKing you did not edit it as zahir said or you did?

I tried both , once after editing , deleted everything , decompiled again , didn't touch anything and recompiled again , same problem :(

when you type the command 'apktool b 'name' ' 

it will say under that: using apktool 2.2.0 (or yours)

it says using apktool 2.2.1 

  • Solution
Posted

I tried both , once after editing , deleted everything , decompiled again , didn't touch anything and recompiled again , same problem :(

it says using apktool 2.2.1

 

So use the latest version.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines