P9 / Developer options / Smallest width 420dpi persistent after reboot? - Huawei P9 Guides, News, & Discussion

Hi friends,
I found a setting for my Huawei P9 (Unlocked, Rebranded and Upgraded AL10 with Oreo, rooted with Magisk) in the Developer options, that should be available anywhere on the last years Android devices.
When you enter the Developer options and scroll down to DRAWING, then at the P9 there is the Smalles width setting that has a default value of 360dpi, which imho is a little bit too big for my taste.
I tried a lot with build.prop and system.prop and did not successfully apply a boot persistent screen width that is different to the 360dpi default
At build.prop and system prop at various locations I tried with:
HTML:
ro.sf.lcd.density=420
hw.lcd.density=420
None of these settings, that are still inside my prop files, have any affect.
I switch my phone off every night, maybe that makes my phone "live" long and prosper
so I collected a logcat with a filter for 420 during applying the settings in Developer options (already after reboot), so maybe some lines are missing from the log, that don't contain the 420 but still are important for the setting change to take effect
I share the filtered logs with you and allow me to ask a question:
How could I get those settings automagically applied at each reboot?
Thanks for all kind of discussion about this topic...
HTML:
[08-22 07:38:16.922 9773:20532 D/Settings]
isCurrentDiaplalyModeValid()-->currentModeEx = 420
[08-22 07:38:16.922 9773:20532 D/Settings]
getAdaptedGivenDpiConfigs()-->curDpi = 420,dpiConfigs.size() = 9
[08-22 07:38:41.189 1072:7409 D/HwWindowManagerService]
setForcedDisplay and updateResourceConfiguration, mTempResourceConfiguration is: {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h573dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.12}
[08-22 07:38:41.269 1072:1100 I/ActivityManager]
Config changes=1c00 {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h669dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.13}
[08-22 07:38:41.321 1072:1100 I/ActivityManager]
Override config changes=1c00 {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h669dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.13} for displayId=0
[08-22 07:38:41.820 1350:1350 W/GoogleInputMethod]
onConfigurationChanged() : NewConfig = {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h669dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.13}
[08-22 07:38:42.009 1350:1350 I/ConfigNotification]
Get device mode by ui mode:1 and smallestScreenWidthDp:420
[08-22 07:38:42.010 1350:1350 I/ConfigNotification]
Get device mode by ui mode:1 and smallestScreenWidthDp:420
[08-22 07:38:44.790 1072:3020 I/ActivityManager]
Config changes=400 {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h667dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.14}
[08-22 07:38:44.806 1072:3020 I/ActivityManager]
Override config changes=400 {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h667dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.14} for displayId=0
[08-22 07:38:44.896 1350:1350 W/GoogleInputMethod]
onConfigurationChanged() : NewConfig = {0.85 216mcc30mnc [en_US] ldltr sw420dp w420dp h667dp 411dpi nrml port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1792) nonFullScreen=0 suim:4 s.14}
[08-22 07:38:44.912 1350:1350 I/ConfigNotification]
Get device mode by ui mode:1 and smallestScreenWidthDp:420
[08-22 07:38:44.912 1350:1350 I/ConfigNotification]
Get device mode by ui mode:1 and smallestScreenWidthDp:420

sleep 30
wm density 411
in a magisk service.d script should do

This settings i did not find in Magisk, not at Modules, not at settings, so i tried Kernel Auditor init.d, just the script i added and saved and worked in Kernel Auditor init.d does not stay there after reboot, it disappears.
so any idea if i have mixplorer in which file i could try to insert the wm density 411 line ?
thx

Create a script in /sbin/.magisk/modules/.core/service.d
#!/system/bin/sh
sleep 30
wm density 411
And set permissions to 755
If it still gets executed too early, increase sleep 30 to 40 or 60 etc. It'll work eventually

Thanks m8
i ended up with
wm density 380 that i like most
your last post was showing the solution

Related

Strange issue with iGO8

