Questions? Suggestions? message me
Tue 2021-12-14
-
Start system using kvm
qemu-system-x86_64 -m 2048 -boot d -enable-kvm -smp 3 -net nic -net user -cdrom Bliss-v11.13--OFFICIAL-20201113-1525_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.0-llvm90_dgc-t3_g.iso
you might need to enable virtualization first
- sudo apt install qemu-system-x86
- sudo apt install qemu-system-gui
- sudo apt install cpu-checker
- cpu-ok
- sudo modprobe kvm
- sudo modprobe kvm_intel
- maybe you need to enable virtualization in the BIOS or UEFI
Sun 2021-12-12
-
Rename package name of an APK (Android application) (not yet double-checked)
rename from mobi.omegacentaur.SendReduced to my.renamed.app
- java -jar apktool_2.6.0.jar d mobi.omegacentaur.SendReduced.apk
- rename in AndroidManifest.xml (all?) occurences of mobi.omegacentaur.SendReduced to my.renamed.app
- rename folder structure inside smali from mobi/omegacentaur/SendReduced to my/renamed/app
- rename inside folder in all .smali files all occurences of Lmobi/omegacentaur/SendReduced to Lmy/new/app
- thanks to iBotPeaches@Github
find . -name '*.smali' -exec sed -i 's/Lmobi\/omegacentauri\/SendReduced/Lmy\/renamed\/app/g' {} \;
- thanks to baeldung for showing how to rename contents across different files and programmerah.com for explaining how to use parentheses or backslashes while using find.
java -jar apktool_2.6.0.jar b mobi.omegacentauri.SendReduced_2600 -o my.renamed.app.akp
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore a.apk alias_name -storepass android
Modify an APK (Android application)
- Download Apktool from Bitbucket
- Put apk file and apktool into the same directory
- generate a signing key (if you do not have one)
- keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
- decompile the app
- java -jar apktool_2.6.0.jar d mobi.omegacentauri.SendReduced-2600.apk
- make your modifications in the newly created folder mobi.omegacentauri.SendReduced-2600
- compile the app
- java -jar apktool_2.6.0.jar b mobi.omegacentauri.SendReduced-2600 -o a.apk
- sign the app
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore a.apk alias_name -storepass android
Fri 2021-12-10
-
Resize a logical volume when using LVM
- sudo vgdisplay
- sudo lvdisplay
- df -h
- sudo lvextend -L+10G /dev/debian-vg/root
- sudo resize2fs /dev/debian-vg/root
- df -h
- sudo vgdisplay
- sudo lvdisplay
thanks to Bobbin Zachariah