Commit 36c48fe
fix: resolve method signatures from device DEX for version-aware proxies
The transport cache stored ScannedJARs (marking JARs as already processed)
but only cached transaction codes, not method signatures. When
ResolveMethodSignature was called, the JAR scan was skipped because
ScannedJARs said the JARs were already processed.
Added loadSignatures() that scans JARs for $Stub$Proxy method prototypes
independently of the transaction code cache. This enables the generated
proxy to detect that API 35 registerClient has 4 params (no transport)
vs API 36's 5 params and adapt the marshaling accordingly.
Verified: TestBluetoothGATT_FullPipeline/GATTClientLifecycle now passes
with OnClientRegistered status=0 (GATT_SUCCESS) on API 35 emulator.1 parent 4dcd8f6 commit 36c48fe
1 file changed
Lines changed: 59 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
320 | | - | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | | - | |
| 329 | + | |
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
327 | | - | |
328 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
329 | 349 | | |
330 | 350 | | |
331 | 351 | | |
| |||
339 | 359 | | |
340 | 360 | | |
341 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
342 | 397 | | |
343 | 398 | | |
344 | 399 | | |
| |||
0 commit comments