This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save as <folder with your playbook>/callback_plugins/<some name>.py | |
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import os | |
import time | |
import json | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05-09 08:21:20.829 0 0 E [ 1274.011185 / 05-09 08:21:20.823][1] init: property_set("ro.boottime.audioserver", "1274003857117") failed: property already set | |
05-09 08:21:21.105 22907 22907 E APM::Serializer: deserialize: Could not parse /odm/etc/audio_policy_configuration.xml document. | |
05-09 08:21:21.105 22907 22907 E APM::Serializer: deserialize: Could not parse /vendor/etc/audio_policy_configuration.xml document. | |
05-09 08:21:21.146 22907 22907 W hardware_info: update_hardware_info_8994: sfX: Not an 8994 device | |
05-09 08:21:21.206 6855 8975 E AudioService: Audioserver started. | |
05-09 08:21:21.240 0 0 E : [ 1274.422784 / 05-09 08:21:21.235][4] msm_qti_pp_get_rms_value_control, back not active to query rms be_idx:3 | |
05-09 08:21:21.240 0 0 E : [ 1274.426168 / 05-09 08:21:21.239][4] msm_pcm_volume_ctl_get substream runtime not found | |
05-09 08:21:21.240 0 0 E : [ 1274.426337 / 05-09 08:21:21.239][4] msm_pcm_volume_ctl_get substream runtime not found | |
05-09 08:21: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks | |
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on FWUL: | |
----------------------------------------------- | |
cd ~/programs/lglafng | |
git pull | |
git checkout develop | |
git pull | |
sudo python partitions.py --list --debug | |
sudo python partitions.py --list --batch --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
LineageOS Version: '16.0-20190430-UNOFFICIAL-h815_usu' | |
Build fingerprint: 'lge/p1_global_com/p1:6.0/MRA58K/152940055675e:user/release-keys' | |
Revision: '0' | |
ABI: 'arm' | |
pid: 1438, tid: 1438, name: mm-qcamera-daem >>> /system/vendor/bin/mm-qcamera-daemon <<< | |
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- | |
Abort message: '*** timed out in posting event. please refer to tombstones ***' | |
r0 00000000 r1 0000059e r2 00000006 r3 00000008 | |
r4 0000059e r5 0000059e r6 ffc496fc r7 0000010c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell find system -name nfc_nci.msm8992.so | |
------------------------------------------------------------------- | |
> system/vendor/lib64/hw/nfc_nci.msm8992.so | |
> system/vendor/lib/hw/nfc_nci.msm8992.so | |
product/nfc.mk | |
------------------------------------------------------------------- | |
PRODUCT_PACKAGES += \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# crucial important for getholydebugvars: Indents! | |
# If you open this file within vi/vim and see the first line red marked your vimrc is wrongly setup. | |
# Ensure you have NOT set "expandtab" there and better enforce it by "noexpandtab" e.g. like that: | |
# set tabstop=8 softtabstop=0 noexpandtab shiftwidth=4 smarttab | |
# with the above conf it requires 2 tabs for every line to make it work | |
getholydebugvars: | |
$(hide) echo "TARGET_IS_64_BIT: $(TARGET_IS_64_BIT)" | |
$(hide) echo "TARGET_ARCH: $(TARGET_ARCH)" | |
$(hide) echo "TARGET_ARCH_VARIANT: $(TARGET_ARCH_VARIANT)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb logcat -b kernel |grep avc: | |
> 05-12 20:10:27.665 0 0 E [ 16.154118 / 05-12 18:10:27.658][1] selinux: avc: denied { set } for | |
property=ro.bluetooth.sap pid=3540 uid=0 gid=0 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:default_prop:s0 | |
tclass=property_service permissive=1 | |
-------------------------- | |
adb shell getenforce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instructions: | |
# 1. Go to https://[yourdomain].slack.com/services/new | |
# 2. Configure a new Incoming WebHook and paste the URL below on Line 14 | |
# 3. Copy this file into $SPLUNK_HOME$/bin/scripts | |
# 4. Configure your saved search to run slack_alert.py | |
from time import gmtime, strftime | |
import httplib, json | |
import getopt, sys, os | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If it is required to debug a service from its very start, the sigstop service option is added. | |
This option will send SIGSTOP to a service immediately before calling exec. | |
This gives a window where developers can attach a debugger, strace, etc before continuing the service with SIGCONT. | |
This flag can also be dynamically controlled via the ctl.sigstop_on and ctl.sigstop_off properties. | |
Below is an example of dynamically debugging logd via the above: | |
# prepare service, yes even start it! | |
stop <service-name> | |
setprop ctl.sigstop_on <service-name> | |
start <service-name> |
OlderNewer