Home Artists Posts Import Register

Content

As a bunch of people have had issues flashing these, I figured I'd review the README and make a public post to explain the process and its issues once more.

First of all: All the issues you guys are having with flashing these are because OpenGapps don't like being flashed over a LineageOS setup that has been previously booted.

For all the people that just want to be on their merry way and get things up and running, this is where you can stop reading (more or less) as you now know exactly what went wrong and how to fix it.

Just boot TWRP, factory reset your system, flash OpenGapps & Magisk, reboot, and you'll be done.

For those that want to know why this happens, or those that need a more in-depth tutorial, here's a more detailed answer.

Why do OpenGapps break my LineageOS install?

This is because Android ROMs have something called a "FirstTimeSetup", a small little APK file that launches on first boot and initializes the ROMs Android settings with some initial default settings.

When you flash a OpenGapps package on top of your ROM, it will replace this "FirstTimeSetup" APK with one that sets Google Apps compatible default settings on first boot.

But because you previously booted your ROM while the Google Apps incompatible "FirstTimeSetup" APK was still present, your Google Apps are now missing some mission critical permissions which in turn makes them crash.

This in turn triggers a Android Zygote safeguard, which results in Zygote, the main process of Android, essentially taking the whole operating system down with it after a certain number of errors occured.

How do I properly flash OpenGapps & Magisk? (The long version...)

  • Go to https://opengapps.org, pick ARM64 as your Platform, 8.1 as your Android version and pico as your Variant, then hit the red download button.
  • Go to https://github.com/topjohnwu/Magisk/releases and download the latest revision of Magisk. The filename is usually named Magisk-v{insert version number here}.zip.
  • Long press your XD+'s power button for about 5 seconds to turn it on, let go of the power button, and immediately swap to holding down the Volume+ button until you reach a very minimalistic (shown sideways) menu.
  • Tap the Volume+ button until "Recovery mode" is selected, finally confirm your choice with the Volume- button.
  • Connect your XD+ to your PC.
  • On your XD+ tap the "Wipe" button and slide the "Swipe to Factory Reset" bar to the right, followed by the "Home" navigational button.
  • On your XD+ tap the "Advanced" button, followed by the "ADB Sideload" button, and confirm your selection by sliding the bottom blue bar to the right.
  • On your PC execute the following ADB command: adb sideload open_gapps-arm64-8.1-pico-*.zip
  • Return to the recovery's main menu and repeat step 6 to toggle it back into the "ADB Sideload" mode.
  • On your PC execute the following ADB command: adb sideload Magisk-v*.zip
  • Wait for the sideloading process to finish and reboot your device, either by long-pressing the power button or picking the "System" reboot option in recovery.

And finally...

Most of you might have noticed that the points listed above are quite similar to the text found in the SPFlash package README.txt.

Well, that is because it is, more or less, a carbon copy of the OpenGapps & Magisk install section of that README.txt file.

However, that README.txt was written from the point of view of a freshly SPFlashed unit, which is why it didn't include the "Factory reset" step seen above.

I didn't anticipate that new users would immediately take the freshly flashed system for a test-drive before flashing OpenGapps & Magisk, which was a slight oversight on my end and the reason why so many of you ran into this issue in the first place.

I should have known better and included that step from the get-go, just to be on the safe side of things, but I learn from my mistakes, and all future builds will include this extra step in the README.txt file as well.

I hope that this post will be of some help to those that struggle with this issue and should any of you find themselves stuck, feel free to direct message me here on Patreon.

I will provide help where possible, but can only do so on weekends for obvious reasons (dayjob, moving, etc).

I wish you all the best!

- Black-Seraph

Files

Comments

Anonymous

To flash Magisk i need to wipe again?

blackseraph

Usually you flash it all in one fellow swoop. The order is as the tutorial describes: Factory reset, then the ROM, then OpenGapps and finally Magisk last.

Anonymous

I did it but it is still stuck on logo.

blackseraph

Everything should be fine if you followed the instructions. If you are still stuck by the time I finish my work shift tomorrow I'll gladly help you out in person via direct message and / or Discord. Right now though it's 2:11AM and I need to be back up and running in 4 hours or so. :(

Anonymous

Sorry for bothering you. I installed CleanRom and It is working Fine. I gonna keep It till you release Android 9 or a stable Lineage 8 build.

Anonymous

how do i do the On your PC execute the following ADB command: adb sideload open_gapps-arm64-8.1-pico-*.zip part

blackseraph

You install the platform-tools from Google and open a terminal. Then you type the command.

Anonymous

on the GPX

blackseraph

It even said in the README "on your PC". There are ways to do it without a PC but it requires some extra fiddling.

Anonymous

i have pc but cant find any readme

Anonymous

i have downloaded platform-tools_r30.0.4-windows

Anonymous

Never had a single problem with gapps

Anonymous

It's already pretty stable. if you don't follow the instructions, it's normal that it does not work correctly.

Anonymous

tried and can not get adb command to work please help

Anonymous

downloaded both files and installed platform tools started shell but command will not execute

Anonymous

created forder ADB in c drive where open gapp zip and magisk are ( powershell says PS C:\ADB\platform-tools> )

blackseraph

Sounds like your files and tools are in separate folders. Move them into the same folder as the tools and try again.

Anonymous

do i type adb sideload open_gapps-arm64-8.1-pico-*.zip or adb sideload open_gapps-arm64-8.1-pico-20201002.zip

blackseraph

Both should work as long as there's only one OpenGapps package in the folder. The * symbol gets substituted by Windows automatically.

Anonymous

ok will try both gapps and magisk are still zip folders in platform tool folder is this correct

blackseraph

Sounds correct to me. But if you need help feel free to drop me a TeamViewer ID in the Patreon direct messages. (For the love of God, don't post those in the public comments!)

Anonymous

sent message

Anonymous

ok thank you

Retro Handhelds

Dude you're knocking it out of the park! These beta releases have been fantastic! Thank you so much.

Anonymous

Seems to be mostly working, but can't get audio working. Strange! This is really cool though, thank you for all your efforts!

Anonymous

Not yet. Haven’t had much time to play around with it. I’ll give it another shot when I’m back from work. This may be a dumb question or completely unrelated (I’m new to sideloading with Android) but I’m also getting “trust” issues saying it’s using public keys. Not sure if that matters or not.

blackseraph

Please report back after trying the setting. It's made to fix audio issues caused by different motherboards. (There's two different models out.) As for public keys: Yes, that's perfectly fine and normal for "unofficial" ROMs. My ROM might be better than stock, but on paper it still counts as "unofficial" material.

Anonymous

Hi. Me Again. In despite of i am having Fun with CleanRom, i want to try Lineage Again, so i would like to clarify some points: after Readback process done and unplugged GPD XD from PC, It is said to overwrite nvram and nvdata files on the unpacked ROM with those ones we backed up. So, my question is: i got nvram and nvdata backed up from CleanRom installation. Can i put them inside Lineage pack (in the right place, overwriting those existing, of course) and then i press Format All+Download?

Anonymous

Another point is: after The Readback process done, do i make a wipe on TWRP ,before finishing the ROM installation or i make It after all installation done? It concerns to gapps and Magisk flashing.

blackseraph

Yes, you override the NVRAM and NVDATA from the Lineage package with the one you backed up. As for wiping data: You only need to wipe it if you previously booted the OS before flashing Google Apps. As such it doesn't matter in which order you do it. I personally would do it before though.

Anonymous

One last question: do i need to allow Usb debugging on Developer options?

blackseraph

For what? If you mean the OpenGapps / Magisk install then no. TWRP enables USB debugging for you automatically when you boot into it.

Anonymous

Thank you. I gonna try Tonight. I Will report later. 🙂

blackseraph

I'm working overtime in the office so I'll be up for a few more hours if you need me.

Anonymous

I am trying now, but when i go to my backup twrp folder, both files Nvram and nvdata are in ".emmc.win". What should i do? Change their extensions to ."bin" and ".img"?

Anonymous

Rename them to bin and img, i mean.

Anonymous

Where? Sorry, but i cannot find It.

Anonymous

Finally It restarted. Now i am configuring It, but It does not connect to Wifi.

Anonymous

It really does not connect. I dont know what to do.

Anonymous

I managed to get It working, but no wifi connection.

Anonymous

Is there any solution?

blackseraph

It works fine here. Not sure what you've done to get into this mess exactly. No WiFi sounds like a bad NVRAM or NVDATA though.

Anonymous

Is It possible to fix It?

blackseraph

Of course. Just flash a backup of a good NVRAM & NVDATA. Keep in mind you'll have to redo your CleanROM settings though as those are stored in NVDATA too.

Anonymous

Can i fix It?

Anonymous

Sorry. Sometimes, i post a question and It appears to be vanished. Wifi is working on CleanRom and i have a backup on a microsd card. So, i need to reboot on TWRP and restore It, right?

blackseraph

You could of just followed the video tutorial instead of going through this. But yes, if you have a proper backup you should be able to restore them.

Anonymous

I Will stop to disturb you, but, Just to do things right, i have a full CleanRom backup, so i need to restore the full system, not only nvdata and nvram files, am i correct?

Anonymous

Ok. Thank you.

Anonymous

It worked!! Yeah!! I found the problem: the ROM does not find hidden networks, so i had to make mine visible. Then It connected. About games, most work Fine, but Tesla vs Lovecraft get so Buggy, unplayable. Maybe It has to do optimization, most people make games compatible with snapdragon and do not care about Mediatek, Kirin and so on...i think. I missed a stylish launcher like that from CleanRom.

Anonymous

Thank you for being so patient. Thank you.

Anonymous

About SElinux mode, do you recommend disable warning messages?

Anonymous

So... I know you're working on Android 9. When that's out, will it require a full wipe to install?

blackseraph

I can't say for sure yet but... it's better to assume it will be required to wipe and be positively surprised when you don't have to rather than expect lossless upgrades and be disappointed when you don't get them. On the move from 7.0 to 8.1 we had to wipe because a full repartitioning of the device was required. This won't be necessary for 9, which means seamless updates might be possible.

Anonymous

Can I use "full" Gapps package, or it will damage the ROM in some way?

Anonymous

Just tested it. It is possible, but google assist is glitching - can not connect to it's servers.

Anonymous

My GApps installs fine but I can't see Magisk even after following these instructions

Anonymous

You can put Magisk zip file into the internal storage or a micro sd, boot to recovery and flash It. I did It and worked for me.

Anonymous

You are welcome.

Anonymous

1 month without any updates :(

Anonymous

I got some little bug, It does not compromises gameplay because gamepad still Works great ingame but is kind of weird: suddenly i cannot navigate through apps by using gamepad and when i press d-pad buttons, It opens apps aleatory.

blackseraph

The system keeps track of touchscreen mappings per app. Maybe you have a active touchscreen mapping saved for your app launcher? If so, press the gamepad button to bring up the mapper and press the clear button, then retry.

Anonymous

I gonna try. I activated the mapper for the Predatores game since It has no gamepad support and then this issue happend.

Anonymous

suppose this is obvious to all the hackers in here, but if anyone else is stumped by this the adb tool referenced in the flash guide can be obtained from here: https://developer.android.com/studio/releases/platform-tools