commit | 71ea280ca178ece33fa5862351f50f3459faf7f8 | [log] [tgz] |
---|---|---|
author | Nicolò Mazzucato <nicomazz@google.com> | Thu Sep 26 18:07:03 2019 +0100 |
committer | Nicolò Mazzucato <nicomazz@google.com> | Thu Sep 26 17:08:36 2019 +0000 |
tree | 695fbe97a43761cdc295d2168639f71a159acd97 | |
parent | b2902ec7fe1d723bff4ef7a54e267ad22c4088fb [diff] |
Fix trace naming due to an overwrite permission issue with root permissions When adbd was started as root, the trace was owned by 'root' user. If, afterwards, adbd started to record a trace with 'shell' permissions, it would fail, because it doesn't have the permissions to overwrite the trace in the output directory. Now, after having readed a trace, we always try to delete it. This deletion will succeed only for 'root' users, and fail for 'shell' users. This will solve the case described before. Change-Id: Ideb577d89e2e0bb85ad6aba86bdf93e36d5faea1
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.