android-hidden-api icon indicating copy to clipboard operation
android-hidden-api copied to clipboard

can't access com.android.server.wm.WindowManagerService

Open Zeus64 opened this issue 7 years ago • 3 comments

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;

Zeus64 avatar Jun 05 '17 08:06 Zeus64

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.

wujingchao avatar Jun 08 '17 09:06 wujingchao

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.

Trumeet avatar Nov 14 '17 08:11 Trumeet

You can download services jars in #36 .

Trumeet avatar Nov 14 '17 10:11 Trumeet