been playing around with android sdk emulator. just wondering how to get the virtual sdcard connected to my computer, so i can put stuff on it.
is it possible?
why not just adb push it into the emulator???
where do i adb push it to?
not sure where the link to sdcard is
set up your emulator, make sure the emulator has the virtual sd "in it" and then open up a terminal/console and type asb push <file> /sdcard
<file> is the directory and the file name of whatever you are trying to push to the emulator
Related
Is there anyway i can use app2sd on a mac? or someway of writing things to the system/apps folder
darthwouter said:
Is there anyway i can use app2sd on a mac? or someway of writing things to the system/apps folder
Click to expand...
Click to collapse
Apps2SD just transfers data from /data/app and /data/app-private to /system/sd/app and /system/sd/app-private. That is done on your phone.
Try these commands:
adb remount
adb push <filename> /system/app/<filename>
Adb is from the Google Android SDK. It's located in the SDK folder (Whatever you name is as) under the tools folder.
However, /system/app is really reserved for core apps. If you want to just push an application directly to the phone, try:
adb remount
adb push <filename> /data/app/<filename>
If you are using Apps2SD, use this instead
adb remount
adb push <filename> /system/sd/<filename>
ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere
Ok trying to learn a little about adb. and im trying to push a file to my phone.
cd c:\android-sdk-windows\tools ( done this to change the directory)
c:\android-sdk-windows\tools>adb push screengrab.apk .\sdcard.
failed to copy screengrabber.apk to .\sd card: Read-only file system
how do i change it to a write only file system also. i tryed adb shell i granted it SU permissions. then i done something and its telling me daemon still not runningerror cannot connect to daemon. what exactly does this mean it will start up successfully then it will stop and that message will come up
your sdcard is not read only. make sure you do not have it mounted at all on your computer and verify you are using PROPER command
adb push screengrab.apk /sdcard/
Pirateghost said:
your sdcard is not read only. make sure you do not have it mounted at all on your computer and verify you are using PROPER command
adb push screengrab.apk /sdcard/
Click to expand...
Click to collapse
there is nothing mounted in my pc not internal or sd card when i used the PROPER command. It brings up a whole lot of stuff like the different commands and stuff.
Appears adb is missing from the /system/bin directory. Does anyone have a way to get around this issue? I need to have adb working in Terminal Emulator. I have copied the file from my old Note 4 and placed it on my sdcard. I have navigated to that folder in the emulator but it won't run due to the $PATH variable.
Any insight is appreciated.
ADB Push/Pull Simple GuideTo Push a single file from PC to Android, in this case a ROM.zip, you must place the ROM.zip inside the same folder as your ADB and Fastboot files. Right click anywhere inside that folder while holding the shift key down to open the cmd prompt and run these commands:
adb devices
adb push ROM.zip /sdcard
To Push multiple files at once using a single command do this:
In your SDK/Platform-tools folder, or whever you have your ADB files, create a folder called "tmp"
Place all the files you want to push into the tmp folder then run this command:
adb devices
adb push tmp /sdcard
--Simple eh?
To Pull a file (In this case a TWRP backup located on the sdcard in a Subfolder of TWRP called BACKUPS) from device to PC or HARDDRIVE.:
Create a folder inside SDKplatform tools or where ever you have your ADB located. I call mine TWRP_Pulls. Inside that folder create a subfolder and give it the name of the backup/File you are pulling. In my case I name the folder by the backups date and numbers.
FOLDER Inside the ADB folder-->TWRP_Pulls
FOLDER Inside TWRP_Pulls-->2016-05-03--17-54-24The full command would look like this:
adb pull /sdcard/TWRP/BACKUPS/ANDROIDSERIAL/2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24
(Where ANDROIDSERIAL is your devices serial number and can be found by entering "adb devices")
Make sure you place a space between the first pull and the /sdcard and another one after the ROM.zip and before the <path to location>
adb pull[Space]/sdcard/TWRP/BACKUPS/ANDROIDSERIAL/
2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf[SPACE]C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24============================================================
CREATED BY: BillyMumphry for educational purposes only. I hope it will help some people as I know I sure fumbled with these Push Pull commands when I was learning.
------------------------------------------------------------------------------------------------------------
* If anyone has any questions or additions fell free to comment or PM or email me:[email protected]