mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 19:50:47 +00:00
@@ -15,7 +15,7 @@ public class DynAPK {
|
||||
|
||||
// Indices of the object array
|
||||
private static final int STUB_VERSION_ENTRY = 0;
|
||||
private static final int COMPONENT_MAP = 1;
|
||||
private static final int CLASS_COMPONENT_MAP = 1;
|
||||
|
||||
private static File dynDir;
|
||||
private static Method addAssetPath;
|
||||
@@ -44,14 +44,14 @@ public class DynAPK {
|
||||
Object[] arr = (Object[]) o;
|
||||
Data data = new Data();
|
||||
data.version = (int) arr[STUB_VERSION_ENTRY];
|
||||
data.componentMap = (Map<String, String>) arr[COMPONENT_MAP];
|
||||
data.classToComponent = (Map<String, String>) arr[CLASS_COMPONENT_MAP];
|
||||
return data;
|
||||
}
|
||||
|
||||
public static Object pack(Data data) {
|
||||
Object[] arr = new Object[2];
|
||||
arr[STUB_VERSION_ENTRY] = data.version;
|
||||
arr[COMPONENT_MAP] = data.componentMap;
|
||||
arr[CLASS_COMPONENT_MAP] = data.classToComponent;
|
||||
return arr;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,6 @@ public class DynAPK {
|
||||
|
||||
public static class Data {
|
||||
public int version = STUB_VERSION;
|
||||
public Map<String, String> componentMap;
|
||||
public Map<String, String> classToComponent;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user