yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.2 - 2/5/13 [Performance & Battery Life Mods & Twe

u0_a126@android:/ $ export PATH=/data/local/bin:$PATH
u0_a126@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
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 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
/dev/block/mmcblk0p9 /system ext4 ro,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p7 /cache ext4 rw,nosuid,nodev,noatime,errors=continue,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p1 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p10 /data ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/mmcblk0p4 /mnt/.lfs j4fs rw,relatime 0 0
/dev/block/vold/252:1 /storage/sdcard1 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/259:3 /storage/sdcard0 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 /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.kiloo.subwaysurf-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/com.quoord.tapatalkxda.activity-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
u0_a126@android:/ $
[Android Software/Hacking General [Developers Only]] pikachu01:
It's the same. :) you can use remountI9100.
[Android Software/Hacking General [Developers Only]] pikachu01:
And I just noticed that I've got a donation in my Paypal account.

Thanks to the donater which I will not name if the person doesn't want to (as I assume that the poster didn't post it in my thread to notify me as he/she wants to remain anonymous).

Thank you again :)
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Awesome. Just to note: In the OP it says S98TCpBuffers should be in the CFS folder. Mine was located /etc/bolt_scripts folder

Not sure if you've changed it since the original release or what.
[Android Software/Hacking General [Developers Only]] nikhil16242:
Ok, so i tested libsqlite on my Sense4 (ICS 4.0.3) rom and can confirm it works fine :good: . It really does increase the database i/o benchmark scores by about 20-25%.Thanks again for the excellent work :)
[Android Software/Hacking General [Developers Only]] pikachu01:
That was a typo. Thanks for the find.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
No prob! Also, Just got done reading about the add on's. I'm on BAKED blackbean-7 4.2.1 CM10.1

