yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] steno66:
Yes but still in alpha relase
[Galaxy Tab 8.9 Android Development] L3R0N:
Managed to get CM12 ROM from tab 2 to boot but its anything but usable. Has terrible lag and oh so many force closes. The lag is present even on the tab 2 itself so I guess I'll wait until those has been smoothed out before trying again.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], I noticed that the p4 guys...well decatf is trying to get his aosp ROM to work with selinux set to enforcing and so far it works. Any chance of that happening on our tab? Also he released new builds that continue to work great. :)
[Galaxy Tab 8.9 Android Development] jolinnard:
We cannot flash a SELinux ROM yet. Our recovery doesn't have SELinux builtin. I think I mentioned this already: I don't have latest code of TWRP.... And we need this because TWRP needs to be rotated 90 degrees just like Android framework. And I don't know how to do it.

I will try to adapt permissive build in the meantime.
[Galaxy Tab 8.9 Android Development] L3R0N:
I'm aware of that. For TWRP rotation maybe Android_Andi can help since he is the one who does the twrp builds for the Tab 2 which also requires the rotation fix. I've gotten the new AOSP builds to boot but with selinux disabled but never tried too get it set to permissive.
[Galaxy Tab 8.9 Android Development] jolinnard:
That will be cool!

I successfully boot latest AOSP build. I added setenforce to 0 in a new kernel image. I don't know if it's necessary, but until we have a new TWRP I don't want to risk.

p5wifi-lollipop-20150225-selinux.zip

Figue-boot-v7-p5wifi-L-selinux.zip
[Galaxy Tab 8.9 Android Development] drdionysius:
Omnirom is not very stable so I'm going for AOSP, but I can't get root-access with this one...
[Galaxy Tab 8.9 Android Development] L3R0N:
The AOSP ROM is not rooted by default. Flash this to gain root. IMO omni is pretty stable but less smooth than the AOSP ROM.

---------- Post added at 03:00 PM ---------- Previous post was at 02:56 PM ----------

I will send him a PM and hope he replies and is able to help us. BTW, did Omar contact you with regards to the p5 kernel? New builds work fine BTW. But is SELinux all that necessary?
[Galaxy Tab 8.9 Android Development] steno66:
Hi all.

After OmniRom 4.4 I installed today Omni lollipop with last kernel. All ok but a little bit slow.

I have a problem with the launcher, the home button don't work in standard launcher and same in Nova.

Any idea?

Second question: the patch in first post to make memory faster works in lollipop too?

Thanks guys.
[Galaxy Tab 8.9 Android Development] L3R0N:
I did not have that problem with omni 5.0.2...my home button worked fine. Did you dirty flash from omni 4.4.4 cause that's a complete no no. Wipe all except Internal storage and install again. I've no idea if the patch works in lollipop or if it works at all because I've never used it. However since this is still a work in progress ROM I wouldn't advise you to flash it...you never know what might break as a result.
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi steno66. I'm not sure about your home button. Did you make a factory reset before? If so maybe a reboot fix it.

And yes, if you want to disable journal it will increase internal memory speed (really only a bit).
[Galaxy Tab 8.9 Android Development] jolinnard:
Cool. Omar contact to me a few days ago. He doesn't know what could cause 3G issue either. But, I have a new idea... I will try to make an experiment with 3G later :)

