yashsingh1/xdaforums huggingface dataset:
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hello.

After many many tinkering and a small hint from [MENTION=4419114]rovo89[/MENTION], 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!:D

greetings

vsrookie

CREDIT / INSPIRATION

Download mod LOS-Version v1.7

Download mod v1.1 lite

Download mod v1.0

Alternative Download

alternative Download mod v1.0

older Versions:

Download mod LOS-Version v1.5

Download mod LOS-Version v1.0

Download mod v0.94

Mirror v0.94

Download mod v0.8

Download mod v0.7

Download mod v0.6

Download mod v0.5

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
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Reserved

LineageOS-Versions

v1.7

- FIX for not working audio over Bluetooth.

LineageOS-Versions

v1.0

- FIX for not working FM-Radio

Stockrom-Versions

v1.1 (lite version; systemless)

- reworked the script, so it will run systemless

- init.d support don't implemented in this version

- old grorkmods wil NOT be removed. So you have to install this one from scratch.

v1.0 (STABLE RELEASE!)

- live patching seapp_contexts and file_contexts

- live patching sepolicy binary at flashing time, add some allows were missing

- add init.d support as supposed to be

- disabling old grorkmod versions at flashin time.

v0.94

- live patching sepolicy binary at flashing time.

- works on all stockbased Roms

- Add init.d support, if it is not implemented already (For Stockrom; busybox EXCLUDED; it has to be installed afterwards to /system/xbin).

Minor changes are:

- cleared out Installer

Current issues:

- sometimes it's lost on reboot. Workaround: just reboot another time, or shutdown phone and reboot again.

v0.8

tidied up scripts

changed hook for injecting sepolicy

v0.7

simplified script

fixed an issue if phone shutdown

v0.6

fixed logcat support in scripts.

v0.5

Beta release
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mrbubba999:
What exactly does your mod do then?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Thank you. Didn't noticed!

I've added "the idea behind" to the first post.

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
do you need the xposed app?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

What do you mean?

You have to install it for installing xposed modules. Just install it after boot.

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
ok, thanks. did a quick test with AeromV3. At first gravitybox, app settings, flat color keyboard* worked after a soft reboot. Ebay app also worked.

Then on next soft reboot there was 2 loops of optimizing apps and only gravity worked.

Shut off the phone and restarted, none worked. After what I have read that was expected.

Did a soft reboot in xposed,then loops of android is starting- optimizing app . after third loop i shutdown the phone and restarted. Then xposed did not work. Tried another soft reboot, this time no loop and xposed modules are working and ebay app works.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Never tried to softreboot the phone. I will try and report back as fast as i can.

Did you made a clean install? Or dirty flashed the mod?

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
clean AeromV3 install. normal reboots do not work

Good I have 3 sim cards on same number the way I mess with my phones.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Tried to softreboot the phone from xposed installer. That don't work, that's sure.

On Eragon normal reboots work. I will test with Aerom soon.

greeting

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
ok, will test eragon. It stopped working altogether now on AeromV3 after several soft reboots, shutdowns and normal reboots.

gravitybox seemed to work, but other modules seemed to stop. Disabled gravity but that did not seem to work.

Also the android starting, optimizing app message loops seems random.

Seems better on eragon. Works after normal reboot, and from powered off. Ebay also works.

edit2..

so after installing same apps and some reboots, xposed modules will not function sometimes. A few reboots and this time they came back working.

one app that does not work is amplify, maybe just coincidence but that one seems to brake the other when selected.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] arlrb:
Is your edit 2 referring to eragon 2.8?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
yes.

3-4 reboots, and not working. 1 soft reboot and they came back.

so seems a luck of the draw when it works after a reboot.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] arlrb:
Thanks, I'll leave it for now.

I made a backup of my eragon before I did any xsposed stuff, I can install that for eBay etc ...

PS - so I can't install this with xposed already running?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
That s not true.... sorry.

I am on aeromv3 right now rebooted around 5 times (normal, not over xposedinstaller).

Everything works as expected. Even with amplify.

Do you use backuped Apps?

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

You have to do a clean install of the Rom of your choice. Install newest supersu and xposed, install this mod.

Everything should work fine.

If it is not so, there is another Problem. Maybe backuped Apps?

Greetings

Vsrookie

PS: if you install Eragon, don't forget ti delete the initd Script.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
yes, strange. At first on eragon it worked with reboots, but after a few of them not so much. Then soft reboots seemed to do the trick.

Right now got amplify working. This time did not enable it in xposed first, but rather ran the app then enabled it in xposed when it asked.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] arlrb:
They say you should flash the framework before installing the installer & modules.

