回退 'Pull Request !496 : 回退 'Pull Request !493 : add sysparam dac''

This commit is contained in:
张文迪 2023-03-29 04:08:15 +00:00 committed by Gitee
parent 0e40dad913
commit 4dcfb5e71b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 20 additions and 4 deletions

View File

@ -63,9 +63,11 @@ Note:If the text contains special characters, please escape them according to th
</filefilter>
<filefilter name="defaultPolicyFilter" desc="Filters for compatibilitylicense 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>

View File

@ -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",

View File

@ -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) {

View File

@ -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

View File

@ -0,0 +1 @@
persist.filemanagement.usb.readonly = edm:edm:0776

View File

@ -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"};