yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, if your device is rooted, supports init.d and can install CWM zips through the recovery.

Try the main CWM zip (ThunderBolt! v2.9.3). Please read the first post and let me know which part you don't understand :)

I've made some thorough investigations of this. Let me summarize in these few key points.

- /dev/random and /dev/urandom is only used by SSH connections or apps that reply on randomness for security purposes (like random password generators) or to generate UUIDs for hardware/software constructs.

- The Seeder APK is running rngd that wakes up the phone and cranks the CPU to fill up the entropy. One thing to note, the action of just checking entropy_avail will drain the entropy.

- The read_wakeup_threshold will only affect apps that require the use of /dev/random. Setting it higher will make apps less likely to wake up earlier as the kernel tries to fill up the entropy (when there entropy level is low).

- The write_wakeup_threshold will only affect seeders or daemons that try to write to /dev/random, in that they will allow those daemons to write to /dev/random if the entropy is below 4096 (the default value). It does nothing for normal purposes.

- If you want to experience disabling the blocking from /dev/random, you could just do these command in Terminal Emulator after getting root:

su
rm /dev/random
ln -s /dev/urandom /dev/random

This is equivalent to redirecting all apps (SSH or password generators) to use /dev/urandom rather than /dev/random. /dev/urandom is non-blocking as it doesn't block apps (and send them to sleep while waiting for the entropy to fill up). It'll just get any available random number from /dev/urandom.

Do you see any boost? I tried and I didn't get any boost from this.

- haveged is another daemon (similar to rngd) that uses the HAVEGE. It's just another rngd that feeds /dev/random with random values at an interval that wakes up your phone thus draining battery.

- Just in case, I ran an lsof and got /dev/urandom on the processes that use them. Don't think there are any that uses /dev/random.

- Conclusion: You're just draining battery while waking up your phone.

I'd appreciate it if you spread my key points to the people who don't understand what they're doing.
[Android Software/Hacking General [Developers Only]] DjStrom:
I having problems to execute S70darky_zipalign, shows this the Script Manager: View attachment 1697622

