Skip to content

Commit

Permalink
Change security context for app service
Browse files Browse the repository at this point in the history
Starting with Marshmallow, Android assigns SELinux context levels to
app processes and files, so Xposed needs to follow this.
  • Loading branch information
rovo89 committed Nov 15, 2015
1 parent 0302691 commit f61eb37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xposed.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
#if XPOSED_WITH_SELINUX
#include <selinux/selinux.h>
static security_context_t ctx_system = (security_context_t) "u:r:system_server:s0";
#if PLATFORM_SDK_VERSION >= 23
static security_context_t ctx_app = (security_context_t) "u:r:untrusted_app:s0:c512,c768";
#else
static security_context_t ctx_app = (security_context_t) "u:r:untrusted_app:s0";
#endif // PLATFORM_SDK_VERSION >= 23
#endif // XPOSED_WITH_SELINUX

namespace xposed {
Expand Down

0 comments on commit f61eb37

Please sign in to comment.