How do I get ADB permission to execute a class of Google Trusted Devices

0

I'm new at StackOverflow and I would like that someone would help me with his.

I actually have a Huawei Y6II with EMUI 4.1 but Huawei, in the HwSettings package (actually is the Android Settings) on the "Lock Screen and Passwords" settings doesn't appear the Google Smart Lock settings. So I decided to investigate for another way to execute this activity and I found that I can do it with this code in ADB:

adb shell am start -n com.google.android.gms/.trustagent.GoogleTrustAgentPersonalUnlockingSettings

but on the ADB shell terminal appears this error:

Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.gms/.trustagent.GoogleTrustAgentPersonalUnlockingSettings } from null (pid=29438, uid=2000) requires android.permission.READ_SEARCH_INDEXABLES
    at android.os.Parcel.readException(Parcel.java:1602)
    at android.os.Parcel.readException(Parcel.java:1555)
    at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2695)
    at com.android.commands.am.Am.runStart(Am.java:887)
    at com.android.commands.am.Am.onRun(Am.java:361)
    at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
    at com.android.commands.am.Am.main(Am.java:102)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)

so I just learned here that I need the android.permission.READ_SEARCH_INDEXABLES to execute that in the ADB shell terminal.

I need help to get that permission for the Windows ADB terminal. Thanks to everyone that would like to help me.

android
permissions
adb
asked on Stack Overflow Aug 24, 2020 by Oscar_02

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0