Skip to content

Instantly share code, notes, and snippets.

Lanchon

Block or report user

Report or block Lanchon

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
@Lanchon
Lanchon / l4m-install.md
Last active May 24, 2018
LineageOS for microG Installation
View l4m-install.md
@Lanchon
Lanchon / PackageParser.java
Last active Jul 30, 2019
Sample DexPatcher framework patch to implement microG-style signature spoofing
View PackageParser.java
/*
* Copyright (C) 2014 Marvin W <https://github.com/mar-v-in>
* Copyright (C) 2016 Lanchon <https://github.com/Lanchon>
*
* This is Marvin's work converted to a DexPatcher patch by Lanchon.
*
* https://gerrit.omnirom.org/#/c/8672/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Lanchon
Lanchon / isorec.patch
Created Jan 12, 2016
IsoRec Patch - Isolated Recovery for the Galaxy S2 Family - CM/android_kernel_samsung_smdk4412
View isorec.patch
diff --git a/usr/galaxys2_initramfs_files/init b/usr/galaxys2_initramfs_files/init
index 32eacfb..cb3da8e 100755
--- a/usr/galaxys2_initramfs_files/init
+++ b/usr/galaxys2_initramfs_files/init
@@ -12,8 +12,24 @@ busybox mount -t sysfs sysfs /sys
load_image=/stage1/boot.cpio
if busybox grep -q bootmode=2 /proc/cmdline ; then
- # recovery boot
- load_image=/stage1/recovery.cpio
@Lanchon
Lanchon / stm32cubemx-linux.md
Last active Sep 14, 2019
Installing STM32CubeMX on Linux
View stm32cubemx-linux.md

Installing STM32CubeMX on Linux

The STM32CubeMX tool is written in portable java, but unfortunately it is distributed as a Windows executable embedded in a Windows installer.

To intall it on Linux:

  1. sudo java -jar SetupSTM32CubeMX-4.11.0.exe
  2. install the tool somewhere in your home, eg: /home/you/stm32/cubemx
  3. sudo chown -R you:you /home/you/stm32/cubemx
@Lanchon
Lanchon / CM11-M10 sdcard.c objdump (i9100)
Created Oct 2, 2014
CM11-M10 sdcard.c objdump (i9100)
View CM11-M10 sdcard.c objdump (i9100)
sdcard: file format elf32-littlearm
Disassembly of section .plt:
00000f68 <__libc_init@plt-0x14>:
f68: e52de004 .word 0xe52de004
f6c: e59fe004 .word 0xe59fe004
f70: e08fe00e .word 0xe08fe00e
@Lanchon
Lanchon / CM11-M10 sdcard.c listing (i9100)
Created Oct 2, 2014
CM11-M10 sdcard.c listing (i9100)
View CM11-M10 sdcard.c listing (i9100)
ARM GAS /tmp/ccMR8LsA.s page 1
1 .syntax unified
2 .cpu cortex-a9
3 .eabi_attribute 27, 3
4 .fpu neon
5 .eabi_attribute 20, 1
6 .eabi_attribute 21, 1
7 .eabi_attribute 23, 3
@Lanchon
Lanchon / CM11-M10 sdcard.c objdump
Created Oct 1, 2014
CM11-M10 sdcard.c objdump
View CM11-M10 sdcard.c objdump
sdcard: file format elf32-littlearm
Disassembly of section .plt:
00000f68 <__libc_init@plt-0x14>:
f68: e52de004 .word 0xe52de004
f6c: e59fe004 .word 0xe59fe004
f70: e08fe00e .word 0xe08fe00e
@Lanchon
Lanchon / CM11-M10 sdcard.c listing
Created Oct 1, 2014
CM11-M10 sdcard.c listing
View CM11-M10 sdcard.c listing
ARM GAS /tmp/cc3I8rcL.s page 1
1 .syntax unified
2 .cpu cortex-a15
3 .eabi_attribute 27, 3
4 .fpu neon
5 .eabi_attribute 20, 1
6 .eabi_attribute 21, 1
7 .eabi_attribute 23, 3
You can’t perform that action at this time.