Thanks in advance
[Android Software/Hacking General [Developers Only]] pikachu01:
You have a busybox issue. Install stericson's busybox from Google Play and install the busybox binary.
[Android Software/Hacking General [Developers Only]] Achilles.:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v2.9.3 - 1/6/13 [Ultra Performance & Battery Life!

I hav all d things reqd.I flashed d zip bt aftr dat Im supposed to set a script using a scriptmanager so my doubt is which script shud I use?!
[Android Software/Hacking General [Developers Only]] dark_knight35:
AW: [SCRIPTS][TWEAKS] ThunderBolt! v2.9.3 - 1/6/13 [Ultra Performance & Battery Life!

Thanks for the answer pikachu, I will tell the unknowing.
[Android Software/Hacking General [Developers Only]] jason_is_addicted:
Does this work on Galaxy Note II N7100 rooted?
[Android Software/Hacking General [Developers Only]] pikachu01:
For the remount, I would need to create a specific one for your device. Please provide the output of

mount

in Terminal Emulator. I'll make you a new one :)

Good! Thanks!

If it supports init.d as well as flashing a CWM zip through recovery, yes. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Some things I'm testing:

- Intelligent backup for system files that are modified by ThunderBolt! with an intelligent restore CWM that restores files selectively. You only need 1 restore CWM to restore anything in any OS.

- libsqlite addon won't install in ICS/JB. It will warn you if you're installing on the wrong OS.

- LMK addon that backs up the build.prop (or restores the build.prop before modifying it). Hence now you can change LMK settings without doing any build.prop modification/moving/copying. The CWM takes care of it for you.

Will release it in a couple of hours. ;)

It'll be known as ThunderBolt! 3.0!
[Android Software/Hacking General [Developers Only]] pikachu01:
And another new feature:

- Main CWM is smart enough not to replace zipalign and sqlite3 if it's already in your ROM. My policy is "try not to mess around too much as I will tweak only in the right places". :)

It's all thanks to Tungstwenty's post here:

http://xdaforums.com/showthread.php?t=1375272

I implemented some smart checks in ThunderBolt! CWM. :)
[Android Software/Hacking General [Developers Only]] tcuwolf:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v2.9.3 - 1/6/13 [Ultra Performance & Battery Life!

Screen shots before and after thunderbolt
[Android Software/Hacking General [Developers Only]] pikachu01:
I don't understand :(
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Revamped ThunderBolt!'s installation system with smart backup/restore and a restore CWM that reverts ThunderBolt!. Also added 80MB ALT LMK that is based off of AOSP ICS LMK. (Recommended only for >512MB RAM devices)

Changelog:

2/3/2013

- Added an intelligent backup/restore updater_script on every CWM zip ThunderBolt! has. Thanks to Tungstwenty for his post here.

- Added a restore CWM zip that restores the backup and deletes Thunderbolt!.

- libsqlite addon won't install in ICS/JB. It will warn you if you're installing on the wrong OS.

- LMK addon now backs up the build.prop (or restores the build.prop before modifying it). Hence now you can change LMK settings without doing any build.prop modification/moving/copying. The CWM takes care of it for you.

- Main CWM is smart enough not to replace zipalign and sqlite3 if it's already in your ROM. My policy is "try not to mess around too much as I will tweak only in the right places".

- Added LMK 80MB Alt that follows AOSP ICS LMK for 512MB devices and above.
[Android Software/Hacking General [Developers Only]] Achilles.:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v2.9.3 - 1/6/13 [Ultra Performance & Battery Life!

Output of mount in TE

app_164@android:/ $ mount

rootfs / rootfs ro,relatime 0 0

tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

tmpfs /dev/shm tmpfs rw,relatime,mode=755,gid=1000 0 0

/dev/block/mmcblk0p10 /system ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p11 /data ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk0p12 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p6 /modemfs ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p8 /data/idd ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=0,data=ordered 0 0

/dev/block/vold/179:14 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:14 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

/dev/block/dm-0 /mnt/asec/com.kiloo.subwaysurf-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

---------- Post added at 09:49 AM ---------- Previous post was at 09:44 AM ----------

He is asking for sum screen shots of sum benchmarking tools so as test d results of d script..
[Android Software/Hacking General [Developers Only]] eddydc1:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.0 - 2/3/13 [Ultra Performance & Battery Life!

Does those new 3.0 restore zips work on every device?
[Android Software/Hacking General [Developers Only]] pikachu01:
I'll make a Sony Xperia U mount in the next release :)

As for benchmarks, I can provide my current ones on my Galaxy S2 and Galaxy S. I need time though.

However, there's one more pressing issue regarding benchmarks. I don't believe in them.

The problem with benchmarks is that I can manufacture results which can improve benchmarks, but it does nothing to your user experience.

I can post some benchmarks if it strokes someone's ep*nis though.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. It should work on every device. If it doesn't, please let me know. I've made them to be as general and accommodative as possible.
[Android Software/Hacking General [Developers Only]] pikachu01:
I forgot to mention one thing. You should manually revert your build.prop from build.prop.thunderbolt before proceeding to install the new LMK.

If you've already installed it, no worries. Just use the Restore CWM, then proceed to manually revert your build.prop.

After that reflash.
[Android Software/Hacking General [Developers Only]] Achilles.:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.0 - 2/3/13 [Ultra Performance & Battery Life!

Waiting for d release..!!!

:)
[Android Software/Hacking General [Developers Only]] octolith:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.0 - 2/3/13 [Ultra Performance & Battery Life!

I'm asking this to make sure I understood what you wrote. :) Can I use this alternative 80 MB LMK on CyanogenMod 10.1? Or AOSP ROMs still can't have a proper LMK.
[Android Software/Hacking General [Developers Only]] pikachu01:
No, AOSP/CM10.1 still can't have a hacked LMK as how it is implemented is all done in the ActivityManagerServices.

I did the 80MB ALT as I've extracted some of the values from AOSP to be applied to stock ICS.
[Android Software/Hacking General [Developers Only]] pikachu01:
Found a pretty informative site that lists some common mistake people make when making build.prop tweaks:

http://www.jeffmixon.com/examining-build-prop-tweaks-for-android-ics-a-comprehensive-guide-part-1/

http://www.jeffmixon.com/examining-build-prop-tweaks-android-ics-comprehensive-guide-part-2/

Recommended read.
[Android Software/Hacking General [Developers Only]] vesper007:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.0 - 2/3/13 [Ultra Performance & Battery Life!

Yeah it's pretty useful and well written. Discovered it some time ago. Helped me figure out what heap size and dexopt flags do.
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Added Sony Xperia U remount. Changed windowsmgr.max_events_per_sec to 90.

Changelog:

2/3/2013

- Added Sony Xperia U remount.

- Changed windowsmgr.max_events_per_sec to 90.
[Android Software/Hacking General [Developers Only]] Spex:
you can see almost all build.prop tweaks here :)

http://xdaforums.com/showthread.php?t=2069238

i commented tweaks which dont work
[Android Software/Hacking General [Developers Only]] attack11:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life!

Hi pika,great script! Thanks a lot!

Just a few questions,how i can use cron from busybox to make drop caches after a few hours?its posible?

Also the io tweaks,I have also in sys/block some "loop" and "ram" folders its ok if i also add to the script?

And the last question the values from

vm.dirty_background_ratio and vm.dirty_ratio i see in others scripts values more "big" for performance what you recomend?

Thanks!
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Already know it for a pretty long time :P
[Android Software/Hacking General [Developers Only]] dark_knight35:
AW: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life!

+1 :D
[Android Software/Hacking General [Developers Only]] pikachu01:
It's possible to do that using Script Manager cron job:

https://sites.google.com/site/devwom/script-manager#TOC-Scheduler-screen

Actually, you should let your phone handle the cache flushing rather than manually flushing it, unless you're doing it at one point where you want to free up some memory.

Caches exist for the reason to make things already running run faster. :)

If you flush the cache without considering which of them is LRU, some already running apps would take some time to rebuild the cache again.

Though, doing it once a day is fine I suppose.

About the loop and ram, I'll add it to the script in the next iteration. :)

The dirty_background_ratio and dirty_ratio depends on the size of your RAM, as it is directly proportionate to it.

From that, I calculate the average speed of clearing chunks of 100KB - 10MB per second and I averaged it to it being around 1-10MB/s.

Having that, the uncommitted memory in RAM (dirty_expire_centisecs) expires every 60 seconds (as I've set it). Having it around 60*<average_speed> should be the most effective value.

Putting a value too big means directly after a chunk of uncommited memory expires, the I/O will try to flush it back to the disk causing the scheduler to block some transactions to make sure the every expired dirty memory gets committed.
[Android Software/Hacking General [Developers Only]] grzesdroid:
Odp: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life

how can I add your script to the Rom? I just created a Rom and really want to add a thunderbolt

SGS III / GMB 1.0 / perseus 32.1 / JKay deluxe framework 14.9 / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] pikachu01:
Which part of ThunderBolt!? You can use it by just extracting the /system part of each zip.

Make sure to read what each of the script does as well as special instructions to have them running.

Let me know which part you're stuck at.
[Android Software/Hacking General [Developers Only]] grzesdroid:
Odp: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life

I want to add thunderbolt 3.0.1, but you write that I have to use a script manager to complete the setup. how to install the CWM's all good works, but I wonder how to do to not have to use a script manager. just move all the files to the system?

SGS III / GMB 1.0 / perseus 32.1 / JKay deluxe framework 14.9 / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] pikachu01:
No. You shouldn't move all files to init.d.

There are reasons on why you should use Script Manager instead.

If you don't want to use Script Manager, you can probably just move s98system_tweak and s98screenstate_scaling in. All the others would need Script Manager for one reason or another. Some like S98TCPbuffers and S98CFS can be moved in without problems if you want to enable them.
[Android Software/Hacking General [Developers Only]] grzesdroid:
Odp: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life

ok thank you

SGS III / GMB 1.0 / perseus 32.1 / JKay deluxe framework 14.9 / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] pikachu01:
Finished compiling libsqlite that has sync disabled for ICS. Will make one for JB later. Will begin testing it now. :)

Maybe a few hours (or a day?) as it's bedtime now.
[Android Software/Hacking General [Developers Only]] pikachu01:
Got a 10-20% sqlite speed increase after applying it in my JB and ICS phone. I will publish it tomorrow.

Take note that disabling sync in sqlite basically makes it more susceptible to corruption when you have a power loss/sudden reboots/crashes.

There's one more thing though. I would like to rename the tweaks to something else.

Something like a breath of fresh air. Appreciate any ideas you guys have and I'll incorporate it if I like it enough ;)
[Android Software/Hacking General [Developers Only]] neoyoli:
v6

Hi Pika,

I just flashed Thunderbolt main zip and I'm using full V6 SuperCharger with MinFrees and lmk and the other tweaks. Could you give me instructions which scripts to enable and how (skull only or skulll and boot) and which to delete?

Many thanks:)
[Android Software/Hacking General [Developers Only]] MustafaHadaKing:
sorry if i missed this.

can i use this in my rom ( droid DNA)

will give you credit for it

also the dna is quad core with 2gigs, will this script help

thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
What other tweaks? There are some incompatible ones that won't work well with ThunderBolt!.

What OS/Phone are you on?

Yeah. Link me to the thread when you're done :)
[Android Software/Hacking General [Developers Only]] neoyoli:
I'm on HTC Desire C, Nameless ROM. I'm using all the SuperCharger tweaks like sd card tweaks, fix alignment and engine flush scheduled, nitrolag nullifier, but not the kickass kerneliser. Also have Seeder scripts installed.
[Android Software/Hacking General [Developers Only]] pikachu01:
Re: [SCRIPTS][TWEAKS] ThunderBolt! v3.0.1 - 2/3/13 [Ultra Performance & Battery Life!

You should remove all tweaks except the LMK as they will clash with ThunderBolt!'s.
[Android Software/Hacking General [Developers Only]] [LwW]Dexter:
i can't install

i'm flashing cwm and open script manager , run this script but have error ;

ignore the database disk image is malformed error

ignore the no such collation sequence error

sorry for my english
[Android Software/Hacking General [Developers Only]] pikachu01:
Those are not errors. Those are text that I've printed on the screen asking users to ignore those errors if they popup :)
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Added ICS and JB libsqlite. Around 10-20% faster sqlite transactions by disabling sync. Take note that the risk of corruption on power loss increases by a little bit by this.

Added loop* and ram* blocks to be modified by ThunderBolt!'s I/O tweaks. Changed writes_starved to 4.

Changelog:

2/5/2013

- Added SQLITE_NO_SYNC compiled libsqlite libraries that disables sync (fdatasync/fsync) which increases sqlite transactions by 10-20%. You can use RL Benchmark to test for this.

- Added loop* and ram* block to be tweaked by ThunderBolt!'s I/O tweaks.

- Changed write_starved to 4.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Awesome. Quick question. Will your tweaks affect: http://xdaforums.com/showthread.php?t=1975379 or http://xdaforums.com/showthread.php?t=2076101 <----- Deals with drop cache & stuff ..

I'm using both of these and getting great scores on Antutu. (Stock 9700. With tweaks- 10222)
[Android Software/Hacking General [Developers Only]] pikachu01:
For LENAROX's script, here's my comment on it:

http://xdaforums.com/showpost.php?p=37573807&postcount=958

As for the other script, I can see that it's a mashup of scripts (some which don't even work correctly like this one):

