Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8056bc17 authored by Sanny Shang's avatar Sanny Shang Committed by Jordan Liu
Browse files

Support ENVELOPE (EVENT DOWNLOAD - User activity) command

The terminal shall send the ENVELOPE (EVENT DOWNLOAD - User activity)
command to the UICC when some user activity like a key-press or touch is
detected if the user activity event is a part of the current event list.
This change allows the SIM Toolkit application to support that event.
Please refer to the specification of SET UP EVENT LIST command described
in ETSI TS 102.223.

Bug: 65884891
Test: Confirmed the expected seq 1.1 of ETSI TS 102.384 TC 27.22.4.16

Change-Id: I7d3faa09cd4625db53bcfe21f90570389a4ea037
parent bc0269bd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import static com.android.internal.telephony.cat.CatCmdMessage.SetupEventListCon
        .IDLE_SCREEN_AVAILABLE_EVENT;
import static com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants
        .LANGUAGE_SELECTION_EVENT;
import static com.android.internal.telephony.cat.CatCmdMessage.SetupEventListConstants
        .USER_ACTIVITY_EVENT;

import android.app.ActivityManagerNative;
import android.app.IActivityManager;
@@ -350,6 +352,7 @@ public class CatService extends Handler implements AppInterface {
                 * Language Selection.  */
                case IDLE_SCREEN_AVAILABLE_EVENT:
                case LANGUAGE_SELECTION_EVENT:
                case USER_ACTIVITY_EVENT:
                    break;
                default:
                    flag = false;
@@ -763,6 +766,8 @@ public class CatService extends Handler implements AppInterface {
                // Language length should be 2 byte
                buf.write(0x02);
                break;
            case USER_ACTIVITY_EVENT:
                break;
            default:
                break;
        }