yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] Stefanauss:
Hello guys,

I'd like to give it a try to the AOSP 5.1.1 ROM from 12/10, since I managed to get my hands to one 7300 tablet.

I know it's for the wifi version, but what I can't understand if it's not flashable on p5 or if it's flashable but I'll lose the use of GSM. I'm perfectly fine with no SIM card on this tablet.
[Galaxy Tab 8.9 Android Development] L3R0N:
Yes you can flash the wifi version on your 3G tablet. You will of course lose 3G functionality but you seem ok with that.
[Galaxy Tab 8.9 Android Development] Nonomen:
Installed the 20151031 ROM pico gaps and the v19 kernel! Thanks L3EON and Jollinard.

Verstuurd vanaf mijn p5wifi met Tapatalk
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] I showed your build errors to one of my friends and he said that its quite fine to delete the lines that cause the errors from overlays config.xml and continue building.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
hi I hav been using your build. any updates you might have made would be awesome :)
[Galaxy Tab 8.9 Android Development] L3R0N:
Nice to know. I've not made any updates yet since we rely on the p4 guys to post an update first. I'm trying out a newer aosp ROM from the tab 2 which I ported to our device using our current build as a base. Its a bit unstable and some of decatfs additions to this ROM are not present in the one from the tab 2. Not sure if I'll bother trying to fix anything cause I don't really like it. I tried porting it because its a newer version that the one we currently have. So no updates until we have one for the p4 or we get marshmallow...which would be totally awesome.
[Galaxy Tab 8.9 Android Development] nqk:
I'm now downloading "aosp-5.1.1-20151031.zip" and the recovery on Post 1 (twrp2710_p5_f2fs.zip) to flash on my p7300 (I don't need 3g on this tab). Hope it would go well.
[Galaxy Tab 8.9 Android Development] nqk:
Well, the bootanimation is extremely slow. I don't know how long it has passed, and it is still slowwwwwwwwly animating.

I have wiped everything except the intertal storage and flashed only the rom.
[Galaxy Tab 8.9 Android Development] L3R0N:
I know all to well what your problem is. It'll boot eventually but it'll be terribly laggy. The only known fix to to use a modified kk kernel. I'll upload one soon in case any one else runs into this old issue. I used to have it myself on my tab p7300 but its no longer happening.
[Galaxy Tab 8.9 Android Development] L3R0N:
If your tab is booting with a laggy bootanimation and even laggier performance then flash this kernel https://www.androidfilehost.com/?fid=24352994023707223
[Galaxy Tab 8.9 Android Development] 4EverNube:
aosp-5.1.1-p5wifi-20150513

Got the aosp-5.1.1-p5wifi-20150513 to work with my old p7310. Everything works fine except the built-in "cast screen" function. Thanks xdadevs! just gave a new life to my old tab.
[Galaxy Tab 8.9 Android Development] boswelja:
Wheres the source code?
[Galaxy Tab 8.9 Android Development] jolinnard:
You can find source code of AOSP 5.x/6.x ROMs in decatf's repos.
[Galaxy Tab 8.9 Android Development] boswelja:
Do I just use the p4 repos?
[Galaxy Tab 8.9 Android Development] boswelja:
This hasnt helped me, my device is a p5wifi on the latest aosp 5.1.1 build

EDIT: The lockscreen is fine, but everything else is laggy

---------- Post added at 08:15 PM ---------- Previous post was at 08:10 PM ----------

Manifest?

My school has asked me to mod about 30 tab 8.9 p5wifi, so I want to modify the source slightly to give better performance, battery life, etc.
[Galaxy Tab 8.9 Android Development] L3R0N:
It was really meant for users with this problem. If the included kernel in the rom worked fine then this is not for you. My fault I should've said that the first time.
[Galaxy Tab 8.9 Android Development] boswelja:
Yes, I had that problem, everything is still slow
[Galaxy Tab 8.9 Android Development] L3R0N:
I'm sorry that it didn't work for you. This has always been the fix for me whenever I had this problem (had it for quite some time). Wish I could help you out further but thats as far as my abilities will take me. :D
[Galaxy Tab 8.9 Android Development] jolinnard:
Decatf pushed manifest here:

