Tutorial How to create unsigned APK file for rooted devices + Lucky Patcher/Core Patch

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,679
296,839
1,213
Modding World
Why unsigned APK, and why is it recommended for most games? With an unsigned APK, you can install the APK over the original. You can login with your Google account without signature error, and login with your Facebook account without uninstalling Facebook app.

"Unsigned" means, that you leaved the opened jacket open. You changed the APK and modified it, but you leaved the opened original Key inside, you do not sign it with the test/own signature key. Android’s security does not allow it by default. But if you root your device and disable signature via Lucky Patcher or Core Patch, you will be able to tell the device "the jacket is closed, install it". In this way you are able to update the original playstore game with a mod and will be able to login with the Google+ account. You simply lying to your device.

You can only install an unsigned APK on your rooted device because it require the signature to be disabled using Lucky Patcher or Core Patch. If your phone is not rooted, please search on Google about how to root your phone.

Let's start.

Copying original META-INF to modded APK
Note: This tutorial was written for PC. If you only have phone, you can just follow same steps using X-plore or MT Manager. Both apps can open APK as ZIP file and change files directly

Open APK using 7zip or Winrar

1. Right click on the APK file -> Open With -Z Choose Another App

XqvBZyo.png


2. Click on "More apps" and tick "Always use this app to open .APK files"

vrveThN.png


3. Click "Look for another app on this PC"

qx4DyS1.png


4. To go program files and select any program to open with APK. I'd recommended 7zip or Winrar

gQfXbNX.png


5. The program will open

Image 1647435017.png


6. Copy META-INF from original APK to modded APK. If you are modding signed mod APK, make sure to delete signed META-INF before copying original META-INF

Image 1647434735.png


7. Enjoy

Important
By using the method described, consider to NOT add new files or remove existing files on the APK, it will break compatibility with Lucky Patcher. For example, along with your mod you need to add a file into the APK, let say in "assets/myfile.dat". It won't work and lead to failure during APK installation. Another example, if you deleted "lib/arm64-v8a" out of the APK. Again, it causing installation failure.

This is because all file structures in the APK was mapped and their info was stored in "META-INF/CERT. SF" file. The solution is you need to put all your mods along with expected APK file structures in the compiled APK, sign it (with any desired key), then pull the "META-INF/CERT.SF" from this newly signed APK to be used as replacement for the old one at your working APK. However, this trick will not work with new signature scheme for Lucky Patcher anyway because the developer refused to improve it. You can use Core Patch instead without having to do this trick, Core Patch is way better than Lucky Patcher anyway

Missing .RSA, .SF, or .MF files?
It is because APK is using signature scheme v2 and above only, don’t worry about it yet. You can obtain .RSA, .SF, or .MF from split APK/XAPK, or older APK, downloaded from Apkcombo, Apkpure Apk4fun or other sites. If Google login is not work, try copy entire contents from signed APK to original APK except META-INF

Credit:
AndnixSH
 

Attachments

Last edited:

Anurag69

Platinian
Jul 27, 2019
14
0
3
India
I did the same but not working app still not installing also signature disabled by lucky patcher
 

google.com.ss

Platinian
Aug 11, 2020
7
0
1
28
Viet Nam
Hi Bro, why I can't login google when I create unsigned apk file from signed apk file by copying, deleting, and replacing the folder Lib? Thank you!
 

BlueMan_86

Platinian
Mar 12, 2018
17
99
33
38
If device is rooted and patched well.. only problem can be found in file AndroidManifest.xml, where you need to change value and force install location.. so change it to this one... "installLocation="internalOnly" This bolded one need to be changed... like it is here...
 
  • Like
Reactions: zverilius

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,679
296,839
1,213
Modding World
If device is rooted and patched well.. only problem can be found in file AndroidManifest.xml, where you need to change value and force install location.. so change it to this one... "installLocation="internalOnly" This bolded one need to be changed... like it is here...
what does it do excatly?
 

edilsoninacio

Platinian On Fire
Oct 4, 2020
222
67
28
55
Brasil
hello, i have root, i did everything right as tutorial, install the original and connect on google, after installing the mod and it works, however after i close the mod and open it again it is no longer connected, so i am obliged to remove the mod, install the original log in to the account, install the mod again, and repeat the process each time I close the application or the screen shuts down.

Annex attachment of Lucky Patcher.

Sorry for posting twice.

automatically translated, sorry.
Screenshot_20210302073906.jpg
Screenshot_20210302073823.jpg
 

edilsoninacio

Platinian On Fire
Oct 4, 2020
222
67
28
55
Brasil
hello, i have root, i did everything right as tutorial, install the original and connect on google, after installing the mod and it works, however after i close the mod and open it again it is no longer connected, so i am obliged to remove the mod, install the original log in to the account, install the mod again, and repeat the process each time I close the application when I stop playing.

automatically translated, sorry.
Delete post pls. Thx
 

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,679
296,839
1,213
Modding World
hello, i have root, i did everything right as tutorial, install the original and connect on google, after installing the mod and it works, however after i close the mod and open it again it is no longer connected, so i am obliged to remove the mod, install the original log in to the account, install the mod again, and repeat the process each time I close the application when I stop playing.

automatically translated, sorry.
This is normal behavior, if you installed signed apk on top of original apk. This is a security feature, not a bug!!
But if this is unsigned apk, then either you have done something wrong or the patched signature (Lucky Patcher or Corepatch) does not support it. Try mod again
 
Tags
apk unsigned