Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nicandris
Old
(Last edited by nicandris; 29th June 2010 at 10:41 AM.)
#1  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 176
Posts: 1,097
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!>\\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"
Attached Files
File Type: zip Send To Phone.zip - [Click for QR Code] (434 Bytes, 212 views)
File Type: zip Install to Phone.zip - [Click for QR Code] (439 Bytes, 288 views)
File Type: zip install send to phone.zip - [Click for QR Code] (488 Bytes, 298 views)
The Following 5 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
dancer_69
Old
#2  
Senior Member
Thanks Meter 168
Posts: 1,749
Join Date: Jan 2007
Excellent idea, thanks
 
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 176
Posts: 1,097
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 0
Posts: 127
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. Warranty didn't have anymore so they gave me HTC Magic as a replacement instead... Unrooted because I don't wanna void my extended warranty that I paid for...
Admin of http://operation420.net
 
nicandris
Old
#7  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 176
Posts: 1,097
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
Member
Thanks Meter 34
Posts: 81
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 48
Posts: 458
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)
XZXperience 2
Advance Stock Kernel v.17
I am a Hardcore Mobile Gamer
 
nicandris
Old
#10  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 176
Posts: 1,097
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

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more