Commit e7cf91a
Don't trust callers to supply app info to bindBackupAgent()
Get the canonical identity and metadata about the package from the
Package Manager at time of usage rather than rely on the caller to
have gotten things right, even when the caller has the system uid.
Bug 28795098
Change-Id: I215786bc894dedf7ca28e9c80cefabd0e40ca877
Merge conflict resolution for ag/1133474 (referencing ag/1148862)
- directly to mnc-mr2-release1 parent 9b8c6d2 commit e7cf91a
4 files changed
Lines changed: 23 additions & 9 deletions
File tree
- core/java/android/app
- services
- backup/java/com/android/server/backup
- core/java/com/android/server/am
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | | - | |
| 1585 | + | |
1586 | 1586 | | |
1587 | | - | |
| 1587 | + | |
| 1588 | + | |
1588 | 1589 | | |
1589 | 1590 | | |
1590 | 1591 | | |
| |||
3831 | 3832 | | |
3832 | 3833 | | |
3833 | 3834 | | |
3834 | | - | |
| 3835 | + | |
3835 | 3836 | | |
3836 | 3837 | | |
3837 | 3838 | | |
3838 | 3839 | | |
3839 | | - | |
| 3840 | + | |
3840 | 3841 | | |
| 3842 | + | |
3841 | 3843 | | |
3842 | 3844 | | |
3843 | 3845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
2238 | | - | |
| 2238 | + | |
| 2239 | + | |
2239 | 2240 | | |
2240 | 2241 | | |
2241 | 2242 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16038 | 16038 | | |
16039 | 16039 | | |
16040 | 16040 | | |
16041 | | - | |
16042 | | - | |
16043 | | - | |
| 16041 | + | |
| 16042 | + | |
16044 | 16043 | | |
16045 | 16044 | | |
| 16045 | + | |
| 16046 | + | |
| 16047 | + | |
| 16048 | + | |
| 16049 | + | |
| 16050 | + | |
| 16051 | + | |
| 16052 | + | |
| 16053 | + | |
| 16054 | + | |
| 16055 | + | |
| 16056 | + | |
16046 | 16057 | | |
16047 | 16058 | | |
16048 | 16059 | | |
| |||
0 commit comments