frida-java-bridge 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/mkdex.js +17 -1
- package/package.json +1 -1
package/lib/mkdex.js
CHANGED
|
@@ -655,6 +655,7 @@ function computeModel (classes) {
|
|
|
655
655
|
stringToIndex[fieldName]
|
|
656
656
|
];
|
|
657
657
|
});
|
|
658
|
+
fieldItems.sort(compareFieldItems);
|
|
658
659
|
|
|
659
660
|
const methodItems = methods.map(method => {
|
|
660
661
|
const [klass, protoId, name, annotationsId] = method;
|
|
@@ -744,7 +745,7 @@ function computeModel (classes) {
|
|
|
744
745
|
const instanceFields = fieldItems.reduce((result, field, index) => {
|
|
745
746
|
const [holder] = field;
|
|
746
747
|
if (holder === classIndex) {
|
|
747
|
-
result.push([index, kAccPublic]);
|
|
748
|
+
result.push([index > 0 ? 1 : 0, kAccPublic]);
|
|
748
749
|
}
|
|
749
750
|
return result;
|
|
750
751
|
}, []);
|
|
@@ -848,6 +849,21 @@ function compareProtoItems (a, b) {
|
|
|
848
849
|
return 0;
|
|
849
850
|
}
|
|
850
851
|
|
|
852
|
+
function compareFieldItems (a, b) {
|
|
853
|
+
const [aClass, aType, aName] = a;
|
|
854
|
+
const [bClass, bType, bName] = b;
|
|
855
|
+
|
|
856
|
+
if (aClass !== bClass) {
|
|
857
|
+
return aClass - bClass;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
if (aName !== bName) {
|
|
861
|
+
return aName - bName;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
return aType - bType;
|
|
865
|
+
}
|
|
866
|
+
|
|
851
867
|
function compareMethodItems (a, b) {
|
|
852
868
|
const [aClass, aProto, aName] = a;
|
|
853
869
|
const [bClass, bProto, bName] = b;
|