yashsingh1/xdaforums huggingface dataset:
[Magisk] hkrware:
About installing under recovery failure and persist

If anyone is wondering why they can't flash opengapps with magic gapps via recovery, it's because the installer script of opengapps is deleting everything in the /tmp directory after installation and magic gapps is mounting the systemless system just there. Fixing it requires to change the line right after where it says "# This path should work in any cases". Change TMPDIR=/dev/tmp to TMPDIR=/mnt.

About the persist failure i would recommend mounting it, instead of commenting out the mount command. I used this:

mkdir /persist

mount /dev/block/platform/msm_sdcc.1/by-name/persist /persist

and I put it just after the

wipe_TMP_MODPATH

line.
[Magisk] bykfiend42:
Unflashable OpenGapps

I don't see a wipe_TMP entry in the openGapps install.sh. Is it in another file in the install package?
[Magisk] 老king:
This is a great module, but there are some problems:

Mounting /system, /vendor /data/adb/magisk.img detected Resizing /data/adb/magisk.img to 2048M (buffer) Mounting /data/adb/magisk.img to /dev/tmp/magisk img Searching for open gapps- zip Latest package found: /sdcard/open gapps-arm64-6.0-nano- 20180409.zip Bind-mounting pseudo /persist, /system & /vendor paths Couldn't bind-mount /persist
[Magisk] hkrware:
Talking about Magic_GApps-2018.3.6-1.zip\META-INF\com\google\android\update-binary. You can extract the file and run it manually via adb or terminal emulator.

Put it right before the line OpenGAPackage="`unzip -pqo "$GAppsZip"... (and after detecting the latest zip).
[Magisk] SamGuy2020:
Gosh I'm such noob I can't make the zip flashable after changing it no file digest lol those checksums haha.

I checked my file system and I changed one thing different than what you said

thank you in advance now timeto research how to make it flashable lol

mount /dev/block/platform/

15570000.ufs

/by-name/persist /persist
[Magisk] lauralbaby:
I haven't seen anyone else mention this error, but if I try to flash the module, it says it can't find the file. My zip starts with "open_gapps-8.1“ and it's in the Download directory of /storage/emulated/0. What did I miss?
[Magisk] kewuel:
Please help

"couldn't bind-mount /persist" Error:1
[Magisk] yosora:
Hi I really would like to try it, but can´t. Any working TWRP zip?:confused:
[Magisk] Flounderist:
Try this one
[Magisk] bam80:
Same problem. Any thoughts?
[Magisk] lauralbaby:
Mostly just confused :silly:
[Magisk] bam80:
Well, that was due mismatch in platform SDK versions. I was trying with old gapps zip, with new one this stage passes (I have also mounted "system" partition manually, but not sure it really needed).

Seems to me it should be more verbose error reporting to not confuse people..

Now, stuck on this error.
[MENTION=5228676]VR25[/MENTION], thanks for your efforts. Any chance we will get working recent version?
[Magisk] Didgeridoohan:
I wouldn't hold my breath of I were you. [MENTION=5228676]VR25[/MENTION] haven't posted anything on xda for almost 5 months...
[Magisk] bam80:
Ok, thanks. He also seems hasn't had any activity on Github. So.. I hope all is Ok with him, but seems we are alone..

I'm trying to debug his script, anyone wih scripting experience willing to help?
[Magisk] hajkan:
Hi

I am trying to install 7.1 pico. I tried flashing in recovery but the install process ended with

"could not bind-mount /persist

updater process ended with error 1

error installing .......... Magic-Gapps-2018.3.6.zip"
[Magisk] Didgeridoohan:
Me too... He did use to disappear for a few weeks once in a while because of flaky internet access, so let's hope it's something like that.
[Magisk] bam80:
Hi,

there is an issue on it,

someone reported success,

but suggested solution doesn't help for me:

mkdir /persist
[Magisk] bam80:
Ok, have managed to install gapps with it.

The script has a few severe bugs, I had to hack it in adb shell to make it run. Also, issue additional shell commands was needed..

If anyone interested, will describe the bugs and my workaround steps when I have time.
[Magisk] bam80:
[MENTION=5228676]VR25[/MENTION], I'm Very glad to see you and to know you are perfectly OK! :)

---------- Post added at 02:15 PM ---------- Previous post was at 02:06 PM ----------

