History log of /frameworks/base/services/java/com/android/server/MountService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
40e9f2922cae76ffcbc521481e5be8e80e8744ef 28-Nov-2012 Dianne Hackborn <hackbod@google.com> Quiet down a lot of logging.

Also fix a little problem where the USER_STARTED broadcasts
were not being sent as ordered broadcasts(!).

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
/frameworks/base/services/java/com/android/server/MountService.java
f5377a7242d71e221807150f0778a0521e1270b6 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Useful annotations for code documentation." into jb-mr1.1-dev
0be607cda1aed67149963a1f602f399c79845cfd 14-Nov-2012 Jeff Sharkey <jsharkey@android.com> Avoid runtime restart after vold reconnects.

Rely on behavior of already-released CountDownLatch instead of
clearing the reference.

Bug: 7290521
Change-Id: I787e673b97d18be412d5b37e279fbf1275b49151
/frameworks/base/services/java/com/android/server/MountService.java
8b2c3a14603d163d7564e6f60286995079687690 12-Nov-2012 Jeff Sharkey <jsharkey@android.com> Useful annotations for code documentation.

Bug: 6537978
Change-Id: I806c3c09e3255f8789455f13bf37c1dde2a93f1f
/frameworks/base/services/java/com/android/server/MountService.java
32ee831eabc43001d756897e57f52f527bd9c431 30-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle ISE when physical volume isn't mounted.

Bug: 7238149
Change-Id: I85081225a1a43a2c1b6f70b6275c6bbca0b3764e
/frameworks/base/services/java/com/android/server/MountService.java
4fbbda4cecb078bd3867f416b02cc75f5455284f 25-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle multi-user mountObb() requests.

Since emulated external storage paths differ based on execution
context, carefully fix up paths for various use-cases:

1. When sending paths to DefaultContainerService, always scope
OBB paths as belonging to USER_OWNER.
2. When sending paths to vold, always build emulated storage paths
visible to root.
3. Always use the original untouched path when talking with apps.

Mount OBB containers using shared app GID, so that an app can read
the mount point across users.

Handle legacy paths like "/sdcard" by resolving the canonical path
before sending to MountService. Move tests to servicestests, and
add tests for new path generation logic.

Bug: 7212801
Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
/frameworks/base/services/java/com/android/server/MountService.java
920ace0bbc2d4133dbec991d2636c99a57d6245e 21-Sep-2012 Amith Yamasani <yamasani@google.com> Query users excluding any being removed

Keep track of user creation and last logged-in time.
adb shell dumpsys users
User switcher shouldn't show users about to be removed.
No need to check for singleton for activities.

Bug: 7194894
Change-Id: Ic9a59ea5bd544920479e191d1a1e8a77f8b6ddcf
/frameworks/base/services/java/com/android/server/MountService.java
27bd34d9d9fe99f11b80aa0bbdb402fb47ef4158 16-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user MTP.

The current MTP kernel driver at /dev/mtp_usb is exclusive, meaning
only one process can have it open. In addition, each MTP session
with a desktop requires unique object IDs, which doesn't hold true
across users on the device.

To solve these two issues, when switching users we cycle the USB host
stack to disconnect both local and remote MTP connections, giving the
new user's media process a chance to claim /dev/mtp_usb, and causing
the desktop to initiate a new MTP session.

This change also allows BroadcastReceivers to registerReceiver()
allow retrieval of a current sticky broadcast. Adds a system property
to override maximum users. Removes MOUNTED broadcasts for secondary
users. Allows INTERACT_ACROSS_USERS to getCurrentUser().

Bug: 6925114
Change-Id: I02b4a1b535af95fb2142655887b6d15a8068d18a
/frameworks/base/services/java/com/android/server/MountService.java
b049e212ab7fe8967893c202efcb30fecfdb82fb 08-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include user identifier in external storage paths.

When building external storage paths, always include user in path
to enable cross-user paths and aid debugging.

Each Zygote process continues to only have access to the appropriate
user-specific emulated storage through bind mounts. A second set of
mounts continue supporting legacy /sdcard-style paths. For example,
a process running as owner has these mount points:

/storage/emulated_legacy
/storage/emulated_legacy/Android/obb
/storage/emulated/0
/storage/emulated/obb

Since Environment is created before Zygote forks, we need to update
its internal paths after each process launches.

Bug: 7131382
Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
/frameworks/base/services/java/com/android/server/MountService.java
9545dc020ea11649d70dcbe911a8e82a3254a4ea 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include primary flag in StorageVolume.

Bug: 7003520
Change-Id: Iaae2ae22253820c954c51e0199c31087bc825f3f
/frameworks/base/services/java/com/android/server/MountService.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
/frameworks/base/services/java/com/android/server/MountService.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
/frameworks/base/services/java/com/android/server/MountService.java
3e751f1b7bc9ae4c477b75290e59d7c3904f94dc 09-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am 60c77212: am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"

* commit '60c7721210d327a464fdc95dbbe504e8eb10525c':
MountService: unlink death notification when unregistering listeners
13fe2a5330a5df662d7b1b136e7b08fe34c94a42 19-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)

- use an ID instead of a String for StorageVolume description
- use this ID for getting the correct localized version of the description string

Change-Id: I30f3080fce2c889be38bfdf9f5121dffcf8a99e8
/frameworks/base/services/java/com/android/server/MountService.java
51a573c76737733638c475f52e441c814e6645cc 17-May-2012 Kenny Root <kroot@google.com> Wait for ASECs to be scanned before proceeding

Move MountService up the list, then pause waiting for MountService to
finish scanning ASECs before the services that require those packages to
be ready.

Additionally, don't automatically mark all ASEC apps as FLAG_EXTERNAL on
reboot. This prevents AppWidgets and other things from being used with
ASECs which are on internal storage.

Bug: 6445613
Change-Id: I3e0b3e244fec966814d7a5ea93de5d337aea79bd
/frameworks/base/services/java/com/android/server/MountService.java
6dceb88f1c7c42c6ab43834af2c993d599895d82 12-Apr-2012 Kenny Root <kroot@google.com> Allow forward locked apps to be in ASECs

We couldn't put forward-locked apps in ASEC containers before since we
didn't have any permissioned filesystems. This adds the ability for
forward-locked applications to be in ASEC containers.

This means that forward locked applications will be able to be on the SD
card now.

This change also removes the old type of forward-locking that placed
parts of apps in /data/app-private. Now all forward-locked applications
will be in ASEC containers.

Change-Id: I17ae0b0d65a4a965ef33c0ac2c47e990e55707ad
/frameworks/base/services/java/com/android/server/MountService.java
483f3b06ea84440a082e21b68ec2c2e54046f5a6 14-Mar-2012 Amith Yamasani <yamasani@google.com> Package restrictions per user

Packages can be enabled/disabled per user.
This requires maintaining stopped/launched states and
enabled / disabled components and packages per user.

Refactored pm.Settings and PackageSettingsBase to keep
track of states per user.

Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml

Changed intent resolution to handle individual user restrictions.
Bunch of IPackageManager calls now have a userId argument.
Make AppWidgetService handle removals of packages.

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
/frameworks/base/services/java/com/android/server/MountService.java
5c25a2d338e9609d54e58cc1916c91cd8e9979ab 24-Jan-2012 Vairavan Srinivasan <vairav@codeaurora.org> MountService: unlink death notification when unregistering listeners

Change-Id: I09045cfe67f7da84bc68a50fc5440ea2c6b754e5
/frameworks/base/services/java/com/android/server/MountService.java
470fd72a06390d7a6b854583afd0ed76ce0a03ee 18-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Log netd traffic nicely.

Create a LocalLog class for logging within a service for dumping in dumps.
Use it in the NativeDaemonConnector so we can get some insight into what
is happening in these lockups.

bug:5864209
Change-Id: I68ddc58847f3c8de613be9528570f8c3157d8274
/frameworks/base/services/java/com/android/server/MountService.java
da6aedf716bfdd40148823fb63d666d34b7b425e 20-Dec-2011 Fredrik Roubert <roubert@google.com> Test the correct return code from call to cryptfs.

This was broken in commit dd519fac9b79f36a27909149a90fce4321ed1c20
(certainly by mistake), in which Integer.parseInt(tokens[1]) was
errornously replaced with event.getCode().

Change-Id: Ic5af5a2ec5f321da21a4a5db25f6908462f6cae8
/frameworks/base/services/java/com/android/server/MountService.java
dd519fac9b79f36a27909149a90fce4321ed1c20 02-Dec-2011 Jeff Sharkey <jsharkey@android.com> Move native vold calls to varargs.

Uses argument escaping inside NativeDaemonConnector, using varargs
to separate boundaries.

Bug: 5472606
Change-Id: Ie107a90df7e2b3bd3eaaf04c8367248ab40136f4
/frameworks/base/services/java/com/android/server/MountService.java
31c6e4817f6c967fc4f61c4f1d9f25743958f7de 19-Nov-2011 Jeff Sharkey <jsharkey@android.com> Move NativeDaemonConnector to varargs.

Perform uniform argument escaping inside NativeDaemonConnector, using
varargs to separate boundaries. Also move to parsed NativeDaemonEvent
instances instead of raw Strings.

Bug: 5472606
Change-Id: I1270733e2b2eeb2f6b810240df82ab24d38ebf40
/frameworks/base/services/java/com/android/server/MountService.java
32418be49e5b61c2e9281528cb8fb67939e301e8 10-Oct-2011 Christopher Tate <ctate@google.com> Require device encryption password to perform adb backup/restore

This supersedes any backup-password that the user might supply. Per
design, the device encryption password is also always used to encrypt
the backup archive.

The CL introduces two new strings, used for prompting the user for
their device encryption password rather than their settings-defined
"backup password" when confirming a full backup or restore operation.

Bug 5382487

Change-Id: I0b03881b45437c944eaf636b6209278e1bba7a9f
/frameworks/base/services/java/com/android/server/MountService.java
13c7197da8a16f77f6398708a6314c80cb01e0d1 08-Sep-2011 Ben Komalo <benkomalo@google.com> Revert encryption mapping for device wipes.

External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
/frameworks/base/services/java/com/android/server/MountService.java
444eca232964dbf27d0c4d01447c1493f89186e0 02-Sep-2011 Ben Komalo <benkomalo@google.com> Expose getting encryptstate through IMountService

- this really just calls cryptfs cryptocomplete
- needed so that UI logic can present a factory reset option if
encryption screwed up

Bug: 3384231
Change-Id: I553de87f0d03a65851030c9c5266e85866d30fa6
/frameworks/base/services/java/com/android/server/MountService.java
07714d41e57ef9d8e2e6b40d8764e42053cce1bd 18-Aug-2011 Kenny Root <kroot@google.com> Default disable watchdog for vold connection

cryptfs has long-running operations that cause the Watchdog to fire
reliably when encrypting the filesystem. Disable Watchdog on
MountService for this reason.

Change-Id: Id03f5f60c704dcd74a8696ad9f32b5fba5381731
/frameworks/base/services/java/com/android/server/MountService.java
fa23c5ae226c1a1d39f89c5c87d4f340e91d90e0 10-Aug-2011 Jeff Sharkey <jsharkey@android.com> Add NativeDaemonConnector users to watchdog.

To catch instances where NativeDaemonConnector hangs while executing
commands, add users to system_server watchdog. Also moved qtaguid
enabler to separate thread to prevent blocking systemReady().

Bug: 5145437
Change-Id: I4c6c1dc09864a1c05f9486a31faa1b366548e911
/frameworks/base/services/java/com/android/server/MountService.java
18db5c5690472f9da6ce2d580067307378675809 14-Jul-2011 Ken Sumrall <ksumrall@android.com> During encryption, don't throw exceptions for unknown vold state

This is a temporary fix until we get something better. During the
encryption process, vold does not respond to commands because it is
blocked doing the encryption. Because it doesn't respond, this code
times out, sets the state to null, and thows an exception. For now,
just don't throw an exception if the device is encrypting.

Change-Id: I7e821ec2addd60475fb10834df533beccb2650fe
/frameworks/base/services/java/com/android/server/MountService.java
4161f9b30329e558868bb2b16c3e83c0b9cd26fd 13-Jul-2011 Kenny Root <kroot@google.com> Add StorageVolume list to MountService dump

Change-Id: If2be6e420d9671032d2e7a66c71a6733e6e48ac8
/frameworks/base/services/java/com/android/server/MountService.java
7a59dd2ce33b46cbc73eef964ddb4272ea1da8d1 11-Jul-2011 Mike Lockwood <lockwood@android.com> MTP: Return error if user tries to copy a file >= 4GB to a FAT32 file system

Bug: 4561836

Change-Id: I2bffb93b032038f6c220c24c752ccd7ca66c23a0
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
292f8bc9d1b790ab975a87a842c7fabc908b97e0 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Plumb information from the framework about asec container size.

Change-Id: Ie0ec3cb6d463aefa341a8cbea80be790451ba5e3
/frameworks/base/services/java/com/android/server/MountService.java
ecedfdc7794048cd539e3df92b641a18a05acdf7 09-Jun-2011 Mike Lockwood <lockwood@android.com> MountService: Use UsbManager to monitor USB state for mass storage

Change-Id: I50c15c1dc8a1ee4f41cac7de8df9529ff5da1053
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
8e8b280bd19fa6cb69bb19e1d90cf03a47ba2d72 07-Jun-2011 Mike Lockwood <lockwood@android.com> StorageVolume: Add allowMassStorage flag

Change-Id: I9d19e635bb06e50068d7e4e6919322bd5bb2e00f
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
9fd4c6d3aeea46820c7ab637b0bc6556b798bc2b 24-May-2011 Mike Lockwood <lockwood@android.com> am 49b9449b: am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

* commit '49b9449b6605c7b4f77f9a0635ba93f7dfa0ea47':
MountService: Add StorageVolume as extra in storage related broadcasts.
49b9449b6605c7b4f77f9a0635ba93f7dfa0ea47 24-May-2011 Mike Lockwood <lockwood@android.com> am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

* commit 'd8d8470825a637843d45a3b436e80a3b85f1dd11':
MountService: Add StorageVolume as extra in storage related broadcasts.
a5250c93928e256738125b265e10c96c3575597e 23-May-2011 Mike Lockwood <lockwood@android.com> MountService: Add StorageVolume as extra in storage related broadcasts.

Change-Id: I8e1a21ae233ba9812e58b363b59a66b260a01cbf
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
fa1e5561cc65b932067919fcd5d39fda7032793e 18-May-2011 Mike Lockwood <lockwood@android.com> am 53b988ba: am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2

* commit '53b988ba1842f40e595bb85f2ca055c24787e6dc':
StorageVolume: Add getStorageId() accessor
53b988ba1842f40e595bb85f2ca055c24787e6dc 18-May-2011 Mike Lockwood <lockwood@android.com> am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2

* commit '5a79cfd7518defdce1911cecbc2441bb0a057e54':
StorageVolume: Add getStorageId() accessor
fbfe55512596fd00c1fb51caa851e17dae60fd43 17-May-2011 Mike Lockwood <lockwood@android.com> StorageVolume: Add getStorageId() accessor

This ID is used for MTP as well as per volume querying in the media provider.

Change-Id: Ic4fc986d972bd477730643f7e9450c390c0b3a4b
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
8fa5b03c1ba4253003c807ad753f58af17086b4e 16-May-2011 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of fc4a3d37 to master

Change-Id: I40f603ba9330c3e882f4d58398095f4094725b21
fc4a3d37ef044b35450800235195401c4a54c712 16-May-2011 Mike Lockwood <lockwood@android.com> am b822d246: am 0a93d875: Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2

* commit 'b822d2464dc59056f736b0c49f0ac514c7cbb9d9':
StorageManager: Clean up and generalize storage configuration resources
2f6a3885533a52758c2cd4f81f6123a712be8ae6 10-May-2011 Mike Lockwood <lockwood@android.com> StorageManager: Clean up and generalize storage configuration resources

Replace config_emulateExternalStorage, config_externalStorageRemovable,
config_externalStoragePaths, config_externalStorageDescriptions and
config_mtpReserveSpaceMegabytes resources with an XML resource file
to describe the external storages that are available.

Add android.os.storage.StorageVolume class

StorageManager.getVolumeList() now returns an array of StorageVolume

Change-Id: I06ce1451ebf08b82f0ee825d56d59ebf72eacd3d
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
20c356128492cf43d9ca10308601be585514f165 04-May-2011 Mike Lockwood <lockwood@android.com> am 10fbba21: DO NOT MERGE MountService: Fix running media scanner at boot.

* commit '10fbba21e4827a1582d97aa99e4e8d772ce04920':
DO NOT MERGE MountService: Fix running media scanner at boot.
2572051c4f6589e5ca8b21158a24a7fa606a5e67 04-May-2011 Mike Lockwood <lockwood@android.com> am 0aa5d7b7: DO NOT MERGE Fix deadlock in MountService

* commit '0aa5d7b7f225236ac8461d0b6835b9c6152a2699':
DO NOT MERGE Fix deadlock in MountService
a2a8419db82ae40146bdfd215e3de3be39c7249c 04-May-2011 Mike Lockwood <lockwood@android.com> am e3b498be: DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

* commit 'e3b498be0ae05367e9b84f4fac2ac5cf57a6b091':
DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
60c768d41277e3b7d4988452e15694c7ad5a74d0 04-May-2011 Mike Lockwood <lockwood@android.com> am 346a2d79: DO NOT MERGE MountService: Add support for multiple volumes

* commit '346a2d79ecd627e38bc7fc6874fb627995b8bc12':
DO NOT MERGE MountService: Add support for multiple volumes
10fbba21e4827a1582d97aa99e4e8d772ce04920 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Fix running media scanner at boot.

Change-Id: Ia56573023f21fa067a14e7d3ac5a6dbd51ecc8a7
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
0aa5d7b7f225236ac8461d0b6835b9c6152a2699 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: Iaadfb1b8be5567c8e228a8fbc69d4d483c8dc987
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
e3b498be0ae05367e9b84f4fac2ac5cf57a6b091 24-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: I8ba7e56797b0106dafaa6388393e5c629f27e6e6
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
346a2d79ecd627e38bc7fc6874fb627995b8bc12 23-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Add support for multiple volumes

Change-Id: I18527e78a1c04023ae7bc0f269eaac082eb48d7f
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
91dd02c3405a76e9051f7e118ad19ca111b2aa40 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Fix running media scanner at boot.

Change-Id: I67ff2ccde7e03143167b8c59726ffb741c96e028
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
b9135638c5b813e876dc16dcb10084b6ab3d2003 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: Ic9836c2e1e8a5677d0c4e33476a72081f69823a0
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
d967f4664f40f9a4c5262a44b19df9bbdf457d8a 24-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: I43d5c1730b340f1288b58012234b38f801001b71
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
f097fc2fee57183508558acbca1f8742fb55615a 23-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Add support for multiple volumes

Change-Id: I45ee0e5735a6d72c635f6d22320e8b13bccc3847
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
80e0a416a6f8d70d3f55614695fb430f914371bc 05-Apr-2011 Mike Lockwood <lockwood@android.com> MountService: Fix running media scanner at boot.

Change-Id: Ibd1111b7ec6380011cd10a56f11f891f2e16abc2
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
84338c4559cd675cc8727c44bd1b6ad485b1a272 05-Apr-2011 Mike Lockwood <lockwood@android.com> Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: I0dee91f09e4056132aaaf0fb0a663148c65db1e4
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
cace13d72a71cd8802b5804c47f5b5a9a7c01a74 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "StorageManager: Add getVolumeList() and getVolumeState() methods"
47c5581adab6a9c3cdba4c8bed51e0454abf7b80 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "MountService: Add support for multiple volumes"
8fa5f804e21233c5f1993212fd5fb7c200eec905 24-Mar-2011 Mike Lockwood <lockwood@android.com> StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: Icf3301827dd27e8430bd44eaafde517a31ef035a
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
7fa24aa8da3d2ab22b3a7d53fe64d14c31c076b8 23-Mar-2011 Mike Lockwood <lockwood@android.com> MountService: Add support for multiple volumes

Change-Id: I4eaa781cf302c7aaae170af2489b6b29120c0b81
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
37334c0f34ef40735b9f44918b53c1469ceae2cc 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am 8f7aad14: am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit '8f7aad147d790b25bae7301827e070df72690341':
Avoid crash in system server when mounting container
8f7aad147d790b25bae7301827e070df72690341 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'f7a34b15986f8c00bc6fb941a40f9acbe2c21aff':
Avoid crash in system server when mounting container
a20c8ef471666cf8b0dca91a8739ff18af1741a5 09-Feb-2011 Fredrik Helmer <fredrik.helmer@sonyericsson.com> Avoid crash in system server when mounting container

A race condition when mounting a container in PackageHelper may cause
the system_server to crash (uncaught exception). Calling methods are
prepared to handle null, so return null instead.

Change-Id: I852ee21a2d847e37d81c1b900c27ddf94ef24fcb
/frameworks/base/services/java/com/android/server/MountService.java
cf0b38ca6e5aa5efded7dbdbb623f6cd2746c96a 22-Mar-2011 Kenny Root <kroot@google.com> Split PackageManagerService into subclasses

Split PackageManagerService from one monolithic class with several inner
classes to several classes. This will help determining how its data
structures can be reshuffled to provide better separation of concerns.

Change-Id: Ic7571daebdcf13ce08e08f34204c5bbf4140139b
/frameworks/base/services/java/com/android/server/MountService.java
648251710162cdaf7371012a1cbb79b9bc5bc0e4 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3485923: Gmail crash

Allow application to try to recover if a surface OOM error
happens on the client side.

Change-Id: I0308bd99647a35e4bcac448340b7fc6330a828f6
/frameworks/base/services/java/com/android/server/MountService.java
d4796c823b92866d5895acf610e5571e9b5724d9 29-Jan-2011 Jason parks <jparks@google.com> am a2e765ef: Merge "Update the encryption password when the device password is changed." into honeycomb

* commit 'a2e765ef1ad2cb907a4ae0a93bb15e4764ebb59a':
Update the encryption password when the device password is changed.
f7b3cd4efd40b7631f36ea014407a850f7dc637e 27-Jan-2011 Jason parks <jparks@google.com> Update the encryption password when the device password is changed.

* Added changeEncryptionPassword() to the MountService.
* Update LockPatternUtils to call changeEncryptionPassword()
when the password is changed.

Note we only require the new password to change the
encryption password.

Bug: 3382129
Change-Id: I26a7e919e325e75e22fa4290da0a8b1b57b55a80
/frameworks/base/services/java/com/android/server/MountService.java
ff271a2288f375fc7a5854ac0d1f7c969d91996d 26-Jan-2011 Kenny Root <kroot@google.com> am 2ec4af59: am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit '2ec4af59209ab3a7088a001bbbcb10ef0b846564':
Make OBB results a one-way call
2ec4af59209ab3a7088a001bbbcb10ef0b846564 26-Jan-2011 Kenny Root <kroot@google.com> am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit '138757db4f19cb626ef5c1d371d4fca004304a08':
Make OBB results a one-way call
b7db2726e91f1d9480359d0f83b9cb7769906b34 26-Jan-2011 Kenny Root <kroot@google.com> Make OBB results a one-way call

OBB result back to an application needs to be a one-way binder call.

Bug: 3353699
Change-Id: I0e625914d18a001c2fa9d764ea6463f34cf96743
/frameworks/base/services/java/com/android/server/MountService.java
8888c597c4bc3002e48738b6aea6fd43f69c0f78 21-Jan-2011 Jason parks <jparks@google.com> Add and enforce the permission for encrypting/decrypting.

Change-Id: Ia292d8a5981266c2703743beb79fd786d77b375d
/frameworks/base/services/java/com/android/server/MountService.java
9ed98bcdc9ef3445075fdba1933d0ec2b4bc147e 17-Jan-2011 Jason parks <jparks@google.com> Update encryption commands.

* Changed to inplace encryption.
* Changed decryption to return the proper error code. It will now return success or the number of failed attempts.
* Be lazy and post a message 2 seconds later to call restart. I don't feel like messing with binder interfaces for a proper callback.

Change-Id: Iae2de7057aa66f248fd2df3f29777ad3368442f0
/frameworks/base/services/java/com/android/server/MountService.java
56aa5321fe6f00fa3662e6f46a4b2559aa34f63e 07-Jan-2011 Jason parks <jparks@google.com> Add a method enable encryption.

This is for testing and needs to be cleaned up.

Change-Id: I29958f2a95c7773744e61bbd23a302b752614f87
/frameworks/base/services/java/com/android/server/MountService.java
5af0b916f850486cff4797355bf9e7dc3352fe00 29-Nov-2010 Jason parks <jparks@google.com> Add decryption support to MountService.

* Implement the decryptStorage() method on the Mount Service.
This method makes the calls into vold to decrypt the encrypted
volumes and mount them.

Change-Id: I4f6e07a111cf0b36611d590debf9f6579c5ac5f7
/frameworks/base/services/java/com/android/server/MountService.java
c65347f239e0adae4fe9fad5248b69a5a6d3bbe8 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am bf44ebae: am 9de93424: Merge "Without SD card the shutdown sequence was delayed"

* commit 'bf44ebae04f837596b9942ccb15d3d47bad4acec':
Without SD card the shutdown sequence was delayed
bf44ebae04f837596b9942ccb15d3d47bad4acec 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am 9de93424: Merge "Without SD card the shutdown sequence was delayed"

* commit '9de93424cc05446e3a216f406c55a3937c028416':
Without SD card the shutdown sequence was delayed
5d0db4d356346bee68aec9a124df70dbaa9aaed1 09-Nov-2010 Johan Alfven <johan.alfven@sonyericsson.com> Without SD card the shutdown sequence was delayed

If the memory card is not inserted (or removed) from
the phone the shut down process is very long. It
takes almost 24 seconds. For the phone with memory
card the averige is 5-6 seconds

Make sure to send onShutDownComplete even if an SD
card is not mounted and no unmount is done.

Change-Id: I0e79b82e294a971f5e7144cdd3cc16b7ff414b9c
/frameworks/base/services/java/com/android/server/MountService.java
b09773dee0881f30c2fb4d0f3534527170f25bce 09-Aug-2010 Tony Wu <Tony_Wu@acer.com.tw> Fix isUsbMassStorageConnected() will always return true

After UMS mounted, isUsbMassStorageConnected() will always return true even if USB is disconnected.
It's because mUmsEnabling will always be ture.

Change-Id: Ib24b2359ea2684eb0a9faeb880f383e87630e6e1
/frameworks/base/services/java/com/android/server/MountService.java
fcab0f5502410b975afe045354bbae31ccba68a5 15-Oct-2010 Kenny Root <kroot@google.com> am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84'

* commit '8fda1636e3e35f060b9046294efd3c062a1fdb84':
OBB: use PBKDF2 for key generation.
8fda1636e3e35f060b9046294efd3c062a1fdb84 14-Oct-2010 Kenny Root <kroot@google.com> am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit 'bdf8034c657147226b2390eef113ff841e0d6065' into gingerbread-plus-aosp

* commit 'bdf8034c657147226b2390eef113ff841e0d6065':
OBB: use PBKDF2 for key generation.
3b1abba6bbc895d63da3e82e9b158c01bd12eddd 14-Oct-2010 Kenny Root <kroot@google.com> OBB: use PBKDF2 for key generation.

Switch to using PBKDF2 for the key generation for OBBs. Any previously
generated OBBs will stop being read correctly. A small pbkdf2gen program
is available to allow generation of appropriate keys with the salts.

Bug: 3059950
Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
/frameworks/base/services/java/com/android/server/MountService.java
0a9b54e88b9cbb30748b5f0b331aec3f3ef8d639 14-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 8bb7a1df to master

Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
e1ff214e32ed5c546a7603b07b054908c4d93312 12-Oct-2010 Kenny Root <kroot@google.com> Add API to check for emulated external storage

When the storage is emulated, we don't want to install ASEC containers
to it. This adds the API to check when the external storage is emulated
and uses it to check whether or not to install packages to the external
storage in an ASEC container.

Bug: 3024387
Change-Id: Ia0318aca9e4938a4897deaada5603a4c7c1d0f48
/frameworks/base/services/java/com/android/server/MountService.java
8bb7a1dfbb43dda49fb3c4f86181bcd7f969a832 12-Oct-2010 Kenny Root <kroot@google.com> am b4de3dca: Merge "OBB: rearrange to be entirely asynchronous" into gingerbread

Merge commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45' into gingerbread-plus-aosp

* commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45':
OBB: rearrange to be entirely asynchronous
af9d667ccf3e24058214cf4cc0a8aa8bc5100e3c 08-Oct-2010 Kenny Root <kroot@google.com> OBB: rearrange to be entirely asynchronous

Rearrange structure of MountService handling of OBBs to be entirely
asynchronous so we don't rely on locking as much. We still need the
locking to support dumpsys which has been improved to output all the
data structures for OBBs.

Added more tests to cover more of the error return codes.

Oh and fix a logic inversion bug.

Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
/frameworks/base/services/java/com/android/server/MountService.java
7a2eff1fc79f3594ea4ef0f1c6aaa7a1d914dd1b 10-Oct-2010 Kenny Root <kroot@google.com> am c0c2076e: am e0c5ae7b: Merge "Eliminate MCS_GIVE_UP state" into gingerbread

Merge commit 'c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166'

* commit 'c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166':
Eliminate MCS_GIVE_UP state
3aa837cc0f459e1acf89280b724c0a70c50e61dd 10-Oct-2010 Kenny Root <kroot@google.com> am c296f22e: am 0145e36c: Revert "Only allow 8 OBBs to be mounted by a UID"

Merge commit 'c296f22e713257271f95c2115df9e13d05d5687a'

* commit 'c296f22e713257271f95c2115df9e13d05d5687a':
Revert "Only allow 8 OBBs to be mounted by a UID"
682d143decaa390f55428ac7b6c730831f54077d 09-Oct-2010 Kenny Root <kroot@google.com> am 6ed0cfd3: am 5919ac6b: OBB: track binder death observers

Merge commit '6ed0cfd3e798e3014c9f1099631249463d25140c'

* commit '6ed0cfd3e798e3014c9f1099631249463d25140c':
OBB: track binder death observers
06f89ca9b17e3944af330efc2510818dca87d885 09-Oct-2010 Kenny Root <kroot@google.com> am 36455d03: am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit '36455d03256024981b1bf21557722a010b5e092a'

* commit '36455d03256024981b1bf21557722a010b5e092a':
Add MountService tests and fix a bug it found
c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166 07-Oct-2010 Kenny Root <kroot@google.com> am e0c5ae7b: Merge "Eliminate MCS_GIVE_UP state" into gingerbread

Merge commit 'e0c5ae7b55f1eb49b0aed94339bfb8e3cd8fefb9' into gingerbread-plus-aosp

* commit 'e0c5ae7b55f1eb49b0aed94339bfb8e3cd8fefb9':
Eliminate MCS_GIVE_UP state
c296f22e713257271f95c2115df9e13d05d5687a 07-Oct-2010 Kenny Root <kroot@google.com> am 0145e36c: Revert "Only allow 8 OBBs to be mounted by a UID"

Merge commit '0145e36cad1472acafb492b3f009ca6eba9593ea' into gingerbread-plus-aosp

* commit '0145e36cad1472acafb492b3f009ca6eba9593ea':
Revert "Only allow 8 OBBs to be mounted by a UID"
480afe70fa75b74b618f1f6243e7e2be1f41419a 07-Oct-2010 Kenny Root <kroot@google.com> Eliminate MCS_GIVE_UP state

It's basically a duplicate of MCS_UNBIND state, so just get rid of it
which simplifies the state transitions.

Bug: 3067076
Change-Id: I34111be88dd727af8ad59c9f49debd54ede827ea
/frameworks/base/services/java/com/android/server/MountService.java
0145e36cad1472acafb492b3f009ca6eba9593ea 06-Oct-2010 Kenny Root <kroot@google.com> Revert "Only allow 8 OBBs to be mounted by a UID"

This reverts commit 27358a69b33eaa268ee75ef778ec824c8085adcc.

Conflicts:

services/java/com/android/server/MountService.java

Change-Id: Ia14be97b4f22e95daba0d191cfc62adf3d1469cd
/frameworks/base/services/java/com/android/server/MountService.java
6ed0cfd3e798e3014c9f1099631249463d25140c 07-Oct-2010 Kenny Root <kroot@google.com> am 5919ac6b: OBB: track binder death observers

Merge commit '5919ac6b4188285324646772501ef4b97b353cf4' into gingerbread-plus-aosp

* commit '5919ac6b4188285324646772501ef4b97b353cf4':
OBB: track binder death observers
36455d03256024981b1bf21557722a010b5e092a 07-Oct-2010 Kenny Root <kroot@google.com> am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed' into gingerbread-plus-aosp

* commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed':
Add MountService tests and fix a bug it found
5919ac6b4188285324646772501ef4b97b353cf4 05-Oct-2010 Kenny Root <kroot@google.com> OBB: track binder death observers

An incorrect assumption about how death observers were tracked lead to
an IllegalArgumentException in some cases. Make sure the linking and
unlinking of the Binder to its ObbState death observer is symmetric to
avoid this problem.

Bug: 3062360
Change-Id: Idd016db12551c80cd74d00f11cf6569bd3b4ce21
/frameworks/base/services/java/com/android/server/MountService.java
17eb6fb07cc6965f09c51adc70b3c291f57a784a 07-Oct-2010 Kenny Root <kroot@google.com> Add MountService tests and fix a bug it found

Add some MountService tests that are based partially on some stuff done
in PackageManagerTests. This allows us to test the OBB changes in an
easy way.

Also, it found some bugs in the DefaultContainerService connection state
machine, so fix those while we're at it.

Change-Id: I18f38593be754eb32fb6e842f88eec47e2beefce
/frameworks/base/services/java/com/android/server/MountService.java
edeb7a5a391ddec6df6d34ecb1f64ef2bb376dbb 02-Oct-2010 Kenny Root <kroot@google.com> am 7e40e67f: am d9e88d22: Merge "Add "none" for vold and deprecate mkobb -c" into gingerbread

Merge commit '7e40e67f73e0e9fa61a9601d82e8a207ffdca039'

* commit '7e40e67f73e0e9fa61a9601d82e8a207ffdca039':
Add "none" for vold and deprecate mkobb -c
7e40e67f73e0e9fa61a9601d82e8a207ffdca039 02-Oct-2010 Kenny Root <kroot@google.com> am d9e88d22: Merge "Add "none" for vold and deprecate mkobb -c" into gingerbread

Merge commit 'd9e88d22f0ffefdc6a3b9c59168bd1bb6d402486' into gingerbread-plus-aosp

* commit 'd9e88d22f0ffefdc6a3b9c59168bd1bb6d402486':
Add "none" for vold and deprecate mkobb -c
12ffd9bf4c2cc9075ea7602b4932f823ba940f80 01-Oct-2010 Kenny Root <kroot@google.com> Add "none" for vold and deprecate mkobb -c

If vold isn't told "none" for the key, it will try to mount it as an
encrypted container.

Also remove the -c option from mkobb since it can be triggered by
including a key as well.

Change-Id: I40a8ff3f778bfda682312630e6687ecc14b51844
/frameworks/base/services/java/com/android/server/MountService.java
d1034c1967178302cad9085d15ae9849497babb2 01-Oct-2010 Kenny Root <kroot@google.com> am 637a8d84: am 29423918: Fix regression in OBB key handling

Merge commit '637a8d84bacd0b6973a16843259f0c11845f2cd2'

* commit '637a8d84bacd0b6973a16843259f0c11845f2cd2':
Fix regression in OBB key handling
637a8d84bacd0b6973a16843259f0c11845f2cd2 01-Oct-2010 Kenny Root <kroot@google.com> am 29423918: Fix regression in OBB key handling

Merge commit '2942391801b79816c5eb77d7ac94c4a65f26af48' into gingerbread-plus-aosp

* commit '2942391801b79816c5eb77d7ac94c4a65f26af48':
Fix regression in OBB key handling
2942391801b79816c5eb77d7ac94c4a65f26af48 01-Oct-2010 Kenny Root <kroot@google.com> Fix regression in OBB key handling

Change-Id: If583cbdb8be68ffed094a5fde7ee00e1914c5841
/frameworks/base/services/java/com/android/server/MountService.java
9664b24172188765653812b4eda03223c32272eb 01-Oct-2010 Kenny Root <kroot@google.com> am 8d85beca: am 8b28441a: Merge "Being already unmounted is not a failure" into gingerbread

Merge commit '8d85beca80f0c84344ffb527ec7cab0ca7b53d4f'

* commit '8d85beca80f0c84344ffb527ec7cab0ca7b53d4f':
Being already unmounted is not a failure
13cc0a06fce4ec54574c9bf2084752961a144c24 01-Oct-2010 Kenny Root <kroot@google.com> am 4309b52f: am 735de3b3: Hash keys with MD5; track IBinders not IInterface

Merge commit '4309b52fe19de5241113d8f9ebcdf52741e086a9'

* commit '4309b52fe19de5241113d8f9ebcdf52741e086a9':
Hash keys with MD5; track IBinders not IInterface
fc32a6023676c2f1b13c890c7295cccad6f0000c 01-Oct-2010 Kenny Root <kroot@google.com> am 0f064de8: am 27358a69: Only allow 8 OBBs to be mounted by a UID

Merge commit '0f064de830d11ddb08a3c000b894b46aa530348a'

* commit '0f064de830d11ddb08a3c000b894b46aa530348a':
Only allow 8 OBBs to be mounted by a UID
9e95468bbb4b4cb48d817cee2960681aa876b12a 01-Oct-2010 Kenny Root <kroot@google.com> am 6ce5f60c: am 38cf8867: Remove OBBs from state list when volume unmounted

Merge commit '6ce5f60c791401ed0faf5d36baf4fc6612358676'

* commit '6ce5f60c791401ed0faf5d36baf4fc6612358676':
Remove OBBs from state list when volume unmounted
8d85beca80f0c84344ffb527ec7cab0ca7b53d4f 01-Oct-2010 Kenny Root <kroot@google.com> am 8b28441a: Merge "Being already unmounted is not a failure" into gingerbread

Merge commit '8b28441adab59f2bb0d92c8a717af75331249e08' into gingerbread-plus-aosp

* commit '8b28441adab59f2bb0d92c8a717af75331249e08':
Being already unmounted is not a failure
4da02392a12e26f94a072e0a8584dbebfa29c4e3 01-Oct-2010 Kenny Root <kroot@google.com> Being already unmounted is not a failure

Change-Id: I5943096444e3d4d4cc5fd63f64a09c32f649a227
/frameworks/base/services/java/com/android/server/MountService.java
4309b52fe19de5241113d8f9ebcdf52741e086a9 01-Oct-2010 Kenny Root <kroot@google.com> am 735de3b3: Hash keys with MD5; track IBinders not IInterface

Merge commit '735de3b38abbd6564082a819377673ee593744a6' into gingerbread-plus-aosp

* commit '735de3b38abbd6564082a819377673ee593744a6':
Hash keys with MD5; track IBinders not IInterface
0f064de830d11ddb08a3c000b894b46aa530348a 01-Oct-2010 Kenny Root <kroot@google.com> am 27358a69: Only allow 8 OBBs to be mounted by a UID

Merge commit '27358a69b33eaa268ee75ef778ec824c8085adcc' into gingerbread-plus-aosp

* commit '27358a69b33eaa268ee75ef778ec824c8085adcc':
Only allow 8 OBBs to be mounted by a UID
6ce5f60c791401ed0faf5d36baf4fc6612358676 01-Oct-2010 Kenny Root <kroot@google.com> am 38cf8867: Remove OBBs from state list when volume unmounted

Merge commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94' into gingerbread-plus-aosp

* commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94':
Remove OBBs from state list when volume unmounted
735de3b38abbd6564082a819377673ee593744a6 30-Sep-2010 Kenny Root <kroot@google.com> Hash keys with MD5; track IBinders not IInterface

Using a plaintext password doesn't work unless it's a certain length, so
just hash the plaintext password with MD5 to make it the right length
for the twofish encryption.

Tracking the IInterface doesn't make much sense since it's different
each time, so track the IBinder instead. That way we can unlinkToDeath
the binder when the last thing it's holding onto goes away.

Change-Id: Id828d25b4d74f27e9d8b4bfb3909c964469cc473
/frameworks/base/services/java/com/android/server/MountService.java
27358a69b33eaa268ee75ef778ec824c8085adcc 30-Sep-2010 Kenny Root <kroot@google.com> Only allow 8 OBBs to be mounted by a UID

Change-Id: I4f017c5408af903c6c9ba007a2cf7f488a7fcd27
/frameworks/base/services/java/com/android/server/MountService.java
38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94 26-Sep-2010 Kenny Root <kroot@google.com> Remove OBBs from state list when volume unmounted

Don't keep tracking OBBs when the volume they're located on goes away.
Remove them from our state tracking maps and then send a notification to
any listener that is still around.

Add a dump handler to MountService so the state of the mount lists
can be inspected.

