Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

sst_test_v2
Чтение-запись SST (Secure Storage)

Тип файла: команда
  Рус  

  • -w <name> <data>: write key to sst and private

  • -r <name> <data>: read key from sst or private

  • -t 0: write some key to secure storage

  • -t 1: repetitve read + verify some key from secure storage

  • -t 2: repetitve write + verify some key from secure storage

  • -t 3: verify some key from secure storage

  • -t 4: write some key to private

  • -t 5: repetitve read + verify some key from private

  • -t 6: repetitve write + verify some key from private

  • -t 7: verify some key from private

  • -l : list

  • -d : printf hex

  • -h : help
  •    

    Комментарии
    Примеры:
    Запись и чтение в защищенную память строки 12345 с именем qqq

    console:/ # sst_test_v2 -w qqq 12345
    console:/ # sst_test_v2 -r qqq
    [api] qqq = 12345
    [sst] qqq = 12345
    [pri] qqq = 12345

    console:/ # sst_test_v2 -w qqq 12345
    console:/ # sst_test_v2 -r qqq
    [api] qqq = 12345
    [sst] qqq = 12345
    [pri] qqq = 12345

    console:/ # sst_test_v2 -l

    [secure storage]
    1: qqq = 12345
    2: SN = BE5G31404000000110
    3: PN = V1GW0101GW0100
    4: IMEI = 004201000902E5G11404404000000110
    5: TID = 010121011000001
    6: EMAC = 0C:C6:55:04:86:FF
    7: WMAC = 0C:C6:55:04:86:9B
    8: SN1 = BE5G31404000000110
    9: PN1 = V1GW0101GW0100
    10: IMEI1 = 004201000902E5G11404404000000110
    11: TID1 = 010121011000001
    12: EMAC1 = 0C:C6:55:04:86:FF
    13: WMAC1 = 0C:C6:55:04:86:9B

    [private space]
    1: qqq = 12345
    2: SN = BE5G31404000000110
    3: PN = V1GW0101GW0100
    4: IMEI = 004201000902E5G11404404000000110
    5: TID = 010121011000001
    6: EMAC = 0C:C6:55:04:86:FF
    7: WMAC = 0C:C6:55:04:86:9B
    8: SN1 = BE5G31404000000110
    9: PN1 = V1GW0101GW0100
    10: IMEI1 = 004201000902E5G11404404000000110
    11: TID1 = 010121011000001
    12: EMAC1 = 0C:C6:55:04:86:FF
    13: WMAC1 = 0C:C6:55:04:86:9B
    console:/ #

    Проверка в оболочке U-Boot
    ---------------------
    => help pst
    pst - read data from secure storageerase flag in secure storage

    Usage:
    pst pst read|erase [name]
    pst read, then dump all data
    pst read name, then dump the dedicate data
    pst write name, string, write the name = string
    pst erase, then erase all secure storage data
    pst erase key_burned_flag, then erase the dedicate data
    NULL
    => pst read qqq
    [53.055]name in map qqq
    private data:
    bbe4e240: 34333231 00000035 00000000 00000000 12345...........
    =>