Launcher APIs and broadcasts for managed profiles

UserManager
- Corp badging
- Querying list of managed profiles

Launcher API
- LauncherApps and Service to proxy changes in managed profile
  to the launcher in the primary profile
- Querying and launching launchable apps across profiles

Change-Id: Id8f7b4201afdfb5f414d04156d7b81300119289e
This commit is contained in:
Amith Yamasani
2014-02-19 14:31:52 -08:00
parent 2d925545b6
commit 4f58263d02
17 changed files with 926 additions and 6 deletions

View File

@ -70,6 +70,7 @@ import com.android.server.net.NetworkStatsService;
import com.android.server.notification.NotificationManagerService;
import com.android.server.os.SchedulingPolicyService;
import com.android.server.pm.Installer;
import com.android.server.pm.LauncherAppsService;
import com.android.server.pm.PackageManagerService;
import com.android.server.pm.UserManagerService;
import com.android.server.power.PowerManagerService;
@ -922,6 +923,14 @@ public final class SystemServer {
Slog.e(TAG, "Failure starting TrustManagerService", e);
}
}
try {
Slog.i(TAG, "LauncherAppsService");
LauncherAppsService las = new LauncherAppsService(context);
ServiceManager.addService(Context.LAUNCHER_APPS_SERVICE, las);
} catch (Throwable t) {
reportWtf("starting LauncherAppsService", t);
}
}
// Before things start rolling, be sure we have decided whether