引导logo的横屏
和boot logo 显示的bmp图片同名是u-mp图片的同名logo
:最后如果要保留中的一张
图片,可以只要,一张就只有一张。
内核后需要在android根
目录下执行。/mkimage.sh则重新打包写入boot.img。打包后烧录效果rockdev下面的boot.img,即可查看。若烧录内核下
的boot.img,设备无法正常引导。/
引导动画屏
设备修改 BOOTSH_UTDOWN_ANIMATION_RINGING ?=真
制作资源图片横屏/引导动画.zip 复制到设备的引导/引导动画/bootshutdown /bootanimation(源码路径),
编译结束后会复制到out下odm/media中,烧写zip可以在
Android应用层显示横屏
devicerockchiprk3326BoardConfig.mk中增加修改SF_PRIMARY_DISPLAY_ORIENTATION := 90
搜索SF_PRIMARY_DISPLAY_ORIENTATION的文件,根据项目名称修改位置
./rockchip/common/device.mk:ifneq ($(filter 90 180 270, $(strip $(SF_PRIMARY_DISPLAY_ORIENTATION))), )
. mk:ro.surface_flinger.primary_display_orientation=ORIENTATION_$(SF_PRIMARY_DISPLAY_ORIENTATION)
./rockchip/common/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION ?= 0
./rockchip/rk3368/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3326/BoardConfig. :SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3126c/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3399/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3368a/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION
交换 xy 坐标实现旋转
gtp_x2y:x、y交换方向
镜像:x方向坐标gtp_y_reverse
:方向不镜像
kerneldriversinputtouchscreengt9xx_changegt9xx.c
@@ -2656,9 +2656,13 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
m89or101 = FALSE;
bgt911 = TRUE;
- gtp_change_x2y = FALSE;
- gtp_x_reverse = TRUE;
- gtp_y_reverse = TRUE;
+ //gtp_change_x2y = FALSE;
+ //gtp_x_reverse = TRUE;
+ //gtp_y_reverse = TRUE;
+
+ gtp_change_x2y = TRUE;
+ gtp_x_reverse = TRUE;
+ gtp_y_reverse = FALSE;
/*if (val == 89) {
m89or101 = TRUE;
RecoveryUI 横屏
旋转 = GRRotation::LEFT; 270
旋转 = GRRotation::DOWN; 180
转 = GRRotation::RIGHT; 90
可启动恢复minuigraphics.cpp
int gr_init() {
.....
gr_backend = backend.release();
int overscan_percent = android::base::GetIntProperty("ro.minui.overscan_percent", 0);
overscan_offset_x = gr_draw->width * overscan_percent / 100;
overscan_offset_y = gr_draw->height * overscan_percent / 100;
gr_flip();
gr_flip();
if (!gr_draw) {
printf("gr_init: gr_draw 在 gr_flipn 之后变为 nullptr");
返回-1;
}
std::string rotation_str =
android::base::GetProperty("ro.minui.default_rotation", "ROTATION_NONE");
如果 (rotation_str == "
gr_rotate(GRRotation::RIGHT);
} else if (rotation_str == "ROTATION_DOWN") {
gr_rotate(GRRotation::DOWN);
} else if (rotation_str == "ROTATION_LEFT") {
gr_rotate(GRRotation::LEFT);
} else { // "ROTATION_NONE" 或未知字符串
gr_rotate(GRRotation::NONE);
}
旋转 = GRRotation::RIGHT;
//cczheng add rotation = 1 for recoveryUI Landscape
引导logo的横屏
和boot logo 显示的bmp图片同名是u-mp图片的同名logo
:最后如果要保留中的一张
图片,可以只要,一张就只有一张。
内核后需要在android根
目录下执行。/mkimage.sh则重新打包写入boot.img。打包后烧录效果rockdev下面的boot.img,即可查看。若烧录内核下
的boot.img,设备无法正常引导。/
引导动画屏
设备修改 BOOTSH_UTDOWN_ANIMATION_RINGING ?=真
制作资源图片横屏/引导动画.zip 复制到设备的引导/引导动画/bootshutdown /bootanimation(源码路径),
编译结束后会复制到out下odm/media中,烧写zip可以在
Android应用层显示横屏
devicerockchiprk3326BoardConfig.mk中增加修改SF_PRIMARY_DISPLAY_ORIENTATION := 90
搜索SF_PRIMARY_DISPLAY_ORIENTATION的文件,根据项目名称修改位置
./rockchip/common/device.mk:ifneq ($(filter 90 180 270, $(strip $(SF_PRIMARY_DISPLAY_ORIENTATION))), )
. mk:ro.surface_flinger.primary_display_orientation=ORIENTATION_$(SF_PRIMARY_DISPLAY_ORIENTATION)
./rockchip/common/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION ?= 0
./rockchip/rk3368/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3326/BoardConfig. :SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3126c/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3399/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION := 0
./rockchip/rk3368a/BoardConfig.mk:SF_PRIMARY_DISPLAY_ORIENTATION
交换 xy 坐标实现旋转
gtp_x2y:x、y交换方向
镜像:x方向坐标gtp_y_reverse
:方向不镜像
kerneldriversinputtouchscreengt9xx_changegt9xx.c
@@ -2656,9 +2656,13 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
m89or101 = FALSE;
bgt911 = TRUE;
- gtp_change_x2y = FALSE;
- gtp_x_reverse = TRUE;
- gtp_y_reverse = TRUE;
+ //gtp_change_x2y = FALSE;
+ //gtp_x_reverse = TRUE;
+ //gtp_y_reverse = TRUE;
+
+ gtp_change_x2y = TRUE;
+ gtp_x_reverse = TRUE;
+ gtp_y_reverse = FALSE;
/*if (val == 89) {
m89or101 = TRUE;
RecoveryUI 横屏
旋转 = GRRotation::LEFT; 270
旋转 = GRRotation::DOWN; 180
转 = GRRotation::RIGHT; 90
可启动恢复minuigraphics.cpp
int gr_init() {
.....
gr_backend = backend.release();
int overscan_percent = android::base::GetIntProperty("ro.minui.overscan_percent", 0);
overscan_offset_x = gr_draw->width * overscan_percent / 100;
overscan_offset_y = gr_draw->height * overscan_percent / 100;
gr_flip();
gr_flip();
if (!gr_draw) {
printf("gr_init: gr_draw 在 gr_flipn 之后变为 nullptr");
返回-1;
}
std::string rotation_str =
android::base::GetProperty("ro.minui.default_rotation", "ROTATION_NONE");
如果 (rotation_str == "
gr_rotate(GRRotation::RIGHT);
} else if (rotation_str == "ROTATION_DOWN") {
gr_rotate(GRRotation::DOWN);
} else if (rotation_str == "ROTATION_LEFT") {
gr_rotate(GRRotation::LEFT);
} else { // "ROTATION_NONE" 或未知字符串
gr_rotate(GRRotation::NONE);
}
旋转 = GRRotation::RIGHT;
//cczheng add rotation = 1 for recoveryUI Landscape
举报