Question [SOLVED] Messed Up Screen Resolution...

Search This thread
Hi, so I was playing with ADB and changing screen resolution, I changed it to 50x100 and my device just rebooted. Now I can't access anything because the screen is so small.

Is there any way to reset the screen resolution without a hard reset?

Note: I can access bootloader/recovery mode
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,730
5
1,657
gitlab.com
I think adb will work on lock screen, because I have unlocked pattern with scrcpy myself. most likely it doesn't boot. to my excuse must confess that devices were not encrypted, maybe your device behaves different.
 

Renate

Recognized Contributor / Inactive Recognized Dev
Actually, even if you use a swipe pattern, there are ways to get that.
How did you set screen size? wm size?

Ha, You nearly did me in. I set my lock pattern to one that practically can not be done by a human.
Unfortunately the vertical position of the set lock pattern is not the same as the main unlock pattern.
It took me 10 minutes to unlock my device.
 
  • Haha
Reactions: blackhawk

blackhawk

Senior Member
Jun 23, 2020
12,083
5,073
Samsung Galaxy Note 10+
Actually, even if you use a swipe pattern, there are ways to get that.
How did you set screen size? wm size?

Ha, You nearly did me in. I set my lock pattern to one that practically can not be done by a human.
Unfortunately the vertical position of the set lock pattern is not the same as the main unlock pattern.
It took me 10 minutes to unlock my device.
The only reward for failure is a factory reset...🤣
 

Renate

Recognized Contributor / Inactive Recognized Dev
The biggest problem is that it doesn't actually show where you are touching.
I'm trying to unlock it again with the display set to 800x360 res instead of 1600x720.

Edit: I did get it unlocked. Still, with 50 x 100 it could be tough.
 

Attachments

  • swiper2.png
    swiper2.png
    90.8 KB · Views: 7
Last edited:
Actually, even if you use a swipe pattern, there are ways to get that.
How did you set screen size? wm size?

Ha, You nearly did me in. I set my lock pattern to one that practically can not be done by a human.
Unfortunately the vertical position of the set lock pattern is not the same as the main unlock pattern.
It took me 10 minutes to unlock my device.
Yes, I used adb shell wm 50x100.
 
Mmm, you have to use my usbcfg (also not listed yet) to configure the USB to adb,hid
You can run it as an init service or just as a shell command but you'll need to be rooted.
You'll also need to chmod 666 /dev/hidg0 or use ueventd.rc
By any chance can I root or do anything at all with bootloader locked?
I tried getting the UNIQUE_KEY needed for oem unlock, but it said I needed to enable oem unlocking at developer options, which I can't access.
 

Renate

Recognized Contributor / Inactive Recognized Dev
By any chance can I root or do anything at all with bootloader locked?
I'm losing context here.

All that usbcfg stuff I was talking about is to use on a separate Android if you needed to pattern unlock a different Android.

If you've got the screen lock still stuck you'll have to do that first before you start talking about rooting.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I have a Moto G Power (2021) and it won't connect ADB if the screen is locked.
    What kind of lock do you have? Pattern, Pin or Paswword.
    You should be able to type with a OTG keyboard.
    1
    unless you can connect TV or something there is no way other than factory reset.
    1
    Actually, even if you use a swipe pattern, there are ways to get that.
    How did you set screen size? wm size?

    Ha, You nearly did me in. I set my lock pattern to one that practically can not be done by a human.
    Unfortunately the vertical position of the set lock pattern is not the same as the main unlock pattern.
    It took me 10 minutes to unlock my device.