Skip to content

Instantly share code, notes, and snippets.

Avatar
📚
Studding

Erfan Abdi erfanoabdi

📚
Studding
View GitHub Profile
View proprietary-files.txt
?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 Aug 6, 2017
sparseChunks to image Convertor for motorola images
View sparse_convertor.sh
#!/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 Mar 21, 2017
Moto Z MultiRom Json
View griffin.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",
View bingwallpaper_mac.sh
#!/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