yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] jolinnard:
Fix for audio and selinux workaround

Hi, let's flash again ;)

in the meantime I play with recovery, I made a workaround to set all selinux contexts during the boot process. And I also found the fix for audio ;)

So, new version v23 of kernel with audio fixes and selinux contexts can be downloaded here. Flash this if you are already in 20160314.

I've also made a new ROM zip just in case you are in an old ROM, here.

Important: all the selinux contexts are in /system/etc/init.d/figue-settings. This script is executed 30 seconds later than boot itself (it's a workaround to wait until all selinux contexts are loaded). So reboot again after first boot to ensure that all contexts are loaded.

Enjoy!
[Galaxy Tab 8.9 Android Development] linw:
Done now.

'OK Google' works now, but only with older google app version. New one still 'unfortunately has to close'!

Cheers.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok... I'm not sure if this is some ROM/kernel issue or if it's a gapps issue. Can you post a logcat and a dmesg? Maybe some contexts are missing.... Which gapps package do you use?
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] I managed to fix most of the issues with Marshmallow on my tab except the WiFi issue. here is the output of the command you asked me to run some posts back.

root@p5wifi:/sdcard # ip add sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN
link/ether 0a:24:9f:0c:c6:1e brd ff:ff:ff:ff:ff:ff
3: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
5: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN
link/tunnel6 :: brd ::
8: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state DORMANT qlen 1000
link/ether f2:e7:7e:df:cb:32 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f0e7:7eff:fedf:cb32/64 scope link
valid_lft forever preferred_lft forever
9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f0:e7:7e:df:cb:32 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.6/24 brd 192.168.0.255 scope global wlan0
inet6 fe80::f2e7:7eff:fedf:cb32/64 scope link
valid_lft forever preferred_lft forever

Yes I said I'd given up but I had some time so I went back to it. :D
[Galaxy Tab 8.9 Android Development] linw:
Having a few problems getting the logs. Trying app Syslog but it can't create the folder to store them - says not enough space or not mounted properly.

Developer options saying 'not available for this user'. Bit of a problem as I can't get to write files to the tab and don't have the earlier kernel file on it to revert to.

Gapps package used is "open_gapps-arm-6.0-pico-20160211.zip.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. If you can install adb it's very simple to extract the logs. Even with a terminal emulator.

As I see in opengapps, there are selinux contexts that needs to be set:

chcon -R -h u:object_r:system_file:s0 "/system/app" "/system/framework" "/system/lib" "/system/lib64" "/system/priv-app" "/system/usr/srec" "/system/vendor/pittpatt" "/system/etc/permissions" "/system/etc/preferred-apps" "/system/addon.d"
chcon -h u:object_r:system_file:s0 "/system/etc/g.prop"

Add those two lines in figue-settings and reboot twice, and see if it helps.
[Galaxy Tab 8.9 Android Development] jolinnard:
Yep... wlan0 device has an IP... So, for some reason, table wlan0 doesn't exist? This is f**** weird indeed....

If the problem is the default gateway, you can always set it manually with this command:

ip route add default via 192.168.0.1
[Galaxy Tab 8.9 Android Development] L3R0N:
Weird indeed. I have however noticed that on Lollipop if I run

IP r sh table wlan0

in a terminal without root it throws me the error that it doesn't exist. But if I run it in a root shell it does return the desired output. Maybe something is wrong with root on adb shell in marshmallow? I use adb because for some reason the terminal emulator app refuses to open and thus I'm unable to run the commands directly on the device. Gonna flash M onto the device and try again this time adding the default gateway with the command you suggested.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. It should work on M, it's a network basic command.... Do it in adb. Did you try the last version with selinux context workaround? Maybe this fix all your issues (network, crashes, reboots....)
[Galaxy Tab 8.9 Android Development] L3R0N:
I think the crash and subsequent reboot to its near brick like state was fixed in the v22 version. WiFi however does not work....the Mac address is wrong and even on the v23 it is still wrong and WiFi will not turn on either. Sigh...I'm going to try adding the default gateway and see if it fixes my WiFi issues. Once that is fixed I'll look into why terminal emulator and kernel adiutor crashes. Besides that all else seems to work fine (audio, Bluetooth, camera, video playback etc).
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] this is what happens when I run the command.

root@p5wifi:/ # ip route add default via 192.168.0.1
root@p5wifi:/ # ip route add default via 192.168.0.1
RTNETLINK answers: File exists

