Skip to content

Commit 501aeb7

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix: correct null markers for array and literal fields in JavaWireFormat
- writeIntArray/writeStringArray etc. use -1 for null (not 0) - Numeric literal field names (e.g., "-1" from writeInt(-1)) emit the literal value directly instead of struct field access - Default null marker changed to -1 (length-based protocols), only typed_object uses 0 (flag-based) Fixes WorkSource chains field writing 0 instead of -1, which caused Java's readParcelableList to consume extra bytes and corrupt subsequent fields (root cause of RegisterLocationListener NPE). Verified on phone: full binder roundtrip with ILocationListener callback delivers correct location data (37.7749, -122.4194).
1 parent 218e047 commit 501aeb7

552 files changed

Lines changed: 1881 additions & 2445 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

android/accessibilityservice/accessibilityserviceinfo.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/accessibilityservice/types/accessibilityserviceinfo.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/dnsevent.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/fullymanageddeviceprovisioningparams.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/managedprofileprovisioningparams.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/packagepolicy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/preferentialnetworkserviceconfig.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/admin/wifissidpolicy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/ambientcontext/ambientcontexteventrequest.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/applicationexitinfo.go

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)