https://github.com/Decatf/manifest/tree/aosp-6.0
[Galaxy Tab 8.9 Android Development] L3R0N:
Hi [MENTION=2002216]jolinnard[/MENTION], is the source for the working M kernel available on your github?
[Galaxy Tab 8.9 Android Development] L3R0N:
Hi everyone, decatf has added in the rotation patches needed by our tab. I built a test port using the only booting M kernel we have from [MENTION=2002216]jolinnard[/MENTION]. Unfortunately I cannot test because my Tab is probably dying and I don't want to disturb its dying moments. ;) Can someone test it for me and see if it boots? You can find it here and its only for p5wifi. Please do not download if you do not plan on reporting back about whether or not it works and how well it works if at all it does.

regards,

L3R0N
[Galaxy Tab 8.9 Android Development] boswelja:
Help! the latest lollipop build is laggy on everything except the lockscreen and wifi direct app, is there any fix? I have already tried the modified kk kernel
[Galaxy Tab 8.9 Android Development] L3R0N:
The 1031 build right? Cause thats the last lollipop build posted here. You can root and try over clocking. Thats all I can suggest. Maybe jolinnard has some ideas.
[Galaxy Tab 8.9 Android Development] boswelja:
OK, thanks
[Galaxy Tab 8.9 Android Development] jolinnard:
I'm trying to do it last 2 days... Unfortunately new build doesn't boot with M-test3 kernel, there are changes in ramdisk that I have to merge... Anyway, I'm working on it.
[Galaxy Tab 8.9 Android Development] L3R0N:
Ok. My Tab has been behaving badly for the past few days...maybe its tired of being flashed. Soon as I figure out why I'll be back to testing. Thanks for your hard work, without you I'd probably have used this tab as a table mat. :p
[Galaxy Tab 8.9 Android Development] jolinnard:
First Marshmallow AOSP 6.0.1 release

Hi, we finally have our marshmallow here. I had to do more work for this release.

In short terms, this is what I've done:

- ROM compiled by decatf's for p4wifi device. So we still use his binaries. Many thanks to him because he merged rotation patches that we need for our p5. Also decatf's posted his local_manifest, so anyone could build it from scratch.

- Kernel source comes from decatf's repos (again). I only have to modify some hardware devices (as always) in config.

- Ramdisk: merged a lot of code in init*.rc files, I had to leave some code in init.rc to make it boot, otherwise boot sequence stuck before starting to load Zygote.

- Original ROM updater-script is for modern TWRP, so I decided to completely rewrite the update-binary, which is a shell script now (like Chainfire does in his SuperSu zip). It's more comfortable for me and we can apply all permissions, SELinux contexts, ... (this is in beta stage for the moment, report if something goes wrong during the flash process). Thank you to [MENTION=4544860]osm0sis[/MENTION] and his post which saved a lot of time writting functions.

- Removed some "recovery stuff" included in p4wifi ROM zip. IMO we don't need this...

Short instructions (as always flash in TWRP):

- ROM aosp-6.0-p5wifi-20160131.zip

- SuperSU stable, but I'm running v2.52. Should work anyway.

- GAPPS: I don't flash it anymore, but probably you can flash Opengapps (select ARM, 6.0, Nano or Pico)

Let me know if we can do this ROM better :)

Enjoy!

