Giter Site home page Giter Site logo

orangetell / android-python-apk-batch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chiclaim/apkbatchpackage

0.0 2.0 0.0 7.72 MB

android apk python批量打包脚本

Home Page: http://blog.csdn.net/johnny901114/article/details/48714849

License: Apache License 2.0

Java 59.79% Python 40.21%

android-python-apk-batch's Introduction

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));

android-python-apk-batch's People

Contributors

chiclaim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.