yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 10.1 Android Development] decatf:
Build 20150116

p4wifi-lollipop-20150116.zip

Mirror

p4-lollipop-20150116.zip

Mirror

Changes:

Fix HWC rendering path

Fix SurfaceFlinger source crop

This fixes the nvgralloc errors seen in logcat

Switched to hwcomposer 1.0 wrapper

Work around proprietary hwcomposer blob glitches

Do

not

check Disable HW overlays in Developer options anymore.

I know this was a popular thing to do in the past but it goes against how things actually should be. Disable HW overlays basically means disable hardware composer rendering. If all things are working according to Android specification then rendering will be slower with HWC disabled.

We can see the improvement in rendering performance by using Profile GPU rendering. The screenshots below show the GPU rendering profile graphs. Lower is better. The first screenshot is without HWC and the second is with HWC. If you check disable HW rendering you will notice it gets slow as in the first screenshot.

Without HWC:

With HWC:

Additional Notes:

The SurfaceFlinger rendering was actually broken. Completely broken since the first release of this ROM. The HWComposer rendering was not even working due a bug in legacy compatibility code. It is fixed now so HWC is working.

It is now also using a hwcomposer 1.0 wrapper. The 1.0 API is still officially supported in Android. The NVidia hwcomposer module that came with ICS is version 0.1. This version is no longer supported so we have had to rely on hacks to make it work since Jellybean. With hwcomposer 1.0 there is hardware vsync support.

The wrapper was originally written by ejtagle. I have fixed a critical bug that was preventing it from working 100% properly.

Unfortunately the there are some weird bugs (freezing and glitches) with the hwcomposer rendering. It is very hard to debug since all the original NVidia graphics blobs are closed source. So the only workaround I have at the moment is to place an invisible 1 pixel layer. For some reason this makes the glitches go away. There is a performance loss in doing this. But it is not as much as not using hwcomposer at all.

We can see the "invisible layer" listed if we run adb dumpsys SurfaceFlinger.

type | handle | hint | flag | tr | blnd | format | source crop (l,t,r,b) | frame | name
-----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
HWC | 412a4de8 | 0003 | 0000 | 00 | 0100 | RGBA_8888 | 320, 240, 1600, 1040 | 0, 0, 1280, 800 | com.android.systemui.ImageWallpaper
GLES | 40cc8548 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0, 0, 1280, 752 | 0, 0, 1280, 752 | com.android.launcher/com.android.launcher2.Launcher
GLES | 40cdd1d0 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0, 0, 1, 1 | 1279, 751, 1280, 752 | invisible layer
GLES | 40cca048 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0, 0, 1280, 25 | 0, 0, 1280, 25 | StatusBar
GLES | 40ccde30 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0, 0, 1280, 48 | 0, 752, 1280, 800 | NavigationBar
[Galaxy Tab 10.1 Android Development] Just_Another_N00b:
Thanks for keeping improving the product. Will start a download and subsequent flash and do some hammering...

Where would we (the community) be without pioneers like you :good:

Als the best

Cheers!

---------- Post added at 10:34 PM ---------- Previous post was at 10:18 PM ----------

Downloading p4wifi fails every time at 144 MB or thereabouts... Could you re-upload?

-EDIT-

Download works fine on desktop with Firefox. Must be related to Dolphin on p4wifi not being able to complete download. So please ignore the above. Sorry for the confusion.
[Galaxy Tab 10.1 Android Development] decatf:
The p4 download works for me. I mirrored the downloads.
[Galaxy Tab 10.1 Android Development] rahimskala:
Do not put, it gives :confused:

E:Error executing updater binary in zip '/sdcard/kino/p4-lollipop-20150116.zip'

Error flashing zip '/sdcard/kino/p4-lollipop-20150116.zip'

Updating partition details...
[Galaxy Tab 10.1 Android Development] kiez:
Same here
[Galaxy Tab 10.1 Android Development] rahimskala:
waiting for patches
[Galaxy Tab 10.1 Android Development] Gerton:
So don't install newest version? I am going to install from scratch... Have to wait for fixed version?
[Galaxy Tab 10.1 Android Development] Prowler665:
Simply extract the update-binary from an old rom and inject it into the new one if you don't want to wait ;)

You will find it in META-INF/com/google/android/

In the old ROM

- Open the ROM and browse to the update-binary

- extract the file to disk

In the new ROM

- Open the ROM and browse to the new update-binary

- delete the file from the archive

- drag the old update-binary form disk into the archive

Edit:

