INNER CODE UNIT · Java
readChannel
Tencent/VasDolly · command/src/main/java/com/tencent/vasdolly/command/Util.java:74
public static String readChannel(File apkFile) {
String channel = ChannelReader.getChannelByV2(apkFile);
if (channel == null) {
channel = ChannelReader.getChannelByV1(apkFile);
}
return channel;
}
public static void main(String[] args) {
File f = new File("C:/Users/caikun/Desktop/222.apk");
writeChannel(f, Arrays.asList("10000"), f, false, false);
}
/**
* 根据不同的方式写入渠道,并生成apk
*
* @param baseApk
* @param channelList