Tried to flash ThunderBolt-CWM libsqlite JB addon v3.0.1.zip and got Status 7 error.
[Android Software/Hacking General [Developers Only]] pikachu01:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.2 - 2/5/13 [Performance & Battery Life Mods & Twe

Your ROM must be using some custom version specified in the build.prop. can you upload your build.prop and let me see it? I specifically allowed only compatible Android versions to install the libsqlite to prevent people from installing it in the wrong OS.
[Android Software/Hacking General [Developers Only]] Fenvarien:
AW: [MOD][TWEAKS] ThunderBolt! v3.0.2 - 2/5/13 [Performance & Battery Life Mods & Twe

Same status 7 error here with CM 10.1/Leankernel on my GNex

Besides that: Awesome update, great performance :):thumbup:
[Android Software/Hacking General [Developers Only]] pikachu01:
Please upload your build.prop here. I'll take a look at it.
[Android Software/Hacking General [Developers Only]] pikachu01:
If you read the output carefully, did you get this error?

You're applying this tweak on the wrong Android version!

Or is it some other error?
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Yep. That.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
hey Pikachu how come you change your mind concerning writes_starved?

And to lmk: would it be Bad To use superchargers adj but leaving visible At 0x1?
[Android Software/Hacking General [Developers Only]] pikachu01:
This is weird. Your build.prop is the correct version which is 4.2.1.

Using this code:

ifelse(getprop("ro.build.version.release") == "4.2" || getprop("ro.build.version.release") == "4.2.1", ui_print(""), abort("You're applying this tweak on the wrong Android version!"));

should yield the correct output. Not sure why it's not working correctly. :/
[Android Software/Hacking General [Developers Only]] Fenvarien:
AW: [MOD][TWEAKS] ThunderBolt! v3.0.2 - 2/5/13 [Performance & Battery Life Mods & Twe

I get the same output and have build version 4.2.1 in the build.prop.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.2 - 2/5/13 [Performance & Battery Life Mods & Twe

Oh lawdy.. Houston, we have a problem.

=|
[Android Software/Hacking General [Developers Only]] pikachu01:
I did some benchmarks (using dd) and read speeds can be 3-20x faster than write speed depending on the size/mount with /cache being faster than /data.

The scheduler works to queue read and write operations, in which if read operations and write operations arrive at almost the same time, it'll do pre-empt the write operation 4 times then only the write operation is started.

Since read operations are 3-20 times faster, you'll be able to get a read 4 times into the pipeline before the next write can occur (which is a good thing).

Let me illustrate a few examples (take note that I'm using a fifo_batch of 4 and nr_requests of 1024):

writes_starved = 1

Pipeline:
[w][r][w][r] [r][w][r][r] [w][r][r][r]

This operation will perform the the reads and writes at the same order without any pre-emption.

writes_starved = 4

Pipeline:
[w][r][w][r] [r][w][r][r] [w][r][r][r]

Since 4 writes can be starved, the one's in bold will be pre-empted to become this:

Pipeline:
[r][r][w][w] [r][r][r][w] [r][r][r][w]

The reads are placed in front of the queue to be executed first, and since reads are 3-20x faster, we gain no perceivable loss of performance and get the data we want faster rather than waiting for the 3-20x write operation.

Hmm, weirder and weirder. You can edit the updater script to remove the line I've pasted above and try again?
[Android Software/Hacking General [Developers Only]] ggogolewski:
Probably noticed a small mistake. In the file "updater-script" is the command:

ifelse(run_program("/system/bin/sh", "-c", "test -f /system/xbin/zipalign") == 0, ui_print("zipalign exists"),package_extract_dir("system_zipalign", "/system"));));[/B]

It is looking for the file "zipalign" in the directory "/system/xbin/zipalign", and if it does not find it puts the content of the directory "system_zipalign" to the directory "/system"

But in "system_zipalign" is just a file "zipalign" missing subfolder "xbin"

When you run the script "S70darky_zipalign" pops up the message that "/system/xbin/zipalign" does not exist.
[Android Software/Hacking General [Developers Only]] pikachu01:
My mistake. There's suppose to be an xbin directory in the middle.

Thanks for the bug find. I'll push the next version now.
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Fixed zipalign binary extraction to the wrong directory.

Changelog:

2/5/2013

- Fixed zipalign directory to xbin. Thanks to ggogolewski!
[Android Software/Hacking General [Developers Only]] [LwW]Dexter:
hey:) i got this values on terminal emulator

dirty_ratio = 30

dirty_background_ratio = 15

vfs_cache_pressure = 50

but init.d have only S98system_tweak

it's true?
[Android Software/Hacking General [Developers Only]] Fenvarien:
AW: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Yes, that's working ;)

Thanks for all your hard work Pika! :good:
[Android Software/Hacking General [Developers Only]] MustafaHadaKing:
alright here it is

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

let me know if theres any issues
[Android Software/Hacking General [Developers Only]] thewaywardgeek013:
I know it says in the OP libsqlite is not yet compatible for ICS/JB, but why is there an add-on for it? Is it for testers or is it because the OP has not been edited yet?
[Android Software/Hacking General [Developers Only]] pikachu01:
The OP hasn't been edited yet. :P

I've edited it. And yes, I've compiled it for ICS/JB already.
[Android Software/Hacking General [Developers Only]] sherpa25:
Hi pika,

Last used v2.9. Tried installing CWM Main 3.03, then screenstate_scaling 3.0 and LMK 100 3.0 but I notice system/etc/init.d is left blank after rebooting.

Did I miss anything new procedure for installing?

Note: I mount /system after running each zip file mentioned above. I know it ran though, since I now see a system/etc/bolt_backup folder.

Thanks.

(still on I-9000)
[Android Software/Hacking General [Developers Only]] pikachu01:
Do you see /etc/bolt_scripts?

If not, you must've unconsciously intalled the restore pack rather than the main CWM.
[Android Software/Hacking General [Developers Only]] [LwW]Dexter:
is it correct?

sqlite_optimize:
[Android Software/Hacking General [Developers Only]] sherpa25:
Yes, I also have /system/etc/bolt_scripts. To give you an idea of what updated folders I have in /system that are dated Feb 6, 2013:

1. bolt_backup

2. bolt_scripts

3. init.d

4. init.d.ori

but init.d has no content.

PS: I just noticed, inside /system/etc/init.d.ori, there is an init.d subfolder and contains S91supercharger, s98screenstate_scaling, and s98system_tweak. Could these be the 3 new files installed in a wrong folder?

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes :)

