Move constants to ServiceManager

PACKAGE_NAME and USER_ID could be use by several "managers", so move
them to the service manager.
This commit is contained in:
Romain Vimont
2020-05-01 23:15:48 +02:00
parent 2f74ec2518
commit dbb0df607c
2 changed files with 8 additions and 8 deletions

View File

@@ -8,6 +8,10 @@ import java.lang.reflect.Method;
@SuppressLint("PrivateApi,DiscouragedPrivateApi")
public final class ServiceManager {
public static final String PACKAGE_NAME = "com.android.shell";
public static final int USER_ID = 0;
private final Method getServiceMethod;
private WindowManager windowManager;