简体   繁体   English

如何使 TAG_ALPHA_IDENTIFIER 为空而不要求用户确认

[英]How to make TAG_ALPHA_IDENTIFIER empty not to ask user for a confirmation

My wallet applet requires to perform actions like PLAY TONE etc. But it requires a prompt "Yes or No?"我的钱包小程序需要执行PLAY TONE等操作,但它需要提示“是或否?” from user.来自用户。 AFAIK, it is TAG_ALPHA_IDENTIFIER which is responsible for that. AFAIK,负责的是 TAG_ALPHA_IDENTIFIER。 However, if I try this code below, it still asks user confirmation but now with "@" text.但是,如果我在下面尝试这段代码,它仍然会要求用户确认,但现在带有“@”文本。 How to get rid of user confirmation at all?如何完全摆脱用户确认?

Attempt 1. Failed with NullPtrException尝试 1. 因 NullPtrException 而失败

proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER, null, (short)0, (short)0);
proHdlr.send();

Attempt 2. Prompts '@@'尝试 2. 提示 '@@'

proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER, (byte)0, (byte)0);
proHdlr.send();

Attempt 3. Prompts '@'尝试 3. 提示 '@'

proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER, (byte)0);
proHdlr.send();

Attempt 4. Prompts Default Text尝试 4. 提示默认文本

byte[] ALPHA_MSG = {};
proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER, ALPHA_MSG, (short)0, (short)ALPHA_MSG.length);
proHdlr.send();

According to ETSI 102.223 , "8.2 Alpha identifier" section, it should be:根据ETSI 102.223 ,“8.2 Alpha 标识符”部分,它应该是:

Description描述 Length长度
Alpha identifier tag字母标识符标签 1 1个
Length(X)长度(X) Y
Alpha identifier字母标识符 X X

And there is also "Default text" in documentation, however since "5.3.7 Text attributes" requires Alpha Identifier to be present, Default text should not bother, right?并且文档中也有“默认文本”,但是由于“5.3.7 文本属性”要求存在 Alpha 标识符,所以默认文本应该不会打扰,对吧?

In this document "6.4.5 PLAY TONE" section, page 45 it says:在本文档“6.4.5 PLAY TONE”部分,第 45 页,它说:

if the alpha identifier is provided by the UICC and is a null data object (ie length = '00' and no value part), the terminal should not give any information to the user;如果alpha标识符由UICC提供,是一个null数据object(即length='00'且没有value部分),终端不应向用户提供任何信息;

That's what I need.这就是我需要的。 How should I do it Java with ProactiveHandler?我应该怎么做 Java 使用 ProactiveHandler? All my Google searches end up with some text/menu title for Alpha Identifier.我所有的谷歌搜索都以 Alpha 标识符的一些文本/菜单标题结束。

How to get rid of user confirmation and perform the proactive action without it?如何摆脱用户确认并在没有它的情况下执行主动操作?

a) Try to pass no data at all, ie leave out the proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER line. a) 尽量不传递任何数据,即proHdlr.appendTLV(ToolkitConstants.TAG_ALPHA_IDENTIFIER行。

b) The behavior might be phone-related or more specific modem-related. b) 该行为可能与电话相关或更具体的与调制解调器相关。 Check out a MediaTek based one, a Qualcomm based one and an iPhone and compare the results.检查基于联发科的、基于高通的和 iPhone 并比较结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM