Fix theme provider crashing for non-primary user.
PackageManagerService's context is for user 0, so if the theme provider for other users was invoking the getInstalledThemePackages() method, the themes provider crashed as it doesn't have the INTERACT_ACROSS_USERS permission. Fix that (and simplify code) by making getInstalledThemePackages() return the installed themes for the current user, which was probably the intent anyway. Change-Id: I02002cee005b74128f3b2f7cc7a93b9b8514f1f3
Loading
Please register or sign in to comment