记录

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});

 

posted @ 2014-06-24 21:57  agle  阅读(168)  评论(0编辑  收藏  举报