Android Application Framework
  • Android Services
  • It’s the first JAVA application launched by zygote. It starts the core Android services, e.g. ActivityManager, WindowManager, PackageManager etc. It’s the Android core engine.
  • android_servers library
    • Source files for this lib are placed in frameworks/base/services/jni/
  • system/core/libsysutils/src/ServiceManager.cpp
  • frameworks/base/services/java/com/android/server/SystemServer.java
    • init1(args) // setup native services
      • frameworks/base/cmds/system_server/library/system_init.cpp
        • system_init()
    • init2() // setup android services
      • android.server.ServerThread.start();
  • frameworks/base/services/jni/com_android_server_KeyInputQueue.cpp
    • android_server_KeyInputQueue_readEvent
      • hub->getEvent
  • frameworks/base/services/java/com/android/server/KeyInputQueue.java
    • Thread mThread = new Thread("InputDeviceReader") {…};
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License