Java Code Examples for org.jf.dexlib2.dexbacked.MemoryDexFileItemPointer#setpFieldIds()

The following examples show how to use org.jf.dexlib2.dexbacked.MemoryDexFileItemPointer#setpFieldIds() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeFunction.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
public static MemoryDexFileItemPointer queryDexFileItemPointer(long cookie){
	int version = ModuleContext.getInstance().getApiLevel();
	//TODO change int to long
	DexFileHeadersPointer iteminfo = getHeaderItemPtr(cookie,version);
	MemoryDexFileItemPointer pointer = new MemoryDexFileItemPointer();
	pointer.setBaseAddr((int) iteminfo.getBaseAddr());
	pointer.setpClassDefs((int) iteminfo.getpClassDefs());
	pointer.setpFieldIds((int) iteminfo.getpFieldIds());
	pointer.setpMethodIds((int) iteminfo.getpMethodIds());
	pointer.setpProtoIds((int) iteminfo.getpProtoIds());
	pointer.setpStringIds((int) iteminfo.getpStringIds());
	pointer.setpTypeIds((int) iteminfo.getpTypeIds());
       pointer.setClassCount((int) iteminfo.getClassCount());
	return pointer;

}
 
Example 2
Source File: NativeFunction.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public static MemoryDexFileItemPointer queryDexFileItemPointer(int cookie){
	int version = ModuleContext.getInstance().getApiLevel();
	DexFileHeadersPointer iteminfo = getHeaderItemPtr(cookie,version);
	MemoryDexFileItemPointer pointer = new MemoryDexFileItemPointer();
	pointer.setBaseAddr(iteminfo.getBaseAddr());
	pointer.setpClassDefs(iteminfo.getpClassDefs());
	pointer.setpFieldIds(iteminfo.getpFieldIds());
	pointer.setpMethodIds(iteminfo.getpMethodIds());
	pointer.setpProtoIds(iteminfo.getpProtoIds());
	pointer.setpStringIds(iteminfo.getpStringIds());
	pointer.setpTypeIds(iteminfo.getpTypeIds());
       pointer.setClassCount(iteminfo.getClassCount());
	return pointer;

}
 
Example 3
Source File: NativeFunction.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public static MemoryDexFileItemPointer queryDexFileItemPointer(int cookie){
	int version = ModuleContext.getInstance().getApiLevel();
	DexFileHeadersPointer iteminfo = getHeaderItemPtr(cookie,version);
	MemoryDexFileItemPointer pointer = new MemoryDexFileItemPointer();
	pointer.setBaseAddr(iteminfo.getBaseAddr());
	pointer.setpClassDefs(iteminfo.getpClassDefs());
	pointer.setpFieldIds(iteminfo.getpFieldIds());
	pointer.setpMethodIds(iteminfo.getpMethodIds());
	pointer.setpProtoIds(iteminfo.getpProtoIds());
	pointer.setpStringIds(iteminfo.getpStringIds());
	pointer.setpTypeIds(iteminfo.getpTypeIds());
       pointer.setClassCount(iteminfo.getClassCount());
	return pointer;

}
 
Example 4
Source File: NativeFunction.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public static MemoryDexFileItemPointer queryDexFileItemPointer(int cookie){
	int version = ModuleContext.getInstance().getApiLevel();
	DexFileHeadersPointer iteminfo = getHeaderItemPtr(cookie,version);
	MemoryDexFileItemPointer pointer = new MemoryDexFileItemPointer();
	pointer.setBaseAddr(iteminfo.getBaseAddr());
	pointer.setpClassDefs(iteminfo.getpClassDefs());
	pointer.setpFieldIds(iteminfo.getpFieldIds());
	pointer.setpMethodIds(iteminfo.getpMethodIds());
	pointer.setpProtoIds(iteminfo.getpProtoIds());
	pointer.setpStringIds(iteminfo.getpStringIds());
	pointer.setpTypeIds(iteminfo.getpTypeIds());
       pointer.setClassCount(iteminfo.getClassCount());
	return pointer;

}