There seems to be a problem with the updater-script too, since the old binary produced an error about the mount argumets it recieved. Using the old updater-script works, but in the new one the boot.img is flashed while in the old one it is not...

I'm not sure about the other differences yet...

Edit 2:

Eventually replacing the mount commands in the new updater-script did the trick

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");

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

I didn't check which of the arguments was causing the trouble thou...

The updater-script got cleand-up a lot so it was a little tricky to get to the core at first ;)

Regards :)
[Galaxy Tab 10.1 Android Development] eushaun99:
Is this the reason why YouTube always hangs after a few seconds for me? Thanks as always. You are actually one of the rare kind of developers(along with AAcount) who actually explains in detail what you did for the updates and I really appreciate that.
[Galaxy Tab 10.1 Android Development] rahimskala:
Still not set.:(
[Galaxy Tab 10.1 Android Development] Prowler665:
have a look 2 posts above. I just edited the initial post ;)

Regards
[Galaxy Tab 10.1 Android Development] morlong:
desolated for my late reply.

I had already tried to re-download and the error message was the same. this time I will try again but by downloading directly from the tablet.
[Galaxy Tab 10.1 Android Development] aamadorj:
It seems latest build for P4 has the same issue that the first build from Jan 10th. Very soon [MENTION=4404851]decatf[/MENTION] spotted the problem and uploaded a fixed build, as stated at this post from Jan 11th:

So I'm going to wait for the fixed build.
[Galaxy Tab 10.1 Android Development] Prowler665:
After replacing the updater-binary and fixing the updater-script the ROM installed just fine on my p4 ;)

The first problem to show up is the num-pad used for entering the sim- and pin-code jumping up and down horizontally.

Entering the numbers is like "whack the rat" :eek:

Performance according to AnTuTu is a bit lower than the previous build.

Youtube is lagging big time even at 480p. Regular video using MX-player is working fine thou.

Thanks a lot for all your effort in trying to keep our tab not only alive, but almost up to date ;)

Regards
[Galaxy Tab 10.1 Android Development] rahimskala:
yes, it would be better :)
[Galaxy Tab 10.1 Android Development] decatf:
I've tested the p4 build before uploading them so there's something I'm doing wrong for some reason.

Also there is nothing I can do to fix the screen jumping up and down horizontally. It's some bug in the Nvidia drivers. I can only try to work around the issue as mentioned in the previous post. But if we can't get it work for all situations then it means we have to abandon the hwcomposer.

No, it has nothing to do with Youtube video. Or any other kind of video playback. It has nothing to do with 3D performance. The hwcomposer deals with rendering the user interface.

As mentioned already, one way to get rid of the screen jumping up and down is to disable hwcomposer. This can be done by checking Disable HW overlays in developer settings. Do this then enter your sim pin.

I don't have the p4 tablet so I can't test the sim pin screen myself. Please report any where else you see the screen jumping issue.

Fixed install script for p4-20150116
[Galaxy Tab 10.1 Android Development] Prowler665:
Nevermind. Those things happen :D If someone cant wait for a fix - changing the update-binary can be done by anyone in less then a minute ;) As well as either using the old script with it or modify those mount command-lines...

Well, I'm willing to give it a try - if there is anything I can do to help, I'm in.

Yes, I know. Disabling the HW-Overlay nailed the num-pad and didn't change anything for youtube - as expected. There seems to be someting else slowing down youtube.

It's the same for the lockscreen-pin. Thats what I meant by sim and pin. Just set a pin for the lockscreen and there you go.

Regards
[Galaxy Tab 10.1 Android Development] morlong:
gapps Ok

it's good for me with rom of 10.01.2015

thank you
[Galaxy Tab 10.1 Android Development] decatf:
It looks like the invisible layer doesn't appear on the lock screen. So that's why the workaround doesn't work there.

What we need is some expert who knows OpenGL and how SurfaceFlinger works. That stuff is way beyond what I know. Even then there is little chance that they know how to fix the rendering bugs in hwcomposer because it's all closed source.
[Galaxy Tab 10.1 Android Development] Prowler665:
Definitely not my department :confused:

Hmm, well nova-launcher is working like a charm for me and I never missed hwcomposer so it might just not be worth the effort....

So don't bust your head on this we need it to keep our tab alive :p

Regards ...and have a beer on me :D
[Galaxy Tab 10.1 Android Development] decatf:
Thanks.

It would mean a lot for keeping this tab alive longer though, if we could have this working right.
[Galaxy Tab 10.1 Android Development] decatf:
Here's a small change to SurfaceFlinger which might bring the Antutu benchmark score back up. It has the TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK flag enabled. Which is the default behavior.

p75xx-hwc-20150117.zip
[Galaxy Tab 10.1 Android Development] Prowler665:
AnTuTu went up ~10-15% on 3 tests and also youtube is working again like on the previous build.

This one should definitely make it into the next build ;)

Regards
[Galaxy Tab 10.1 Android Development] bert73:
Great

This new version of the rom is great, feels even smoother than ics wich was until now the smoothed rom in my opinion.
[Galaxy Tab 10.1 Android Development] decatf:
Here's another little change. The invisible layer View type is now WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY. This allows it to work on the lock screen. It doesn't work for multi-user though. It looks like the invisible layer View will only apply the main user. Maybe app developers might know of a way to get a View to show globally.

p75xx-hwc-20150117b.zip

I think I might have to try exploring other ways to do this work around at a lower level.
[Galaxy Tab 10.1 Android Development] meanhacker:
hey, I use nova launcher too, but the rendering is kinda laggy (better than it was on kitkat roms though for sure, hands down). I am using muzei live wallpaper and that might be slowing it down, but it's just a wallpaper and nothing is moving, only when you scroll through the pages, the wallpaper moves too... I remember a workaround to this on older ROMs would be to enter into immersive mode (fullscreen ROM mode) that hides the navbar and statusbar and Nova rendering would become flawless. If you have time, can you check out muzei and see if it slows down for you too? I just want to test the theory and see if I'm the only one having this issue.
[Galaxy Tab 10.1 Android Development] CraigWiggins:
Back on track

That cleared up jumpy numbers and Youtube crankiness. Thanks!
[Galaxy Tab 10.1 Android Development] Prowler665:
The fix is working just fine ;) It's been a long time since I've seen this amount of progress related to this ancient device :D

I've tested muzei for a while now and don't see any significant differences in responsiveness compared neither to the standard wallpaper, nor in immersive mode. I'm using OC to 1400MHz and bfq sheduler thou...

Regards
[Galaxy Tab 10.1 Android Development] stuckedinsweden:
So, in other words, use another browser, or go back to stock rom for web video working? :confused:
[Galaxy Tab 10.1 Android Development] decatf:
Use another browser or use Chrome 29 or older. The problem will probably exist in stock ROM. It's a bug in Chrome.
[Galaxy Tab 10.1 Android Development] CraKenDK:
Can not find restricted profiles?

Hi there :)

I'm trying to setup up a restricted profile for my kids, but I can not find how to activate this restricted profile feature.

Can anybody help?

I'm following this guide here:

http://www.howtogeek.com/205301/how...ed-user-profiles-for-basic-parental-controls/

Thanks :)
[Galaxy Tab 10.1 Android Development] jaibar:
I think you can just pull down the status bar, touch the user icon on the top right and it will allow you to edit your own profile or add new ones etc.
[Galaxy Tab 10.1 Android Development] decatf:
I just remembered the old voodoo sound feature in the kernel. You can install the Voodoo Sound app in Playstore. Use that to increase the headphone amplifier level.
[Galaxy Tab 10.1 Android Development] timdoggg:
So I tried that and it works, but just like DSP manager, as soon as I back out of the app the volume is restored to the original low level
[Galaxy Tab 10.1 Android Development] decatf:
Then something must be resetting back. It is just a setting that can be modified by any application that is coded to do so. The Voodoo Sound app should only be modifying it when you've set a value. Or at boot if the option is enabled.

The value can be checked by running:

cat /sys/class/misc/voodoo_sound/headphone_amplifier_level

The highest value is is 62. The default is 47, I think.

And to set the value from command line do:

echo 50 > /sys/class/misc/voodoo_sound/headphone_amplifier_level

Replace 50 with whatever value is desired.

It works for me. Make sure to select the Restricted profile option when adding a new user.
[Galaxy Tab 10.1 Android Development] iamremano:
Thank you for this amazing ROM. I have stuggled for quite some time to get my tab working before Lollipop came out and now everything has been fixed, thanks to you guys. I have one question. How can i update my tab (p4-lollipop-2015-01-10.zip) to a new version eg. (p4-lollipop-2015-01-18.zip)?

Can i just download the update and install it over the exsiting one in recovery without loosing my apps and settings or what must must I do? Im new to this. I need help.
[Galaxy Tab 10.1 Android Development] SystemDoctor:
Redid another full flash but AOSP keyboard still won't show on my p4. Do other p4wifi and p4 users experience this issue after flashing the latest version?
[Galaxy Tab 10.1 Android Development] spamam1:
Hi,

