User Tools

Site Tools


android:oneplus_6_enchilada

Information

LineageOS

Recovery

  • OOS 10.3.8 → 11.1.2.2 OTA → LineageOS

HOSTS

  • LineageOS Recovery → Advanced: Mount/unmount system and Enable ADB
  • Expects blacklist-fg.txt in Downloads
adb shell "mount -o 'rw,remount' '/mnt/system'"
adb push "%UserProfile%\Downloads\blacklist-fg.txt" "/mnt/system/system/etc/hosts"
adb push ~/'Downloads/blacklist-fg.txt' '/mnt/system/system/etc/hosts'
adb shell "restorecon -F -v '/mnt/system/system/etc/hosts'"
adb shell "cat '/mnt/system/system/etc/hosts' && sync"

Apps

Mozilla

Firefox

F-Droid

Other

Settings

Disable Backup Manager

adb shell "bmgr transport 'com.android.localtransport/.LocalTransport' && bmgr enable '0' && sync"

Private DNS

security.cloudflare-dns.com

Termux

pkg clean && pkg upgrade && sync && exit
termux-change-repo
pkg install 'openssh'
sync && exit

Piwigo

media.realmofespionage.xyz

WordPress

https://blog.realmofespionage.xyz

GSF SafetyNet Integrity

adb shell
sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"

ROM Testing

OxygenOS

  • OOS
  • Provides 60 FPS 1080p/4K video recording, and Certified Play Store status in 2024 for Ingress
  • :!: Android 11
  • :?: 2024/06: Lock screen with Spotify would flicker oddly, and Google Messages would show a notification for doing background work suspiciously
  • :!: 2024/07/21 to 2024/11/10: No longer passes Strong Play Integrity regardless of known EDL or MsmDownloadTool restore methods

HydrogenOS

LineageOS

  • 2024/06/12: Flashing the latest LOS21 update had Google services breaking left and right; LOS OTAs with Gapps need flashed with in-OS updater tool instead of sideload (TODO: XDA post)

DivestOS

  • :!: VoWifi is removed and it's kind of nice when-needed
  • :?: OTA update looks odd as it always presents the current update as an update?

LineageOS for microG

  • LOS4mG
  • :!: 2023/09/29: Pokemon GO and Monster Hunter Now don't work with Google sign-in, but Ingress does (#1979)
  • Only really useful for playing Pokemon GO with a Trainer Club account
  • :!: 2024/03/01: Couldn't get Pokemon GO working with a PTC account; possible Play Integrity/SafetyNet changes aren't implemented?
  • 2024/02/25: LineageOS officially supports signature spoofing (commit), but requires GsmCore.apk pushed to priv-app(?) and some mainifest permissions that make base LOS + microG manual not worthwhile

Ubuntu Touch

  • 2023/11/01: The top-rated Radio app in OpenStore didn't play/pause consistently
  • :!: 2023/11/01: The top-rated KeePass app in OpenStore didn't open my database
  • No fingerprint reader
  • :!: 2023/11/01: VLC nor Firefox existed in OpenStore
  • Was neat being able to use Waydroid and start up OSRS with seemingly good FPS

postmarketOS

Renegade Project

Restore

  • Last tested: 2024/08/08

Prerequisites

EDL Tools

Dependencies

sudo dnf install adb fastboot python3-devel python3-pip xz-devel git

Download Sources

cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/bkerler-oppo_decrypt/src' ~/'Projects/bkerler-edl/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/bkerler/oppo_decrypt.git' ~/'Projects/bkerler-oppo_decrypt/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/bkerler/edl.git' ~/'Projects/bkerler-edl/src' && sync

Build

pip3 install --user --requirement ~/'Projects/bkerler-edl/src/requirements.txt'
cd ~/'Projects/bkerler-edl/src' && python3 ~/'Projects/bkerler-edl/src/setup.py' 'build'

udev Rules

