yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] PIRATA!:
:) thank you very much!

Just a last question: to apply the new build.prob I must reboot twice. Should I reboot the second time after some delay, or can I just hit reboot one I get to the launcher screen after first boot?

I was thinking that it could be correct to wait for the os to load up fully and wait the sdcard mount and scan process to end... Am I correct?

Tnx! ;)

---------- Post added at 10:45 AM ---------- Previous post was at 10:44 AM ----------

That article is dated July 2011...

Any new from there?
[Android Software/Hacking General [Developers Only]] pikachu01:
I'll do it soon. A lot of RL commitments that prevented me to have time to actually sit down and do it. Sorry about that.

The particular SSD controller might not apply to our phones. I'll try to see if I can have a trim script for the screenstate_scaling or trim at boot kind of thing.

You can reboot right after the launcher appears or you can wait. It's just a few seconds right?
[Android Software/Hacking General [Developers Only]] bangmichel:
Karbonn A9?

Any one tried for Karbonn A9? What are the possibilities?
[Android Software/Hacking General [Developers Only]] PIRATA!:
Yes...just wondering if I should wait something particular or what... ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
What's Karbonn A9?
[Android Software/Hacking General [Developers Only]] pikachu01:
Some future plans (Update 1):

- Make sqlite3 binary Jelly Bean compatible (it's not compatible now)

- Make libsqlite Jelly Bean compatible (only have GB version now)

- Probably some specific LMK settings for 512MB RAM/ 1GB RAM/ 2GB RAM phones (not sure yet).

- Fix a bug in zipalign script to avoid Cyanogenmod Gapps (or /system APKs altogether). Also find out why some apps will go missing.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey if you want you can grab a sqlite3 for jelly bean from the supercharger starter kit.

I'm pretty sure it came from CM10 and nobody has reported any issue with it.
[Android Software/Hacking General [Developers Only]] pikachu01:
I was going to get it from there too :P

Actually, there's a workaround for that using the sqlite root updater from Google Play. Though, it can't work well when it fails to access all of the sqlite dbs. I'm working on that now to see why (even using root) no dbs can be accessed.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Weird... what's the error exactly?
[Android Software/Hacking General [Developers Only]] pikachu01:
Getting a string of:

"Error: unable to open database file"
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Well I ran my detailing script and it ran fine.

Then I ran yours and wasn't sure if it was working (i'm used to alot of verbose output lol)

So I killed it and added set -x near the top of your sqlite_optimize and ran it again...

It runs fine too.

CM10 with default sqlite3 binary
[Android Software/Hacking General [Developers Only]] pikachu01:
I know why I'm getting that. I was using the wrong binary. :/

The CM10 binary now works. I'll package it to the ThunderBolt! once I have time. Thanks for the hint!
[Android Software/Hacking General [Developers Only]] GoSooners345:
Good work on this

Sent from Bane's Phone
[Android Software/Hacking General [Developers Only]] pikachu01:
Thanks for the compliments :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
No problem.

Always glad to help with a mod that isn't a butcher job... which is nearly all tweak packs... lol
[Android Software/Hacking General [Developers Only]] bangmichel:
Smart Phone.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Oh I'm sorry..just last question before installing...

Should I first install the main CWM and LMK add-on first making the double reboot for the bold.prop edit, and then run the main CWM scripts....or first install the main CWM package and run its scripts, and only after that go through installing the LMK add-on and go for the double reboot at the end?

Thank you.
[Android Software/Hacking General [Developers Only]] mediro:
where is thunder bolt scripts?

topic is removed?:confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
Both ways are valid.

It's in the first post?
[Android Software/Hacking General [Developers Only]] :
Thanks for your great job and also for your helpful posts here and in many other topics!

Looking forward to your new evolution!! My SGS2 with JB can't wait to be optimized once again by thunderbolt!

Sent from my SGS2 - SlimBean & Siyah Kernel
[Android Software/Hacking General [Developers Only]] PIRATA!:
Ok...I have done this and I get some mount errors in running remounti9000 (my device)