On first run there is no output but if I run it a second time it gives the file exists response but WiFi still doesn't work. I give up.
[Galaxy Tab 8.9 Android Development] jolinnard:
That's because the default gateway can only be set 1 time. And then you still can't connect? 192.168.0.1 is your router's IP right?

Maybe DNS aren't set either? That's the only I can think. Try to manually set your wifi settings, should be easier.

Long tap in your wifi network, "Modify network", "Advanced options", in IP settings set "static" and configure your network, from all data you share, should be:

IP address: 192.168.0.6
Gateway: 192.168.0.1
Network prefix length: 24
DNS1: 8.8.8.8
DNS2: 8.8.4.4
[Galaxy Tab 8.9 Android Development] linw:
I saw the wifi problem (wouldn't turn on) today but after I wiped Dalvik and cache, the wifi was fine.

---------- Post added at 04:39 PM ---------- Previous post was at 04:28 PM ----------

Still trying to get the logs! Syslog and Terminal Emulator don't run and I can't get an adb connection either. "adb logcat" results in a "- waiting for device -" response that doesn't go any further.

"adb devices" displays 15 hex numbers followed by "offline".

USB debugging is on and Device Manager shows a Samsung device with driver.

I can transfer files from PC to Tab OK.

Bit frustrating as I would like to help troubleshoot the later Google App crash problem.
[Galaxy Tab 8.9 Android Development] jolinnard:
Some times (I don't know why), adb doesn't see the device or the device doesn't detect the computer. Some times, a reboot do the trick, or killing the adb process (adb kill-server)... If you are running on WIndows, do you have adb drivers installed right?
[Galaxy Tab 8.9 Android Development] L3R0N:
Sigh...it didn't work either. I did notice some issues with netd and wlan0 in the logs tho...will post the exact line from the log later on cause I'm away from a computer and the entire log won't display using root explorer's text viewer (its too long). Gonna port decatf's 0326 build and enable the ART Optimizing Compiler (it works now) and see if anything changes. At this point anything is worth a try for me...:p
[Galaxy Tab 8.9 Android Development] linw:
Downloaded a newer version of adb incl drivers and all OK.

Attache dmesg.txt and logcat.txt. dmesg taken after rebooting with new google app installed.

logcat - The new google app was installed at 11:21. 11:22 and 23 would have the two crashes. Searching by keyboard worked but tapping the audio input closed the app. Did it twice.

Hope these are useful.

Edit:- keyboard entry closes app as well.
[Galaxy Tab 8.9 Android Development] Asura24:
Guys i got a question it is still posible to get a battery for this tablet? just wondering if anyone have do it before? my battery still works for know.
[Galaxy Tab 8.9 Android Development] L3R0N:
It is still possible. See here for the item on Amazon. I have not done it myself but have opened up the tab and removed the battery multiple times. Its really easy to do.

---------- Post added at 01:30 PM ---------- Previous post was at 01:10 PM ----------

@jolinnard, here are the lines from the logcat that I mentioned a few posts back.

03-27 01:54:20.028 E/Netd (154): netlink response contains error (Invalid argument)
03-27 01:54:20.028 E/Netd (154): failed to add interface wlan0 to netId 100
03-27 01:54:20.032 E/Netd (154): interface wlan0 not assigned to any netId
03-27 01:54:20.033 E/Netd (154): interface wlan0 not assigned to any netId
03-27 01:54:20.035 E/Netd (154): interface wlan0 not assigned to any netId

This pops up each time I connect to a network so I'm guessing it has something to do with wlan0 being referred to as an invalid table ID.
[Galaxy Tab 8.9 Android Development] Asura24:
Thx for the reply i guess is not that expensive i will probably buy one i need a battery for my laptop too anyways, this tablet is perfect for reading books and comics hehe.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok... I don't know what's happening exactly... Will try to build a kernel with the specific options for p5 and we'll see.
[Galaxy Tab 8.9 Android Development] L3R0N:
That would be welcomed indeed. I just don't get why WiFi doesn't work for me...sigh.
[Galaxy Tab 8.9 Android Development] snowmotion:
Got it to work, took the latest Update you posted a few days ago, the kernel for p5wifi (my tab is the wifi version also) and the Pico OpenGApps.

Thanks for your amazing work :)

Just a last question, do you have an idea why the standard internet browser keeps crashing when it's trying to download any bigger file?

I was stuck with this problem as I tried to download any .zip file directly to the tab as it wasn't working...
[Galaxy Tab 8.9 Android Development] bierma32:
You must change under Settings / Apps / Browser Permissions to Storage.
[Galaxy Tab 8.9 Android Development] L3R0N:
Been trying to port Omni 6.0.1 and it boots but it reboots immediately after it finishes "Optimizing Apps". Any ideas? The last_kmsg log doesn't give me anything and logcat doesn't either.
[Galaxy Tab 8.9 Android Development] palma40:
ERROR

E;error executingupdater binary un zip/sd card xxxxxxxxxxxx.......................6.1/aosp-6.0-p5wifi...............

---------- Post added at 07:14 PM ---------- Previous post was at 06:34 PM ----------

Downloading again the first one give me a error.........................
[Galaxy Tab 8.9 Android Development] skibijabadibi:
Hi guys.

I've installed lollipop from this thread on my p5wifi tablet with this packages:

aosp-5.1.1-p5wifi-20151031.zip

p75xx-gapps-L-7-17-15_selinux_OFF.zip

There is missing DRM engine in this ROM. Could you please give me an advise, how to add such engine to this ROM?

I'm asking for that, because I want to use player which is streaming secured content.

Logcat shows this:

[SIZE="1"]
04-17 14:57:10.683 D/VideoPlayer(8866): changing to visible
04-17 14:57:10.688 D/VideoPlayer(8866): show buffer
04-17 14:57:10.738 D/VideoPlayer(8866): Start odtwarzania - widevine modular
04-17 14:57:11.344 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.346 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.346 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.374 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.374 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.374 W/MediaPresentationDescriptionParser(8866): Skipped unsupported ContentProtection element
04-17 14:57:11.432 E/Drm (130): Failed to find drm plugin
04-17 14:57:11.485 E/VideoPlayer(8866): error: 0 android.media.UnsupportedSchemeException: Failed to instantiate drm object.
04-17 14:57:11.485 D/VideoPlayer(8866): State changed : 1
[/SIZE]

and screen from DRM info:

Thanks.

Wysłane z mojego SM-G900F przy użyciu Tapatalka
[Galaxy Tab 8.9 Android Development] -Light-:
Any suggestion on how and which is the latest rom we can use mobile data and call functionality in 7300??
[Galaxy Tab 8.9 Android Development] rajmagi:
just wondering, did u guys try porting fron p4 aosp build?
[Galaxy Tab 8.9 Android Development] L3R0N:
5.1 or 6.0? The reason why p4 builds were stopped is because they were problematic on the p5(our tablet).
[Galaxy Tab 8.9 Android Development] jolinnard:
Did you installed this? I've fixed audio in latest builds... Also latest kernel is here (fix was included in ramdisk).
[Galaxy Tab 8.9 Android Development] sgauge:
Thanks for your reply, I'll give MM a new shot next week-end.

PS: the version I installed was "aosp-6.0-p5wifi-20160314", so definitly not the latest one.
[Galaxy Tab 8.9 Android Development] jolinnard:
Sincerely I don't know. All AOSP ROMs in this thread are built originally by decatf for p4. Maybe something (like DRM) are half-broken (think that this tab is 4 years old)... I'm all ears if you suggest how we can fix this :)
[Galaxy Tab 8.9 Android Development] linw:
I updated to the latest ROM and Kernel to see if the Google app problem was still there.

