5,595,000 Members 38,593 Now Online
XDA Developers Android and Mobile Development Forum

Simple "Send/Install to Phone" Context menu

Tip us?
 
nicandris
Old
(Last edited by nicandris; 11th February 2014 at 08:50 PM.)
#1  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 195
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Default Simple "Send/Install to Phone" Context menu

I know a lot of you are bored of mounting SDcard all the time just to add/install a file on your phone, and running commands (push) through ADB is a bit waste of time so i created a small registry adition for Windows to be able to send/install any file at your Phone with just a click.

Download the zip below and edit EDITME.reg with your apropriate SDK directory and just run SendToPhone.bat/Install to Phone.bat.

Send to Phone
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Send to Phone]

[HKEY_CLASSES_ROOT\*\shell\Send to Phone\command]
@="<SDK DIRECTORY GOES HERE!>\\platform-tools\\adb.exe push %1 /sdcard/"

NOTICE! MS for some reason requires double slashes between dirs

EXAMPLE: @="G:\\sdk\\platform-tools\\adb.exe push %1 /sdcard/"
Install to Phone
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.apk\shell\Install to Phone]

[HKEY_CLASSES_ROOT\.apk\shell\Install to Phone\command]
@="<SDK DIRECTORY GOES HERE!>\\platform-tools\\adb.exe install %1"

NOTICE! MS for some reason requires double slashes between dirs

EXAMPLE: @="G:\\sdk\\platform-tools\\adb.exe install %1"
Attached Files
File Type: zip Send To Phone.zip - [Click for QR Code] (434 Bytes, 249 views)
File Type: zip Install to Phone.zip - [Click for QR Code] (439 Bytes, 347 views)
File Type: zip install send to phone.zip - [Click for QR Code] (488 Bytes, 351 views)
The Following 11 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
dancer_69
Old
#2  
Senior Member
Thanks Meter 191
Posts: 1,813
Join Date: Jan 2007
Excellent idea, thanks
LightsOnOff

Torch directly from shortcut!
 
marak210
Old
#3  
marak210's Avatar
Junior Member
Thanks Meter 0
Posts: 13
Join Date: May 2010
Location: Sydney
awesome, will this work with all files?
 
nicandris
Old
#4  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 195
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
yep! all files except folders. if you want it specificaly for lets say apks, change "*" to ".apk"
 
OneTwoPi
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Jun 2010
Quote:
Originally Posted by nicandris View Post
NOTICE! MS for some reason requires double slashes between dirs
Because \ is the default for special characters when interpreting strings i.e. \t is typically a tab-character. To use \ in a string you then have double \\.
 
mpg187
Old
#6  
mpg187's Avatar
Senior Member
Thanks Meter 1
Posts: 137
Join Date: Jan 2009

Is there a program you installed that made the APK have an icon, or did you manually edit the file associations?
RIP HTC Touch Diamond. Various other HTCs with one rooted.
Admin of OP420 Technology
 
nicandris
Old
#7  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 195
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by mpg187 View Post

Is there a program you installed that made the APK have an icon, or did you manually edit the file associations?
haha no it's just an image that i renamed from png to apk :P
 
pakjebakmeel
Old
#8  
pakjebakmeel's Avatar
Senior Member
Thanks Meter 82
Posts: 152
Join Date: Apr 2012
Location: Ankeveen
Quote:
Originally Posted by OneTwoPi View Post
Because \ is the default for special characters when interpreting strings i.e. \t is typically a tab-character. To use \ in a string you then have double \\.
It's called an escape character. Brilliant idea though, simple yet very effective and time saving.. I read it and thought "duh".

Where's regedit on my Gentoo box anyways?
 
darkerm
Old
#9  
darkerm's Avatar
Senior Member
Thanks Meter 51
Posts: 515
Join Date: Feb 2012
Location: Dhaka
Quote:
Originally Posted by nicandris View Post
I know a lot of you are bored of mounting SDcard all the time just to add/install a file on your phone, and running commands (push) through ADB is a bit waste of time so i created a small registry adition for Windows to be able to send/install any file at your Phone with just a click.

Download the zip below and edit EDITME.reg with your apropriate SDK directory and just run SendToPhone.bat/Install to Phone.bat.

Send to Phone
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Send to Phone]

[HKEY_CLASSES_ROOT\*\shell\Send to Phone\command]
@="<SDK DIRECTORY GOES HERE!>\\tools\\adb.exe push %1 /sdcard/"

NOTICE! MS for some reason requires double slashes between dirs

EXAMPLE: @="G:\\sdk\\tools\\adb.exe push %1 /sdcard/"
Install to Phone
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.apk\shell\Install to Phone]

[HKEY_CLASSES_ROOT\.apk\shell\Install to Phone\command]
@="<SDK DIRECTORY GOES HERE!>\\tools\\adb.exe install %1"

NOTICE! MS for some reason requires double slashes between dirs

EXAMPLE: @="G:\\sdk\\tools\\adb.exe install %1"
Can you tell me what exactly is "SDK directory"?
I didn't install Android SDK too, will I have to install it to use this tweak in my PC?
Also, is there any way to show "APK Thumbnail in Win 7" ?
Xperia S (Black)
eXistenZ Ultra 1.3.5
Unlocked Bootloader, Rooted
I am a Hardcore Mobile Gamer
 
nicandris
Old
#10  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 195
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by darkerm View Post
Can you tell me what exactly is "SDK directory"?
I didn't install Android SDK too, will I have to install it to use this tweak in my PC?
Also, is there any way to show "APK Thumbnail in Win 7" ?
SDK directory is where the sdk is installed. if you didnt install it, it is where adb.exe is located
Download adb from here and link to that directory

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Get the AOSP Lock Screen on Your ICS-Powered Samsung Device

Android is the only popular mobile operating system that allows users, … more

Motorola Droid RAZR HD and M to Receive KitKat in a “Few More Weeks”

Verizon and Motorola shocked us all back in November when … more

[APK] YouTube Update to 5.6 Now Lets You Cast Live Video to Your Chromecast

Earlier today, we talked about how Google brought two new apps to … more

[OTA Captured] Android 4.4.2 Now Rolling Out to the AT&T Galaxy S 4 Active

A little under two months ago, AT&T started rolling out … more