Original address: http://blog.csdn.net/rrkdddd33/article/details/73641630
General Packaging
1 Constants.iswallechannel set to False
2 Do not comment out
<meta-data
Android:name= "Umeng_channel"
Android:value= "${umeng_channel_value}"/>
Walle Packaging
Premise
1 has become tinker and Walle
2 A <!--Walle when packing
<meta-data
Android:name= "Umeng_channel"
Android:value= "${umeng_channel_value}"/>
B Constants.iswallechannel set to True
3 Formal package will be tinkerpatch.gradle in Tinkerenable=true;
When playing the public test package, the Tinkerpatch.gradle will be tinkerenable=false;
A tinker hit the baseline package
1.1 Close Instant Run
1.2 Modify the app version number in the Tinkerpatch.gradle configuration to the current app version
1.3 If hardening is enabled
Protectedapp = True otherwise set to False
1.4 Open the Gradle panel
1.5 Locate the App module and double-click the appropriate channel task
1.6 Wait for the build package, the resulting package will be placed under build-bakapk automatically generated under the current date + Time folder
these three files are to be saved, and then the patch packages under this app version will be patched based on this package.
Two Tinker Dozen Patch Packs
2.1 Modifying the path and name of the baseline package in Tinkerpatch.gradle
Modify Baseinfo in Tinkerpatch.gradle to the same folder name as the baseline package, variantname to the corresponding channel information
2.2 Enter Gradle--app module--task---Tinker, double-click the corresponding channel task
Wait for the patch package to be generated, the patch path as shown
Three release patches
3.1 http://www.tinkerpatch.com-----"My app----" Select the app to go to the admin page
3.2 Add App Version
3.3 Uploading patches
3.4 Viewing Patch integration scenarios
Four multi-channel reinforcement and packaging
4.1 If reinforcement is required, you can upload the base package to the target page to harden and download. (Do not use their signature method)
Take 360 channels as an example:
http://jiagu.360.cn/
Upload App 360 reinforcement (Web page-upload and reinforce (not signed), and download to local backup after reinforcement.
RELEASE.ENCRYPTED.APK 360 Reinforcing unsigned packages
Open cmd and go to the 25.+ directory of Android Sdk-> Build-tools
4.2 Zipalign Alignment
Zipalign-v 4 C:\Users\admin1\Desktop\channels\release.encrypted.apk C:\Users\admin1\Desktop\channels\ release.encrypted.zipalign.apk
4.3 signature
Apksigner Sign--ks signature file C:\Users\admin1\Desktop\channels\release.encrypted.zipalign.apk
4.4 Checking whether to use V2 signature
Java-jar C:\Users\admin1\Desktop\channels\CheckAndroidV2Signature.jar C:\Users\admin1\Desktop\channels\ release.encrypted.zipalign.apk
4.5 Dozen Multichannel Packages \apk multi-channel catalogs
Java-jar C:\Users\admin1\Desktop\channels\walle-cli-all.jar batch-f C:\Users\admin1\Desktop\channels\channel c \ users\admin1\desktop\channels\release.encrypted.zipalign.apk C:\Users\admin1\Desktop\channels\apk