Skip to main content

Posts

How to disable or disconnect ADB over WiFi

ADB over Wi-Fi leaves your device open to remote connections, which can be a security risk on untrusted networks. Disabling it restores the traditional USB debugging mode and ensures that your device remains secure. 1 Revert to USB Debugging           Connect via USB: If your device is currently connected over Wi-Fi, reattach the USB cable. This initial connection is essential to safely switch debugging modes.              Open Terminal/Command Prompt:  Launch your terminal or command prompt on your computer.              Switch Back to USB Mode: Enter the following command                          adb usb          2. Disconnect the Wireless Session             If you’re still in a Wi-Fi debugging session, you can explicitly disconnect by run...
Recent posts

How to set up and use ADB over Wi-Fi

Android Debug Bridge (ADB) is a versatile tool that allows developers to communicate with Android devices for debugging and other tasks. Traditionally, ADB connections require a USB cable, but it's possible to establish a connection over Wi-Fi, offering greater flexibility. This guide provides step-by-step instructions to set up ADB over Wi-Fi and outlines common issues you might encounter. Prerequisites Android Device : Ensure your device is running Android 11 or later. Toxigon Computer : A PC with ADB installed. You can download the latest version of the Android SDK Platform Tools from the official Android developer website . USB Cable : Required for the initial setup. Wi-Fi Network : Both your Android device and computer must be connected to the same Wi-Fi network. Steps to set up ADB over Wi-Fi Enable Developer Options on Your Android Device : Navigate to Settings > About phone . Tap on Build number seven times until you see a message confirming that Developer Options are e...

How to create unique mach-o binaries with different file hash on mac

Sometimes you wonder you might want to create several Mach-O executable files on macOS for any fun or test purpose where each Mach-O has different hash such as ( MD5, SHA1, or SHA256 ) from one another. The following script will help you in achieving that. Pre-requisites: 1. Command-line tools for macOS need to be installed on mac prior to executing the below script. How to Run: 1. Copy the following code snippet to a file and save it with the name randomMachoGenerator.sh. 2. Run the bash script as sh randomMachoGenerator.sh in Terminal. 3. The following script will compile and execute unique Mach-O binaries inside the directory. #!/usr/bin/env bash START=1 END=10 echo 'Generating random Mach-O binaries' for ((n=$START; n<=$END; n++)) do  #Generating 12 letter random string      STATEMENT=$(dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-12)     cat > randomMach...

How to use proxy setting with pip to install packages?

If you see error messages like below when you try to install packages in a restricted environment where it is mandated to use proxy settings to download packages - "Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError( , 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/wxpython/ " we need to supply proxy server setting to pip while installing the python packages , Example sudo pip install --proxy=https://proxy.example.com:port -U wxPython

Why my 500GB Hard disk shows less size when formatted on the system ?

There are two ways to define a gigabyte.   One is vendor way and another one is the computer's  binary powers of two definition  method. When you buy a "500 Gigabyte" hard drive, the vendor defines it using the  decimal  powers of ten definition  of the "Giga" prefix. 500 * 10 9 bytes = 500,000,000,000 = 500 Gigabytes But the computers operating system determines the size of the drive using the computer's  binary powers of two definitions  of the "Giga" prefix: 465 * 2 30 bytes = 499,289,948,160 = 465 Gigabytes/ Gibibytes If you're wondering where 35 Gigabytes of your 500 Gigabyte drive just disappeared too, you're not alone. It's  an old trick by hard drive makers  -- they intentionally use  the official SI definitions  of the Giga prefix so they can inflate the sizes of their hard drives, at least on paper.  Ideally, we should refer to binary prefix when calculating sizes of storage devices as this makes mo...

What are the useful nvram settings in macOS ?

The OS X boot arguments are useful for troubleshooting problems with system startup and how the system behaves when running. sudo nvram boot-args="-v" :  This command will set the system to always boot to verbose mode, so we do not need to hold Command + V at system startup. sudo nvram boot-args="-x" :  This will set the system to always boot into Safe Mode. sudo nvram boot-args="-s" :  This command will boot the system into single user mode without needing to hold Command-S at system startup. sudo nvram boot-args="iog=0x0"  :   when you close the display but connect the system to an external monitor and keyboard the system will stay awake. After running this command, when connecting an external monitor, the internal display will be disabled, which can be beneficial in some situations such as those where you are mirroring your desktop but wish to run the external display at a higher resolution than your laptop can run. sudo nvram b...