Only issues related to the code of The Open GApps Project scripts themselves
If you have found an issue with a pre-built OpenGApps.org package please use the XDA-Developers forum thread
Checklist
If Open GApps compilation fails:
If Open GApps installation fails:
If receiving force closures after Open GApps installation:
/data/ partition) installationIssue description:
[Short description of problem here]
After installing opengapps, the browser stopped working: complains about Webview which is not properly installed
And I'm not able to use Google Play: I'm getting a black screen after "session start"
I'm getting the same black screen when I try to add my google account.
Reproduction Steps:
I rooted my phone and installed a new ROM.
Browser was working correctly.
Check I can't neither use Google Play nor add my Google Account (black screen)
[Other Steps...]
Expected behavior:
[Describe expected behavior here]
Observed behavior:
[Describe observed behavior here]
Upload the installation debug log (=tar.gz file) and logcat of Force Closure:
Debug log of the Open GApps installation
A logcat of the moment I receive the force closure (if applicable)
Any new News about this issue ?
No, I stopped trying.
Any idea is very welcomed
Apparently OpenGApps by default attempted to delete WebViewGoogle if the folder is found. I experienced this on Sony XZ Premium 47.2.A.10.62 CN firmware with OpenGApps Pico package. Previous CN versions used the folder "WebViewGoogle-full" to store stock WebView and were not affected by this. (NOTE: This is only applicable to CN version which doesn't bundle GApps. Other regions already bundled Stock-level GApps).
The black screen is caused by OpenGApps deleted your stock firmware's original WebView implementation. Some stock ROMs (like mine) have a strict WebView validation that it won't accept anything else (even sideloaded Chrome). In such a situation, installing any package lesser than Stock would end up a broken system without any usable WebView.
You can try disabling automatic deletion of stock WebView (and other apps) through .gapps-config. Seriously OpenGApps by default shouldn't attempt to delete stock WebView... it leads to all kinds of issues for users who're trying to flash lesser packages (like Nano and Pico).
Honestly... after seeing all these "unwanted" default behaviors in the script I'm starting to lose trust in OpenGApps in overall... :-(
Another way to avoid the webview issues is to add the following package-overlay to your ROM:
https://github.com/opengapps/aosp_build/tree/master/overlay/webview
There are some other ROM changes needed to make the opengapps zips work 100% correctly. This could perhaps be communicated better.
In my case this occurred on stock ROM which we have no control of, and it's not possible to make sure all custom ROMs honor what OpenGApps expects, such as the overlay you mentioned.
Apparently the WebView should only be safe to delete if user explicitly specified to install Chrome (which is available on Stock and above). WebView should not be touched when Chrome is specified not to be installed, or when installing lesser packages like Nano and Pico which don't include Chrome. Otherwise, the system would end up broken without a usable WebView.
The script needs to be corrected, otherwise lesser packages like Nano and Pico packages could end up dangerous as it would irreversibly delete the only usable WebView implementation on the system, effectively crippling it.
Get Outlook for Androidhttps://aka.ms/ghei36
From: James Muir notifications@github.com
Sent: Sunday, June 2, 2019 6:43:04 PM
To: opengapps/opengapps
Cc: Subscribed
Subject: Re: [opengapps/opengapps] black screen trying to use Google Play (or adding my Google account) (#724)
Another way to avoid the webview issues is to add the following package-overlay to your ROM:
https://github.com/opengapps/aosp_build/tree/master/overlay/webviewhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopengapps%2Faosp_build%2Ftree%2Fmaster%2Foverlay%2Fwebview&data=02%7C01%7C%7Cb22b9ac1c28243ac0ef108d6e7c4d26f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636951229854729825&sdata=bsYJqMtIcjxLC%2BsSt94OQCuplwAZ2TKXmgT3CZJ2%2Byw%3D&reserved=0
There are some other ROM changes needed to make the opengapps zips work 100% correctly. This could perhaps be communicated better.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopengapps%2Fopengapps%2Fissues%2F724%3Femail_source%3Dnotifications%26email_token%3DAD53LNMQJDBFTRDJ22C6633PYRZKRA5CNFSM4G3UMTH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWYDEKA%23issuecomment-498086440&data=02%7C01%7C%7Cb22b9ac1c28243ac0ef108d6e7c4d26f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636951229854750355&sdata=cdP1bYNiPRZYTCSPgazGVfHZ748YGdcAEUvrWZyOwpY%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD53LNJVMVY2LDGUIV3YLKTPYRZKRANCNFSM4G3UMTHQ&data=02%7C01%7C%7Cb22b9ac1c28243ac0ef108d6e7c4d26f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636951229854759846&sdata=aH2Xnvo5QoTsU2GNatsyki9ARRl4wJiI%2FYFRUmrVvWE%3D&reserved=0.
unzip the opengapps.zip
edit install.sh
like this
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs
removal_bypass_list="
";
to
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs
removal_bypass_list="
WebViewGoogle
";
then zip all
and copy into sdcard
and use twrp flash into system
reboot
unzip the opengapps.zip
edit install.sh
like this
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs removal_bypass_list=" ";to
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs removal_bypass_list=" WebViewGoogle ";then zip all
and copy into sdcard
and use twrp flash into system
reboot
... Sorry for a late response but I personally don't think this should require a manual user intervention as some OpenGApps users would not touch the default configuration (creating the .gapps-config), not to mention manually modifying a flashable zip file has the risk of resulting in an unflashable zip due to various reasons (script errors, or simply the zip becomes unreadable by TWRP). It's a potentially unsafe issue that should have been corrected.
Not sure how it is now (whether or not the installation logic has been corrected), as now I'm using BiTGApps which supports Android 10 and is very minimal by default (does not contain anything I deem unwanted).
unzip the opengapps.zip
edit install.sh
like this
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs removal_bypass_list=" ";to
# List of GApps files that should NOT be automatically removed as they are also included in (many) ROMs removal_bypass_list=" WebViewGoogle ";then zip all
and copy into sdcard
and use twrp flash into system
reboot
Worked for me, thanks for the instruction!
Purging issues. Feel free to request reopening if it is still reproducible on the latest build.
Just wanted to comment that I tried to install openGapps-arm64-7.0-nano-20201223 on my Xiaomi Mi pad 3, and encountered the same issue
There is no available webView to select from in the developer settings, after flashing the zip.
The solution was to download aroma pack, and select chrome
Just wanted to comment that I tried to install
openGapps-arm64-7.0-nano-20201223on my Xiaomi Mi pad 3, and encountered the same issue
There is no available webView to select from in the developer settings, after flashing the zip.
The solution was to download aroma pack, and select chrome
Haven't really took a notice about this issue since I switched to BiTGApps as that one works better with Android Q and onwards.
So it seems the issue is still reproducible. OpenGApps is still deleting existing WebView, if possible, on nano and pico packages which doesn't have Chrome included.
Most helpful comment
Apparently OpenGApps by default attempted to delete WebViewGoogle if the folder is found. I experienced this on Sony XZ Premium 47.2.A.10.62 CN firmware with OpenGApps Pico package. Previous CN versions used the folder "WebViewGoogle-full" to store stock WebView and were not affected by this. (NOTE: This is only applicable to CN version which doesn't bundle GApps. Other regions already bundled Stock-level GApps).
The black screen is caused by OpenGApps deleted your stock firmware's original WebView implementation. Some stock ROMs (like mine) have a strict WebView validation that it won't accept anything else (even sideloaded Chrome). In such a situation, installing any package lesser than Stock would end up a broken system without any usable WebView.
You can try disabling automatic deletion of stock WebView (and other apps) through .gapps-config. Seriously OpenGApps by default shouldn't attempt to delete stock WebView... it leads to all kinds of issues for users who're trying to flash lesser packages (like Nano and Pico).
Honestly... after seeing all these "unwanted" default behaviors in the script I'm starting to lose trust in OpenGApps in overall... :-(