Skip to content

Instantly share code, notes, and snippets.

View Geofferey's full-sized avatar
🤓
OnePlus 8T time

Geofferey Eakins Geofferey

🤓
OnePlus 8T time
  • NETLABWORK
  • USA
View GitHub Profile
@Geofferey
Geofferey / and-chroot-dns.sh
Created May 24, 2018 10:44
Android Chroot DNS Updater Script (Linux Deploy / Nethunter)
#!/system/xbin/bash
# Android Linux chroot DNS Updater Script
# Written by: Geofferey @ XDA / IG
# For updating /etc/resolv.conf in chroot
# Tested on Kali Nethunter / Linux Deploy
# Chroot placed in directory not file.img
# Works on Android Version Nougat 7.1.2
# Place in init.d of Nethunter or Android
#!/usr/bin/python
#A multi-function switch for the Raspberry Pi
#This script was originally inspired by [email protected]/member/AndrewH7
#Modified by: Geofferey@XDA/Instagram/Github
#Use this script at your own risk
import RPi.GPIO as GPIO
import os
import time
#!/system/xbin/bash
# Android Remote Unlock Script
# By: Geofferey @ IG & XDA 2018
# Just a simple script to input PIN
# via ADB, SSH, Telnet etc on Android
# Pace in /system/xbin/pin-unlock &
# give execute perms (e.g. chmod 500)
echo ""
#!/system/xbin/bash
#This script can pull GPS coordinates & sysinfo from android
#& Output to terminal. This script requires root access
#Place in /system/xbin or /data/local/tmp
echo "GPS_SHELL" >> /sys/power/wake_lock;
settings put secure location_providers_allowed +gps;
@Geofferey
Geofferey / bluez-udev-audio.sh
Created August 17, 2018 21:43
Directs audio in from Bluetooth device to all audio outputs on connect.
#!/bin/bash
#This script was written for raspberry-pi-audio-reciever
#Project and can be found in it's original form at:
#https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/blob/master/usr/local/bin/bluez-udev
#My version of this script directs audio input from a
#bluetooth device to all availabe audio outputs (aka sinks)
audio_sink=0
name=$(sed 's/\"//g' <<< $NAME)
#exit if not a BT address
@Geofferey
Geofferey / adb_pattern_input-sailfish.sh
Created October 25, 2018 08:23
inputs unlock pattern via adb, ssh or terminal on Google Pixel (sailfish)
#!/system/xbin/bash
#
# Google Pixel Pattern Input
# OG Author: Matt Wilson
# Modified for Pixel aka sailfish
# By: Geofferey Eakins
# License: Free to use, modify and share
#
# This script sends simulated touch input for
# remotely swiping pattern on a Google Pixel
#!/system/xbin/bash
## A simple set of iptables firewall rules to
# to block incoming connevtions on rooted
# Android devices.
## Place this script in /su.d or /etc/init.d
# to run at startup.
## Firat perform several checks to confirm
@Geofferey
Geofferey / start-service.sh
Created August 28, 2019 08:47
Start Android App Service at boot using init.d
#!/system/bin/sh
until [[ $(getprop sys.boot_completed) = 1 ]] && [[ $(getprop dev.bootcomplete) = 1 ]] && [[ $(getprop service.bootanim.exit) = 1 ]] && [[ $(getprop init.svc.bootanim) = stopped ]] && [[ -d /sdcard/Android ]]; do
sleep 3
log "[init.d] - Waiting for boot animation exit & data decryption to complete before continuing..."
done
@Geofferey
Geofferey / build-error.log
Created September 28, 2019 03:30
Build error when building prima module moto ocean
file included from ../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:64:
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:529:39: error: unknown type name 'eTDLSSupportMode'
eTDLSSupportMode tdls_mode)
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:537:1: error: unknown type name 'tdlsConnInfo_t'
tdlsConnInfo_t *wlan_hdd_get_conn_info(hdd_context_t *pHddCtx,
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4697:22: error: no member named 'MFPCapable' in 'struct tagCsrRoamProfile'
roam_profile->MFPCapable = roam_profile->MFPEnabled;
~~~~~~~~~~~~ ^
@Geofferey
Geofferey / lineage-system.rc
Last active October 10, 2019 03:43
lineage/vendor/lineage/prebuilt/common/etc/init/lineage-system.rc (run in magisk context)
# LineageOS core functionality
on init
export ANDROID_CACHE /cache
export TERMINFO /system/etc/terminfo
on post-fs-data
mkdir /cache/recovery 0770 system cache
# Run sysinit
start sysinit