api-impl: misc stubs and fixes

This commit is contained in:
Mis012
2025-03-26 21:01:57 +01:00
parent fd2e9f43b6
commit f3332b7201
25 changed files with 234 additions and 37 deletions

View File

@@ -238,6 +238,8 @@ public class Context extends Object {
return new JobScheduler();
case "appops":
return new AppOpsManager();
case "user":
return new UserManager();
default:
Slog.e(TAG, "!!!!!!! getSystemService: case >" + name + "< is not implemented yet");
return null;
@@ -717,4 +719,9 @@ public class Context extends Object {
return new String[0];
}
}
public Context createDeviceProtectedStorageContext() {
/* FIXME: should be a different context, and return different storage locations */
return this;
}
}