@futpib/parser 1.0.1 → 1.0.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.
Files changed (304) hide show
  1. package/build/allSettledStream.js +32 -14
  2. package/build/allSettledStream.test.js +32 -0
  3. package/build/androidPackage.d.ts +39 -0
  4. package/build/androidPackageParser.d.ts +17 -0
  5. package/build/androidPackageParser.js +183 -0
  6. package/build/{apkParser.test.js → androidPackageParser.test.js} +6 -6
  7. package/build/androidPackageUnparser.d.ts +4 -0
  8. package/build/{apkUnparser.js → androidPackageUnparser.js} +23 -23
  9. package/build/androidPackageUnparser.test.js +26 -0
  10. package/build/arbitrarilySlicedAsyncInterable.d.ts +3 -1
  11. package/build/arbitrarilySlicedAsyncInterable.js +3 -3
  12. package/build/arrayParser.test.js +3 -3
  13. package/build/backsmali.d.ts +1 -0
  14. package/build/backsmali.js +22 -0
  15. package/build/bsonParser.js +6 -2
  16. package/build/customInvariant.d.ts +1 -1
  17. package/build/dalvikBytecodeParser/formatParsers.d.ts +97 -0
  18. package/build/dalvikBytecodeParser/formatParsers.js +169 -0
  19. package/build/dalvikBytecodeParser.d.ts +107 -0
  20. package/build/dalvikBytecodeParser.js +836 -0
  21. package/build/dalvikExecutable.d.ts +158 -0
  22. package/build/dalvikExecutable.js +20 -0
  23. package/build/dalvikExecutableParser/stringSyntaxParser.d.ts +4 -0
  24. package/build/dalvikExecutableParser/stringSyntaxParser.js +76 -0
  25. package/build/dalvikExecutableParser/typeParsers.d.ts +10 -0
  26. package/build/dalvikExecutableParser/typeParsers.js +34 -0
  27. package/build/dalvikExecutableParser/typedNumbers.d.ts +90 -0
  28. package/build/dalvikExecutableParser/typedNumbers.js +19 -0
  29. package/build/dalvikExecutableParser.d.ts +5 -0
  30. package/build/dalvikExecutableParser.js +1439 -0
  31. package/build/dalvikExecutableParser.test.js +70 -0
  32. package/build/dalvikExecutableParserAgainstSmaliParser.test.js +298 -0
  33. package/build/debugLogInputParser.d.ts +4 -0
  34. package/build/debugLogInputParser.js +16 -0
  35. package/build/debugLogParser.js +14 -3
  36. package/build/disjunctionParser.d.ts +2 -1
  37. package/build/disjunctionParser.js +4 -2
  38. package/build/elementTerminatedArrayParser.d.ts +3 -0
  39. package/build/elementTerminatedArrayParser.js +18 -0
  40. package/build/elementTerminatedArrayParser.test.js +52 -0
  41. package/build/elementTerminatedSequenceArrayParser.d.ts +3 -0
  42. package/build/elementTerminatedSequenceArrayParser.js +32 -0
  43. package/build/elementTerminatedSequenceArrayParser.test.js +34 -0
  44. package/build/elementTerminatedSequenceParser.d.ts +3 -0
  45. package/build/elementTerminatedSequenceParser.js +27 -0
  46. package/build/elementTerminatedSequenceParser.test.js +34 -0
  47. package/build/exactElementParser.js +10 -5
  48. package/build/exactSequenceParser.d.ts +2 -1
  49. package/build/exactSequenceParser.js +12 -2
  50. package/build/fetchCid.d.ts +1 -0
  51. package/build/fetchCid.js +107 -0
  52. package/build/fixedLengthSequenceParser.d.ts +1 -0
  53. package/build/fixedLengthSequenceParser.js +18 -1
  54. package/build/fixedLengthSequenceParser.test.js +41 -0
  55. package/build/hasExecutable.d.ts +1 -0
  56. package/build/hasExecutable.js +8 -0
  57. package/build/highResolutionTimer.d.ts +16 -0
  58. package/build/highResolutionTimer.js +42 -0
  59. package/build/inputReader.d.ts +11 -0
  60. package/build/inputReader.js +37 -0
  61. package/build/inputReader.test.js +165 -0
  62. package/build/inputReaderState.d.ts +10 -0
  63. package/build/inputReaderState.js +16 -0
  64. package/build/inspect.d.ts +1 -0
  65. package/build/inspect.js +7 -0
  66. package/build/javaKeyStoreParser.test.js +2 -2
  67. package/build/jsonParser.d.ts +2 -0
  68. package/build/jsonParser.js +11 -14
  69. package/build/leb128Parser.d.ts +7 -0
  70. package/build/leb128Parser.js +82 -0
  71. package/build/leb128Parser.test.js +107 -0
  72. package/build/lookaheadParser.d.ts +2 -0
  73. package/build/lookaheadParser.js +14 -0
  74. package/build/negativeLookaheadParser.js +21 -15
  75. package/build/negativeLookaheadParser.test.js +30 -0
  76. package/build/nonEmptyArrayParser.d.ts +2 -0
  77. package/build/nonEmptyArrayParser.js +32 -0
  78. package/build/nonEmptyArrayParser.test.js +16 -0
  79. package/build/parser.d.ts +10 -1
  80. package/build/parser.js +66 -31
  81. package/build/parser.test.js +79 -12
  82. package/build/parserAccessorParser.js +9 -1
  83. package/build/parserConsumedSequenceParser.js +20 -15
  84. package/build/parserContext.d.ts +14 -0
  85. package/build/parserContext.js +56 -27
  86. package/build/parserContext.test.js +27 -0
  87. package/build/parserCreatorCompose.d.ts +1 -0
  88. package/build/parserCreatorCompose.js +8 -2
  89. package/build/parserError.d.ts +6 -0
  90. package/build/parserError.js +6 -6
  91. package/build/parserInputCompanion.d.ts +15 -0
  92. package/build/parserInputCompanion.js +38 -0
  93. package/build/promiseCompose.d.ts +1 -1
  94. package/build/promiseCompose.js +12 -1
  95. package/build/promiseSettled.d.ts +1 -0
  96. package/build/promiseSettled.js +4 -0
  97. package/build/separatedArrayParser.d.ts +2 -0
  98. package/build/separatedArrayParser.js +39 -0
  99. package/build/separatedArrayParser.test.d.ts +1 -0
  100. package/build/separatedArrayParser.test.js +21 -0
  101. package/build/sequenceBuffer.d.ts +10 -0
  102. package/build/sequenceBuffer.js +54 -2
  103. package/build/sequenceBuffer.test.js +57 -0
  104. package/build/sequenceTerminatedSequenceParser.d.ts +5 -0
  105. package/build/sequenceTerminatedSequenceParser.js +32 -0
  106. package/build/sequenceTerminatedSequenceParser.test.d.ts +1 -0
  107. package/build/sequenceTerminatedSequenceParser.test.js +37 -0
  108. package/build/skipParser.d.ts +1 -1
  109. package/build/skipParser.js +4 -2
  110. package/build/skipToParser.d.ts +2 -0
  111. package/build/skipToParser.js +11 -0
  112. package/build/sliceBoundedParser.d.ts +1 -1
  113. package/build/sliceBoundedParser.js +7 -2
  114. package/build/sliceBoundedParser.test.js +35 -1
  115. package/build/smali.d.ts +1 -0
  116. package/build/smali.js +17 -0
  117. package/build/smaliParser.d.ts +12 -0
  118. package/build/smaliParser.js +656 -0
  119. package/build/smaliParser.test.d.ts +1 -0
  120. package/build/smaliParser.test.js +115 -0
  121. package/build/terminatedArrayParser.d.ts +3 -1
  122. package/build/terminatedArrayParser.js +79 -2
  123. package/build/terminatedArrayParser.test.d.ts +1 -0
  124. package/build/terminatedArrayParser.test.js +131 -0
  125. package/build/toAsyncIterable.d.ts +1 -0
  126. package/build/toAsyncIterable.js +7 -0
  127. package/build/toAsyncIterator.d.ts +1 -0
  128. package/build/toAsyncIterator.js +33 -0
  129. package/build/tupleParser.d.ts +4 -0
  130. package/build/tupleParser.js +1 -5
  131. package/build/unionParser.d.ts +2 -1
  132. package/build/unionParser.js +27 -12
  133. package/build/unionParser.test.d.ts +1 -0
  134. package/build/unionParser.test.js +60 -0
  135. package/build/zipParser.d.ts +7 -2
  136. package/build/zipParser.js +36 -12
  137. package/build/zipUnparser.d.ts +4 -1
  138. package/build/zipUnparser.js +55 -26
  139. package/build/zipUnparser.test.js +14 -14
  140. package/package.json +23 -7
  141. package/src/allSettledStream.test.ts +40 -0
  142. package/src/allSettledStream.ts +47 -15
  143. package/src/androidPackage.ts +48 -0
  144. package/src/{apkParser.test.ts → androidPackageParser.test.ts} +6 -7
  145. package/src/{apkParser.test.ts.md → androidPackageParser.test.ts.md} +4 -4
  146. package/src/androidPackageParser.test.ts.snap +0 -0
  147. package/src/androidPackageParser.ts +440 -0
  148. package/src/androidPackageUnparser.test.ts +36 -0
  149. package/src/androidPackageUnparser.ts +120 -0
  150. package/src/arbitrarilySlicedAsyncInterable.ts +7 -2
  151. package/src/arrayParser.test.ts +3 -3
  152. package/src/backsmali.ts +30 -0
  153. package/src/bsonParser.ts +13 -2
  154. package/src/customInvariant.ts +1 -1
  155. package/src/dalvikBytecodeParser/formatParsers.ts +421 -0
  156. package/src/dalvikBytecodeParser.ts +2074 -0
  157. package/src/dalvikExecutable.ts +220 -0
  158. package/src/dalvikExecutableParser/stringSyntaxParser.ts +145 -0
  159. package/src/dalvikExecutableParser/typeParsers.ts +65 -0
  160. package/src/dalvikExecutableParser/typedNumbers.ts +57 -0
  161. package/src/dalvikExecutableParser.test.ts +89 -0
  162. package/src/dalvikExecutableParser.test.ts.md +634 -0
  163. package/src/dalvikExecutableParser.test.ts.snap +0 -0
  164. package/src/dalvikExecutableParser.ts +2768 -0
  165. package/src/dalvikExecutableParserAgainstSmaliParser.test.ts +346 -0
  166. package/src/debugLogInputParser.ts +28 -0
  167. package/src/debugLogParser.ts +19 -3
  168. package/src/disjunctionParser.ts +10 -5
  169. package/src/elementTerminatedArrayParser.test.ts +99 -0
  170. package/src/elementTerminatedArrayParser.ts +31 -0
  171. package/src/elementTerminatedSequenceArrayParser.test.ts +54 -0
  172. package/src/elementTerminatedSequenceArrayParser.ts +52 -0
  173. package/src/elementTerminatedSequenceParser.test.ts +54 -0
  174. package/src/elementTerminatedSequenceParser.ts +43 -0
  175. package/src/exactElementParser.ts +17 -11
  176. package/src/exactSequenceParser.ts +23 -2
  177. package/src/fetchCid.ts +125 -0
  178. package/src/fixedLengthSequenceParser.test.ts +77 -0
  179. package/src/fixedLengthSequenceParser.ts +28 -1
  180. package/src/hasExecutable.ts +11 -0
  181. package/src/highResolutionTimer.ts +49 -0
  182. package/src/inputReader.test.ts +209 -0
  183. package/src/inputReader.ts +75 -0
  184. package/src/inputReaderState.ts +33 -0
  185. package/src/inspect.ts +9 -0
  186. package/src/javaKeyStoreParser.test.ts +2 -3
  187. package/src/jsonParser.ts +13 -25
  188. package/src/leb128Parser.test.ts +171 -0
  189. package/src/leb128Parser.ts +125 -0
  190. package/src/lookaheadParser.ts +19 -0
  191. package/src/negativeLookaheadParser.test.ts +53 -0
  192. package/src/negativeLookaheadParser.ts +26 -14
  193. package/src/nonEmptyArrayParser.test.ts +20 -0
  194. package/src/nonEmptyArrayParser.ts +44 -0
  195. package/src/optionalParser.ts +1 -0
  196. package/src/parser.test.ts +131 -12
  197. package/src/parser.test.ts.md +21 -21
  198. package/src/parser.test.ts.snap +0 -0
  199. package/src/parser.ts +149 -45
  200. package/src/parserAccessorParser.ts +12 -2
  201. package/src/parserConsumedSequenceParser.ts +25 -16
  202. package/src/parserContext.test.ts +31 -0
  203. package/src/parserContext.ts +109 -37
  204. package/src/parserCreatorCompose.ts +20 -2
  205. package/src/parserError.ts +9 -6
  206. package/src/parserInputCompanion.ts +55 -0
  207. package/src/promiseCompose.ts +17 -3
  208. package/src/promiseSettled.ts +6 -0
  209. package/src/separatedArrayParser.test.ts +34 -0
  210. package/src/separatedArrayParser.ts +55 -0
  211. package/src/sequenceBuffer.test.ts +70 -0
  212. package/src/sequenceBuffer.ts +88 -2
  213. package/src/sequenceTerminatedSequenceParser.test.ts +60 -0
  214. package/src/sequenceTerminatedSequenceParser.ts +62 -0
  215. package/src/skipParser.ts +7 -5
  216. package/src/skipToParser.ts +16 -0
  217. package/src/sliceBoundedParser.test.ts +43 -1
  218. package/src/sliceBoundedParser.ts +19 -1
  219. package/src/smali.ts +24 -0
  220. package/src/smaliParser.test.ts +132 -0
  221. package/src/smaliParser.test.ts.md +2320 -0
  222. package/src/smaliParser.test.ts.snap +0 -0
  223. package/src/smaliParser.ts +1166 -0
  224. package/src/terminatedArrayParser.test.ts +258 -0
  225. package/src/terminatedArrayParser.ts +108 -3
  226. package/src/toAsyncIterable.ts +7 -0
  227. package/src/toAsyncIterator.ts +48 -0
  228. package/src/tupleParser.ts +8 -5
  229. package/src/unionParser.test.ts +79 -0
  230. package/src/unionParser.ts +44 -16
  231. package/src/zipParser.ts +77 -18
  232. package/src/zipUnparser.test.ts +18 -18
  233. package/src/zipUnparser.ts +88 -27
  234. package/build/apk.d.ts +0 -39
  235. package/build/apkParser.d.ts +0 -16
  236. package/build/apkParser.js +0 -164
  237. package/build/apkUnparser.d.ts +0 -4
  238. package/build/apkUnparser.test.js +0 -26
  239. package/build/arbitraryDosDate.d.ts +0 -2
  240. package/build/arbitraryDosDate.js +0 -8
  241. package/build/arbitraryZipEntry.d.ts +0 -3
  242. package/build/arbitraryZipEntry.js +0 -26
  243. package/build/createDisjunctionParser.d.ts +0 -2
  244. package/build/createDisjunctionParser.js +0 -47
  245. package/build/createExactParser.d.ts +0 -2
  246. package/build/createExactParser.js +0 -12
  247. package/build/createSequentialUnionParser.d.ts +0 -2
  248. package/build/createSequentialUnionParser.js +0 -69
  249. package/build/fixedLengthChunkParser.d.ts +0 -2
  250. package/build/fixedLengthChunkParser.js +0 -12
  251. package/build/fixedLengthParser.d.ts +0 -2
  252. package/build/fixedLengthParser.js +0 -12
  253. package/build/inputChunkBuffer.d.ts +0 -15
  254. package/build/inputChunkBuffer.js +0 -40
  255. package/build/inputChunkBuffer.test.js +0 -34
  256. package/build/inputCompanion.d.ts +0 -18
  257. package/build/inputCompanion.js +0 -28
  258. package/build/invariantDefined.d.ts +0 -1
  259. package/build/invariantDefined.js +0 -5
  260. package/build/invariantIdentity.d.ts +0 -3
  261. package/build/invariantIdentity.js +0 -5
  262. package/build/javaKeystoreParser.d.ts +0 -2
  263. package/build/javaKeystoreParser.js +0 -7
  264. package/build/jsonParser2.d.ts +0 -3
  265. package/build/jsonParser2.js +0 -52
  266. package/build/jsonParser2.test.js +0 -22
  267. package/build/negativeLookahead.d.ts +0 -2
  268. package/build/negativeLookahead.js +0 -18
  269. package/build/parserCompose.d.ts +0 -3
  270. package/build/parserCompose.js +0 -7
  271. package/build/parserImplementationInvariantInvariant.d.ts +0 -3
  272. package/build/parserImplementationInvariantInvariant.js +0 -15
  273. package/build/parserInvariant.d.ts +0 -4
  274. package/build/parserInvariant.js +0 -11
  275. package/build/promiseFish.d.ts +0 -1
  276. package/build/promiseFish.js +0 -3
  277. package/build/sequenceParser.d.ts +0 -3
  278. package/build/sequenceParser.js +0 -10
  279. package/build/terminatedSequenceParser.d.ts +0 -2
  280. package/build/terminatedSequenceParser.js +0 -24
  281. package/build/unparserInputCompanion.d.ts +0 -15
  282. package/build/unparserInputCompanion.js +0 -13
  283. package/build/zipEntry.d.ts +0 -28
  284. package/build/zipFile.d.ts +0 -32
  285. package/build/zipFileEntry.d.ts +0 -6
  286. package/src/apk.ts +0 -48
  287. package/src/apkParser.test.ts.snap +0 -0
  288. package/src/apkParser.ts +0 -392
  289. package/src/apkUnparser.test.ts +0 -37
  290. package/src/apkUnparser.ts +0 -120
  291. package/src/invariantDefined.ts +0 -6
  292. package/src/invariantIdentity.ts +0 -8
  293. /package/build/{apk.js → androidPackage.js} +0 -0
  294. /package/build/{apkParser.test.d.ts → androidPackageParser.test.d.ts} +0 -0
  295. /package/build/{apkUnparser.test.d.ts → androidPackageUnparser.test.d.ts} +0 -0
  296. /package/build/{arbitraryDosPermissions.d.ts → dalvikExecutableParser.test.d.ts} +0 -0
  297. /package/build/{arbitraryDosPermissions.js → dalvikExecutableParserAgainstSmaliParser.test.d.ts} +0 -0
  298. /package/build/{inputChunkBuffer.test.d.ts → elementTerminatedArrayParser.test.d.ts} +0 -0
  299. /package/build/{jsonParser2.test.d.ts → elementTerminatedSequenceArrayParser.test.d.ts} +0 -0
  300. /package/build/{parserParsingInvariant.d.ts → elementTerminatedSequenceParser.test.d.ts} +0 -0
  301. /package/build/{parserParsingInvariant.js → fixedLengthSequenceParser.test.d.ts} +0 -0
  302. /package/build/{zipEntry.js → leb128Parser.test.d.ts} +0 -0
  303. /package/build/{zipFile.js → negativeLookaheadParser.test.d.ts} +0 -0
  304. /package/build/{zipFileEntry.js → nonEmptyArrayParser.test.d.ts} +0 -0
@@ -0,0 +1,634 @@
1
+ # Snapshot report for `src/dalvikExecutableParser.test.ts`
2
+
3
+ The actual snapshot is saved in `dalvikExecutableParser.test.ts.snap`.
4
+
5
+ Generated by [AVA](https://avajs.dev).
6
+
7
+ ## dex (with instructions as bytes) bafkreibb4gsprc3fvmnyqx6obswvm7e7wngnfj64gz65ey72r7xgyzymt4
8
+
9
+ > Snapshot 1
10
+
11
+ {
12
+ classDefinitions: [
13
+ {
14
+ accessFlags: @Object {
15
+ abstract: false,
16
+ annotation: false,
17
+ bridge: false,
18
+ constructor: false,
19
+ declaredSynchronized: false,
20
+ enum: false,
21
+ final: false,
22
+ interface: false,
23
+ native: false,
24
+ private: false,
25
+ protected: false,
26
+ public: true,
27
+ static: false,
28
+ strict: false,
29
+ synchronized: false,
30
+ synthetic: false,
31
+ transient: false,
32
+ varargs: false,
33
+ volatile: false,
34
+ },
35
+ annotations: undefined,
36
+ class: 'Lpl/czak/minimal/MainActivity;',
37
+ classData: {
38
+ directMethods: [
39
+ {
40
+ accessFlags: @Object {
41
+ abstract: false,
42
+ annotation: false,
43
+ bridge: false,
44
+ constructor: true,
45
+ declaredSynchronized: false,
46
+ enum: false,
47
+ final: false,
48
+ interface: false,
49
+ native: false,
50
+ private: false,
51
+ protected: false,
52
+ public: true,
53
+ static: false,
54
+ strict: false,
55
+ synchronized: false,
56
+ synthetic: false,
57
+ transient: false,
58
+ varargs: false,
59
+ volatile: false,
60
+ },
61
+ code: {
62
+ debugInfo: {
63
+ bytecode: [
64
+ {
65
+ type: 'special',
66
+ value: 14,
67
+ },
68
+ ],
69
+ lineStart: 7,
70
+ parameterNames: [],
71
+ },
72
+ insSize: 1,
73
+ instructions: Uint8Array [
74
+ 70100000 00000e00
75
+ ],
76
+ outsSize: 1,
77
+ registersSize: 1,
78
+ tries: [],
79
+ },
80
+ method: {
81
+ class: 'Lpl/czak/minimal/MainActivity;',
82
+ name: '<init>',
83
+ prototype: {
84
+ parameters: [],
85
+ returnType: 'V',
86
+ shorty: 'V',
87
+ },
88
+ },
89
+ },
90
+ ],
91
+ instanceFields: [],
92
+ staticFields: [],
93
+ virtualMethods: [
94
+ {
95
+ accessFlags: @Object {
96
+ abstract: false,
97
+ annotation: false,
98
+ bridge: false,
99
+ constructor: false,
100
+ declaredSynchronized: false,
101
+ enum: false,
102
+ final: false,
103
+ interface: false,
104
+ native: false,
105
+ private: false,
106
+ protected: false,
107
+ public: true,
108
+ static: false,
109
+ strict: false,
110
+ synchronized: false,
111
+ synthetic: false,
112
+ transient: false,
113
+ varargs: false,
114
+ volatile: false,
115
+ },
116
+ code: {
117
+ debugInfo: {
118
+ bytecode: [
119
+ {
120
+ type: 'special',
121
+ value: 14,
122
+ },
123
+ {
124
+ type: 'special',
125
+ value: 61,
126
+ },
127
+ {
128
+ type: 'special',
129
+ value: 90,
130
+ },
131
+ {
132
+ name: 'onCreate',
133
+ registerNum: 0,
134
+ type: 'startLocal',
135
+ type_: 'Ljava/lang/CharSequence;',
136
+ },
137
+ {
138
+ type: 'special',
139
+ value: 91,
140
+ },
141
+ {
142
+ type: 'special',
143
+ value: 60,
144
+ },
145
+ ],
146
+ lineStart: 11,
147
+ parameterNames: [
148
+ 'savedInstanceState',
149
+ ],
150
+ },
151
+ insSize: 2,
152
+ instructions: Uint8Array [
153
+ 6f200100 32002200 04007020 02002000 1a010100 6e200300 10006e20 07000200
154
+ 0e00
155
+ ],
156
+ outsSize: 2,
157
+ registersSize: 4,
158
+ tries: [],
159
+ },
160
+ method: {
161
+ class: 'Lpl/czak/minimal/MainActivity;',
162
+ name: 'onCreate',
163
+ prototype: {
164
+ parameters: [
165
+ 'Landroid/os/Bundle;',
166
+ ],
167
+ returnType: 'V',
168
+ shorty: 'VL',
169
+ },
170
+ },
171
+ },
172
+ ],
173
+ },
174
+ interfaces: [],
175
+ sourceFile: 'MainActivity.java',
176
+ staticValues: [],
177
+ superclass: 'Landroid/app/Activity;',
178
+ },
179
+ {
180
+ accessFlags: @Object {
181
+ abstract: false,
182
+ annotation: false,
183
+ bridge: false,
184
+ constructor: false,
185
+ declaredSynchronized: false,
186
+ enum: false,
187
+ final: true,
188
+ interface: false,
189
+ native: false,
190
+ private: false,
191
+ protected: false,
192
+ public: true,
193
+ static: false,
194
+ strict: false,
195
+ synchronized: false,
196
+ synthetic: false,
197
+ transient: false,
198
+ varargs: false,
199
+ volatile: false,
200
+ },
201
+ annotations: undefined,
202
+ class: 'Lpl/czak/minimal/R;',
203
+ classData: {
204
+ directMethods: [
205
+ {
206
+ accessFlags: @Object {
207
+ abstract: false,
208
+ annotation: false,
209
+ bridge: false,
210
+ constructor: true,
211
+ declaredSynchronized: false,
212
+ enum: false,
213
+ final: false,
214
+ interface: false,
215
+ native: false,
216
+ private: true,
217
+ protected: false,
218
+ public: false,
219
+ static: false,
220
+ strict: false,
221
+ synchronized: false,
222
+ synthetic: false,
223
+ transient: false,
224
+ varargs: false,
225
+ volatile: false,
226
+ },
227
+ code: {
228
+ debugInfo: undefined,
229
+ insSize: 1,
230
+ instructions: Uint8Array [
231
+ 70100400 00000e00
232
+ ],
233
+ outsSize: 1,
234
+ registersSize: 1,
235
+ tries: [],
236
+ },
237
+ method: {
238
+ class: 'Lpl/czak/minimal/R;',
239
+ name: '<init>',
240
+ prototype: {
241
+ parameters: [],
242
+ returnType: 'V',
243
+ shorty: 'V',
244
+ },
245
+ },
246
+ },
247
+ ],
248
+ instanceFields: [],
249
+ staticFields: [],
250
+ virtualMethods: [],
251
+ },
252
+ interfaces: [],
253
+ sourceFile: undefined,
254
+ staticValues: [],
255
+ superclass: 'Ljava/lang/Object;',
256
+ },
257
+ ],
258
+ link: undefined,
259
+ }
260
+
261
+ ## dex (with parsed instructions) bafkreibb4gsprc3fvmnyqx6obswvm7e7wngnfj64gz65ey72r7xgyzymt4
262
+
263
+ > Snapshot 1
264
+
265
+ {
266
+ classDefinitions: [
267
+ {
268
+ accessFlags: @Object {
269
+ abstract: false,
270
+ annotation: false,
271
+ bridge: false,
272
+ constructor: false,
273
+ declaredSynchronized: false,
274
+ enum: false,
275
+ final: false,
276
+ interface: false,
277
+ native: false,
278
+ private: false,
279
+ protected: false,
280
+ public: true,
281
+ static: false,
282
+ strict: false,
283
+ synchronized: false,
284
+ synthetic: false,
285
+ transient: false,
286
+ varargs: false,
287
+ volatile: false,
288
+ },
289
+ annotations: undefined,
290
+ class: 'Lpl/czak/minimal/MainActivity;',
291
+ classData: {
292
+ directMethods: [
293
+ {
294
+ accessFlags: @Object {
295
+ abstract: false,
296
+ annotation: false,
297
+ bridge: false,
298
+ constructor: true,
299
+ declaredSynchronized: false,
300
+ enum: false,
301
+ final: false,
302
+ interface: false,
303
+ native: false,
304
+ private: false,
305
+ protected: false,
306
+ public: true,
307
+ static: false,
308
+ strict: false,
309
+ synchronized: false,
310
+ synthetic: false,
311
+ transient: false,
312
+ varargs: false,
313
+ volatile: false,
314
+ },
315
+ code: {
316
+ debugInfo: {
317
+ bytecode: [
318
+ {
319
+ type: 'special',
320
+ value: 14,
321
+ },
322
+ ],
323
+ lineStart: 7,
324
+ parameterNames: [],
325
+ },
326
+ insSize: 1,
327
+ instructions: [
328
+ {
329
+ method: {
330
+ class: 'Landroid/app/Activity;',
331
+ name: '<init>',
332
+ prototype: {
333
+ parameters: [],
334
+ returnType: 'V',
335
+ shorty: 'V',
336
+ },
337
+ },
338
+ operation: 'invoke-direct',
339
+ registers: [
340
+ 0,
341
+ ],
342
+ },
343
+ {
344
+ operation: 'return-void',
345
+ },
346
+ ],
347
+ outsSize: 1,
348
+ registersSize: 1,
349
+ tries: [],
350
+ },
351
+ method: {
352
+ class: 'Lpl/czak/minimal/MainActivity;',
353
+ name: '<init>',
354
+ prototype: {
355
+ parameters: [],
356
+ returnType: 'V',
357
+ shorty: 'V',
358
+ },
359
+ },
360
+ },
361
+ ],
362
+ instanceFields: [],
363
+ staticFields: [],
364
+ virtualMethods: [
365
+ {
366
+ accessFlags: @Object {
367
+ abstract: false,
368
+ annotation: false,
369
+ bridge: false,
370
+ constructor: false,
371
+ declaredSynchronized: false,
372
+ enum: false,
373
+ final: false,
374
+ interface: false,
375
+ native: false,
376
+ private: false,
377
+ protected: false,
378
+ public: true,
379
+ static: false,
380
+ strict: false,
381
+ synchronized: false,
382
+ synthetic: false,
383
+ transient: false,
384
+ varargs: false,
385
+ volatile: false,
386
+ },
387
+ code: {
388
+ debugInfo: {
389
+ bytecode: [
390
+ {
391
+ type: 'special',
392
+ value: 14,
393
+ },
394
+ {
395
+ type: 'special',
396
+ value: 61,
397
+ },
398
+ {
399
+ type: 'special',
400
+ value: 90,
401
+ },
402
+ {
403
+ name: 'onCreate',
404
+ registerNum: 0,
405
+ type: 'startLocal',
406
+ type_: 'Ljava/lang/CharSequence;',
407
+ },
408
+ {
409
+ type: 'special',
410
+ value: 91,
411
+ },
412
+ {
413
+ type: 'special',
414
+ value: 60,
415
+ },
416
+ ],
417
+ lineStart: 11,
418
+ parameterNames: [
419
+ 'savedInstanceState',
420
+ ],
421
+ },
422
+ insSize: 2,
423
+ instructions: [
424
+ {
425
+ method: {
426
+ class: 'Landroid/app/Activity;',
427
+ name: 'onCreate',
428
+ prototype: {
429
+ parameters: [
430
+ 'Landroid/os/Bundle;',
431
+ ],
432
+ returnType: 'V',
433
+ shorty: 'VL',
434
+ },
435
+ },
436
+ operation: 'invoke-super',
437
+ registers: [
438
+ 3,
439
+ 2,
440
+ ],
441
+ },
442
+ {
443
+ operation: 'new-instance',
444
+ registers: [
445
+ 0,
446
+ ],
447
+ type: 'Landroid/widget/TextView;',
448
+ },
449
+ {
450
+ method: {
451
+ class: 'Landroid/widget/TextView;',
452
+ name: '<init>',
453
+ prototype: {
454
+ parameters: [
455
+ 'Landroid/content/Context;',
456
+ ],
457
+ returnType: 'V',
458
+ shorty: 'VL',
459
+ },
460
+ },
461
+ operation: 'invoke-direct',
462
+ registers: [
463
+ 2,
464
+ 0,
465
+ ],
466
+ },
467
+ {
468
+ operation: 'const-string',
469
+ registers: [
470
+ 1,
471
+ ],
472
+ string: 'Hello world!',
473
+ },
474
+ {
475
+ method: {
476
+ class: 'Landroid/widget/TextView;',
477
+ name: 'setText',
478
+ prototype: {
479
+ parameters: [
480
+ 'Ljava/lang/CharSequence;',
481
+ ],
482
+ returnType: 'V',
483
+ shorty: 'VL',
484
+ },
485
+ },
486
+ operation: 'invoke-virtual',
487
+ registers: [
488
+ 1,
489
+ 0,
490
+ ],
491
+ },
492
+ {
493
+ method: {
494
+ class: 'Lpl/czak/minimal/MainActivity;',
495
+ name: 'setContentView',
496
+ prototype: {
497
+ parameters: [
498
+ 'Landroid/view/View;',
499
+ ],
500
+ returnType: 'V',
501
+ shorty: 'VL',
502
+ },
503
+ },
504
+ operation: 'invoke-virtual',
505
+ registers: [
506
+ 0,
507
+ 2,
508
+ ],
509
+ },
510
+ {
511
+ operation: 'return-void',
512
+ },
513
+ ],
514
+ outsSize: 2,
515
+ registersSize: 4,
516
+ tries: [],
517
+ },
518
+ method: {
519
+ class: 'Lpl/czak/minimal/MainActivity;',
520
+ name: 'onCreate',
521
+ prototype: {
522
+ parameters: [
523
+ 'Landroid/os/Bundle;',
524
+ ],
525
+ returnType: 'V',
526
+ shorty: 'VL',
527
+ },
528
+ },
529
+ },
530
+ ],
531
+ },
532
+ interfaces: [],
533
+ sourceFile: 'MainActivity.java',
534
+ staticValues: [],
535
+ superclass: 'Landroid/app/Activity;',
536
+ },
537
+ {
538
+ accessFlags: @Object {
539
+ abstract: false,
540
+ annotation: false,
541
+ bridge: false,
542
+ constructor: false,
543
+ declaredSynchronized: false,
544
+ enum: false,
545
+ final: true,
546
+ interface: false,
547
+ native: false,
548
+ private: false,
549
+ protected: false,
550
+ public: true,
551
+ static: false,
552
+ strict: false,
553
+ synchronized: false,
554
+ synthetic: false,
555
+ transient: false,
556
+ varargs: false,
557
+ volatile: false,
558
+ },
559
+ annotations: undefined,
560
+ class: 'Lpl/czak/minimal/R;',
561
+ classData: {
562
+ directMethods: [
563
+ {
564
+ accessFlags: @Object {
565
+ abstract: false,
566
+ annotation: false,
567
+ bridge: false,
568
+ constructor: true,
569
+ declaredSynchronized: false,
570
+ enum: false,
571
+ final: false,
572
+ interface: false,
573
+ native: false,
574
+ private: true,
575
+ protected: false,
576
+ public: false,
577
+ static: false,
578
+ strict: false,
579
+ synchronized: false,
580
+ synthetic: false,
581
+ transient: false,
582
+ varargs: false,
583
+ volatile: false,
584
+ },
585
+ code: {
586
+ debugInfo: undefined,
587
+ insSize: 1,
588
+ instructions: [
589
+ {
590
+ method: {
591
+ class: 'Ljava/lang/Object;',
592
+ name: '<init>',
593
+ prototype: {
594
+ parameters: [],
595
+ returnType: 'V',
596
+ shorty: 'V',
597
+ },
598
+ },
599
+ operation: 'invoke-direct',
600
+ registers: [
601
+ 0,
602
+ ],
603
+ },
604
+ {
605
+ operation: 'return-void',
606
+ },
607
+ ],
608
+ outsSize: 1,
609
+ registersSize: 1,
610
+ tries: [],
611
+ },
612
+ method: {
613
+ class: 'Lpl/czak/minimal/R;',
614
+ name: '<init>',
615
+ prototype: {
616
+ parameters: [],
617
+ returnType: 'V',
618
+ shorty: 'V',
619
+ },
620
+ },
621
+ },
622
+ ],
623
+ instanceFields: [],
624
+ staticFields: [],
625
+ virtualMethods: [],
626
+ },
627
+ interfaces: [],
628
+ sourceFile: undefined,
629
+ staticValues: [],
630
+ superclass: 'Ljava/lang/Object;',
631
+ },
632
+ ],
633
+ link: undefined,
634
+ }