Magisk-Modules-Alt-Repo/open_webview

After installation and reboot caused bootloop

roflsunriz opened this issue · 12 comments

Bug Report Template

Platform: Magisk / Magisk Alt Repo
Operating System: Android 8.1(EMUI 8.1)
Phone: Huawei P20 Pro HW-01K CLT-L0J
Magisk version: 25.2(25200)
Fox's Magisk Module Manager:0.6.8(60)
Attempted to install Open Webbiew module:2.0.0

Description

From Fox's mmm, I tried to install open webbiew module. It says the installation was successful but after the reboot the phone, it stucked at boot animation so I noticed it was bootloop.
What I tried to solve was first I went into twrp mode and delete all modules from /data/adb/modules and after I've done it I rebooted the phone. But it didn't help all. Then next I went twrp again then rename /data/system/users/0/package-restrictions.xml to see if it helps because in first try of reboot I have done freeze bloatware. But nothing happens. Finally I decide to factory reset then booted successfuly.

Steps to reproduce

  1. Install Open Webbiew Magisk Module (alt repo or zip etc)
  2. Reboot the phone
  3. Bootloop you get!

Expected result

Replace stock webbiew as this module describes himself.

Actual result

Bootloop, stuck at boot animation and never booted successfuly.

Screenshot

Notes

Well, if you are using the phone like me EMUI based chinese phone it is clever that you avoid installing this module to prevent soft bricks.

I'm not sure the issue suits this repo or Bromite itself, so at least I decided to create it here. If it suits Bromite itself more than this repo please notify me to re-create new issue at Bromite repo or please do whatever you want.

F3FFO commented

Hi @roflsunriz , I'm sorry so much so that you had to reset the phone. It would be very pleased if you or others with a Huawei device and with EMUI they made themselves available to deepen the cause of this problem in order to avoid causing inconvenience of this kind in the future!

Have you tried other modules for replacing the webView in addition to my module?

It's really first time I ever tried.. and I'm scared with bricks so I never tried in addition.

I did already installed bootloop preventing module before installing this, but it didn't helps. Maybe because it is NOT full systemless-ly.

I find myself in the same boat. However wiping my user data partition is not an option for me. I realize it's my fault for not having backups but still, is there any chance @F3FFO that you could give me some guidance as to how I can revert the changes being done by the module to the user data partition (or settings stored in it)?

I backed up my user partition and after a wipe the phone boots up fine, but restoring the user data returns the phone to the loop. I can edit that backup manually before restoring it and undo the changes so it will be functional again, but I have no idea what are the exact changes being done.

I've tried every other approach, I have an open bootloader, custom recovery, developer tools. I tried wiping/restoring all the other partitions even to stock. Adding/removing Magisk entirely and the module by all means available to no luck. The issue is within the changes done to the user data partition.

It's really important that I get the backed up partition to work again. I appreciate your time regardless. Thank you.

@chestfindman you should see Bromite to find what exactly this module has been done to your phone

F3FFO commented

Hi @chestfindman, the only files of the user data folder that I go to modify is present in:
/data/system/overlays.xml
in which I go to add these lines:

/item packageName=\"${OVERLAY_PACKAGE_NAME}\"/d" $OVERLAY_LIST

s|</overlays>|    <item packageName=\"${OVERLAY_PACKAGE_NAME}\" userId=\"0\" targetPackageName=\"android\" baseCodePath=\"${OVERLAY_PATH}/${BROMITE_OVERLAY_APK_FILE}\" state=\"${STATE}\" isEnabled=\"true\" isStatic=\"true\" priority=\"9999\" /></overlays>|
 

My advice since you said to continue having problems is to find the original file or to be able to delete these lines!

@F3FFO You saved my life. Literally. I can't thank you enough. I was able to get my data back.
Simply editing the backup, removing the line and restoring the partition was enough.

F3FFO commented

@chestfindman No problem, I'm so sorry for the problem that I caused to you

@F3FFO Not your fault. Responsibility is all mine. User always assumes all risks.
I should be apologizing to you for wasting your time on my own personal issue.

I flashed Open Webview magisk module. After reboot, I enabled Bromite WebView after which my favourite Browser 1DM+. The error I am getting when opening 1DM+ is "java.lang.reflect.InvocationTargetException".

This may be because these guys are checking my bought license with Google WebView.

Also Google Discovery search doesn't work. It crashes.

Hi @chestfindman, the only files of the user data folder that I go to modify is present in:
/data/system/overlays.xml
in which I go to add these lines:

/item packageName=\"${OVERLAY_PACKAGE_NAME}\"/d" $OVERLAY_LIST

s|</overlays>|    <item packageName=\"${OVERLAY_PACKAGE_NAME}\" userId=\"0\" targetPackageName=\"android\" baseCodePath=\"${OVERLAY_PATH}/${BROMITE_OVERLAY_APK_FILE}\" state=\"${STATE}\" isEnabled=\"true\" isStatic=\"true\" priority=\"9999\" /></overlays>|
 

My advice since you said to continue having problems is to find the original file or to be able to delete these lines!

Thank you so much, this saved me from having to do factory reset which was my only option since I didn't have any backups
I spent 5 hours trying all solutions and this was the only one that worked without losing data