Jelly Bean has been released for several days. We tried to bring it on our machine last week. After a long time, we finally got up, but we found some problems, to sum up.
- Re-compile OpenGL. There are a bunch of errors, mainly the header files related to the android_native_buffer interface, which cannot be found.
- Log printing is changed. The previous logd and loge are now Output Using alogd and aloge.
- Put the previously written Hal module into it, and there will basically be a segment error, and none of them can run.
- Segment error caused by OpenGL driver, full screen Rolling
These problems:
Start from scratch. Don't use OpenGL. Slow down and take a look at functions and other places. Currently, the method for disabling hardware OpenGL is:
In the system boardconfig, set use_hw_composer to false, and block harwareaccelerated requests using the soft-path skia.
For example, frameworks/base/CORE/Java/Android/View/window. Java
LocalWindowManager(WindowManager wm, boolean hardwareAccelerated) { super(wm, getCompatInfo(mContext)); // mHardwareAccelerated = hardwareAccelerated || // SystemProperties.getBoolean(PROPERTY_HARDWARE_UI, false); mHardwareAccelerated = false; }
You can also search for the source code and change the value of all hardwareaccelerated values to false.
Remove wallpaper and die. At this stage, you don't want to check it. The method to disable it is as follows:
Modify frameworks/base/CORE/RES/values/config. xml
<!-- True if WallpaperService is enabled --> <!-- Temporarily set to false until openGL is ready. --> <bool name="config_enableWallpaperService">false</bool>
After completion, compile the firmware, burn and write, and install several APK files:
The game is too slow to play.
On JB, some more debugging function interfaces are added: