Skip to content

Instantly share code, notes, and snippets.

Dan Pasanen invisiblek

Block or report user

Report or block invisiblek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sepo
allow init block_device : dir { search };
allow dumpstate dumpstate : rawip_socket { ioctl read write create getattr setattr lock append bind connect getopt setopt shutdown };
allow init qmuxd_socket : fifo_file { read create getattr setattr relabelfrom relabelto unlink open };
allow init sockfs : dir { read setattr search open };
allow init proc_security : dir { read setattr search open };
allowxperm untrusted_app untrusted_app : udp_socket ioctl { 0x5411 0x5451 };
allowxperm untrusted_app untrusted_app : udp_socket ioctl { 0x8906-0x8907 0x8910 0x8912-0x8913 0x8915 0x8917 0x8919 0x891b 0x8921 0x8933 0x8938 0x8942 };
allowxperm untrusted_app untrusted_app : udp_socket ioctl { 0x8b01 0x8b05 0x8b07 0x8b09 0x8b0b 0x8b0d 0x8b0f 0x8b11-0x8b13 0x8b21 0x8b23 0x8b25 0x8b27 0x8b29 0x8b2d };
allow untrusted_app untrusted_app : udp_socket { ioctl read write create getattr setattr lock append bind connect getopt setopt shutdown };
allow drmserver mediaserver : fd { use };
View repopicks-13.0
163352 # build: use the system's ccache by default
152486 # gotta catch em all
140965 # sqlite: upgrade to SQLite 3.9.2
163910 # hal: Fix device selection at start of the voice call
173291 # Make Build.TYPE and Build.FINGERPRINT consistent for apps.
View selective-spn-conf.xml
<?xml version="1.0" encoding="utf-8"?>
<spnOverrides>
<!-- Afghanistan -->
<spnOverride numeric="41201" spn="AWCC" />
<spnOverride numeric="41240" spn="Areeba" />
<spnOverride numeric="41250" spn="Etisalat" />
<spnOverride numeric="41220" spn="Roshan" />
<!-- Albania -->
<spnOverride numeric="27601" spn="AMC" />
View -
/system/bin/linker
__cxa_finalize
__cxa_atexit
_ZTV17ProximityCallback
__aeabi_unwind_cpp_pr0
_ZdlPv
_ZN16MotSpeakerHelper10speakerOffEv
pthread_mutex_lock
pthread_mutex_unlock
_ZN16MotSpeakerHelper12earpiecePingEb
View sonoff
compiled Sonoff-Tasmota from https://github.com/arendst/Sonoff-Tasmota.git (read directions there) and save the .bin somewhere easy to get to
rip the chip off your arduino, you're going to use that bish as an ftdi adapter
wire it up like this:
arduino sonoff pins
3.3v pin 1
RX pin 2
TX pin 3
View shipit.py
#!/usr/bin/env python
#
# shipit.py
# v1.7.1
#
# Written by Dan Pasanen, 2016
# WTFPL
#
# CHANGES
# v1.0 - initial release
View archkernel
#!/bin/bash
custom=invisiblek
cd ~/linux
git checkout master
git fetch origin
git reset --hard origin/master
set -e
View img2ext.py
#!/usr/bin/python2
import sys
import mmap
ext4Magic = '\x53\xEF'
ext4MagicOffset = 1080
if len(sys.argv) < 3:
print("No I/O supplied")
View pinger
#!/bin/bash
#
# Simple ping testing script
# By: Dan Pasanen
#
# Designed to be run as a cron job
#
# A space-separated list of hosts to monitor
hosts="rpi shrew invisiblek.org"
View aospmerge.sh
#!/bin/bash
export oldtag=android-7.1.1_r6
export newtag=LA.UM.5.5.r1-02200-8x96.0
export cmversion=14.1
# CAF
export remotebase=https://source.codeaurora.org/quic/la/platform
# AOSP
#export remotebase=https://android.googlesource.com/platform
You can’t perform that action at this time.