Skip to content

Instantly share code, notes, and snippets.

View munnadroid's full-sized avatar

Raju Gotame munnadroid

View GitHub Profile
@munnadroid
munnadroid / read-package-apk.sh
Created January 3, 2024 05:39
Read package name from apk file
package=$(aapt dump badging "$*" | awk '/package/{gsub("name=|'"'"'",""); print $2}')
activity=$(aapt dump badging "$*" | awk '/activity/{gsub("name=|'"'"'",""); print $2}')
echo
echo " file : $1"
echo "package : $package"
echo "activity: $activity"
@munnadroid
munnadroid / git-mirror-repo.sh
Last active December 29, 2023 04:01
Bash script to mirror from one git repo to another git repo
#!/bin/bash
# Function to handle non-critical errors
handle_minor_error() {
echo "Non-critical error on line $1"
}
# Trap errors
trap 'handle_minor_error $LINENO' ERR