java: config: Refactor waitAndGetSystemService()

- Make use of waitForService() for >= Android 11.
- Reserve manual polling for Android 10 due to lack of waitForService().
- Rework on logs to be less cluttering.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
This commit is contained in:
Dakkshesh
2025-09-01 15:02:48 +05:30
parent 2fad7ff251
commit 9701bd3978
3 changed files with 19 additions and 9 deletions
@@ -7,18 +7,22 @@ package android.os;
public class ServiceManager {
public static IBinder getService(String name) {
throw new UnsupportedOperationException("STUB!");
throw new UnsupportedOperationException("");
}
public static IBinder waitForService(String name) {
throw new UnsupportedOperationException("");
}
public static void addService(String name, IBinder binder) {
throw new UnsupportedOperationException("STUB!");
throw new UnsupportedOperationException("");
}
public static IBinder checkService(String name) {
throw new UnsupportedOperationException("STUB!");
throw new UnsupportedOperationException("");
}
public static String[] listServices() {
throw new UnsupportedOperationException("STUB!");
throw new UnsupportedOperationException("");
}
}