Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANdroid - Run APK file after edited using apktool get error : [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

I have an APK file name : Splash.apk. First i decode it using apktool

apk d Splash.apk

Then i edit Manifest, XML. Finally I export project to APK file name : EditedSpash.apk.

apk b Splash

When i run EditedSpash.apk on emulator. I got error. Do you explain it for me ?

adb install EditedSplash.apk

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
like image 231
green.android Avatar asked Feb 21 '13 03:02

green.android


1 Answers

you should sign to apk before install.

1)keytool -genkey -keystore (name).keystore -validity 10000 -alias (name) -keyalg rsa

2)answer some question (ex:name, company...

3)after make keystore file,you combine apk and ketstore

if these file are located same directory

jarsigner -keystore (name).keystore -verbose LunarLander.apk (name)

apk size increase 2kb+;

after this install apk to avd

like image 84
dmnlk Avatar answered Sep 17 '22 10:09

dmnlk