In the Android system porting process, encountered a lot of source bugs. But we see no such problems on the market. Do these bugs go through the process of solving bugs in every developer? is the source code released by Android up-to-date? No idea for the moment. This is the only record I have encountered on the Android source bug.
mtk8382/8121:
1, Launcher3 no icon problem
Machine (8 inch) after the first burn is completed, the horizontal put, start, found Launcher no icon. The vertical screen does not have this problem. Further discovery of Launcher3 Clear data will also be true. Compared to database, found that the Workspaces field is not written. After debugging, judging is the software default vertical screen, if the first Launcher3 initialization (at this time the database no data) is a horizontal screen, it will be re-onCreate (each time the screen will be re-launcher->oncreate ()). Execute two consecutive times OnCreate () causes the first database to not finish writing, the second time to come, so that the databases write errors.
Observe Androidmanifest.xml found that the Android:screenorientation property is Nosensor, so each boot is the default (vertical screen). After changing to sensor, the first initialization direction and the actual direction of the same, there will be no execution two times oncreate (), the bug is resolved. The root of the problem is to perform two database write operations, and a better approach should be to judge and skip, so that the resolution is more comprehensive.
Android Source Bug