Java Code Examples for com.android.reverse.smali.DexFileHeadersPointer

The following examples show how to use com.android.reverse.smali.DexFileHeadersPointer. These examples are extracted from open source projects. 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 Project: ZjDroid   Source File: NativeFunction.java    License: 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 Project: zjdroid   Source File: NativeFunction.java    License: 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 Project: HeyGirl   Source File: NativeFunction.java    License: 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 Project: ZjDroid   Source File: NativeFunction.java    License: 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 5
Source Project: ZjDroid   Source File: NativeFunction.java    License: Apache License 2.0 votes vote down vote up
private static native DexFileHeadersPointer getHeaderItemPtr(long cookie,int version); 
Example 6
Source Project: zjdroid   Source File: NativeFunction.java    License: Apache License 2.0 votes vote down vote up
private static native DexFileHeadersPointer getHeaderItemPtr(int cookie,int version); 
Example 7
Source Project: HeyGirl   Source File: NativeFunction.java    License: Apache License 2.0 votes vote down vote up
private static native DexFileHeadersPointer getHeaderItemPtr(int cookie,int version); 
Example 8
Source Project: ZjDroid   Source File: NativeFunction.java    License: Apache License 2.0 votes vote down vote up
private static native DexFileHeadersPointer getHeaderItemPtr(int cookie,int version);