[TOOLS][ADB][Windows]Push files to device through ADB*now include deodex tools*

Search This thread

suwandiapr

Senior Member
Jan 11, 2012
173
182
Semarang
See my previous post before in post#2
This is a simple batch file using ADB..
With this you can use ADB to manage your file or APK , Backup, Push Your File to device, or pull file from device..
ADB Work on Stand by Mode (Home Screen) or in Recovery Mode, just set it up..
Extract ADBTOOLSv1.0.1.zip and you will find :
command.bat : Windows Batch Command
_BACKUP_OUT : folder where your backup process done and made

_FLASHING_OUT:
folder for flashing your :
kernel (place your boot.img here)
recovery (place your recovery.img here),
modem (place your modem.bin here)--only for gt p7300

_MODDING_FILE: Folder where your file were created by PULL process
Folder where file for PUSH process should be here


_BATCH_INSTALL : place your APK here for batch install

tools: ADB.exe and busybox binary

success_APK : A folder created for All apk from _BATCH_INSTALL move here after instalation.

Notes:
ADB can access all file from device from CWM Recovery, especially CWMR 5.5.0.4
ALL you need to do is:
From Recovery menu, you need to mount /data and /system for ADB working..
THEN, From Command Prompt set ADB Mode to "recovery".(This Batch File set ADB mode to "Home Screen" by default)
So when you use ADB from Online device ( I mean a stand by device).. you dont need to change ADB Mode..
After you set up, you can use ADB as you like..


Code:
  =============================================================================
  :::: ADB TOOLS FOR GT P7300 and P7310 by suwandiapr
  -----------------------------------------------------------------------------
  | [*] Before use read this:                                                            
  |    --make sure you have installed adb drivers for your device             
  |    --enable "USB DEBUGGING"                                               
  |         from (Menu\Settings\Applications\Development)                   
  |    --enable "UNKNOWN SOURCES"                                             
  |         from (Menu\Settings\Applications)                                
  |    --increase screen timeout to 10 minutes                                
  |    --connect USB cable to PHONE and then connect to PC                   
  |    --MAKE SURE YOU HAVE A ROOTED DEVICE AND BUSYBOX                       
  |    --Place the right file in the right folder                            
  |    --Some feature like Flashing need more tester..so please be aware      
  |    --If you use adb recovery feature, set ADB Mode to recovery            
  |          mount /data and /system from your device recovery               
  |    --If you use adb from homescreen, set ADB Mode to HomeScreen          
  |    --All you Do is your own Risk, use with carefull                       
  -----------------------------------------------------------------------------
     ****Turn on the screen and allow superuser permission when asked!****

  _____________________________________________________________________________
  | Current MODDING FILE: NONE  | ADB MODE :HomeScreen | sdcard path: /sdcard/|
  =============================================================================  
  :::: ADB PULL ::::
  =============================================================================
  0   Pulling file from /data ( see result in _MODDING_FILE)
  1   Pulling file from /system partition ( see result in _MODDING_FILE)
  2   Pulling file from SDcard ( see result in _MODDING_FILE)
  3   Backup recovery ( see result in _BACKUP_OUT)
  4   Backup Kernel ( see result in _BACKUP_OUT)
  5   Backup modem (for P7300 only-see result in _BACKUP_OUT)
  6   Backup /system  (tar format-see result in _BACKUP_OUT)
  7   Backup /efs  (tar and .img format-see result in _BACKUP_OUT)
  8   Backup APK from /data/app (tar format-see result in _BACKUP_OUT)
  =============================================================================
  :::: ADB PUSH ::::
  =============================================================================
  9    Pushing file to /data ( from _MODDING_FILE to device)
  10   Pushing file to /system ( from _MODDING_FILE to device)
  11   Flashing recovery ( from _FLASHING_OUT to device)
  12   Flashing Kernel ( from _FLASHING_OUT to device)
  13   Flashing modem for GT P7300 ( from _FLASHING_OUT to device)
  =============================================================================
  :::: Setting ::::
  =============================================================================
  14   Set current working File ( for PUSH and PULL )
  15   Install busybox on device (need root) 
  16   Set ADB mode (if you on recovery mode)
  17   Install apk ( from _MODDING_FILE to device)
  18   Install batch apk ( from _BATCH_INSTALL to device)
  =============================================================================
  :::: Reboot Menu ::::
  =============================================================================
  19   Reboot System
  20   Boot Into Recovery
  21   Reboot Bootloader
  22   Quit
 

Attachments

  • FLASHER.rar
    507.8 KB · Views: 2,553
  • ADBTOOLSv1.0.1.zip
    850.1 KB · Views: 10,741
  • convertEXT4.zip
    4.8 MB · Views: 2,494
  • ADBTOOLv1.2.rar
    6.3 MB · Views: 7,943
  • dex_editor.zip
    1,015.4 KB · Views: 1,029
  • adbtoolsV1.3.zip
    5.4 MB · Views: 4,335
Last edited:

suwandiapr

Senior Member
Jan 11, 2012
173
182
Semarang
My previous post

inspiration from congox case
when you got a problem with bootlop and you forget make a nandroid backup

  • only have file from other ROM with flashable.zip and need to push the file from your computer to device
  • you have a recovery support with mount /system and mount /data (tested on CWM 5.5.0.4 and overcome CWM 5.1.2.6) and you can enter this menu while bootloop happen..


STEP 1 : MANUAL

  • Connect your device with computer
  • From device, Go to recovery - mounts and storage - mount /system and mount /data
  • From your computer go to adb terminal and type this
    Code:
    adb shell "ls /data/media/"
  • If you can see list of file from your device sdcard, so you make adb work for your device ..
  • Place your zip file on your path, says on C://backup.zip and you want to copy the file to /sdcard/download/ and type this code
    Code:
    adb push backup.zip /data/media/download/.
  • wait for copying progress done..
  • After you done with moving file to device sdcard, check content of your sdcard with this code
    Code:
    adb shell "ls /data/media/download/"
  • When you found your file from list, you can flash backup.zip from recovery

