OSDN Git Service

Use getPackageInfoAsUser in requestBufferForProcess
authorTony Mak <tonymak@google.com>
Mon, 20 Mar 2017 18:35:43 +0000 (18:35 +0000)
committerTony Mak <tonymak@google.com>
Tue, 21 Mar 2017 20:44:51 +0000 (20:44 +0000)
commit82566807430655f3856836bbd94828706d4972fb
treeb3dcb108ad2e28e3098783e35a9b5a1dab14d358
parent7ba04df38cb5a797d81a2776ee227d126b7dd157
Use getPackageInfoAsUser in requestBufferForProcess

Notice that the exception is caught now, so it doesn't crash the app.
And seems the buffer is used for stats only, so seems thing is still
working. But it is still good to have it fixed :)

Fix: 36349295

Test: Install Avast Passwords in work profile only, launch it.
      Observe that no more log complaining failed to get application.

Change-Id: I27b213303e9cf08c32e2ffdb7bda131c2b7f9ecb
services/core/java/com/android/server/GraphicsStatsService.java