Your kernel must have a bootloop detector that moves all scripts in init.d to init.d.ori if you reboot after starting the phone less than 2 minutes.
[Android Software/Hacking General [Developers Only]] sherpa25:
Ok, using Semaphore. I haven't restarted the phone though, except for the reboot after installing the zip files.

Anyway, I just copied the 3 files found in the init.d.ori/init.d folder into the system/etc/init.d folder.

Another thing though. I ran the zipalign, S98CFS and S98TCPBuffers scripts and checked Boot as well. Are these supposed to be placed in the system/etc/init.d afterwards so they'll run at bootup? I checked the folder and didn't find them in there. Only saw the 3 files I copied into it.
[Android Software/Hacking General [Developers Only]] pikachu01:
Not sure about Semaphore's bootloop detector, but init.d.ori is created by Semaphore and the scripts are moved to init.d.ori by Semaphore.

If you've ticked boot, you don't need to move it to init.d. Script Manager will handle it the run at boot.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
OK Thanks, sounds plausible.

What about the second question? :)

i.e. making it:

BACKUP_APP_ADJ=0x7

HEAVY_WEIGHT_APP_ADJ=0x4

HOME_APP_ADJ=0x2

PREVIOUS_APP_ADJ=0x5

VISIBLE_APP_ADJ=0x1

SERVICE_ADJ=0x6

SERVICE_ADJ_REF=0x6
[Android Software/Hacking General [Developers Only]] pikachu01:
I've scoured the code. It is counter-productive to change the ADJ, and even more so in ICS/JB AOSP.

A lot of lowMemory flags as well as LRU calculations work at the most correct-ness when the ADJ are in the default levels.

Please don't ask me to tell Zep this. It'll grow into an all out war. Just accept my explanation based on source code vs. his own method.

Also, my personal opinion is that launcher should be killed before your visible keyboard/pop-up play and music player that's playing in the background. I'm not even sure why you would want to keep your launcher less kill-able than the things you're interacting with currently (listening to music or typing on your keyboard).
[Android Software/Hacking General [Developers Only]] attack11:
hi pika! im tuning my build.prop and i see that the dalvik settings are:

dalvik.vm.heapstartsize=5m

dalvik.vm.heapgrowthlimit=48m

dalvik.vm.heapsize=128m

i have a device with 512 Ram it need to be the heapsize that high? its true that a high valu gives More performance?

what settings you recomend for performance? im on ics

thanks in advance your knowledge its always apreciated
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Hmm also sounds quite plausible.

But changing the minfree is ok? How would you do it correctly?
[Android Software/Hacking General [Developers Only]] pikachu01:
No. You need to understand that the heapsize is declared with the state of current applications in mind. The applications right now (including games) should use only a portion of RAM compared to x86 applications. The heapsize is basically the amount of raw memory the application can occupy before GC (garbage collection) kicks in.

The heapgrowthlimit is set as such as most apps don't need to occupy that much of RAM. Do note that apps will load as much application memory to the RAM no matter the limit if there's no limit. However, the OS is not only running 1 application at a time, hence there must be a limit to it.

The heapsize vs heapgrowthlimit is different only that if a flag is set, an app can ocuppy up to the maximum of heapsize. Your heapsize is 128M which is respectable by any means and don't need to be changed.

If your device can support a game, the number of pixels (usually 360p or 720p) doesn't really require more than 128M to buffer the next few seconds.

This 128M limit however will change will time/device. Some HD devices that can play HD games (1080p) would require more than 128M. I have not seen a game that makes true rendering of 1080p yet as that would pigeon-hole the market to only a few devices.

And no, a normal app doesn't need more than 48M of RAM. Having more than that is just ridiculous for a mobile app.

High value isn't equal to higher performance. If you allocate more RAM than what the operating system needs to handle smoothly, you'll get lags. I.e. if you allocate 256MB of RAM when your device actual available memory is 380MB, your OS is left only to the remaining ~120MB of RAM. If a lot of other apps like widgets, messenger apps, launcher takes some RAM from the 120MB? How much left is for your kernel/framework?

