Automate Patching with a script

Search This thread

Quark Thonos

Member
Feb 4, 2021
16
1
Hi, i am currently working on a project for AutoRooting but i have a problem with automating patching process :
I am currently working with Samsung devices and there magisk uses 'systemless' protocoll to patch AP/boot.img file.
Magisk repository only offers some Bash scripts for patching but i need them to work on a Windows environment.
So, what i am asking is : "Is there a way to implement patching scripts inside a Windows environment? If cannot be possible to write them in system-langugage, then is it possible to write them on any programming languguage?"

Thanks.
My repo : https://github.com/QuantumNone/AndroidRooting-Samsung/branches
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,683
5
1,562
gitlab.com
you know unlocking bootloader requires OEM unlocking (1) in developer options, unlocking bootloader with Volume keys (2) from download mode, factory reset, initial setup (3) and OEM unlocking (4) vaultkeeper in developer options?

according to Magisk installation instructions the whole AP_[device_model_sw_ver].tar.md5 has to be patched and flashed together with BL, CP and CSC from Odin3 in download mode (5) which again factory reset device, requires initial setup (6) and final installation of Magisk apk.

no one can automatize that. is that some trolling attempt?
 

Quark Thonos

Member
Feb 4, 2021
16
1
Hi @Alecxs,
No it's not a troll or something stupid... just a python project to work on...
I already know all about what you said but i need to find a way to patch AP file (or boot.img) by using magisk's scripts.
So my idea was to run these scripts inside android with adb shell to patch the file.
Can you share me your discord?
I would like to chat more...
However, all the code is open source (pubblic shared).
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,683
5
1,562
gitlab.com
sorry but I see no way of handsfree passing (2) (3) (6) and (1) (4) requires usb-debugging, which again cannot enabled handsfree. (5) requires windows drivers and is therefore unstable (not to mention error handling in case flashing fails)

The whole idea is a joke to me.
 

Quark Thonos

Member
Feb 4, 2021
16
1
Yea, surely it cannot automate all the process, in fact usb debugging cannot be enabled automatically
but all other processes yes, such as flashing
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,683
5
1,562
gitlab.com
"all the other" except (1) (2) (3) (4) (5) (6)

oh wait, you can automate the volume button...
RESTART_adapter_500E.jpg


well... good luck
:LOL:
 
Last edited: