Download your ROM from resurrectionremix.com.
Get the rom to your phone. Use an external micro SD card if it's possible.
Get the recovery from twrp.me
adb drivers windows linux and mac
. You can follow a tutorial there.
Arch Linux & Manjaro Linux:
sudo pacman -S android-tools android-udev
Download Heimdall from glassechidna.com.au
Arch Linux & Manjaro Linux:
sudo pacman -S heimdall
Magisk-'latest-version'.zip
MagiskManager-'latest-version'.apk
Magisk-uninstaller-'latest-version'.zip
magisk-riru-core-'latest-version'.zip
magisk-EdXposed-'latest-version'.zip
EdXposedInstaller_'latest-version'.apk
EdXposedUninstaller_rec.zip
NanoDroid-BromiteWebView-'latest-version'.zip
eu.faircode.xlua_'latest-version'.apk
Download APK
dev.ukanth.ufirewall_'latest-version'.apk
Download APK
com.thermatk.android.xf.fakegapps_'latest-version'.apk
Download APK
Get all downloaded applications on your phone. Use an external micro SD card if it's possible.
Leave eu.faircode.xlua_'latest-version'.apk, dev.ukanth.ufirewall_'latest-version'.apk, MagiskManager-'latest-version'.apk, com.thermatk.android.xf.fakegapps-'latest-version'.apk and EdXposedInstaller-'latest-version'.apk on your computer.
If you got every requirements then we can go further with the first step (4 steps in total).
Get yourself a coffee or tea and let's go through this.
Reboot your phone and hold VOL-DOWN, Power Button and the Home Button until you see a warning message. Now VOL-UP and you'll see an Android logo and "Downloading ..." etc..
Connect your phone via USB to your computer.
Start Heimdall and go to Utilities. Click on Detect by Detect Device. You can see by Output Device Detected.
Now you have to create a .pit (Partition Information Table) file.
Click on Save as by Download PIT and choose a folder and name -> Save -> Download.
Output:
Heimdall v1.4.2
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond.
Please be patient!
Session begun.
Downloading device's PIT file...
PIT file download successful.
Ending session...
Releasing device interface...
Go to Flash and click on Browse by PIT. Use the just created .pit file.
Click on Add by Partitions (files) and choose by Partition Details / Partition Name RECOVERY. Click on Browse by File and choose twrp-'latest-version'-trlte.img.
Now click on Start.
Check if an installation line appears on your phone.
You can also see a process in Heimdall under Status. It should look like this:
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond.
Please be patient!
Session begun.
Downloading device's PIT file...
PIT file download successful.
Uploading RECOVERY
0%
6%
13%
19%
26%
32%
39%
46%
52%
59%
65%
72%
79%
85%
92%
98%
100%
RECOVERY upload successful
Ending session...
Rebooting device...
Releasing device interface...
For Linux. If you encounter errors while trying to download your .pit file, you must create a new file on your computer and add the following:
sudo nano /etc/udev/rules.d/79-samsung.rules
ATTRS{idVendor}=="04e8", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="04e8", ATTRS{product}=="Gadget Serial", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{MTP_NO_PROBE}="1"
ctrl + x & yes
sudo systemctl restart systemd-udevd
Try it again. You may need to restart Heimdall if it's still running.
After that, you can reboot your phone to the recovery. Hold VOL-UP, Power Button and the Home Button until you reach the new recovery TWRP.
Click on Wipe and on Advanced Wipe and select only:
Now Swipe to Wipe.
Before we flash a custom-ROM let's do a "quick" backup of your system.
Click on Backup and Select every Partition and Swipe to Backup.
Click on Wipe and on Advanced Wipe and select only:
Now Swipe to Wipe.
Click on Install and Select Storage and choose Micro SD card. Look for RR-P-'latest-version'-trlte-Official.zip click on it and Swipe to confirm Flash. Wait until it's done. And wipe the Cache.
Click on Install and Select Storage and choose Micro SD card.
Look for Magisk-'latest-version'.zip, NanoDroid-BromiteWebView-'latest-version'.zip, NanoDroid-microG-'latest-version'.zip, magisk-riru-core-'latest-version'.zip and magisk-EdXposed-'latest-version'.zip.
Click at first on Magisk-'latest-version'.zip and then Add more Zips and add the other files.
Now Swipe to confirm Flash.
Go back to the main view and click on Reboot and System.
Turn all your internet connection off at first.
Go to your Settings and click on About phone of your phone. Push the Build number seven times or more. Go back to the main view of the Settings and click on System and Developer options (maybe advanced first). Turn Android debugging on.
Connect your phone via USB to the computer.
Start the terminal and go to the folder where you downloaded ... .apk files. Maybe /home/user/Download:
Magisk
adb install MagiskManager-'latest-version'.apk
Check your phone for Magisk. Start Magisk and click on the "burger" (three lines top - left) and on modules.
Check if all are selected (Riru - Core, Riru - Ed Xposed). If not do a reboot.
EdXposed
adb install EdXposedInstaller_'latest-version'.apk && adb install eu.faircode.xlua_'latest-version'.apk && adb install dev.ukanth.ufirewall_'latest-version'.apk && adb install com.thermatk.android.xf.fakegapps_'latest-version'.apk
Check your phone for EdXposed Installer. Start EdXposed Installer and click on the "burger" (three lines top - left) and on modules. Select AFWall+, FakeGapps and XPrivacyLUA.
Do a reboot.
Turn your Internet on (WIFI or / and LTE).
Start AFWall+ and click on the three dots (top-right) and click on Preferences and on UI Preferences
Select:
Go back and click on Rules/Connectivity.
Select:
Go back to the main view (first start of the app).
Select WLAN, Mobile Connection (2 arrows without roaming (R)) and VPN for:
Depending on your application, you may need to give your application access to the Internet when needed. Each time you install an application, a notification is displayed, and you can choose whether this application needs Internet or not. If no pop-up notification is displayed, it may be because the AFWall + message is not working properly or your installed application does not require Internet access.
Go to your phone's settings and click on Apps & notifications, Advanced and App permission. Now click Spoof package signature and click on the three dots (top-right) and on Show system and select FakeStore and microG Services Core.
Start the microG application and grant all necessary permissions. Then click on Self-Check and check everything. It should have everything selected. Maybe UnifiedNlp status did not select everything. That's okay.
Go back to microG Settings and click Google Device Registration and enable it. The same applies to Google Cloud Messaging.
This is quite similar like AFWall+. Start XPrivacyLUA and click on the "burger" (three lines top - left) and select Notify on new apps and Restrict new apps.
Example:
It's actually pretty obvious.
XPrivacyLUA doesn't block the contacts for example. It fakes it. If you block Read clipboard and you paste a name to your Contact app it doesn't paste the name. It paste Private instead.
Don't forget that.
That's it. Enjoy
Problems?
If you encounter problems, simply create an issue.