I am also having issues with keyboard not showing, and I am also on P4.

Tried sideloading SwiftKey - - the predictive text above the keyboard shows, but not the keyboard itself.

Sorry, left it at work so no screenshots.. But in the languages and input settings, there's options for physical keyboard.. Sec(ondary?) keyboard ?

Maybe it somehow thinks that a physical keyboard is attached, and therefore not showing the virtual keyboard?

Edit: neglected to mention, I also reflashed 2 more times.. Via TWRP 2.8.0.0 and CWM

Edit 2: don't have a SIM to test, but IMEI is unknown.. I -think- I had IMEI in Omni and Nameless ROMs. Will flash back first to confirm IMEI was ok.. If not, back to stock first, etc
[Galaxy Tab 10.1 Android Development] SystemDoctor:
I also cannot install APK files. I tried installing Total Commander which I transferred from my PC but Pachage Installer Crashes.
[Galaxy Tab 10.1 Android Development] Gil81:
Grab a logcat when package installer crashes and post it on pastebin with a link here..you also might try getting a broad logcat when using or trying to use keyboard.

I'll take a look at them tomorrow and hopefully our dev here can look also..but I believe he doesn't have that device..and neither do I.

Also..did u apply install from unknown source in security..or where ever it is in lollipop?
[Galaxy Tab 10.1 Android Development] SystemDoctor:
Yes, I have Unknown Sources Enabled but I think I am not able to get a logcat since I can't install anything. I wonder if the p4wifi version has this problem too.
[Galaxy Tab 10.1 Android Development] Gil81:
Have u tried another keyboard from play store...or is the installer crashing there also..

U can go to the play store then options and download a keyboard from ur once installed app list...no need t type

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

My p4wifi is working at the speed of sound..lol really smooth so far..I'm on it doing this post
[Galaxy Tab 10.1 Android Development] SystemDoctor:
I can't use the Play Store since I can't connect to Wi-Fi. I can't connect to Wi-Fi because I don't have a working keyboard. I don't have a keyboard since I can't use Play Store.

I've decided that from now on, I'll turn my p4 into a p4wifi.
[Galaxy Tab 10.1 Android Development] Gil81:
Lmao..got ya. Never thought about not having WiFi..mine is open.

---------- Post added at 11:20 PM ---------- Previous post was at 11:11 PM ----------

Create a file on ur PC or phone with ur WiFi password typed out in it..then copy or Bluetooth it over to the device and copy/paste it in..of course this is assuming you want to mess with it and if u can find a lollipop gapps package with a file explorer in it...

Or easier yet...find a flashable zip for a keyboard or file explorer/manager.

---------- Post added at 11:24 PM ---------- Previous post was at 11:20 PM ----------
[Galaxy Tab 10.1 Android Development] SystemDoctor:
Turns out installing the P4WIFI solved the problem
[Galaxy Tab 10.1 Android Development] DrWhatever:
Found method to fix keyboard. When you trying to enter text, tap on keyboard icon at right corner and select "Hardware" (icon appears if you have 2 or more languages selected)

Also this option is available at settings in "Language and input > Keyboard & input > current keyboard > hardware"

sorry for bad english
[Galaxy Tab 10.1 Android Development] emu1982:
Actually thought id never see lollipop on the p4wifi it was a shock to get kitkat let alone this as well, credit to the op for a very functional/smooth

Aosp release. Really appreciate the work and hope to see this rom develop of which can only get better from using this beta release. :good:

Edit: Netflix does work for anyone who is wondering :)
[Galaxy Tab 10.1 Android Development] kuramci:
sorry, is this working on 3G model?
[Galaxy Tab 10.1 Android Development] DrWhatever:
Use p4 version for 3g version (havent tested 3g itself).

Its ok, but be ready for some little bugs
[Galaxy Tab 10.1 Android Development] decatf:
Can someone having the keyboard problem with the p4 post logcat after trying to open the keyboard?
[Galaxy Tab 10.1 Android Development] kuramci:
Yeah, i use p7500. i think it is p4. İ want to try it.
[Galaxy Tab 10.1 Android Development] DrWhatever:
Yep, P7500 is p4
[Galaxy Tab 10.1 Android Development] honhan0904:
Some problem i have met after 13h used(p4):

1.First time install: you cant access wifi, google account, etc because you cant access keyboard