PD: Set animations to .5x in "Developer options" to speed up the UI a bit.
[Galaxy Tab 8.9 Android Development] boswelja:
[MENTION=2002216]jolinnard[/MENTION] what changes did you have to make?
[Galaxy Tab 8.9 Android Development] -Light-:
[MENTION=2002216]jolinnard[/MENTION] Any changelogs or atleast what's working and what's not would be great, thanks a lot for working in this old tab ?
[Galaxy Tab 8.9 Android Development] L3R0N:
Performance appears to be on par with Lollipop. WiFi won't turn on, issues waking up from sleep and a few random reboots. That's what I observed. No GApps or SuperSU.
[Galaxy Tab 8.9 Android Development] L3R0N:
Downloading at snails pace. Normally they download in about 5 mins today its taking ages.
[Galaxy Tab 8.9 Android Development] jolinnard:
DELETED
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks.....Flashing now. Will test for at least 30 mins then report back.

Edit: ROM didn't boot....error while executing updater script but this time it had errors setting some permissions hence the failure. Had to revert to ICS to get tab to boot again.
[Galaxy Tab 8.9 Android Development] iZLeeP:
Whoa there, easy guys, development is really fast on this one. Just a suggestion, clean up the links at the OP and just post the ones that are working. Better yet, make a distinction between stable and experimental so it is easier to follow.
[Galaxy Tab 8.9 Android Development] decky006:
I was running the liquid smooth f2s version, which was very good. I updated the kernel to v12 and I saw the occasional calendar storage FC. Clearing the cache and data didn't fix it. Other than that OK.

I then installed v13 of the kernel and I started to see some apps like the XDA forum app be very slow to connect to internet while other apps were fine. I tried v14 of the kernel and i immediately started getting the media process errors popping up every few seconds. I have dirty flashed the rom again and everything back to normal.
[Galaxy Tab 8.9 Android Development] iZLeeP:
The kernel you were using w/ liquid f2fs was v11 prior to updating it, am I correct? So with this setup, was everything smooth and no errors whatsoever? I've had the same problems with 3g connectivity as they are really slow (f2fs, did not try ext4) compared to stock ICS.
[Galaxy Tab 8.9 Android Development] decky006:
Yes v11 is smooth. battery life seems reasonable with lionheart. The latest chrome update is really wierd. Runs in a floating window even though i dont have any of the ls options set in the settings page. No other app does that. Been using dolphin.
[Galaxy Tab 8.9 Android Development] diamonds-forum:
Step-by-step

Hi, can you give me step-by-step install manual? I installed ROM, next tried install gapps and get message more space on system partition needed. Have installed kernel with f2fs support.
[Galaxy Tab 8.9 Android Development] jolinnard:
You need to change your recovery to patched TWRP to flash f2fs ROMs and kernels. Check the first post.
[Galaxy Tab 8.9 Android Development] jolinnard:
Oh my g......! Ok. Next time you can simply wipe system and cache, then flash your desired ROM to revert f2fs setup. Please, as you already know and, if you can, post /tmp/recovery.log next time ;)

I was trying to dig in Lollipop port. I can boot the port, but we have (again!!!!!!!!!!!!) the bug in display rotation or in compass rotation. I was looking into kernel code (in drivers/sensors/compass/ak8975.c) and I was looking in SurfaceFlinger (because our old ro.sf.hwrotation was a hack in JellyBean ROM in SurfaceFlinger), tried to overwrite surface flinger from KK, but problem still persist. I don't know if there are another library that can affect to display rotation. Any ideas?
[Galaxy Tab 8.9 Android Development] diamonds-forum:
Hi,

I flashed it (can I find information about version in twrp?). Next I made wipe all and flashed ROM (success) and try flash gapps (with message need more space on system partition).
[Galaxy Tab 8.9 Android Development] L3R0N:
I know I could flash another rom amd the partitions would convert back but I didn't remember to put one on the sdcard and adb wasn't detecting my device. I have the recovery log and will post it when I get home.

I tried all I could with the Lollipop port but nothing seemed to work. I tried overwriting surface flinger as well and it didn't fix anything. Someone said I should try copying system/etc/firmware to the Lollipop port but apart from making the bootanimation turn black after a few seconds during boot, the problem still remained. A look at the logcat file while rotating the device shows some error with opengl renderer displaying the wrong overlay. I will post the exact line when I get home if it has anything to do with the rotation at all.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. Links in the first post:

