Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / [SOLVED] Trying to modify an android AGK .apk manifest

Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Dec 2020 04:54
I am trying to modify an android AppGameKit manifest
I am using apktool
This is the .apk generated by AppGameKit, it works fine
This is an apk produced by unpacking and then packing the previous apk
To produce the above file i execute the following commands
apktool d phone.apk (Which unpacks in to a folder called phone)
cd phone
apktool b . (Which packes in into phone.apk and stores in in a foldet called dist from which i upload the file)The .apk generated by apktool produces the following error when i try install it on my android phone: "The package appears to be corrupt". I haven't changed anything in the .apk, just unpacked it and packed it

Can anyone tell me what i may be doing wrong here or recommend another apk tool

Thanks for any help

The author of this post has marked a post as an answer.

Go to answer

Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Dec 2020 01:02 Edited at: 22nd Dec 2020 01:02
This post has been marked by the post author as the answer.
**** WARNING : If you don't furnish a way to get to your other apps or settings then your phone will be stuck with this app forever ***

Ok it worked. Here is the process.
1) Create your apk.
2) Dump the .apk using apktool: apktool -d apkfile.apk (it will put it into a folder same name as your apk file, goto that folder)
3) Modify the manifest as follows;
4) Find this activity tag " <activity android:configChanges=..." in my case it was the first instance
5) Within that tag you will find one or more <intent-filter> tags.
6) After the last </intent-filter> add:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.DEFAULT" />

7) Rebuild the .apk using apktool b .
8) It will create a .apk file in a folder called "dist"
9) Copy that file to your android phone
10) Use this app (Or whatever other way you can) to sign the app
11) Install the app
12) When the app runs it asks you to make it the home app.

Login to post a reply

Server time is: 2021-02-27 22:45:16
Your offset time is: 2021-02-27 22:45:16