So should I install this after framework but before installer, or after framework & installer?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Can you give the new version 0.7 a shot?

I had issues if the phone shut down completely. At this point i had also no running xposed anymore.

Fixed this.

Now i can reboot also out of xposed installer.

Greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

This order:

wipe

install rom

install supersu

install xposed franework

install mod

boot

install xposed installer

install modules

activate them

restart phone

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
ok, do i have to do this on a clean rom install?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Please try with dirty flash my mod.

Thank you.

Greetings

vsrookie

PS: Maybe it's necessary that you wipe cache and dalvik.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
ok, 0.7 have survived two reboots and one power off so far on eragon.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Did you dirty flashed the mod?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
Yes.

now survived 5 reboots and 3 powered off. So looks like xposed is working and ebay app works.

Also with 0.7 this module http://repo.xposed.info/module/com.ssrdroide.hidenotificationsonthelockscreen works again after a reboot.

thanks.

Sent fra min P9000 via Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
That's good.

I will test further, looks like there are minor issues.

Thanks for testing.

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
Thank you very much for this!

i looked into the files and it is very good :)

hope to see it soon in alpha mode
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] empy16:
Hi,

I find that when the phone is in permissive mode, the fingerprint scanner starts to fail. (When trying to wake the phone up)

Could this be related to the permissive mode? Can I uninstall it in any way?

Thanks
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Do you use my mod?

If it is so, then turn off permissive mode and try again.

This mod is the attempt to run our lovely phone fully in enforcing mode.

Till now there is no uninstaller für my mod.

Greetings

Vsrookie

PS: You have to wipe Cache and Dalvik after deleting permissive Script.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] empy16:
Hi,

Oh, I thought your mod switches the mode to permissive somehow.

OK, perfect. There's no need to install it then :)

Thanks!

Sorry.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

No, it adds permissive- and allow rules to selinux.

If you run your phone in permissive mode, there are apps that won't run.

With my mod they will run. Even xposed will run in enforcing mode.

No need to think about selinux. [emoji12]

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
Is it already stable,?

I could integrate it into my Rom .

If you give permission :)

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

It's not stable somehow.

I test it on Aerom at the moment. Here it will be reset on Reboot?

I will have a look on your Eragon. Have you tested it already?

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
No not ATM but i will test it very soon

The reason why it cant work in aerom maybe is because he dont has su.d or init.d

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
seems to work on eragon, but what are the issues i could look for?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Just look out for strange things after reboot/shutdown.

At the moment i'm searching the "bug", that sometimes on reboot the correct policies don't work.

If the policies wont work, the only thing that helped is to wipe dalvik cache.

Im searching! ;)

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Firstly it's correct, but as you install superSu v 2.74 it will add su.d support.

It will install supersu systemless. It will create an ext4 img with an path /su/su.d.

I use this, not init.d.

Thats why my mod basically works.

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
Mhh and busybox?

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
heres my busybox, with eragon + this mod
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
I know , this busybox is present in my Rom. I was talking about aerom Rom. ;)

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
when i tried this mod on aerom i had to install busybox with BusyBox

Stephen (Stericson)
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hm.

No need to. Because I don't use init.d.

My mod works uses su.d.

Next version it will be a different startup. Yesterday I worked on it in a nightshift. Till 4 oClock. With Brinkhoffs beer it is possible. [emoji12]

Today is childsbirthday. Today evening is Football. So I don't think that i can work further today.

Greetings

Vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] C.G.B. Spender:
Hi,

having trouble making this work, I still need to soft reboot before xposed works.

What I did:

- flashed Aerom V3 via flash tools

- booted to recovery

- installed BETA-SuperSU-v2.74-2-20160519174328.zip

- installed xposed-v85-sdk23-arm64.zip

- installed grorkmod_v0.7.zip

- reboot to system

- installed XposedInstaller_3.0-alpha4.apk

- installed xposed modules

- activated xposed modules in xposed app / modules

- restarted phone

After the 2nd restart xposed modules don't work, they only work after soft reboot. Is there anything I missed in installation or is there any log file I can provide to help identify why it's not working?

Thanks

EDIT: I tried to check the SELinux status with SELinuxModeChanger, however the app claims it can't obtain root privileges right after I click Grant in supersu popup when I launch it. Root checker reports root ok, busybox ok, SELinux as "Disabled" All other apps which need root work. su getenforce in Terminal returns "Permissive", if I understood this app correctly it's supposed to make xposed work while selinux policy is Enforcing so it seems something went wrong with the installation.

