Commit 1a9826a
fix: 32 bugs across server, CLI, generators, tests, and proto
Server bugs:
- Fix race condition: register callback channel before stream.Send
- Promote voidDetector JNI local ref to global ref
- Enable SQLite WAL mode and set MaxOpenConns(1)
- Add nil checks for systemMain/getSystemContext return values
- Check NewStringUTF errors in launchPermissionDialog
- Use errors.Is for io.EOF comparison in proxy_stream
- Add all primitive types to NewPrimitiveArray (was byte-only)
- Use INSERT OR REPLACE for client re-registration
CLI bugs:
- Fix --insecure flag description (TLS skip-verify, not plaintext)
- Add default transport credentials when no flags given
- Remove InsecureSkipVerify override when mTLS certs provided
- Fix readFileViaJNI to loop reads instead of single truncating call
Generator bugs:
- Set ResultExpr for no-error object-returning methods
- Add handle store logic for no-error object returns in template
- Fix hardcoded jni import path to use JniModule variable
- Fix collision rename: check for secondary collisions
- Fix TrimRight→TrimSuffix for trailing underscore removal
- Fix byte result type: uint32 cast to match proto field
- Add int param/result type casts (int↔int32)
- Remove unused cc field from generated client structs
Test bugs:
- Fix capture_test.go wrong CLI path (battery-manager→manager)
- Fix 3 slice aliasing bugs (list_commands, setup_test, scenarios_test)
- Fix TestMain os.Exit skipping defer cleanup
- Fix %v→%w error wrapping in setup_test
- Fix is-same test misleading failure message
- Add test for uint16 client result expr
- Add test for no-error object return server method
Proto bugs:
- Fix handlestore.proto go_package (jni→jni-proxy module)
- Fix loop variable shadowing in protogen collision rename
- Fix ReturnVoid handling in protoTypeFromReturn
- Check scanner.Err() in protoscan after scanning1 parent 7be21c8 commit 1a9826a
54 files changed
Lines changed: 199 additions & 120 deletions
File tree
- cmd
- jnicli
- jniservice
- grpc
- client
- accounts
- admin
- alarm
- audiomanager
- battery
- biometric
- blob
- camera
- clipboard
- companion
- display
- download
- inputmethod
- ir
- job
- keyguard
- location
- net
- notification
- nsd
- power
- print
- projection
- role
- session
- storage
- telecom
- telephony
- usage
- usb
- vibrator
- wifi_p2p
- wifi_rtt
- wifi
- server
- acl
- jni_raw
- proto/handlestore
- tests/e2e-grpc
- tools/pkg
- cligen
- grpcgen
- protogen
- protoscan
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | | - | |
| 694 | + | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
701 | 711 | | |
702 | 712 | | |
703 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 117 | | |
118 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| |||
436 | 439 | | |
437 | 440 | | |
438 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
| |||
529 | 535 | | |
530 | 536 | | |
531 | 537 | | |
532 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
533 | 542 | | |
534 | 543 | | |
535 | 544 | | |
| |||
540 | 549 | | |
541 | 550 | | |
542 | 551 | | |
543 | | - | |
544 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
545 | 560 | | |
546 | 561 | | |
547 | 562 | | |
548 | 563 | | |
549 | 564 | | |
550 | 565 | | |
551 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
552 | 570 | | |
553 | 571 | | |
554 | 572 | | |
555 | 573 | | |
556 | 574 | | |
557 | 575 | | |
558 | 576 | | |
559 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
560 | 581 | | |
561 | 582 | | |
562 | 583 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments