top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Deleting primary external storage in android multiuser framework

0 votes
267 views

I wanted to know how external primary storage is created and removed in multiuser android framework. When a new user is created the framework creates a folder with userid in /mnt/shell/emulated eg: /mnt/shell/emulated/10 and MediaProvider creates DCIM, Alarms etc folders inside 10 in createDefaultFolders function.

I am trying to mount this 10 folder over itself using ecryptfs when user is created so that the data written to it is encrypted. When the user is removed I unmount 10 using ecryptfs. Then when I go to /mnt/shell/emulated and list files I don't see 10 folder. But when I do mkdir 10 there it says File Exists. So I need to trace if there is an error in removing encrypted files. Which process or service removes these folders? I also noticed there is a bind mount for oob for each new user. This links /mnt/shell/emulated/obb to /mnt/shell/emulated/10/obb. This mount is done after I mount ecryptfs over /mnt/shell/emulated/10 which means that obb mount point will also b encrypted. I am not sure if this is interfering with the folder removal process. How do I track where the removal is failing?

posted Jun 5, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

I want to know if there is a way to some settings to be used by framework services such as ActivityManagerService of WindowManagerService like apps can do with preferences. They should be able to store some of their variables into some persistent storage and read them at bootup.

Currently, I found only the xml files in res/res folder but this is editable only at compile time.

+1 vote

I'm trying to get my sdcard to automount on my nexus 10 through USB OTG cable. I can manually mount it and it works. Here is what I have setup so far. Is there anything else I need to do? I manually mount it like

"mount -t vfat /dev/block/sda1 /mnt/usbdisk"

init.manta.rc
 # usb usb sd card
 export SECONDARY_STORAGE /storage/usbdisk0
 mkdir /storage/usbdisk0 0666 system system

 symlink /storage/usbdisk0 /usbdisk
 symlink /storage/usbdisk0 /mnt/usbdisk

vold.fstab
dev_mount usbdisk /storage/usbdisk0 auto /dev/block/sda1
+1 vote

Could someone please explain how can I mount secondary physical storage from Vold? Is it necessary to mount via fuse on top of the Vold?

+1 vote

I want to define a new theme in framework, and override the alert dialog style. Please help...

+1 vote

I am doing some changes in frameworks/base/, so i just wanted to know whether there is a faster process of building it. Currently what i follow is very slow i.e. I do

$ make -j4 installclean // which cleans *.img files from the /out folder
$ make -j4

and finally it creates all *.img. So apart from the above process, is there a way for a single line of change can be built fast ?

...