sudo mkdir -p '/etc/udev/rules.d/' && sudo cp ~/'Projects/bkerler-edl/src/Drivers/50-android.rules' ~/'Projects/bkerler-edl/src/Drivers/51-edl.rules' '/etc/udev/rules.d/' && sudo udevadm control --reload

Image

  • :!: 2024/08/08: OOS 5.1.11 needs to be used to workaround NVBackupUI errors (comment)
  • :!: TODO: Everything below needs switched to 5.1.11

Download

wget -O ~/'Downloads/OnePlus_6_OxygenOS_10.3.8.zip' 'https://onepluscommunityserver.com/list/Unbrick_Tools/OnePlus_6/Q/OnePlus_6_OxygenOS_10.3.8.zip'

Extract

  • 1st is OnePlusCommunityServer from above, 2nd is Android File Host 2)
rm -Rf ~/'Downloads/enchilada_22_J.50_210121/'
md5sum ~/'Downloads/OnePlus_6_OxygenOS_10.3.8.zip' | grep 'cac18fdf6e8bc87a17a911ec95d67078' && unzip -qq -b -d ~/'Downloads/' ~/'Downloads/OnePlus_6_OxygenOS_10.3.8.zip' && sync
md5sum ~/'Downloads/enchilada_22_J.50_210121.zip' | grep '279ca4f14f88bd669da3a01585d2770c' && unzip -qq -b -d ~/'Downloads/' ~/'Downloads/enchilada_22_J.50_210121.zip' && sync
ls ~/'Downloads/enchilada_22_J.50_210121/enchilada_22_J.50_210121.ops'

Decrypt

md5sum ~/'Downloads/enchilada_22_J.50_210121/enchilada_22_J.50_210121.ops' | grep '4d11ee9081b9a314cc10aec784f12acd' && python3 ~/'Projects/bkerler-oppo_decrypt/src/opscrypto.py' decrypt ~/'Downloads/enchilada_22_J.50_210121/enchilada_22_J.50_210121.ops' --extractdir='decrypted-ops' && sync

Restore XMLs

Generate

nano ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/op6-restore-patches.py'
with open('settings.xml', 'rt') as f:
    xml = f.read()
for intag, outtag, out in (('Program', 'data', 'rawprogram'), ('Patch', 'patches', 'patch')):
    for pr in xml.split(f'<{intag}')[1:]:
        num, data = pr.split('>', 1)
        lines = filter(lambda x: x, map(lambda x: x.strip(), data.split(f'</{intag}')[0].split('\n')))
        with open(f'{out}{num}.xml', 'wt') as f:
            print(f'<?xml version="1.0" ?>\n<{outtag}>', file=f)
            for line in lines:
                print(' ', line, file=f)
            print(f'</{outtag}>', file=f)
# End

Create XMLs

cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && python3 ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/op6-restore-patches.py' && sync

Restore

Disable ModemManager

sudo systemctl disable 'ModemManager' --now

Boot to EDL

  • Power OP6 off
  • Hold Vol Up
  • Connect data USB cable to PC
  • :?: Possibly requires Power button to be held too

Fastboot Unlock

  • Also tests edl functionality
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' modules 'oemunlock' 'enable'

Flash

  • This does edl qfil rawprogram#.xml patch#.xml dir for each xml (there's 6)
  • :!: 0 and 4 take some minutes but the rest are quick/instant
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram0.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch0.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram1.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch1.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram2.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch2.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram3.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch3.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram4.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch4.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'
cd ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/' && ~/'Projects/bkerler-edl/src/edl' qfil ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/rawprogram5.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops/patch5.xml' ~/'Downloads/enchilada_22_J.50_210121/decrypted-ops'

Reboot

~/'Projects/bkerler-edl/src/edl' reset

Clean-up

  • TODO
sudo systemctl enable 'ModemManager' --now

NVBackupUI Fix

1)
this page renders differently at times and may initiate unrelated .exe and .apk downloads
2)
the archives have different hashes but the .ops is consistent
/var/www/wiki/data/pages/android/oneplus_6_enchilada.txt · Last modified: by Sean Rhone