OP 07 December, 2020 - 06:22 PM
(07 December, 2020 - 05:39 PM)amboss Wrote: Show MoreAnother Idea I just had.
in adb shell
you can execute
"wm size" to get the screen resolution of the Device
Using this you can
1. Calculate the ratio of the screen
2. Calculate the positon needed based on preprogrammed positons
for example:
if the screen is 1000x2000
and your preprogammed positions for the ratio 1:2 are x=100 and y=200 for 500x1000
you can calculate that for 1000x2000 you would need x=200 and y=400
also the issue with screen size/ratio would also exist in SCRCPY
to test the Coordinates you can go in to your Android Developer Settings and under input you can enable that your phone shows the coordinate of the tap
@ANG
IK this is also an issue with SCRCPY how ever check the thread again found a nice solution to the problem