Skip to content

Instantly share code, notes, and snippets.

Avatar
REPLACED THIS USER SUCCESSFULLY.

shanghai nyaa chan! koumaza

REPLACED THIS USER SUCCESSFULLY.
View GitHub Profile
@koumaza
koumaza / fix-repo-git-error.md
Last active Jul 4, 2020
Fix repo command outputs GitError
View fix-repo-git-error.md

Errors: (Not a git repository (or any of the parent directories): .git)
At project root

Example: aosp platform/external/brotli

rm -rf  .repo/project-objects/platform/external/brotli.git \
        .repo/projects/external/brotli.git \
        external/brotli/
View fix-arm-linux-depends.md

Xenial apt install gcc-arm\* gcc-5-arm-linux-gnueabi

@koumaza
koumaza / content.md
Last active Jul 8, 2020
Fix Ticwatch `Reboot in 1 second...` bug
View content.md
# Reboot to Bootloader
adb reboot bootloader

# Remove cache
:if; fastboot oem unlock
fastboot format cache

# Reboot to System
fastboot reboot
View pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
View ancientroottree-payton.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/motorola/payton" name="ancient-devices/device_motorola_payton" remote="github" revision="ten" />
<project path="device/motorola/sdm660-common" name="ancient-devices/device_motorola_sdm660-common" remote="github" revision="ten" />
<project path="kernel/motorola/msm8998" name="ancient-devices/kernel_motorola_msm8998" remote="github" revision="ten" />
<project path="vendor/motorola" name="ancient-devices/vendor_motorola_payton" remote="github" revision="ten" />
<project path="packages/apps/MotoCamera2" name="trpsl/packages_apps_MotoCamera2" remote="github" revision="ten" />
<project path="external/bson" name="LineageOS/android_external_bson" remote="github" revision="lineage-17.1" />
<project path="system/qcom" name="LineageOS/android_system_qcom" remote="github" revision="lineage-17.1" />
<project path="packages/resources/MotoActions" name="SuperiorOS/android_packages_resources_MotoActions" remote="github" revision="pie" />
View os-release_focal.txt
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Focal Fossa (development branch)"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
@koumaza
koumaza / startbuild-android.sh
Last active Jul 22, 2020
Android Build Startup Script (ABSS)
View startbuild-android.sh
#!/usr/bin/env bash
export origpwd=$PWD
export aftercd=$1
cat << 'EOF' > .bash-android.rc
sudo /koumazainit >/dev/null 2>/dev/null
export origpwd=$PWD
if [ -n "$aftercd" ]; then
cd $aftercd
fi
@koumaza
koumaza / fix-build_verity_metadata-needed-by-Error.md
Last active Jul 22, 2020
Fix `build_verity_metadata needed by` Error
View fix-build_verity_metadata-needed-by-Error.md

Fix this error

FAILED: ninja: 'out/host/linux-x86/bin/build_verity_metadata', needed by 'out/target/product/codename/obj/PACKAGING/target_files_intermediates/aosp_*-target_files-*.zip', missing and no known rule to make it

Run

m -j build_verity_metadata.py