private static int getGreenifyVersion(final Context activity) {
		try {
			return activity.getPackageManager().getPackageInfo(GREENIFY_PKG, 0).versionCode;
		} catch (final PackageManager.NameNotFoundException e) {
			return 0;
		}
	}
Client helper for Greenify APIs

Created by Oasis on 2016/10/14.
mobile/src/main/java/com/oasisfeng/island/greenify/GreenifyClient.java