Once you have your recovery, reboot to recovery, then flash f2fs ROM, gapps (the modified I made too) and kernel. Should work.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok.

I talked with my friends from Nexus 4 Lollipop development. I think we need to fix frameworks base. See those two commits:

https://github.com/SimpleAOSP-Lolli...mmit/d07bfb050d4a7639655e7d05fe4e352771f1806f

https://github.com/SimpleAOSP-Lolli...mmit/d07bfb050d4a7639655e7d05fe4e352771f1806f

The rotation control is in platform/frameworks/base/policy/SRC/com/android/internal/policy/impl/phonewindowmanager.java

Probably another workaround can be done in config xml for frameworks base... The problem is apktool doesn't work for me :(
[Galaxy Tab 8.9 Android Development] L3R0N:
I'll try. BTW, which file are you trying to decompile with apktool?
[Galaxy Tab 8.9 Android Development] jolinnard:
:p I don't know yet... I was fighting trying to build latest git version... Doesn't matter.
[Galaxy Tab 8.9 Android Development] L3R0N:
Since you're working on it then I should hold up on mine for the time. I got mock exams this week and the next few weeks and then the real exams start soon after. If you are in need of someone to test I am willing to test but I think I should hold up on mine so I can devote my time to studying. :)
[Galaxy Tab 8.9 Android Development] jolinnard:
First things first. Don't worry my friend, good luck with your exams :)
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks... I'll be here to help out if I can. And most definitely test.
[Galaxy Tab 8.9 Android Development] diamonds-forum:
Tested...

...and without success. I get message "need more space on system partition". Here is output from pa log:

current_gapps_version=none

current_gapps_type=none

installing_gapps_version=20141110

installing_gapps_type=mini

total_system_size_kb=693760

used_system_size_kb=420996

free_system_size_kb=256892

free_space_reqd_kb=258940

total_gapps_size_kb=254412

install.chrome=false

install.faceunlock=true

install.camera=false

install.gallery=false

gallery.device=none

replace.launcher=false

replace.mms=false

replace.browser=false

replace.picotts=false

device.name=p5

# end pa gapps properties
[Galaxy Tab 8.9 Android Development] boswelja:
A reboot fixed WiFi for me
[Galaxy Tab 8.9 Android Development] jolinnard:
Essentially what I wrote yesterday (kernel, update-binary, build.prop, recovery stuff in /system). If you want specific details you will say :)

Check decatf's thread or see his github activity to follow all development. I'm checking the ROM now, yesterday I have to go bed after posting the news :)

A little bug in keyboard, you have to enable "Hardware - Show input method" in "Current keyboard" to see the keyboard :P
[Galaxy Tab 8.9 Android Development] boswelja:
Can I get specific details?

And why don't you just make a fork of decatf repos and modify them?
[Galaxy Tab 8.9 Android Development] jolinnard:
Worked for me too after a reboot.

My feelings are similar to Lollipop too, let's see...
[Galaxy Tab 8.9 Android Development] L3R0N:
Ah, lucky you. Mine is yet to turn on. Gonna do a complete wipe then reinstall to see if it gets fixed. Does your battery percentage in the expanded notification header display correctly? Mine currently shows 3, 612%
[Galaxy Tab 8.9 Android Development] jolinnard:
First question: specific... yes of course. I can post diffs between decatf's files and mine (but you can do it yourself). For kernel config you can execute "zcat /proc/config.gz", I can post decatf's full config if you want. update-binary is in the zip: META-INF/com/google/android/update-binary and META-INF/com/google/android/updater-script (you can compare with decatf's zip). And for the recovery files removed are: entire recovery directory, system/etc/install-recovery.sh and system/recovery-from-boot.p. In ramdisk: all files are the same (selinux, contexts, etc) but I have added an audio library in export line (like it was in december build) and then some code in late-init (again, unpack ramdisk and compare if you want the details).

Your second question: because I don't need to modify the source. decatf's binaries are enough for me. But I would fork if I have to.
[Galaxy Tab 8.9 Android Development] jolinnard:
Same here, it seems the voltage, not the percentage.
[Galaxy Tab 8.9 Android Development] L3R0N:
So it seems. Tab went to sleep and wouldn't wake...pressing the power button had no effect. Had to open up and disconnect the battery to get it to go off then turn back on. Weird cause I tried to get it to do it again so I could log it and it refuses to repeat. WiFi still won't turn on but I don't care.
[Galaxy Tab 8.9 Android Development] jolinnard:
Wow... any significant message in logcat?
[Galaxy Tab 8.9 Android Development] L3R0N:
None that I can make out. Its on now but DHCP is not working.
[Galaxy Tab 8.9 Android Development] jolinnard:
So a workaround is setting a static IP?
[Galaxy Tab 8.9 Android Development] L3R0N:
Static IP works for a while then it goes back to "Connected, no internet". I'm trying to see if I can find the culprit in the logs.
[Galaxy Tab 8.9 Android Development] -Light-:
Can you check if there is sth called 'use legacy DHCP client' in developer option? If it is there it may solve the issue, it happened same for my Xiaomi Mi4 running MIUI Android 6. After turning on that option i could connect, may sth with Android 6 source itself ??
[Galaxy Tab 8.9 Android Development] L3R0N:
I already tried that but it didn't work. Its giving the same errors in the logs that appeared in Omni 5.1.
[Galaxy Tab 8.9 Android Development] -Light-:
Oh ok was just trying to give options to try?
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks tho even if it didnt work. I think my tab is wanting to retire.
[Galaxy Tab 8.9 Android Development] quaver84:
Pretty much there for me on my trusty p5wifi! I had a problem with the keyboard on running the gapps start up. Had to enable it in settings to get on to wifi etc

I've not been able to flash SuperSU yet. I keeping getting a 'can't find boot image in twrp'.

And the battery percentage isn't right as reported. Very impressive! Well done!
[Galaxy Tab 8.9 Android Development] jolinnard:
- I had the keyboard bug too.

- What SuperSU are you trying to flash? 2.52 worked for me.

- Yup, it's the voltage what we see, not the percentage.

Maybe someone (better with java than me) could check the source to fix all that :)
[Galaxy Tab 8.9 Android Development] L3R0N:
2.52 will work but 2.65 will not.
[Galaxy Tab 8.9 Android Development] dohaeris:
Thanks for all the hardwork in keeping our tabs Alive. When will u release the mod for p5 as the current one is not getting flashed
[Galaxy Tab 8.9 Android Development] quaver84:
Hi. The 2.52 worked. Finding a link to the flashable zip of that version was a challenge somehow. Here it is if anyone needed it: http://download.chainfire.eu/743/SuperSU/BETA-SuperSU-v2.52.zip.

The battery section in settings is missing also.
[Galaxy Tab 8.9 Android Development] jolinnard:
I found the same reports in 10.1 forums. Flash SuperSU 2.52 always in the meantime. It works fine.

I know that. As you know, 5.X ROMs for p5 doesn't work properly, but if you want to flash it (loosing completely 3G) replace p5wifi with p5 in update-binary, or download this file and replace in aosp-6.0-p5wifi-20160201.zip -> /META-INF/com/google/android/update-binary
[Galaxy Tab 8.9 Android Development] L3R0N:
Or they could flash the p5wifi recovery and not worry about that problem again. Also decatf said the rotation fix is only in the 0131 build for now. So the 0201 build will have bad rotation.
[Galaxy Tab 8.9 Android Development] Bennockee:
Hi, I have two questions regarding the 6.0.1 ROM:

1.) Is the patch for opengapps 6.0 really required? If yes, how it is applied?

2.) The ROM is intended for the GT-P7310 and the fact that "About tablet" says now "GT-P7510" is due to the fact that the sources for this ROM were taken from this device, right?

Thanks for the effort! :)

By the way... apart from the already mentioned problems like the keyboard and battery state - I could not get "Set up near device" working. Starting the process it crashes pretty much immediately.
[Galaxy Tab 8.9 Android Development] lallolu:
Hi

Is anyone facing an error when flashing? The installation stops with an error that goes like, "The zip is for p5wifi and this is a P5". My tab is P7310 although I am running the 5.1.1 ROM form this OP.
[Galaxy Tab 8.9 Android Development] L3R0N:
I'm thinking that you are probably using a p5 recovery on your p5wifi. The previous rom flashed fine because it did not check which device you had so flashing a p5wifi rom on a p5 worked. However this one does perform a check and fails if the device is not what it expects. My advice is you flash a p5wifi recovery and try again. I'm pretty sure it will succeed. The p5wifi recovery is here
[Galaxy Tab 8.9 Android Development] jolinnard:
Probably you are right. Flash the p5wifi recovery and try again :)
[Galaxy Tab 8.9 Android Development] 4rch0:
Anyone face´s FC with terminal Emulatorin cm13? tried lokal terminal emu, and all the other from the playstore...give me always FC

Clean flash , thanks for the great rom :)
[Galaxy Tab 8.9 Android Development] lallolu:
Thanks, I am retrying it now.

---------- Post added at 10:39 PM ---------- Previous post was at 10:38 PM ----------

Thanks for the information and the link.
[Galaxy Tab 8.9 Android Development] lallolu:
You were right about the recovery being for the P5 and not P5wifi. I do not have the error anymore but now I get a new one, "Something goes wrong and system is not well extracted" then installation stops. I have redownloaded the ROM file but I still get the same error. Any ideas?
[Galaxy Tab 8.9 Android Development] L3R0N:
Pull the recovery log and post it here. Maybe we can find what exactly is "going wrong" in there.

adb pull tmp/recovery.log

Remember to pull it after the installation fails.
[Galaxy Tab 8.9 Android Development] Slip_Digby:
Thanks

First of all thanks very much for continuing to work on this. Installed 5.1.1 on my P7300 last and very impressed. Can't seem to get SU to work properly (complains about the binary), swiping doesn't work on the keyboard but pretty much everything else. Have been using a fairly ropey (debugging enabled) Jelly Bean for the last year and this is huge improvement.

Are external devices like HDMI, SD-Reader or USB supposed to work? With the SD-Reader and USB-adapter I see a brief flash of a symbol but nothing gets mounted. The system notices when the devices are removed.
[Galaxy Tab 8.9 Android Development] tupoper:
Hi sir just to clarify this can be flashed to P7300 right sir? thank you :confused:
[Galaxy Tab 8.9 Android Development] boswelja:
Pretty sure the p7300 is the tab 10.1 sir, this is for the tab 8.9 sir
[Galaxy Tab 8.9 Android Development] L3R0N:
Actually, p7300 is the 3G version of the tab 8.9. P7500 is 10.1. So yes the ROM can be flashed to his p7300 but he will lose 3g since this is for the WiFi only tab.
[Galaxy Tab 8.9 Android Development] boswelja:
Is it? Now I'm confused.. I thought the p7300-500 was the tab 10.1 and the tab 8.9 was p5300-500
[Galaxy Tab 8.9 Android Development] L3R0N:
P7300= Galaxy Tab 8.9 3G

P7310= Galaxy Tab 8.9 WiFi

P7500= Galaxy Tab 10.1 3G

P7510= Galaxy Tab 10.1 WiFi
[Galaxy Tab 8.9 Android Development] steno66:
Hi all, today I installed 6.01 ROM but I have two issues:

-keyboard don't work, tried other keyboard but same result

-opengapp nano or pico wont' install. Error executing binary.

Any idea? Thanks