Script call

Related tutorials

 

Support HTTP interface. When calling script, please keep the main interface of virtual box in the foreground instead of switching to the background. The returned results are saved in / var / mobile / vboxresult Txt, 1 represents successful completion, 0 represents failure, and 2 represents execution in progress. Each time the script is executed, wait for one second to judge the result. If it is 2, it means that it is being executed. Continue to wait for one second and then read the result. In this way, it will only wait one more second at most. The following are all script instructions:
 
1. Create a new instance
http://127.0.0.1:8080/cmd?fun=newRecord
2. Original instance
http://127.0.0.1:8080/cmd?fun=originRecord
3. Next instance
http://127.0.0.1:8080/cmd?fun=nextRecord
4. First instance
http://127.0.0.1:8080/cmd?fun=firstRecord
5. Switch to the specified instance. Note that the current record cannot be switched, the disabled record cannot be switched, and the nonexistent record cannot be switched
http://127.0.0.1:8080/cmd?fun=setRecord&recordName=2020 -07-03-21-24-13-52
6. Delete the specified instance
http://127.0.0.1:8080/cmd?fun=deleteRecord&recordName=2020 -07-03-21-24-13-52
7. Delete all instances
http://127.0.0.1:8080/cmd?fun=deleteAllRecords
8. To obtain the device parameters of the specified instance, you need to specify the saved path
http://127.0.0.1:8080/cmd?fun=getRecordParam&recordName=2020 -07-03-21-24-13-52&saveFilePath=/var/mobile/test. plist
9. Get the name of the current instance
http://127.0.0.1:8080/cmd?fun=getCurrentRecordName
10. To obtain the setting parameters of the current instance, you need to specify the saved path
http://127.0.0.1:8080/cmd?fun=getCurrentRecordParam&saveFilePath=/var/mobile/test.plist
11. Get the names of all instances
http://127.0.0.1:8080/cmd?fun=getAllRecordNames&saveFilePath=/var/mobile/record.txt
12. Modify the instance name and specify the old name and new name. The disabled instance cannot be renamed and the original instance cannot be renamed
http://127.0.0.1:8080/cmd?fun=setRecordName&oldName=2020 -07-03-21-24-13-52&newName=2020
13. To set the device parameters of the specified instance, you need to specify the file path
http://127.0.0.1:8080/cmd?fun=setRecordParam&recordName=2020 -07-03-21-24-13-52&filePath=/var/mobile/test. plist
14. To set the device parameters of the current instance, you need to specify the file path
http://127.0.0.1:8080/cmd?fun=setCurrentRecordParam&filePath=/var/mobile/test.plist
15. Export the backup instance and save the file in / var / mobile / VBox_ Export, each tar package represents an instance. If the exported data is to be placed on other machines, please set exportkeychain = 0, because the cross machine or cross system Keychain cannot be universal, which is easy to cause the system to be activated. If this machine is used, it is recommended that exportkeychain = 0 to make the data more complete.
http://127.0.0.1:8080/cmd?fun=exportData&exportKeychain=0
16. Import the backup instance and put the file in / var / mobile / VBox_ export。 The importkeychain parameter is the same as above.
http://127.0.0.1:8080/cmd?fun=importData&importKeychain=0