我的Android电视盒Settings
图标丢失,但是我可以创建快捷方式或运行外壳中AndroidManifest.xml
中列出的其他活动,但是运行.MainActivity
am start -n com.zte.iptvclient.android.settings/.activity.MainActivity
我遇到错误
java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.zte.iptvclient.android.settings/.activity.MainActivity } from null (pid=3976, uid=2000) not exported from uid 1000
我尝试为android:exported="true"
添加.MainActivity
,但仍然收到相同的错误,并且图标未显示
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.zte.iptvclient.android.settings.common.IPTVClientBaseApplication" android:supportsRtl="true" android:theme="@android:style/Theme.NoTitleBar">
<activity android:exported="true" android:label="@string/app_name" android:launchMode="singleTask" android:name="com.zte.iptvclient.android.settings.activity.MainActivity">
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:name="com.zte.iptvclient.android.settings.common.BootBroadcastReceiver" android:permission="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.REBOOT"/>
</intent-filter>
</receiver>
<service android:enabled="true" android:exported="true" android:name="com.zte.iptvclient.android.settings.common.SettingsService"/>
<activity android:name="com.zte.iptvclient.android.settings.activity.NetworkSetting">
<intent-filter>
<action android:name="zte.android.action.networksetting"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>