Commit 501aeb7
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
- android
- accessibilityservice
- types
- app
- admin
- ambientcontext
- assist
- blob
- contentsuggestions
- job
- ondeviceintelligence
- people
- prediction
- search
- servertransaction
- slice
- types
- smartspace
- timedetector
- timezonedetector
- time
- types
- usage
- wallpapereffectsgeneration
- companion
- virtual
- camera
- sensor
- content
- integrity
- pm
- permission
- types
- res
- types
- rollback
- types
- credentials
- graphics
- drawable
- fonts
- hardware
- biometrics
- camera2
- impl
- params
- utils
- display
- face
- fingerprint
- input
- lights
- location
- radio
- soundtrigger
- usb
- location
- types
- media
- audiopolicy
- metrics
- midi
- projection
- session
- tv
- ad
- interactive
- types
- net
- nfc
- cardemulation
- os
- connectivity
- storage
- types
- permission
- printservice/recommendation
- print
- types
- security
- attestationverification
- keymaster
- keystore
- recovery
- service
- ambientcontext
- autofill
- chooser
- contentcapture
- controls
- actions
- templates
- credentials
- displayhash
- euicc
- games
- notification
- types
- quickaccesswallet
- quicksettings
- settings/suggestions
- timezone
- voice
- types
- speech
- tts
- telecom
- telephony
- data
- emergency
- euicc
- gba
- ims
- mbms
- satellite
- text
- util
- view
- accessibility
- contentcapture
- displayhash
- inputmethod
- textclassifier
- textservice
- translation
- types
- types
- webkit
- widget
- inline
- window
- com/android
- ims
- internal_/uce
- common
- presence
- internal_
- app/procstats
- compat
- content
- infra
- inputmethod
- net
- statusbar
- telephony
- widget
- examples/gps_location
- specs
- android
- accessibilityservice
- app
- admin
- job
- slice
- usage
- companion/virtual/sensor
- content
- pm
- hardware
- camera2/params
- display
- lights
- location
- radio
- usb
- media
- metrics
- midi
- nfc
- os
- connectivity
- security/keystore
- service/autofill
- telephony
- euicc
- ims
- view
- inputmethod
- textclassifier
- textservice
- window
- com/android
- ims/internal_/uce/common
- internal_/compat
- tools
- cmd/spec2go
- pkg
- codegen
- parcelspec
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
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.
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