Android??????permission
???????????? ???????[ 2013/11/15 11:11:08 ] ????????
????android?????linux?????????linux???????????????????
????1. ??ó????????????????????????app????
????2. ??????????“3??”???????????????????????????
????3. ASLR?? NX?? ProPolice?? safe_iop?? OpenBSD dlmalloc?? OpenBSD calloc?? and Linux mmap_min_addr ????????????????
?????????????????????????????????????????
???????????
????????????ó???????????κ????????????????????????????????????????κ?????????о????????
??????????????ù?????????????????????к??????????????????????豸??????л??imei?? ?л??wifi??mac??????????????????л??綽??????imei????????wifi??????????????д???????????????????????????綽??????????о??????????????????????謖??綽???????????????????????????
????????????
private void insertGroup() {
// Internal storage where the DexClassLoader writes the optimized dex file to.
final File optimizedDexOutputPath = getDir("outdex"?? Context.MODE_PRIVATE);
// Initialize the class loader with the secondary dex file.
DexClassLoader cl = new DexClassLoader(dexInternalStoragePath.getAbsolutePath()??
optimizedDexOutputPath.getAbsolutePath()??
null??
getClassLoader());
Class libProviderClazz = null;
try {
// Load the library class from the class loader.
// ????????????????????????
libProviderClazz =
cl.loadClass("com.kunpeng.pim.GroupDao");
// Cast the return object to the library interface so that the
// caller can directly invoke methods in the interface.
// Alternatively?? the caller can invoke methods through reflection??
// which is more verbose and slow.
Class<?>[] argTypes = {Context.class};
Constructor<?> constructor = libProviderClazz.getConstructor(argTypes);
IGroupDao lib = (IGroupDao) constructor.newInstance(this);
// Display the toast!
lib.addGroup("test");
} catch (Exception exception) {
// Handle exception gracefully here.
exception.printStackTrace();
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11