git clone https://github.com/pexcn/ChinaDNS.git && pushd ChinaDNS
./autogen.sh
CFLAGS="-O3 -ffast-math" ./configure --enable-static
make
strip src/chinadns.exe
popd
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 python | |
""" | |
Patch a recovery image to enable RTC writing | |
Unfortunately it has not the intended effect (tested from recovery): | |
~ # /system/xbin/hwclock -w | |
hwclock: RTC_SET_TIME: Operation not permitted | |
<3>[ 25.821247] spmi_pmic_arb fc4cf000.qcom,spmi: pmic_arb_wait_for_done: transaction denied (0x5) | |
<3>[ 25.821338] qcom,qpnp-rtc qpnp-rtc-ee162000: SPMI write failed |
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 -xe | |
# Replace ******** with your token | |
export SIGN_IN_URL=http://m.client.10010.com/SigninApp/signin/querySigninActivity.htm?token=******** | |
export DAY_SIGN_URL=http://m.client.10010.com/SigninApp/signin/daySign.do | |
export SCRIPT_PATH=$(dirname $0) | |
echo "$(date +'%Y-%m-%d %T')" >> $SCRIPT_PATH/log.txt | |
curl $SIGN_IN_URL \ |
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 | |
rem Batch file that extracts java from installer | |
rem Original topic on stackoverflow: | |
rem http://stackoverflow.com/questions/1619662/how-can-i-get-the-latest-jre-jdk-as-a-zip-file-rather-than-exe-or-msi-installe | |
setlocal | |
if [%1]==[] goto usage | |
set fn=%~n1 | |
7z.exe e %1 .rsrc\1033\JAVA_CAB10\111 | |
if errorlevel 1 goto err |
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
#!/sbin/sh | |
# | |
# Copyright (C) 2018 Unlegacy Android Project | |
# Copyright (C) 2018 Svyatoslav Ryhel | |
# Copyright (C) 2019 Nick80835 | |
# Copyright (C) 2019 z3dd3r | |
# | |
# Made for Hammerhead | |
# |
# 64k
dd if=/dev/zero of=test bs=64k count=1638 && rm -f test
dd if=/dev/zero of=test bs=64k count=1638 conv=fdatasync && rm -f test
dd if=/dev/zero of=test bs=64k count=1638 conv=fsync && rm -f test
dd if=/dev/zero of=test bs=64k count=1638 oflag=dsync && rm -f test
# 1024k
dd if=/dev/zero of=test bs=1024k count=100 && rm -f test
https://www.google.com/android/uncertified
# disable root at first.
# backup
adb shell sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \"select * from main where name='android_id'\"
# update
adb shell sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \"update main set value='<my_certified_android_id>' where name='android_id'\"
# check
# 4MB
# art: 0x003F0000-0x00400000, 65536 bytes
dd if=full.bin of=art.bin bs=1 count=65536 skip=4128768
# 8MB
# art: 0x007F0000-0x00800000, 65536 bytes
dd if=full.bin of=art.bin bs=1 count=65536 skip=8323072
# 16MB
# unpack
bsdcpio -id < ../extra.lzma
# repack
find . | cpio -o --format='newc' --owner root:root | lzma > ../extra.lzma
OlderNewer