Skip to content

Instantly share code, notes, and snippets.

View erfanoabdi's full-sized avatar
🖥️
Developing something

Erfan Abdi erfanoabdi

🖥️
Developing something
View GitHub Profile
#/bin/sh
proptxt="$1"
find="$2"
while read -r line
do
[[ $line = \#* ]] && continue
[ -z "$line" ] && continue
if [[ $line = '-'* ]]
?lib64/android.hardware.wifi@1.0.so
?lib/android.hardware.nfc@1.0.so
?lib64/android.hardware.nfc@1.0.so
?lib64/libtinyalsa.so
?lib/libtinyalsa.so
?lib64/android.hardware.radio@1.0.so
?lib/android.hardware.radio@1.0.so
?lib64/libcap.so
?lib/libcap.so
?lib64/android.hardware.biometrics.fingerprint@2.1.so
@erfanoabdi
erfanoabdi / sparse_convertor.sh
Created August 6, 2017 04:34
sparseChunks to image Convertor for motorola images
#!/bin/sh
#SparseChunks to image Convertor for motorola images by Erfan Abdi
#special thanks to superR for header removal script
#make sure you have only one image with sparse chunks (system or oem)
echo "Converting all SparseChunks to Raw Image"
./simg2img *chunk* system.img.raw
echo "Removing Moto Header"
offset=$(LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw | head -1 | gawk '{print $1 - 1080}')
dd if=system.img.raw of=system_moto.img ibs=$offset skip=1 2>&1
@erfanoabdi
erfanoabdi / griffin.json
Last active March 21, 2017 15:34
Moto Z MultiRom Json
{
"status": "ok",
"date": "2016-12-30",
"commands": "",
"gpg": false,
"devices": [{
"files": [{
"url": "https://qc3.androidfilehost.com/dl/xnpoeOTGwtloxLmGLzWdCg/1490340719/529152257862712557/multirom-20170321-v33b-UNOFFICIAL-griffin.zip",
"version": "33b",
"type": "multirom",
#!/bin/bash
# this script is not written by me. Just using it and sharing it here.
# export DBUS_SESSION_BUS_ADDRESS environment variable useful when the script is set as a cron job
#PID=$(pgrep gnome-session)
#export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
# $bing is needed to form the fully qualified URL for