yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] safariking:
P5Wifi stuck on bootscreen

EDIT:

Foget what is said it boots my bad :p
[Galaxy Tab 8.9 Android Development] XCMDOS:
Same problems for p5 users :( :noluck:
[Galaxy Tab 8.9 Android Development] pax0r:
GAPPs link is broken :(
[Galaxy Tab 8.9 Android Development] jolinnard:
This is the link

OP updated too :)
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok, thank you. I will try to recheck all p4 kernel/ROM and look if I'm missing something... It's all I can do, sorry :(
[Galaxy Tab 8.9 Android Development] XCMDOS:
thanks a lot ! p5 version is better than p5wifi i tried it for 2hours and i feelt that ! the only problem is the dead screen power x)

we're waiting for p5 to make a tutorial in yt :D
[Galaxy Tab 8.9 Android Development] pax0r:
I must be really unlucky - new link is not working for me and and now even ROM link isn't.

I have P7300 and I suffer a bug when after ~5 min after restart when screen goes off it starts it does not goes back (backlight is lighting all the time). I don't have sim card put into.
[Galaxy Tab 8.9 Android Development] jolinnard:
My server is up and running... Can you ping to it? (mirror.lnx.im - 213.136.93.51) Should work.

$ uptime
12:48:38 up 133 days, 2:04, 1 user, load average: 0.11, 0.08, 0.06

If you don't use 3G I recommend p5wifi ROM and kernel. It's stable for me and reported for others.
[Galaxy Tab 8.9 Android Development] jolinnard:
Small fixes

Following decatf's updates, here is a small update. I revert some kernel patches that decatf's said that cause some "freezes".

aosp-5.1.1-p5wifi-20150426.zip

aosp-5.1.1-p5-20150426.zip

Kernel only (included in 20150426 ROM):

Figue-boot-v13-p5wifi-L.zip

Figue-boot-v13-p5-L.zip
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for the quick update. P5WiFi version works just fine on my p5...no issues. I haven't tried the p5 version yet so I don't know whether it works as it should or not. Will test and report back. Maybe you could do with some logs? Will try taking a logcat during screen off/screen on to see if we can catch the problem. Can't promise these today tho cause right now I have exams to deal with. Keep up the hard work and I'll always test as long as my Tab is up and kicking. :good:
[Galaxy Tab 8.9 Android Development] jolinnard:
Wait. I want to compare p4 ramdisk with p5 first...
[Galaxy Tab 8.9 Android Development] djcasl:
Did a dirty upgrade again, had to remove battery stats via TWRP as before, but ROM is working fine for me. Can even play Hearthstone now (with al little patience between load screens), thanks for that. Keep up your awesome work
[Galaxy Tab 8.9 Android Development] XCMDOS:
hey !

how you did you remove battery stats via TWRP ?

IS battery calaibration (APP) in play store will work ? :P just asking cause when i charge my tab when shes power OFF i got battery problem more than the first time :x

Édit : Calibration done . now im gonna discharge it ! Hope that fix the pb
[Galaxy Tab 8.9 Android Development] jolinnard:
I usually use this zip to wipe battery stats. It only deletes this file: /data/system/batterystats.bin

But I think that the quick method to "calibrate" the battery again is to unplug completely (detach physically) . Yeah, I know, our tab is hard to open, but if you are very careful, it can be done. Just open the screen and unplug the battery connector for a few seconds and battery backs to normal, at least in my case it worked today.

In this video https://www.youtube.com/watch?v=WMkWqVzM8EA, in 3:18 you can see how to unplug the connector. You don't need to remove the battery, only the connector. But, you know, if you never did it before, be very careful!
[Galaxy Tab 8.9 Android Development] djcasl:
TWRP has a file manager under advanced, so you can delete it from there.
[Galaxy Tab 8.9 Android Development] jolinnard:
Thanks guys for your donations. Really appreciate your support!
[Galaxy Tab 8.9 Android Development] dumpy83:
I haven't touched this tablet in almost 2 weeks, I picked it up and to my surprise it still had juice!
[Galaxy Tab 8.9 Android Development] scshu:
P5wifi work fine, P5 it keep restart if I turn the screen off.
[Galaxy Tab 8.9 Android Development] XCMDOS:
Hmmm im always in battery problem :( what if i change the kernel ? :x

Any solution guyz ?:crying:
[Galaxy Tab 8.9 Android Development] bierma32:
I ve got the same prob, the only way was ,full charge the Tab and flash the Rom with a clean installiert.

After that battery live was OK.
[Galaxy Tab 8.9 Android Development] jolinnard:
First try to fix the battery bug. I changed kernel allocator to SLAB, that could be the cause of the issue. UKSM is another thing that I added in latest builds, but I tried a version without any KSM and battery bug is still there. So, here it is the new kernel for p5wifi:

Figue-boot-v15-p5wifi-L.zip
[Galaxy Tab 8.9 Android Development] djcasl:
Flashed it on the latest build, tablet boots. Will let you know the outcome after a couple of days testing.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], I think there is something wrong with the ramdisk you use in the p5 kernel. Here's why, I took the latest figue kernel, used kernel kitchen to unpack the boot.img, took the ramdisk and repackaged it with a kk zImage and it showed unknown baseband and thus mobile network was gone. I then tookthat same kk zImage and packaged it with the ramdisk from the latest p4 kernel 20150428 build to be exact and flashed it and mobile network was fine with the exception of mobile data which wouldn't work. I then went ahead and used the p4 ramdisk from the 20150428 build and packaged it with the zImage from your latest figue kernel for the p5 and lo and behold mobile network was fine with the exception of mobile data. I haven't had the time to compare the two so I really don't know what's different between them.
[Galaxy Tab 8.9 Android Development] nizuak:
Flashed the rom through cwm then gapps ,now I cant use the netwrk wifi or Bluetooth tends to reboot wen screens off .coming frm stock 3 sftwr ,my model no is p7300b cant access odin coz away frm pc could sumone plz tell me wats wrng is it I flashed wrng or "b" has got sumthin to do with it

Am a noob so plz xplain in details

regds

niz
[Galaxy Tab 8.9 Android Development] L3R0N:
Use TWRP 2.7.1.0 there's a link on the first page. The reboot when screen off and sometimes screen won't turn on when it goes off is a known issue for the p5. As to WiFi I'm pretty sure it has to do with your variant of the p5. Mobile network does not work for me when using the p5 ROM. You are free to try flashing a p5wifi ROM to see if it fixes anything. And you need to put the tab in download mode to get Odin to work with it.
[Galaxy Tab 8.9 Android Development] nizuak:
I can't access a pc now nd wifi direct or blutooth pretty much any connectivity isn't wrkin,is der otg support in cmw or any alternative to go online or transfer data options

regds

niz
[Galaxy Tab 8.9 Android Development] jolinnard:
Don't you make a backup before flashing?

I don't know if there is another way to push p5wifi ROM or stock (whatever you want to recover your tab) if usb, wifi and bluetooth doesn't work. Sorry.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok... So all issues are gone with the version you make with p4 ramdisk and my zImage? Can you upload it for the rest of the p5 people?

Then, please, post the output of these commands (adb shell, su):

ip add

ip route

ip rule

getprop | grep dns

Also, take a screenshot of phone information (dial *#*#4636#*#* or downloading this app).

An "adb logcat -b radio" would be helpful too :)
[Galaxy Tab 8.9 Android Development] nizuak:
I did back up using cmw but then I factry reset frm settings later frm cmw to start fresh ,this is wen I realized all the zip files (rom dwnlds nd supporting files)wiped clean or is it still der hidden sumwer?

Sumtime wen I restart the app optimization happens all over again

Will try with odin later but didnt connect before so driver is gonna drive me nuts ....hopefully will boot extend screen time nd connect to pc before flashin

Any nd every advice is welcome

regds

niz
[Galaxy Tab 8.9 Android Development] djcasl:
Battery not better with kernel v15

I installed the latest kernel to check for battery problems. Charged the tab to 100% and deleted batterystats.bin. First run was really good. Used the tablet for more then a day and everything was fine. Had the tab at 13% so i connected an official samsung charger and cable. At 24% the tablet claims a 9 hour needed to complete the charge. An hour later battery is at 25% at an estimated 18 hours to charge. Finally I just rebooted the tab and it is at 93%. Still needs more then an hour to charge. But with a official ROM my tab also needed 6 - 6 1/2 hours. So this looks OK. Perhaps it isn't detecting charge in deep sleep. Because the charge isn't detected properly this might influence batterystats.bin file in a way that the tab thinks its empty until you reboot. Hope this helps in finding a sollution. Untill then I'll just remove the batterystats more often.
[Galaxy Tab 8.9 Android Development] djcasl:
Additional battery test

So I charged to 100% ( inc. Some reboots) and battery life looks OK. Could play a lot of heartstone sessions before depleting to 27%. Also the remaining battery life in the stats claims a couple of hours, which is normal if you just browse and facebook on your tab. So I tried a charge with the tablet off. The charge didn't automatically start, I had to use the power button to turn it on in battery charge mode. Even weirder was the fact that the animation claimed the battery was charged at 53%.

At this time I have to advice to charge with the tablet on. This seems to work better. And really don't let your tablet run out of battery power. Cause the charge with tablet of seems a bit off.
[Galaxy Tab 8.9 Android Development] iZLeeP:
On Samsung stock rom (ICS official), tab charges for 4 hours (off) and 5 hours (on). Never had problems with charge level even when tab shuts off automatically due to depleted power level (0%). So this could be kernel related.
[Galaxy Tab 8.9 Android Development] XCMDOS:
Nop kernel is sweet :D im using it . and i never had battery issue as in the previous version . maybe he did not flash the ROM at 100% battery charge :? Or something like that !

Its happen to me Évery time . dont charge tab when power off ;) :D

