Skip to content

Instantly share code, notes, and snippets.

View merothh's full-sized avatar

merothh merothh

  • India
View GitHub Profile
@merothh
merothh / repack-kernel.txt
Created December 6, 2018 15:09
repack android boot image
./mkbootimg --kernel ./boot.img-zImage --ramdisk ./boot.img-ramdisk.gz --cmdline "$(cat ./boot.img-cmdline)" --base "$(cat ./boot.img-base)" --pagesize "$(cat ./boot.img-pagesize)" --ramdisk_offset "$(cat ./boot.img-ramdiskoff)" --second_offset "$(cat ./boot.img-secondoff)" --tags_offset "$(cat ./boot.img-tagsoff)" --kernel_offset "$(cat ./boot.img-kerneloff)" --os_version "$(cat ./boot.img-osversion)" --os_patch_level "$(cat ./boot.img-oslevel)" --header_version "$(cat ./boot.img-headerversion)" --hash "$(cat ./boot.img-hash)" --output ./boot-new.img
@merothh
merothh / pancakes.sh
Last active July 24, 2020 10:14
pancakes | listing of commands i use to install arch on my laptop. (reference purposes)
pvcreate /dev/sdb2
pvcreate /dev/sda1
vgcreate arch-ssd /dev/sdb2
vgcreate arch-hdd /dev/sda1
lvcreate -L 16G arch-ssd -n arch-swap
lvcreate -l 100%FREE arch-ssd -n arch-root
lvcreate -l 100%FREE arch-hdd -n arch-home
mkswap /dev/arch-ssd/arch-swap
swapon /dev/arch-ssd/arch-swap
Include
# Pico+
# CalSync # Install Google Calendar Sync (if Google Calendar is being installed)
DialerFramework # Install Dialer Framework (Android 6.0+)
# GoogleTTS # Install Google Text-to-Speech Engine (Micro+ on 5.0-, Pico+ on 6.0+)
# PackageInstallerGoogle # Install Package Installer (Android 6.0 only & Android 8.0+)
# Nano+
# BatteryUsage # Install Device Health Services (Android 7.1+)
KDE=(dolphin okular spectacle kget kdeconnect ktorrent konversation konsole partitionmanager ark filelight kate yakuake packagekit-qt5 ffmpegthumbs)
TOOLS=(android-tools android-udev git htop neovim neofetch zip unzip wget)
APPS=(firefox meld telegram-desktop vlc)
AUR=(android-studio spotify)
@merothh
merothh / poweroffalarm.diff
Created July 12, 2022 13:40
daisy-A10 vs FP3-A11 PowerOffAlarm AndroidManifest diff
❯ git diff --no-index daisy/daisy-user-10-QKQ1.191002.002-V11.0.18.0.QDLMIXM-release-keys/PowerOffAlarm/AndroidManifest.xml FP3/FP3-REL-8901.4.A.0010-gms-f74c58a8-user-fastbootimage/PowerOffAlarm/AndroidManifest.xml
diff --git a/daisy/daisy-user-10-QKQ1.191002.002-V11.0.18.0.QDLMIXM-release-keys/PowerOffAlarm/AndroidManifest.xml b/FP3/FP3-REL-8901.4.A.0010-gms-f74c58a8-user-fastbootimage/PowerOffAlarm/AndroidManifest.xml
index 379db2b..84da7c6 100644
--- a/daisy/daisy-user-10-QKQ1.191002.002-V11.0.18.0.QDLMIXM-release-keys/PowerOffAlarm/AndroidManifest.xml
+++ b/FP3/FP3-REL-8901.4.A.0010-gms-f74c58a8-user-fastbootimage/PowerOffAlarm/AndroidManifest.xml
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="29" android:compileSdkVersionCodename="10" android:sharedUserId="android.uid.system" coreApp="true" package="com.qualcomm.qti.poweroffalarm" platformBuildVersionCode="29" platformBuildVersionNa
lvreduce --resizefs -L -20G pop-nvme/pop-home
lvextend -l +100%FREE /dev/pop-nvme/pop-root (--resizefs possibly here itself)
resize2fs /dev/pop-nvme/pop-root