yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] asurabp:
Had that problem a 2 weeks ago. Here's what I did that solved my problem. Opened up my tab, removed the battery and I left it for 1 or 2 hours I think (I slept over it). After that installed the battery then charged it for 3 hours. Then I used it and its normal again.

Things that I did failed.

- overcharge the battery

- discharge the battery (just leave the screen on or some stress test that the battery just consume until it dies)

The only thing i didnt try is to let it die on cwm/twrp. I read about others say that it worked.

Sent from my Potato by Tappytalky
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for the heads up. I went back to stock and my battery has been fine for the past days so the battery is OK. Can't be the ROM cause no one else has that problem. I'm guessing it was caused by the LSpeed mod I had installed. So today I'm going to port the latest from decatf, install it and see how it holds up.
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi! Nice work L3R0N. It's great that you are still updating this :)

I will try to build a new kernel with all commits in decatf's github. Will post here later the result.

Edit: New baby to test Figue-boot-v19-p5wifi-L.zip
[Galaxy Tab 8.9 Android Development] raymond137:
Hi all,

I was wondering is the first post up to date with the latest version? seeing this version is from 13-5-2015...

Not trying to offend anyone here just a question ;)

Its kind of confusing for me this rom is based on decatf's builds am i correct?
[Galaxy Tab 8.9 Android Development] bierma32:
Yes this Rom is based by decatf's builds with modifications for the 8.9.

The lastet Version you find Here http://xdaforums.com/showpost.php?p=63471655&postcount=675
[Galaxy Tab 8.9 Android Development] raymond137:
[MENTION=5390857]bierma32[/MENTION] thanks for pointing this out. i will give it a try :)

hopefully [MENTION=2002216]jolinnard[/MENTION] will have some time again soon to update the first post :) keep up the good work and thanks for the work done so far
[Galaxy Tab 8.9 Android Development] L3R0N:
Well I'll try to update as long as I have this tab or as long as decatf keeps making em. New kernel seems fine. Had to flash it twice before I could get a boot but once it booted it worked fine. Wish we'd get Marshmallow for this tab but right now things don't look so good.
[Galaxy Tab 8.9 Android Development] Nonomen:
Flashed the october build and all seems well. Did not flash latest v19 kernel.

Verstuurd vanaf mijn p5wifi met Tapatalk
[Galaxy Tab 8.9 Android Development] rajmagi:
possible for 3G build update?

btw thx for the update, not flashing it yet tho...
[Galaxy Tab 8.9 Android Development] jolinnard:
Not for the moment...
[Galaxy Tab 8.9 Android Development] L3R0N:
I agree with [MENTION=2002216]jolinnard[/MENTION] when he says not for the moment. The current kernels are very problematic on 3G builds and if we have to do a 3G build we will have to use a modified KK kernel for stability and this brings in unwanted lag. So for the moment its WiFi only.
[Galaxy Tab 8.9 Android Development] magnus the bullmastiff:
Hey guys, I just flashed the 5.1.1 ROM, and I don't know, it is choppy. Am I doing something wrong?

Not wanting to sound like an asshole, but it is terribly choppy. Tried OC'ing to 1.4, didn't help too much, I don't know what else I can do.

Probably going to try the 4.4.4.

Thanks!
[Galaxy Tab 8.9 Android Development] jolinnard:
IDK my friend. Did you flash latest L3R0N's ROM? If you don't, start from scratch. Do a factory reset, then flash his ROM, then gapps and my v19 kernel. Should be ok. If not, post logs, dmesg and all you can to try to figure out what's wrong...
[Galaxy Tab 8.9 Android Development] L3R0N:
Which ROM version did you flash? What version of the tablet do you have?

Next time try to say what version of the ROM you flashed and the tablet version and logs if possible. However your problem sounds similar to what I had on v18 of [MENTION=2002216]jolinnard[/MENTION]'s kernel. If flashing v19 or v17 doesn't work for you then I'm afraid it's either you use a modified kk kernel or you use kitkat because nobody seems to know what causes the lag on some tabs while others work absolutely fine. I'll be happy to make you a modified kk kernel if you wish to go that way. I'll try to upload the latest rom from decatf with v18 of jolinnards kernel sometime later.
[Galaxy Tab 8.9 Android Development] magnus the bullmastiff:
I flashed the 5.1.1 ROM for the 8.9 WiFi, from the OP. This one: aosp-5.1.1-p5wifi-20150513 .

