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 / fun_stuff
Created September 6, 2014 10:20
The Usual Fun Stuff
Total:10 - [0:fv]=logcat [1:fv]=-C [2:fv]=-b [3:fv]=system [4:fv]=-b [5:fv]=radio [6:fv]=-b [7:fv]=events [8:fv]=-b [9:fv]=main
--------- beginning of /dev/log/main
I/cm ( 65): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
I/cm ( 66): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 67): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/cm ( 70): Welcome to Android 4.4.4 / CyanogenMod-11-20140906-UNOFFICIAL-rpi
--------- beginning of /dev/log/system
I/auditd ( 75): Starting up
I/audit_log( 75): Previous audit logfile detected, rotating
I/DEBUG ( 77): debuggerd: Sep 6 2014 02:03:05
@trevd
trevd / fbtestXIII.c
Created September 4, 2014 18:43
RaspberryPI FBIOPAN_DISPLAY IOCTL Test
/*
* fbtestXIII.c
*
*
*
* Original work by J-P Rosti (a.k.a -rst- and 'Raspberry Compote')
*
* Licensed under the Creative Commons Attribution 3.0 Unported License
* (http://creativecommons.org/licenses/by/3.0/deed.en_US)
*
@trevd
trevd / logcat
Created June 21, 2014 04:09
Keeping Busy
I/SurfaceFlinger( 303): SurfaceFlinger is starting
I/SurfaceFlinger( 303): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 303): loaded /vendor/lib/egl/libGLES_bcm2708.so
I/egl_client( 303): eglInitialize
I/egl_client( 303): eglQueryString EGL_VENDOR[12371] result=Broadcom
I/egl_client( 303): eglQueryString EGL_VERSION[12372] result=1.4
I/egl_client( 303): eglQueryString EGL_EXTENSIONS[12373] result=EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface EGL_ANDROID_swap_rectangle EGL_ANDROID_image_native_buffer EGL_KHR_fence_sync
I/egl_client( 303): eglQueryString EGL_CLIENT_APIS[12429] result=OpenGL_ES OpenVG
I/GRALLOC-BCM2708( 303): gralloc_device_open name=fb0
I/GRALLOC-FRAMEBUFFER( 303): fb_device_open
@trevd
trevd / clever_cunt.java
Created June 21, 2014 00:18
streamline
String button_text = mAppEntry.info.enabled ? R.string.disable_text : R.string.enable_text ;
if (!mAppEntry.info.packageName.contains("com.android.cellbroadcastreceiver") &&
( mHomePackages.contains(mAppEntry.info.packageName) || isThisASystemPackage())){
button.setText(R.string.disable_text);
}else {
button.setText(button_text);
disableable = true;
}
@trevd
trevd / logcat
Created June 20, 2014 10:16
Maybe need some ref counting
I/SurfaceFlinger( 99): SurfaceFlinger is starting
I/SurfaceFlinger( 99): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 99): loaded /vendor/lib/egl/libGLES_bcm2708.so
I/khrn_client_platform_linux( 99): khronos_platform_get_process_id 99
I/egl_client( 99): eglInitialize
I/egl_client( 99): eglQueryString EGL_VENDOR[12371] result=Broadcom
I/egl_client( 99): eglQueryString EGL_VERSION[12372] result=1.4
I/egl_client( 99): eglQueryString EGL_EXTENSIONS[12373] result=EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface EGL_ANDROID_swap_rectangle EGL_ANDROID_image_native_buffer EGL_KHR_fence_sync
I/egl_client( 99): eglQueryString EGL_CLIENT_APIS[12429] result=OpenGL_ES OpenVG
I/GRALLOC-BCM2708( 99): gralloc_device_open name=fb0
@trevd
trevd / tab_clear
Created June 14, 2014 14:53
tab tab tab
#ifdef SK_BUILD_FOR_ANDROID
#include "SkPaintOptionsAndroid.h"
#ifdef SKPAINTOPTIONS_OPT
//For testing this optimization ensure you rebuild and push libandroid_runtime.so and libhwui.so
//everytime you build and push libskia.so
#undef SKPAINT_OPT_DEBUG
#ifdef SKPAINT_OPT_DEBUG
#define SkPaintOptDebugf(...) SkDebugf(__VA_ARGS__)
#else
#define SkPaintOptDebugf(...)
@trevd
trevd / dev_block_mmcblk0p2
Last active August 29, 2015 14:02
Permission to run
android@android:/vendor/rasppi/android/frameworks$ a l /
Total:4 - [0:sh]=shell [1:fv]=ls [2:fv]=-la [3:pa]=/
-rwxr-xr-x root root 165204 2014-06-14 10:05 Looper_test
dr-xr-xr-x root root 1970-01-01 00:00 acct
drwxrwxrwx root root 1970-01-01 00:00 bootloader
drwxrwx--x system cache 1970-01-01 00:00 cache
dr-x------ root root 1970-01-01 00:00 config
lrwxrwxrwx root root 1970-01-01 00:00 d -> /sys/kernel/debug
drwxrwx--x system system 1970-01-01 00:00 data
-rw-r--r-- system system 203 2014-06-14 09:42 default.prop
@trevd
trevd / logcat
Created June 11, 2014 15:15
Surfaceflinger Logcat
I/SurfaceFlinger(13437): SurfaceFlinger is starting
I/SurfaceFlinger(13437): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL (13437): loaded /vendor/lib/egl/libGLES_bcm2708.so
I/egl_client_cr(13437): eglGetDisplay Returning display_id=0x(null)
I/khrn_client_platform_linux(13437): platform_tls_get_check
I/khrn_client_platform_linux(13437): platform_tls_get
I/khrn_client_platform_linux(13437): Attaching process
I/khrn_client_platform_linux(13437): khrn_platform_malloc
I/khrn_client_platform_linux(13437): khronos_platform_get_process_id 13437
I/khrn_client_platform_linux(13437): khrn_platform_set_display_id display_id=0[0x0]
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=init
#
# 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