如何以系统权限编译Android应用程序应用程序、权限、系统、Android

2023-09-12 00:15:00 作者:煕暮

我需要编译系统权限的应用程序,以便使用目标应用com.android.settings。现在当我尝试运行我的apk我得到错误信息

I need to compile an application with system permissions in order to use target application com.android.settings. For now while I try to run my apk I get the error message

试运行失败:权限被拒绝:   启动仪器   ComponentInfo {com.jayway.test / android.test.InstrumentationTestRunner}   从PID = 354,UID = 354不准   因为包com.jayway.test做   没有匹配的签名   目标com.android.settings

Test run failed: Permission Denial: starting instrumentation ComponentInfo{com.jayway.test/android.test.InstrumentationTestRunner} from pid=354, uid=354 not allowed because package com.jayway.test does not have a signature matching the target com.android.settings

我如何可以编译我的系统权限的应用程序?

How can I compile my application with system permissions?

推荐答案

有一些搜索,我发现如何注册我与系统(平台)的关键应用程序后。 系统签名位于目录<&GT根树Android的源; /编译/目标/产品/安全。你可以用它们来签署具有系统权限的应用程序。

After having some search I found how to sign my application with system (platform) key. System signatures are located in directory <root-of-android-source-tree>/build/target/product/security. You can use them to sign your application with system privileges.