The keyboard enquiry seems to work OK but the voice query does not. You get the ting sound then nothing happens or you get the google app has stopped error.
[Galaxy Tab 8.9 Android Development] linw:
Chrome browser now doesn't run. Looks like the latest update is the problem.

Stopped working on 5.1.1 as well.
[Galaxy Tab 8.9 Android Development] L3R0N:
Yes you are right, it is the new chrome update that's the problem. Sadly it is compiled with NEON which isn't supported by this old thing (our tab). Version 49 works fine...so you can install that and disable updates for it.
[Galaxy Tab 8.9 Android Development] linw:
Ah, thanks for the explanation. Seems like a losing battle, though, with Google App and Chrome now both failing.

FF works, though!
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Thanks for this update man :D

Could you help me with the latest build ?

Have you made your build with the expanded status bar and other performance hacks :)

thanks a ton

---------- Post added at 08:20 AM ---------- Previous post was at 08:17 AM ----------

Is this the latest build bruhh? thanks a ton for your work.. you and [MENTION=5944750]L3R0N[/MENTION] have kept this dud alive :D
[Galaxy Tab 8.9 Android Development] L3R0N:
The last working version of Chrome can be found here. I have not made the larger status bar tweak for the new builds. I can do that for you if you like. Also, while jolinnard is away I can try porting the new builds from the p4.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Sure. That'll be so sweet of you. Cannot thank you enough. :)

