Skip to content

Instantly share code, notes, and snippets.

View DenBond7's full-sized avatar

Den DenBond7

  • Ukraine
View GitHub Profile
@DenBond7
DenBond7 / redirect_trafic_for_emulators.sh
Created May 3, 2022 17:17
redirect_trafic_for_emulators.sh
#!/usr/bin/env bash
for device in `adb devices | awk '{print $1}'`; do
if [ ! "$device" = "" ] && [ ! "$device" = "List" ]
then
echo " "
echo "adb -s $device"
echo "------------------------------------------------------"
adb -s $device root
echo "adb -s $device root"
adb devices | grep emulator | cut -f1 | while read line; do adb -s $line emu kill; done
@DenBond7
DenBond7 / ca.md
Created May 3, 2021 07:30 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

<service
android:name="org.acra.sender.SenderService"
android:exported="false"
tools:node="replace"
android:permission="android.permission.BIND_JOB_SERVICE"/>

Keybase proof

I hereby claim:

  • I am denbond7 on github.
  • I am denbond7 (https://keybase.io/denbond7) on keybase.
  • I have a public key ASA3QxtO8O77x1o1fo2N6AbJftqwQPPjoOQa2P2vhSPajgo

To claim this, I am signing this object:

// Before use it need run next command in terminal
// adb shell setprop log.tag.TAG VERBOSE
// Details here https://developer.android.com/reference/android/util/TimingLogger
TimingLogger timings = new TimingLogger(TAG, "methodA");
// ... do some work A ...
timings.addSplit("work A");
// ... do some work B ...
timings.addSplit("work B");
// ... do some work C ...
@DenBond7
DenBond7 / bg_bottom_line_grey
Created August 23, 2017 13:23
android_bottom_line_grey_1dp
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="bottom">
<shape>
<size android:height="1dp" />
<solid android:color="#989898" />
</shape>
</item>
</layer-list>