Then I got a self reboot after (or befor end..I don't know) runnign s70darky_zipalign

Then got some sysctl errors in running S98CFS

Is this normal??

I have rebooted my phone after the last script run and it is working...

How can I see if ScriptManager is running at boot those scripts I told him to execute??

Thank you.
[Android Software/Hacking General [Developers Only]] bigErk:
launching the scripts gives me an error "CANNOT LINK EXECUTABLE cannot locate "android reboot"..

the same error when i'm entering "sysctl -a | grep vm" in terminal emulator.

any ideas what's wrong?

thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
What's your phone model and OS?

You might have a busybox issue. Try updating the busybox using stericson's busybox installer.

--------------------------------------------------------------------

TODO:

u0_a152@android:/ $ su
u0_a152@android:/ # mount
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p13 /system ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p3 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p12 /cache ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p16 /data ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,noatime 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.mhuang.overclocking-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/com.diotek.diodict3.phone.btoc.adddict.newace.engkor-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-2 /mnt/asec/com.zeptolab.ctrexperiments.google.paid-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/com.jakyl.spirithd-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/com.zeptolab.ctr.paid-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/com.herocraft.game.farmfrenzy-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/com.keramidas.TitaniumBackupPro-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/com.DefiantDev.SkiSafari-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-8 /mnt/asec/com.realarcade.DOJ-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/vold/179:49 /storage/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-9 /mnt/asec/org.koxx.pure_calendar-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-10 /mnt/asec/org.koxx.pure_grid_calendar-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
u0_a152@android:/ #
[Android Software/Hacking General [Developers Only]] bigErk:
phone is Galaxy S Plus GT-I9001, OS GB 2.3.6 XXKQ7 Stock Rom

thank you I'll try updating busybox
[Android Software/Hacking General [Developers Only]] bigErk:
Now I've just installed thunderbolt succesfully and launched the scripts in scriptmanager,but now my phone doesn't boot up anymore :confused::confused:

whats the reason for this? is it because I have installed adrenaline shot previously?

what to do now?just revert thunderbolt in CWM?

thanks in advance!!
[Android Software/Hacking General [Developers Only]] Starsream88:
Hey pika, you still alive ?? :p When you will release Jelly Bean version of your script ? Thank you
[Android Software/Hacking General [Developers Only]] pikachu01:
It's already compatible. It's just that libsqlite has to be recompiled for the newer version.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
@Pika

Do you know this one? https://www.usenix.org/conference/fast12/fios-fair-efficient-flash-io-scheduler (FIOS)

Or did they rename it to FIOPS afterwards?

Here's also two pdfs about fios:

http://static.usenix.org/event/fast12/tech/full_papers/Park.pdf

http://static.usenix.org/events/fast12/poster_refereed/Parkposter.pdf
[Android Software/Hacking General [Developers Only]] pikachu01:
I think they are unrelated. I don't see any traces of FIOS in the linux kernel discussion.
[Android Software/Hacking General [Developers Only]] theotheoth:
I installed this script-tweak on my phone,I did all the process as the OP described but unfortuantely my phone doesn't boot...I don't think I did something wrong. :( thanks God I had a back up
[Android Software/Hacking General [Developers Only]] .:Crack:.:
By dev:

Dear Crack,

Thank you for your interest in FIOS. We have identified some room for improvement

and have been working on a newer improved scheduler (while inheriting some of the

key principles in FIOS). We plan to release the new scheduler after the code becomes

stable (expected in a couple of months). We will let you know when it happens.
[Android Software/Hacking General [Developers Only]] pikachu01:
Can you describe what you did and what phone/ROM you're using?

Good one. :)
[Android Software/Hacking General [Developers Only]] icu64:
Is there a reason I can't flash the zip on my phone?
[Android Software/Hacking General [Developers Only]] pikachu01:
What phone/ROM are you using and what error are you getting? It's probably an updater_binary issue. You'll need to replace the updater_binary from a working CWM zip to the one's ThunderBolt! is using because your ROM's CWM version is of a lesser version than the one most people are using now.
[Android Software/Hacking General [Developers Only]] Fenvarien:
Thanks Pika for this great tweak, I always used it with my SGS, but now I tried it with Android 4.1.2 on my Galaxy Nexus alongside with Franco.Kernel.

This combination is really awesome and accomplishes high performance and snappyness with a good battery life. :D :good:

I hope you find the time to further develop the Thunderbolt project :)

GNex with franco.Kernel / MiNCO ROM v5
[Android Software/Hacking General [Developers Only]] pikachu01:
Sorry for the late reply, but it's worth the wait ;)

I'll be releasing an update in the next 20mins (19 minutes to write the changelog :P)
[Android Software/Hacking General [Developers Only]] pikachu01:
News

2.8.0 is out! Read the changelog for more info

Changelog:

11/13/2012 (2.8.0 and screenstate_scaling 2.1.1)

- Added VM dirty* values according to the amount of RAM that you have (< 512MB, < 1GB and more than 1 GB). I've tested write speed for the disks on /data on a few phones and come to a conclusion that VM scaling is most optimized depending on total amount of RAM. This is because the I/O can only write that much dirty data up to an amount at an interval so that I/O doesn't become the bottleneck.

- Commented out some shm* tweaks. Will need to make this scale with amount of RAM also, but need floating point arithmetic support for bash in Android phones. No "bc" command!

