Note
This tutorial is also available on Reddit
-
Overview
-
Notes
RELEASE=release-R123-15786.B-chromeos-6.1 | |
LLVM_VERSION=18 | |
curl -L https://apt.llvm.org/llvm.sh | sudo bash -s "${LLVM_VERSION}" | |
for f in clang clang++ ld.lld llvm-objdump llvm-ar llvm-nm llvm-strip llvm-objcopy llvm-readelf; do | |
sudo ln -sf $f-$LLVM_VERSION /usr/bin/$f | |
done | |
git clone https://chromium.googlesource.com/chromiumos/third_party/kernel.git -b ${RELEASE} --depth=1 |
Note
This tutorial is also available on Reddit
Overview
Notes
fastboot
#!/usr/bin/env ruby | |
# CroshSU: "Fix" sudo in crosh by redirecting all sudo calls to VT-2 shell, inspired by root solutions on Android | |
# | |
# Usage: put this script into /usr/local/bin, run `crosh-su --daemon` in VT-2 and run | |
# some command with `crosh-su --client <command you want to run with root>` in crosh | |
# | |
require 'io/console' | |
require 'socket' | |
require 'pty' | |
require 'fileutils' |
set -e | |
mkdir -p kernel && cd kernel | |
git clone --depth=1 https://github.com/Xiaomi-SM8350-Development/kernel_xiaomi_sm8350 . | |
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash - | |
cat /mnt/c/Users/supec/Documents/*kernelsu*.diff | patch -p1 | |
cp /mnt/c/Users/supec/Downloads/config.txt .config | |
sed -i 's/-ReBorn-11TPro/-SupeChicken666/' .config |
#!/usr/bin/env ruby | |
MetaStruct = { | |
file_magic: :txt, # File magic, should be "RIFF" | |
payload_size: :int, # Size of the file (excluding the file magic) | |
riff_chunkType: :txt, # Should be "ACON" | |
riff_chunkID: :txt, # Should be "anih" | |
riff_chunkSize: :int, # Should be 36 |
I hereby claim:
To claim this, I am signing this object:
$LOAD_PATH << "#{Dir.pwd}/lib" | |
require 'package' | |
`grep -A1 '# Adapted from Arch Linux .* PKGBUILD at:' packages/*.rb`.split('--').map do |message| | |
message.strip.lines(chomp: true)[1].sub(/ # .*/, '').split('-# ', 2) | |
end.each do |pkgFile, archLink| | |
latest_ver = `curl -Ls '#{archLink.sub('blob', 'raw')}'`[/^pkgver=(.*)$/, 1] | |
current_ver = Package.load_package(pkgFile).version | |
puts "#{pkgFile}: current: #{current_ver}, latest: #{latest_ver}" |
diff -Nur a/sommelier.cc b/sommelier.cc | |
--- a/sommelier.cc 2023-02-17 20:55:44.591868511 +0800 | |
+++ b/sommelier.cc 2023-02-17 22:21:11.221142302 +0800 | |
@@ -88,6 +88,8 @@ | |
#define MIN_AURA_SHELL_VERSION 6 | |
#define MAX_AURA_SHELL_VERSION 38 | |
+char xdg_shell_interface[20] = "xdg_wm_base"; | |
+ | |
int sl_open_wayland_socket(const char* socket_name, |
require 'fileutils' | |
loop do | |
print 'Commit: ' | |
commit = $stdin.gets | |
system 'git', 'checkout', commit, chdir: 'platform2' | |
FileUtils.rm_rf %w[a b] | |
FileUtils.cp_r 'platform2/vm_tools/sommelier', 'a' |