yashsingh1/xdaforums huggingface dataset:
[Xposed General] rhystagram:
probably nothing, it isnt working on my lg g3 either, others reported its working for them on the same device, so i'm in the same boat as you... BUT i understand it's the first release for lollipop, its expected to have issues & i'm patient enough to wait for more advanced releases before i start asking why it isnt working for me.

at this point of time, you're spamming.

.jar for is for module developers.

btw, some modules work for some roms but not for others, so it may be your rom, might be my problem too, but ee have to wait for a better than alpha release.
[Galaxy Grand 2 Q&A, Help & Troubleshooting] tapan85:
Hi Folks,

I am trying to install CM12 (http://xdaforums.com/galaxy-grand-2/orig-development/dev-preview-lollipop-galaxy-grand2-sm-t2949693) in my Galaxy Grand 2 Duos(SM-G7102) and its failing. I have TWM recovery and once i got the error status 7 , showing that i have m103g model however the ROM is for M013G etc..

Need help... Need Lollipop working ROM for Grand 2( SM-G7102).

Thanks,

Tapan
[Galaxy Grand 2 Q&A, Help & Troubleshooting] HARDIK07@$:
hey dude try with cmw recovery its work f9 only the sim 2 voice problem otherwise its tooo cooool.....
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] kuherrm:
http://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080

Saw this being able to be used on most Qualcomm chipsets, wasnt sure how possible it would be to do with our note 3 version?

Any thoughts?
[Galaxy Note 4 Q&A, Help & Troubleshooting] kamranhaghighi:
Hi,

i got this phone as a gift, my father bought it !

It started without showing settings but didn't have anything on it, my father told me he checked it at the shop to make sure it works, The s-pen is already worn out, it has worn out in the angle that normal ppl write while having the s-pen button on thumb! also s-pen button is a bit hard to press!

But this phones looks new without even the slightest scratch, display is clean and rear cover is also clean,

i also saw tiny bit of grey power stuff on my s-pen !

Anyway, the main thing that made me worry is the worn out tip!

Also i have some other questions:

how long does the s-pen last? what about the tips? does grey ones last less? i don't use screen protectors but what if i use one?

My s-pen came worn out of the box ! but it doesn't feel sticky or anything ! it acts almost the same as the replacement ones ! should i replace it or note? (im worried it might scratch my screen)

Is there anyway to Only Root without voiding warranty? i'm used to nexus and i'm not sure how many days i can make it without root :D
[Galaxy Note 4 Q&A, Help & Troubleshooting] rcobourn:
It usually comes with a pack of replacement tips and a tool for changing the tip.
[Galaxy Note 4 Q&A, Help & Troubleshooting] kamranhaghighi:
yeah i changed it ! but how long is this going to last? and i was worried when i saw that mine came already worn off!
[Galaxy Note 4 Q&A, Help & Troubleshooting] winol:
download from Playstore, phone info app, its free, this app gives you interesting information about your device, like, is it new or refurbished, fake, clone, date of manufacture, country of origin, how many times the a pen has been detached, how many times has been charged, etc, very useful app
[Android Software Development] arter97:
Reserved

Reserved
[Android Software Development] sameer23:
My thanks limit is 8 thanks per day so I am typing Thanks here I will press thanks button tomorrow
[Android Software Development] brolee93:
Good I go to test thank bro
[Android Software Development] Math_Apolo:
Added to my Temasek CM12 BUILD v6.8!!

Thanks
[Android Software Development] pikachukaki:
How we that we use stock LG rom can fix this bug???
[Android Software Development] skyguy126:
Explains why my new CM12 flashes end up in a bootloop.
[Android Software Development] lainemac:
I have a Nexus 6. How would I know if I have this problem?
[Android Software Development] The Dork Knight Rises:
Is there an easy way I can check if this works?

I mean, my phone still boots fine, but I expected to see the sudden frame drops to be gone, but they're still here...
[Android Software Development] zamzameir:
how about using the lollipop bootanim on the older android version like kk. do I need to do the same fix as well ? show me the light please :)
[Android Software Development] NuShrike:
If this is because Google is using its AnimationDrawable for the bootanimation, then it's part of the half-ass SDK Google is still putting out.

AnimationDrawable loads ALL frames and never releases previous-frames during playback until the entire drawable is unloaded.

You would think after GIF, MPEG, MNG or APNG (animated PNG), SVG, etc, Google wouldn't go back to pre-school raw-frame animations.

