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

1 file changed