[HOW-TO] ADB / ADB setup / APP Pushing / More coming [WIP][UPDATED 8/13/13]

Search This thread

bigtoysrock

Senior Member
Jul 28, 2010
6,614
7,956
Leander,TX
HOW-TO
**Easy ADB / APP Pushing / More Coming Soon**


**DISCLAIMER** I accept no responsibility if you brick, blow up or burn up your device, you are choosing to follow this and making your own decision**


I have been a long time android user and forum user. The goal here is to create a simple How-To guide for some of you new to android or just new to flashing. This stems from myself being on these forums and helping users fix and troubleshoot things. My goal is to give you some basics to help with testing or troubleshooting and to teach you a thing or two. There will be several sections and updates along the way. The Note 2 will be used as the device, but these can be done on most other devices as well.




**Easy ADB**
Thanks @kennyglass123, @CNexus and @gruesomewolf
Code:
This was thought of the other night when kennyglass123 and CNexus 
were trying to get recovery to mount storage. I had a idea, Why not 
make a simple way to get a ADB log when trouble shooting, instead 
of using an app from the market. Plus it will pull a log upon boot, ever 
had it where your testing something and it wont boot and the Developer 
wants you to get a log, but you either don't have ADB or know how to 
use ADB. This is for you!! Thanks goes to Kenny Glass, CNexus for the 
idea and Gruesomewolf for the bat file edit.

What you need
Windows PC
Android device
Easy ADB.zip attached to this post

Whats included
Your basic ADB parts to be able to run without needing the SDK installed
LOG.bat file
Reboot.bat (Reboots device)
Recovery.bat (Sends device to recovery)
Download mode.bat (Sends device to download mode (ODIN mode))

How to record log cat using LOG.bat
You will download the zip
Extract to your desktop for easy access
Plug your device in to your PC
Open the ADB folder
Right click the LOG bat file, select run as admin (might not need to)
It will open a command window
Select ANY key to continue or control-c to quit
Wait for it to return to press any key to continue
Now you will have a text file called LOG, that is you LOG cat using ADB
You are now done and can send it to whomever or read it over yourself.



**Pushing system apps (Root Needed) (Will be posting screencasts of this also)**

Have you come across someone posting something or telling you to push this app? I know I push them all the time. This can be used for MORE than just apps!! You can push just about everything. This will cover pushing a system app to the /system/app folder AND pushing a framework.jar to /system/framework folder. I will cover this using Root Explorer (paid) and ES File (free)

Code:
What you need
Android device
A file explorer with root access (Root Explorer, ES File or any others)
Whatever file, apk or etc you need to install

How to push a system app
Download Root Explorer or ES File from the store

(Root Explorer Instructions)
Open Root Explorer
Grant SU permissions
Navigate to the app you are going to be pushing (click + at bottom of screen to add EXT SD card tab)
Long press apk
Select copy
Top left tab says root, click and scroll to system folder, click and then click app folder
Bottom of screen says copy here, select that
Now scroll to the apk you just copied there and long press it
Select permissions, change them to only having the first vertical row and top of middle row checked (Attached Screenshot)
Click OK
Press home button
Now reboot to recovery and wipe cache and dalvik cache, then reboot.

(ES File Instructions)
Open ES File
Top left is a device/globe icon
Select tools, root explorer, Mount R/W
Grant SU permissions
Click device/globe
Select Local and then the SD card where the apk your wanting to install is located
Go to the folder when the apk is
Long press it and select copy
Now press the device/globe again and select local and then device
Scroll to system folder, click it
Now click app folder
Bottom of the screen, select paste
Scroll to the apk you just copied and long press it
Bottom right is more, select that then properties
Now you will change permissions to first vertical row and top middle checked only (attached Screenshot)
Click OK
Press home button
Now reboot to recovery and wipe cache and dalvik cache, then reboot.



Code:
Pushing System framework and other system files (Root Needed)
[Notice you will move to system folder and change permissions there, So if the device reboots or things lockup, you have already changed permissions and can just go to recovery and do your wipes]

(Root Explorer Instructions)
Open Root Explorer
Grant SU permissions
Navigate to the file you are going to be pushing (click + at bottom of screen to add EXT SD card tab)
Long press the file name
Select copy
Top left tab says root, click and scroll to system folder
Bottom of screen says copy here, select that (Place file here fist so you can change permissions now)
Now scroll to the file you just copied there and long press it
Select permissions, change them to only having the first vertical row and top of middle row checked (Attached Screenshot) (or if there is different permissions change accordingly)
Click OK
Scroll to the file you installing
Long press and select MOVE
Now open the folder or folders the file belongs in (framework for framework.jar for example)
Bottom left click move here
Press home button
Now reboot to recovery and wipe cache and dalvik cache, then reboot.

(ES File instructions)
Open ES File
Top left is a device/globe icon
Select tools, root explorer, Mount R/W
Grant SU permissions
Click device/globe
Select Local and then the SD card where the file your wanting to install is located
Go to the folder where the file is
Long press it and select copy
Now press the device/globe again and select local and then device
Scroll to system folder, click it
Bottom of the screen select paste
Scroll to the file you just copied and long press it
Bottom right is more, select that then properties
Now you will change permissions to first vertical row and top middle checked only (attached Screenshot)(or if there is different permissions change accordingly)
Click OK
Scroll to the file your installing
Long press it and select cut
Now open the folder or folders the file belongs in (framework for framework.jar for example)
Bottom of the screen select paste
Press home button
Now reboot to recovery and wipe cache and dalvik cache, then reboot.


**Coming Soon**
Code:
How to remove system apps before flashing (Debloating) 

How to add your own apps to a rom before flashing 

Some of you know me and that I have ported "Goodness Noteworthy" to Verizon, T-Mobile and AT&T on the Note 2, So I may do a guide on porting roms from or to other carriers. Although I have not tried a International rom yet.

If you have suggestions or things you would like to see here, please post or PM me.
 
Last edited:

bigtoysrock

Senior Member
Jul 28, 2010
6,614
7,956
Leander,TX
[HOW-TO] ADB / APP Pushing / More coming [WIP]

Setting up JDK and SDK for ADB use.


Whats is ADB?
ADB or ANDROID DEBUG BRIDGE is a command-line utility that is often used to communicate over the debug channel with a connected phone or virtual device (emulator). ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps and more...


What is needed
Windows PC (using Win7 64bit as example)
Java JDK HERE
Android SDK HERE
Android device


**Setup for Java JDK**
Download the Windows x86 or x64 .exe from HERE . Run the exe and let it install to default location


**Error that SDK does not see Java installed**
Code:
I and many others have had to create a Enviroment Variable so the Android SDK will see the Java JDK.
After java has installed
Click start menu
Right click computer
Select properties
Top left at the bottom of the list is Advanced System Settings, select that
System properties will open and bottom right will be a Enviroment Variables button, select that
A popup will apper (Enviroment Variables)
Select New System variables (bottom section)
Variable name will be JAVA_HOME, case sensitive
Variable value will be C:\Program Files\Java\jre7
Select OK
Select OK again and it will close Environment Variables window
Now in the System Properties window, if the apply button on bottom right is not clickable, we need to make it clickable
So what I do is make a small change to the computer name tab, I just delete one letter from the name and the type the 
same letter (you do not actually need to change the name) and the apply button is now clickable, do so.
Now you might want to reboot your PC
Now that's set for when you go to install SDK it will see Java.

**Now to install Android SDK**
Download the SDK from HERE. Towards the bottom of the page is "Download other platforms", select that. Scroll to "SDK Tools Only" section and in the Windows section select the installer.exe. Now you double click and run the installer


**Setup Android SDK**​
Code:
Open this file path C:\Program files (x86)\Android\android-sdk and double click SDK Manager
It will open, top left is a Tools folder which has "Android SDK Tools" and "Android SDk Platform-tools" in it, check mark all 3 boxes
Bottom right is Install packages button, click it and accept liscences
Now you can navigate to the platform-tools folder and you will see adb now
Make sure you have you device drivers installed which I hope you would have already
Open settings on your device, scroll to Developer options and enable USB debugging
Plug device into PC and let drivers update/install
Now in the window where adb is, press shift+right click and select "Open command window here"
Type adb devices, if you have a device connected and it does not return a device, you need to install again.
If it does return a device you now can use adb for a veritey of functions, some of which I will cover.


***Tomorrow I will add some ADB commands along with what their functions are***
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    HOW-TO
    **Easy ADB / APP Pushing / More Coming Soon**


    **DISCLAIMER** I accept no responsibility if you brick, blow up or burn up your device, you are choosing to follow this and making your own decision**


    I have been a long time android user and forum user. The goal here is to create a simple How-To guide for some of you new to android or just new to flashing. This stems from myself being on these forums and helping users fix and troubleshoot things. My goal is to give you some basics to help with testing or troubleshooting and to teach you a thing or two. There will be several sections and updates along the way. The Note 2 will be used as the device, but these can be done on most other devices as well.




    **Easy ADB**
    Thanks @kennyglass123, @CNexus and @gruesomewolf
    Code:
    This was thought of the other night when kennyglass123 and CNexus 
    were trying to get recovery to mount storage. I had a idea, Why not 
    make a simple way to get a ADB log when trouble shooting, instead 
    of using an app from the market. Plus it will pull a log upon boot, ever 
    had it where your testing something and it wont boot and the Developer 
    wants you to get a log, but you either don't have ADB or know how to 
    use ADB. This is for you!! Thanks goes to Kenny Glass, CNexus for the 
    idea and Gruesomewolf for the bat file edit.
    
    What you need
    Windows PC
    Android device
    Easy ADB.zip attached to this post
    
    Whats included
    Your basic ADB parts to be able to run without needing the SDK installed
    LOG.bat file
    Reboot.bat (Reboots device)
    Recovery.bat (Sends device to recovery)
    Download mode.bat (Sends device to download mode (ODIN mode))
    
    How to record log cat using LOG.bat
    You will download the zip
    Extract to your desktop for easy access
    Plug your device in to your PC
    Open the ADB folder
    Right click the LOG bat file, select run as admin (might not need to)
    It will open a command window
    Select ANY key to continue or control-c to quit
    Wait for it to return to press any key to continue
    Now you will have a text file called LOG, that is you LOG cat using ADB
    You are now done and can send it to whomever or read it over yourself.



    **Pushing system apps (Root Needed) (Will be posting screencasts of this also)**

    Have you come across someone posting something or telling you to push this app? I know I push them all the time. This can be used for MORE than just apps!! You can push just about everything. This will cover pushing a system app to the /system/app folder AND pushing a framework.jar to /system/framework folder. I will cover this using Root Explorer (paid) and ES File (free)

    Code:
    What you need
    Android device
    A file explorer with root access (Root Explorer, ES File or any others)
    Whatever file, apk or etc you need to install
    
    How to push a system app
    Download Root Explorer or ES File from the store
    
    (Root Explorer Instructions)
    Open Root Explorer
    Grant SU permissions
    Navigate to the app you are going to be pushing (click + at bottom of screen to add EXT SD card tab)
    Long press apk
    Select copy
    Top left tab says root, click and scroll to system folder, click and then click app folder
    Bottom of screen says copy here, select that
    Now scroll to the apk you just copied there and long press it
    Select permissions, change them to only having the first vertical row and top of middle row checked (Attached Screenshot)
    Click OK
    Press home button
    Now reboot to recovery and wipe cache and dalvik cache, then reboot.
    
    (ES File Instructions)
    Open ES File
    Top left is a device/globe icon
    Select tools, root explorer, Mount R/W
    Grant SU permissions
    Click device/globe
    Select Local and then the SD card where the apk your wanting to install is located
    Go to the folder when the apk is
    Long press it and select copy
    Now press the device/globe again and select local and then device
    Scroll to system folder, click it
    Now click app folder
    Bottom of the screen, select paste
    Scroll to the apk you just copied and long press it
    Bottom right is more, select that then properties
    Now you will change permissions to first vertical row and top middle checked only (attached Screenshot)
    Click OK
    Press home button
    Now reboot to recovery and wipe cache and dalvik cache, then reboot.



    Code:
    Pushing System framework and other system files (Root Needed)
    [Notice you will move to system folder and change permissions there, So if the device reboots or things lockup, you have already changed permissions and can just go to recovery and do your wipes]
    
    (Root Explorer Instructions)
    Open Root Explorer
    Grant SU permissions
    Navigate to the file you are going to be pushing (click + at bottom of screen to add EXT SD card tab)
    Long press the file name
    Select copy
    Top left tab says root, click and scroll to system folder
    Bottom of screen says copy here, select that (Place file here fist so you can change permissions now)
    Now scroll to the file you just copied there and long press it
    Select permissions, change them to only having the first vertical row and top of middle row checked (Attached Screenshot) (or if there is different permissions change accordingly)
    Click OK
    Scroll to the file you installing
    Long press and select MOVE
    Now open the folder or folders the file belongs in (framework for framework.jar for example)
    Bottom left click move here
    Press home button
    Now reboot to recovery and wipe cache and dalvik cache, then reboot.
    
    (ES File instructions)
    Open ES File
    Top left is a device/globe icon
    Select tools, root explorer, Mount R/W
    Grant SU permissions
    Click device/globe
    Select Local and then the SD card where the file your wanting to install is located
    Go to the folder where the file is
    Long press it and select copy
    Now press the device/globe again and select local and then device
    Scroll to system folder, click it
    Bottom of the screen select paste
    Scroll to the file you just copied and long press it
    Bottom right is more, select that then properties
    Now you will change permissions to first vertical row and top middle checked only (attached Screenshot)(or if there is different permissions change accordingly)
    Click OK
    Scroll to the file your installing
    Long press it and select cut
    Now open the folder or folders the file belongs in (framework for framework.jar for example)
    Bottom of the screen select paste
    Press home button
    Now reboot to recovery and wipe cache and dalvik cache, then reboot.


    **Coming Soon**
    Code:
    How to remove system apps before flashing (Debloating) 
    
    How to add your own apps to a rom before flashing 
    
    Some of you know me and that I have ported "Goodness Noteworthy" to Verizon, T-Mobile and AT&T on the Note 2, So I may do a guide on porting roms from or to other carriers. Although I have not tried a International rom yet.

    If you have suggestions or things you would like to see here, please post or PM me.
    14
    [HOW-TO] ADB / APP Pushing / More coming [WIP]

    Setting up JDK and SDK for ADB use.


    Whats is ADB?
    ADB or ANDROID DEBUG BRIDGE is a command-line utility that is often used to communicate over the debug channel with a connected phone or virtual device (emulator). ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps and more...


    What is needed
    Windows PC (using Win7 64bit as example)
    Java JDK HERE
    Android SDK HERE
    Android device


    **Setup for Java JDK**
    Download the Windows x86 or x64 .exe from HERE . Run the exe and let it install to default location


    **Error that SDK does not see Java installed**
    Code:
    I and many others have had to create a Enviroment Variable so the Android SDK will see the Java JDK.
    After java has installed
    Click start menu
    Right click computer
    Select properties
    Top left at the bottom of the list is Advanced System Settings, select that
    System properties will open and bottom right will be a Enviroment Variables button, select that
    A popup will apper (Enviroment Variables)
    Select New System variables (bottom section)
    Variable name will be JAVA_HOME, case sensitive
    Variable value will be C:\Program Files\Java\jre7
    Select OK
    Select OK again and it will close Environment Variables window
    Now in the System Properties window, if the apply button on bottom right is not clickable, we need to make it clickable
    So what I do is make a small change to the computer name tab, I just delete one letter from the name and the type the 
    same letter (you do not actually need to change the name) and the apply button is now clickable, do so.
    Now you might want to reboot your PC
    Now that's set for when you go to install SDK it will see Java.

    **Now to install Android SDK**
    Download the SDK from HERE. Towards the bottom of the page is "Download other platforms", select that. Scroll to "SDK Tools Only" section and in the Windows section select the installer.exe. Now you double click and run the installer


    **Setup Android SDK**​
    Code:
    Open this file path C:\Program files (x86)\Android\android-sdk and double click SDK Manager
    It will open, top left is a Tools folder which has "Android SDK Tools" and "Android SDk Platform-tools" in it, check mark all 3 boxes
    Bottom right is Install packages button, click it and accept liscences
    Now you can navigate to the platform-tools folder and you will see adb now
    Make sure you have you device drivers installed which I hope you would have already
    Open settings on your device, scroll to Developer options and enable USB debugging
    Plug device into PC and let drivers update/install
    Now in the window where adb is, press shift+right click and select "Open command window here"
    Type adb devices, if you have a device connected and it does not return a device, you need to install again.
    If it does return a device you now can use adb for a veritey of functions, some of which I will cover.


    ***Tomorrow I will add some ADB commands along with what their functions are***
    5
    Going to try to add some ADB commands tomorrow as is my next day off. I'll get the screen shots and screen casts done tonight.
    3
    Nice Thread, we be a huge help to many. :good:
    3
    Post 2 has been updated with how to setup ADB and going to add some commands and what their functions are.