sdmioutils importdeliverypermit (defining applications that can be installed by users)
This command defines applications that can be installed by users.
- Organization of this page
Functionality
This command imports a distribution permission definition file, and defines the applications that can be installed by users based on the contents of the file.
The information set by this command depends on the value specified for -mode. The following table describes the information set for each value of -mode:
Value specified for -mode |
Settings |
---|---|
all |
All information in the distribution permission definition file pertaining to applications that can be installed by users is set. |
app |
Permission to distribute the specified application is granted for the smart devices specified in the distribution permission definition file. |
device |
Permission to distribute the applications in the distribution permission definition file is granted for the specified smart device. |
Execute this command on the smart device manager.
Format 1
sdmioutils importdeliverypermit -import distribution-permission-definition-file -mode all [ -encoding character-encoding]
Format 2
sdmioutils importdeliverypermit -import distribution-permission-definition-file -mode app -name name -version version -ostype OS-type[ -encoding character-encoding]
Format 3
sdmioutils importdeliverypermit -import distribution-permission-definition-file -mode device -name name -ostype OS-type[ -encoding character-encoding]
Arguments
- -inport distribution-permission-definition-file
-
Specify the absolute path (within 259 bytes) of the distribution permission definition file that lists the applications that can be installed by users.
- -mode {all | app | device}
-
Specify the import mode.
- all
-
All information in the distribution permission definition file pertaining to applications that can be installed by users is set.
- app
-
Permission to distribute the specified application is granted for the smart devices specified in the distribution permission definition file.
- device
-
Permission to distribute the applications in the distribution permission definition file is granted for the specified smart device.
- -name name
-
Specify the name of the application or smart device.
- -version version
-
Specify the version of the application. You can only specify this argument when app is specified for -mode.
- -ostype OS-type
-
Specify the OS type of the application to be imported.
The following OS types can be specified:
0: Android
1: iOS
- -encoding character-encoding
-
Specify the character encoding of the file to be imported. If you do not specify this argument, the character encoding is set to UTF-8.
-
ISO-8859-1
-
UTF-8
-
UTF-16
-
Storage location
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\bin
Execution permissions
Administrator permissions (this command is executed from the administrator's console if the Windows UAC function is enabled)
Notes
-
To execute this command, the smart device manager must be running.
-
To execute this command, the database service on the smart device manager must be running.
-
Multiple instances of this command cannot be executed simultaneously.
-
This command cannot be executed simultaneously with any of the following commands:
-
sdmexportdb
-
sdmimportdb
-
Return values
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The format for specifying the command arguments is invalid. Alternatively, the length of the file name specified for the command argument exceeds the upper limit. |
12 |
You do not have the permissions to execute this command. |
13 |
The specified server is not correct, or the operating environment of JP1/ITDM2 - SDM (Smart Device Manager) is invalid. |
14 |
The file does not exist, or you do not have permission to access it. |
15 |
A file access error occurred, or the disk does not have sufficient capacity. |
18 |
Another command is being executed. |
21 |
The specified application does not exist. |
27 |
The format of the file is invalid. |
28 |
A specified application or smart device was not found. |
29 |
The specified device does not exist. |
30 |
The database cannot be accessed. |
40 |
Command execution was interrupted. |
150 |
Other error occurred. |
253 |
The service has not started. |
Example 1
The following shows an example of using the command to set information for all applications that can be installed by users (distribution permission definition file: C:\temp\exportdeliverypermit.csv#).
sdmioutils importdeliverypermit -import C:\temp\exportdeliverypermit.csv -mode all
- # The contents of the C:\temp\exportdeliverypermit.csv file are as follows:
OS type,Application name,Version,Distribution permission type,Device name Android,app2,v1,0,device4 Android,app2,v1,0,device5 Android,app3,v1,0,device5 iOS,app1,v1,0,device1 iOS,app1,v1,0,device2 iOS,app1,v1,0,device3
Example 2
The following shows an example of using the command to permit distribution of the iOS application application01 (version 1.00) (distribution permission definition file: C:\temp\exportdeliverypermit.csv#).
sdmioutils importdeliverypermit -import C:\temp\exportdeliverypermit.csv -mode app -name application01 -version 1.00 -ostype 1
- # The contents of the C:\temp\exportdeliverypermit.csv file are as follows:
Distribution permission type,Device name 0,device1 0,device2 0,device3
Example 3
The following shows an example of using the command to permit distribution of applications to the iOS device smartdevice01 (distribution permission definition file: C:\temp\exportdeliverypermit.csv#).
sdmioutils importdeliverypermit -import C:\temp\exportdeliverypermit.csv -mode device -name smartdevice01 -ostype 1
- # The contents of the C:\temp\exportdeliverypermit.csv file are as follows:
Application name,Version app1,v1 app2,v1 app3,v1
Related Topics