CLICK ME
yes, even hidden code blocks!
print("hello world!")| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader | |
| == Shell |
| server: | |
| ########################################################################### | |
| # BASIC SETTINGS | |
| ########################################################################### | |
| # Time to live maximum for RRsets and messages in the cache. If the maximum | |
| # kicks in, responses to clients still get decrementing TTLs based on the | |
| # original (larger) values. When the internal TTL expires, the cache item | |
| # has expired. Can be set lower to force the resolver to query for data | |
| # often, and not trust (very large) TTL values. | |
| cache-max-ttl: 86400 |
| Install socat on host and vm | |
| #on virtual machine: | |
| #socat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037 | |
| #automatic installation on startup: | |
| echo -e '#!/bin/bash\nsocat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037 &' | sudo tee --append /etc/rc.local && sudo chmod 755 /etc/rc.local | |
| #on host machine, use with ./script.sh 99 for example | |
| socat tcp-listen:5037,bind=192.168.122.1,reuseaddr,fork tcp:localhost:5037 & socat tcp-listen:19000,bind=localhost,reuseaddr,fork tcp:192.168.122.$1:19000 & | |
| #Then |
| import com.sun.net.httpserver.HttpServer | |
| import java.io.PrintWriter | |
| import java.net.InetSocketAddress | |
| /** | |
| * Minimal embedded HTTP server in Kotlin using Java built in HttpServer | |
| */ | |
| fun main(args: Array<String>) { | |
| HttpServer.create(InetSocketAddress(8080), 0).apply { |
| Hi All! | |
| I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future. | |
| Feel free to request any features you'd like to see, and I'll prioritize them accordingly. | |
| One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it. | |
| Here's the link to the repository: https://github.com/Pulimet/ADBugger | |
| App Description: | |
| ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups. |
| phoneNumber=$1 | |
| echo Faking answered call to $phoneNumber | |
| adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "RINGING" --es incoming_number $phoneNumber | |
| adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "OFFHOOK" --es incoming_number $phoneNumber | |
| adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "IDLE" --es incoming_number $phoneNumber |
| package test.iamjonfry.com.interceptortest; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.List; | |
| import okhttp3.Cache; |
| # For Android JellyBean and newer device | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"' | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="transition_animation_scale"' | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="animator_duration_scale"' | |
| # For Android ICS and older device | |
| adb shell "echo \"update system set value=0.0 where name='window_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db" | |
| adb shell "echo \"update system set value=0.0 where name='transition_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db" |
Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for
the repo https://myorg/myrepo/ is: git@github.com:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).
You make edits, and commit and push your changes, like any normal repo. This wiki repo
is distinct from any clone of the project repo (the repo without wiki.get appended).