Changing the minfree without changing the Android LMK is basically a half-baked LMK.

In ICS/JB AOSP, you can't change the minfree without hacking the services.jar.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
i.e. dont change anything concerning LMK/ADJ?
[Android Software/Hacking General [Developers Only]] pikachu01:
Don't change ADJ. LMK can still be changed using the hacked services.jar, however the stock values itself on ICS/JB seems pretty reasonable.
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Pickachu..what should I do since I can't use the lmk add on??:confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
What do you mean? I don't understand?

What ROM are you on?
[Android Software/Hacking General [Developers Only]] mlover520:
thx.this is very useful to costum my own rom.
[Android Software/Hacking General [Developers Only]] pukhrajsoni:
doesn't work on sola??
[Android Software/Hacking General [Developers Only]] pikachu01:
Does your phone fulfill the minimum requirements on the first post?
[Android Software/Hacking General [Developers Only]] OmegaBlaze:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Never mind . I switched Roms and now everything is working fine. Do you recommend using the seeder app with your tweaks?
[Android Software/Hacking General [Developers Only]] Alberto96:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Libsqlite ICS patch isnt working on armv6 devices. I tried it on my cm9 test build for u8160, and crashes. Maybe you should compile also an armv6 version.
[Android Software/Hacking General [Developers Only]] pikachu01:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Yeah, I'll need to find time to do that though. Thanks for the heads up.
[Android Software/Hacking General [Developers Only]] pulak861:
pika a little help here... is this init.d d tweak compatible with ur thunderbolt tweaks or will it conflict?? (it came with the overclocked kernel that i use)

#!/system/bin/sh

# enable kernel same page merging
KSM=`cat /sys/kernel/mm/ksm/run`
if [ ! "$KSM" = "1" ]; then
echo 1 > /sys/kernel/mm/ksm/run
fi

exit 0

And this one also. ( i get a feelings that this one will conflict)

#!/system/bin/sh

# tweak lowmemorykiller
MINFREE=`cat /sys/module/lowmemorykiller/parameters/minfree`
if [ ! "$MINFREE" = "1536,2048,4096,5120,15360,23040" ]; then
echo "1536,2048,4096,5120,15360,23040" >/sys/module/lowmemorykiller/parameters/minfree
fi

# start crond
CROND=`which crond`
$CROND -b -S -c /system/etc/cron.d/crontabs

exit 0

thanx.... and ur tweaks work for xperia sola.... i featured it in my roms for sola...

also after the last release i got only one thing for u - U r your only competition now... nothing matches thunderbolt tweaks.. :D

carry on the beautiful work..
[Android Software/Hacking General [Developers Only]] pikachu01:
No. Seeder/Entropy tweaks are just placebo.

I've done some research on it here and here.

The lowmemorykiller tweaks aren't compatible with ThunderBolt! LMK. Also, you can't only tweak the Linux LMK without tweaking the Android LMK, if not it'll result in a half-baked LMK.

All the others (activating kernel same-page merging and activating cron daemon) is ok.
[Android Software/Hacking General [Developers Only]] crossfire77:
hey man will this scripts work on my wildfire s (android :2.3.5,stock rom,sense 2.1)?

i am new to this scripts so dont know much.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes if you are rooted and have the ability to flash CWM zips. Refer to the first post for the minimum requirements :)
[Android Software/Hacking General [Developers Only]] crossfire77:
yeah minimum requirements matched i have android 2.3.5 and also rom with init.d support.and also my system partition has 80 MB space left :D

but can you please explain a little about these scripts?like what they do? and all.i read OP but little confuse so your help would be appreciated.
[Android Software/Hacking General [Developers Only]] pikachu01:
Everything is in the OP. Tell me which line got you confused and I'll explain it a bit more. Trying to explain everything to the most simplest explanation would be copying the OP itself and pasting it here.
[Android Software/Hacking General [Developers Only]] crossfire77:
okay i read OP.i downloaded main script plus one add-on.

1)signed thunderbolt.zip

2)screenstate_scaling.zip