EDIT2: I poked around in the zip of your mod, seems all the files are copied in /su correctly, however if I launch /su/su.d/03sepolGrork.sh manually the terminal output is:

su.img is mounted and patched sepolicy exists in su.img. Lets have a look.

chcon: '/sepolicy' to u:r:system_file:s0: Invalid argument

chcon: '/sepolicy' to u:r:rootfs:s0: Invalid argument

after which the script ends. Which might mean nothing for all I know (which isn't a lot :D)

EDIT3: I did the exact same steps with Eragon ROM, with the addition of deleting the init.d script and it works as a charm. No idea why no luck on Aerom.

EDIT4: Ok, I spoke too soon. Grorkmod doesn't survive reboot on eragon, I have to reflash it and wipe dalvik/cache after which phone boots with both xposed and ebay working. Or soft-reboot and loose the ebay but this whole thing is about not having to soft reboot. I'm at a loss what am I doing wrong. Sorry for the wall of text.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] mangoman:
hm, Grorkmod works with reboot on eragon for me so far.

Last time i did not install xposed modules from titanium backup, but started fresh.

Did you install modules from backup?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Your installationprocess sounds good to me. You can logcat the bootprocess and grep for grork. But there is no logging for each step at the moment, you will see only three steps in logcat.

It seems SELinuxModeChanger has a problem with the su v 2.74. Nevermind, you should not use it with mod. [emoji12]

The thing that the getenforce command say it's on permissive mode isn't right. it should be enforcing. Also disabled isnt correct. Weird.

At this point is your understanding correct.

Also correct. I didn't tidied up the code. The errors are relicts and can be corrected or not. (must be u:object_r:rootfs:s0 for example) I will delete those lines. [emoji12]

You are doing well so far. The only problem is that this mod is beta. ;)

But i think i catched the problem. Now i have to only find a way to get out of the mess. I have to find another hook.

Only a matter of time. [emoji12]

Maybe today evening i can present a new version. But i promise nothing. [emoji6]

Thank you for your help and for testing the mod.

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] Jonny:
I think SELinuxModeChanger probably has a hardcoded path to the SU binary which is probably /system/xbin/su or /system/bin/su and thus wrong for systemless root.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] C.G.B. Spender:
Another observation I made, the re-flash is not needed, for grork to survive reboot on my config (still on eragon 2.8.0). It's the dalvik+cache wipe that makes it work. I was just making twrp backup, then rebooted from within twrp. Booted up to not working xposed. Rebooted to recovery, wiped dalvik+cache, rebooted from within recovery and phone booted with grork working, ie xposed modules work and ebay app too. Though it makes for longer boot time especially with my 226 apk's. Maybe any of it helps you.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Last tests for new Version 0.8.

I changed the hook in which i plant the sepolicy.

This is much more stable as the way before.

Its not 100 % already, but i think its on a good way.

If you like my work please show it with a like (or a beer). ;)

Thanks guys for your support.

greetings

vsrookie

PS: I havent tested AeromV3 yet. I think i do it tomorrow.

PSS: A shutdown will shutdown also the mod.... grrr.... please just reboot, then it will work again.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] C.G.B. Spender:
Hi, I dirty flashed 0.8 over 0.7 and now it survives reboot yay! Gonna try it on Aerom V3 as I get huge battery drain on eragon, probably tomorrow

edit: installed Aerom V3 as per steps from #46 (the ones from the reply not the quote, ie used the systemless xposed framework and material xposed app) and everything works as expected and grork survives reboot as well.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi.

Nice to hear.

At the moment I'm still on Eragon 2.8. I think its almost stable in Eragon.

In about 95 percent i guess it survives, but somehow not in 100 percent.

Got no time to test it on Aerom.

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] C.G.B. Spender:
Still on Aerom v3 + systemless xposed + grorkmod 0.8 and can report grork survives Power off as well. Just mentioning it coz you said in post about 0.8 that shutdown will disable grorkmod and that additional reboot will re-enable it.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Pretty nice. Thank you for reporting!

I want to manage another way to install it, cause now it's not good to me.

But nice to here that its working.

I'm still on Eragon, reboot the whole day along for the testing purpose and i can say, it's "long" ago that it don't work.

[emoji12]

greetings

vsrookie

Ps: did you also do a dalvik wipe? I will test it...
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] C.G.B. Spender:
Just did dalvik+cache wipe in twrp then rebooted and everything works, this version hasn't failed on me yet :good:
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Right now i test Aerom too.

Will report tomorrow.

greetings

vsrookie

ps: Yes, dalvik wipe didn't hurt grorkmod.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] Fran Montero:
Tried several times but Xposed v84 and Mod 0.8 worked for me in Aerom v3 and survives reboot.

Thanks a lot!
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] gersp:
Hi guys,

I want to test this with Eragon v2.8 but I am not sure If I have to flash first, Bboot to the rom and delete delete the script inside /system/etc/init.d ? And then flash supersu, etc...

Inside this folder there are actually 2 files. One "07permissive" and one "99SuperSuDaemon".

Which ohne should I delete?

Thanks in advance & congratulations for this mod!
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi. Just follow the installation guide on the first post. Wipe, install rom, install supersu, install xposed, install grorkmod.

In recovery go to:

mount - > system

back - advance - > file manager - > delete permissive script.

greetings

vsrookie
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] Giegl:
Hi,

I removed everything in /etc/init.d and dirty flashed beta SuperSU (2.74), Xposed v85 and grorkmod. Xposed modules work finde, but Ebay App still crashes. I can't tell for sure, but maybe the dirty flash caused the problem. If you want to have a look at this problem, feel free to tell me what to do. :)

Regards
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
With a terminal emulator app

Look what mode is active.

With :

Su

Getenforce

If it shows permissive then ebay will crash.

If it shows enforce mode and you had xposed before on eragon you had removed the sleep line in the init.d script.. So that's why eBay crash. Because it has booted in.permissive mode

To get a working eBay you need to perform a fullwipe

P.s: that's not a Rom issue. The cause is the permissive mode..

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] Giegl:
Getenforce tells me that I'm in enforcing mode, but as you said, because i removed the sleep line in the init.d script earlier. I'm wondering why that has an effect even if i removed everything in the init.d folder.

I didn't really want to full wipe, so I reflashed Eragon/SuperSU/Xposed/Grorkmod in a row without wiping. I was in permissive mode at first, then I cleared init.d folder and went to enforcing mode. Still ebay crashes. I think, I'll wait until grorkmod gets implemented into Eragon. That will make things easier :)
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] skeleton1911:
Jup. Its enough to set it to permissive just once..one boot up with permissive and eBay will crash all the time.. Its a knowing thing. Xposed or eBay. Both will not work atm . its related to xposed. It needs permissive mode to work. But eBay needs enforcing...

My next build v3.0 will have this mod ,but to fix the eBay thing you need to make a fullwipe, even with v3.0

That's all related to the selinux stuff , one boot with permissive mode and the files will not move to enforcing again...not a kernel or rom issue..(its the way it is). Only with a fullwipe the selinux files are removed, they will rewrite themself again with a clean flash , but then with enforcing mode again.

Gesendet von meinem P9000 mit Tapatalk
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] llucax:
Just for the records, I installed AeromV3 + Grorkmod v0.8 and it seems to be working great with the install instructions provided. I haven't restarted the phone more than once or twice I think, but no problems so far. Thanks!

---------- Post added at 12:41 AM ---------- Previous post was at 12:39 AM ----------

I used the systemless xposed framework v85.7 BTW, is your mode also systemless?
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi and thanks for reply and testing! Also nice to hear that it works for you.

I think version 0.8 is stable. [emoji106]

At the moment, i test the new stockrom 20160608. Same supersu, xposed constellation as in the first post. V0.8 looks stable here too.

Greetings

Vsrookie

PS: v0.8 is not systemless. Next Version it will be, i think. [emoji12]
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] vsrookie:
Hi!

Version 0.9 is on the way. This time it will be basically the same as 0.8, which is quite stable.

The mainfeature is that the patched sepolicy will be created live at flashing time. This is to make sure, that my mod will work on EVERY stockbased Rom till now.

Another mainfeature is that init.d support, will be added, if it is not implemented already. (busybox EXCLUDED; it has to be installed afterwards to /system/xbin).

Minor changes are:

- cleared out Installer

greetings

vsrookie

PS: I'm actually testing v0.9 on Stockrom 20160608 and it works pretty fine.

PS: v0.94 is out now. Check it out on thr first post.
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] LegnaDegna:
Thanks a lot vsrookie, it seems i finally have both xposed and android wear - lg urbane working at the same time!!!
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] gaich:
Worked for my Ulefone Vienna with Marshmallow. Thank you!
[Elephone P9000 ROMs, Kernels, Recoveries, & Other ] m0han:
just asking: could it work on EVERY rom (stock or otherwise) on EVERY device? :D :fingers-crossed: :good: