Commit 1461877
fix: Java wire format codegen removes AIDL header/footer, restore GPS README example
Java-defined parcelables (Location, LastLocationRequest, etc.) use direct
field serialization without the AIDL header/footer framing. The codegen
was incorrectly wrapping these in WriteParcelableHeader/ReadParcelableHeader,
causing "Parcel data not fully consumed" errors on real devices.
Fix writeJavaWireMarshalParcel and writeJavaWireUnmarshalParcel to write/read
fields directly. Also handle the unused _err variable for parcelables with
only opaque fields.
Restore the GPS/Location Quick Start example as the primary README example,
using location.FusedProvider and showing lat/lon/alt. Verified working on
a Pixel device (SDK 36) with mock location provider.1 parent 92fa444 commit 1461877
936 files changed
Lines changed: 957 additions & 36918 deletions
File tree
- android
- accessibilityservice
- types
- accounts
- apphibernation
- appwidget
- app
- admin
- ambientcontext
- assist
- backup
- blob
- contentsuggestions
- job
- ondeviceintelligence
- people
- pinner
- prediction
- search
- servertransaction
- slice
- smartspace
- timedetector
- timezonedetector
- time
- types
- usage
- wallpapereffectsgeneration
- companion
- virtual
- camera
- sensor
- content
- integrity
- om
- pm
- permission
- types
- verify/domain
- res
- types
- rollback
- types
- credentials
- flags
- graphics
- drawable
- fonts
- hardware
- biometrics
- camera2
- impl
- params
- utils
- devicestate
- display
- face
- fingerprint
- hdmi
- input
- lights
- location
- radio
- soundtrigger
- usb
- location
- provider
- types
- media
- audiopolicy
- metrics
- midi
- musicrecognition
- projection
- session
- tv
- ad
- interactive
- types
- net
- vcn
- nfc
- cardemulation
- os
- connectivity
- storage
- types
- permission
- printservice
- recommendation
- print
- types
- security
- attestationverification
- keymaster
- keystore
- recovery
- service
- ambientcontext
- assist/classification
- autofill
- carrier
- chooser
- contentcapture
- controls
- actions
- templates
- credentials
- displayhash
- euicc
- games
- notification
- quickaccesswallet
- quicksettings
- resolver
- rotationresolver
- settings/suggestions
- timezone
- trust
- voice
- types
- speech
- tts
- telecom
- telephony
- cdma
- data
- emergency
- euicc
- gba
- ims
- feature
- stub
- mbms
- satellite
- text
- util
- view
- accessibility
- autofill
- types
- contentcapture
- displayhash
- inputmethod
- textclassifier
- textservice
- translation
- types
- types
- webkit
- widget
- inline
- window
- com/android
- ims
- internal_/uce
- common
- options
- presence
- internal_
- app
- procstats
- compat
- content
- infra
- inputmethod
- net
- os
- statusbar
- telephony
- util
- view
- widget
- tools
- cmd/spec2readme
- pkg/codegen
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 | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 28 | + | |
32 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
33 | 62 | | |
34 | 63 | | |
35 | 64 | | |
| |||
105 | 134 | | |
106 | 135 | | |
107 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
108 | 182 | | |
109 | 183 | | |
110 | 184 | | |
| |||
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