Change the API to just make a callback directly to the change listener
when mount is called when it's already mounted or unmount called when
it's already unmounted.

Change-Id: Idb4afbb943ca5ca775825f908bff334e3ce1cfcc
/frameworks/base/services/java/com/android/server/MountService.java
ea7ee3f4d31b92828df005d021cf482f6332514a 30-Sep-2010 Kenny Root <kroot@google.com> am 8bd545ab: am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread

Merge commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c'

* commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c':
Move all the permissions check up for unmount
8bd545ab4f7e75634c970b50ed15c20858d6ac0c 29-Sep-2010 Kenny Root <kroot@google.com> am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread

Merge commit '212d81a004f50e51ed8f6d803b79f4b71546b351' into gingerbread-plus-aosp

* commit '212d81a004f50e51ed8f6d803b79f4b71546b351':
Move all the permissions check up for unmount
f1121dc1d35c7e8c317c278aad0dd4ad1358d870 29-Sep-2010 Kenny Root <kroot@google.com> Move all the permissions check up for unmount

We have already scanned the state of the OBB in mountObb, so check the
caller against the stored state in the unmountObb call. This allows us
to ensure the calling binder is the same one that mounted it since we
tie the lifecycle of the OBB to the lifecycle of the binder.

Change-Id: I45d9cfbab5d3f5b37a6a9b594b10bd8b91cccc45
/frameworks/base/services/java/com/android/server/MountService.java
bff405f91001237ec94ec64f86fa2370c4509559 29-Sep-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of d8e8186c to master

Change-Id: Ica3f6cd958717ea7033cab8b4bf9cd3425c1e1c5
d8e8186c887fe47977721315f439465771a96374 29-Sep-2010 Kenny Root <kroot@google.com> am 05105f7a: Update OBB API to include callbacks

Merge commit '05105f7abe02b2dff91d6260b3628c8b97816bab' into gingerbread-plus-aosp

* commit '05105f7abe02b2dff91d6260b3628c8b97816bab':
Update OBB API to include callbacks
05105f7abe02b2dff91d6260b3628c8b97816bab 23-Sep-2010 Kenny Root <kroot@google.com> Update OBB API to include callbacks

Add a callback for users of the StorageManager API to be able to receive
notifications when the requested operation completes for mountObb and
unmountObb.

Add NDK API to get to ObbInfo like the Java API has.

Also update the docs for the API and remove the "STOPSHIP" comments.

Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
/frameworks/base/services/java/com/android/server/MountService.java
6545fcfd9642860389619dd5c83f6e6bfd455e5b 16-Sep-2010 Kenny Root <kroot@google.com> am 79a1ee42: am cee0b97e: Merge "Free AssetManager weak refs before unmounting" into gingerbread

Merge commit '79a1ee4249aadc84558dad2e275b8edde198da76'

* commit '79a1ee4249aadc84558dad2e275b8edde198da76':
Free AssetManager weak refs before unmounting
79a1ee4249aadc84558dad2e275b8edde198da76 15-Sep-2010 Kenny Root <kroot@google.com> am cee0b97e: Merge "Free AssetManager weak refs before unmounting" into gingerbread

Merge commit 'cee0b97eed0a460e2da58500e24d3e4dac5cb9f6' into gingerbread-plus-aosp

* commit 'cee0b97eed0a460e2da58500e24d3e4dac5cb9f6':
Free AssetManager weak refs before unmounting
aa48540222ef11115b29b8d7f2b7bd1ece772418 14-Sep-2010 Kenny Root <kroot@google.com> Free AssetManager weak refs before unmounting

AssetManagers are kept in WeakReference pools so there's a change
another thread in the system_server has opened a file on the external
card. Attempt to force a garbage collection to free these references
each time we're about to unmount a volume on the external storage.

Change-Id: I6e816e8c67b179887e488dc6758b43bcdd5914fb
/frameworks/base/services/java/com/android/server/MountService.java
4d42bdec8229802945e57a634374e113ff234dfe 03-Sep-2010 Kenny Root <kroot@google.com> am 0eec8948: am 305bcbf0: Decrease PackageManagerService wait time for vold

Merge commit '0eec8948f89c5216464d8204cadd69d7a6ec3669'

* commit '0eec8948f89c5216464d8204cadd69d7a6ec3669':
Decrease PackageManagerService wait time for vold
0eec8948f89c5216464d8204cadd69d7a6ec3669 03-Sep-2010 Kenny Root <kroot@google.com> am 305bcbf0: Decrease PackageManagerService wait time for vold

Merge commit '305bcbf0c961840c4505770d084a1caacc074dbb' into gingerbread-plus-aosp

* commit '305bcbf0c961840c4505770d084a1caacc074dbb':
Decrease PackageManagerService wait time for vold
305bcbf0c961840c4505770d084a1caacc074dbb 03-Sep-2010 Kenny Root <kroot@google.com> Decrease PackageManagerService wait time for vold

Up the blocking queue maximum to twice the number of containers we
allow which should let "asec list" complete without blocking the thread
several times.

Change the threads for the NativeDaemonConnector to vold and netd to be
more descriptive instead of the same name.

Bug: 2501075
Change-Id: I7e7949845a6c70a3d619aec0fa79ceef3c17a4be
/frameworks/base/services/java/com/android/server/MountService.java
bf0cb26a1c6305f2a7795c2498591b6189cc5b79 11-Aug-2010 Kenny Root <kroot@google.com> am f5ee5358: am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798'

* commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798':
Move OBB file reading to DefaultContainerService
f5ee5358c187107b2e5a1e1fbcb5a648d793c798 11-Aug-2010 Kenny Root <kroot@google.com> am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e' into gingerbread-plus-aosp

* commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e':
Move OBB file reading to DefaultContainerService
a02b8b05dd1e8b8cf169e1f89542ef835b11fc13 06-Aug-2010 Kenny Root <kroot@google.com> Move OBB file reading to DefaultContainerService

The system_server shouldn't touch files on the SD card. This change
moves the things that touch the SD card out to the
DefaultContainerService so that it will get killed if the SD card goes
away instead of the system_server.

Change-Id: I0aefa085be4b194768527195532ee6dddc801cfc
/frameworks/base/services/java/com/android/server/MountService.java
4c2d70d4e7a51c52adfbf09431b4ecf73886008a 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am a6c28cb0: am 2ffe74de: Merge "Fix isUsbMassStorageConnected() will always return true"

Merge commit 'a6c28cb014c32b9522c41385075c9db77296f6e7'

* commit 'a6c28cb014c32b9522c41385075c9db77296f6e7':
Fix isUsbMassStorageConnected() will always return true
a6c28cb014c32b9522c41385075c9db77296f6e7 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 2ffe74de: Merge "Fix isUsbMassStorageConnected() will always return true"

Merge commit '2ffe74ded51ee73ae1b412861f5d6ec58c835390' into gingerbread-plus-aosp

* commit '2ffe74ded51ee73ae1b412861f5d6ec58c835390':
Fix isUsbMassStorageConnected() will always return true
fc71125104650c61ab5b04f4c943de761d58cba6 09-Aug-2010 Tony Wu <Tony_Wu@acer.com.tw> Fix isUsbMassStorageConnected() will always return true

After UMS mounted, isUsbMassStorageConnected() will always return true even if USB is disconnected.
It's because mUmsEnabling will always be ture.

Change-Id: Ib24b2359ea2684eb0a9faeb880f383e87630e6e1
/frameworks/base/services/java/com/android/server/MountService.java
03559753ce0c6105b9357d6050aa4cddb9112ac2 20-Jul-2010 Mike Lockwood <lockwood@android.com> Add support for emulating external storage on devices with no SD card

Change-Id: I4feb03a4b8f4eae33e940477b355d3a4cac7fa86
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
02c8730c1bf19daf48bec8c6995df676a00a73b1 01-Jul-2010 Kenny Root <kroot@google.com> Add API to call to vold for mounting OBBs

* Unhide StorageService class; hide all the USB-related items

* Add application-visible API to StorageManager for OBB files

* Add class for parceling OBB info across binders (ObbInfo)

* Add a JNI glue class to libutils/ObbFile (ObbScanner)

* Add API to MountService to deal with calling into vold and checking
permissions

