ChinaDNS 的上游 DNS 分为 国内 DNS
和 可信 DNS
。
- ChinaDNS 会同时向上游的 DNS 发送请求。
- 如果
可信 DNS
先返回,则直接采用可信 DNS
的结果。 - 如果
国内 DNS
先返回,分两种情况:如果返回的结果是国内的 IP, 则采用;否则丢弃并转而采用可信 DNS
的结果。
@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 |
#!/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 \ |
#!/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 |