Hello xda mates,,
Who wants to have this command in Send to group??
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yeah it makes the life easy,, so no need to search for usb cable just to send some files into android external or internal sdcard..
The principle here is to send files over WiFi port using send to command in windows machine OS..
How to achieve that:
First you need to download the script that I prepared, extract it and follow these steps:
1. Put "adb_Send-to" folder anywhere in your hard drive.
2. Open "ip-address-here.txt" and type your android device WiFi IP address there and save changes.
3. Copy the file "My Android Device.cmd"
4. Go to the following directory:
Code:
%APPDATA%\Microsoft\Windows\SendTo
and paste SHORTCUT of "My Android Device.cmd" there.
5. Open your android device WiFi port and enable ADB WiFi (download from Google Play)
Now on your computer just right click on any file and choose "Send to" to send your file to extSdCard over WiFi..!!!
N.B: If you don't know which ADB WiFi to download from Google Play, I recommend you this one:
Extra:
You can customize the icon and name of the shortcut to your taste..
Tips:
Tip #1
Make IP settings static not DHCP in android device. By doing this you will not need to enter new IP address each time you want to connect over WiFi using this script.
How to do that?
Go to your WiFi networks --> long press your current WiFi connection --> modify network config --> IP settings (static), now put a static IP address that resembles your router gateway except for the last digits and put your gateway (See this picture as an example).
Tip #2
If you would like to send your file into a specific folder in your device, create a folder in the targeted memory sdcard first; let's say you created a folder in internal sdcard called MyStuffs
So what you need to do is to open the script "My Android Device.cmd" and edit this line by Notepad++:
Code:
adb push %1 /storage/sdcard0/
to:
Code:
adb push %1 /storage/sdcard0/[B][COLOR="Blue"]MyStuffs/[/COLOR][/B]
Click to expand...
Click to collapse
and save changes..
You can do the same for external sdcard. Create a folder in external sdcard called for example MyStuffs2 and edit this line in the script by Notepad++:
Code:
adb push %1 /storage/extSdCard/
to:
Code:
adb push %1 /storage/extSdCard/[B][COLOR="Blue"]MyStuffs2/[/COLOR][/B]
Click to expand...
Click to collapse
and save changes..
Tip #3
If you run of some adb problems, check this post here by @kmokhtar79 or this post here for more details. For android 4.2.2 adb troubleshoot, please see this post here.
- Combined Script v1.1 | Download | @ 31/8/2013 - The most recent
Old release:
- Combine Script (Send to Internal or External SdCard), mounting commands included | Download |
- Send to external sdcard script | Download |
- Send to internal sdcard script. | Download |
Change-log:
v1.1 combined script:
- The latest adb engine extracted from android SDK (date 20130729).
- Decrease timeout to exit to 2 seconds after successful sending.
- Increase timeout to exit to 8 seconds after having error for easy reading error debugging.
- Silent daemon connection.
- Added new script lines to get connected device id brand and model.
v1.0 combined script:
- Combined script for external and internal SdCard sending.
- Added mounting commands for both memories; no problem in sending to external sdcard now.
Internal script:
- Switched to internal after having problem with external sdcard sending.
External script:
- The first project idea.
Have a nice day,,
Thanks majdini, I owe you a lot for sharing your android knowledge.
Edit: I got following error while trying to copy a file
Already installed ADB WiFi Widget and gave root permission to.
Code:
already connected to 192.168.1.102:5555
failed to copy 'G:\Kamran\Mobile stuff\App\DCikonZ_1.2.6.1.apk' to '/mnt/extSdCa
rd//DCikonZ_1.2.6.1.apk': Permission denied
already connected to 192.168.1.102:5555
kmokhtar79 said:
Thanks majdini, I owe you a lot for sharing your android knowledge.
Edit: I got following error while trying to copy a file
Already installed ADB WiFi Widget and gave root permission to.
Code:
already connected to 192.168.1.102:5555
failed to copy 'G:\Kamran\Mobile stuff\App\DCikonZ_1.2.6.1.apk' to '/mnt/extSdCa
rd//DCikonZ_1.2.6.1.apk': Permission denied
already connected to 192.168.1.102:5555
Click to expand...
Click to collapse
OK,, for me I think it is mounting problem
in android device, open RootExplorer and navigate to '/mnt/extSdCard/ and mount it as R/W and try again (I think mostly this is your problem!)
if still you have the same problem, open my script and change the file destination to internal memory
Code:
adb push %1 /mnt/extSdCard/
change it to:
Code:
adb push %1 /sdcard/
and try again
tip: remember to use a static IP as per your connection, so you will not need to change IP every time
majdinj said:
Code:
adb push %1 /mnt/extSdCard/
change it to:
Code:
adb push %1 /sdcard/
Click to expand...
Click to collapse
:good:
This did the trick to me, thanks again.
kmokhtar79 said:
:good:
This did the trick to me, thanks again.
Click to expand...
Click to collapse
Nice... :good:
OK,,, let's try to force pushing to external sdcard, now try this one,,
in the script change this line again:
Code:
adb push %1 /mnt/extSdCard/
to:
Code:
adb push %1 /storage/extSdCard/
Why?
the first one is actually a symlink for the second one!!!
Nope! It didn't work again, though my external card is mounted r/w already.
majdinj said:
OK,, for me I think it is mounting problem
in android device, open RootExplorer and navigate to '/mnt/extSdCard/ and mount it as R/W and try again (I think mostly this is your problem!)
if still you have the same problem, open my script and change the file destination to internal memory
Code:
adb push %1 /mnt/extSdCard/
change it to:
Code:
adb push %1 /sdcard/
and try again
tip: remember to use a static IP as per your connection, so you will not need to change IP every time
Click to expand...
Click to collapse
thanks for this script. For me it works fine with /storage/extSdCard/
kmokhtar79 said:
Nope! It didn't work again, though my external card is mounted r/w already.
Click to expand...
Click to collapse
It seems some extSdCard behave like that..!! try to unmount extSdCard then mount it again and try to push file into it..
if still,, then keep this code in the meantime till I figure out the solution of such extSdCard
Code:
adb push %1 /sdcard/
I can send only to internal memory. However I just noticed something; while I am transferring a file to internal card, in command prompt it says:
"Sent to exdSdCard", (I am using Philz kernel)
kmokhtar79 said:
I can send only to internal memory. However I just noticed something; while I am transferring a file to internal card but in command prompt it says:
"Sent to exdSdCard", (I am using Philz kernel)
Click to expand...
Click to collapse
No this is actually an echo of my command,,, I will update OP for more clean script for both internal and external memory
OP updated to include separated script for internal and external sdcard
for internal works fine,
but still "permission denied" for external
sent from my G-Note
Although I couldn't manage to send my file to external card but no problem for me. I am pretty satisfied by this script, transfer rate is fast enough and very convenient. Thanks again majdini :good:
kmokhtar79 said:
Although I couldn't manage to send my file to external card but no problem for me. I am pretty satisfied by this script, transfer rate is fast enough and very convenient. Thanks again majdini :good:
Click to expand...
Click to collapse
yes for me too,
I flash always with beerbong's ZipInstaller and it works only from my internal sd,
so I'm happy with ur script :thumbup:
thanks a lot
sent from my G-Note
Thank you all for support,, I am digging on your issue regarding extSdCard,, it seems there are people who suffers from the same issue while other don't!!
I still believe it is adb mounting problem
plug your device to usb cable (usb debugging mode should be ticked before)
go to adb_send-to folder and on any empty place hold shift and click right mouse button --> open command window here, and type the following commands:
Code:
adb remount
adb root
adb shell "su" "" "mount -o remount,rw /storage/extSdCard"
adb remount
adb kill-server
adb kill-server
now try external sd script,, hopefully this will do it
jup,
now it´s working :good:
but one question,
have I after every reboot of the pc to type these sentence again?
and could I switch to internal again by editing your command file again?
hara74 said:
jup,
now it´s working :good:
but one question,
have I after every reboot of the pc to type these sentence again?
and could I switch to internal again by editing your command file again?
Click to expand...
Click to collapse
Good to hear that at last
You need to run those commands only if you got mounting problem.. So it is not a must in each reboot..
For switching between external and internal sdcard,, yup you can,, I will write a combined script to give you the authority to choose whether to send to external or internal sdcard,, of course I will include the commands above to ensure external sdcard mounting,,
Until then happy pushing.. mm I mean sending :laugh:
majdinj said:
Good to hear that at last
You need to run those commands only if you got mounting problem.. So it is not a must in each reboot..
For switching between external and internal sdcard,, yup you can,, I will write a combined script to give you the authority to choose whether to send to external or internal sdcard,, of course I will include the commands above to ensure external sdcard mounting,,
Until then happy pushing.. mm I mean sending :laugh:
Click to expand...
Click to collapse
yeah,
push it baby
sounds great your idea with the combined script :good:
I´m really happy with that script, bcs everytime I changed a little thing in my themes, I had either copy over the file via cable, or search with a explorer like solid explorer or so,
now I can just right klick on the file and hop hop it´s on the right place on phone :laugh:
How can we fix Android Device IP?
So that I can use the script as it is all the time.
TIA
ardicli2000 said:
How can we fix Android Device IP?
So that I can use the script as it is all the time.
TIA
Click to expand...
Click to collapse
make IP settings static not DHCP
Go to your WiFi networks --> long press your current WiFi connection --> modify network config --> IP settings (static), now put a static IP address that resemble your router gateway except last digits and put your gateway.. see attachment pic as an example
by doing this you will not need to enter new IP address each time you want to connect over WiFi using this script
Hi,
Xperia V here on CM11, Android 4.4.4. (Version 11-20150301-UNOFFICIAL-tsubasa, released by FreeXperia)
To my surprise, writing to SD0 (internal) and SD1 (external) is not possible. I've got a camera app asking me to insert an SD card before taking pictures.
I tried two apps that supposedly fix this problem, to no avail.
I tried editing /system/etc/permissions/platform.xml myself, but get an error every time I try to save changes to it. I even tried setting rw-/r–/r– permissions on this file and all parent folders. No dice. (Tried all this using ES File Explorer with root access.)
Looking at platform.xml, this entry is OK:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
But this one is missing <group gid="sdcard_rw" />
Code:
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
Can anyone help me, please?
Alternatively, if anyone knows of a STABLE rom that is free of Google's BS restrictions, I'd be happy to flash it instead.
EDIT: Come to think of it, I have used this exact rom before without having this problem. What else could be wrong?
Well, I just flashed a different rom (latest official CM11 snapshot) and the problem is still there. Any ideas on what is causing it?
Amplifiction said:
Well, I just flashed a different rom (latest official CM11 snapshot) and the problem is still there. Any ideas on what is causing it?
Click to expand...
Click to collapse
Did you format your internal memory? You should check which user/group is owning /mnt/media_rw/sdcard0 and sdcard1...
http://forum.xda-developers.com/showthread.php?t=2794704
Antiga Prime said:
Did you format your internal memory? You should check which user/group is owning /mnt/media_rw/sdcard0 and sdcard1...
http://forum.xda-developers.com/showthread.php?t=2794704
Click to expand...
Click to collapse
I formatted everything my recovery allowed me to format (including internal memory) and then flashed a CM12 port. Problem gone! Thanks.
I used @WhiteNeo 's CM12 Apr 05 build, found here.
when i on the toggel of full file system on customPFD its working well. then i toggel off ,and after 1 day my phone hang up so i soft reset it .but now the problem is that my phone mtp is not detected by pc... it just detect BOOTMGR MODE .after phone start device is nit detected,, can anyone help me. i only have lumia 720 + WP8.1.1+customPFD
main point i cant deploy any app
thanks in advance
try it
you must reinstall driver for your phone, plugin cable, right click on My Computer (This PC), choose Device Manager, expand Universal Seria Bus Devices and Uninstall all Lumia 720 (RM-XXX), unplugin and plugin cable , reboot your phone may helpful
voduc_an said:
you must reinstall driver for your phone, plugin cable, right click on My Computer (This PC), choose Device Manager, expand Universal Seria Bus Devices and Uninstall all Lumia 720 (RM-XXX), unplugin and plugin cable , reboot your phone may helpful
Click to expand...
Click to collapse
Lumia 720 (RM-XXX) my device dosent detected ...anywhere.. not also in device mgr
Might be a couple years late to this but the solutions is to enter these keys into the registry
Code:
HKLM\Software\Microsoft\MTP
name="datastore" type="string" value="C:\Data\Users\PUBLIC"
HKLM\System\ControlSet001\services\Mtp
name="ObjectName" type="string" value=".\WPNONETWORK"
name="Type" type="dword" value="10"
name="ServiceSidType" type="dword" value="1"
HKLM\System\ControlSet001\services\Mtp\TriggerInfo\0
name="Data0" type="binary" value="7508bca3290b900c"
name="Data1" type="binary" value="0000000001000000"
name="DataType0" type="dword" value="1"
name="DataType1" type="dword" value="1"
name="Guid" type="binary" value="16287a2d5e0cfc459ce7570e5ecde9c9"
name="Type" type="dword" value="7"
I'm guessing that version of customPFD is the same one I found, it looks like that version doesn't return the binary type registry keys properly/deletes them probably because it has a bug in the way it deals with binary type registry entires, so don't use that version of the app to modify the registry because it has no idea how to do it properly
Because of this damn bug I thought my janky microsoldered usb port gave out and spent an hour redoing it for no reason
Ok so I have a moto x dev edition (2013) with verizon. I had the bootloader unlocked on android 4.4.4 then relocked the bootloader and updated to 5.1 recently. I decided I wanted my root permissions again so i unlocked the bootloader and rooted on 5.1. I then downloaded 2 conflicting emoji switching apps from the play store which caused every app that uses the keyboard (which had emojis) to crash. I went to settings and clicked reset but it would then crash. So i went into fastboot mode and tried to follow the same steps which i used to reset and lock the bootloader before. http://forum.xda-developers.com/moto-x/general/noob-guide-unroot-relock-bootloader-vzw-t2571786 This was what i followed. I got an error on some of the first few steps but i continued entering the commands anyway (being the complete idiot that i am). So at the end i realized i couldn't boot into anything. (Normal powerup, recovery, factory, or BP Tools). When i power it off and turn it back on it says
downgraded security version
update gpt_main version failed
Failed to hab check for gpt_backup: 0x35
CID Read Failure
Invalid CID status 0x69
CustomerID error. Contact Dealer: 0xdead
That last part scared me.
So anyway i found this video https://www.youtube.com/watch?v=aYjzD9WZum0 where the guy had the same problem (although its in spanish). I followed the steps he took which were as far as i can tell, in case you don't want to watch the video, to enter the bootloader by way of pressing the volume down key during boot. He circled that in red so I assume its important. Then he went onto RSD Lite and selected an xml filed called Repair_Boot.xml which when i opened with notepad contained this.
<?xml version="1.0"?>
<flashing>
<header>
<phone_model model="Motorola" />
<software_version version="Flash Boot" />
<interfaces>
<interface name="AP" />
</interfaces>
</header>
<steps interface="AP">
<step operation="oem" var="fb_mode_set" />
<step operation="flash" partition="partition" filename="gpt.bin" />
<step operation="flash" partition="motoboot" filename="motoboot.img" />
<step operation="oem" var="fb_mode_clear" />
</steps>
</flashing>
When i tried flashing the gpt.bin partition and motoboot.img previously it didn't work and it gave me the error message:
downgraded security version
update gpt_main version failed
preflash validation failed for GPT
But anyway i couldnt even get my phone to pop up in the RSD Lite program. I restarted, ran in administrator mode and used different usb cables and ports on my laptop, as well as an entirely different computer. I installed ADB drivers too and tried different versions of the RSD program. My laptop usually told me USB device not recognized a few times but the phone does appear in device manager as 'Mot Single ADB Interface' under 'ADB Interface'
So yeah thats about it. I assume the main priority would be to get the RSD program to recognize my device. Sorry this was so long but i figure better too much detail than too little.
There are many of us in the same boat. I'll try to keep you updated if I find a solution.
http://forum.xda-developers.com/moto-x/moto-x-qa/moto-x-dev-edition-stuck-fastboot-t3457945
Issue was resolved here for anyone with a similar issue.