mt6735 phone 转 tablet 平板
alps\build\core\product_config.mk
338行
ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_CHARACTERISTICS),)
TARGET_AAPT_CHARACTERISTICS := tablet //原来是default
else
alps\device\xxxx\xxxxxxxxx\system.prop
ro.sf.LCD_density=160 //320
alps\device\xxxx\xxxxxxxxx\ProjectConfig.mk
mtk_LCM_PHYSICAL_ROTATION = 270 //旋转270
哇,好东东,收藏
屏幕旋转了可是TP坐标是错的,怎么改?
这个?
好人做到底,TP问题
static void tpd_down(int x, int y, int id) {
x = 1280 - x;
static void tpd_up(int x, int y) {
x = 1280 - x;
修改MTK_LCM_PHYSICAL_ROTATION =270 没效果, 这个应该要屏驱动支持才行吧。
全部重编后转过来了,但为什么andorid开机动画只显示一半呢?
我这边也是,开机android少了个"d",过一会就好了,谁有解决办法分享一下
好东东,收藏下!
将DisplayDevice.cpp中的setProjection函数修改如下
if (!frame.isValid()) {
// the destination frame can be invalid if it has never been set,
// in that case we assume the whole display frame.
//frame = Rect(w, h);
if (property_get("ro.sf.hwrotation", property, NULL) > 0) {
if (atoi(property) == 270)
frame = Rect(h, w);
} else {
frame = Rect(w, h);
}
}
屏幕旋转。有做破解分辩率不
谢谢啊
6735不用破解
目前了解到的,还没有人能破解。
这样修改不行呀,android跑到左上角了,还是少了一个“d”
这种是竖屏横用吧
是的,只能选竖屏
说的是横竖屏破解
------------------ services/surfaceflinger/SurfaceFlinger.cpp ------------------
index 9dc076b..0e46541 100644
@@ -681,6 +681,19 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
info.fps = float(1e9 / hwConfig.refresh);
info.appVsyncOffset = VSYNC_EVENT_PHASE_OFFSET_NS;
+
+ //////////////////////////
+ char property[PROPERTY_VALUE_MAX];
+ if (property_get("ro.sf.hwrotation", property, NULL) > 0) {
+ if (atoi(property) == 270) {
+ //info.xdpi = ydpi;
+ //info.ydpi = xdpi;
+ info.w = hwConfig.height;
+ info.h = hwConfig.width;
+ }
+ }
+ ////////////////////////
+
把这个加上
谢谢大侠分享!
我的也是,请问哪位大侠有解决这个问题?
修改了这两个文件,你那横屏可以了吗?为什么旋转270,我这硬件做死了,只能横屏90度
收藏!
嘻嘻,这个问题你们解决了吗,我已经解决了
可以问下,你是怎么解决的呢
解决了就分享一下
:D:D:D:D:D:D:D
支持支持支持支持支持
mark,日后留用,谢谢!
横屏OK,开机画面不全的问题还在。
