# unpack
bsdcpio -id < ../extra.lzma
# repack
find . | cpio -o --format='newc' --owner root:root | lzma > ../extra.lzma
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
| #!/bin/sh -e | |
| # | |
| # Hurricane Electric DDNS script for OpenWrt | |
| # | |
| # crontab: */5 * * * * INTERFACE=pppoe-wan USE_PEERDNS=1 DOMAIN=example.com KEY=password /usr/bin/he-ddns.sh | |
| # | |
| set -o pipefail | |
| INTERFACE="${INTERFACE:-pppoe-wan}" | |
| DOMAIN="${DOMAIN:-example.com}" |
# 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
# 16MBhttps://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# 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
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
| #!/sbin/sh | |
| # | |
| # Copyright (C) 2018 Unlegacy Android Project | |
| # Copyright (C) 2018 Svyatoslav Ryhel | |
| # Copyright (C) 2019 Nick80835 | |
| # Copyright (C) 2019 z3dd3r | |
| # | |
| # Made for Hammerhead | |
| # |
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 | |
| 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 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
| #!/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 \ |