android-hidden-api
android-hidden-api copied to clipboard
can't access com.android.server.wm.WindowManagerService
When i try to access com.android.server.wm.WindowManagerService i receive W/System.err(10293): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/server/wm/WindowManagerService;
It's SystemServer code,you can't invoke it. Because these bind server code not be loaded to your application classloader. You can only invoke it by binder.
com.android.server.*
is server code, please see #37, it doesn't in the framework.
And you also can't access it using reflection, because server classes will only add to SystemServer
's CLASSPATH
by Zygote
. See ZygoteInit#handleSystemServerProcess
, it changes classloader.
You can download services jars in #36 .