Hi ALL,
I am debugging Android 6.0.1 on original board (SoC = i.MX6 DualLitte). OS is work fine now.
Then, I tested OS using CTS ( 6.0 r28 ). and I have fail status on this result.
I cannot fix this issue now. please advise!
* Kernel has configuration below.
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_SECCOMP=y
* CTS result snippet ..-----------------------------------------------------------------------------
<Test name="testViolateIsolatedServicePolicy" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
<FailedScene message="junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) ">
<StackTrace>junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.os.cts.SeccompTest.testViolateIsolatedServicePolicy(SeccompTest.java:239)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
</FailedScene>
</Test>
<Test name="testAndroidTestCaseSetupProperly" result="pass" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018" />
</TestCase>
<TestCase name="SecurityFeaturesTest" priority="">
<Test name="testNoNewPrivs" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
<FailedScene message="junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) ">
<StackTrace>junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.os.cts.SecurityFeaturesTest.testNoNewPrivs(SecurityFeaturesTest.java:31)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
</FailedScene>
</Test>
<Test name="testPrCapbsetEmpty" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
<FailedScene message="junit.framework.AssertionFailedError: capability 0 is still in the bounding set expected:<0> but was:<1> at junit.framework.Assert.fail(Assert.java:50) ">
<StackTrace>junit.framework.AssertionFailedError: capability 0 is still in the bounding set expected:<0> but was:<1>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at android.os.cts.SecurityFeaturesTest.testPrCapbsetEmpty(SecurityFeaturesTest.java:50)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
</FailedScene>
</Test>
-------------------------------------------------------------
Self reply.
My using code base has issue.
my previous engineer was commented out below.
I want to say I'm sorry for community.
diff --git a/IMX6Q_6DL/frameworks/base/cmds/app_process/app_main.cpp b/IMX6Q_6DL/frameworks/base/cmds/app_process/app_main.cpp
index c5bee57..035c9e2 100644
--- a/IMX6Q_6DL/frameworks/base/cmds/app_process/app_main.cpp
+++ b/IMX6Q_6DL/frameworks/base/cmds/app_process/app_main.cpp
@@ -12,6 +12,7 @@
#include <sys/prctl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <sys/prctl.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
@@ -185,7 +186,6 @@ static const char ZYGOTE_NICE_NAME[] = "zygote";
int main(int argc, char* const argv[])
{
- /* comment out to give root privileges for APP
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) < 0) {
// Older kernels don't understand PR_SET_NO_NEW_PRIVS and return
// EINVAL. Don't die on such kernels.
@@ -194,7 +194,6 @@ int main(int argc, char* const argv[])
return 12;
}
}
- */
AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv));
// Process command line arguments
Thank you for your time if you are checking this issues.
Azami
so, I want to close this board.
How can I do that ? please help. m(_ _)m