Solution: setting/language and input/aosp keyboard/ turn on hardware keyboard. After that, log in google account.

2. Carrier : our device baseband lost. Cant use 3g or send message because lost carrier

Solution: unknown

3. Standby: when the screen turn off, sometime it cant turn on by press power button

Solution: hard-reboot.

4.Bluetooth: cant use

5.Root access: cant access root

Solution: download update binary SU v2.16 from chainfire and flash. After that install busybox from playstore.

It still beta though but this rom work very smooth on this 3-years old device. Hope you can fix these bug. You are the best dude.

Thanks you very much [MENTION=4404851]decatf[/MENTION]
[Galaxy Tab 10.1 Android Development] SystemDoctor:
For p4 users who don't use 3G and want a much more stable version install the p4wifi. Here's the steps.

1) Flash a p4wifi recovery via odin

2) Download TWRP 2.7.1.0 p4wifi version

3) Flash the TWRP p4wifi version

4) Download the p4wifi rom

5) Follow the steps to install the rom
[Galaxy Tab 10.1 Android Development] honhan0904:
Should we have edit build.prop?
[Galaxy Tab 10.1 Android Development] MicheyM:
Thanks Gil81, It works :)

Now i have gapps installed, but nothing else is there although my tablet is 8gb full of stuff - how do i install/ retrieve the apps?
[Galaxy Tab 10.1 Android Development] Olivier V:
Yes you can, but remember to flash the GAPPS after you flash the ROM.
[Galaxy Tab 10.1 Android Development] iamremano:
Thank you! it all works perfectly now.
[Galaxy Tab 10.1 Android Development] Olivier V:
No problem, that's what we're here for.
[Galaxy Tab 10.1 Android Development] timdoggg:
I literally just started rooting and romming a couple months ago, but I want to learn more, as i think I'm interested in porting a lollipop ROM for a China device a friend has, the elephone p6i.

Does anybody have any experience with a porting Roms for this or similar device?

Where do I run this code btw?
[Galaxy Tab 10.1 Android Development] kashortiexda:
[MENTION=4404851]decatf[/MENTION] the file from post 570 seems to have been removed from downloads ? p75xx-hwc-20150117b.zip ?

Anyone have a link ?
[Galaxy Tab 10.1 Android Development] spamam1:
I think it got incorporated into the 2015.01.18 build (see OP / 1st post), so don't need 2 incremental downloads, just the updated ROM itself
[Galaxy Tab 10.1 Android Development] CraKenDK:
Thanks for the reply.

Yes I saw that picture in the guide too, showing two buttons, one for creating a user and one for creating a restricted profile.

In Settings -> Users I have a button called Add user. When I click that, I only have one option and that is to create a user, not a restricted profile.

How do I get the ability to create a Restricted Profile?
[Galaxy Tab 10.1 Android Development] jhlambelo:
Hardware Keyboard

Once again, thanks for the awesome Rom. I really am enjoying using it.

I use a Bluetooth keyboard with my tablet. It used to work well with version from December 6. I then updated to January 1 build and started noticing small issues as follows:

Soft keyboard opens when hardware keyboard is open

If I enable or switch to Null Keyboard, half the screen stays white (the place where the keyboard was).

Any thoughts how to not launch the soft keyboard if hardware keyboard is detected?
[Galaxy Tab 10.1 Android Development] merc68k:
Thanks for your work on this ROM, with the latest build smooth scrolling is back and my tab feels responsive again, maybe even more than with the old ICS or KK ROMs! The only thing I've noticed is that YouTube video seems to be a little choppy right now but I'm sure that will be worked out eventually.
[Galaxy Tab 10.1 Android Development] LiverpoolFCfan:
I have installed the ROM - first time installing a non-stock ROM on this tab - and it looks great. Fantastic job decatf. My question - does anyone know of a way to restore Fifa 15 Ultimate Team from the Nandroid backup? I have restrored it - all 1.2GB of it - but when I start it up it starts as a first time user - it has lost the Team that my kids had built up. It would be great if I could recover it. Thanks.
[Galaxy Tab 10.1 Android Development] Tho-D:
Hi, is it working now? I have the same problem: "Google+ incompatible with the device"

ROM from last week, 15th, I think

gapps-lp-minimal-...

runnung WWM recovery

Should I try to flash the significantly larger "gapps-lp-..." package!?
[Galaxy Tab 10.1 Android Development] ricardo121212:
Where can I find p4wifi-bootimage-20150109.zip?... It gives me file not found following the link in the post...

Thank you!