After exiting iGO the system power backlight setting goes to minimal (10 secs). Because of this issue, i re-set the backlight dim interval to 30 secs every time i exit the iGO.
I tried many sys.txt tricks but no success.
Is anyone else having this?
Had the same issue. To fix this you have to edit both sys.txt files that are located on your device...
If you solved it can you share your sys.txt please?
take a look in your data.zip and search in config/devices the Touch Diamond II.inf file and replace it with this one.
also use this sys setings, remember to change your storage settings in [folders] and you have to change your SYS also on your device.
[project]
name="igo8_pda"
[device]
type="Touch Diamond II"
[folders]
app="Tarjeta de almacenamiento/iGO8"
[interface]
skin="ui_igo8"
vga=1
[rawdisplay]
highres=1
autoconfig=1
driver="gdi"
[sound]
ding=0
[sound.announcer]
traffic_jam=1
Recalc_voice=0
[debug]
enable_roadshadow=1
show_residentonly=1
enable_roadsign=1
enable_landmark_occlusion=1
show_oneway_3d=1
show_oneway=1
show_gps_pos=1
show_signpost=1
background_navigation=1
screen_calibration=1
skip_eula=1
use_all_building_textures=1
[map]
3d_max_tiltlevel=8250
stop_rotate_on_map_move=1
inertia_on_map_move=1
follow_gps=1
2dheadup=1
[poi]
poi_show_all_btn=1
poi_labels=1
show_poi_boundingrects=1
show_poi_areas=1
multipoi=1
[navigation]
show_current_city=1
show_countrychange=1
autoreplan_action="AUTO"
gps_pos_to_road=1
text_guidance=1
[timezone]
auto_index=29
default_timezone=32 ; GMT+1 amsterdam
index=32
manual_dst=0
reset_os_timezone=0
sync_os_timezone=0
use_auto=1
[3d_config]
disable_roadsign_navigation_mode=0
roadsign_lines_per_screen=16
use_all_building_textures = 1
fade_distance_for_car=0
fade_distance_for_guidance_arrow=0
fade_overlap_tolerance=0
[3d]
max_poly_segments_shown_1=400
min_poly_segments_shown_1=200
[map]
3d_scale_carmodel=1
3dcarsizemin=3000
3dcarsizemax=6000
3dcarsizemul=15000
mapfontscale=180
roadsign_lines_per_screen=16
use_all_building_textures = 1
[tts]
announce_exit_directions=1
always_say_road_names=1
announce_street_name=1
[interface]
laneinfo_signpost_enabled=1
signpost_coloring=1
show_exit=1
backlight_methods = 1, 5, 6, 7, 8, 10, 12, 18, 21, 23, 24, 25, 26, 27, 28, 33, 36, 37, 39, 40, 42, 46, 49, 50, 52, 53, 54
iGO isn't able to detect the proper device type with WM 6.5 ROM (as it seemed to me).
Adding the following entry to the SYS.TXT solved the issue for me:
[device]
type="Touch Diamond II"
McRIP said:
take a look in your data.zip and search in config/devices the Touch Diamond II.inf file and replace it with this one.
also use this sys setings, remember to change your storage settings in [folders] and you have to change your SYS also on your device.
[project]
name="igo8_pda"
[device]
type="Touch Diamond II"
[folders]
app="Tarjeta de almacenamiento/iGO8"
[interface]
skin="ui_igo8"
vga=1
[rawdisplay]
highres=1
autoconfig=1
driver="gdi"
[sound]
ding=0
[sound.announcer]
traffic_jam=1
Recalc_voice=0
[debug]
enable_roadshadow=1
show_residentonly=1
enable_roadsign=1
enable_landmark_occlusion=1
show_oneway_3d=1
show_oneway=1
show_gps_pos=1
show_signpost=1
background_navigation=1
screen_calibration=1
skip_eula=1
use_all_building_textures=1
[map]
3d_max_tiltlevel=8250
stop_rotate_on_map_move=1
inertia_on_map_move=1
follow_gps=1
2dheadup=1
[poi]
poi_show_all_btn=1
poi_labels=1
show_poi_boundingrects=1
show_poi_areas=1
multipoi=1
[navigation]
show_current_city=1
show_countrychange=1
autoreplan_action="AUTO"
gps_pos_to_road=1
text_guidance=1
[timezone]
auto_index=29
default_timezone=32 ; GMT+1 amsterdam
index=32
manual_dst=0
reset_os_timezone=0
sync_os_timezone=0
use_auto=1
[3d_config]
disable_roadsign_navigation_mode=0
roadsign_lines_per_screen=16
use_all_building_textures = 1
fade_distance_for_car=0
fade_distance_for_guidance_arrow=0
fade_overlap_tolerance=0
[3d]
max_poly_segments_shown_1=400
min_poly_segments_shown_1=200
[map]
3d_scale_carmodel=1
3dcarsizemin=3000
3dcarsizemax=6000
3dcarsizemul=15000
mapfontscale=180
roadsign_lines_per_screen=16
use_all_building_textures = 1
[tts]
announce_exit_directions=1
always_say_road_names=1
announce_street_name=1
[interface]
laneinfo_signpost_enabled=1
signpost_coloring=1
show_exit=1
backlight_methods = 1, 5, 6, 7, 8, 10, 12, 18, 21, 23, 24, 25, 26, 27, 28, 33, 36, 37, 39, 40, 42, 46, 49, 50, 52, 53, 54
Click to expand...
Click to collapse
@McRIP thanks for the amazing tip. I took a look into the data.zip and opened the .ini file that you have mendioned. So my sys.txt look like this after editing and it works perfect.
[project]
name="igo8_pda"
[folders]
app="%SDCARD%/iGO8"
[interface]
maxzoom2d=6000000
show_exit=1
[power]
backlight_manage_values=1
backlight_max = 10
backlight_min = 0
backlight_reverse = 0
backlight_key_bright_BA1 ="Brightness"
backlight_key_bright_AC1 ="ACBrightness"
backlight_key_timeout_BA = "BatteryTimeout"
backlight_key_timeout_AC = "ACTimeout"
backlight_key_ontap_BA = "BacklightOnTap"
backlight_key_ontap_AC = "ACBacklightOnTap"
backlight_key_on_BA = "OnOff"
backlight_key_on_AC = "ExtOnOff"
backlight_methods = 1 , 25
backlight_events = 1, 5, 7
backlight_slow_api=1
[rawdisplay]
highres=0
autoconfig=1
[interface]
use_big_lang_flag=1
[modules]
IPOWER_DRIVER="PDA_POWER_DRIVER"
[power]
suspend_state_define="Unattended"
resume_state_define="On"
Click to expand...
Click to collapse
McRIP said:
take a look in your data.zip and search in config/devices the Touch Diamond II.inf file and replace it with this one.
also use this sys setings, remember to change your storage settings in [folders] and you have to change your SYS also on your device.
Click to expand...
Click to collapse
Many thanks for ini files! They solved all my problems.
nunein said:
iGO isn't able to detect the proper device type with WM 6.5 ROM (as it seemed to me).
Adding the following entry to the SYS.TXT solved the issue for me:
[device]
type="Touch Diamond II"
Click to expand...
Click to collapse
@nunein: your point is also solved the problem. Thank you.
opensea said:
@nunein: your point is also solved the problem. Thank you.
Click to expand...
Click to collapse
you're welcome!

