wasdennnoch / AndroidN-ify

[Discontinued] An Xposed module to use features introduced in Android N on your LP+ Device
265 stars 93 forks source link

Settings drawer only working on permissive SELinux on Android M #1060

Open soder82 opened 7 years ago

soder82 commented 7 years ago

OnePlus One running COS 13.1.2 and build 704 of AndroidN-ify. Option enabled in experimental settings and phone rebooted. Nothing happens swiping right from the left side when in settings.

Settings.apk is to big to attach here. Here's a url to the file at Google Drive. https://drive.google.com/open?id=0ByKJCdRlcMcRTk91cFRPN1ZuRVk

pwrusr commented 7 years ago

Try changing the se Linux to permissive

soder82 commented 7 years ago

Where do I change that the easiest way?

/Söder

On Sat, Oct 15, 2016, 20:01 pwrusr notifications@github.com wrote:

Try changing the se Linux to permissive

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254000261, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBtrOYy9KqfvNlwBgJJN1LgZQkpJ9ks5q0RUGgaJpZM4KXtyd .

pwrusr commented 7 years ago

Uninstal nify >Download se Linux app and set it to permissive then install nify >reboot

soder82 commented 7 years ago

Do you have any example of an app? More specific?

/Söder

On Sat, Oct 15, 2016, 20:14 pwrusr notifications@github.com wrote:

Uninstal nify >Download se Linux app and set it to permissive then install nify >reboot

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254001178, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBj_6hKZqRV9mtfRF3Y8m7FWc23uUks5q0Rf3gaJpZM4KXtyd .

pwrusr commented 7 years ago

Se Linux apk.. Google it

soder82 commented 7 years ago

This one? SELinuxModeChanger-v3.2-release.apk

On Sat, Oct 15, 2016, 21:38 pwrusr notifications@github.com wrote:

Se Linux apk.. Google it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254006340, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBtl6TlRwquQBAKla-29rMiShkpCxks5q0SuvgaJpZM4KXtyd .

soder82 commented 7 years ago

I can't get that app to understand that I've giving it root privileges.

On Sat, Oct 15, 2016, 21:48 Söder soder82@gmail.com wrote:

This one? SELinuxModeChanger-v3.2-release.apk

On Sat, Oct 15, 2016, 21:38 pwrusr notifications@github.com wrote:

Se Linux apk.. Google it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254006340, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBtl6TlRwquQBAKla-29rMiShkpCxks5q0SuvgaJpZM4KXtyd .

pwrusr commented 7 years ago

Give it root privileges then touch on permissive it wil greyout and A notification wil popup that it is set to permissive

soder82 commented 7 years ago

The latest version didn't work for me, and I read there was others that had the same problem. 3.0.1 worked though.

And there menu shows up now in settings.

Do I have to have changed this selinux now then, or will a feature update make it work also in the normal mode?

Now I don't pass SafetyNet.

On Sun, Oct 16, 2016, 07:44 pwrusr notifications@github.com wrote:

Give it root privileges then touch on permissive it wil greyout and A notification wil popup that it is set to permissive

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254028966, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBvvFmUuHv53zNeJzcIS9z8l_uUprks5q0bnEgaJpZM4KXtyd .

pwrusr commented 7 years ago

Uninstal nify first...then set permissive..reboot> check permissive is set when device turns on > Install nify > reboot

soder82 commented 7 years ago

I can't get the app to save the permissive mode. After reboot it's back to enforcing. AndroidN-ify is uninstalled...

On Sun, Oct 16, 2016, 08:24 pwrusr notifications@github.com wrote:

Uninstal nify first...then set permissive..reboot> check permissive is set when device turns on > Install nify > reboot

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wasdennnoch/AndroidN-ify/issues/1060#issuecomment-254030097, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbUBqI1c9oxY7xml6aZYMUVqwsiOZz4ks5q0cMegaJpZM4KXtyd .

wasdennnoch commented 7 years ago

I'll try to replace the XSharedPreferences by Xposed with something more reliable in the future.

pgmann commented 7 years ago

Get a terminal app, execute su to elevate permissions to a root shell, then execute setenforce 0. This will be reset on boot (unless you soft reboot).

Maxr1998 commented 7 years ago

As @wasdennnoch said, we will look into other ways of reading the preferences file. Disabling SELinux is only a workaround for now.

wasdennnoch commented 7 years ago

Actually who knows if it's a permission issue, maybe it's the Settings app. Before I try to decompile the apk and hangle through every piece of code it's better to have an Xposed log at hand, so - Xposed log please ;)

Silver-Fullbuster commented 7 years ago

Xposed log: http://pastebin.com/1jVsbXjx

wasdennnoch commented 7 years ago

Ok, no errors (did you even open the settings? ^^), so it's probably the permission thingy. Oh, @Maxr1998 MaxLock has no access to its history file in that log :P

Maxr1998 commented 7 years ago

@wasdennnoch blame SELinux :P

Silver-Fullbuster commented 7 years ago

I did open the settings. Nothing new was there in the logs. :p