Update for LineageOS 19.1 and Magisk 25.2
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user