you said you have updated Magic GApps but I see no changes in https://github.com/Magisk-Modules-Repo/MagicGApps.. :confused:
[Magisk] Didgeridoohan:
The changes haven't been pushed to GitHub yet. Download the provided zip and you'll find the updated module there. It's most likely got to do with the stated internet troubles.
[Magisk] EzioNight:
Hello, I have installed this module and I thank you very much for creating it since it works quite well, but I have installed it in custom rom stock 5.1.1 and every time I reboot the device it optimizes the applications and it is always, it is normal to do that or it is some problem of the custom rom or the module ??

Thank you very much for creating this magisk module
[Magisk] bam80:
I also noticed that after boot with disabled installed module, many apps permissions have reset. I have to tune them each time.

Anyone else faced this?
[Magisk] hajkan:
I aint installing it until this is resolved. Sorry that you got burned on this :(
[Magisk] bam80:
It's Ok, thanks.

Is it related with this issue?:

https://github.com/Magisk-Modules-Repo/MagicGApps/issues/3
[Magisk] VR25:
**2018.8.1 (201808010)**

- App permissions auto-reset issue possibly fixed

- Full `gapps-config.txt` support (removal lists work as pseudo-removal lists)

- Ground-up optimizations

- New attempt to eradicate GMS FC's

- Set `vrmode_compat=true` & `faceunlock_compat=true`

- Striped down (removed unnecessary code & files)

- Updated documentation

IMPORTANT NOTE: untill further notice, I'm only supporting official, stable Magisk versions. The reasons being, other builds are actually behind most modules issues (yes, I said "modules") and I just don't have the time anymore to play with more stuff. So, do not report issues if you're not running an official and stable Magisk version.
[Magisk] joe-4f:
I have (LOS)Oreo8.1 + Magisk16.0 + M.Manager 5.8.3 installed

- now I download in Magisk Module=Magic_gapps2018.8.6.zip, and open_gapps-arm-8.1-pico-20180807.zip

- with TWRP3.2.2.0 - install Magic_gapps2018.8.6.zip

after the boot the Google Services stopped, Play Store no loggin, App running in a loop..???

Did I miss something?
[Magisk] kiddrgn:
How do I update this module? directly overwrite or uninstall and reinstall with the latest module?
[Magisk] VR25:
A new version is almost ready. I just have to check some stuff before pushing it to the repo. The GREATEST NEWS so far... I finally found out exactly why gapps runtime permissions are messed up and not restored automatically by the system. The culprit is Magisk itself. And... I also found a workaround and implemented it already.

Updating the module itself is unnecessary. There's nothing to update at this point (really), besides the open gapps zip itself. So, don't worry about that.

Not sure. I never paid enough attention to this. Will report back in a few hours. Thanks.
[Magisk] bam80:
Actually, it's no go for me if gapps permissions would reset - I need disable/enable the module frequently.

Hope it will be resolved
[Magisk] VR25:
[MENTION=2992189]bam80[/MENTION], [MENTION=5458305]user2k10[/MENTION], good news: on the first install, permissions "may" be be reset (as stated on the OpenGApps page). However, this doesn't apply after enabling/disabling the module! Meaning, all runtime permissions remain intact. Bonus: after reseting app preferences, GApps permissions are no longer messed up. Tested that just now.

The new build is ready, but before pushing it upstream, I need some feedback. Please read the updated reference below, test the module (if you're okay with the new implications) and report back. Thanks.

# MagicGApps
## Copyright (C) 2017-2018, VR25 @ xda-developers
### License: GPL v3+

#### DISCLAIMER

- This software is provided as is, in the hope that it will be useful, but without any warranty. Always read the reference prior to installing/updating. While no cats have been harmed, I assume no responsibility under anything that might go wrong due to the use/misuse of it.
- A copy of the GNU General Public License, version 3 or newer ships with every build. Please, read it prior to using, modifying and/or sharing any part of this work.
- To prevent fraud, DO NOT mirror any link associated with this project.

#### DESCRIPTION

- Installs a regular open_gapps-* zip (except aroma variant) to magisk.img. Due to a Magisk limitation, the etc dir (only a few KiloBytes in size) must go to the real /system.

#### PRE-REQUISITES

- Any open_gapps-* zip, (except aroma variant
- Custom recovery
- Magisk

#### SETUP STEPS

- Before proceeding , note that your system partition WILL still be modified! The `etc` dir must be there to prevent GApps runtime permission issues. It occupies only a few KiloBytes, though.
0. Make sure an open_gapps-* zip (except aroma variant) exists somewhere in /sdcard or /external_sd directories or subdirectories.
1. Optional -- run `touch /data/r` to
reinstall open_gapps-* zip (or `touch
/data/u` to uninstall the module -- step 0
not needed).
2. Optional -- set up a gapps-config.txt file (removal lists work as pseudo-removal lists)
3. Install from custom recovery (i.e., TWRP).

#### ONLINE SUPPORT

- [Git Repository](https://github.com/Magisk-Modules-Repo/MagicGApps)
- [XDA Thread](https://xdaforums.com/apps/magisk/module-systemless-beansgapps-mini-7-1-x-t3611362)
- [webview_packages: fix incorrect signatures]( https://github.com/LineageOS/android_vendor_cm/commit/a3a76f5d1cc233ad8024ffdc74bb3a786e1605c3)

#### RECENT CHANGES

**2018.8.10 (201808100)**
- Let Open GApps installer use the real /persist
- Copy etc dir to the real /system (permission issues workaround, includes addon.d script)
- Major optimizations & cosmetic changes
- Removed `gp` executable
- Updated documentation

**2018.8.8 (201808080)**
- Added Face Unlock camera permission and Setup Wizard camera & location permissions to`gp`

**2018.8.6 (201808060)**
- Added gp -- perms granting executable for core GApps
- Minor optimizations
[Magisk] bam80:
Thanks [MENTION=5228676]VR25[/MENTION], glad you nailed it! But I have concern regarding modifying /system/etc - it could mislead all the point of Magisk! Don't think it's critical for me now, but anyway - is there any possibility to leave /system intact (keeping permissions, of course)?
[Magisk] VR25:
Well, I have one more thing in mind. It seems open gapps etc files should be ready earlier than post-fs-data phase. If that's really the case, then there's a chance placing the etc folder in /cache/magisk_mount/system might work just as well. That doesn't go without a price either, though. Although it's a fully systemless alternative, it won't work on Treble-enabled devices. Besides, cache cannot be considered a permanent storage partition. Still, this is a potentially possible workaround and I'll test it.
[Magisk] razr96:
Magisk 16.4 removed post-fs mode and changed simple mounts to early post-fs-data with /data/adb/magisk_simple. So testing with that might be better for future compatibility.
[Magisk] VR25:
Oh, the new "simple mounts", of course! Thank you.

Edit: [MENTION=2992189]bam80[/MENTION], it's finally done. No more runtime permission issues and fully systemless again!
[Magisk] bam80:
[MENTION=5228676]VR25[/MENTION], many thanks!

I'll test it ASAP
[Magisk] EzioNight:
Can someone clarify to me, what exactly is the module installed or how do I use it or how does it work?
[Magisk] Avillegas:
Launcher pixel experience don't work after install gapps, what I can do?
[Magisk] Avillegas:
Google app crash, feed don't work
[Magisk] elwhiteboy01:
Your module doesn't work for me. Running Tab A 9.7 WiFi (SM-T550) with unofficial lineageOS 8.1. The only version that recognized my gapps zip (pico) was the first version 7.24. The later two wouldn't recognize it. Yet after a successful flash with magic gapps, I get stuck in a bootloop for hours. I'm optimistic, so hopefully you can make magic gapps compatible with my device in the future. Take care.
[Magisk] Avillegas:
I have to reinstall open-gapps stock, swipe cache and valki, reinstall this mod, now all work, Google sync, Google faceunlock in me Honor 6 with elite ROM 7.7!! This mod is very good
[Magisk] nirritia:
scanning never ends

tried install package as of 08.12 and scanning was about 40 min. i did 3 attempts. tried 7.24-1 version and instantly all installed without any problems. Leeco Le 2 Oreo AEX.
[Magisk] bam80:
[MENTION=5228676]VR25[/MENTION],

Have similar behavior on one device - but after ~5 min scanning TWRP just reboots..

On the other device, it installs, but gapps crash permanently.

PS: somehow, crashing problem was resolved - it seems still crashes sometime, but not so critical now.

But problem with endless searching for gapps on fist device still remains.
[Magisk] VR25:
Go to the app info in settings and grant all runtime permissions. See if that helps. Thanks.

You need two things: open-gapps-*.zip and this module. Both files should be in your internal storage or sdcard. Flash the module as if you were installing GApps.

Update will come in a few days. P.S., logcats would be greatly appreciated. Thanks.
[Magisk] elwhiteboy01:
Hey I tried again so I could get a logcat file for you, but I had just modified my external SD card and was unable to restore a backup. Hence your module soft bricked my device. If possible, maybe you should create a rescue zip module similar to that of substratums. Anyways, I had to do a fresh install to get back up and running again. Not thrilled about that, just saying. I don't think I will attempt any future updates of your module without a rescue zip, just saying. Best regards.
[Magisk] kunarbale:
play service always keep stopping, any ideas whats make keeps happening ?

im on nougat and magisk 16.0
[Magisk] elwhiteboy01:
Have you tried resetting the play store? Have you updated the play services to the latest version? Are you using any theme apps, substratum? Theming the play store can cause it to crash. That was the main reason the play store constantly crashed for me, I themed it with substratum. After applying the theme again without the play store, it stopped crashing. Also, hibernating it or any google related apps can cause a crash. Hope that helps, best regards.
[Magisk] kunarbale:
Have you tried resetting the play store? yes

Are you using any theme apps, substratum? nope, I've tried from fresh install from both lineage 13 mm and viperos (nougat)

ok I think Im finally found the culprit, it seems sysconfig patcher module caused all of this issue,

xdaforums.com/apps/magisk/module-sysconfig-patcher-t3668435

disable it and playservice running flawlessly, thank you for reply btw :cool:.
[Magisk] elwhiteboy01:
Hey kunarbale, sorry my response didn't help. I was just trying to help, like so many that have helped me out here on XDA. Glad you found the problem. Best regards
[Magisk] Avillegas:
You can use Enable Doze for GMS module, I use this module wihtout problem and the battery is better performance that sysconfig patcher module
[Magisk] bam80:
[MENTION=5228676]VR25[/MENTION], seems permissions are not preserved still.

Tested with pico OpenGapps on LOS 14.1:

enable MagicGApps module, reboot

[*]set all the permissions for Google Play services

disable MagicGApps module, reboot

enable MagicGApps module, reboot

[*]now only Location permission remains for Google Play services

It prevents some programs from running
[Magisk] elwhiteboy01:
Hey I'm not even using gapps, I'm using nanodroid/microg magisk module. My play store never crashes and my battery has increased drastically. I stick around this thread in the hopes the op will make a magic gapps compatible with my device.
[Magisk] SevenUp9:
Huawei Mate 10 lite w/ AOSP or PE 9.0 - at the very end of installation after copying logs to /sdcard it comes with an ERROR 1, says only that package couldn't be installed, nothing else. I tried both stock and full packages (unofficial for ARM64). Not a problem of the packages themselves as I installed mini directly without any problems. Of course after that error Magisk module doesn't show up in manager and there are no Gapps. Any fix?
[Magisk] calionte:
Im trying to install magicgapps on latest build of lineageos for my Redmi Note 4 but this is what i get as an result

Any idea why it seems unable to find my opengapps package? (its called open_gapps-arm64-8.1-nano-20180831.zip fyi)
[Magisk] Avillegas:
If you don't have any version of open gapps in your phone, the module can't find.

I do it.

1. Flash open apps with TWRP (small version)

2. Download stock open gapps in your memory phone

3. Flash mod MagicGapps whit TWRP, this search stock open gapps in your memory phone and install systemless, changing small version for stock.
[Magisk] calionte:
with small version you're reffering to pico-gapps?
[Magisk] Avillegas:
Yes pico, fist time flash stock version could get error memory insufficient
[Magisk] calionte:
thank you for the help, turns out this doesnt work though.. even when following your instructions

Edit: turns out it works if i use the version from july
[Magisk] gudenau:
Figured I might as well cross post issue 11:

Installing zip file '/sdcard/Download/MagicGapps-2018.8.12.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found

MagicGapps 2018.8.12
VR32 @ xda-developers
Powered by Magisk (@topjohnwu)

(i) Searching for the latest compatible open-gapps-* zip

[ASCII Art of OPEN GAPPS]

Open GApps stock 9.0 - 20180907

- Mounting

- Gathering device & ROM information

*** Ubcinoatibly Android ROMN detected ***

This GApps pkg is for Android 9.0.X ONLY
Please download the correct version for
your ROM: 16.1.0 (SDK 27)

******* GApps Installation failed *******

- Copying log to /sdcard/Download

- NO changes were made to your device

Installer will now exit...

Error Code: 20
- Unmounting

- Installation complete

Updating partition details...
...done

Installing on a Pixel XL with Android 9.0.0, why does it think the SDK version is 27 when it should be 28?
[Magisk] VR25:
It's taking a while, I know. My time is limited.

I'm indirectly working on all my modules simultaneously, since all rely on the same coding principles and framework. So, that's a plus.

It's a great opportunity to question that little friend of yours named "patience".

I haven't tested this on Android P, as it's not yet available for my device.

Tip: down voting the project doesn't help it move upwards. A neutral vote, plus reports do. Thank you.
[Magisk] adstraylight:
Try unmounting the /system partition in TWRP after wiping, but before flashing your ROM. This is how I've avoided this type of error with normal Open Gapps installations, and I did the same when using Magic Gapps on my N4 with Pie.
[Magisk] rptb1:
Insufficient space with pico on fresh Lineage + Magisk

On a Xiaomi Mi4 LTE with TWRP, I do this:

Wipe system, cache, data, dalvik.

Install lineage-14.1-20180919-nightly-cancro-signed.zip

Install Magisk-v17.2.zip

Boot up, do minimal setup.

Reboot to TWRP.

Install MagicGApps-2018.8.12.zip (/sdcard/Download/open_gapps-arm-7.1-pico-20180922.zip exists)

Install fails because of insufficient space.

From the logs it looks like the fake system partition is only about 10% of the size of the real one.

Log is on pastebin.com/0UwvGXCh (I can't post links yet.)

Just Lineage + Open GApps works fine (of course).

If this is a bug, is there some temporary hack I can make just to make enough space to carry on my testing?

Many thanks.

For what it's worth, I'm trying to put together a phone where I can switch back and forth between GApps and microG using Magisk.
[Magisk] VR25:
A small update will come within a few hours to clear that and perhaps some more stuff. Thanks.
[Magisk] rptb1:
Thank you. I'll keep an eye on the github repos.
[Magisk] Unc3nZureD:
After installing I'm stuck at "Finish Mi A1 Setup". It just endlessly loads or simply crashes.

Any idea how to correctly initialize the installation?
[Magisk] Avillegas:
Hi, I update it, when I rebooted me phone, module MagicGapp lost, I have to install again of twrp
[Magisk] knpk13:
I can't find any reasoning in the main post or on GitHub?

[MENTION=5228676]VR25[/MENTION]
[Magisk] rptb1:
Just so you know, MagicGApps-2018.9.23.zip did not fix the problem. open_gapps-arm-7.1-pico-20180927.zip still complains about lack of space. Failure log at pastebin.com/0AqiQRs4. Thanks for your work!
[Magisk] adstraylight:
The reason I'm using it is because on my device (mako), the port of Pie I'm using doesn't leave enough /system space for even the smallest Gapps package.

BTW, I've just found that I can stop the random Play Services errors by installing an older package (September 8th works on Pie for me), then letting PS update itself via the Playstore. After this, no more pesky error dialogues!

Edit: Just remembered this was in a list of stuff by another user (junglism93), so not actually my idea, so apologies and thanks to them?
[Magisk] user23072003:
It installs correctly but when i boot my device the gapps doen't show up. How to fix it??
[Magisk] alessio89g:
Need I to reflash it when I update my ROM?
[Magisk] VR25:
I'll be working on an update as soon as my top priorities are out of the way.

No, unless the Android version is different (i.e., Nougat GApps packages aren't suitable for Oreo).

---

Notes to All

I don't need this module (at all).

My /system has more than enough space to accommodate even the full OpenGApps variant.

I'm doing this purely for those who actually need it (i.e., mako users).

Helping people is part of me. Whenever I can, I do it. I don't ask for anything in return, but I also don't refuse any kind of gratification. Be it monetary, verbal, etc..

Please, don't take this thing for granted. Down-voting the project just because I don't update it as frequently as, say Magic Changing Switch or App Data Keeper is a sin.

I'll continue polishing the next MagicGApps version as soon as I'm done fixing main issues on modules I actually use daily. Thank you. :)
[Magisk] Peter1212:
I'm still getting this FC so much, I'm using Prevent Running module for xposed to keep them from displaying the message again and again. Is there a specific workaround or patching that can be done to not have that perhaps? How about a guide for manual patching the framework files for signature spoofing?

I don't think the microg fakegapps module or nanodroid's patch will work for it though?
[Magisk] adstraylight:
For me, once gms updated via the Playstore the fc stopped. So my workaround is to use an old gapps package. I think mine dates from early September.