Flash stock . and twrp . charge battery for 6h . flash ROM + kernel + gapps + supersu
[Galaxy Tab 8.9 Android Development] jolinnard:
Build 20150508 is up

Hey guys,

battery issue is driving me crazy. I have issues even in recovery... And recovery has its own kernel, so I don't think that it's only a kernel related issue. Anyway, I enabled again all debug stuff in kernel and built with almost the same decatf's config.

aosp-5.1.1-p5wifi-20150508.zip

aosp-5.1.1-p5-20150508.zip

p75xx-gapps-L-5-6-15_selinux_OFF.zip

Those ROMs have kernel v16. But here is only the kernel zip if anyone need it:

Figue-boot-v16-p5wifi-L.zip

Figue-boot-v16-p5-L.zip

For p5 users: I'm waiting for [MENTION=5944750]L3R0N[/MENTION]'s answer about his progress on p5 issues. As always, you can flash p5wifi ROM.
[Galaxy Tab 8.9 Android Development] fabduhameau:
I have updated my benchmark with 20150426 rom and it's the best!!!

http://xdaforums.com/galaxy-tab-8-9/general/best-rom-kernel-casual-net-video-small-t3076901

Videos are working fine. I don't understand why because someone explain me that it will never work fine with android 5 because drivers will never be updated!