STEP 2 : WINDOWS BATCH FILE
I made a simple Batch File for windows (sorry i dont have MAC or LINUX distro) , this file will make a folder with name "emergency" in SDCARD and with your files inside that.

  1. Extract the FLASHER.rar somewhere on your Local folder,example: on your " Desktop" Folder
  2. in folder "FLASHER" you will find runme.bat and folder "files"
  3. Rename your file ((flashable.zip files you want to send through ADB) to "backup.zip" and then Put your file into this path /FLASHER/files/myfiles/ (just replace the existing "backup.zip" with files from yours)
  4. Connect your tab with Computer
  5. Reboot into Recovery Menu from your device
  6. From menu Mounts and Storage choose mount /system and /data
  7. From your Computer go To Folder flasher and klik runme.bat
  8. Follow the instruction on window untill copying process done and device reboot to recovery again (copying process will take a minutes depend on your file size)
  9. Now you can flash a emergency ROM from recovery


Window instruction
Code:
 -----------------------------------------------------------------------------
	          ADB EMERGENCY COPYING TOOL for TAB 8,9
                    created by SUWANDIAPR
 -----------------------------------------------------------------------------

[*] This script will:
      (1) COPY YOUR FILE FROM COMPUTER TO SDCARD/emergency/*
      (2) CHECKING YOUR CONNECTED DEVICE DIRECTORY

[*] Before u begin:   
      (1) make sure u have installed adb drivers for ur device
      (2) make sure u have installed CWM 5.5.0.4 ON YOUR DEVICE
      (3) connect USB cable to PHONE and then connect to PC
      (4) Rename your Flashable .zip file with "backup.zip"
          and place inside "myfiles" folder on your Computer
      (5) from Recovery Menu, Choose "Mounts and storage" then
                    -mount /system and -mount /data
      (6) CONNECT YOUR TAB WITH PC WHILE ON RECOVERY MENU  
 ---------------------------------------------------------------  
CONFIRM ALL ABOVE

Sorry for my Bad english, if there is somebody want to correct every words i use , im very welcome and will change with the proper words and sentence..

Hope this help someone..
 
Last edited:

nail16

Senior Member
Nov 20, 2011
825
302
Mumbai
I needed some help with mounting the system using adb through a batch file.

I use this command
adb -d shell mount -o remount rw /system

But the mounting fails (I have a rooted phone )
pleas help me I know this is off topic :)
 

glitschi667

Senior Member
Mar 14, 2011
119
333
2 possible reasons for this command to fail:

- /default.prop (on the phone) contains the following line: "ro.secure=1". Then you need another boot.img (in fact just a modified ramdisk). look for "unpack-bootimg.pl" or "unpackbootimage" you may find a guide how to do this manually (not too easy). A rooted kernel would also do the trick.
you can check your default prob with this command "adb shell cat /default.prop".

- in some cases mount requires more parameters. try "adb shell mount" and look for the line containing "/system". In front of system is the "device-name". in my case the mount command would look like this:

mount -o remount,rw /block/dev/mmcblk0p24 /system


hope this helps and sorry for answering off-topic questions....
 
Last edited:
  • Like
Reactions: nail16

suwandiapr

Senior Member
Jan 11, 2012
173
182
Semarang
I needed some help with mounting the system using adb through a batch file.

I use this command
adb -d shell mount -o remount rw /system

But the mounting fails (I have a rooted phone )
pleas help me I know this is off topic :)
you can use busybox and call the binary from the shell
i assume that your device in normal mode ( in home screen)..
here some example..
Code:
su
adb push busybox /tmp/.
adb shell "chmod 755 /tmp/busybox"
adb shell "tmp/busybox mount -o remount,rw /system"
after you type "su" superuser will prompt a request, choose "allow".


2 possible reasons for this command to fail:

- /default.prop (on the phone) contains the following line: "ro.secure=1". Then you need another boot.img (in fact just a modified ramdisk). look for "unpack-bootimg.pl" or "unpackbootimage" you may find a guide how to do this manually (not too easy). A rooted kernel would also do the trick.
you can check your default prob with this command "adb shell cat /default.prop".

- in some cases mount requires more parameters. try "adb shell mount" and look for the line containing "/system". In front of system is the "device-name". in my case the mount command would look like this:

mount -o remount,rw /block/dev/mmcblk0p24 /system


hope this helps and sorry for answering off-topic questions....
yes you right glistchi, samsung lock adb root on new firmware on my SG- Note..
And make me flash an older firmware for rooting..
 

badagila

Senior Member
Apr 5, 2013
653
121
Iloilo City
www.facebook.com
i got this error

please help
 

Attachments

  • log.txt
    17.1 KB · Views: 30
  • Untitled.png
    Untitled.png
    238.6 KB · Views: 194

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    See my previous post before in post#2
    This is a simple batch file using ADB..
    With this you can use ADB to manage your file or APK , Backup, Push Your File to device, or pull file from device..
    ADB Work on Stand by Mode (Home Screen) or in Recovery Mode, just set it up..
    Extract ADBTOOLSv1.0.1.zip and you will find :
    command.bat : Windows Batch Command
    _BACKUP_OUT : folder where your backup process done and made

    _FLASHING_OUT:
    folder for flashing your :
    kernel (place your boot.img here)
    recovery (place your recovery.img here),
    modem (place your modem.bin here)--only for gt p7300

    _MODDING_FILE: Folder where your file were created by PULL process
    Folder where file for PUSH process should be here


    _BATCH_INSTALL : place your APK here for batch install

    tools: ADB.exe and busybox binary

    success_APK : A folder created for All apk from _BATCH_INSTALL move here after instalation.

    Notes:
    ADB can access all file from device from CWM Recovery, especially CWMR 5.5.0.4
    ALL you need to do is:
    From Recovery menu, you need to mount /data and /system for ADB working..
    THEN, From Command Prompt set ADB Mode to "recovery".(This Batch File set ADB mode to "Home Screen" by default)
    So when you use ADB from Online device ( I mean a stand by device).. you dont need to change ADB Mode..
    After you set up, you can use ADB as you like..


    Code:
      =============================================================================
      :::: ADB TOOLS FOR GT P7300 and P7310 by suwandiapr
      -----------------------------------------------------------------------------
      | [*] Before use read this:                                                            
      |    --make sure you have installed adb drivers for your device             
      |    --enable "USB DEBUGGING"                                               
      |         from (Menu\Settings\Applications\Development)                   
      |    --enable "UNKNOWN SOURCES"                                             
      |         from (Menu\Settings\Applications)                                
      |    --increase screen timeout to 10 minutes                                
      |    --connect USB cable to PHONE and then connect to PC                   
      |    --MAKE SURE YOU HAVE A ROOTED DEVICE AND BUSYBOX                       
      |    --Place the right file in the right folder                            
      |    --Some feature like Flashing need more tester..so please be aware      
      |    --If you use adb recovery feature, set ADB Mode to recovery            
      |          mount /data and /system from your device recovery               
      |    --If you use adb from homescreen, set ADB Mode to HomeScreen          
      |    --All you Do is your own Risk, use with carefull                       
      -----------------------------------------------------------------------------
         ****Turn on the screen and allow superuser permission when asked!****
    
      _____________________________________________________________________________
      | Current MODDING FILE: NONE  | ADB MODE :HomeScreen | sdcard path: /sdcard/|
      =============================================================================  
      :::: ADB PULL ::::
      =============================================================================
      0   Pulling file from /data ( see result in _MODDING_FILE)
      1   Pulling file from /system partition ( see result in _MODDING_FILE)
      2   Pulling file from SDcard ( see result in _MODDING_FILE)
      3   Backup recovery ( see result in _BACKUP_OUT)
      4   Backup Kernel ( see result in _BACKUP_OUT)
      5   Backup modem (for P7300 only-see result in _BACKUP_OUT)
      6   Backup /system  (tar format-see result in _BACKUP_OUT)
      7   Backup /efs  (tar and .img format-see result in _BACKUP_OUT)
      8   Backup APK from /data/app (tar format-see result in _BACKUP_OUT)
      =============================================================================
      :::: ADB PUSH ::::
      =============================================================================
      9    Pushing file to /data ( from _MODDING_FILE to device)
      10   Pushing file to /system ( from _MODDING_FILE to device)
      11   Flashing recovery ( from _FLASHING_OUT to device)
      12   Flashing Kernel ( from _FLASHING_OUT to device)
      13   Flashing modem for GT P7300 ( from _FLASHING_OUT to device)
      =============================================================================
      :::: Setting ::::
      =============================================================================
      14   Set current working File ( for PUSH and PULL )
      15   Install busybox on device (need root) 
      16   Set ADB mode (if you on recovery mode)
      17   Install apk ( from _MODDING_FILE to device)
      18   Install batch apk ( from _BATCH_INSTALL to device)
      =============================================================================
      :::: Reboot Menu ::::
      =============================================================================
      19   Reboot System
      20   Boot Into Recovery
      21   Reboot Bootloader
      22   Quit
    1
    2 possible reasons for this command to fail:

    - /default.prop (on the phone) contains the following line: "ro.secure=1". Then you need another boot.img (in fact just a modified ramdisk). look for "unpack-bootimg.pl" or "unpackbootimage" you may find a guide how to do this manually (not too easy). A rooted kernel would also do the trick.
    you can check your default prob with this command "adb shell cat /default.prop".

    - in some cases mount requires more parameters. try "adb shell mount" and look for the line containing "/system". In front of system is the "device-name". in my case the mount command would look like this:

    mount -o remount,rw /block/dev/mmcblk0p24 /system


    hope this helps and sorry for answering off-topic questions....