This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPO_PATH="" | |
REMOTE_URL="" | |
SOURCE_BRANCH="" | |
TARGET_BRANCH="" | |
TEMP_BRANCH="temp" | |
CHUNK_SIZE=8000 # Number of commits per chunk | |
GREEN='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int fastboot_oem_unlock(char *arg, void *data, uint sz) | |
{ | |
bool bVar1; | |
int ret; | |
char *error; | |
char *str; | |
uint unlock_allowed; | |
char acStack_90[127]; | |
undefined local_11; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PL0] Build Time: 20140925-030705 | |
[SD0] Bus Width: 1 | |
[SD0] SET_CLK(260kHz): SCLK(259kHz) MODE(0) DDR(0) DIV(193) DS(0) RS(0) | |
[SD0] Switch to High-Speed mode! | |
[SD0] SET_CLK(260kHz): SCLK(259kHz) MODE(2) DDR(1) DIV(96) DS(0) RS(0) | |
[SD0] Bus Width: 8 | |
[SD0] Size: 7456 MB, Max.Speed: 52000 kHz, blklen(512), nblks(15269888), ro(0) | |
[SD0] Initialized | |
[SD0] SET_CLK(52000kHz): SCLK(50000kHz) MODE(2) DDR(1) DIV(0) DS(0) RS(0) | |
msdc_ett_offline_to_pl: size<2> m_id<0x45> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/src/controller.cc b/device/src/controller.cc | |
index ce19f5c..2d9815a 100644 | |
--- a/device/src/controller.cc | |
+++ b/device/src/controller.cc | |
@@ -196,8 +196,10 @@ static future_t* start_up(void) { | |
} | |
#endif | |
- ble_supported = last_features_classic_page_index >= 1 && | |
- HCI_LE_HOST_SUPPORTED(features_classic[1].as_array); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Original sequences to search for. | |
ORIGINAL_SEQUENCES=('0a2450292801080a087d0a1b28010035' '48010035822240b980420491e10313aa') | |
# Patch sequences to replace the original sequences with. | |
PATCH_SEQUENCES=('0a2450292801080a087d0a1b1f2003d5' '1f2003d5822240b980420491e10313aa') | |
function log() { | |
local colors=( "\e[34m" "\033[1;33m" "\033[1;31m" "\033[1;32m" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Invoke-WebRequest https://gist.githubusercontent.com/R0rt1z2/f91883518b5d63eedc8412eebb433ce7/raw/947dedc0455b778b7fd7e8a8c5d2266d86ed5ff0/GetGhidra.ps1 | Invoke-Expression | |
# | |
$ProgressPreference = 'SilentlyContinue' | |
$installPath = "C:\Program Files" | |
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Write-Host "[-] This script must be run as Administrator." -ForegroundColor Red | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To install (and download at the same time) the tool in your system, run the following command: | |
# Invoke-WebRequest https://gist.githubusercontent.com/R0rt1z2/63c556fefdacf3bc077047e7b0b3a7fa/raw/install.ps1 | Invoke-Expression | |
# Note that you might have to disable Windows Defender to run this script. | |
# The URL where the file is going to be downloaded from | |
$URL = "https://gist.github.com/R0rt1z2/63c556fefdacf3bc077047e7b0b3a7fa/raw/parse_log.py" | |
# Check if Python is installed on the system | |
if (Get-Command python -ErrorAction SilentlyContinue) { | |
# If Python is installed, print a message and the version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
chcp 65001 2>nul >nul | |
cd "C:\Program Files\Python*\Scripts\oplus-unlock\oplus_unlock" 2>nul >nul | |
if exist main.py ( | |
python main.py %* | |
) else ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
chcp 65001 2>nul >nul | |
cd "C:\Program Files\Python*\Scripts\realme-ota\realme_ota" 2>nul >nul | |
if exist main.py ( | |
python main.py %* | |
) else ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# PowerShell displays error messages regardless of whether you redirect it whatever you're executing to null. | |
# To prevent this from happening, disable all the output(s) by using PowerShell's default variables. | |
# | |
$ProgressPreference = 'SilentlyContinue' | |
$ErrorActionPreference = 'SilentlyContinue' | |
# | |
# There is no built-in function to update the (global) Windows env %PATH%. Instead, use this function to update | |
# the registry directly (https://stackoverflow.com/a/69239861). |
NewerOlder