1. Are you ready for the Galaxy S20? Here is everything we know so far!

adb + hash

Discussion in 'Android Apps & Games' started by andro75, Oct 26, 2020.

  1. andro75

    andro75 Lurker
    Thread Starter

    Hello everyone, I would like to use the adb tool (android debug bridge) to perform android backups, does anyone know if there is the possibility of creating logical and physical copies with the commands (backup and pull of adb or dd and dcfldd for linux) and at the same time have hash the original and the copy executed?
    Can you report the syntax?
    Thank you!
     



    1. Download the Forums for Android™ app!


      Download

       
  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    backup of what is the question. is the device rooted? or is this more of a development question?
     
    bcrichster likes this.
  3. andro75

    andro75 Lurker
    Thread Starter

    Hello, they are two different things, with adb and the abckup and pull commands it is not necessary to root the device and make a logical copy, while if you want to make a physical copy with dd you need to root the device
     
    ocnbrze and bcrichster like this.
  4. bcrichster

    bcrichster ROMinator
    Moderator

    Your best bet with Android backups is usually to install a custom recovery like TWRP (Team Win Recovery Project) and manually make the backups thru that. Nowadays, you don't necessarily need a Rooted device to do so, just an unlocked bootloader in order to install said custom recovery. Attention, Verizon branded devices CAN NOT be Rooted or bootloader unlocked. ..BUT you CAN sometimes bring an unlocked & Rooted device to VZW with their BYOD program. That being said, you usually still need a Rooted device (for permission purposes) to make backups thru adb function anyways.. especially being as you simply CANNOT easily make backups from a phone powered down and/or not booted into the normal system without Root (booted) or custom recovery
     
    ocnbrze likes this.
  5. andro75

    andro75 Lurker
    Thread Starter

    Hi, I'm talking about another use, the backup I mean is a logical or physical backup that can be used as evidence in court for which it is necessary to "crystallize" the backup with a hash to verify that the copy is the same as the original , the speech is quite complex, but what I need is
    -how to backup with adb and backup command (is it possible to calculate the hash?)
    -how to backup with adb and pull command (is it possible to calculate the hash?)
    -how to backup with dd or dcdfldd (can you calculate hash?)
    These are the standards used for this type of business.
     

ADB Shell Command

ADB Shell Command Forum

com.ADBPlugin

This Tasker plugin allows you to send a (series of) ADB Shell command(s) to a remote device (or the device itself) that has ADB over WiFi enabled. This app obviously does need Tasker to work as it's a plugin (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm, this is a paid app with a 7 days free trial). Again, without Tasker it WON'T WORK. Was I clear enough? Anyways... On the target device you can do anything you would normally be able to do when using the terminal or ADB Shell of that device. This includes opening apps, moving files, simulating input et cetera (The sky is the limit and Google is your friend). My app can be used as an action in Tasker and needs to be configured properly when added to a task to work. NOTE: - You can send multiple commands at once by separating them with a ";". - All commands in a single action are automatically followed with an "exit" command so to close the ADB connection. This means that if you want to send multiple commands that are depending on each other, you will need to put them in a single Tasker action and separate them with ";". - If you want multiple actions of my plugin to run after each other in a Tasker task, please keep the timeout set as is. Tasker will continue when the command is sent. - The first time you try to connect to another device via ADB it will ask you if you trust the device. For this plugin to work correctly, you'll need to always "trust this computer". - The output of the console can be viewed and reused from within Tasker. This can be done by accessing %output1, %output2 etc. or by iteration over %output() using a for loop. - The plugin will generate two key files on your device to be able to make a secure ADB connection to the devices. Now for some useful commands! - A command I myself use a lot is to turn my ADB over WiFi enabled AndroidTV (Nvidia SHIELD) on or off by sending the command "input keyevent POWER", this simulates a power button press. - Of course you can vary which key to press, for example to press the arrow keys you can do "input keyevent DPAD_RIGHT" or “…LEFT” etc. - Another simple command is "reboot", which will, you guessed it, reboot the device! You can also put "reboot -p" here to power it down. - A cool thing to be able to do is to launch apps on the device. You will have to Google a bit to find the Main activity of an app. This example will open Chrome on the device: "am start -n com.android.chrome/com.google.android.apps.chrome.Main". - When you fill in “localhost” in the IP address field, every command will be executed on the device itself! This works even without root if you, of course, have ADB over WiFi enabled (can be activated from a pc using “adb tcpip 5555”). Of course there are many other commands, the sky is the limit! This is my first ever published app, so please leave feedback and submit bugs so I can try my best to fix them! Any tips are more than welcome! The idea to create this app came from https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger, which allows the user to connect to a remote device via an interface in the app itself. Please read the description of that app too, it contains some tips on enabling ADB over WiFi. I use the same AdbLib Java library in my app. I use the AdbLib library found at https://github.com/cgutman/AdbLib and use https://github.com/cgutman/AdbLibTest as an example for how to use the library. I adapted this example to work with a given command and converted it to a Tasker plugin. For help, you can email me or visit the XDA-Developers thread at https://forum.xda-developers.com/u/tasker-tips-tricks/plugin-remote-adb-shell-t3562013. This thread also contains some useful tips for accessing the local device running the task without root. Now open source at https://github.com/Jolanrensen/ADBPlugin!

READ MORE
January 16, 2020
Last Updated
3.2
Rating
10K
Installs
Loading...
Similar Threads - adb hash
  1. Bimbumbam
    Replies:
    9
    Views:
    884
  2. N4ty_Kitty
    Replies:
    4
    Views:
    647
  3. Rhemsuda
    Replies:
    2
    Views:
    1,177
  4. АгентГосдепа
    Replies:
    0
    Views:
    4,382
  5. renecito
    Replies:
    1
    Views:
    975
  6. mdsousa
    Replies:
    0
    Views:
    1,164
  7. Sharjeel Arshad
    Replies:
    3
    Views:
    702
  8. StarFlutter
    Replies:
    5
    Views:
    2,766
  9. oldun
    Replies:
    2
    Views:
    1,088
  10. Mubeen Ahmed
    Replies:
    3
    Views:
    2,330

Share This Page

Loading...