diff --git a/binder/android/os/IVoldListener.aidl b/binder/android/os/IVoldListener.aidl index b3e4ba5..c4535b5 100644 --- a/binder/android/os/IVoldListener.aidl +++ b/binder/android/os/IVoldListener.aidl @@ -26,7 +26,7 @@ oneway interface IVoldListener { void onVolumeCreated(@utf8InCpp String volId, int type, @utf8InCpp String diskId, @utf8InCpp String partGuid, int userId); - void onVolumeStateChanged(@utf8InCpp String volId, int state); + void onVolumeStateChanged(@utf8InCpp String volId, int state, int userId); void onVolumeMetadataChanged(@utf8InCpp String volId, @utf8InCpp String fsType, @utf8InCpp String fsUuid, @utf8InCpp String fsLabel); void onVolumePathChanged(@utf8InCpp String volId, diff --git a/model/VolumeBase.cpp b/model/VolumeBase.cpp index 27448da..e20a049 100644 --- a/model/VolumeBase.cpp +++ b/model/VolumeBase.cpp @@ -49,7 +49,8 @@ void VolumeBase::setState(State state) { auto listener = getListener(); if (listener) { - listener->onVolumeStateChanged(getId(), static_cast(mState)); + listener->onVolumeStateChanged(getId(), static_cast(mState), + static_cast(mMountUserId)); } }