# HG changeset patch # User Mychaela Falconia # Date 1613594490 0 # Node ID 7412cdd505b30899fb3555598a3435e3e53d3bb1 # Parent 285fb9555530bc7bd3e0964ea264495b4c9cc33f doc/Low-level-commands: restore-file documented diff -r 285fb9555530 -r 7412cdd505b3 doc/Low-level-commands --- a/doc/Low-level-commands Wed Feb 17 19:54:57 2021 +0000 +++ b/doc/Low-level-commands Wed Feb 17 20:41:30 2021 +0000 @@ -125,7 +125,15 @@ to the SIM uses the PREVIOUS addressing mode, and there is no record number. This form is needed in order to write to cyclic EFs. -restore-file +restore-file File_ID host-bin-file + +This command restores a binary backup previously made with savebin back to the +SIM, or writes new bits into the EF if you can construct the necessary binary +image with tools like xxd. The arguments are the same as for the savebin +command. This command supports all 3 types of EF (transparent, linear fixed +and cyclic) and uses the correct UPDATE BINARY or UPDATE RECORD commands based +on the SELECT response. Cyclic files are restored by writing every record in +the reverse order from the last index to the first. GSM authentication testing ==========================