Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
441 views
in Technique[技术] by (71.8m points)

android - Add folder/files in Genymotion emulator

I want to add folder in my Genymotion emulator I also tried this question and follow all instruction but folder is not showing in file manager I also download some images from Google but also those not visible in file manager.

In my emulator following file manager installed File Managerv 1.0.1 The CyanogenMod Project

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I solve my problem

First follow this Answer

  • Go to your VirtualBox VM setting / Shared folder tab
  • Add a shared folder with the folder you want to shared, and check the "auto mount" option
  • Start your VM as usual from the Genymotion software
  • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)

After that Change Settings of file Manager in Genymotion emulator change that to root user so all my folder visible also with Shared folders

  • In Genymotion virtual device, run the application "File Manager" and READ the advertisement about "low-privileged mode".
  • Go to "settings" menu from "File Manager"
  • In "general settings", click on "access mode" and activate "Root access" mode
  • Restart File Manager => all directories will be presented

Thanks

Update In newer version of genymotion you can add files/folder by drag and drop. It take some time while adding files in emulator. time depends on file size.

Update 2 (Based on @GandhyOnly comment)

To make visible in gallery just drag and drop your images files on emulator they stored in download folder after finish transferring files restart same emulator and images will shown in gallery. Or if you don't want to restart emulator then use following command

adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcard/

it will rescan images and show them in gallery. For more detail about command see the actual answer here. I didn't check command I use first method just restart emulator


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...