Project

General

Profile

Bug #28

Compiling espresso3g ua for android 7.1.2 with BUILD_TYPE=user

Added by Jean Yves BAUDY over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
% Done:

100%

Device:
espresso3g

Description

Hi There,

When I try to compile the espresso3g ua for android 7.1.2 with BUILD_TYPE=user to have a build with no su and a build type equal to "user" I get this complie error

/aosp-7.1/out/target/product/espresso3g/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit
/unlegacy/aosp-7.1/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/unlegacy/aosp-7.1/out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to /unlegacy/aosp-7.1/out/target/product/espresso3g/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit
==========
ERROR: permissive domains not allowed in user builds
List of invalid domains:
cpboot-daemon

In fille -> /device/samsung/espresso3g/sepolicy/cpboot-daemon.te
-> permissive cpboot-daemon;

If I remove the line permissive cpboot-daemon the build works fine.

Any reason to have this line in branch 7.1.2 in this file ?

What is the status of branch 7.1.2 (My first test show that some applications crash randomly and the battery life is very poor :-(

Regards

History

#1 Updated by Jean Yves BAUDY over 2 years ago


As the build with user build type is not supported yet  this bug can be change to a feature enhancement.

There is one more thing that make security application(s) consider the rom as rooted. In the result build.prop some properties are set to test-key. 

  • ro.build.display.id=N2G47T test-keys
  • ro.build.tags=test-keys

Regards

#2 Updated by Andreas Blaesius over 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Andreas Blaesius
  • % Done changed from 0 to 100

#3 Updated by Jean Yves BAUDY about 2 years ago

Hi there

Many thanks for the resolution. I will open a new feature for the remaining test.release present in the build.prop file (aosp 6.0 and aosp 7.0).

Regards

#4 Updated by Andreas Blaesius almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF