Hello.
After many many tinkering and a small hint from @rovo89, finally i can present you the first stable version of the grorkmod.
Added v1.7 LineageOS-Version
Added v1.0 LineageOS-Version
Added v1.1 lite
Review betaversions
Stable
Installation
Have fun with a fully working ROM!
greetings
vsrookie
CREDIT / INSPIRATION
Download mod LOS-Version v1.7
Download mod v1.1 lite
Download mod v1.0
Alternative Download
older Versions:
old Projectdescription:
About
Background
BEWARE/Disclaimer
The idea behind
Installing
XDA:DevDB Information
Grorkmod, Tool/Utility for the Elephone P9000
Contributors
vsrookie
Version Information
Status: Stable
Current Stable Version: 1.1
Stable Release Date: 2016-09-17
Current Beta Version: 0.94
Beta Release Date: 2016-06-09
Created 2016-06-09
Last Updated 2017-02-17
After many many tinkering and a small hint from @rovo89, finally i can present you the first stable version of the grorkmod.
Added v1.7 LineageOS-Version
Fix for bluetooth
Updated Audio_policy.conf will be copied. Result is a working audio.
Added v1.0 LineageOS-Version
Until the fix is integrated in the Rom, you can use the LOS-Version for a working fm-radio.
The Fix will add the following rights to selinux:
system_app fm_device:chr_file {write, read, open, ioctl}
This is a quick'n'dirty way.
Added v1.1 lite
In this version the fix is the same, but the script dont need an installed superuser. Also it will leave the system untouched.
Ive tested this version with Eragon v4.0 (With Gravitybox as testmodule, guess what... its working. Ive NOT tested if magisks will work properly with banking apps. please do it for me.
Review betaversions
In the past versions i have tried to workaround the problem.
At projectstart i have seen many audit denies. I tried to eliminate them with injecting allows to the sepolicy.
This was a part of the little success i had with the first versions. The other part was to set the classes internally to permissive.
These two components and the "bootprocesshack", in which i changed the sepolicy-binary in root, made the beta versions working.
The problem in the beta version was always, that in some cases the workaround didn't worked.
Stable
After an hint that @rovo89 gave me, i saw the problem in seconds, and.... *FACEPALM*
I've saw the problem and didn't saw it anyway.....
For a reason i don't know (maybe it's just a fault from Elephone or mediathek?) they "forget" to setup the contexts files not correctly.
With this mod i fix the entries in the seapp_contexts and file_contexts.
This is the whole magic.
Installation
- Wipe Dalvik/Cache
- Install ROM
- Install SuperSU
- Install grorkmod
- Install xposed
- then boot to system
Have fun with a fully working ROM!
greetings
vsrookie
CREDIT / INSPIRATION
@Chainfire - for his overwhelming work. @rovo89 - for making apps bend like metal
@skeleton1911 - for making his rom and his work
@Mikos - for his setools for android
@Deepflex - for all the work done to our device
Download mod LOS-Version v1.7
Download mod v1.1 lite
Download mod v1.0
Alternative Download
older Versions:
old Projectdescription:
About
This is a solution to get the xposed framework running in enforcing mode AND keep it running after a reboot, dalvik cache wipe and installation of any app.
The main goal is for sure the working xposed framework in enforcing mode, but as we all noticed there are several issues that come with a script that only set the selinuxmode to permissive. That's the second part of this project, trying to not change the behaviour of apps like on stockrom.
Background
As i get the p9000 and installed eragon the first time, i installed the xposed framework as fast as i can and.... everything works? Installed modules and... nothing worked!? I tried some things to get it working, but with everything i tried, i had to take a smear.
Pretty annoying, isn't it?
I took a deeper look into selinux and tinkered.... and tinkered ... and tinkered!
Now i think it's time to share my stuff with this great community and i hope that i will help with my mod.
BEWARE/Disclaimer
If you don't know what selinux is, then i think you have to read a "little bit" about it. (pure linux stuff; non Android)
If you google it, then you find everything you need, to learn more about it. If you don't know what rooting is, then play Angrybirds instead.
Understand this:
SELinux is a abbreviation for Security Enhanced Linux. That isn't just a name, it's the programm.
With this mod you will loose the S in the name.
Please be sure you have made a backup from everything that's important for you.
I've done this mod in all conscience, but I'm not responsable for bricked devices. Realize it!
You have been warned! :good:
The idea behind
This mod installs setools binaries to /su/bin, so you use them on terminal with this mod. We need them to inject permissions to the sepolicy binary. The next problem is, that the original sepolicy is compiled into the kernel (rootfs). Thats why it will be overwritten on boot. If you inject permissions manually, they are gone with every reboot. So i wrote a script that injects permissions on boot to a patched (with superkernel) sepolicy binary and copy it to root.
Installing
Now the funny part! :highfive:
What you need
I tested this mod on Eragon v2.8 and Aerom V3.
So you need one of these Roms (i think it will also work on rooted stockrom and Darksense, cause the two three other based on stockrom)
superSu 2.74
xposed framework v85
and of course my mod (see the attachement).
How to
Download everything to your SDCard.
Make sure you have wiped your device, so you can start fresh. (I don't have tried, only to flash this mod.)
Dont reboot. If you reboot, then reboot into recovery again!
Install the rom of your choice. (If you install Eragon v2.8, then be sure to delete the script inside /system/etc/init.d)
Install SuperSu 2.74
Install XposedFramework v85
Install Grorkmod
After this step just reboot. And check if everything is fine.
If not then let me know!
XDA:DevDB Information
Grorkmod, Tool/Utility for the Elephone P9000
Contributors
vsrookie
Version Information
Status: Stable
Current Stable Version: 1.1
Stable Release Date: 2016-09-17
Current Beta Version: 0.94
Beta Release Date: 2016-06-09
Created 2016-06-09
Last Updated 2017-02-17
Last edited: