commit | c3e509cacc41ca78611b1c8d0c34599f895cf009 | [log] [tgz] |
---|---|---|
author | Bernardo Rufino <brufino@google.com> | Fri Jan 19 17:00:05 2018 +0000 |
committer | Bernardo Rufino <brufino@google.com> | Fri Jan 19 19:02:09 2018 +0000 |
tree | e5f35fa29fd6f82c7b265f87c2d2e57be66eaaa2 | |
parent | 5e1f854620ecf48febb6ef8ddc3bff856efda7b1 [diff] |
Clear calling uid in isAppEligibleForBackup() and variant This method is called by bmgr backupnow. Bmgr pid is not system uid. When executing the method it fails with permission denied because it can't bind to the transport. Before binding on-demand we haven't seen this error because we didn't try to bind in the method, it was always bound. Bug: 72215413 Test: adb shell bmgr backupnow -all Change-Id: I82ad712e893abfec4727d568ab48a49945645eb4