#!/system/bin/sh

tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data

Firstly, there's no /block/path/to/system (or whatsoever). It's a block path that the dev need to modify according to the device. That's why the words seem like plain English. Secondly, this can only be done in recovery where the partitions aren't mounted. Cannot be done in init.d

Both scripts conflict with ThunderBolt! and should be removed.

Also, I'm not an advocate of benchmarks and fooling benchmarks can be easily done with a few ways (which apparently might reduce your phone performance) but my S2's Antutu Benchmark score hovers around ~10300, though not that it matters. The performance and battery life is what's matter.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Wow...Thanks for replying so quick and going into great detail on both tweaks. You really know your stuff!!

I'm about to remove both now.

As for benchmarks, what should be used as an alternative? I like to try out all up and coming tweaks, roms, etc and have no real way of knowing if they have an impact. Getting placebo'd can get really frustrating:(.
[Android Software/Hacking General [Developers Only]] pikachu01:
There are a few ways I detect performance improvements. I'm not saying Antutu benchmark is all bad.

The CPU/Graphics benchmarks serves it's purpose in Antutu, though you need to refer to the CPU/Bus frequencies being used in that particular benchmarks. Higher CPU/Bus frequencies will in turn produce higher benchmarks.

Disk benchmarks that I trust in is "dd". A pretty good explanation is here.

Sqlite benchmark, I refer to RL benchmark.

Battery life benchmarks, I refer to BetterBatteryStats.

The final thing about benchmarks is that you should use performance governor to benchamark. The 10300 score wasn't using performance governor though as I was lazy to change it after I did it. :/
[Android Software/Hacking General [Developers Only]] pikachu01:
I forgot to mention this:

Take note that the risk of corruption on power loss increases by a little bit by using the libsqlite mod.
[Android Software/Hacking General [Developers Only]] nikhil16242:
Hey pika, thank you for all the hard work you have put into developing these scripts :highfive:

I wanted to clarify one thing before i flash the libsqlite mod, will it work on a sense4 based rom?
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Uh oh*

So as long as i don't have any hard resets i should be okay? Soft?
[Android Software/Hacking General [Developers Only]] pikachu01:
Actually, I've only tested in Cyanogenmod 10.1 and Stock ICS Samsung ROM. There is a chance for it to fail, hence you should have a nandroid backup (the restore pack will also restore your original libsqlite) just in case.

Soft reset (as in you powering off the phone) is fine. Hard reset like sudden hangs and/or sudden power loss has a risk of causing sqlite database corruption.

Even if you have a sqlite database corruption, it's fine as you can clear the data of the app that its database corrupted.

It's similar to the remount script that disables the mount barriers. The risk although it's there, it's minimal.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
I'm currently flashing the script. Should i use remount9100 since i have an Epic 4g Touch (Sprint S2)?
[Android Software/Hacking General [Developers Only]] pikachu01:
It should be the same. Just in case, can you give me the output of this in Terminal Emulator?

mount