Update for LineageOS 19.1 and Magisk 25.2

This commit is contained in:
2022-08-25 13:07:40 +02:00
parent 033eece53d
commit ad1115640f
12 changed files with 38 additions and 21 deletions

View File

@ -7,7 +7,7 @@ import subprocess
import time
device = 'FP3'
magiskdir = 'Magisk-v24.3'
magiskdir = 'Magisk-v25.2'
def yes_or_no(question, default=None):
@ -119,10 +119,15 @@ def rebootToBootloader():
def flashBoot():
'''
currentSlot = getCurrentSlot()
cmd = ['fastboot', 'flash', f'boot_{currentSlot}',
f'{magiskdir}/new-boot.img']
subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
'''
for slot in 'ab':
cmd = ['fastboot', 'flash', f'boot_{slot}',
f'{magiskdir}/new-boot.img']
subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
def getCurrentSlot():