Loading services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +8 −4 Original line number Diff line number Diff line Loading @@ -1513,11 +1513,15 @@ public class WallpaperManagerService extends IWallpaperManager.Stub } if (wallpaper.getComponent() != null && isPackageModified(wallpaper.getComponent().getPackageName())) { ServiceInfo serviceInfo = null; try { mContext.getPackageManager().getServiceInfo(wallpaper.getComponent(), PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE); } catch (NameNotFoundException e) { serviceInfo = mIPackageManager.getServiceInfo( wallpaper.getComponent(), PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, wallpaper.userId); } catch (RemoteException e) { Slog.w(TAG, "Failed to call IPackageManager.getServiceInfo", e); } if (serviceInfo == null) { Slog.e(TAG, "Wallpaper component gone, removing: " + wallpaper.getComponent()); clearWallpaperLocked(wallpaper.mWhich, wallpaper.userId, false, null); Loading Loading
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +8 −4 Original line number Diff line number Diff line Loading @@ -1513,11 +1513,15 @@ public class WallpaperManagerService extends IWallpaperManager.Stub } if (wallpaper.getComponent() != null && isPackageModified(wallpaper.getComponent().getPackageName())) { ServiceInfo serviceInfo = null; try { mContext.getPackageManager().getServiceInfo(wallpaper.getComponent(), PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE); } catch (NameNotFoundException e) { serviceInfo = mIPackageManager.getServiceInfo( wallpaper.getComponent(), PackageManager.MATCH_DIRECT_BOOT_AWARE | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, wallpaper.userId); } catch (RemoteException e) { Slog.w(TAG, "Failed to call IPackageManager.getServiceInfo", e); } if (serviceInfo == null) { Slog.e(TAG, "Wallpaper component gone, removing: " + wallpaper.getComponent()); clearWallpaperLocked(wallpaper.mWhich, wallpaper.userId, false, null); Loading