Skip to content

Instantly share code, notes, and snippets.

View trevd's full-sized avatar

trevd trevd

  • My Own
  • Inside Android
View GitHub Profile
@trevd
trevd / dedupe Recovery Issue
Created December 24, 2012 01:32
CWM 6.0.1.9 depdupe issue
Here's a gdb try which kinda gets us in the right direction,
GDB TRACE:
./data/com.gzero.tv/cache/Settings
./data/com.gzero.tv/cache/mobclix
./data/com.gzero.tv/cache/mobclix/mobclix_temp_1352625520411.html
./data/com.gzero.tv/cache/mobclix/mobclix_temp_1352625535348.html
./data/com.gzero.tv/cache/webviewCacheChromiumStaging
./data/com.gzero.tv/cache/aHR0cDovL3N0YXRpYy50dmNhdGNodXAuY29tL2ltYWdlcy9jaGFubmVscy9lbmFibGVkL2NoYW5u
QRG.FRTNZVS2%S2%N3%CGGU
@trevd
trevd / RIL CM First Boot Until Death
Created July 30, 2013 19:35
T-Mobile where merged with orange and the new UK Arm is EE ( Everywhere ) which is why the APN is set as such, I don't know when this change as last time I checked it was still the old T-Mobile UK apn. The first boot is until CM write the settings database and kills adb The second boot is after turning adb back on via recovery and rebooting The …
- waiting for device -
--------- beginning of /dev/log/main
I/installd( 143): installd firing up
E/cutils ( 143): Failed to read /data/.layout_version: No such file or directory
D/installd( 143): Upgrading /data/media for multi-user
D/installd( 143): Upgrading to shared /data/media/obb
I/DEBUG ( 138): debuggerd: Jul 30 2013 13:45:52
--------- beginning of /dev/log/system
I/Vold ( 134): Vold 2.1 (the revenge) firing up
D/Vold ( 134): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
@trevd
trevd / proc_last_kmsg
Last active December 21, 2015 06:19
BUILD 10.2-20130814-EXPERIMENTAL-p1-MR2 GSM P1000 "Random" Reboot on Idle tablet: USB Debugging Enabled : Stay Awake=True . Battey State 1% after reboot and safe to assume low < 15% before reboot
[ 0.039262] S5PC110 Hardware version : EVT1
[ 0.039364] p1_get_hwrev: HWREV (0x12), Model (P1)
[ 0.039444] HWREV is 0x12
[ 0.040112] S3C Power Management, Copyright 2004 Simtec Electronics
[ 0.040196] pmstats at 5ffff000
[ 0.040300] invalid media device
[ 0.040443] invalid media device
[ 0.040526] Universal :SD Detect configuration
[ 0.041219] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.041751] S5PV210: Initializing architecture
@trevd
trevd / default.xml
Created September 30, 2013 23:56
ParanoidSabreDroid Manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch="https://android.googlesource.com" />
<remote name="github"
fetch="https://github.com" />
<remote name="private"
@trevd
trevd / gist:8167655
Created December 29, 2013 05:11
stdout, never heard of it.
android@android:/android/build/aosp/system/core/fastboot$ ag stderr
usb_windows.c
40:#define DBG(x...) fprintf(stderr, x)
protocol.c
71: fprintf(stderr,"(bootloader) %s\n", status + 4);
usbtest.c
99: fprintf(stderr,"write failed (%s)\n", strerror(errno));
104: fprintf(stderr,"%d bytes in %lld uS\n", arg_count * arg_size, (t1 - t0));
/system/vendor/bin # cat /proc/cpuinfo
Processor : ARMv7 Processor rev 10 (v7l)
processor : 0
BogoMIPS : 597.12
processor : 1
BogoMIPS : 597.12
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
@trevd
trevd / Android.mk
Created April 4, 2014 12:14
Native ToolChain Building using BUILD_PHONY_PACKAGE
ifneq ($(BUILD_TINY_ANDROID),true)
native-toolchain: $(TARGET_CRTBEGIN_DYNAMIC_O) $(TARGET_CRTEND_O) $(TARGET_OUT_SHARED_LIBRARIES)/libm.so $(TARGET_OUT_SHARED_LIBRARIES)/libc.so $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
DEST=$(PRODUCT_OUT) CRT=$(TARGET_OUT_INTERMEDIATE_LIBRARIES) HOST_OUT=$(HOST_OUT) INTREE=true HOST_TOOLS="$(shell cd `dirname $(TARGET_TOOLS_PREFIX)` && pwd)/$(shell basename $(TARGET_TOOLS_PREFIX))" $(CURDIR)/native-toolchain/build.sh
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := native-toolchain
@trevd
trevd / cat.s
Created May 30, 2014 13:28
simple cat x86 assembly
#define __ASSEMBLY__
#include <asm/unistd.h>
#include <asm/mman.h>
#include <asm/types.h>
# make shit more readable - there'll be no "magic numbers" here
#define NULL 0
# syscall interupt
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.14.2 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=init