Project

General

Profile

Actions

Bug #6453

open

Encoding problem with aram_store_ref_ar_do

Added by dWall about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
05/15/2024
Due date:
% Done:

0%

Spec Reference:

Description

I have tried to store an access rule in a SIM with aram applet and I get this error:

pySIM-shell (00:MF/ADF.ARA-M)> aram_store_ref_ar_do --aid ffffffffffff --device-app-id E849B63A7B96E571F788FC5845C4AA3C520D18E8 --android-permissions 0000000000000001

ValueError: Dict [{'ref_ar_do': [{'ref_do': [{'aid_ref_do': 'ffffffffffff'}, {'dev_app_id_ref_do': 'E849B63A7B96E571F788FC5845C4AA3C520D18E8'}]}, {'ar_do': [{'perm_ar_do': {'permissions': '0000000000000001'}}]}]}] doesn't contain expected key command_store_ref_ar_do
EXCEPTION of type 'ValueError' occurred with message: Dict [{'ref_ar_do': [{'ref_do': [{'aid_ref_do': 'ffffffffffff'}, {'dev_app_id_ref_do': 'E849B63A7B96E571F788FC5845C4AA3C520D18E8'}]}, {'ar_do': [{'perm_ar_do': {'permissions': '0000000000000001'}}]}]}] doesn't contain expected key command_store_ref_ar_do

Looking at the code (tlv.py) I have found that encoding "from_dict" recursive method is not working properly and I haven't been able to fix it.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)