Skip to content

Instantly share code, notes, and snippets.

View Gaelan-Bolger's full-sized avatar

Gaelan Bolger Gaelan-Bolger

View GitHub Profile
@Gaelan-Bolger
Gaelan-Bolger / SignatureCheck.java
Created February 1, 2016 13:54 — forked from scottyab/SignatureCheck.java
Simple Android signature check. It's not bullet proof but does increase the difficulty of backdooring the app
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Signature;
public class TamperCheck {
//we store the hash of the signture for a little more protection
private static final String APP_SIGNATURE = "1038C0E34658923C4192E61B16846";