Commit 8c696fe
authored
Ensure mocked replies use native OK status (#60)
Corrects a critical bug where the native binder `status_t` was being
set to application-level error codes (e.g., `KeyStore.NO_ERROR` which is 1).
A native `status_t` of 1 is treated as `UNKNOWN_ERROR` by libbinder,
causing transaction failures.
This change ensures that all successful mocked replies use a native
`status_t` of 0 (OK), while application-level result codes are correctly
written into the reply parcel's data payload.1 parent a171d8e commit 8c696fe
File tree
3 files changed
+5
-10
lines changed- app/src/main/java/org/matrix/TEESimulator/interception
- core
- keystore
- shim
3 files changed
+5
-10
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 171 | + | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
| |||
0 commit comments