Skip to content

Instantly share code, notes, and snippets.

From aa02778010b6a0499af3a6fc5675331bc3ade75f Mon Sep 17 00:00:00 2001
From: Eric Laurent <elaurent@google.com>
Date: Thu, 23 Oct 2014 14:42:59 -0700
Subject: [PATCH] compress offload: use new sample rate representation.
Pass directly the sample rate value to struct snd_codec
instead of the ALSA enum.
Bug: 17398311.
Change-Id: I79483773807ce3b0b146fde28d6498444c69fe89
@xc-racer99
xc-racer99 / android_frameworks_base.patch
Created October 5, 2015 19:45
Patch for Samsung CDMA SMS
From c2c4e65f74afa26704bec55e91e5839933f68e8f Mon Sep 17 00:00:00 2001
From: jt1134 <jt1134@gmail.com>
Date: Thu, 22 Nov 2012 23:48:05 -0600
Subject: [PATCH] add bools to overlay for Samsung CDMA SMS decoding hacks
Necessary for fascinatemtd
Change-Id: I57f0e7661658a91a6469677c58055b13bee470ae
---
core/res/res/values/custom_config.xml | 3 +++
@xc-racer99
xc-racer99 / android_frameworks_opt_telephony.patch
Created October 5, 2015 19:48
[2/2] Samsung CDMA SMS patch for Fascinatemtd
From 88a58fd41b73748cdc9519c1ce31588fd4048380 Mon Sep 17 00:00:00 2001
From: jt1134 <jt1134@gmail.com>
Date: Thu, 22 Nov 2012 23:57:38 -0600
Subject: [PATCH] fix for Samsung CDMA incoming SMS bug
ported from CM7/9/10/11
Change-Id: I6189dd0c6aeffb0b8b530bab7994a07bb390c32c
---
.../internal/telephony/cdma/sms/BearerData.java | 19 +++++++++++++++----
@xc-racer99
xc-racer99 / mixer_paths.xml
Last active April 7, 2016 04:32
Test mixer_paths to try to increase call volume on first-gen Moto G
<?xml version="1.0" encoding="ISO-8859-1"?>
<mixer>
<!-- These are the initial mixer settings -->
<!-- NOTE: For all the mixer controls added under usecases or sound devices -->
<!-- we should have an initial mixer setting (default value) -->
<ctl name="Voice Rx Device Mute" value="0" />
<ctl name="Voice Tx Mute" value="0" />
<ctl name="Voice Rx Gain" value="0" />
<ctl name="TTY Mode" value="Off" />
<ctl name="LINEOUT1 Volume" value="0" />
@xc-racer99
xc-racer99 / aries-common.patch
Created August 6, 2016 15:55
aries mkbootimg patch
From b142685accf2c50c7f412ba7482d10b78cc538d2 Mon Sep 17 00:00:00 2001
From: xc-racer99 <xc-racer2@live.ca>
Date: Mon, 1 Aug 2016 14:25:31 -0700
Subject: [PATCH] [1/3] aries-common: Support custom mkbootimg
Currently, we build both the recovery ramdisk and the main ramdisk into the kernel. This done with the flag BOARD_CUSTOM_BOOTIMG_MK, which is not an AOSP-supported flag (CAF originally?).
Instead, lets store the ramdisks on our previously unused (except in the case of fascinatemtd - not sure if the reason is still valid though) second mtd partition. This has been relabelled to "ramdisk" (from "recovery"). Our stage1 ramdisk now mounts that partitions and loads the correct ramdisk.
The other reason BOARD_CUSTOM_BOOTIMG_MK was used was so that we didn't append the ramdisk afterwards. Now, we use a BOARD_CUSTOM_MKBOOTIMG which simply copies the kernel to the boot.img (or whatever the output flag is).
@xc-racer99
xc-racer99 / clone_depth.xml
Last active June 5, 2019 02:15
Remove bloat in AOSP 7.0
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Remove first, re-add with clone-depth of 1 -->
<remove-project path="cts" name="platform/cts" groups="cts,pdk-cw-fs,pdk-fs" />
<remove-project path="dalvik" name="platform/dalvik" groups="pdk-cw-fs,pdk-fs" />
<remove-project path="developers/build" name="platform/developers/build" />
<remove-project path="developers/demos" name="platform/developers/demos" />
<remove-project path="developers/samples/android" name="platform/developers/samples/android" />
<remove-project path="development" name="platform/development" groups="pdk-cw-fs,pdk-fs" />
@xc-racer99
xc-racer99 / external_libselinux.patch
Created January 19, 2017 05:58
Patches for static busybox replacement
From f742a1d8c388d03060ef23acea6c201e8b02f1f4 Mon Sep 17 00:00:00 2001
From: Adrian DC <radian.dc@gmail.com>
Date: Fri, 26 Aug 2016 04:37:24 +0200
Subject: [PATCH] libselinux: Fully libcrypto_static include in static library
* Solves external/libselinux/./src/android.c:999:
error: undefined reference to 'SHA1' for toybox_static
Change-Id: I323d818283110b9ca1ea9cefaa72f4e5320e3a19
---
@xc-racer99
xc-racer99 / gist:59dad16d76598d8cfa6ba216a3fcf1ee
Created April 17, 2018 16:20
VSG 1432 WIP OpenWRT/LEDE 17.01.4 patch
From 9ab510606a5962a4dcd318d030cd8856fbd4cf9f Mon Sep 17 00:00:00 2001
From: xc-racer99 <xc-racer2@live.ca>
Date: Tue, 17 Apr 2018 09:18:26 -0700
Subject: [PATCH] Initial attempt to VSG 1432
Totally untested, on top of v17.01.4
---
.../brcm63xx/base-files/etc/board.d/02_network | 1 +
target/linux/brcm63xx/base-files/etc/diag.sh | 3 +
.../base-files/etc/uci-defaults/09_fix_crc | 1 +
@xc-racer99
xc-racer99 / external_libsamsung-ipc.patch
Last active May 23, 2018 17:55
WIP T959V/T959P Replicant's libsamsung-ipc support - calls, sms works, data untested
From a7409c1b173968530eaed3c59914a9e538d694ec Mon Sep 17 00:00:00 2001
From: xc-racer99 <xc-racer2@live.ca>
Date: Sun, 15 Apr 2018 12:58:49 -0700
Subject: [PATCH 1/6] Add crc ccitt calculation
Used in M5730 serial communication (XMODEM)
From https://github.com/lammertb/libcrc/tree/v2.0
---
Android.mk | 1 +
@xc-racer99
xc-racer99 / gist:36ee444d8f672f0103b84d8ebab71f42
Created July 5, 2018 03:00
SGH-T959P Default GPIO settings
Aries # gpio status -a
Bank gpa0:
gpa00: func
gpa01: func
gpa02: func
gpa03: func
gpa04: func
gpa05: func
gpa06: func
gpa07: func