edit: looking at the actual patch, that animation GL animation code from Google is pretty bad. Generating a new texture id per frame is stupid, and using only one texture otherwise, is just as bad. It should be 2, or 3 texture ids reused continuously in a ring-buffer, and that's it.

So, removing the GL code at lines 786-791 is bad because it's generating a texture for all the frames that are coming up. Dropping that means it drops all the frames that was going to get used.

Deleting lines 837-841 causes a texture memory id leak, though no texture-memory leak due to lines 786-791 being deleted. I'd agree with comment https://code.google.com/p/android/issues/detail?id=140061#c6

The way "Animation" on line 608 is used, it looks very much like an AnimationDrawable. So this whole thing is typical of Google not having coders that can do proper animation code.
[Android Software Development] DiamondBond:
sweet find bro! :)
[Android Software Development] domenukk:
As long as the loaded frames get reused, this makes a lot of sense, doesn't it?

It's faster to display the frame from memory than to load it again.

As long as the boot animation doesn't get overly large, which it usually doesn't do, this should not be an issue.

Or do I miss something here?
[Android Software Development] arter97:
https://code.google.com/p/android/issues/detail?id=140061

See before(#7) and after(#8).

The differences are HUGE and #7 is definitely an issue
[Android Software Development] javelinanddart:
Thanks man! If I get around to building ROMs I'll include this patch for sure!
[Android Software Development] domenukk:
Sorry, didn't read this earlier. Good find if true. ;)
[Android Software Development] arter97:
I'm not a OpenGL expert, I've just messed around the code to find out how to fix it "apparently".

You may wanna go read comments here https://code.google.com/p/android/issues/detail?id=140061 (especially #7 and #8).

Can you come up with a better patch?
[Android Software Development] Elluel:
I guess I'll cherry-pick this tonight, why not.

We also need this revert, correct? https://android-review.googlesource.com/#/c/132680/1
[Android Software Development] khanmein:
take note for change owner must be;

0 - root & group 2000 - shell
[Android Software Development] coolhz:
There is no problem with LG firmware

[MENTION=4898097]arter97[/MENTION] I own a LG G3 updated to latest Lollipop firmware from LG(i.e. official firmware) , and I assure you that this bug has been fixed by LG and everything is working as it should , no bootloops or anything in the normal usage is buggy.
[Android Software Development] sysak:
So I used the V2 on my LG G Pad 8.3 and the boot animation seems vertically stretched. Any way this could be fixed? :)
[Android Software Development] -Adarsh-:
The bug isnt present in moto e..
[Android Software Development] arter97:
Yes
[Android Software Development] NuShrike:
Don't take me wrong. I don't disagree this attempts the fix the Google memory-resource foobar. However, the fix could be better.

I suggest instead:

original line 778 add:

const size_t FRAME_CACHE = 2;
GLuint frame_tid[FRAME_CACHE];
size_t frame_tid_ref = 0;
glGenTexture(FRAME_CACHE, frame_tid); // swap between FRAME_CACHE pre-allocated textures
for(ssize_t j = FRAME_CACHE - 1; j >= 0; j--) { // configure textures
glBindTexture(GL_TEXTURE_2D, frame_tid[j]);
glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}

original line 780 to 795 change to:

