Google pixel 电信破解

简介

仅适用于一代,无需双清,无需QPST,摆脱繁琐的刷机

在Android pie下测试通过,重启后不丢失

解锁 Bootloader

开发者模式中开启 OEM 解锁后,重启手机进入 bootloader 模式,在电脑端运行 fastboot oem unlock

注:此过程会清除手机数据,请及时备份。

下载modem.img

下载地址

刷入modem

fastboot flash modem_a modem.img
fastboot flash modem_b modem.img

理论上不支持移动和联通,如更换请重刷官方底包

注意(如果有路由器级别翻墙可以忽略)

你需要2018年3月或之前的系统。原因是这样的:
有一个叫frp的分区,它的全称是——Factory Reset Protection。
开机设置读取frp,得知是否首次开机。清除frp,伪装成首次开机。
不幸的是,4月的官方镜像里的开机设置没有这种操作。开机设置才不管frp呢,必须联网。
所以在恢复出厂设置前一定要看看你的安全补丁日期是哪个月的!!如果是4月的需要先刷回3月。

参考

https://tieba.baidu.com/p/5666986960

开启 SHADOWSOCKS IPV6 支持

以下是对IPv6环境下vps的配置

在配置文件中添加

同时 listen(监听)IPv4 和 IPv6

"server":["[::0]", "0.0.0.0"]

IPv6优先

"ipv6_first":true

转发tcp与udp

"mode": "tcp_and_udp"

IPv6 DDNS 使用

前言

家里有了IPv6,苦于路由器无法DDNS,在网上发现了这个,记录一下使用方法。

作者链接

GitHub
自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,DNSCOM…) https://ddns.newfuture.cc/

使用方法

作者Wiki

DDNS
自动更新DNS解析 到本机IP地址,支持 ipv4和ipv6 以 本地(内网)IP 和 公网IP。 代理模式,支持自动创建域名记录。

我的配置

复制 example.config.json到config.json

申请 api token:

修改配置,ipv4和ipv6字段,无则设为[]

示例

{
  "$schema": "https://ddns.newfuture.cc/schema.json", 
  "debug": false, 
  "dns": "dns服务商,阿里为alidns,DNS.COM为dnscom,DNSPOD国际版为(dnspod_com),cloudflare", 
  "id": "12345", 
  "index4": "default", 
  "index6": "default", 
  "ipv4": [
"你的IPv4域名"
  ], 
  "ipv6": [
"你的IPv6域名"
  ], 
  "proxy": null, 
  "token": "example"
}

使用

python run.py -c /path/to/config.json 

创建定时配置

在crontab中添加

5 * * * * python run.py -c /path/to/config.json 

解决IPv6下的sni阻断

背景

最近开通了IPv6,部署在梅林上的ss不能接管IPv6通信,导致了Google等网站被sni阻断

解决方法

方案1

在host中或dnsmasq中添加

:: google.com

server=/google.com/#
address=/google.com/::

方案2

路由器丢弃指定域名 AAAA 记录
例如

iptables -t raw -A PREROUTING  -p udp --dport 53 -m string --hex-string "|03|www|07|netflix|03|com|00001c|" --algo bm -j LOG --log-prefix "drop netflix dns query "
iptables -t raw -A PREROUTING -p udp --dport 53 -m string --hex-string "|03|www|07|netflix|03|com|00001c|" --algo bm -j DROP
ip6tables -t raw -A PREROUTING  -p udp --dport 53 -m string --hex-string "|03|www|07|netflix|03|com|00001c|" --algo bm -j LOG --log-prefix "drop netflix dns query "
ip6tables -t raw -A PREROUTING -p udp --dport 53 -m string --hex-string "|03|www|07|netflix|03|com|00001c|" --algo bm -j DROP

效果

Server:127.0.0.1
Address 1: 127.0.0.1 localhost.localdomain

Name:  google.com
Address 1: ::
Address 2: 216.58.217.206 lax17s05-in-f14.1e100.net

成功解决

树莓派编译安装硬件加速VLC

源地址 https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59814

仅支持树莓派2&3

准备步骤

如果以前安装过VLC,请将其卸载。

正式开始

下载并解压

wget http://download.videolan.org/vlc/2.2.5.1/vlc-2.2.5.1.tar.xz 

tar -xJf vlc-2.2.5.1.tar.xz

wget http://download.videolan.org/vlc/2.2.5.1/vlc-2.2.5.1.tar.xz

tar -xJf vlc-2.2.5.1.tar.xz

安装依赖

sudo apt-get update sudo apt-get install autopoint gettext liba52-0.7.4-dev libaa1-dev libasound2-dev libass-dev libavahi-client-dev libavc1394-dev libavcodec-dev libavformat-dev libbluray-dev libcaca-dev libcddb2-dev libcdio-dev libchromaprint-dev libdbus-1-dev libdc1394-22-dev libdca-dev libdirectfb-dev libdvbpsi-dev libdvdnav-dev libdvdread-dev libegl1-mesa-dev libfaad-dev libflac-dev libfluidsynth-dev libfreerdp-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libgles1-mesa-dev libgles2-mesa-dev libgnutls28-dev libgtk2.0-dev libidn11-dev libiso9660-dev libjack-jackd2-dev libkate-dev liblircclient-dev liblivemedia-dev liblua5.2-dev libmad0-dev libmatroska-dev libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmtp-dev libncursesw5-dev libnotify-dev libogg-dev libomxil-bellagio-dev libopus-dev libpng12-dev libpulse-dev libqt4-dev libraw1394-dev libresid-builder-dev librsvg2-dev libsamplerate0-dev libschroedinger-dev libsdl-image1.2-dev libsdl1.2-dev libshine-dev libshout3-dev libsidplay2-dev libsmbclient-dev libspeex-dev libspeexdsp-dev libssh2-1-dev libswscale-dev libtag1-dev libtheora-dev libtwolame-dev libudev-dev libupnp-dev libv4l-dev libva-dev libvcdinfo-dev libvdpau-dev libvncserver-dev libvorbis-dev libx11-dev libx264-dev libxcb-composite0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xv0-dev libxcb1-dev libxext-dev libxinerama-dev libxml2-dev libxpm-dev libzvbi-dev lua5.2 oss4-dev pkg-config zlib1g-dev libtool build-essential autoconf


sudo apt-get update

开始编译

cd vlc-2.2.5.1 
./bootstrap CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -I/opt/vc/include/GLES2 -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -I/opt/vc/include/GLES2 -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --enable-gles2 
make -j3

cd vlc-2.2.5.1

./bootstrap

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -I/opt/vc/include/GLES2 -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -I/opt/vc/include/GLES2 -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --enable-gles2

make -j3

最后安装

sudo make install

重要

安装完成后在设置中启用ALSA and bcm2835和OpenMAX IL video output,否则无法使用硬件加速