Automate Patching with a script - Magisk

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

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?

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).

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.

Yea, surely it cannot automate all the process, in fact usb debugging cannot be enabled automatically
but all other processes yes, such as flashing

"all the other" except (1) (2) (3) (4) (5) (6)
oh wait, you can automate the volume button...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
well... good luck

Related

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

[DEV] [WIP] Pebble emulator

After a whole lot of long evenings, odd hacking sessions and other fun things, I'm proud to present a full-system emulator for pebble.
This differs from existing solutions by actually emulating the pebble firmware using QEMU rather than simulating system calls!
It's still very much work in progess, but it currently boots a slightly modified firmware and allows navigating around the menus.
The long-term goal is to get it to a state where installing apps using libpebble is possible and hence allow using it for development.
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Limitations:
Needs a full dump of the internal flash to boot (Working to allow it to boot a tintin_fw.bin directly)
Requires a modified firmware (BT initialization disabled)
Requires an SPI flash dump to be usable (Needs modified firmware to dump!)
There's currently no way to install apps
It has only been tested with firmware version 2.0.0
Sources:
https://github.com/pebbledev/qemu_pebble
DumpPebble: https://github.com/Hexxeh/DumpPebble
Dump Pebble SPI Flash: https://github.com/EnJens/DumpPebbleSPIFlash
Required patches:
On a full internal flash dump of Firmware 2.0.0 (ev2_4 - e.g. original kickstarter watch!), the following patch needs to be applied to get it running in the emulator:
patch 0x0803d910 1BE0 (Inside a full dump, the offset will be -0x8000000, e.g. offset 0x3d910)
Reserved2
Does this compile and run under android? I could see this being useful on watch devices like the Omate TrueSmart
fg said:
Does this compile and run under android? I could see this being useful on watch devices like the Omate TrueSmart
Click to expand...
Click to collapse
I doubt the CPU in the Omate is sufficiently powerful to do this right now. (I say right now, because it might theoretically be possible to optimize emulation since the cpu could directly execute most instructions...Similar to x86 on x86 emulation).
But no, this doesn't compile and run under android. It's intended for development of apps, rather than daily usage.
How do you run this under Windows? I can't seem to find a .bat or .exe file. Or does this only run with Linux?

Removing the flight mode for lumia wirh mass storage and Huawei w1

easy way: restore with your dump, received with this instruction.
1. we need:
a) WPinternals and mass storage or Huawei w1 custom rom: 1 2 or rkBreakout
b) Hex editors
с) my dump dpp
or your dump dpp, copied into mass storage.
d) you must know the mac address WI-FI and Bluetooth( But working always)
2. Opening zip archive and moving files to C:\reksden dpp\
3. Opening C:\reksden dpp\QCOM and open files with Hex editors WLAN.PROVISION
And see selected Wi-Fi mac addres phone & write down your values here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4. Bluetooth working good without Bluetooth mac adress, but you can recover:
Opening C:\reksden dpp\QCOM and open files with Hex editors BT.PROVISION
And see selected Bluetooth mac addres phone & write down your values here:
5. Opening c:\reksden dpp\Microsoft\ and opening files Microsoft.PVK and calling to Microsoft phone support and knowing your activation key & write there activation key:
Without activation key don't working microsoft service
6. Imei closed information, but files for imei Huawei devices:
7. And sent this Files for dpp partition in mass storage-7.68mb
8. After flash the phone or hard reset phone, and your flaing mode deleted.
to help write in private messaneger: russian or english.
OR:
1. Use NokiaCareSuiteForStore-2013.49.3.30 by pinching the + volume and power flashed version RM846_059R4L6_1030.6407.1308.0003 the aircraft remained.
2. Next is turned on and connected to NokiaSoftwareUpdaterForRetail_4.1.0 flashing this firmware.
Other models lumia with interop unlock:
http://forum.xda-developers.com/showpost.php?p=61082881&postcount=9
Unlock sim card:
[HKEY_LOCAL_MACHINE\Software\OEM\Cellular\CellManager\SIM]
"Lock"=dword:0
Click to expand...
Click to collapse
edit: delete my post. thx

[TOOL][OP7TP] TOOL ALL IN ONE (Drivers|Unlock|TWRP|Factory Image|Stock Recovery)

This is the OnePlus 7T Pro's TOOL ALL IN ONE Discussion Thread more info and download go to the Original Thread
TOOL ALL IN ONE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ADVANCED OPTIONS
FUNCTIONS
Install Drivers
Install Drivers
Unlock Bootloader
Lock Bootloader (use carefully)
Flash TWRP Recovery
Flash Stock Recovery
Flash Stock Factory Image
Automatic ROOT
Install APKs
Uninstall APKs
Take a Screenshot
Take a Screen Reocrd
Flash Partitions
Erase All Data (This function can decrypt the phone)
Reboot Phone
Update the Tool to latest version
Update Adb and Fastboot to latest version
Set Adb and Fastboot priviliges in system wide
Install Zip directly from PC (Required TWRP on phone)(These functions work perfectly on my pc but i have perfect adb drivers on my pc and perfect TWRP on my phone)
Flash Fastboot ROM
Delete downloaded files
ADB File Manager
DEVICE LIST
If you want you can send a request to add a new device here:
New Device Request Form
Device List
DOWNLOAD
Original Thread
DONATE LINK
If you want to support the project please consider making a donation, thanks.
​
Nice, thanks op ?
widevine L1 how to activate the certificate Do you know your way?
[email protected] said:
widevine L1 how to activate the certificate Do you know your way?
Click to expand...
Click to collapse
You must lock bootloader.
Hey all!
I briefly search around on the main thread for this tool and found someone had bricked their 7t pro using this software... Has anyone had better results? Don't want to brick my phone on the first go!
[14/02/2021] The tool was just updated to v.2.0.1.4. However, I have not tried it as of yet.
https://forum.xda-developers.com/t/...ck-twrp-factory-image-stock-recovery.3358711/
Only with this application I was able to run EDL and properly connect and start MSM Tool when my op7tp crashed. No other fastboot and adb methods worked.

Categories

Resources