yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bobloadmire:
Sure enough on my ATT SGS3 this has eliminated all scrolling lag on CM10.1
[Android Software/Hacking General [Developers Only]] TheeWolf:
Anyone? what is the purpose of the zip file and that patch file?
[Android Software/Hacking General [Developers Only]] Khiraji:
Cool! I just installed this on my Droid 3 (running MavRom 4.5). I've experienced that same frustrating lag after my phone has been on for a few days, and the only way around it has been rebooting. Fingers crossed this is the solution! :D
[Android Software/Hacking General [Developers Only]] jordi6294:
Yep, don't worry, sometimes happen but the app is working.
[Android Software/Hacking General [Developers Only]] deys:
If you install using the apk then it will create an app icon...
[Android Software/Hacking General [Developers Only]] fwood:
if you tap "back button" ..it will close, you can just tap home button...so it remain open in background !
[Android Software/Hacking General [Developers Only]] Testraindrop:
Used this method to "double" my initial entropy on my Nexus 4.

As I couldn't see any dramatic decrease on the original value I just increased it slightly to be on the safe side.

Now I have always >350, I think 3000+ is useless at least on my device.
[Android Software/Hacking General [Developers Only]] pioneersohpioneers:
I believe for rom builders to integrate into their ROMs without having to install the app.

OP, I'm amazed. Thank you, so so much.
[Android Software/Hacking General [Developers Only]] pedrodh:
In hopes of stopping the placebo effect from setting in and actually get some idea if this tweak actually works or not I've created a small application that generates random Double numbers in a Secure manner so that the Dalvik VM ends up using /dev/random in order to generate this numbers.

Here's the APK so everyone can install and test for themselves. It doesn't need Root nor any special permissions of any kind.

I've also opensource the application if anyones wants to check the code : https://github.com/pedronveloso/AndroidRandomBenchmark

From my quick tests on a Galaxy Nexus with CM 10.1 I realized that the application first run takes less time when the tweak is applied. The next runs are always very similar in time probably because of the JIT, but for the first run when the cache is cold I could see an improvement; now this benchmark won't tell you how much faster your system might become but will at least let you know if the tweak is actually getting you some benefits on not. Check the attached screens for my results, I look forwards for seeing other's results as well :)

PS: The phone was restarted before doing both tests.
[Android Software/Hacking General [Developers Only]] fis324:
I think so too and the result of the benchmark also fell.

Sent from my Desire HD(Jelly time R30 based CM10)
[Android Software/Hacking General [Developers Only]] HansiHusten:
+1 - just awesome!
[Android Software/Hacking General [Developers Only]] jordi6294:
If i install using the .apk it DOES create an app icon, but i have posted that in other forum and some users are having troubles, so i decided to try the Seeder v5 flashable, changing the update binary for one of Galaxy Ace (my phone).. I have installed it but when i go to terminal and put su and then seeder it says "not found".
[Android Software/Hacking General [Developers Only]] jonah1234:
Bump

Sent from my HTC Droid DNA
[Android Software/Hacking General [Developers Only]] Fallon9111:
Wut?

Are you kidding me? I'm on jelly 4.2 (CodefireX) on Desire HD and I have terrible battery due to big overclock. This is because I find it struggles a little bit with 4.2, keeping it smooth. This pretty much solves it, now i only oc to 1.3 Ghz and the battery is better, (maybe + a couple of hours)

Although I suppose jelly 4.1 is less laggy, but I can honestly say the seeder works for dhd.
[Android Software/Hacking General [Developers Only]] Tynen:
We love you Supercurio
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Thanks :)

Well I already had this in my Kick Ass Kernelizer

busybox sysctl -e -w kernel.random.read_wakeup_threshold=128;

Which is twice the default of 64.

I guess it was a happy byproduct of changing common values :laugh::p

Anyway, gonna change it to:

busybox sysctl -e -w kernel.random.read_wakeup_threshold=1376; # Keep entropy_avail full - MAY save battery and/or boost responsiveness

I don't mind tweaks that may give benefit without any cost lol
[Android Software/Hacking General [Developers Only]] RoachTeo:
I try it on g. Nexus. Really improve switching tab speed. I'll do more tests but first impression is great!

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] EniGmA1987:
While I see that this does seem to help people, it doesnt look like a "real" fix for the problem to me. If we have limited entropy space for memory, where does this limit come from and why cant we just raise the limit?
[Android Software/Hacking General [Developers Only]] lordvincent 90:
I posted this method in the nexus7 section here on xda where a link to this thread showed up as well as the lg marquee section over on android forums (they found this thread too)

Its also the method I'm currently using. :)
[Android Software/Hacking General [Developers Only]] android-rox:
wow! Thank you.

I installed it on Droid X and notice a definite improvement in response time.

It started lagging as hell the past year or so. I was about to get rid of it for a new one, but I think now I will keep it.
[Android Software/Hacking General [Developers Only]] macklalt:
I want to ask,will it run on Xperia X10? Cuz the phone needs a little bit help with 2012 games :D Cheers
[Android Software/Hacking General [Developers Only]] fwood:
i repeat, i have gingerbread not rooted and i can say my Note now load less ram !! And it seems faster! It's a placebo?? Placebo after 1 hour of usage?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Cool :)

I really didn't expect to find a "secret switch" that easily but glad I did lol
[Android Software/Hacking General [Developers Only]] madd0g:
Seems Google closed the issue, saying its fine after GB.

http://code.google.com/p/android/issues/detail?id=42265
[Android Software/Hacking General [Developers Only]] phammichael:
Try it yourself then let us know if it works
[Android Software/Hacking General [Developers Only]] Dovidhalevi:
This has certainly become one of the most interesting and controversial threads!

OK, I do not do games. Games need random numbers to be at all interesting. While some users report no improvements, others find that the home screen paints quicker, browsers load quicker, etc. How do random numbers effect this stuff? What is really going on under the hood?

We also seem to have several possibilities here:

The apk. Simplest way to run this tweak.

The zips. To me easier to adb push this stuff myself but some folks have this thing about flashing.

Sysctl tweaks.

Symlink /dev/random -> /dev/urandom

Mknod the /dev/random with different parameters.

Probably like to know which works best. One or more of the last three can be placed as a bash script in /etc/init.d or /data/local/userinit.d. I keep stuff in userinit.d like activating swap (one needs to do that to use it!), some sysctl tweak for battery, and that pesky link2sd mount script and CM10 fix for it. Unless I wipe data, these are at my service, every bootup.

Anyway, with the apk, my "entropy" stays 3900 or above most all the time. I am running on an LG P500 which is not exactly cutting edge with a CM10/Paranoid ROM. Subjectively, home screen comes up faster. As I said, I am not playing games on this old phone.
[Android Software/Hacking General [Developers Only]] remigo:
Shouldn't do anything if you're not rooted so yes, placebo
[Android Software/Hacking General [Developers Only]] phammichael:
Delete
[Android Software/Hacking General [Developers Only]] fwood:
YEs but...i have no more lag on go launcher...and device go faster with less ram ! :eek:
[Android Software/Hacking General [Developers Only]] ganeshp:
I've been testing your way of filling entropy.. And it's less battery draining indeed :) (idle time is better).. Love your little but efficient finds :)

Of course big thanks to Op who actually found the culprit and solution for the lags

Based on the various responses here.. The only devices which doesn't seem to have big impact using this tweak are having big ram.. So.. My point is this tweak might help devices with <= 1GB ram :) (just an observation though)
[Android Software/Hacking General [Developers Only]] remigo:
Seeder entropy generator: off after reboot

Galaxy s2 cm10.1, any fix for this?
[Android Software/Hacking General [Developers Only]] mave__:
No difference for my HTC Desire S, running CoolDroid v8.5. If anything, it's slower and more unresponsive than before.
[Android Software/Hacking General [Developers Only]] ej8989:
Your brain made your device faster. Good for you :D :good:
[Android Software/Hacking General [Developers Only]] GermainZ:
That's exactly the definition of a placebo.
[Android Software/Hacking General [Developers Only]] sdwise:
Installed, turned on, rebooted, got the superuser toast notification.

Force stopped, ran the benchmark app posted earlier (thanks for that), milliseconds were in the 69... and 67... range.

Opened app, turned on, got SU notification, ran benchmarks and stayed in the 53...s mostly.

It made a slight difference for me, and apps like chrome do open noticeably faster. My typing isn't lagging like it usually does either.

Sent from my DROID RAZR Maxx with Jelly Bean
[Android Software/Hacking General [Developers Only]] FDisk80:
Disable SVoice and it will turn immediately. SVoice adds a wait time to your home button because it is waiting for the double click.
[Android Software/Hacking General [Developers Only]] hereticangel:
Just installed it on my HTC ONE V , must say feels much better , i run this and ram manager set to balance with 256mb swap file , phone feels quite fast :)

Clocked at 1.8ghz will monitor the battery life.
[Android Software/Hacking General [Developers Only]] cloney:
Installed this but when i monitor the entropy the levels range from 17-2057 mostly less than 100, and total is around 1927-4096). Is this working properly? Should the level maintain close to the total level?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
The levels should be around 3000++ or above...if so, then it is doing its job...

Is run at boot at "yes"? Try typing

pgrep rngd

in terminal and see if it returns a value...
[Android Software/Hacking General [Developers Only]] AwsmStar:
I can confirm a difference on HTC Sensation ViperS 1.6. Once opened and re-opened apps open VERY quickly, although their initial open time is the same as usual. Overall performance seems the same just the opening times are instant which is a really great thing. :laugh::good:
[Android Software/Hacking General [Developers Only]] fwood:
ok...so i'm become crazy! But i'm still watching no more lag and less ram loaded! :eek:
[Android Software/Hacking General [Developers Only]] Felnarion:
It won't affect RAM at all. Can you not spam the thread with nonsense, please?
[Android Software/Hacking General [Developers Only]] jader13254:
xperia arc s big improvement. very high battery drain (1%/2min)

after removing its back to normal. this has definitely potential
[Android Software/Hacking General [Developers Only]] Alkemix:
Hi guys,

but I must reinstall seeder.apk every time that I flash a ROM updating (same ROM)?

Thanks
[Android Software/Hacking General [Developers Only]] remigo:
4 times the same line, but disappears really quickly,

4x Unexpected operator

ending with Invalid option please try again
[Android Software/Hacking General [Developers Only]] therussman2002:
Droid 4 here with stock rooted ICS. I was browsing the forums looking for a better JB ROM since all Droid 4 ICS ROMs have awful lag (mostly with Chrome, but pretty much everywhere).

After running the app and enabling the option, instant improvement everywhere. Biggest items: general Chrome use doesn't lag at all, and visiting home and the open app list is much quicker. I'm excited for this defect (?) to be permanently addressed :)
[Android Software/Hacking General [Developers Only]] l_themis:
The v5 worked great for me! I will flash v6 and report back...

Excellent work men!!!:good:
[Android Software/Hacking General [Developers Only]] killuah1337:
apk doesnt seem to work correctly.

i installed it and enabled it (set on boot is enabled as well), but every time i close the app and start it again it says "off" instead of "on".
[Android Software/Hacking General [Developers Only]] James.UBC:
so the guys at google seem to disagree with the general opinion on this thread

e...@google.com:

>booting a device running AOSP with a C library modified to log shows me that only wpa_supplicant opens /dev/random, and it doesn't continuously do that.

>well, dalvik certainly isn't touching /dev/random.

>of course the number goes up. you're writing to the bloody thing! that doesn't tell you anything other than you're writing to it.

In response to :

It doesn't matter if there's higher numbers in "/proc/sys/kernel/random/entropy_avail" if the Dalvik code doesn't use it....

>exactly!

i'll reserve my judgment until i've used the phone for at least another day
[Android Software/Hacking General [Developers Only]] shantam:
The values in entropy_avail.bin

Changes automatically

If u open it randomly with root explorer

In proc/sys/kernel/random

Like it sometimes 172 and then it changes to 190 or 250

Is this normal..

***//'?'\\***
[Android Software/Hacking General [Developers Only]] qdoba:
You need to reboot.
[Android Software/Hacking General [Developers Only]] creeve4:
It seems to me that increasing the entropy pool is only correcting a symptom, not the actual problem. The actual problem is that entropy is - on some/many devices - not generated fast enough.

While increasing the entropy pool does seem to help, it is obvious that a small entropy pool is not the only problem.

Is there anything that can be done to increase the rate at which entropy is generated?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
What are you trying to say? When in terminal, type "pgrep rngd" straight away without typing "su" and "seeder"...and did you check, is the script set to run at boot?
[Android Software/Hacking General [Developers Only]] onbeskarakterli:
I made a quick test with this script. I used the command to watch entropy before installing the script. My system was actually "feeding" the entropy with small amount (20-30 increase per second). Then I installed the script and tested again. I wasn't expecting any change, but the "feeding" speed increased enormously. My entropy reaches 3000-4000 values within seconds now. If you ask "have you seen any difference in performance?", I say "I don't know." Maybe slightly.

I am using Galaxy S2 with rooted stock 4.1.2.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
It is a known bug...the seeder is still running...read a few posts before this...

Yes because it is being used and regenerated...
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ok so via adb do:

busybox sysctl -w kernel.random.read_wakeup_threshold=1376
while :; do cat /proc/sys/kernel/random/entropy_avail; sleep 1;done

Watch entropy_avail climb.

Do stuff... browse web pages... whatever... (this actually makes it climb faster)

Does it ever get low?
[Android Software/Hacking General [Developers Only]] manywelps:
I just symlinked urandom to random.... no one's going to attack an android RNG.
[Android Software/Hacking General [Developers Only]] remigo:
After reboot it just puts out "1|u0_a38@android:/$" nothing more

If I type su and seeder it says it's off again

entropy_avail is around 2700-3600 so I guess it could be on even though it says off
[Android Software/Hacking General [Developers Only]] Formhault:
So here I am, erm... chiming in. And here's my two cents on this - this = why lag appears in games when, otherwise, you wouldn't expect.

