Skip to content

Instantly share code, notes, and snippets.

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=GINGERBREAD
ro.build.display.id=GINGERBREAD.BUKT3
ro.build.version.incremental=BUKT3
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.6
ro.build.date=Thu Nov 29 10:28:44 KST 2012
ro.build.date.utc=1354152524
@HandyMenny
HandyMenny / gist:bb7105940d8ff4572809
Created September 5, 2014 21:07
galaxy5's libOmxVidEnc on cm7
--------- beginning of /dev/log/main
I/cm ( 97): Welcome to Android 2.3.7 / CyanogenMod-7-20130301-NIGHTLY-cooper
I/cm ( 98): _
I/cm ( 99): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
I/cm ( 100): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
I/cm ( 101): )) _))
I/cm ( 102):
I/mountsd ( 116): Checking filesystems..
I/run-parts( 92): e2fsck 1.41.12 (17-May-2010)
I/run-parts( 92): /dev/block/mmcblk0p2: recovering journal
@HandyMenny
HandyMenny / gist:d49d576fa4fe6723b982
Created September 5, 2014 21:42
galaxy5's libOmxVidEnc on cm11
--------- beginning of /dev/log/main
E/logwrapper( 91): executing /system/bin/e2fsck failed: No such file or directory
I/cm ( 109): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
I/cm ( 110): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 111): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/cm ( 114): Welcome to Android 4.4.4 / CyanogenMod-11-20140823-NIGHTLY-cooper
I/run-parts( 106): Boosting
I/run-parts( 106): rm failed for /data/local/*.apk, No such file or directory
I/run-parts( 106): rm failed for /data/local/tmp/*.apk, No such file or directory
I/run-parts( 106): rm failed for /data/log/*.log, No such file or directory
root@cooper:/ # cd /system/lib
root@cooper:/system/lib # strings -f *.so | grep libActionShot
1|root@cooper:/system/lib # strings -f *.so | grep libCaMotion
1|root@cooper:/system/lib # strings -f *.so | grep libcaps
1|root@cooper:/system/lib # strings -f *.so | grep libPanoramaMax1
1|root@cooper:/system/lib # strings -f *.so | grep libPlusMe
1|root@cooper:/system/lib # strings -f *.so | grep libseccamera
1|root@cooper:/system/lib #
@HandyMenny
HandyMenny / bmlutils.patch
Last active August 29, 2015 14:06
boot and recovery aren't the same on some samsung phones.
diff --git a/bmlutils/bmlutils.c b/bmlutils/bmlutils.c
index d59475e..b6d6f8f 100644
--- a/bmlutils/bmlutils.c
+++ b/bmlutils/bmlutils.c
@@ -105,14 +105,18 @@ int cmd_bml_restore_raw_partition(const char *partition, const char *filename)
return 6;
int ret = -1;
+#ifndef TW_BOOT_AND_RECOVERY_ARE_DIFFERENT
if (strcmp(partition, "recoveryonly") != 0) {
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.0.31-androidarmv6 (handymenny@handyarch) (gcc version 4.7 (GCC) ) #4 PREEMPT Wed Nov 5 16:20:27 CET 2014
<4>[ 0.000000] CPU: ARMv6-compatible processor [4117b365] revision 5 (ARMv6TEJ), cr=00c5387d
<4>[ 0.000000] CPU: VIPT aliasing data cache, unknown instruction cache
<4>[ 0.000000] Machine: GT-S5830 Board
<6>[ 0.000000] Partition (from atag) mibib -- Offset:0 Size:6
<6>[ 0.000000] Partition (from atag) qcsbl -- Offset:6 Size:2
<6>[ 0.000000] Partition (from atag) oemsbl -- Offset:8 Size:3
<6>[ 0.000000] Partition (from atag) amss -- Offset:b Size:64
<6>[ 0.000000] Partition (from atag) efs2 -- Offset:6f Size:24
diff --git a/arch/arm/configs/cyanogenmod_cooper_defconfig b/arch/arm/configs/cyanogenmod_cooper_defconfig
index 8e1c1f6..73ad282 100644
--- a/arch/arm/configs/cyanogenmod_cooper_defconfig
+++ b/arch/arm/configs/cyanogenmod_cooper_defconfig
@@ -1185,7 +1185,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_CY8C_TS is not set
# CONFIG_TOUCHSCREEN_CYTTSP_I2C is not set
-CONFIG_TOUCHSCREEN_SAMSUNG_SYNAPTICS_I2C_RMI4=m
+CONFIG_TOUCHSCREEN_SAMSUNG_SYNAPTICS_I2C_RMI4=y
@HandyMenny
HandyMenny / gist:05eefd65ba339dd227b2
Last active August 29, 2015 14:08
i2c devices kernel 3.0
~ # strings -fn1 /sys/bus/i2c/devices/*/name
/sys/bus/i2c/devices/2-0020/name: synaptics-rmi-ts
/sys/bus/i2c/devices/3-0025/name: fsa9280
/sys/bus/i2c/devices/5-0008/name: bma_accel
/sys/bus/i2c/devices/5-0039/name: taos
/sys/bus/i2c/devices/i2c-0/name: MSM I2C adapter-PRI
/sys/bus/i2c/devices/i2c-1/name: MSM I2C adapter-AUX
/sys/bus/i2c/devices/i2c-2/name: i2c-gpio2
/sys/bus/i2c/devices/i2c-3/name: i2c-gpio3
/sys/bus/i2c/devices/i2c-5/name: i2c-gpio5
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.0.31-androidarmv6 (handymenny@handyarch) (gcc version 4.7 (GCC) ) #20 PREEMPT Thu Nov 6 19:45:32 CET 2014
<4>[ 0.000000] CPU: ARMv6-compatible processor [4117b365] revision 5 (ARMv6TEJ), cr=00c5387d
<4>[ 0.000000] CPU: VIPT aliasing data cache, unknown instruction cache
<4>[ 0.000000] Machine: GT-S5830 Board
<6>[ 0.000000] Partition (from atag) mibib -- Offset:0 Size:6
<6>[ 0.000000] Partition (from atag) qcsbl -- Offset:6 Size:2
<6>[ 0.000000] Partition (from atag) oemsbl -- Offset:8 Size:3
<6>[ 0.000000] Partition (from atag) amss -- Offset:b Size:64
<6>[ 0.000000] Partition (from atag) efs2 -- Offset:6f Size:24
@HandyMenny
HandyMenny / Benchmark
Last active August 29, 2015 14:09
SDcard benchmark
Kernel 3 UMS (same results with CONFIG_PM_RUNTIME disabled)
Read (38 MB): 12.58 MB/s* $ sudo hdparm -t --direct /dev/sdc1
Write(42 MB): max 811 KB/s, avg 530 KB/s $ dd bs=1M count=40 if=/dev/zero of=test conv=fdatasync
Kernel 3 MTP (jmtpfs)
Read (42 MB): 9.8 MB/s* $ time bash -c "(cp test /tmp/test)"
Write(42 MB): 3.7 MB/s* $ dd bs=1M count=40 if=/dev/zero of=test conv=fdatasync
Kernel 3 ADB
Pull (42 MB): 3.16 MB/s* $ adb pull /sdcard/test /tmp/test