thanks for your work decaft and Jolinard!
[Galaxy Tab 8.9 Android Development] jolinnard:
Thanks for this post. Last command is wrong. It should be:

getprop|grep dns

I wanted to see if DNS are properly set.

For your output, the tab is connected and has an IP address, but maybe the problem is the default gateway (happened before in my Nexus 4 some time ago, when Lollipop was unofficial). Execute this in adb shell or a terminal emulator (gain root access first) and test if it works :

- First get your IP address, this command will show it:

ip a sh dev rmnet0 | grep rmnet0$ | busybox awk '{print $2}' | busybox cut -d'/' -f1

- Then add this IP as your default gateway:

ip r add default via YOUR_IP_HERE table rmnet0

change YOUR_IP_HERE with your IP address

Test.

If last command fails, try this:

ip r add default via YOUR_IP_HERE
[Galaxy Tab 8.9 Android Development] L3R0N:
Oh gosh I didn't realize that I typed the wrong command. I will post the output a bit later. However for the new commands when I try adding my IP as my default gateway I get this output

RTNETLINK answers: No such process
[Galaxy Tab 8.9 Android Development] jolinnard:
And with this?

ip r add default via YOUR_IP_HERE dev rmnet0
[Galaxy Tab 8.9 Android Development] L3R0N:
OK so the command works or at least I assume it does since it gives no output when entered the first time. If I enter the same command again it says

RTNETLINK answers: file exists

but the data will still not work.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok, please post the output of:

ip add sh dev rmnet0
ip route sh
getprop | grep dns

Try to ping to 4.2.2.1 for instance:

ping -c 4 4.2.2.1
[Galaxy Tab 8.9 Android Development] L3R0N:
Here you go

root@p5:/ # getprop | grep dns
getprop | grep dns
[dhcp.wlan0.dns1]: [192.168.1.1]
[dhcp.wlan0.dns2]: []
[dhcp.wlan0.dns3]: []
[dhcp.wlan0.dns4]: []
[net.change]: [net.dns2]
[net.dns1]: [8.8.8.8]
[net.dns2]: [8.8.4.4]
[net.eth0.dns1]: [8.8.8.8]
[net.eth0.dns2]: [8.8.4.4]
[net.gprs.dns1]: [8.8.8.8]
[net.gprs.dns2]: [8.8.4.4]
[net.ppp0.dns1]: [8.8.8.8]
[net.ppp0.dns2]: [8.8.4.4]
[net.rmnet0.dns1]: [8.8.8.8]
[net.rmnet0.dns2]: [8.8.4.4]
[net.rmnet1.dns1]: []
[net.rmnet1.dns2]: []
[net.rmnet2.dns1]: []
[net.rmnet2.dns2]: []
[net.wlan0.dns1]: [8.8.8.8]
[net.wlan0.dns2]: [8.8.4.4]

root@p5:/ # ip add sh dev rmnet0
ip add sh dev rmnet0
2: rmnet0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast s
tate UNKNOWN qlen 1000
link/ppp
inet 10.132.85.4/24 scope global rmnet0

root@p5:/ # ip route sh
ip route sh
10.132.85.0/24 dev rmnet0 proto kernel scope link src 10.132.85.4

root@p5:/ # ping -c 4 4.2.2.1
ping -c 4 4.2.2.1
connect: Network is unreachable
[Galaxy Tab 8.9 Android Development] jolinnard:
Default route is still missing... I think that if you can set it properly, data will work.

The culprit is to know what route is needed. In early Lollipop days we need to add that route in the correct rule table.

Can you try with this script?

http://mirror.lnx.im/android/galaxy-tab/tools/data_on.sh

I wrote it for Mako, but I think that should work... Please, execute it in a root shell (sh data_on.sh)
[Galaxy Tab 8.9 Android Development] L3R0N:
Annnd we have lift off!!!!!! Data now works perfectly thanks to your script. It doesn't work with your kernel but it works with the one I made from the p4 lollipop ramdisk+kk zImage. Thanks man!!! Does it need to run everytime or just once and its done?
[Galaxy Tab 8.9 Android Development] jolinnard:
:highfive:

You will need to run it every time, for instance when you turn on your tab or you leave a Wifi zone.

