endyrubbin / AAStream

AA Stream is a device screen mirroring application for Android Auto
147 stars 35 forks source link

Phone goes into bootloop after enabling Force Screen Resizing #21

Open affengeld-gmbh opened 4 years ago

affengeld-gmbh commented 4 years ago

I have a SM-N920W8, installed the AAStream App and after connecting it to Android Auto on my car and enabling Force Screen Resizing, the phone will resize the screen with two black stripes on either side or in other words the width of the resolution is less than the width of the actual screen.

(The mirroring function works fine, this is with the latest Android Auto v5.1 downloaded on 3.April.2020 from Google PlayStore. AAStream was also the latest version downloaded on the same date.)

After this happens the phone will reboot. During the reboot, the phone will automatically reset to the bad resolution (You see the Samsung boot logo change resolution), and once you unlock and attempt to open any app, doesnt matter what, the screen height will stretch with the bottom half of the screen no longer visible, freeze and then reboot.

This happens even in safe mode!

Thank god I did my due diligence and have created a full backup before installing this software using TWRP so I have the complete image, and have also enabled developer mode to allow adb access. I looked through the source code and determined that the software is changing the resolution using "shell wm size" command, so to reset the phone back to a functional resolution so it won't crash, I had to connect to USB and run the command "adb shell wm size reset" after the phone started to behave normally. Had I not enabled adb access, I would have been screwed, as trying to access the settings menu also causes the reboot.

I really think that this software should not be resizing the screen at startup and what is even more outrageous is it does it also in safe mode. There should be some sort of routine in the code that makes sure the screen resolution is reset to the default when the app is not in use, not connected to the infotainment system, at boot, and especially in safe mode.

For the average lay person that is not an IT Professional nor a developer with years and years of experience in this industry, this app would have possibly landed them in hot water!

Please fix this problem ASAP and let others know of the possible ramifications of your screen resizing functions!