commit | 5a07caa8cd5b4c2f24cd9099c4bf27e33d5592df | [log] [tgz] |
---|---|---|
author | Shai Barack <shayba@google.com> | Fri Nov 01 22:36:29 2024 +0000 |
committer | Shai Barack <shayba@google.com> | Fri Nov 01 23:20:53 2024 +0000 |
tree | 7570a70b5000d040dc766b52d33645b5fbf07ae7 | |
parent | b142103e050e3cb70d7a328fdc82154af6263253 [diff] |
Use UserHandle.isCore() instead of Process.myUid() < Process.FIRST_APPLICATION_UID to determine if the process is a system process. This is more robust and will work even if the process is running in a multi-user context. Change-Id: Idf1d0db3236085702bafb6d48758dd209d06e4f5 Flag: build.RELEASE_PACKAGE_MESSAGEQUEUE_IMPLEMENTATION