- Fixed zipalign script that corrupts Google* APKs by removing already aligned APKs in /data/local. Might still be a problem with some APKs like BetterBatteryStats (what I found to be problematic so far).

- Fixed sqlite3 binary for Jelly Bean. The updater_script will check your build.prop and extract the appropriate sqlite3 binary for you

- Minor pegasusq updates in screenstate_scaling and main CWM.

- Some general fixes on the script (settings applying more than once)

- Might not affect >90% of people but I signed the zip files
[Android Software/Hacking General [Developers Only]] melvinaury:
I'll wait for the change log before install.
[Android Software/Hacking General [Developers Only]] Fenvarien:
Great, this was definitely worth the wait! Thx Pika for your continuous updates and improvements :) :good:

GNex with franco.Kernel / MiNCO ROM
[Android Software/Hacking General [Developers Only]] melvinaury:
Pika can you update the Op with the new versions and what files are compatible with JB.

Thanks for you're and knowledge.
[Android Software/Hacking General [Developers Only]] carlos67:
Pika,

How do I go about running just the sqlite_optimise script only? I know your updater script makes some checks before deciding which version of sqlite3 to use. So, how do I know which version to use without installing the whole thunderbolt! script?

I am running Omega v27 with Siyah kernel. No other scripts apart from remount and a lulzactive tweaks script.

Cheers
[Android Software/Hacking General [Developers Only]] pikachu01:
As mentioned, the main CWM, the LMK and screen state is compatible with JB and ICS. In bolt_scripts CFS, zipalign, remount, TCP buffers, ecn, sqlite optimize, drop scripts are compatible with ICS/JB.

Just extract the sqlite3 from the main CWM in system_jb directory.
[Android Software/Hacking General [Developers Only]] neonballroom:
Hi,

Newbie question.I flashed the signed_ThunderBolt-CWM v2.8.0.zip in my xperia mini ST15i, run the script manager,followed the instructions given in the OP but when im going to check if it is working (terminal emulator typing su then sysctl -a| grep vm) the output is:

sh: grep: not found

sh: sysctl: not found

any help on this sir.

thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
You have a busy box problem. Install stericson's busy box installer and install the latest busy box version.
[Android Software/Hacking General [Developers Only]] neonballroom:
Thanks sir. After installing the busybox, what should i do? just run the bolt scripts again?

EDIT:So i run it again and was able to get an output when i check in terminal emulator, but these are the values that i get:

dirty_ratio = 80

dirty_background_ratio = 45

vfs_cache_pressure = 30

Is it working properly?
[Android Software/Hacking General [Developers Only]] pikachu01:
Please reinstall and see if it works. I see that the scripts aren't running for the values you posted.
[Android Software/Hacking General [Developers Only]] neonballroom:
you mean to flash again?and run the bolt scripts?

EDIT:Restore my nandroid backup,install busybox then flash the zip again. I have a problem running the sqlite, the log was "segmentation fault".

Run again on terminal emulator and still i get the same value. Maybe not compatible w/ my xperia mini? Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. The Busy box issue might be preventing you from installing properly
[Android Software/Hacking General [Developers Only]] neonballroom:
EDIT:Restore my nandroid backup,install busybox then flash the zip again. I have a problem running the sqlite, the log was "segmentation fault".

Run again on terminal emulator and still i get the same value. Maybe not compatible w/ my xperia mini? Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
What is your ROM? jelly bean?

Edit: maybe your kernel doesn't automatically run the init.d scripts. Try running all the scripts in init.d with Script Manager.
[Android Software/Hacking General [Developers Only]] zhanjia:
Pikachu.. I just realise your a Malaysian ! Great Job ! Proud of you :D

Can i ask you some questions via pm ?

Sent from my WT19i
[Android Software/Hacking General [Developers Only]] antt00:
Just to report working as expected on note 2. Thanks. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
You can asked it here :) That way, other people can benefit from it too.

Good to know :)
[Android Software/Hacking General [Developers Only]] Mopral:
I flashed main Thunderbolt CWM on my GT-I9300 with JB but each time I try to run sqlite_optimize script, I have a screen full of "CANNOT LINK EXECUTABLE"

If I go to /system/xbin, sqlite3 file is here

Did I miss something?
[Android Software/Hacking General [Developers Only]] pikachu01:
This is weird. The Jelly Bean sqlite3 executable might not be compatible with your ROM. It works on CM10 though.

Try this:

Download the sqlite root installer and install Jelly Bean's sqlite3. Try it out again. I might need to differentiate the AOSP/non-AOSP Jelly Bean sqlite3 if both of them are incompatible with each other.
[Android Software/Hacking General [Developers Only]] Mopral:
You may have an error in your updater-script: I have JB on my phone but your script put the other sqlite3 (the one for GB/ICS) file in /system/xbin

