sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison build-essential linux-headers-$(uname -r) libncurses5-dev bc bison flex rsync libelf-dev libssl-dev debhelper-compat libncurses-dev dwarves wget libdw-dev
cd ~/sources
tar -xf linux-6.17.8.tar.xz
cd linux-6.17.8/
cp -v /boot/config-$(uname -r) .config
make menucofig # don't modify any config, just save
make -j16 bindeb-pkg LOCALVERSION=-cfm880
cd ../
cfm880@cfm880:~/sources$ ls -al linux*
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 | |
| if [ "$1" = "--autostart" ] ; then | |
| mkdir -p ~/.config/autostart | |
| AUTOSTART="" | |
| AUTOSTART+="[Desktop Entry]\r\n" | |
| AUTOSTART+="Type=Application\r\n" | |
| AUTOSTART+="Name=Touchpad Emulator Autostart\r\n" | |
| AUTOSTART+="Exec=sh -c \"LaunchTouchpadEmulator.sh --start-disabled --force-autorotation\"\r\n" |
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
| fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *nabu" || echo Missmatching image and device | |
| fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *nabu" || exit /B 1 | |
| fastboot %* flash partition:0 %~dp0images\gpt_both0.bin || @echo "flash partition:0 error" && exit /B 1 | |
| fastboot %* flash partition:1 %~dp0images\gpt_both1.bin || @echo "flash partition:1 error" && exit /B 1 | |
| fastboot %* flash partition:2 %~dp0images\gpt_both2.bin || @echo "flash partition:2 error" && exit /B 1 | |
| fastboot %* flash partition:3 %~dp0images\gpt_both3.bin || @echo "flash partition:3 error" && exit /B 1 | |
| fastboot %* flash partition:4 %~dp0images\gpt_both4.bin || @echo "flash partition:4 error" && exit /B 1 | |
| fastboot %* flash partition:5 %~dp0images\gpt_both5.bin || @echo "flash partition:5 error" && exit /B 1 |
PC 上操作
- open charles
- Help-->SSL Proxying-->Install Charles Root Certificates
- trust this Certificates
- Help-->SSL Proxying-->Save Charles Root Certificates
- Proxying--> SSL Proxying Settings-->SSL Proxying-->add Host:* Part 443
- 取消代理pc
adb push path/to/charles-ssl-proxying-certificate.pem /scard/Download
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
| import os | |
| import shutil | |
| from bs4 import BeautifulSoup | |
| import re | |
| def copy_files_without_extension(): | |
| # 创建目标目录 | |
| os.makedirs('html_resources', exist_ok=True) | |
| os.makedirs('other_resources', exist_ok=True) |
https://source.android.com/docs/core/ota/sign_builds?hl=zh-cn
生成签名
subject='/C=CN/ST=Beijing/L=Chaoyang/O=CFM880/OU=CFM880/CN=CFM880/[email protected]'
mkdir ~/.android-certs
for x in releasekey platform shared media networkstack; do \
./development/tools/make_key ~/.android-certs/$x "$subject"; \
donesudo apt remove --purge *nvidia*
sudo apt autoremove
sudo apt install pkg-config libglvnd-dev dkms build-essential libegl-dev libegl1 libgl-dev libgl1 libgles-dev libgles1 libglvnd-core-dev libglx-dev libopengl-dev gcc make
sudo apt install dkms
sudo apt remove libnvidia-egl-wayland1
sudo vim /etc/modprobe.d/nvidia-install-disable-nouveau.confnvidia-install-disable-nouveau.conf
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
| FROM ubuntu:jammy | |
| RUN apt update && apt install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
| ENV LANG=en_US.utf8 | |
| RUN apt upgrade -y | |
| RUN apt install -y bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \ | |
| git gperf automake libtool build-essential gperf genromfs \ | |
| libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \ | |
| libexpat1-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux \ | |
| dfu-util libx11-dev libxext-dev net-tools pkgconf unionfs-fuse zlib1g-dev \ | |
| libusb-1.0-0-dev libv4l-dev libuv1-dev npm nodejs nasm yasm libdivsufsort-dev \ |
- 提示缺少 libncurses.so.5,找到对于的库,建立软链接
find / -name libncurses.so
/usr/lib/x86_64-linux-gnu/libncurses.so
cd /usr/lib/x86_64-linux-gnu/
ls -al libncurses*
sudo ln -s libncurses.so.6.4 libncurses.so.5
sudo ln -s libncurses.so.6.4 libtinfo.so.5
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
| FROM ubuntu:latest | |
| RUN apt update && apt install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
| ENV LANG=en_US.utf8 | |
| RUN apt upgrade -y | |
| RUN apt install -y \ | |
| libfontconfig1-dev \ | |
| libfreetype-dev \ | |
| libx11-dev \ | |
| libx11-xcb-dev \ | |
| libxcb-cursor-dev \ |
NewerOlder