使用adb命令将呼叫UI置于前面

时间:2018-12-19 11:03:50

标签: android adb

用例

在通话过程中,用户打开了一些应用程序,而inCall用户界面位于APP用户界面的后面。我需要使用adb命令将其恢复

我做了什么?

我在下面的命令中使用了

SELECT COUNT(distinct column_name)
OR
SELECT LENGTH(column_name) AS test FROM table_name;

导致错误的原因

SELECT 
    COUNT(field) AS tot_true, 
    COUNT(*)-COUNT(field) AS tot_false
FROM table
WHERE field=1

有什么方法可以使用adb达到预期的结果?

1 个答案:

答案 0 :(得分:1)

The InCallActivity activity can't be launched from other applications including launching via am start as the android:exported element of InCallActivity is set to false.

android:exported

This element sets whether the activity can be launched by components of other applications - "true" if it can be, and "false" if not. If "false", the activity can be launched only by components of the same application or applications with the same user ID.

If you are using intent filters, you should not set this element "false". If you do so, and an app tries to call the activity, system throws an ActivityNotFoundException. Instead, you should prevent other apps from calling the activity by not setting intent filters for it.

If you do not have intent filters, the default value for this element is "false". If you set the element "true", the activity is accessible to any app that knows its exact class name, but does not resolve when the system tries to match an implicit intent.

This attribute is not the only way to limit an activity's exposure to other applications. You can also use a permission to limit the external entities that can invoke the activity (see the permission attribute).