Wiped everything, installed GApps, but not your kernel.

Gonna try that now, be right back.

Thanks!

Edit: Almost forgot, do I also need to flash the SuperSU zip?
[Galaxy Tab 8.9 Android Development] L3R0N:
The latest version is aosp-5.1.1-p5wifi-20151012 and it can be found here. You only need to flash SuperSU if you need root.
[Galaxy Tab 8.9 Android Development] magnus the bullmastiff:
I'm back after flashing the ...1012 version ROM and jolinnard's kernel, I don't know why, but it works much better now. I set all the animations at 0.5x speed, OC'd to 1.4 and it runs awesome for a 4 years old device.

Thanks a lot guys for still releasing ROMs and kernels for this "beast" and helping me out with my problem!
[Galaxy Tab 8.9 Android Development] L3R0N:
That's good to know. Your setup is the same as mine except I use Nova Launcher with animations set to Fast. Greenify to hibernate apps so they don't run when I don't want em and Recently to show me only running apps. This makes the recent panel show up faster.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] do you think its possible to get our current Lollipop ROMs working with f2fs? If so do we add support for it? I know we'd have to format as f2fs which requires some tweaks to updater script and adding f2fs tools to the ROM zip. But how do we mod the kernel to support it? Do we modify the fstab only? Or is there more to it? I'm willing to try it out with my tab as the guinea pig.
[Galaxy Tab 8.9 Android Development] jolinnard:
Glad to hear!

This is my setup too. I'm not using this tab for daily drive, but I have at home to read and surf the web and it's ok. Greenify always help and Nova works sweet too.

If I don't touch the tab for some days, I can extend the battery life for weeks. Pretty amazing for this tab.

Yes you can, of course. F2FS support is compiled in kernel since I started to build kernels. Also in fstab we have f2fs added, so it should mount ext4 or f2fs automatically.

I think that you don't need to change anything on ROM updater-script, because /system is in read only and f2fs don't have any benefit in this case. The only partitions that can be improved are /data and /cache. So, feel free to format your partitions to f2fs. The only thing that I don't remember is if in TWRP we can format to f2fs... If not it can be done in adb shell.
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for the heads up. I tried cache with f2fs but I couldn't get it to boot so I had to format it back to ext4 via adb. Haven't tried data yet. I simply formatted to f2fs during flash of a new ROM....not sure if that was the way to do it. This is not my daily driver either hence my reason for using it as my test device don't care if it gets messed up. Will try with data and see if it works and if it does whether there is a difference between the two (ext4 vs f2fs). And no twrp does not support formatting to f2fs. Tried pushing mkfs to sbin and format but that didn't work either. The only ways that work are via adb and when flashing a new ROM.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], /data formatted in f2fs boots with the "encryption unsuccessful" screen. Any idea why? Could it be that it wasn't properly formatted? Or the ROM just don't support /data in f2fs.
[Galaxy Tab 8.9 Android Development] filipe_m:
One bit offtopic ..

Anyone knows a version of kodi that works with 5.1?

With the stock rom had versions that worked ... for 5.1 can not found any...

Enviado do meu ASUS_Z00AD através de Tapatalk
[Galaxy Tab 8.9 Android Development] jolinnard:
Mmmmm IDK L3R0N. I think that my kernel has the same entries in fstab as p4 (the trick is to include a duplicate entry, one for ext4 and other for f2fs, when kernel boots tries to mount every line in fstab, so in the end all partitions should be mounted). Kernel should be able to mount all partitions, but maybe I miss something (like a new/old option that needs to be added/removed). Let me try to format /cache and see if I can boot.
[Galaxy Tab 8.9 Android Development] L3R0N:
Switched the fstab in your kernel with the one from the p4 kernel, formatted /data to f2fs and I got the same "Encryption Unsuccessful" screen. The data partition seems to be working fine since I can copy files to and from that partition via adb so bad formatting doesn't seem to be the issue. I did try /cache in f2fs the first time and I didn't get boot. There are duplicate entries in the fstab as you said, one for ext4 and one for f2fs for /data and /cache. Will keep trying might get a breakthrough. Thanks for the heads up. Will post back here if I have any luck. :good:
[Galaxy Tab 8.9 Android Development] Brendo:
[MENTION=2002216]jolinnard[/MENTION] I don't know how easy it is, but any chance you can build Tap to Wake into your kernel?
[Galaxy Tab 8.9 Android Development] L3R0N:
I don't think it'd be easy...maybe jolinnard can shed some more light on this but IMO it doesn't look easy. He'd have to find a way to power the digitiser without powering the screen itself. Not just power it but keep it in a low power state so it doesn't eat up battery power. I would love tap to wake as well but I don't think its easy to implement. Maybe there is an easy way that I don't know about.
[Galaxy Tab 8.9 Android Development] djcasl:
For people with skype problems, this is more android 5.1.1 related. http://skype.en.uptodown.com/android/download/96867 installed 5.1 skype from this site and that looks like its working.
[Galaxy Tab 8.9 Android Development] arvinp:
If you find please let me know. I am using non-kodi version on stock rom but if that does not work on 5.1 then I will wait. Thanks.
[Galaxy Tab 8.9 Android Development] rajmagi:
em.... can you link kodi that works for stock?
[Galaxy Tab 8.9 Android Development] filipe_m:
I am not sure,

But I think I was using this:

https://www.sendspace.com/file/4mzdkg
[Galaxy Tab 8.9 Android Development] L3R0N:
So I gave the Marshmallow rom from the p4 thread a try but couldn't get it to install correctly. set_perm has changed to set_metadata and while I have a script to fix that the rom still wouldn't install correctly. Here's hoping someone here can build us a new recovery. I think it's high time that we the p5 users band together and put our heads together to continue development for our device. We need to stop depending on others and start depending on ourselves.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
I simply cannot thank you enough for helping us keep this tablet alive. This tab has seen hardly any love from the dev community. Thanks to you and jolinnard for all the help :)

I have downloaded the latest 20151012 file. Could you let me know which gapps to use along with it and kernel?

any tips on increasing perf, maybe only improving smoothness of rom will be another boon :)

---------- Post added at 06:39 PM ---------- Previous post was at 06:30 PM ----------

the bigger quick toggles (expanded status bar) is awesome! always wanted this. The only thing I wish is Layers support :)

can it be added? thanksssss so much
[Galaxy Tab 8.9 Android Development] L3R0N:
I recommend Open GApps Pico and it can be found here . You can set animations to 0.5 or 0 and overclock to 1.4GHz. Use Nova Launcher with animations set to fast. Also you can add this to your build.prop

ro.config.low_ram=true

. It disables transparency and some other stuff to make for better ram management. Layers support has to be added to the source before its built and since we do not build from source the original rom builder would have to add it in. Maybe one day when we get Marshmallow we can enjoy layers, until then its a no go. There is a 20151031 build I can port it over if you like. Been using it for a while but never uploaded it here.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
Thank you so much! :) :) I had force closes with the gapps mentioned in the op. Tried open gapps pico and they worked flawlessly.

I would love the 20151031 build. Would be grateful to you for porting it over. Also request you to add this line to the build.prop in the rom itself, if possible (we need it to run fast and smooth enough for daily use...we can do away with transparency) :)

looking forward to 20151031 build :) and in future, if possible, MM :D

A bigggggg thankkkkss to you:angel:
[Galaxy Tab 8.9 Android Development] L3R0N:
Here you go aosp-5.1.1-20151031. Usual changes larger expanded status bar and disabled lockscreen album art. I did not add the line to the build.prop because I don't believe everyone will want to have transparency disabled. Attached is a build.prop file with the line added in simply use a root explorer to move it to /system and set permissions to r-w-r-r- (0644). I'm working on porting CM12.1 from the Tab 7.7 over to our tab but its giving me a whole lot of problems. Can't work on it until next week cause I got exams to deal with. I really want it to work cause I like being able to apply themes on the go instead of having to modify systemUI and framework-res.apk. As it is right now it does get to the bootanimation but sits there for about 15 mins before rebooting to recovery...a look at logs shows that it rebooted because surfaceflinger and a bunch of other stuff failed to start. As soon as I have the time I will try to fix.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
thank you so much :) and yeah I like cm themes too.. would be lovely if cm12.1 works.. all the best with your exams.. building can wait :) exams are kinda imp :D thxxxxx once again :)

used your build and build.prop :) its working pretty good :D thanks again!!
[Galaxy Tab 8.9 Android Development] L3R0N:
Nice. Had a look at CM 12.1 today and managed to get rid of all but one error that prevents boot. I keep getting

