mirror of
https://github.com/revanced/Apktool.git
synced 2024-09-01 20:15:14 +02:00
update internal docs for building aapt2
This commit is contained in:
parent
ddb5f5c590
commit
89e56c95c1
24
INTERNAL.md
24
INTERNAL.md
@ -229,7 +229,7 @@ We check out a certain tag. Currently we use `android-8.1.0_r9`.
|
||||
There is probably a more automated way to do this, but for now just remove all the files in `frameworks/base`. Now
|
||||
you can clone the modified repo from first step into this directory.
|
||||
|
||||
### Building the aapt binary.
|
||||
### Building the aapt1 (Legacy) binary.
|
||||
|
||||
The steps below are different per flavor and operating system. For cross compiling the Windows binary on Unix,
|
||||
we lose the ability to quickly build just the aapt binary. So the Windows procedure builds the entire Sdk.
|
||||
@ -253,6 +253,28 @@ we lose the ability to quickly build just the aapt binary. So the Windows proced
|
||||
|
||||
As of Android Oreo (API 26) all aapt binaries are 64 bit.
|
||||
|
||||
### Building the aapt2 binary.
|
||||
|
||||
The steps below are different per flavor and operating system. For cross compiling the Windows binary on Unix,
|
||||
we lose the ability to quickly build just the aapt2 binary. So the Windows procedure builds the entire Sdk.
|
||||
|
||||
#### Unix
|
||||
1. `source build/envsetup.sh`
|
||||
2. `lunch sdk-eng`
|
||||
3. `make OUT_DIR=out-x64 LOCAL_MULTILIB=64 USE_NINJA=false aapt2`
|
||||
4. `strip out-x64/host/linux-x86/bin/aapt2`
|
||||
|
||||
#### Windows
|
||||
1. `source build/envsetup.sh`
|
||||
2. `lunch sdk-eng`
|
||||
3. `make PRODUCT-sdk-win_sdk USE_NINJA=false`
|
||||
4. `strip out/host/windows-x86/bin/aapt2.exe`
|
||||
|
||||
#### Mac
|
||||
1. `source build/envsetup.sh`
|
||||
2. `lunch sdk-eng`
|
||||
3. `make OUT_DIR=out-x64 LOCAL_MULTILIB=64 USE_NINJA=false aapt2`
|
||||
|
||||
# Gradle Tips n Tricks
|
||||
|
||||
./gradlew build shadowJar proguard -x test
|
||||
|
Loading…
Reference in New Issue
Block a user