@Before public void initFixture() { final byte[] SALT = new byte[] { 104, -12, 112, 82, -85, -10, -11, 61, 15, 54, 44, -66, -117, -89, -64, 110, -53, 123, 33 }; Context ctx = InstrumentationRegistry.getTargetContext(); String deviceId = Settings.Secure.getString( ctx.getContentResolver(), Settings.Secure.ANDROID_ID); p = new APKExpansionPolicy(ctx, new AESObfuscator(SALT, ctx.getPackageName(), deviceId)); }
Secure.ANDROID_ID); final APKExpansionPolicy aep = new APKExpansionPolicy(mContext, new AESObfuscator(getSALT(), mContext.getPackageName(), deviceId));