Skip to content

Instantly share code, notes, and snippets.

Naseer Ahmed naseer

Block or report user

Report or block naseer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@naseer
naseer / ycm_extra_conf_kernel.py
Last active Sep 1, 2019
YCM configuration for the Linux kernel
View ycm_extra_conf_kernel.py
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
@naseer
naseer / ycm_extra_conf.py
Last active Sep 1, 2019
YCM configuration for Android
View ycm_extra_conf.py
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
@naseer
naseer / bugreport
Created Dec 3, 2014
Sample bugreport
View bugreport
This file has been truncated, but you can view the full file.
========================================================
== dumpstate: 2014-09-24 14:42:51
========================================================
Build: shamu-userdebug L LRW80I 1452039 dev-keys
Build fingerprint: 'google/shamu/shamu:L/LRW80I/1452039:userdebug/dev-keys'
Bootloader: 0x7040
Radio: mdm
Network: (unknown)
@naseer
naseer / bugreport.md
Last active Aug 29, 2015
Display bugreport
View bugreport.md

##About bugreports An Android bugreport is the most standard way in the Google team to report any bugs. Typically a bugreport is taken by default at the occurence of any symptom. The bugreport covers the necessary state information that occurred at the time of the issue. It includes the kernel log, the userspace logs, and other system state. It may also include the last kernel log that occurred if the report is take after a crash.

##Getting a bugreport adb bugreport > bugreport.txt

##Sections relevant to display debugging Please refer to the sample bugreport here Apart from the kernel log and the userspace log, the bugreport has

  • dumpsys surfaceflinger (search for DUMP OF SERVICE SurfaceFlinger) - The dumpsys dumps all of the layer information
@naseer
naseer / gist:2703848
Created May 15, 2012
Sed inline replace in makefiles
View gist:2703848
find . -name "*.mk" | xargs -I{} sed -i "s/something/something else/g" {}
View gist:2703837
# Push media to sdcard and run mediascanner
adb shell am start -n com.android.development/.MediaScannerActivity
View gist:2703813
adb shell "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
You can’t perform that action at this time.