This file contains hidden or 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
function Make-HRESULT-From-Win32 { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[long] $ErrorCode | |
) | |
if ($ErrorCode -le 0) { | |
return $ErrorCode | |
} else { |
This file contains hidden or 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 | |
pushd %~dp0 | |
set DEPLOY=1 | |
set ADB=platform-tools\adb.exe | |
set DEVICE_NAME=988e9048305953523230 | |
set JAVA=jre\bin\java.exe | |
set CLI_JAR=revanced-cli-all.jar |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
package adudecalledleo.filewatch; | |
import java.nio.file.Path; | |
@FunctionalInterface | |
public interface FileListener { | |
void onChange(Path path); | |
} |
This file contains hidden or 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
// Uses CorellanStoma#1996's Canary update mappings | |
// https://docs.google.com/spreadsheets/d/1rLm7KJInDfLVbdnnjxfOaFjwdr51vr7hZdGc61-iyy0/edit (download as CSV) | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.LinkOption; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; |
This file contains hidden or 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 EnableDelayedExpansion | |
:: these extra dependencies aren't picked up by jdeps | |
:: jdk.zipfs is required, presumably to access resources embedded in the JAR? | |
:: jdk.crypto.ec is required for internet communication with SSL | |
set EXTRA_DEPS=jdk.zipfs,jdk.crypto.ec | |
set JDK_PATH=%~1 | |
set OUT_PATH=%~2 |