Edit: SELinux only has sense for security purposes. We can live without it, but as there are potential malware around Android world, SELinux will be a very good addition to our tab. If you talk with Gtab2 developers, maybe they know how we can port their recovery to our tab.
[Galaxy Tab 8.9 Android Development] steno66:
Thanks, in effect I made a dirty flash just to know if work. I can try with factory reset.
[Galaxy Tab 8.9 Android Development] L3R0N:
Cool...I was thinking the same thing with regards to SElinux. I personally don't care about SElinux but as you said it will be a good addition to our Tab. I can try contacting Android_Andi and hope that he'll reply to my PM. Also whenever you're ready with your test kernel I'm willing to test it for ya well not for ya but for us(p5 users). :p
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], you may want to read this thread since it gives instructions or rather says how to fix the rotation issue in TWRP recovery. Hope that helps. Also I sent Android_Andi a PM to which I hope he will reply.
[Galaxy Tab 8.9 Android Development] :
How does disabling journaling cache help? Does it work on stock ICS? Also, do you have to flash it? (Can't you just extract the script and run it as root?)
[Galaxy Tab 8.9 Android Development] jolinnard:
You need to umount partition first, so you can't do it in a started system (as far as I know, /cache needs to be mounted). But, in recovery you can run my script or the commands directly in adb shell if you like :)
[Galaxy Tab 8.9 Android Development] jolinnard:
You mean this?

When I compiled TWRP I put our screen resolution in both ways, but never works fine. It's the same problem as Android framework. But, maybe I do not put the right values :eek:

And my experiment didn't work. I tried to build modem as a kernel module, in that way, Android should boot and, then modem could be inserted with insmod/modprobe command. But, I think modem could not be built as a module... So, I've run out of ideas again.
[Galaxy Tab 8.9 Android Development] L3R0N:
Android_Andi replied to my message and here's what he said

And I was referring to this
[Galaxy Tab 8.9 Android Development] :
The zip didn't install. It said something like "signature verification failed", with the number 1 in brackets. Also, how do you run it in adb shell? I tried going in to terminal and then executing the script, but it said the file wasn't found.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. Unzip journal-off.sh some place in recovery mode (/tmp is a good choice). Then run in adb shell:

chmod 755 /tmp/journal-off.sh
/tmp/journal-off.sh p4 p5

It will disable journal in /system and /cache. But, as I said, we can ignore this hack. I wrote the script because it's possible to do, but with a small effect in the real world.
[Galaxy Tab 8.9 Android Development] jolinnard:
Thanks for this info. Really appreciated.

So gtab2 guys fix the rotation in kernel directly. Very smart. I would like to do the same, but our touchscreen is different.

That option you say in TWRP is valid, but only if the orientation is fine... I think that this option flip the values but it flips screen and touch screen. So I don't think that would work for our case.
[Galaxy Tab 8.9 Android Development] L3R0N:
Hmmm maybe I can try contacting whoever it is that built the TWRP recoveries for our tab that we use now. Maybe they know how to rotate it. But I don't know who built those for our tab. I'll be giving up my Tab 8.9 soon :( so that means I won't be able to test anymore when that happens. However I'll still be here to help out in any way I can. But I'm still here and I still have my tab so I'll try as much as I can to get you that info asap.
[Galaxy Tab 8.9 Android Development] :
Okay, but what is journaling?
[Galaxy Tab 8.9 Android Development] Jaggle:
How does it come, that I can't install Google plus. It says that it,s not compatible with my device. Is there a solution for it?
[Galaxy Tab 8.9 Android Development] jolinnard:
https://en.wikipedia.org/wiki/Journaling_file_system

As I said, don't worry, you don't need to disable journal in normal circumstances :)
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. I understand it, of course. I'll be giving up my tab as soon as I can too. Of course, money is the only thing I need :D

If you want to contact to old developers is ok for me, I tried it some time ago...
[Galaxy Tab 8.9 Android Development] L3R0N:
Cool...I'll see if I can get a reply from DemonGloom cause he's the one who brought TWRP 2.7.1.0 over to our tab. If I were you I'd have my eyes set on the Nexus 9. Its gorgeous, works great and well.....ITS A NEXUS!!!
[Galaxy Tab 8.9 Android Development] HarryCustom:
Unfortunately I cannot find the P7300 (3G) Lollipop version.

So I've tried with Nameless 4.4.4 last version, the Figue kernel autofstab v2 (p5) and so on.

The Rom is smooth but I am experiencing lots of problems:

1. Everytime I charge the tab I see the battery icon (no animation) and the screen turn off.

2. When I think the tab is charged (I don't know even if I have switched on) I see the battery recharging icon also when the tab is disconnected from usb cable and I have to press for three or four times the power button for a long time to switch off the tab and then switch on again.

3. When the tab go in sleep mode very often I cannot switch on again, the screen is black and the only way is to press for long time the power button, do a forced power down and power on again the tab...

I've tried also writing an older kernel, but nothing changed.

Tomorrow I need the table at the office so I reflash an old rom more stable... :(
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi HarryCustom,

as you can see I have a wifi only version P7310, so I can't test 3G ROMs and kernels properly. This thread start as an experiment and, for 3G, this is still buggy for some users. For my experience, my tab is running smooth and I don't have big issues right now (Lollipop, AOSP and AAcount's kernel). You are free to flash P7310 versions to your tab, but you will lost 3G capability.
[Galaxy Tab 8.9 Android Development] steno66:
Hi guys, I tried omnirom and was slooooooooww and unusable. Now installed dirty flash Aosp and it seems to be faster but WiFi doesn't work. I have to flash some kind of kernel specific for this rom? At now I have kernel indicated in thread. Thanks
[Galaxy Tab 8.9 Android Development] steno66:
Solved, installed kernel with selinux and now is ok.
[Galaxy Tab 8.9 Android Development] steno66:
After install last ROm I lose root, I installed root via recovery but superuser is lost. What I have to do?
[Galaxy Tab 8.9 Android Development] DemonGloom:
I'm here. What's the problem? :)
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi DemonGloom,

I was searching latest TWRP source code for our tab a while ago, but I couldn't find it. Do you still have it?

As always, our problem is the rotation... and I don't know how to modify TWRP to fix that rotation "feature". Can you help us? Or, and even better, can you build latest for us? :p
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], I'm thinking that the modem isn't the reason for our Tab not booting with your latest Figue Kernels. I decided for no reason at all to revert to stock via Odin for the fun of it. I then went on too root, flash recovery etc... then flash your latest P5Wifi ROM and kernel as before but this time it displayed the same issue with booting as the normal P5 trials that you made. Previous to my return to Stock I did have your latest P5Wifi ROM and Kernel working fine but now it won't boot. Tried several times and even reverted to Stock several times but to no avail. So it got me thinking that we've been blaming modem for boot failure for no reason at all. Just my thoughts tho..:)

[MENTION=1473901]DemonGloom[/MENTION], nice to see you here. Hope you can help. Glad that you showed up on your own since I haven't had the time to come here for the past days so I couldn't contact you. :p

Also Omni has merged Android 5.1 into their sources!!! Now we only have to wait on AAccount to release a new build.
[Galaxy Tab 8.9 Android Development] jolinnard:
:eek:

So you can't boot your tab now with AOSP and Figue kernel?
[Galaxy Tab 8.9 Android Development] L3R0N:
No I can't. I've downloaded the ROM several times just to make sure it didn't get corrupted during download and flashed several times but it just wouldn't boot. I have no idea why it wouldn't since it worked perfectly fine before I reverted to stock. Using a CM11 zimage with an AOSP ramdisk packaged into a boot.img is the only way I got the tab to boot. It works fine but not as smooth as it should be. Maybe there is something else that's causing it to not boot.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. And this CM11 zImage is for p5 or p5wifi?
[Galaxy Tab 8.9 Android Development] L3R0N:
Its for P5. Mobile network works but data doesn't...not that I care too much about the 3g data anyway.
[Galaxy Tab 8.9 Android Development] DemonGloom:
We use following flags for TWRP rotation and theme:

RECOVERY_TOUCHSCREEN_SWAP_XY := true
RECOVERY_TOUCHSCREEN_FLIP_X := true
DEVICE_RESOLUTION := 800x1280

That will make correct vertical theme.

I don't have much time, so I can only build on top of my old 4.4 sources. There is no f2fs support for example. If you already have booting latest TWRP then just add that flags to BoardConfig.mk in p4-common folder. Don't forget about our 5MB partition, bigger recovery won't fit :)

BTW, what problems do we have now with 3g on lollipop? I can try to find bugs to fix it.
[Galaxy Tab 8.9 Android Development] L3R0N:
AOSP 5.1 Lollipop available for the Tab 10.1 but sadly decatf forgot to add in the rotation fix so rotation is back to being "off".

Edit: Rotation fix will be included in the next build. Hopefully it'll be soon.
[Galaxy Tab 8.9 Android Development] jolinnard:
Thanks. Unfortunately I don't have Omni sources, I deleted it. And I don't remember what I need to sync all repos again :( It seems that Omni is not an official device supported (they only have p31xx) http://docs.omnirom.org/Compiling_For_Your_Device
[Galaxy Tab 8.9 Android Development] DemonGloom:
My local manifest:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="android_packages_apps_Settings" />
<project path="packages/apps/Settings" name="AAccount/android_packages_apps_Settings" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_frameworks_base" />
<project path="frameworks/base" name="AAccount/android_frameworks_base" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_frameworks_av" />
<project path="frameworks/av" name="AAccount/android_frameworks_av" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_system_core" />
<project path="system/core" name="AAccount/android_system_core" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_hardware_libhardware_legacy" />
<project path="hardware/libhardware/legacy" name="AAccount/android_hardware_libhardware_legacy" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_bionic" />
<project path="bionic" name="AAccount/android_bionic" revision="refs/heads/android-4.4" remote="github"/>
<remove-project name="android_hardware_libhardware" />
<project path="hardware/libhardware" name="AAccount/android_hardware_libhardware" revision="refs/heads/android-4.4" remote="github"/>

<project name="cmorlok/android_kernel_samsung_p5" path="kernel/samsung/p5" revision="refs/heads/cm-10.2" remote="github"/>
<project name="AAccount/android_device_samsung_p4-common" path="device/samsung/p4-common" revision="refs/heads/master" remote="github"/>
<project name="AAccount/android_device_samsung_p4" path="device/samsung/p4" revision="refs/heads/master" remote="github"/>
<project name="AAccount/android_device_samsung_p4wifi" path="device/samsung/p4wifi" revision="refs/heads/master" remote="github"/>
</manifest>

Looks like I have created p5/p5wifi folders from p4/p4wifi ones.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], you can use the attached kernel to port roms for the P5. Its made with the Omni 5.0.2 ramdisk and the zImage/kernel from Omni 4.4.4. It works great and all is smooth. I've been using it for the past two days and I've not had any issues whatsoever. It should however be noted that Mobile Data does not work. Mobile network is fine (sms/calls etc) but data won't work. Used together with this mod everything is smooth.
[Galaxy Tab 8.9 Android Development] itsita:
Awesome.

So what's your setup right now? (Which rom and recovery with this kernel?)
[Galaxy Tab 8.9 Android Development] L3R0N:
I'm using decatf's AOSP build which is 5.0.2 because his 5.1 ROM doesn't have the rotation fix for our device. He said it will be in his next build. I'm using jolinnards modified twrp 2.7.1.0 recovery with f2fs support. And I'm overclocked to 1.4ghz max min 216mhz. Governor is lionheart and I/O scheduler is sio. Also I'm using kernel adiutor to do my overclocking etc. And animations are set to 0.5.
[Galaxy Tab 8.9 Android Development] itsita:
Thanks! is the build you're using is the p5wifi-lollipop-20150225-selinux.zip from the OP ? if so, how did you enable the cellular network?
[Galaxy Tab 8.9 Android Development] L3R0N:
No I'm not using the build from this thread. I ported the 3g version myself. Its quite easy really....simply replace p4 with p5 in the build.prop and add ro.sf.hwrotation=90 somewhere, save and close. Next you replace the p4 boot.IMG with one from the kernel I attached above and replace system/lib/modules with those found in the p5 kernel I attached above. There's nothing to change in updater script so we leave as is. Zip those up, copy to your tab and flash. As I said before mobile data does not work but calls and texts do work. I have no idea if calling is 100% working since I only dialled the number to see whether I would be notified of an incoming call and it did notify me. But texting works great. I don't use the mobile data feature so I don't care that it doesn't work.

If you're not up to porting for yourself maybe [MENTION=2002216]jolinnard[/MENTION] will port one for the p5 which you can use.
[Galaxy Tab 8.9 Android Development] itsita:
Wow well done. it does sound not too hard, but without close attention i'll probably brick my tab :o

I think for now i'll give a test run to the p5wifi builds, and will attempt the switch when 5.1 comes over.

the future sounds promising!!
[Galaxy Tab 8.9 Android Development] L3R0N:
Hahaha take a nandroid backup its what I always do and what is recommended before flashing stuff. Most that'll probably happen here is a bootloop. The p5wifi builds work fine but I've had some issues with booting and the latest figue v7 kernel so I went back to using my p5 ROMs. However, you're welcome to try it out and see if it boots for you.
[Galaxy Tab 8.9 Android Development] L3R0N:
decatf has uploaded new aosp builds for the p4. He has included the rotation fix and rotation is working as normal for our tab (thank God!!!). This also means that we'll be seeing Android 5.1 on our tab as soon as jolinnard uploads new builds. :D
[Galaxy Tab 8.9 Android Development] L3R0N:
Omni 5.1 is out and its running sweet on our Tab. Aosp 5.1 runs great as well. Hopes up that we'll see a release from jolinnard soon.
[Galaxy Tab 8.9 Android Development] jolinnard:
I was all weekend trying AOSP 5.1 with decatf kernel... with SELinux in permissive... It boots, but SELinux is blocking a lot of functions (dhcp for instance). I need more time to play with it. Maybe I need to full wipe /data (for SELinux flags and that kind of stuff)... SELinux is a pain in the ass...
[Galaxy Tab 8.9 Android Development] L3R0N:
Its OK to leave it disabled...its what AAccount did in his Omni 5.1 build. As you said SELinux can be a pain in the ass. Have you tried asking decatf for help in his AOSP thread? I'm sure he will be able to offer some kind of help with regards to SELinux---the guy's a genius.
[Galaxy Tab 8.9 Android Development] itsita:
Thanks jolinnard, waiting patiently ;)

IMHO it's completely fine to disable selinux in the meantime. The tab is aged, and i think most of us use it casually and not for super secure stuff...
[Galaxy Tab 8.9 Android Development] jolinnard:
Uploaded AOSP 5.1 by [MENTION=4404851]decatf[/MENTION]

aosp-5.1.0-p5wifi-20150320.zip

Gapps for 5.1 (SELinux attributes removed in updater-script)

This ROM works now. It includes decatf's kernel adapted to our tab with some new commits, but very "stock" (no OC, no extra governors, etc...). It has removed all SELinux support, restorecon commands and some other things that enables selinux permissive in ramdisk. It makes me crazy all weekend to find the correct commands to remove. But you are free to use the kernel you want.

I didn't test a dirty flash this time, I want to start fresh, so make a backup before if you gonna dirty flash.

Happy testing :)
[Galaxy Tab 8.9 Android Development] L3R0N:
A clean install is recommended by decatf in his thread so I think everyone here should do the very same as well and install afresh. It might take a while to setup but it'll save you a lot more time trying to find fixes for things that may break as a result of a dirty flash. And to [MENTION=2002216]jolinnard[/MENTION], many many many thanks to you for the hard and dedicated work you do for our Tab...it's much appreciated. :good: :good:
[Galaxy Tab 8.9 Android Development] jolinnard:
Thank you too [MENTION=5944750]L3R0N[/MENTION]

This is a new test kernel. Basically it's the same included in 5.1 ROM but I added the same CPU OC frequency tables like in P75XX devices. Max CPU freq is 1600 with this kernel.

Figue-boot-v8-p5wifi-L-decatf-OC.zip
[Galaxy Tab 8.9 Android Development] Jaggle:
Well something went wrong. Got in a bootloop. After Samsung logo I see TWRP logo en then it repeat it self. Have to get back to stock by Odin.
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi, can you be more specific? What's your device, what have you flashed....
[Galaxy Tab 8.9 Android Development] Jaggle:
I have a Samsung 8.9 7310wifi. I flashed the 2 files from above. The 5.1 rom and gapps. I did a clean install. All went fine, untill I installed supersu and it asked for binary update. So I rebooted into recovery and I didn't came further then the TWRP logo wich I saw a few seconds before it went to the Samsung logo. And this repeated itself.
[Galaxy Tab 8.9 Android Development] jolinnard:
Wow... That's weird. I installed UPDATE-SuperSU-v2.46.zip always in AOSP ROMs and never happened this to me.

Try to reflash ROM and Gapps and see if you can boot. And if you installed some old SuperSU version and it asks for an update, choose the normal method, never the "recovery" method.
[Galaxy Tab 8.9 Android Development] itsita:
Initial Test results:

The build works great. pretty fast and seems stable!

tried with the OC figue-kernel - it does feel smoother, but... it broke my WiFi :(

is there any chance you could make a build with 3g for the p7300? :o:o

anyhow, it's quite amazing to see android 5.1 on our tab.

Edit: L3RON - could you upload your ported version of omni for testing ? [emoji1]
[Galaxy Tab 8.9 Android Development] sbdop:
Dear L3RON

Cloud you please share this your Omni 5.1 ported for our testing ?
[Galaxy Tab 8.9 Android Development] L3R0N:
I don't have it anymore. I deleted it after I flashed and it was "misbehaving". AOSP works better so that's what I'm using. But if it means all that to you I can port again and upload sometime later cause right now I gotta head to class.
[Galaxy Tab 8.9 Android Development] aga2:
+1,

a build with 3G for the p7300 would be perfect:)

the OC figue-kernel broke my WiFi :(
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok, Thanks for the log. Use ROM's kernel for the moment...
[Galaxy Tab 8.9 Android Development] L3R0N:
Can you update the OP please? And the thread title as well to include 5.1.0 as well as any warnings or do's and don'ts with these latest ROMs. I'm using the ROM ported from the p4 and it works great---no crashes, reboots etc. In case you intend to build a p5 kernel based on decatfs sources I'm happy to brick my Tab testing it;) . Keep up the good work.