lkmd has exited 4 times in 4 minutes

Then it reboots to recovery. Maybe someone here can share some ideas? Seems like we don't need a new recovery to flash Marshmallow after all but I haven't been able to get it to boot. Maybe someone else can give it a go...I attached the script to convert set_metadata to set_perm. You need to have python installed for it to work. Simply open the update script and copy the entire section that deals with setting of permissions and paste into a new file. Save with no extension. then simply drag the newly created file over the metadata to perm script and the conversion will happen. Also the update binary needs to be replaced with one from the previous lollipop builds. When that's done open updater script and change

mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-num/p4", "/system", "max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc");

to

mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-num/p4", "/system");

paste in the newly converted permission lines, remove this line

set_perm(0, 0, 0644, "/system/recovery-from-boot.p");

and save the file. The Marshmallow zip should now flash fine.
[Galaxy Tab 8.9 Android Development] L3R0N:
Anybody want 3Minit Battery Mods? It works fine on this ROM. Also I'm working on adding SuperSu and Performance Control into the settings app. Should be up soon.
[Galaxy Tab 8.9 Android Development] 4rch0:
Thanks a lot :good::D:D
[Galaxy Tab 8.9 Android Development] L3R0N:
3Minit Battery Mod for Galaxy Tab 8.9

AOSP 5.1.1 p5wifi

credits
[MENTION=4619873]gharrington[/MENTION] for his tutorial which helped me to add this mod for our Tab

Everyone else who might have contributed

NOTE WELL: you need root to be able to copy the files to where they need to be copied. also please make sure you are using the 20151031 build.

1. Copy SystemUI.apk to system/priv-app/SystemUI overwrite the existing file of course and set permissions back to r-w--r-r

2. Create a folder in system/priv-app and name it MinitBatteryResources. Copy MinitBatteryResources.apk to that folder. Set folder permissions to rwxr-xr-x and the apk permissions to r-w-r-r.

3. Download and install this 3Minit Battery Settings. Theres a paid version available I suggest you support the developer and buy it if you like what you see.

4. Reboot then open the 3Minit Battery settings app and start tweaking your battery icon.
[Galaxy Tab 8.9 Android Development] L3R0N:
Is he referring to the audioHAL he wrote for Lollipop? Or a completely new one for M? Cause I remember him writing one for Lollipop. In case they're different maybe we need to use the old one to see if we get boot. No I also go an infinite bootloop but with surface flinger failing to start. Does this mean anything?

I/art ( 3306): Thread[1,tid=3306,Native,Thread*=0xb7a12628,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"

maybe try replacing it with one from lollipop.

---------- Post added at 05:56 PM ---------- Previous post was at 05:28 PM ----------

BTW is that all of the log? Is there anything happening before those processes fail? Maybe something starts before them that causes them to crash. I've looked through the log but other than the /system/lib/libmedia_jni.so thingy I don't see anything else that looks fishy. My Linux machine is offline for a few days (replacing parts for the new year) so I can't build from your sources. So you'll have to do the trial and error...I'll help in any way I can sing my Windows Machine.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok, I didn't remember that audio hal was written in Lollipop...

Full logcat:

http://hastebin.com/raw/upoyutowuc
[Galaxy Tab 8.9 Android Development] L3R0N:
One of my friends suggested we change the audiolibs with ones from a functioning ROM. If we still have them failing then it could mean they are either

A) Incompatible with M

Or

B) Something else is causing them to fail

In which case we have to assume that the problem is not caused by the AudioHAL. As I said I don't have a 6.0 kernel so I can't do any testing right now.
[Galaxy Tab 8.9 Android Development] jolinnard:
I changed the libmedia*.so from lollipop, but it doesn't work... Maybe we have to change libaudio too...

If you want, ROM and kernel are here. Everybody is invited to try to fix the ROM :)

Flash BETA-SuperSU-v2.52.zip to have root rights on adb shell (I added in build.prop some props to bypass adb verification for debugging purposes only).
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for the kernel. Gonna start working on it right now. If enough heads join in we can have Marshmallow for the new year. If anything comes up I'll post here.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] I'm starting to run out of ideas. Tried replacing the audioHAL in M with the one from L but that didn't stop the media* services from failing and still no boot. I tried using a KK zImage with an M ramdisk and it still throws me the same errors and stays in its infinite booting process. Seems like media is not the problem cause I've stopped the service and it still wouldn't boot. If I add this

max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc

next to system in the fstab file then the media* service failures disappear from the logs but still no boot. Any other ideas?
[Galaxy Tab 8.9 Android Development] jolinnard:
I don't think that you can use a KK zImage, because I have enabled SElinux and other stuff in kernel config, I also tried disabling selinux completely in kernel in my first try, but it doesn't boot either.

The system mount parameters are only a try to flash quickly in recovery, because inside ramdisk fstab.p3 is still the same as before.

Please, download this new kernel test I missed some things in ramdisk.

And, now, I don't thing that the audio/media cause the bootloop, I thing that this is: "Class not found for preloading: android.net.http.AndroidHttpClient".
[Galaxy Tab 8.9 Android Development] L3R0N:
Even if we do get it to boot rotation is still a problem. Decatf hasn't added in the rotation fix yet. However getting boot is one huge obstacle that will be cleared. Rotation is easily fixed by getting decatf to merge in the related commits. Also I agree that audio might not be the reason for the bootloop. However there are more than one classes that are not found so it might be wise to think that one of them is the cause without being specific to one in particular. Gonna test your new kernel and see if I can get it to complete the boot cycle.
[Galaxy Tab 8.9 Android Development] jolinnard:
I've tried to merge the rest of the ramdisk from p4, but it doesn't boot (something in init.rc I think). I have to do more tests tonight.
[Galaxy Tab 8.9 Android Development] hewhomustnotbenamed:
I am loving this little tweak :)

Do you have any other suggestions for better performance? :) I also have a n7000, i9100 and Oneplus One.

I would love to use your suggestions
[Galaxy Tab 8.9 Android Development] jolinnard:
Finally... M boots :highfive:

Figue-boot-v20-p5wifi-M-test3.zip

So rotation is the next step :)
[Galaxy Tab 8.9 Android Development] :
I installed aosp-5.1.1-p5wifi-20151012, and everything seems to be fine except for a bit of lag. The only problem is that Wi-Fi sometimes works and sometimes doesn't.

P.S: Has anyone else noticed the default device name in Bluetooth?
[Galaxy Tab 8.9 Android Development] 4rch0:
Great News , a christmas gift for our tap :D

Tanks Guys :D
[Galaxy Tab 8.9 Android Development] jolinnard:
Yeah... but I think that we need these first 5 patches:

https://github.com/Decatf/platform_frameworks_native/commits/aosp-lollipop-p4

Unfortunately, decatf's hasn't shared the manifest to build his AOSP ROM ourselves :(
[Galaxy Tab 8.9 Android Development] L3R0N:
That's really really good news for our tab. We can ask decatf to merge the needed patches into his next build.

---------- Post added at 12:15 PM ---------- Previous post was at 12:12 PM ----------

I don't know of any other tweaks....maybe L Speed Mod might be of some help. Haven't used it in a while but it used to do the trick for me. Its continuously updated with new features and bug fixes and its dev is really good at replying to your questions. So you can search for it.
[Galaxy Tab 8.9 Android Development] L3R0N:
Nice....I wish I could help but I'm a noob at building from source as well. In the meantime do you think it'll work if we take a ROM built for another device that already has the rotation patches added in, use decatfs AOSP ROM as the base and port it over to our tab and get rotation working? I'm willing to try out that method cause all I've got right now is a Windows laptop can't do much with that. I'm hoping to try building TWRP 2.8 for our tab as soon as I get my Linux machine back up. I might fail but its worth a try.
[Galaxy Tab 8.9 Android Development] jolinnard:
Don't know. I think that we can only try to build the framework from decatf's source to make it work... Or asking to him to patch should be faster :)
[Galaxy Tab 8.9 Android Development] L3R0N:
It doesn't work at least as far as I tried. I tried porting OMni 6.0 from the Tab 7.7 over to our Tab using decatfs AOSP 6.0 as base and while it does boot it reboots after the app optimization screen. And the screen doesn't appear to be rotated as it should be. I don't mind asking decatf in his thread to merge in the patches so long as I'm sure which ones need to be merged in.
[Galaxy Tab 8.9 Android Development] linw:
Just want to thank you ROM developers as I was having trouble with google search with earlier ROMs.

Both my 8.9s now run this ROM and with the right version of Google App all is running fine, incl "OK Google".

Thanks again.