Skip to content

Instantly share code, notes, and snippets.

View 📊 Weekly development breakdown
Go 16 hrs 25 mins ████████████████████▍ 97.2%
JSON 14 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.4%
Bash 4 mins ░░░░░░░░░░░░░░░░░░░░░ 0.4%
YAML 4 mins ░░░░░░░░░░░░░░░░░░░░░ 0.4%
Vue.js 3 mins ░░░░░░░░░░░░░░░░░░░░░ 0.4%
@nukc
nukc / ZipCommentHelper
Created Jan 18, 2017
获取 apk 文件注释里的渠道号
View ZipCommentHelper
package com.github.nukc.plugin;
import java.io.DataInput;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
@nukc
nukc / ChannelHelper.java
Last active Feb 8, 2017
获取 META-INF 目录下的空渠道文件名
View ChannelHelper.java
package io.virtualapp.utils;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import java.io.IOException;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;