Skip to content

Draft python script for merging Android Split APKs into one

Notifications You must be signed in to change notification settings

DieHertz/split-apks-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script is an attempt at compiling split APKs decompiled using apktool into a single base.apk which contains all of the necessary resources, with APKTOOL_DUMMY_ids resolved to actual resource names.

Installation

I'm using python3.8, you may try any version of python3 if it supports necessary packages.

git clone https://github.com/DieHertz/split-apks-merger.git
cd split-apks-merger
python3 -m pip install -r requirements.txt

Usage

A bash script called pull.sh is provided to pull split APK files from your device and unpack them, e.g.:

./pull.sh com.example.helloandroid

Then invoke merge_split_apks.py in a directory which contains unpacked base and split_config.* directories coming out of apktool

You still need to go into base/AndroidManifest.xml and take care of splitsRequired, as well as extractNativeLibraries in some cases.

About

Draft python script for merging Android Split APKs into one

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published