I have a Galaxy Note (no, not the Note 2 :'( ) with the official MIUI ROM (based on Android 4.0.3, but this hardly matters). The kernel is... well, a custom one (naturally), undervolted, tweaked etc. etc.

Are you familiar with Arcane Legends? You probably are. Well, I'm playing it. The same goes for Pocket Legends, too.

I noticed the game tends to get a little bit laggy (the more appropriate word would be "stuttery", I think), as the frame rate is around 20-25, not >30 as it is on high-end devices (quad core & shtuff).

With the overclocked variant of the kernel (HydraCore, for those interested / savvy), the CPU gets ramped up to 1.6 GHz and the GPU to 400 MHz (initially 1.4 GHz / ~250 MHz). Not even that eliminates (entirely) the overall laggy feel of the gameplay.

What does CPU Spy show after one hour of Arcane Legends gameplay? The 1.4 / 1.6 GHz frequency was rarely used, while the most used frequency was 800 MHz. That's for the CPU, of course. I can't see the frequency history (so-to-say?) for the GPU - at least I know no method of doing such. So... I figured that's the reason for the overall stuttery feel of the game.

Changed the CPU governor from Ondemand to Performance and the difference was BARELY visible - the frame rate was about to same (dare I say, even worse - if that's possible).

----------

I installed this Seeder app (1.0alpha6). Turned it on, activated the auto-enable on boot and rebooted the phone. Everything seems to be as slow (you know what I mean) as before. Can't say the apps are opening faster. Arcane Legends is still stuttery, but it appears to be MUCH LESS THAN BEFORE !
[Android Software/Hacking General [Developers Only]] pepoluan:
Need kernel patches.

That means rngd not working. You do have init.d support, right?

-- Sent from a GT-I8150 running ICS perfectly well. F'U, Sams#!t --
[Android Software/Hacking General [Developers Only]] spottedkangaroo:
Not me. The man page clearly says this just makes process wait for more bits before the wake from sleep while select()/poll() ing. So more than likely it just makes some daemons we see less often sit around not using the entropy or finding it somewhere else. There's no way to increase the entropy without doing ioctl(fh, RNDADDENTROPY, &buffer); that's just the simple facts of it.

If any of this is non-placebo, then the secret is in decreasing lag from reading from character device 1,8 when that's not needed anyway. I think the symlink of urandom or mknod /dev/random 1 9 is really the way to go.

On the other hand, there could be all kinds of undocumented side effects of increasing the read wakeup threshold, I certainly don't know.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Are you sure you have all the files needed? Extract Seeder_v6.zip to find out...cause it is impossible cm10 does not support init.d...
[Android Software/Hacking General [Developers Only]] remigo:
it gave me a number around 4000 before, but I wanted to know if it did the same after reboot, and it gave me that after reboot

But as I editted my previous post (you replied before I editted), the entropy_avail values are pretty steady around 3600 so I guess it's on?
[Android Software/Hacking General [Developers Only]] ms707:
I can't seem to view how much entropy I have using this:

watch -n 1 cat /proc/sys/kernel/random/entropy_avail

It's saying there is no such file or directory

I have a Samsung Exhibit II running cm10
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Wow...the values always go up although the increase slows down after it reaches a high value...and my apps are responding slightly faster (i.e. Switching between webpages, using app switcher)...will continue to monitor on this...;)

Use the entropy_watch binary by zepplinrox or flash Seeder_v6...
[Android Software/Hacking General [Developers Only]] Davidian-SK:
Great!! I really feel difference.. thanks!!

sent from my Nokia 5110
[Android Software/Hacking General [Developers Only]] debork:
I added those two lines to an init.d script (RWUT=1024,WWUT=2048) as you recommended earlier, and I've been watching the entropy_avail value at 0.5s intervals.

Some interesting things I've noted:

NOTHING I've done so far has actually decreased the entropy_avail value. I've tried email, chrome, maps, reddit readers, general android ui...though no games yet.

The ONLY decrease in entropy_avail happens when the buildup of bits reaches the max (3*1024) upon which the pool flushes down to 2048bits.

The entropy bits are written by some hardware sensors, among them most prominently visible are actual screen touches. So when you do things like browse, those touches are feeding bits.

I suppose there might be other inputs, such as radio/orientation, but in so far as that I haven't been able to get the entropy_avail value below the WWUT, I haven't seen those woken up

As such, I feel compelled to believe the Android project guy when he says that this actually isn't an issue > GB. The buildup then flush I noticed may very well be the decrease in entropy bits that people were seeing before, where the default RWUT/WWUT values would bounce the pool from up and down between 128 and 192, giving the illusion that it's actually depleting.

Then again, as I said, I haven't tried any games...which could very well actually use this pool.

Edit: I'm running ICS, rooted stock TouchWiz
[Android Software/Hacking General [Developers Only]] creeve4:
I will have to get back with you on this, currently my Galaxy Nexus is getting repaired... it is really rough not having a decent phone.
[Android Software/Hacking General [Developers Only]] :
How do I make an init.d script to automatically mount urandom to random?

su

mv /dev/random /dev/random_ori; ln -s /dev/urandom /dev/random

Those commands.

Question is: Do init.d scripts have su rights straight from the beginning or not? Do they have to be of a specific kind of filetype? (Like .cfg for example?) Or do I just create a file. Paste the command, reboot it and it gets executed without further ado?

Thanks.
[Android Software/Hacking General [Developers Only]] boomer8403:
Yea, stupid first world problems and such :beer:

Sent from my EVO using Xparent ICS Tapatalk 2
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Init.d scripts do not have file extensions...just leave it blank...name the file anything you want...remember to set permissions to rwxrwxrwx and place in /etc/init.d

Your script should be like this:

#!/system/bin/sh
mv /dev/random /dev/random_ori
ln -s /dev/urandom /dev/random

No need to put "su" in front...take note that the EOL should be in Unix format (use a text editor in android to create this script or Notepad++ for Windows)..
[Android Software/Hacking General [Developers Only]] baberswallet:
please lock this thread
[Android Software/Hacking General [Developers Only]] zeppelinrox:
My gut feeling on it is that increasing read_wakeup_threshold increases entropy_avail

indirectly

due to a little domino effect.

This file contains the number of bits of entropy required for waking up processes that sleep waiting for entropy from /dev/random

So if read_wakeup_threshold is low, readily available entropy can be low to fulfill the need.

But if the requirement is raised, the system automatically raises the entropy so that it will be ready when/if a process wants it.
[Android Software/Hacking General [Developers Only]] creeve4:
Can you explain a bit concerning this, specifically: "random c 1 9" vs "random c 1 8" vs "random 1 9"

Why minor number 9 vs 8?

Did you forget the "c" or was that omitted intentionally?

What are the original parameters for dev/random?

How could this be done with an init script?
[Android Software/Hacking General [Developers Only]] C.K:
I'm trying

It seems it's work for me, I've LG-P500 with Gingerblur. It's about 30-40% faster now.

I'll try for a week, if I notice battery drain I'll post again.

Thanks dude
[Android Software/Hacking General [Developers Only]] redrumsilence:
Gotta be honest, this confuses the nuts off me lol