I have just one request, could you tweak it for performance (for me). I would like the tab to be a little smoother. Battery life matters little now that I use it at home only. thanks a ton :)
[Galaxy Tab 8.9 Android Development] L3R0N:
Not promising anything because this old thing can only be so smooth as our hardware will allow. But I'll see if there are tweaks that can be done to make it smoother. I don't use MM cause it apparently has issues with my tab so I can't test. Also one of your best bets for good performance is to not flash GApps at all....I've gone 'GApps-less' and performance is great on 5.1.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
I only flash MM for the layers :D
[Galaxy Tab 8.9 Android Development] Angel Roa (xRoax.):
Hi, i love this rom, it has very good fluidity and not you got very big problems... but if 2 errors that the truth i disappointed. just install rom wifi lasts 20 minutes is activated, and sometimes it turns only. and i want to record the screen, but regardless of that app use, either root or not to start the recording restarts the tablet and stays stuck in "android" then i must reboot in recovery mode and restart it from there to start it again. i hope i respond and fix it in next updates.

---------- Post added at 08:15 PM ---------- Previous post was at 08:05 PM ----------
[Galaxy Tab 8.9 Android Development] the_standard:
Which is the latest and best working ROM for the 3G/p5 tablet? Is the v18 kernel and the aosp-5.1.1-p5-20150814 the best combination right now?

Tried with v16 kernel, had to restore nandroid backup.

Thanks in advance!
[Galaxy Tab 8.9 Android Development] linw:
Something eats battery power when the tab is 'asleep'. The other one I have with 5.1.1 lasts much longer.
[Galaxy Tab 8.9 Android Development] Kulturmensch:
First thank you for your great work!

But i have some questions. Ich have the GT-P7300 3G Tablet with Android 5.1.1 installed (kernel Version: 3.1.10 CyanogenMod+CM11.0) and i want to install Android 6.0. I used your 6.0 ROM but when trying to Flash it with TWRP it tells me that the Version is only compatible with the Wifi Version.

Also do i have to update my kernel manually or does it come with the ROM? I couldnt find any Kernel from your original post or is it "Omar latest kernel"?

Thank you very much in advice
[Galaxy Tab 8.9 Android Development] bierma32:
[MENTION=7540086]Kulturmensch[/MENTION]

at the moment we have only a working Wifi Version, but you can flash this on your Tab.
[Galaxy Tab 8.9 Android Development] Kulturmensch:
Thanks for the Reply but when i try to Flash it, it tells me that ist the Version for Wifi and not 3G and Aborts the Installation... do i have to Change something?
[Galaxy Tab 8.9 Android Development] L3R0N:
Flash the recovery for the wifi version to your tab. Then the ROM should install fine.
[Galaxy Tab 8.9 Android Development] Kulturmensch:
Thank you very much! Runs so smooth now. No lags at all. Thx!!
[Galaxy Tab 8.9 Android Development] JWadle:
Won't Boot after 6.0 ROM Flash

I just flashed my P7310 tablet using TWRP (twrp2710_p5wifi_f2fs) in this order:

ROM - aosp-6.0-p5wifi-20150513

SU - UPDATE-SuperSU-v2.65-20151226141550

GAPPS - open_gapps-arm-6.0-micro-20160622

All three flashed without error, but the tablet won't boot. It get to the "android" logo and after several minutes reverts to the battery display. I have tried waiting (30 minutes) for the first boot, and also tried restarting the tablet again. No luck.

I can still get to TWRP with no problem.

Any suggestions?

Thanks
[Galaxy Tab 8.9 Android Development] bierma32:
Are you tried a clean flash ? Very important if you come from a ather Rom or Stock.

At first ,for this Rom you must use Supersu.ZIP V 2.52. All Newer Version doesnt work with this Rom.

Please use a Gapps or OpenGapps Package Nano or Micro from February .All other make probs.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Hey [MENTION=2002216]jolinnard[/MENTION] any updates after 26th march build? Please could you give us an updated ROM for this tab..

only you can keep it alive :) thanks a lotttttt in advance

---------- Post added at 03:47 PM ---------- Previous post was at 03:40 PM ----------

Will Systemless SuperSU 2.74 work on this ROM? [MENTION=2002216]jolinnard[/MENTION]
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
new ROM version? :)
[Galaxy Tab 8.9 Android Development] L3R0N:
I'll try to upload a new version today since jolinnard isn't here. I know I promised one a while back but ive been very busy and havent had the time to be on here. Hopefully I'll upload one today. As before I don't run 6.0 so whatever port I post will be untested.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
which one are you running? If its smooth and fast for you, I will love to use that one :)
[Galaxy Tab 8.9 Android Development] L3R0N:
I use 5.1.1 Lollipop. No GApps. Removed a bunch of system apps that I don't want or the system can run without. Played a bit with systemui to change some colors and make quick settings icons and text bigger.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
This is so cool.. Please could you upload your build so that I may use that. Please :)

Also, could you also share your settings that you might be using to make the UI more responsive. :)

that red is beautiful. Can the keyboard be made as such too ?

I flash Monsterrat font to make the system font bigger. I like big bold but legible fonts.

I am using GRVY theme on my Oneplus one.

If only, we could have a CM build so that I would have installed that theme :)

But yours is good too..

Thanks :)
[Galaxy Tab 8.9 Android Development] L3R0N:
Sure thing...I'll upload in a bit. Keyboard...I'll see if I can theme that as well. I'm using Google keyboard cause I removed the aosp one. I think I'll try to make a red theme for the entire ROM and see how it goes. My setup is nothing special...the usual over clock to 1.4ghz max min 456mhz. Transitions set to 0.5..nova launcher prime with animations set to fast. On 6.0 you can use layers to theme but 6.0 doesn't play nice with my tablet for reasons unknown.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Great.. I'll wait for it. :)

how do you download nova prime without gapps? I also have it bought.
[Galaxy Tab 8.9 Android Development] L3R0N:
I bought it before I decided to remove GApps. I Simply removed file by file until all files from the GApps package were removed. I'll try to finish theming what I can today and upload.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Thanks so much. I' ll be dearly waiting for it. In the meanwhile, I made some kernel modifications using kernel adiutor like changing CPU turnables. But I was just playing around with my half-baked knowledge.

If you could make some kernel modifications to make the system more inclined towards smoothness (Higher CPU turnables and clock speed) and increased GPU speed.

And the best, as you said, whole system red colored would be superb.

:)

I am a sucker for themes. I love thicker lines on borders and deep red colored system UI. :D

I cannot thank you enough. You are a saviour. :good::)
[Galaxy Tab 8.9 Android Development] rohanhpt:
Looking forward to a stable ROM

Since the last ROM upgrade, my tab has started consuming battery like crazy. Also tends to restart on its own. I only use it to play videos for my daughter. Looking forward to a stable ROM that I can install using TWRP.

Does anyone know how I can go back to stock? Step-by-Step instructions would be awesome. HELP please.

P.S. I have looked at mutiple threads and get slightly more confused with each new one :crying:

Below is what i see in About tablet option

Model: p5wifi

Android version 5.1.1

Kernel version

3.1.10+

Figue@universe #20

Wed May 13 00:29:21 CEST 2015

Build number: LMY47V test-keys
[Galaxy Tab 8.9 Android Development] L3R0N:
I'm having some problems with my internet connection so I'm unable to upload the entire ROM. However, you can find the 1031 build here. My current themed systemui is attached to this post. And to see which apps I deleted from system look at both attached screenshots of my priv-app and app folders and delete accordingly.
[Galaxy Tab 8.9 Android Development] mtsimmer:
I'm kind of a lost may someone do a little list of what was uploaded until now with one more little list what is wrong with every version and how to get root access I will be really thankfully ! :o
[Galaxy Tab 8.9 Android Development] milan_love:
hi guys i tried the systemui wich is very smooth with the rom 31-10 on my p3700 , but i got little hick: i don't have the home button and back button anymore, i tried novaluncher but nothing, is it normal or it's just me ? thnx

ps: yeah and i don't have the notification center anymore ^^