Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,180 Members 41,690 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 198
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, 259 views)
File Type: zip Install to Phone.zip - [Click for QR Code] (439 Bytes, 365 views)
File Type: zip install send to phone.zip - [Click for QR Code] (488 Bytes, 362 views)
The Following 12 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
dancer_69
Old
#2  
Senior Member
Thanks Meter 222
Posts: 1,862
Join Date: Jan 2007
Excellent idea, thanks
********************************************




My apps

Slide Dial - Dial from anywhere!


Torch directly from shortcut!
LightsOnOff
 
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 198
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 198
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: 154
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 52
Posts: 523
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 198
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


Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more

Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more

Pushbullet Updated with SMS Send Ability

Pushbullet is one of thoseapplications that every Android lover should have installed on his or … more