I extract the JB one from your zip and use root explorer to put the file in /system/xbin and now all works fine
[Android Software/Hacking General [Developers Only]] pikachu01:
I think I know why. I need to account for the version 4.2.0 of Jelly Bean as well. You're on 4.2.0 right?

Right now I'm using the version 4.1.1 and 4.1.2 as Jelly Bean compatible. Everything else will use the GB/ICS version.
[Android Software/Hacking General [Developers Only]] Mopral:
Nope!

I am on 4.1.1 stock from samsung
[Android Software/Hacking General [Developers Only]] pikachu01:
This is weird. Can you check your build.prop and check for:

ro.build.version.release

What's the value?
[Android Software/Hacking General [Developers Only]] Mopral:
The value is 4.1.1
[Android Software/Hacking General [Developers Only]] antt00:
Seeing this i also cannot run sqlite_optimize.

I get this:

find: /data: Value too large for defined data type

On note 2 stock rom, JB 4.1.1.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, is there a space in there, or the CWM itself cannot parse the updater_script correctly.

Either way, I cannot reproduce this on both the devices I have (one ICS and another JB) both getting the correct sqlite3 binary for the devices.

Something to do with the busybox version I guess:

https://code.google.com/p/busybox-android/issues/detail?id=1
[Android Software/Hacking General [Developers Only]] Mopral:
Here is my build.prop file that you can check yourself

I flashed your zip with latest CWM Touch 6.0.1.2 and the sqlite3 thing is the only one that goes wrong
[Android Software/Hacking General [Developers Only]] Fenvarien:
Here everything works fine with CM10/4.1.2, sqlite_optimize is running OK too.

GNex with franco.Kernel r298, Busybox 1.20.2-stericson
[Android Software/Hacking General [Developers Only]] antt00:
Yup you are right again. What is wrong with note 2 kernel makers, keep having problem with busybox. :p

Ok the error i get after running the script is

Error: File is encrypted or is not a database

for about 5 times.
[Android Software/Hacking General [Developers Only]] pikachu01:
Checked it out and yes, it is 4.1.1 without any other bells and whistles. At this point, I'm going to point to the CWM Touch as an issue. Can you try using the normal CWM (if it is not too much trouble for you) and see if it extracts the correct sqlite3 binary?

Thanks!

Good to know :)

That's fine. It just tells you that some *.db files aren't in the sqlite3 format and it spews this error and moves on to the next found *.db file.
[Android Software/Hacking General [Developers Only]] carlos67:
Exactly the same here running Omega v32 jb Rom. :(
[Android Software/Hacking General [Developers Only]] zhanjia:
Pikachu :/ i wanna ask private stuff...

Sent from my WT19i
[Android Software/Hacking General [Developers Only]] pikachu01:
Try extracting system_jb/xbin/sqlite3 to your /system/xbin. Also, what is your CWM version?

Please upload your build.prop here and I'll take a look why it is not extracting the correct version.

What kind of private stuff :confused:
[Android Software/Hacking General [Developers Only]] antt00:
This is so freaky and weird. :cyclops:
[Android Software/Hacking General [Developers Only]] theotheoth:
I did that...

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)..

????

PROFIT

and I'm using Samsung Galaxy S II,Resurrection Remix 3.1.2 and Dorinmax kernel.My signature is here ;) I will try again to do it and I'll tell you.

EDIT: Until step 5 all okay but when I do that

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.

I get a bootloop.
[Android Software/Hacking General [Developers Only]] pikachu01:
So when you run the zipalign script, it does it's job then you restarted your phone to a bootloop? Or the moment you ran the script, the phone restarted into a bootloop?
[Android Software/Hacking General [Developers Only]] carlos67:
@Pika, all ok now following your advice. Script runs fine with exit code "0" and not getting the previous errors :good: CWM version is 6.0.1.2 touch recovery.

Thanks mate. :highfive:

btw.......what should the permissions be on the sqlite3 binary?? Mine are set to rwxr-xr-x with groups "0" root/2000 shell. Is this right for a binary??
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, rwx-r-xr-x is good. Any group is fine as you'll be using root to access it.

This proves that CWM touch is screwy since I have two cases of this stemming from CWM touch. It has problems accessing build.prop. You should go back to the dev and ask about it.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Pika,

In some kernel sources I've read commits concerning deadline which tweak writes_starved=4 and fifo_batch=1, what's your opinion on that?
[Android Software/Hacking General [Developers Only]] hkfoolman:
The zipalign just broke all system apps and i need nandriod restore.