nsecs_t lastFrame = systemTime();
if (r > 0 && j == 0) { // "pre"-load texture only once here before multi-frame animation
const Animation::Frame& frame(part.frames[j]);
glBindTexture(GL_TEXTURE_2D, frame_tid_ref++);
frame_tid_ref %= FRAME_CACHE;
initTexture( initTexture( frame.map->getDataPtr(),
frame.map->getDataLength());
}

original line 812 add:

if ( r > 0 && (j > 0 && (j + 1 < fcount)) ) { // pre-load texture before sleep to use up slack time
const Animation::Frame& frame(part.frames[j+1]);
glBindTexture(GL_TEXTURE_2D, frame_tid_ref++);
frame_tid_ref %= FRAME_CACHE;
initTexture( initTexture( frame.map->getDataPtr(),
frame.map->getDataLength());
}

original line 838-843 change to:

glDeleteTextures(2, frame_tid);

Debug before use.

Permission is given to anybody to use this code EXCEPT for Google. I'm usually paid for this work, and Google doesn't deserve it.

There's an even better version that's multi-threaded, but that's premium :cool:
[Android Software Development] drawde40599:
So for my stock N6 I use version 2 , 32bit aosp right ?
[Android Software Development] ricardoassaad:
yup
[Android Software Development] vikasb32:
I am using moto g 2nd Gen with 5.0.2 I don't know this phone also have memory bug or not but I place bootanimtion and apply correct permission then restart my phone now my phone look like stuck on boot loader but after some time it goes to home screen so no bootanimtion.
[Android Software Development] castaway1:
if i want quick fix so just delete bootanimation.zip ? i dont have it in system/bin but in system/media its change anything?

thanks for find.
[Android Software Development] luca020400:
Stock rom ?

If so you cannot use it

Motorola use a special bootanimation
[Android Software Development] Schneewitzchen:
Works on Samsung Galaxy Nexus with aosp build :)
[Android Software Development] nodz13:
im in cm12, the bootanimation as same with previous, is it true? i see the size, the attached bootanimation and previous are 35.45 KB. how?

---------- Post added at 03:01 PM ---------- Previous post was at 02:57 PM ----------

specifically im in cm12 galaxy grand duos
[Android Software Development] murfi:
how do i know if i'm affected? using xtrasmooth on nexus 5. dont seem to have any issues.
[Android Software Development] anazhd:
tried on Nexus 5 running on Euphoria OS, 32bit aosp. I noticed a smoother startup, or just placebo. But hey, it works.
[Android Software Development] nodz13:
i try use bootanimationv2.zip, when i reboot my device and the bootanimation not showing, just blank.
[Android Software Development] nIGhT-SoN:
Tried it on S2 Plus, Resurrection Remix 5.3.4 (Lollipop 5.0.2) with the bootanimationv2 and I don't get the boot animation anymore. Dunno if that was the intention of the fix. What I can say, I'm not sure but it seems to boot faster.
[Android Software Development] paolocorpo:
Firstable many thanks to dev

I have a question regarding:

I have only to change the file or after i have to do something regarding what i have quoted ??
[Android Software Development] thecryof:
Works on my Nexus 5 running stock AOSP, startup seems a bit quicker.
[Android Software Development] Ja_som:
Do you guys use bootanimationv2.zip as bootanimation (system/media/bootanimation.zip)?

You need to unpack it and copy bootanimation (without extension) to system/bin:
[Android Software Development] nodz13:
of course i unpuck that file brother
[Android Software Development] Ja_som:
It will be good, if you share info about your device...

Revert back to original bootanimation...
[Android Software Development] nodz13:
with bootanimation.zip (i think v1) when i rebooted my phone, bootanimation was showing, but when i used bootanimation_v2.zip the bootanimation not showing, just not showing and return all operating normally
[Android Software Development] nIGhT-SoN:
I unpacked the bootanimiationv2.zip and from CM folder I copied the bootanimation file into system/bin and overwrite the existing one. I've set permission like this:

Owner: Read - Write - Execute

Group: Read - - Execute

Other: - - Execute

No other boxes checked.

Then I set:

Owner: root

Group: root // I've tried this on shell too as someone suggested in another post, but had the same effect.
[Android Software Development] Ja_som:
[MENTION=4013862]nIGhT-SoN[/MENTION] [MENTION=6005989]nodz13[/MENTION]

I see that my question was stupid :)
[Android Software Development] nIGhT-SoN:
No, it wasn't. There are some people that don't know this and might do as you thought.
[Android Software Development] galapagos:
Your permission is not set at 0755. Other should have read permission as well.
[Android Software Development] nodz13:
see like what the permission
[Android Software Development] prmah:
Not working for me!!

boot animation gone at all, after replacing this cm12 binary.

I am on GEAR_CM 12 samsung i9500
[Android Software Development] fegone:
Nice!

Nexus 6

Euphoria os (11 february)

Franco kernel

It seems like I have less used ram and faster boot
[Android Software Development] nmeuret:
For those who want, I made a CM12 version that can be installed from recovert :

http://www.mediafire.com/download/405g2556y5h5na8/CM12_Fixed_Boot_Animation.zip

Basicaly copy the bootanimation file V2 and set 755 perm to it.

