mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-22 22:51:35 +00:00
parent
0e40dad913
commit
4dcfb5e71b
2
OAT.xml
2
OAT.xml
@ -63,9 +63,11 @@ Note:If the text contains special characters, please escape them according to th
|
||||
</filefilter>
|
||||
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
|
||||
<filteritem type="filepath" name="services/storage_daemon/disk_config" desc="config file,can not add license head"/>
|
||||
<filteritem type="filepath" name="services/storage_daemon/usb_config.para.dac" desc="config file,can not add license head"/>
|
||||
</filefilter>
|
||||
<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
|
||||
<filteritem type="filepath" name="services/storage_daemon/disk_config" desc="config file,can not add license head"/>
|
||||
<filteritem type="filepath" name="services/storage_daemon/usb_config.para.dac" desc="config file,can not add license head"/>
|
||||
</filefilter>
|
||||
</filefilterlist>
|
||||
</oatconfig>
|
||||
|
@ -56,7 +56,7 @@
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:storage_daemon",
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:storage_daemon_cfg",
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:storage_daemon_disk_config",
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:usb_config.para",
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:storage_daemon_usb_param",
|
||||
"//foundation/filemanagement/storage_service/services/storage_daemon:storage_daemon_third_party",
|
||||
"//foundation/filemanagement/storage_service/services/storage_manager/sa_profile:storage_manager_sa_profile",
|
||||
"//foundation/filemanagement/storage_service/services/storage_manager/sa_profile:storage_manager_cfg",
|
||||
|
@ -220,6 +220,20 @@ ohos_prebuilt_etc("usb_config.para") {
|
||||
module_install_dir = "etc/param"
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("usb_config.para.dac") {
|
||||
source = "usb_config.para.dac"
|
||||
part_name = "storage_service"
|
||||
subsystem_name = "filemanagement"
|
||||
module_install_dir = "etc/param"
|
||||
}
|
||||
|
||||
group("storage_daemon_usb_param") {
|
||||
deps = [
|
||||
":usb_config.para",
|
||||
":usb_config.para.dac",
|
||||
]
|
||||
}
|
||||
|
||||
group("storage_daemon_third_party") {
|
||||
deps = []
|
||||
if (storage_service_fstools) {
|
||||
|
@ -11,5 +11,4 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
usb.readonly = false
|
||||
persist.filemanagement.usb.readonly = false
|
1
services/storage_daemon/usb_config.para.dac
Normal file
1
services/storage_daemon/usb_config.para.dac
Normal file
@ -0,0 +1 @@
|
||||
persist.filemanagement.usb.readonly = edm:edm:0776
|
@ -35,7 +35,7 @@ int32_t VolumeInfo::Create(const std::string volId, const std::string diskId, de
|
||||
mountFlags_ = 0;
|
||||
userIdOwner_ = 0;
|
||||
|
||||
std::string key = "usb.readonly";
|
||||
std::string key = "persist.filemanagement.usb.readonly";
|
||||
int handle = static_cast<int>(FindParameter(key.c_str()));
|
||||
if (handle != -1) {
|
||||
char rdOnlyEnable[255] = {"false"};
|
||||
|
Loading…
Reference in New Issue
Block a user