Change-Id: I33ecf9606b8ff535f3a2ada83931da6bbef41cfd
/frameworks/base/services/java/com/android/server/MountService.java
85fb20665feadda526ad422c093b859e8c4d40bc 02-Jun-2010 Kenny Root <kroot@google.com> Amend previous ndc commit

Submitted wrong patchset. This includes the delta for the latest
patchset.

Change-Id: I30f8fa1503cda2459ec7284eb9fa199c9fd5ef9b
/frameworks/base/services/java/com/android/server/MountService.java
a80ce06d4c54e43243073f8ceff024f9dda7140e 01-Jun-2010 Kenny Root <kroot@google.com> Add more error checking for ndc

In NativeDaemonConnector.doCommand() calls, there was inconsistent error
checking. This change adds error checking for every call and makes it so
that any call to .doCommand() that gets an error code won't cause the
code to hang forever.

Change-Id: I4584953a759a48ad16adfe8ee9e564b5f5796680
/frameworks/base/services/java/com/android/server/MountService.java
7af074a6124d2293bc979e24f3258166efb8a310 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Forcibly unmount the sdcard after N retries.

Don't rely on the ActivityManager's reported status about killing the
storage user process since the process might have gone away in between.

Change-Id: Ia7fa43eb34553329e7ff611ab6b99375b5ae673a
/frameworks/base/services/java/com/android/server/MountService.java
a50785979712bd45e4d122e7ef0e999732b15fca 25-Mar-2010 San Mehat <san@google.com> MountService: Switch all Log -> Slog

Change-Id: Id33c76497e9d963f295ef6e99d850223ca59b6cd
Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
2d66cef77e450ec4a4d725b89ae68c5e6b167bee 23-Mar-2010 San Mehat <san@google.com> Asec: Add new 'StorageNotFound' response code handling for container paths

Change-Id: I45d113f77b9f0e519087356b70fc6c4b5c290935
Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
f030462c83a91432b7cf2c699778b63b1e79de72 20-Mar-2010 Kenny Root <kroot@google.com> Make trying to remount an asec container non-fatal

If an asec container is already mounted for some reason, start tracking
it in the MountService's internal state and tell the caller we had
success mounting the secure container.

Change-Id: I5bb0f84b2bafc0cd2dba248c35a8d68fd53ef1b2
/frameworks/base/services/java/com/android/server/MountService.java
e99bb5f10b90736d10cee9729b56cba156fc0921 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
/frameworks/base/services/java/com/android/server/MountService.java
6a254403235196692b1769d2fe281b0852c0cc25 22-Mar-2010 San Mehat <san@google.com> MountService: Handle volumes shared on startup

Change-Id: I7c38607adee7c89f27c24285a7ace2b9c87e7f30
Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
8a9ab24a5c9b595ac0268fcade4b5bbfe7c45c2d 12-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Do storage checks before initiating a move.
Add new remote method to check for insufficient error conditions.
Some fixes in MountService when updating media status on PackageManagerService
Fix size calculation condition in installd.

Add new error code if media is unavailable.
New tests for testing error codes.
Some additional debugging statements in MountService.

Change-Id: Ibfe90d5ed6c71d57f9c1c67806f38b5ae9ecdfbf
/frameworks/base/services/java/com/android/server/MountService.java
5f27ef4968ac8c331157524c60a4511fcc3731b1 16-Mar-2010 Daniel Sandler <dsandler@google.com> Move MountService's Handler to a different thread.

This should help avoid blocking the system UI during storage
operations.

Change-Id: Ic53cb370baf47e8b00476706ac8df45645a2d814
/frameworks/base/services/java/com/android/server/MountService.java
2fe718a87b9ebc9679ff2abf38b6c30274267bea 11-Mar-2010 San Mehat <san@google.com> MountService: If USB cable is unplugged while UMS is active, clean up and remount

Change-Id: I9c20e7bfc215549cd8a6e14625e5d005bb53f8fa
Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
6ffce2e9a3c57634bb73f8ff133ca680f8070d5d 08-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new shutdown observer for MountService.
Use new observer before rebooting and shutting down.
Add some unit tests for unmount and shutdown code paths
Fix registering/unregistering part in MountService
Use ShutdownThread in PowerManager.reboot()
Add reboot support to ShutdownThread.
Remove MountService code from PowerManagerService.java and Power.java.
Clean shutdown/reboot is handled exclusively by ShutdownThread now.

Change-Id: Iefb157451d3d9c426cb431707b870a873c09123d
/frameworks/base/services/java/com/android/server/MountService.java
9b10ef5fe85e9d29721ff0cd15161f960d38a8db 03-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Rework the way PackageManager binds to default container service.

Clean up stale containers when enabling/disabling packages on sdcard.
Check the path of packages which are being enabled.
Make sure gc's are done prior to destroying containers when moving applicati
as well as enabling/disabling packages for sdcard mount status changes.

Some miscellaneous issues
Remove hack to avoid renaming containers.
Fix test with forward locked apps
Remove adding container id to asec list when renaming
Some cosmetic changes to DefaultContainerService
/frameworks/base/services/java/com/android/server/MountService.java
bf2dd44a6f86d13efd55d1e690822fba11187bf8 03-Mar-2010 Mike Lockwood <lockwood@android.com> MountService: Send ACTION_MEDIA_UNSHARED Intent a volume is no longer shared via UMS.

Change-Id: I21c887ae76eccabcc5d8449aa0a38e98758e8958
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
0eec21d97d9dc4eb4fdbad0e4c0fc53703452d02 26-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add dialog to display storage users when enabling/disabling ums

Some error dialogs and related strings
MountService changes to follow unmount path when enabling ums.

Please note that MountService api setUmsEnabled does not return
error codes for now. This is a known limitation.
/frameworks/base/services/java/com/android/server/MountService.java
c42e29e0a58d07a95d470780216cdf1d67476bd6 23-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add new handler mechanism in MountService to make unmount api asynchronous.
MountService updates state on PackageManager and then tries to
kill processes holding file references to media about to be unmounted by
invoking api on ACtivityManager. This is retried upto 4 times to make sure all
processes holding file references are killed before unmounting the media
at specified path.

Also changed PackageManger api to return boolean value to indicate if
MountService is likely to receive broadcasts related to apps on sd.
/frameworks/base/services/java/com/android/server/MountService.java
6a965af2d76f6cf3ec980c8ecfd257f49b3c97e3 25-Feb-2010 San Mehat <san@google.com> MountService: Send UMS_CONNECTED broadcast on boot if UMS connected.

UMS detection is now done wayyyy before the system is booted, so set a flag
to send our intent broadcast once we've booted.

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
85451ee15fdf6cae371dc3005441988c7d426401 24-Feb-2010 San Mehat <san@google.com> MountService: Fix bug which would allow apps to try to rename a container whos dst is mounted

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
3d4881067a16c7f65f2aeb06f58eb3f106b05c45 22-Feb-2010 San Mehat <san@google.com> MountService: Force unmount when enabling ums

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
fafb041b47c1c5f6a4c253768295ed3aeb7ad412 19-Feb-2010 San Mehat <san@google.com> MountService: Move boot-time mount to a thread - avoids ANR at boot

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
c34ebce475a6994f1aa59b8c535ff966c8f59431 18-Feb-2010 Marco Nelissen <marcone@google.com> Make MountService work in the simulator.
/frameworks/base/services/java/com/android/server/MountService.java
d970998b0d489774ad1c5b94b47d233912f00214 18-Feb-2010 San Mehat <san@google.com> framework: storage: Add 'force' option to unmount/destroy storage apis, and update callsites.

Also adds additional storage unit tests

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
c1b4ce93be60aa09eda5653edc2f6a8ce864526d 17-Feb-2010 San Mehat <san@google.com> MountService: Add API call for getting a list of pids currently using the specified mountpoint

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
a181b21305e0bcf171e2112a3ca5c08eb4fd2434 11-Feb-2010 San Mehat <san@google.com> MountService: Fix some mountset bugs and tighten up some return values

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
6cdd9c08565a6871ad72cd388adfdfca23532e5e 09-Feb-2010 San Mehat <san@google.com> MountService: Add isSecureContainerMounted() API call

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
59443a673a736978361dc341f41ce4e9dae053a0 09-Feb-2010 San Mehat <san@google.com> MountService: Check for failure to unmount when enabling UMS and fix reversed logic

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
b104340496e3a531e26c8f428c808eca0e039f50 05-Feb-2010 San Mehat <san@google.com> Framework: Clean up / Refactor Mount APIs