Tested on latest jfltexx CM12 nightly.
[Android Software Development] Levered:
Good job:good:
[Android Software Development] nIGhT-SoN:
Yeah, forgot to mention I took a closer look and fixed permissions, but still the boot animation won't show.
[Android Software Development] sumit yadav:
Don't overwrite, REPLACE!!
[Android Software Development] fedef12evo:
thank you for finding this :D
[Android Software Development] nIGhT-SoN:
There is no such thing as replace and there is no difference. It would be a difference only if the file manager would be able to go through the inside coding and analyze it, but that's not the case. I've tried deleting the initial file and paste the new file, just for the sake of it, and the result is the same, no animation at boot.
[Android Software Development] bryantjopplin:
Use adb instead.
[Android Software Development] Sc4ryB3ar:
I've done as instructed in the OP, all seems to be fine. How do we know if this is working or not? Or I guess a better question to ask, is the a discernable difference in anything that we'll see, as an end user?
[Android Software Development] uodii:
I think this problem tends to occur more when the rom you're using has a very elaborate high quality/resolution boot animation or you're using a low end device. Most boot animations are rather basic though so there's a good chance if you dont know exactly what to look for, and your phone starts and operates as intended, you'll never notice.
[Android Software Development] Persechini:
Sorry if the question sounds stupid, but does this binary work with mp4 files as boot animations? (like on motorola phones and the binary in this thread http://xdaforums.com/general/xda-university/guide-set-video-bootanimationtesters-t2915445 or this http://xdaforums.com/moto-g/themes-apps/share-mp4-bootanimation-stock-rom-t2806592)

If not, would the binary in that thread suffer from the same problem?
[Android Software Development] Sc4ryB3ar:
Ah, OK. Thank you for your hard work on this :) and I'm happy to have it fixed even if there is no noticeable difference :)
[Android Software Development] arter97:
ROFL I love the world "premium" :D :D

Anyways, a few questions :)

1. Should I apply that on top of my patch or not?

2. Do we still need https://github.com/android/platform_frameworks_base/commit/0c1eeb3c8ab53954218d3b8f4be08ff21be3e985 ?

3. That lines information you gave me, which source reference were you using? AOSP or CM12?
[Android Software Development] arter97:
Using a video format with bootanimation is the best solution, it was a huge mistake that Google used image formats with bootanimation.

So yes, mp4 bootanimations won't suffer from this bug and it'll yield the best of the performance.
[Android Software Development] ilnessuno4691:
Thanks a lot but...how can i see if this way the bug is fixed? i don't have never had problems with boot
[Android Software Development] nIGhT-SoN:
Tried going back to default, replacing with the backup I've made, and still I don't get the boot animation. This is strange.
[Android Software Development] Entropy512:
Thanks a lot, you just ensured that no project can actually use your patches, since those licensing terms are incompatible with the Apache license.

Image formats for bootanimation go waaaay back to the beginning of Android, when the presence of H.264 hardware acceleration wasn't necessarily a given, and also the methods for accessing hwaccel engines vary wildly (unless they added the entire damn stagefright framework to the bootanimation binary...), while GL is standardized.
[Android Software Development] bryantjopplin:
Did you replace the bootanimation.zip in /system/media or unzip the download and put it in /system/bin?
[Android Software Development] nIGhT-SoN:
Unziped it and placed it in system/bin. Tried even clearing cache partition and dalvik. No effect. I'll try doing it with Root Explorer, see if it work.
[Android Software Development] juan.m:
Hi! :) Let me check if I understood this correctly.

This is not a problem on an stock samsung touchwiz rom like official russian Lollipop 5.0.1 (for galaxy s4 i9500) because of the qmg format used for it on all touchwiz roms.

Is that correct?

Thanks!
[Android Software Development] annoniem:
Why do we need that file....asking because after flashing rom i delete the qmg files for boot animation and also delete the file in /bin/bootanimation and never had problems.

Henk.
[Android Software Development] jsgraphicart:
Hello. I have a question about this. I have a Nexus 10 running CM12. As many know, Xposed came out for Lolllipop last week. I don't think Xposed is the reason for my issue since I got it installed once with no issues. But I updated the nightly and tried to install it again and was stuck with a continuous boot animation. My question is, can this "memory leak" issue be what's affecting my tablet and the reason it won't get passed the boot animation?
[Android Software Development] nIGhT-SoN:
Still doesn't work. I did it exactly as you showed in the pictures. It's quite strange. Might be a ROM problem... who knows.
[Android Software Development] knuckles1978:
In my system/bin folder, there is no bootanimation file existing to overwrite with the downloaded fix..??

Running the latest CM12 nightly on Galaxy S4 i9505.

Edit: also, I've never had a problem with my phone not booting past the boot animation (been installing every CM12 nightly for the last few weeks). I do though have a slight problem where multitasking seems almost non existent and every app has to reload when you return to it.. Could it be the cause of this, or does this only fix some devices bootlooping on install of lollipop?
[Android Software Development] drmodify:
Greatness