so i have to flash two files step by step.i read instructions that i have to use script manager to active these all scripts right?but its only for one time right?or i need to do script manager step all the time when i reboot my phone?

now,i read screenstate_scaling help me for better battery but i have stock kernel so it ll be compitable with it?i have init.d support in rom.

and secondly what is main thunderbolt.zip do?i read all other add-ons but what is main zip do?
[Android Software/Hacking General [Developers Only]] pikachu01:
1. Script manager - Only once

2. Screenstate_scaling is compatible with GB.

3. Main CWM is ThunderBolt! 3.03. It has governor, I/O, VM and a few other tweaks for better performance/battery life.
[Android Software/Hacking General [Developers Only]] crossfire77:
okay thanks alot man i ll let you know about performance after flashing.

---------- Post added at 09:59 PM ---------- Previous post was at 09:49 PM ----------

EDIT: when i trying to install main thunderbolt zip by cwm recovery.its give me error.(status 0) any solution?

zip has following files:

system

system_gbics

system_jb

system_zipalign

tools

so should i removed some files?because my phone has only /system.
[Android Software/Hacking General [Developers Only]] pikachu01:
Re: [MOD][TWEAKS] ThunderBolt! v3.0.3 - 2/5/13 [Performance & Battery Life Mods & Twe

Replace the updater_binary in META_INF folder with another CWM zip that you have that works for you. This is due to you using an older CWM version for your phone.
[Android Software/Hacking General [Developers Only]] crossfire77:
i do as you said.still no luck:( gives me error new error this time: (bad)

EDIT:

thunderbolt main zip has following files:

system

system_gbics

system_jb

system_zipalign

tools

but my rom has only /system folder so i can do one thing:

keep only system file and i am using GB rom so i copy lib and xbin from system_gbics and paste to system>xbin and lib.

then from system_zipalign copy zipalign and paste to system>xbin

but what about tools folder because i dont have that in rom,but i have busybox installed so it ll work on that one?
[Android Software/Hacking General [Developers Only]] pikachu01:
I'm guessing the advance feature of the updater_script (smart checking) isn't compatible with your CWM version.

Yes, extract system, system_zipalign and system_gbics to your /system. The /tools folder is just something that only facilitates the CWM zip installation. Don't need to be extracted.
[Android Software/Hacking General [Developers Only]] crossfire77:
okay i got it.

Instructions

Copy the CWM zip and all the addons you need to your sdcard (internal or external, as long as CWM can access it).

Install using CWM all the CWM zips without needing a reboot in between

Wait for bootup

Open up Script Manager and launch /etc/bolt_scripts/remount[device] (e.g. remounti9000) as Root (The skull icon) and as Boot (The wheel icon).

Open up Script Manager and launch /etc/bolt_scripts/sqlite_optimize as Root (The skull icon). This script can be used arbitrarily at anytime that you want. Don't load it as boot or copy it to init.d though, it'll significantly slow down your boot up as the script is a very long running script.

Open up Script Manager and launch /etc/bolt_scripts/s70darky_zipalign as Root (The skull icon). This script can be used arbitrarily at anytime that you want. You can copy it to init.d and setting its permission to rwx-rwx-rwx. I moved it to bolt_scripts so that first boot for some people won't be slowed down.

Open up Script Manager and launch /etc/bolt_scripts/CFS/S98CFS as Root (The skull icon) and as Boot (The wheel icon)..

Open up Script Manager and launch /etc/bolt_scripts/S98TCPbuffers as Root (The skull icon) and as Boot (The wheel icon)..

????

PROFIT

so in this instructions,i see some of scripts i needed to be executed with script manager and what for others? do i need to exectute each and every script or just ones which describes in this instuctions?

and yeah you have remount script included in main zip.but my kernel isnt compitable with ext4 file system so can i remove that script from main zip?

and also in this sqlite script you said execute it once a week so can i set that time with tasker?

okay now second one i downlaoded screen_state scaling zip so do i need to execute it with script manager?

and last question,if i want to add these all scripts while making rom,then compulsary i need to execute all after first boot or is there any way that they ll execute by self?