Skip to content

Instantly share code, notes, and snippets.

View aleksjp's full-sized avatar

Alexandar Yuliev aleksjp

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aleksjp on github.
  • I am mrboleto (https://keybase.io/mrboleto) on keybase.
  • I have a public key whose fingerprint is C401 0712 084D FF7D 237F 9CAC 2035 4910 7F85 2C14

To claim this, I am signing this object:

@aleksjp
aleksjp / gist:f1815ba6d3b0dbbcd3b43f10db1584af
Last active June 21, 2016 04:31
3.4.0-gc82e70f /proc/kallsyms
c033cc2c T sony_ric_enabled
c033cc3c t sony_ric_setup
c033cc64 t ric_write
c033cd98 t ric_release
c033cdd4 t ric_read
@aleksjp
aleksjp / wr703n.c
Last active June 27, 2016 02:08
TL-WR740N v4 / OpenWrt BB 14.07/ Blinking LED
/**
* wr740n.c
*
* Blinking the LED's on TP-LINK TL-WR740N router running openwrt firmware.
*
* 1.Cross-compile wr703n.c file:
* $ mips-openwrt-linux-uclibc-gcc -o wr740n wr740n.c
*
* 2.Transfer the produced MIPS32 binary to the hardware:
* $ scp ~/openwrt/wr740n root@192.168.1.1:/tmp
1 .arch armv5te
2 .fpu softvfp
3 .eabi_attribute 20, 1
4 .eabi_attribute 21, 1
5 .eabi_attribute 23, 3
6 .eabi_attribute 24, 1
7 .eabi_attribute 25, 1
8 .eabi_attribute 26, 2
9 .eabi_attribute 30, 6
10 .eabi_attribute 34, 0
#!/system/bin/sh
MOD_LOAD="$1"
if lsmod | grep "$MOD_LOAD" &> /dev/null ; then
echo "$MOD_LOAD is loaded, removing it..."
rmmod "$MOD_LOAD"
exit 0
else
echo "$MOD_LOAD isn't loaded"
Device: Xperia M2 D2303
Firmware version: 18.3.1.C.1.17
------------------------------------------------
E:\ric_disabler>adb push mod_loaded.sh /data/local/tmp/
19 KB/s (215 bytes in 0.011s)
E:\ric_disabler>adb shell chmod 777 /data/local/tmp/mod_loaded.sh
E:\ric_disabler>adb shell "su -c /data/local/tmp/mod_loaded.sh ric_mod"
ric_mod is loaded, removing it...
@aleksjp
aleksjp / gist:d29ab62b52ebef68a8d3
Created March 10, 2016 11:30
3.4.0-gc82e70f/selinux_mod
<6>[ 0.000000] Booting Linux on physical CPU 0
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.4.0-gc82e70f (BuildUser@BuildHost) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Mon Aug 10 21:54:32 2015
<4>[ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
<7>[ 3.828062] SELinux: initialized (dev mmcblk0p24, type ext4), uses mountpoint labeling
<6>[ 3.889582] --- storeAttr --- ok
<4>[ 3.915921] KXTJ2 into kionix_accel_input_openKXTJ2 into kionix_accel_input_close
<6>[ 6.046266] [selinux_mod] module loaded
<6>[ 6.046306] [selinux_mod] old selinux_enabled: 1
@aleksjp
aleksjp / install.sh
Last active June 21, 2016 04:34
multirecovery linux Installer
#!/bin/bash
set -e
LOCAL_DIR=`dirname $0`
LOCAL_NAME=adb
ADB=${LOCAL_DIR}/${LOCAL_NAME}
ADBB=../$ADB
chmod u+x adb