记录
InputStream localInputStream =getResources().getAssets().open("encypt.dex"); int length = localInputStream.available(); byte[] arrayOfByte = new byte[length]; localInputStream.read(arrayOfByte);
DexFile dexFile = new DexFile(getApplicationContext(),decypt(arrayOfByte));
Class localClass = dexFile.getClass("com/email/Mail"); Constructor constructor = localClass.getConstructor(new Class[] {}); Object myObject = constructor.newInstance(new Object[] {}); Method sendMethod = localClass.getMethod("send",new Class[] {String.class}); sendMethod.setAccessible(true);
Object result = null; result=(Boolean)sendMethod.invoke(myObject,new Object[]{str});