Skip to content

Instantly share code, notes, and snippets.

@murano500k
Created August 18, 2017 08:39
Show Gist options
  • Save murano500k/5cb3c5622c81ac85024abfb6b935b785 to your computer and use it in GitHub Desktop.
Save murano500k/5cb3c5622c81ac85024abfb6b935b785 to your computer and use it in GitHub Desktop.
Following parameter has to be added to kernel if you need to enable Android KLOG.
printk.devkmsg=on
Enable OMX full logs:
stop media
setprop debug.omxr.mc 0x33333300
setprop debug.omxr.adapter 0xffffffff
start media
or
adb root && adb shell stop media && adb shell setprop debug.omxr.mc 0x33333300 && adb shell setprop debug.omxr.adapter 0xffffffff && adb shell start media
Increase verbosity of camera stack
dumpsys media.camera -v 2
Build local project and know what will product of build
mm -j3 -B 2> /dev/null | grep Install
setprop media.stagefright.use-awesome true
FD leakage test
cat /proc/sys/fs/file-nr
Set resolution for Display
example: video=HDMI-A-1:1920x1080-32@60
HDMI-A-1 - display type (can be HDMI-A-2, VGA-1, LVDS-1)
1920x1080 - resolution (should be presented in EDID)
-32 - bit per pixel (always use 32)
@60 - frame rate
Overcoming JACK
http://stackoverflow.com/questions/34940793/increasing-heap-size-while-building-the-android-source-code-on-ubuntu-15-10
for i in $(find -name \*); do strings ${i} 2> /dev/null | grep -q __cfi_slowpath_diag && echo ${i}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment