Then the above article, this is to add services to the abstraction layer, the same Luo code.
Define the hardware access service interface, as shown in FIG.
Add configuration items.
Initialize the environment.
source build/envsetup.sh
export PATH=/home/haidragon/Desktop/java-7-openjdk-amd64/bin/:$PATH
lunch
Then compile the service interface.
mmm ./frameworks/base/
View framework.jar
hardware access services, where the path is not the same but we will probably look quite know where the good. Meanwhile Luo also gave tips. He has given more than a source book catalog also SystemServer.java up and the corresponding source code, in fact, is to tell us and his in the same directory.
To put it here.
However, he compiled in.
mmm ./frameworks/base/services/core/
But the ultimate goal is to pack again to services.jar all inputs:
mmm ./frameworks/base/services/
JNI method now implements hardware access services.
Modify onload.cpp
modify the configuration
compiled :( layers of compiling it has android.mk directory, do not be lazy)
mmm ./frameworks/base/services/core/jni/
mmm ./frameworks/base/services/core/
mmm ./frameworks/base/services/
mmm ./frameworks/base/
Also have to modify the source code with the addition of A
check
last update system.img
make snod
Brush into the phone line.