Skip to content

Instantly share code, notes, and snippets.

View trevd's full-sized avatar

trevd trevd

  • My Own
  • Inside Android
View GitHub Profile
@trevd
trevd / frp.sh
Created January 9, 2022 09:56
frp shell
#!/system/bin/sh
echo -n "user_setup_complete "
settings get secure user_setup_complete
su -c "settings put secure user_setup_complete 1"
echo -n "user_setup_complete "
settings get secure user_setup_complete
echo -n "device_provsioned "
settings get global device_provsioned
su -c "settings put global device_provsioned 1"
echo -n "device_provsioned "
@trevd
trevd / akai_apc_mini_leds_webmidi.js
Created January 2, 2021 23:38 — forked from xangadix/akai_apc_mini_leds_webmidi.js
Controlling Leds on an AKAI APC mini through WebMidi
// Check this image, with all the buttons etc.
// https://d2r1vs3d9006ap.cloudfront.net/s3_images/1143703/apc_mini_midi.jpg
// these are the available colors
var OFF = 0;
var GREEN = 1;
var GREEN_BLINK = 2;
var RED = 3;
var RED_BLINK = 4;
var YELLOW = 5;
@trevd
trevd / gist:dec28c28188678f698e8d3c4e183a91c
Created July 13, 2018 03:42
find / -iname "*mtp*" 2>/dev/null
130|hero2lte:/ # find / -iname "*mtp*" 2>/dev/null
/system/bin/mtpd
/system/etc/init/mtpd.rc
/system/lib/libmtp.so
/system/lib/libmtp_samsung.so
/system/lib/libmtp_samsung_jni.so
/system/lib64/libmtp.so
/system/lib64/libmtp_samsung.so
/system/lib64/libmtp_samsung_jni.so
/system/priv-app/MtpApplication
@trevd
trevd / keyevent
Created June 26, 2018 11:22
Bash Functions
function keyevent ()
{
KEYSRC=/build/master/frameworks/base/core/java/android/view/KeyEvent.java
echo "count $# "
if [[ $# -eq 0 ]]; then
echo "No keycode specified - Printing List"
grep "int KEYCODE.*" $KEYSRC | cut -d' ' -f9 | sort
return 1;
fi
f0VMRgEBAQAAAAAAAAAAAAIAKAABAAAAYIIAADQAAAAQ/AEAAAIABTQAIAAEACgAGgAZAAEAAAAA
AAAAAIAAAACAAACMcAEAjHABAAUAAAAAEAAAAQAAAIxwAQCMAAIAjAACAFgDAADwJwAABgAAAAAQ
AABR5XRkAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAEAAHDsZgEA7OYBAOzmAQCgCQAAoAkA
AAQAAAAEAAAAAAAAAAAAAAAAAAAABEYItQAgDPDT+SBGC/AY6TxILenwS4SwO0wCr3hEAPBD/zpL
fEQ6SAAlVPgDgHhEQUYA8CH/N0lCRjgdeUQA8En8eGgA8MT7KUZARgDwlPsxSjJLVPgCsMv4AADm
WDFGAPCg6S5I1ukMI3hEAPAE/zZrkCHzHTJGI/AHA63rAw0N8QgJSEYA8Cv7JktIRiZK41ihWBpo
ATIA8Mr62/gAMDFGASIBlShGAJMCIwDwQvseS+NYGGAeSHhEAPD1/h1IQ0YdSilGIFiiWAnwIuwb
SEtGG0opRiBYolgJ8BrsGUgpRhlKK0YmWKJYMEYJ8BDsMGgpRgnwcu0oRgfxCAe9Rr3o8IsoWwEA
8IIBAGT///86WwEASFsBAHD///90////KlsBAFz///9g////bP////BaAQB4////fP///4D///+E
////iP///4z///8PSAAhOLV4RADwEPtDHARGCtAMSQQieUQL8NboBUYgRgvw7ugELQnQB0sAIgog
@trevd
trevd / vtuner.patch
Created April 1, 2017 09:27
vtuner 4.9 kernel driver patch
diff -ruN a/drivers/media/Kconfig b/drivers/media/Kconfig
--- a/drivers/media/Kconfig 2017-04-01 10:08:13.676731878 +0100
+++ b/drivers/media/Kconfig 2017-04-01 07:44:10.155085393 +0100
@@ -219,5 +219,6 @@
source "drivers/media/spi/Kconfig"
source "drivers/media/tuners/Kconfig"
source "drivers/media/dvb-frontends/Kconfig"
+source "drivers/media/vtuner/Kconfig"
endif # MEDIA_SUPPORT
@trevd
trevd / Exploit
Created December 24, 2016 21:25
https://cert.cx/appleios10/expl.html
@trevd
trevd / manifest.xml
Last active August 29, 2015 14:08
Lollipop , Lollipop, oh, Lolli , Lolli, Lolli
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch=".."
review="https://android-review.googlesource.com/" />
<default revision="lollipop-release"
remote="aosp"
sync-j="4" />
@trevd
trevd / kernel-download
Created October 19, 2014 15:12
Ubuntu Kernel Update
#!/bin/sh
mkdir ~/kernel_update && cd ~/kernel_update
REMOTE_URL_BASE="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.1-utopic"
wget $REMOTE_URL_BASE/linux-headers-3.17.1-031701-generic_3.17.1-031701.201410150735_amd64.deb
wget $REMOTE_URL_BASE/linux-headers-3.17.1-031701_3.17.1-031701.201410150735_all.deb
wget $REMOTE_URL_BASE/linux-image-3.17.1-031701-generic_3.17.1-031701.201410150735_amd64.deb
@trevd
trevd / catlog
Created October 14, 2014 06:58
Go On. Feast Your Eyes On These. You Know You Want To . You Love It You Sick Bastard! :)
Total:2 - [0:sh]=shell [1:fv]=start
android@android:/android/build/android-cm-armv6/kernel/broadcom/rpi$ a lca
Total:10 - [0:fv]=logcat [1:fv]=-C [2:fv]=-b [3:fv]=system [4:fv]=-b [5:fv]=radio [6:fv]=-b [7:fv]=events [8:fv]=-b [9:fv]=main
--------- beginning of /dev/log/main
I/cm ( 65): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
I/cm ( 66): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 67): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/cm ( 70): Welcome to Android 4.4.4 / CyanogenMod-11-20140912-UNOFFICIAL-rpi
--------- beginning of /dev/log/system
I/auditd ( 75): Starting up