whid-injector / WHID-Mobile-Connector

Android Mobile App for Controlling WHID Injector remotely.
GNU General Public License v3.0
176 stars 45 forks source link

White screen on WHID mobile connector app. #7

Closed Krack1n closed 4 years ago

Krack1n commented 4 years ago

Hi, I am using a nexus 5 version 6.0.1 build number M4B30Z rooted with kali nethunter installed on it and my WHID connector app version 0.0.2 has stopped working. When I open it all it shows is a the logo and then a blank white screen instead of opening to the main menu screen. Any one have any ideas on how to fix this? Thank you.

PaulSec commented 4 years ago

Do you have access to the logcat to have an idea what can possibly go wrong? Any stack trace in this?

Krack1n commented 4 years ago

Yeah hope this can help. log.txt

PaulSec commented 4 years ago

Thanks, that will help me troubleshooting and I will try to make you sorted asap

Edit: can you see the splash screen at least?

Krack1n commented 4 years ago

Yes the splash screen pops up then it goes straight to the white screen.

PaulSec commented 4 years ago

Hi,

it seems some other people have the same issue with some old browser version, see https://github.com/ionic-team/ionic/issues/16873

And you can see that those lines in polyfills.ts are commented here: https://github.com/whid-injector/WHID-Mobile-Connector/blob/master/src/polyfills.ts

I commented them out, built a new app and pushed it here : https://drive.google.com/open?id=1pxUOc9IGyiXUvMP-z-9gm7rgb0W6e7Yz

Can you :

  1. uninstall your current version
  2. download and install this version
  3. give us your feedback

Thanks a lot in advance

Krack1n commented 4 years ago

Okay I installed the new version and now it is not white screening and the app starts but I cannot interact with anything on screen, its just frozen but doesn't crash or white screen now.

PaulSec commented 4 years ago

Alright, we're getting there!

I found https://forum.ionicframework.com/t/after-splash-screen-display-white-screen-long-time/80162/21 and I added this code snippet in config.xml :

    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="SplashScreenDelay" value="10000" />
    <preference name="FadeSplashScreenDuration" value="1000" />
    <preference name="SplashScreen" value="screen" />
    <preference name="ShowSplashScreen" value="true" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="FadeSplashScreen" value="true" />

Here is a new link for the app: https://drive.google.com/open?id=1blaRK7YsXq5fr1NdHUkqu-EqqgiPtqiw The splash screen should be longer than before, don't worry about that.

Can you try again (uninstall/download/launch) and tell me how things are going?

Thanks again!

Krack1n commented 4 years ago

Alright the new version doesn't white screen and the splash screen is longer but there is still no interaction the screen is just frozen. Attached image is how it looks. Whid

PaulSec commented 4 years ago

Mmh.. It's intriguing. I will need to investigate why buttons etc. are not properly rendered (based on the shape + CSS etc) and I guess this is why you can't click on anything.

Thanks again and sorry for experiencing this kind of issue!

Krack1n commented 4 years ago

Its no problem, thank you for all the help in attempting to fix it!

PaulSec commented 4 years ago

No prob, this seems some bug with Android < 7 but I will investigate more during the week-end, I will keep you posted with this!

PaulSec commented 4 years ago

Hi, again, it's me.

I believe this has to come with WebView. Without going too much in details, ionic apps (such as the WHID app) are HTML/JS apps which are embedded in webviews. If you have the chance, could you update your Android System Webview (https://www.apkmirror.com/apk/google-inc/android-system-webview/) and check if it works better?

I think it should help you out.

Krack1n commented 4 years ago

Yes that is seemed to fix it! No white screen, no crash and all touch interactions are working now!

PaulSec commented 4 years ago

Oh mate, this is awesome!

Let's keep this issue open and I will udpate the README for Android < 7 to make sure that everyone updates their Android System Webview.

Thanks again!

Krack1n commented 4 years ago

Thank you for all the help, glad that it is working now!