Commit 9e1952b
fix: WriteNullStrongBinder format and objects array registration
Two fixes for null binder objects:
1. Write BINDER_TYPE_BINDER type field even for null binders, matching
Android's flattenBinder(nullptr) which sets type=BINDER_TYPE_BINDER
with binder=0 and cookie=0. Previously wrote all zeros (type=0).
2. Do not record null binder objects in the parcel's objects array.
Android's Parcel::writeObject skips the objects array when
binder==0 && !nullMetaData, because the kernel should not process
null binder objects.1 parent 8ef949a commit 9e1952b
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
0 commit comments