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

Commit 1148f12b authored by Kun Liang's avatar Kun Liang
Browse files

AppOps: Fix systemserver crash under Chinese

The Chinese array doesn't match the corresponding English array.
When checking ops under Chinese, if the ops code is bigger than
the array's size, there will be ArrayIndexOutOfBounds exception.

Change-Id: I4146fd158c94602610fb64d6add2b22a3e4bab54
parent e9bf2de0
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -1697,16 +1697,29 @@
        <item>试图修改设置</item>
        <item>试图在顶层绘图</item>
        <item>试图获取通知</item>
        <item>试图使用相机</item>
        <item>试图使用摄像头</item>
        <item>试图录音</item>
        <item>试图放音</item>
        <item>试图读取剪贴板</item>
        <item>试图修改剪贴板</item>
        <item>试图控制多媒体按钮</item>
        <item>试图控制音频焦点</item>
        <item>试图控制主音量</item>
        <item>试图控制语音音量</item>
        <item>试图控制铃声音量</item>
        <item>试图控制多媒体音量</item>
        <item>试图控制闹钟音量</item>
        <item>试图控制通知音量</item>
        <item>试图控制蓝牙音量</item>
        <item>试图阻止手机休眠</item>
        <item>试图获取位置信息</item>
        <item>试图获取位置信息</item>
        <item>试图开关Wifi</item>
        <item>试图开关蓝牙</item>
        <item>试图开关移动数据</item>
        <item>试图发送彩信</item>
        <item>试图读取彩信</item>
        <item>试图修改彩信</item>
        <item>试图自启动</item>
    </string-array>
</resources>