Unable to install .apk after decoding and recovery (Apktool, Apkstudio)

I decoded the apk file with apktool and I did not change anything. After that, I just create it again, and then tried to install apk, but I got the following error even after some basic changes.

What I used with windows cmd :

 apktool d somename.apk -o testfolder 

then

 apktool b testfolder 

and

 adb install somename.apk pkg: /data/local/tmp/somename.apk Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] rm failed for -f, No such file or directory 

I did this with apkstudio and the result was the same.

 $ adb install -r "somename.apk" pkg: /data/local/tmp/somename.apk Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] rm failed for -f, No such file or directory Process exited with code 0 

Was this a system application? Not.

Can anybody help me?

+8
android decode apk
source share
2 answers

Incomponent apks must be signed after recompilation. Try signing apk: Signing your application manually

+3
source share

I know that he answered before, but for clarity, you can sign him with these commands.

First generate a key:

 keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 

Second sign it:

 jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name 

If you don’t like entering the password on the command line, use this:

 jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore [Your Key Store] [Address/YourApk.apk] alias_name -storepass [Your Password] 
0
source share

All Articles