[REQ] Adjusted autobrightness app/hack

Could someone write either
1) Autobrightness adjuster (to set which values autobrightness uses),
or
2) Make a modified autobrightness file with the following values,
Sensor = Brightness
10 = 50
160 = 60
225 = 70
320 = 80
640 = 115
1280 = 145
2600 = 185
10240 = 255
Thanks.
P.S. This is for the latest OTA or, preferably, for myn rls2 rom.
Anybody?
----------

[CM9][Camera] WIP Camera for CM9 HTC Chacha

Hi,
This is a dev thread about the fight for the camera in ICS on the HTC Chacha.
I'm trying to load the libcamera.so and liboemcamera.so from a STock Sense Chacha rom (Gingerbread).
This afternoon I managed to fix the linker errors so camera.chacha.so loads libcamera.so.
I/CameraHAL( 98): camera_get_camera_info: id:0 faceing:0 orientation: 90
I/CameraHAL( 98): camera_get_camera_info: id:1 faceing:1 orientation: 270
V/CameraHolder( 1213): open camera 0
I/CameraHAL( 98): camera_get_camera_info: id:0 faceing:0 orientation: 90
I/CameraService( 98): Opening camera 0
I/CameraHAL( 98): camera_device open+++
I/CameraHAL( 98): Switching to HTC Camera: 0
I/QualcommCameraHardware( 98): openCameraHardware: call createInstance
D/QualcommCameraHardware( 98): createInstance: E
D/QualcommCameraHardware( 98): Storing the current target type as 3
D/QualcommCameraHardware( 98): constructor EX
D/QualcommCameraHardware( 98): startCamera E
E/QualcommCameraHardware( 98): Unable to determine the target type. Camera will not work
E/QualcommCameraHardware( 98): createInstance: startCamera failed!
D/QualcommCameraHardware( 98): ~QualcommCameraHardware E
Now the problem is that it gives an error in QualcommCameraHardware::startCamera: "Unable to determine the target type":silly:
I believe I know why though... I'll test another day.
Here it is:
In libcamera.so:
Failed to set default parameters?!
initDefaultParameters X
ro.board.platform
Storing the current target type as %d
persist.debug.camera.showfps
constructor EX
...
msm7k
qsd8k
msm7x30
...
I believe it uses the parameter ro.board.platform, which is ro.board.platform=msm7x27 in our CM9 to set the target, and that the allowed values are: msm7k, qsd8k and msm7x30.
I'll test altering the build.prop just to confirm it. If that is true, I'll have to find a way to fix that...
Anyway, I'm pretty happy about that, it's a step!
Yes!! I have managed to work around the target error!
DEBUG/QualcommCameraHardware(98): Storing the current target type as 0
Here is a logcat: http://logcat.miui.us/907002
The camera app still crashes... Idk what is the relevant error. I see no preview.
Maybe:
167: 07-11 01:54:31.381: ERROR/mm-camera 7x-vfe(98): Received VFE start ACK!!! This is a user preview start.
Thanks for working on this problem!
I use CM7 and the camera really costs me nerves there. With Pro Paint Camera I found an app that does not crash soo often, but still it is not 100% perfect (as images are 90° rotated and you can't make videos).
So any improvement on that camera issue is good news!
Note to self:
DEBUG/Camera(828): app passed NULL surface
ERROR/mm-camera 7x-vfe(98): Received VFE start ACK!!! This is a user preview start.
Those same messages are shown in with CM9 + Aria's libs (which works OK) and in CM9 + stock libs (which doesnt work), so I guess they are irrelevant.
Logcats of opening the camera:
Chacha CM9 Cam w/ Stock Libs: http://logcat.miui.us/907002 (Preview fails)
Chacha CM9 Cam w/ Aria Libs: http://pastebin.com/sFBWVc8g (Preview ok, pictures OK)
Chacha Stock GB w/ Stock Libs: http://pastebin.com/0A6BmtxQ (Everything works)
DEBUG/CameraSettings(828): Parameters:
Chacha CM9 Cam w/ Stock Libs, Params: http://pastebin.com/uyuKxjds
Chacha CM9 Cam w/ Aria Libs, Params: http://pastebin.com/CXemXgdt
Diff Aria params vs Stock: http://pastebin.com/GbcJB0Qf
All I can see from that are the memory leaks starting @ 0x3b2f0.
http://logcat.miui.us/907002 shows:
Code:
Code:
2047 private void setPreviewDisplay(SurfaceHolder holder) {
2048 try {
2049 mCameraDevice.setPreviewDisplay(holder);
2050 } catch (Throwable ex) {
2051 closeCamera();
2052 throw new RuntimeException("setPreviewDisplay failed", ex); // <------
2053 }
2054 }
Code:
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
// Make sure we have a surface in the holder before proceeding.
if (holder.getSurface() == null) {
Log.d(TAG, "holder.getSurface() == null");
return;
}
Log.v(TAG, "surfaceChanged. w=" + w + ". h=" + h);
// We need to save the holder for later use, even when the mCameraDevice
// is null. This could happen if onResume() is invoked after this
// function.
mSurfaceHolder = holder;
Code:
VERBOSE/camera(832): surfaceChanged. w=320. h=427
118: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): requested preview size 480 x 320
119: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): requested picture size 2560 x 1920
120: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): requested Fps Range min: 9000 x max: 30000
121: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): setGpsLocation: E
122: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): not defined touch-focus yet, or AP without touch-focus function
123: 07-11 01:54:31.151: INFO/QualcommCameraHardware(98): Before Setting coordinate x:240 y:160
124: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): setThumbnailSize w=640 h=480
125: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
126: 07-11 01:54:31.181: VERBOSE/camera(832): Preview size is 480x320
Vs w/ Aria libs: VERBOSE/camera(828): Preview size is 384x288 <-- smaller!! (would fit in the surface 427x320!)
preview-size-values=800x480,720x480,768x432,640x480,640x384,576x432,480x320,240x160
preview-size=480x320
./frameworks/base/libs/camera/CameraParameters.cpp :
Code:
597 void CameraParameters::setPreviewSize(int width, int height)
598 {
599 char str[32];
600 snprintf(str, sizeof(str), "%dx%d", width, height);
601 set(KEY_PREVIEW_SIZE, str);
602 }
603
604 void CameraParameters::getPreviewSize(int *width, int *height) const
605 {
606 *width = *height = -1;
607 // Get the current string, if it doesn't exist, leave the -1x-1
608 const char *p = get(KEY_PREVIEW_SIZE);
609 if (p == 0) return;
610 parse_pair(p, width, height, 'x');
611 }
./src/com/android/camera/Camera.java :
Code:
2200 // Set a preview size that is closest to the viewfinder height and has
2201 // the right aspect ratio.
2202 List<Size> sizes = mParameters.getSupportedPreviewSizes();
2203 Size optimalSize = Util.getOptimalPreviewSize(this,
2204 sizes, (double) size.width / size.height);
2205 Size original = mParameters.getPreviewSize();
2206 if (!original.equals(optimalSize)) {
2207 mParameters.setPreviewSize(optimalSize.width, optimalSize.height);
2208
2209 // If preview is running, stop preview and let startPreview call
2210 // this function again because we cannot change size on the fly
2211 if (mCameraState != PREVIEW_STOPPED) {
2212 stopPreview();
2213 startPreview();
2214 return;
2215 }
2216
2217 // Zoom related settings will be changed for different preview
2218 // sizes, so set and read the parameters to get lastest values
2219 mCameraDevice.setParameters(mParameters);
2220 mParameters = mCameraDevice.getParameters();
2221 }
2222 Log.v(TAG, "Preview size is " + optimalSize.width + "x" + optimalSize.height);
--> in the Logcat I see this line, from Camera.java:2222 :
07-11 01:54:31.181: VERBOSE/camera(832): Preview size is 480x320
Looking at Util.getOptimalPreviewSize --> maybe it tried to fit with a 90º rotation...
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** display.getHeight=480, display.getWidth=320
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=480, size.width=800
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=480, size.width=720
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=432, size.width=768
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=480, size.width=640
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=384, size.width=640
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=432, size.width=576
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=320, size.width=480
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** size.height=160, size.width=240
07-12 19:41:17.495: DEBUG/Util(810): ***ALEX*** optimalSize.height=320, optimalSize.width=480
07-12 19:45:14.977: INFO/power(169): *** set_screen_state 0
Where display is the screen (seen by the camera app) --> rotated 90º (but it's normal, as the App is launched rotated :-/ ).
All the preview sizes from the preview-size-values list are correct (landscape orientation).
Wondering if Change I7c0a2976: msm7x30: Camera HAL for HTC Sense devices (3/2) could have anything to do with the issue...
Tried either pref_camera_force_preview_default on and off, the same error.
I have also build and tested https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Preview fails , and it fails too, so the issue is maybe not in the Camera app... (unless it is in the preview part of it)?
On the requested preview size, we get:
118: 07-11 01:54:31.151: DEBUG/QualcommCameraHardware(98): requested preview size 480 x 320
And the Aria libs are clearly substracting from both x and y to take into account the viewport is not as big as the whole screen, as we have to leave some margins to the UI and such, right? Maybe the trick is to adjust this in line 2205 and 2207 in Camera.java via a wrapper function, depending on the optimalSize() returned...
I wish I could set up a working compiling environment to help you, maybe once I'm back from holidays...
Keep it up and thanks for your hard work! Cheers!

Digma Plane 7594 3G stretched image problem

On my Digma Plane 7594 3G tablet I have a problem with stretched (or compressed, depending on screen orientation) image.
"dumpsys display | grep DisplayInfo" (adb) output:
Code:
mDisplayInfos=
PhysicalDisplayInfo{600 x 1024, 60.0024 fps, density 1.33125, 426.386 x 149.411 dpi, secure true, appVsyncOffset 1000000, bufferDeadline 16666000}
mBaseDisplayInfo=DisplayInfo{"Встроенный экран", uniqueId "local:0", app 600 x 1024, real 600 x 1024, largest app 600 x 1024, smallest app 600 x 1024, mode 1, defaultMode 1, modes [{id=1, width=600, height=1024, fps=60.0024}], colorMode 0, supportedColorModes [], hdrCapabilities [email protected], rotation 0, density 213 (426.386 x 149.411) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666000, type BUILT_IN, state OFF, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
mOverrideDisplayInfo=DisplayInfo{"Встроенный экран", uniqueId "local:0", app 600 x 960, real 600 x 1024, largest app 960 x 928, smallest app 600 x 568, mode 1, defaultMode 1, modes [{id=1, width=600, height=1024, fps=60.0024}], colorMode 0, supportedColorModes [], hdrCapabilities [email protected], rotation 0, density 213 (426.386 x 149.411) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666000, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
I guess there is a problem with "app 600 x 960, real 600 x 1024" (in mOverrideDisplayInfo).
Is it possible to change "app" values to math "real" values (if that's the problem)?

Changing display defaultMode on android 10

Hi All!
Did search a lot about my problem and didn't find anything, sorry if I'm duplicating anyway.
My dumpsys reports that the Xperia XZ2P display has two modes but it doesn't seem to switch in any case and I couldn't find how to force it.
{"Built-in Screen
displayId 0"
uniqueId "local:129"
app 1080 x 1920
real 1080 x 1920
largest app 1080 x 1920
smallest app 1080 x 1920
mode 2
defaultMode 2
modes
[{
id=1
width=2160
height=3840
fps=60.000004
}
{
id=2
width=1080
height=1920
fps=60.000004
}]
colorMode 0
supportedColorModes
[0
7
9]
hdrCapabilities [email protected]
rotation 0
density 420 (386.366 x 384.0) dpi
layerStack 0
appVsyncOff 5833333
presDeadline 14333333
type BUILT_IN
address {port=129}
state ON
FLAG_SECURE
FLAG_SUPPORTS_PROTECTED_BUFFERS
removeMode 0}
mw size 2160x3840 makes 3/4 of the screen a touch dead zone and is a no-no.
can someone tell me where the defaultMode setting is saved or how to change it runtime?
and yes adb shell doesn't even allow to tail /system/build.prop or remount.
Thanks in advance!

Categories

Resources