最近公司想要做个横屏的设备,考虑到是小屏,LCM由于工艺,防摔等因素不好替换,Manager让研究下竖屏横用。
需要考虑的方面:
kernel_logo,bootanimation,系统,recovery ui,charger (关机充电)等。
1.kernel_logo
qualcomm的kernel_logo在splash.img里
目录:
vendor\action\splash\android_720X1280.png,替换成横屏的
2.bootanimation
frameworks\base\cmds\bootanimation\BootAnimation.cpp
status_t BootAnimation::readyToRun() {
...
mAssets.addDefaultAssets();
sp<IBinder> dtoken(SurfaceComposerClient::getBuiltInDisplay(
ISurfaceComposer::eDisplayIdMain));
DisplayInfo dinfo;
status_t status = SurfaceComposerClient::getDisplayInfo(dtoken, &dinfo);
if (status)
return -1;
//potter add
int temp = dinfo