Skip to content

Instantly share code, notes, and snippets.

View Surge1223's full-sized avatar

Surge Raval Surge1223

  • Cape Coral, Florida
View GitHub Profile
@Surge1223
Surge1223 / blkpath.c
Last active May 31, 2018 03:50
./blkpath boot boot.img returns block path to boot
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <errno.h>
@Surge1223
Surge1223 / local_manifest.xml
Created January 20, 2018 15:00
local_manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="https://github.com" />
<remote name="gitlab"
fetch="https://gitlab.com/Surge1223/" />
<remote name="pure"
fetch="https://github.com/PureNexusProject/" />
<remote name="cb"
#!/bin/bash
rm -r sdkfull
mkdir sdkfull
dex2jar=$(which dex2jar)
cd sdkfull
# services.jar
cp ../out/target/common/obj/JAVA_LIBRARIES/services_intermediates/classes.jar .
#!/sbin/sh
PATH=/sbin:/system/bin:/system/xbin
export subs1=/sdcard/substratum
export subs2=/sdcard/.substratum
export datatheme=/data/system/theme
OUTFD=$2
ZIP=$3
ui_print() {
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 3.10.73 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_NO_IOPORT_MAP=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18