Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lvpanjun/android-python-apk-batch

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android-python-apk-batch

android python批量打包脚本

1、首先在你的本地安装Python环境(MAC自带)

然后把你打包好的、可安装的apk放在和脚本的同一目录,重命名为:source.apk

2、编辑channel.txt渠道文件

把需要打包的渠道名放在该文件里,格式为:一行一个渠道

360
appChina
wandoujia
91
baidu
QQ
3G
eoe
anzhi
163
hiapk
jifeng
xiaomi
meizu
oppo
lenovo

3、然后运行脚本,如:

python batch_apk.py

在目录apks下就有全部打包好的apk,

4、测试

把某个apk解压,在META-INF目录下就有渠道文件。

5、最后

获取META-INF目录下就有渠道名

String channel = ManifestUtil.getChannel(this)

通过代码的方式把渠道设置给UMENG(友盟):

AnalyticsConfig.setChannel(ManifestUtil.getChannel(this));

About

android apk python批量打包脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 59.8%
  • Python 40.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.