- Move android.storage.* -> android.os.storage.* and refactor users
- Refactor generic shares back to explicit ums enable/disable/isEnabled
- Remove media insert/removed event callbacks (not ready for Froyo)
- Remove 'label' from volume state change callbacks
- Add public API functions for enabling/disabling USB mass storage (permissions enforced
in MountSevice)
- Remove some stray un-needed import lines
- Move android.os.IMountService / android.os.IMountServiceListener -> android.os.storage
- Improve code comments

Updated:
MountService: Add dup state check and move debugging behind a conditional
UsbStorageActivity: Fix review comments + a TODO
StorageNotification: Add @Override tags
StorageManager: Don't use a static Listener list
MountService: Reduce bloat and fix == where I meant .equals()
PackageManagerTests: Update for new API

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
207e538350665cea00e1aa70b8094beca4a34e45 05-Feb-2010 San Mehat <san@google.com> MountService: Harden for pre-boot usage users

- Connection to native daemon now happens on creation instead of ON_BOOT
- Don't emit share change broadcasts before system is booted
- Protect against public API usage before we're ready

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
f919cd02dfd40ad1939e429c3f5e7e36538d839e 05-Feb-2010 San Mehat <san@google.com> MountService: Add WARN checks to ASEC calls to catch bad users

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
b56ae20b22fd7283df32072a431ab6d4965f3c1b 05-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Rename media resource broadcasts
Add checks for fwdlocked and updated system apps
add more tests
remove duplicate adds
/frameworks/base/services/java/com/android/server/MountService.java
4270e1ea74c57f1c65620e9f5ecaa8c2a5daf0e1 29-Jan-2010 San Mehat <san@google.com> MountService: Massive bloat reduction and rewrite

- Most API calls now return an int as a result code (see MountServiceResultCode.java)
- All notification code has been removed
- All settings code has been removed
- Removed UMS centric API calls in favor of more generic 'shares'
- Mount error reporting is no longer done via an event, but is done as part of the
actual mount process
- Rework vold IPC commands to be more sane

Updated:
MountService: Rename MountServiceObserver -> MountServiceListener
MountService: Add support for Async callbacks

Updated:
MountService: Add BinderDeath handling

Updated:
MountService: Remove notifys since we dont listen anyways

Updated:
MountService: Fix bad cast

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
d425a45f8d7c0e94d2db4c0a5c8157e6c846b853 29-Jan-2010 Daniel Sandler <dsandler@google.com> Fix build.

(Broken in change Ib94f795c.)
/frameworks/base/services/java/com/android/server/MountService.java
b94f795c257e32a1d7be1115568b5b6f576dec37 28-Jan-2010 Daniel Sandler <dsandler@google.com> New full-screen activity for USB mass storage interaction.

Still TODO: patch into forthcoming callbacks from
MountService so the USB storage activity always shows the
correct state of the device. (Right now it only refreshes
its display onResume.)

Bug: 2299129
/frameworks/base/services/java/com/android/server/MountService.java
40b5110e746060ec67307da70f662826c18228a7 28-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Remove destroy asec command when mounting secure container
/frameworks/base/services/java/com/android/server/MountService.java
02735bc9b7686e56957cdec9c10660c4a6dd1090 27-Jan-2010 San Mehat <san@google.com> MountService: Introduce new @hide permissions to protect secure containers.

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
c2a39471642e31d7350910612e40d078b825173a 27-Jan-2010 San Mehat <san@google.com> MountService: Don't update the storage status when we're unmounted

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
5b77dab23469273d41f9c530d947ac055765e6ea 26-Jan-2010 San Mehat <san@google.com> MountService: Explicitly query volume state on startup

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
45f61040823d8c442838f75cde8760f236603dae 23-Jan-2010 San Mehat <san@google.com> MountService: Add support for renaming secure containers

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
3e3a6430ea49abcdcc645a26a6f1df65acd97345 23-Jan-2010 San Mehat <san@google.com> Fix whitespace issue causing protocol syntax error

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
8ab6135841ca0fede5b99fdd9ff166fbfe0176c0 21-Jan-2010 San Mehat <san@google.com> MountService: Codeshrink

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
fd3530f90562bb7e66edfee39d90fc8beda82f1d 18-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Mount/Unmount secure containers
Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK.
New pm command to simulate mount/unmount in Pm. This will be removed
when MountService/vold event generation gets fixed.
Calls from MountService into PackageManager when media gets mounted/unmounted.
Scan the packages and grant permissions when the sdcard gets mounted.
This api might change again.
/frameworks/base/services/java/com/android/server/MountService.java
9dba709d4439d8cdb464a3dcccbddffdbe4b10ff 18-Jan-2010 San Mehat <san@google.com> MountService: Add new 'unmountSecureContainer' API call

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
5fbf4094f5857ab15801c65a260a5c4b6866d655 15-Jan-2010 San Mehat <san@google.com> MountService: Suppress media removed notification when enabling UMS

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
22dd86e0556bf60f46bb92a4d90aef8c2d55da58 12-Jan-2010 San Mehat <san@google.com> MountService: Refactor to use NativeDaemonConnector and clean-up

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
fa101530bc74bdf1517a1840a9415249211b9414 12-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of d26707da to master

Change-Id: I1a379194f70c4b14191333ca2d8e6dd9d8b0f9dd
7ebf017658070323ed1c2bbd80c46c7cd2390d87 12-Jan-2010 San Mehat <san@google.com> framework: storage: Ensure that filesystems are unmounted before shutdown/reboot

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
0f5525ad3b9b341a6c288ded8a8a08572fc657c6 11-Jan-2010 San Mehat <san@google.com> framework: asec: Rename 'Cache' -> 'Container'

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
f96135857f2f3de12576174712d6bea8b363277d 10-Jan-2010 San Mehat <san@google.com> MountService: Clean up some logspam

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
1f6301e1ff1a8ba04bc2b9c55fe6ceb883ce43bf 08-Jan-2010 San Mehat <san@google.com> MountService: Add new Settings for UMS prompting and notification behavior

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
dde25397985d82352965c54d68c0ee181b2c3cc8 07-Jan-2010 San Mehat <san@google.com> MountService: Remove ACTION_SHUTDOWN handler

Shutdown handlers run too early for unmounting, so don't handle it.
Shutdown will be called explicitly from the ShutdownThread

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
91c7761139c0931da0fcbc89bce38cee4b9cc535 07-Jan-2010 San Mehat <san@google.com> MountService: Add an ACTION_SHUTDOWN handler and export a method for external shutdown

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
3697229cc7adfd89493e87ba8b6401c8b68bdd71 06-Jan-2010 San Mehat <san@google.com> framework: MountService: Add initial support for Android Secure External Caches

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
7fd0fee968f4a3e474e1ea9933fc03552fe5f50a 17-Dec-2009 San Mehat <san@google.com> services: MountService: Refactor MountService for vold2

Squash of the following:
services: MountService: Rework the way volume states are handled
MountService: Add new API for directly getting volume state via a mount point
Environment: Switch from using system property for external storage state.
MountService: Add support for UMS
MountService: Fix a few bugs
services: MountService: Add support for mount-on-insertion
services: MountService: Add some debugging around UMS
services: MountService: Fix some UMS bugs and clean-up startup mount code

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/MountService.java
de46acddf597da5637b99a8a6e52ffd642ae913e 01-Oct-2009 Mike Lockwood <lockwood@android.com> Update SD card notification icons.

Stop using SIM card icons for USB notifications
Fixes b/1700510

Change-Id: Ic7e251a7ecad3ed46044181eae41481791df85bd
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
a7ef2698a6c9182ffd41574495a18da1ffc2be2c 10-Sep-2009 Mike Lockwood <lockwood@android.com> MountService: Use correct icon for SD card notifications.

Change-Id: Ia15847c48fce7957f1a376e173d39137b661d51c
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
9517443904e341ee77c38648763d55687cd88760 26-Aug-2009 Mike Lockwood <lockwood@android.com> MountService: Launch UsbStorageActivity with Intent.FLAG_ACTIVITY_NEW_TASK flag.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/MountService.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/services/java/com/android/server/MountService.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/MountService.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/MountService.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/services/java/com/android/server/MountService.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/services/java/com/android/server/MountService.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/services/java/com/android/server/MountService.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/services/java/com/android/server/MountService.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/services/java/com/android/server/MountService.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/services/java/com/android/server/MountService.java