Man Google should pay you! :good::good::good:
[Android Software Development] knitler:
My Nexus 6 stock ROM has no Bootanimation file in /system/Bin. Am I missing something?
[Android Software Development] knuckles1978:
I just posted the same thing a couple of posts before you
[Android Software Development] knitler:
Yeah I saw it just after I posted. Ha!
[Android Software Development] blue1106:
This is definitely working. Thanks!
[Android Software Development] bryantjopplin:
Does your /system/media look like this?
[Android Software Development] knuckles1978:
Isn't that the touchwiz bootanimation files?

I don't think CM12 is gonna have those files, but I'll go check..
[Android Software Development] bryantjopplin:
Yes that's why I asked lol.
[Android Software Development] knuckles1978:
There's mine :)
[Android Software Development] psychomaniac189:
How do you get this to survive an ota update? And you can use any boot animation with this patch you want correct?
[Android Software Development] cocchiararo:
I applied this on my n5, and was looking to do the same on my nvidia shield tablet, but the tablet has no such file (no wonder it shows the same static image during all the boot process >P)

If it is not there, im good, right?
[Android Software Development] NuShrike:
1. patch against http://review.cyanogenmod.org/#/c/88968/2/cmds/bootanimation/BootAnimation.cpp (left pane). It's basically your patch but with a mushroom.

2. Don't use that. It's a fix, but still the wrong fix and and it would break this suggested patch. As you originally coded, this is a streaming texture-animation instead of a pre-loaded blob animation.

Google's cop-out is to load the whole thing into memory and piece-meal animate it claiming no device can stream it. Meanwhile, media-players since the beginning-of-time preload N frames ahead as they animate. Hence, multi-threading would be an improvement here. Could even grab VLC code for this. How to do this has been very public for years. Even better, stick an APNG or GIF player here instead.

3. see #1

4. I'm not sure the change at 658 is needed (per #1).

5. To clarify the license, permission is given to use the posted patches anyway except to post to Google's Gerrit, code-review, etc. I don't want hackbod taking any credit for it. Google should be embarrassed that team of theirs is still putting out this kind of junk-code even in the age of Lollipop, and after that famous G+ post about how Android can't do smooth UI.
[Android Software Development] digitalhigh:
I'm just curious...the thread and OP say Android 5.0. I'm just curious, is this applicable to a 5.0.1 ROM?
[Android Software Development] RusherDude:
I can confirm there's some bug on the bootanimation process. Since I moved along with xposed to 5.0.1 on a N5, I'm having totally random bootloops when rebooting. Totally randoms that they happen maybe 2 times in a row and then none in 10 times, and they get fixed just by forcing a hardware reboot, not even needed to clean cache or anything.

Will try this, thank you!

I installed liveboot by chainfire and I have catched one of these bootloops live. Some errors then some I/ThermalEngine cpu speed changes and then the boot is completely dead only with "white (dmesg?) messages" posting some hw? info (rsoc, rvcel, soc, etc.) every minute or so. Also note that this got stuck in the first 5 seconds of bootanimation or so, didn't take long.. and just got 3-in-a-row bootloop chain :D, every bootloop stopped with different info on screen but before 5 seconds of bootanimation (before 3s probably). The second and third ones didn't have the thermal and hw info messages, completely frozen on screen (maybe the liveboot process got killed?)
[Android Software Development] baazellbub:
lg g3

Has anyone tested this on lg g3 android 5.0 v20c, and is it fixed? And please an istruction how to do it? What file to download and replace? Tnx in advance
[Android Software Development] knuckles1978:
[MENTION=613577]NuShrike[/MENTION]

What kind of mushroom? If it's a magic mushroom then I'm very interested.
[Android Software Development] bryantjopplin:
Try this one. Put it in system/media and change to correct permissions. Rename your existing to something else

https://www.dropbox.com/s/at8k70xfqk5dhck/bootanimation.zip?dl=0
[Android Software Development] knuckles1978:
Thanks mate, I'll give it a try and report back :)
[Android Software Development] bryantjopplin:
It's stock nexus BTW.
[Android Software Development] knuckles1978:
Fine with me :)

Not been able to reboot yet because I'm busy writing Tasker profiles
[Android Software Development] stuliv12:
I had the same, no boot animation, lg g3 cm12.
[Android Software Development] bryantjopplin:
I was just having him test to see if somehow the file for corrupted.
[Android Software Development] NuShrike:
;) Maariioo..