Upload your kernel and I will try to insert it in a service inside ramdisk. It will monitor 3G connection and, when it is needed, it will set default route automatically :) (it's a workaround, but worked some time for Mako).
[Galaxy Tab 8.9 Android Development] L3R0N:
Ok here you go. Its not flashable so to those who are seeing this please don't try flashing.
[Galaxy Tab 8.9 Android Development] jolinnard:
Let's see if this works. I've added the script to /data/misc/data_on_loop.sh (zip will copy it), the idea is that the script will remain in background all the time (don't worry, will not have an impact to battery life) and will monitor 3G route, if route is missing it will add automatically.

Flash and verify that works... I hope to have written the service just fine:

service data_on /data/misc/data_on_loop.sh
class main
oneshot
[Galaxy Tab 8.9 Android Development] L3R0N:
It works fine for me. Thanks.
[Galaxy Tab 8.9 Android Development] jolinnard:
Good news. Would be great if somebody else could try it too...
[Galaxy Tab 8.9 Android Development] L3R0N:
I just did a clean install and it works fine. No issues yet. I hope that the Figue Kernel can be fixed for p5 so we can enjoy some of decatf's fixes. But this kernel should be fine for now since imo it works just fine. :good: One bug less for our tab. I forgot to mention that phone calls works fine as well with headphones of course.
[Galaxy Tab 8.9 Android Development] graug:
Yeah, it seems that the latest releases don't seem to get the charging right. It stops charging at a certain level. I even fully recharged in recovery before reinstalling the image. After that I used it for a few hours and tried to recharge, but it only charged a few percent and got stuck. Well, at least the battery indicator didn't increase anymore. I'm not sure it it actually stopped charging or not.

I charged it in recovery for a full day and just installed the files above (p5wifi). The tablet feels more sluggish, but I guess this is due to the enabled debugging. Will report back if the battery levels and charging behave differently.

What issues are you experiencing with charging in recovery?
[Galaxy Tab 8.9 Android Development] jolinnard:
I don't feel my tab sluggish... Debug stuff are kernel related things, I guess that maybe battery uses some of these debug to calculate better battery usage or something. If you feel your tab slow, please, check if there are some process that are using heavy CPU or if kernel settings, for some reason, are wrong (I use 1400 max/216 MHz min, nightmare governor, deadline scheduler, 1792 read-ahead)

After a couple cycles with system on, battery seems calibrated again. I left the tab in download mode to drain the battery at the limit, then I'll charged fully with system on.
[Galaxy Tab 8.9 Android Development] graug:
Thanx a lot for the quick response! I installed kernel auditor a while back and also use max 1400/min 216 MHZ. I just rebooted after the installation and didn't start anything, except kernel auditor and chrome. My governor is set to interactive. I see about 10% CPU usage@216MHZ in kernel auditor, so I don't think there's a lot of other processes running. The battery stats only shows screen, chrome and android system using battery.

I changed read ahead now to 1792, scheduler was already set do deadline. Scrolling a larger, mainly text page with a few images, is quite jumpy. For example, when I open http://m.heise.de/newsticker/meldung/Die-3D-Software-Blender-2-74-hat-die-Haare-schoen-2592920.html in chrome and scroll down after the page has been loaded, it scrolls about half a page, then stops for a few milliseconds, then continues to scroll. It's worse if I scroll slowly.

Will try discharge and recharge a few times to see if battery calibration goes back to normal for me as well.

---------- Post added at 11:58 AM ---------- Previous post was at 11:50 AM ----------

Just changed the governor to nightmare. That seems to improve the scrolling and responsiveness. I only see one or two smaller pauses when scrolling through whole the page. I think previous versions scrolled more smoothly, but I'd have to flash an old version to compare.
[Galaxy Tab 8.9 Android Development] jolinnard:
Could be... I'm happy with AOSP web browser, so I don't know if it could be a Chrome issue, try both to compare.

About the previous version, it's possible that the debug stuff uses some milliseconds more to process... After all, our CPU is quite old now, and Android and apps requires more power to run.
[Galaxy Tab 8.9 Android Development] zooster:
Guys I've got a big problem. I was on stockrom from safariking + twrp recovery 2.7.1.0. The tab suddenly started to reboot into kernel panic screen of twrp, and since then I can't get it to work. Right after the lockscreen showing up, the tab reboots into kernel panic mode.

So I tried to delete cache, dalvik, fix permission, format data but nothings happen, I mean those command don't get applied because all the files are still there.

Then I tried to restore a backup but it didn't work (it reboots into the os, re rebooting into kernel panic screen).

I tried also to install the zip of this rom but it fails.

Then I tried to flash a different recovery just to see if it's a recovery's fault... but still the flashing didnt get any effect, twrp is still there.

Lastly I tried to flash an old cwm with odin. It seems to be successful on the pc but on the tab the recovery is still twrp...

Wtf???? ****ed up nand or what?
[Galaxy Tab 8.9 Android Development] graug:
I drained the battery yesterday in download mode, then charged the tablet over night with system on (~ 13 hrs). According to the battery stats, the tab was only charged to 6%. After restarting the tab, it showed 93% charge level. The battery level quickly sank when I used it to browse the web and the tablet automatically shut down after about 50 minutes. I started it again to download mode and it's been sitting in that mode for a couple of hours now. So the battery was fully charged over night, but the system didn't recognize it.

Did your tablet charge to 100% with system running, or did it stop at an earlier level as well?
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], have you stopped porting Omni? Your data fix works on Omni as well so maybe you can try porting it again. It works great...
[Galaxy Tab 8.9 Android Development] graug:
Hmm, weird. Sounds like a hw problem. Did you try to open a remote shell with adb? I'd be interesting to know if you can push and pull files from and to the tab. Can you grab the logfiles from the recovery (last kernel msgs, recovery.log, ...) and post them?
[Galaxy Tab 8.9 Android Development] graug:
In order to prevent deep sleep I downloaded and installed a stay awake app from the app store. I set the screen brightness to very low and let the tab charge for 14 hours, after it had been completely drained in download mode. During the first ~6.5 hrs the tab kept charging until the battery indicator showed 100%. Checking with kernel adiutor confirms that the tablet didn't spend any time in deep sleep. So far, so good. I'll now check how long the battery lasts and uninstall the stay awake app to see if charging in deep sleep also works after the recalibration. Charging the tab in deep sleep with a new custom rom seems to mess up the battery calibration.
[Galaxy Tab 8.9 Android Development] XCMDOS:
it works sweet here :p
[Galaxy Tab 8.9 Android Development] djcasl:
Charge seems to work for me now

I am running the aosp-5.1.1-p5wifi-20150508.zip with the Figue-boot-v16-p5wifi-L.zip kernel. Put my tab to charge last night, was 100% this morning without reboot. end battery life seems normal als well. Haven't tried a charge with the tab off. Will try that on the next charge to see if that works too.
[Galaxy Tab 8.9 Android Development] bierma32:
Battery life is with this Rom great. I tried a clean installiert, wipe cache ,dalvik ,System and data, incl. Data/ media without Download folder.

Scheduler is deadline and Governore as interaktive, CPU runs max 1000 / min.216.

Deepsleep is perfect. Now it runs 12 h and battery shows 65%.
[Galaxy Tab 8.9 Android Development] jolinnard:
Yeah... I agree that deep sleep stop battery service to show the correct level. Maybe should be better to turn on the tab, and once boot is completed, plug the charger.

It sounds to me like an internal storage problem. I read some time ago that it happens and can not be fixed (hard bricked). You should make a backup of all your data and try to format all your partitions in recovery mode. Do it with commands, it's very easy with "adb shell" :

To format your /system:

umount /system ; make_ext4fs /dev/block/platform/sdhci-tegra.3/by-num/p4

Data:

umount /sdcard ; umount /data ; make_ext4fs /dev/block/platform/sdhci-tegra.3/by-num/p8

Cache:

umount /cache ; make_ext4fs /dev/block/platform/sdhci-tegra.3/by-num/p5

Once you have all 3 partitions formatted, copy all the results and post here, then type: "dmesg" and post the full log here too.

Yes. I don't have time right now. I'm running decatf's AOSP, so this is what I'm maintaining.