yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] goodolsen:
All 3 lib files or just the 2 libsql?

Sent from Mister Red
[Android Software/Hacking General [Developers Only]] pikachu01:
Just the two libsql* files. Don't flash the libsqlite addon and you're good to go.

Help me test if without the libsqlite addon, you will still get the closes on Messaging etc.

Thanks!
[Android Software/Hacking General [Developers Only]] goodolsen:
Ok, reflashed without doing the lib files and I can add a picture again from camera. Won't know better about mms closing until tomorrow though...don't get many overnight.

Sent from Mister Red
[Android Software/Hacking General [Developers Only]] flolep:
Well I have all the tweaks on (and libsqlite since a long time ago, even before thunderbolt tweaks) and never had any corruption or problems reported here and there. I tried just now to take a picture with camera, attach to a mms (with compression and all) and send it without any problem, and took another one to share directly on my facebook, no problem neither, very smooth, go back to xda, and then now I received my mms, open it in quickpick, no force close, switching between apps easily and smoothly... I don't think that I could have done all this so smoothly without sqllite lib...

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] oserx:
I'm using libsqlite from the page i showed you and it's working like a charm. No problems or errors at all. Why don't you try that version ? The author of original libsqlite changed more in his sources than you wrote you did.

regarding screenscale whatever is it called - i'm not sure that is really a battery saving method as it's running non-stop in a continuos loop.. i don't remember very well the sources, but you can take away of the loop awake_state and the other vars you assume every time the do while loops. you cqn gain precious time - just my opinion. My mind tells me that this should be best implemented in kernel, when the phone wakes it switches to ondemand gov, when sleeping switch to powersave. running as a script for sure it consumes time and keeps the cpu busy.

in standby, the phone is not so battery hungry..so only when a realproblem appear configuration and the cpu is busy, the solution is to look for that particular problem
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika Pika, for my own experiment, I had just flash the i9000 restore CMW.zip, and flash in ThunderBolt-CWM i9000 v1.7 Beta Talon.zip (without flash any add on)... I want to see what will be the level of performance with this setup. (Again, this is for my own experiment, in previous beta version there is no issue to me)

Edit: With this setup, QD score is -325 from previous. And the I/O database writes speed is slower. But still smooth in scrolling and Angry Bird games.... will observe the battery life from here.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, corruption is pretty random for some people. I've only encountered it once when my Go Launcher home screen got reset.

I've seen it. It basically removed the fsync code struct and also removes the safety level, which IMHO an overkill. Just specifying the safety_level to be 1 already gets the job done. Overall, the code I modified is the official fsync-disable method while the other one is not (not sure where the original source comes from).

The screenstate_scaling is battery saving because of this:

cat /sys/power/wait_for_fb_wake

When you do this, the script basically sleeps until the screen is awake. In other words, the script hangs there for an indefinite amount of time until the screen is awake. Go ahead and try this out in ADB :) Your ADB will hang there until the screen is awake.

And yes, this should be implemented in the kernel at best.

Yes, not using the patched libsqlite* files will reduce Quadrant a bit as the database writes are slower.
[Android Software/Hacking General [Developers Only]] oserx:
Ok it waits until cat answers... but when the phone is awake it runs like crazy ? i'm in the car right now ... cannot check.. i'm just asking... :d
[Android Software/Hacking General [Developers Only]] pikachu01:
When the phone is awake, it waits for this instead:

cat /sys/power/wait_for_fb_sleep

When you do this, the script hangs until the screen is off :)
[Android Software/Hacking General [Developers Only]] NickDunn:
so i should flash the restore then flash again the rest except libs. right?
[Android Software/Hacking General [Developers Only]] oserx:
Cool.. didn't know..
[Android Software/Hacking General [Developers Only]] Ashtrix:
Umm well, does this work for Tegrak Build 27 too..:confused:??
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. :)

It should work. Be sure to have a nandroid backup handy before trying it out though :)
[Android Software/Hacking General [Developers Only]] oserx:
Bad post.. I'll check later
[Android Software/Hacking General [Developers Only]] pikachu01:
I'm not seeing this at all. Running OS monitor and (Android Terminal + ADB terminal). The script is running under /system/bin/sh having 0% load and I see a cat process as well that is also having 0% load.

You must be seeing some other process accessing busybox.

Man, if a simple script cat script can consume the most load in an Android device, something must be very wrong with Linux :P
[Android Software/Hacking General [Developers Only]] wingg:
Hi.

I use all 3 lib: files 2 from Thunderbolt 1.6 and 1 from 1.7 and separately new Supercharger v.9 beta, and all works great.

Script 3G also.

Thanks.

Sent from my GT-I9000 JVT deodex Semaphore 1.8 (on1,3Ghz)Antutu3633
[Android Software/Hacking General [Developers Only]] Rebel2k:
My new feedback about 1.7 : no good news over there. I faced two freeze, one when I hung up a call and another one when the phone was ringing! It rang for minutes, and then I had to reset it, and I missed the call (of course!).

Moreover, still faced one or two autoclose on GoSMS. I've reverted back all changes of Thunderbolt at the moment until next version to test, cause I really need not to miss my calls. Hope a solution will be found! Keep the good work Pika! :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Try not to use the libsqlite addon and see if you're still facing the problem? :)
[Android Software/Hacking General [Developers Only]] Rebel2k:
I wasn't using the libsqlite add-on. When I flashed the 1.7 I first restored everything (and cleaned correctly the system) and then flashed only the main archive...
[Android Software/Hacking General [Developers Only]] dirn1111:
Sorry but,I think i am not using this..

no offence I just write this as a feedback

Battery drains faster and the speed it improves is not that satisfiable.

but question,will restore cwm also undo 3g addon ?
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmmm, that's weird then. I guess I'll need to tweak the LMK/OOM again to pre 1.6 values :/

Did you remove the use of libsqlite* addons and have at least a few charge cycles before making that conclusion?

Battery use is fine for me.

50 mins of display time
10 1/2 hours on battery
79% left.

I'd expect mine to last 1 day and 12 hours with around 4 hours of display time.

This is with 2G (not 3G as 3G is really a battery hog) and wifi on all the time.

And yes, it will remove the 3G addon.
[Android Software/Hacking General [Developers Only]] eliteforce:
I can report that i too dont have any lags
[Android Software/Hacking General [Developers Only]] Ashtrix:
Thnx for the info..then ill be flashing thunderbolt :D:D ..!
[Android Software/Hacking General [Developers Only]] miguelm75:
pikachu01, if i use this ROM: http://xdaforums.com/showthread.php?t=1244991, may i use your script? i ask, because nobody did ;-) (/system, /cache and /datadata use yaffs2).
[Android Software/Hacking General [Developers Only]] pikachu01:
It's a CM7 based ROM. It should work if you only flash the base without the addons.

If you do flash the addons, I can guarantee that it'll work. Have a nandroid backup handy before proceeeding :)
[Android Software/Hacking General [Developers Only]] XblackdemonX:
Like he says, does the restore cmw removes the 3G addon?

It seems to give me problems.

yesterday i tried to make a call, I inputed the number, pressed on call, and it was saying Dialing... but I couldn't hear anything.

I had to reboot my phone and then I could make the call
[Android Software/Hacking General [Developers Only]] Dezmatch:
I use Thunderbolt with Neo, and it's works perfectly, but I want to try Fugumod, so someone use Thunderbolt with Fugumod ?

Thx.
[Android Software/Hacking General [Developers Only]] Bejda:
Hello all:)

I'm on a miui based rom and last night had "back to video games" desire.

I was running all 1.7 scripts (main,3g,libsqlite and bin files) without visible issues and then restored two games using titanium bckp.One is gameloft sacred oddyssey,the other is Glyder 2 from glu editor and these two wasn't already with the data to be downloaded after install.

Those two restored well but gave me instant FC at launch.

Hope part of the error can be seen here (library stuffs?):

http://pastebin.com/w5Tv5taf

Tried to restore others games that worked well thoughts...only theses gave FC as far as i've seen.

Today I flashed cm7/miui restore zip and then flashed only the main 1.7 beta zip,back to titanium désinstall/reinstall those two and they finally launched...that's why i'm reporting here,should be related?

Hope this helps and thanks for all!:)

By the way,knowing that memory kill is still in work and sometimes a matter of choice,I use swypepad (a shortcut system accessible by taping screen side) that seems to get killed far too easily.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, restore will remove the 3G addon as well. The 3G addon is only compatible with i9000. Telus Fascinate is not supported :)

Not sure if anyone uses Fugumod with ThunderBolt!. You can try using it (with a nandroid backup handy).

Yes, using patched libsqlite, the restore will write to the database without fsyncs and corruption happened. It is a known issue. If you don't want to risk corruption, restore the libsqlite* files from the restore pack :)

Next iteration will make it less aggressive on the lower end of the LMK spectrum.
[Android Software/Hacking General [Developers Only]] Guto ViP:
One question about this program... What i need to do to show drain info... I paid PRO key but the program show only "Running" in Notification bar.
[Android Software/Hacking General [Developers Only]] MaoJie:
hey OP,

I have been using your tweaks, but recently want to use the EXT4 with no journal for testing purposes. Currently on RFS, have used EXT2 (on FroYo) and EXT4. I read you have actually uploaded the journaloff.zip here but couldn't find it. I looked around google but the steps are too complicated for me. I have no idea what are they talking about. Could you help, please?

Thanks :)
[Android Software/Hacking General [Developers Only]] Jumba:
Really enjoying the smoothness and battery life here. Leaps and bounds better than MIUI... Simplicity 1.5.0 with Semaphore 1.8.0bm and Thunderbolt 1.7 plus other i9000 tweaks (except sqlite which caused messaging to fc). Very happy, thank you.
[Android Software/Hacking General [Developers Only]] dirn1111:
Great thanks for your great concern for each members of xda.

Maybe I can retest it with fresh-flashed rom.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, the Journaling Off.zip is a heavily edited CWM zip just to turn off journaling in /cache and /system.

I will not distribute a CWM zip to disable journaling on /data (one part is due to my policy of not intentionally doing harm until you can't boot your device - bricked), another because I'm lazy to edit :P

You can however do this:

Push tune2fs to your xbin. I've once included this in ThunderBolt!. Shouldn't be too hard to get the binary. It's also included in the zip files JournalingOn.zip etc.

In CWM (Upload mode), connect using ADB, and do:

For /data

tune2fs -O ^has_journal /dev/block/mmcblk0p2

For /dbdata

tune2fs -O ^has_journal /dev/block/stl10

Take note that this is specifically for i9000. Won't work for other phones.

No more support from me here. You should learn more about its inner workings so that you can at least do something to recover your phone once you brick it. If I just give you everything here, you wouldn't learn how to recover your phone when you brick it :)

What other i9000 tweaks? The addons you mean? :)

No problem :) I am concerned if something doesn't work for you.
[Android Software/Hacking General [Developers Only]] Jumba:
Yes, the addons. ;)
[Android Software/Hacking General [Developers Only]] MaoJie:
I was expecting such a reply from you, because I understand you wouldn't want to assume this risk of being blame for bricking others' phone. I totally understand.

Thanks anyway, guess I will have to look around more. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
You are an understanding person :)
[Android Software/Hacking General [Developers Only]] freaked9:
I tried to install 1.7 but failed.

I mounted /system /data, after that i flashed the restore zip, it said i have to restart, so i did. But the phone hanged at the kernel's bootscreen.

Only reflashing the rom helped. What did i wrong?

Rom: Mintberry MIUI 1.10.21v2

Kernel: Zach's Neo17 r18
[Android Software/Hacking General [Developers Only]] s30ckf:
Try to flash 2 zips continuously (without reboot) follow by each other, 1st restore.zip, 2nd 1.7 beta other.zip....
[Android Software/Hacking General [Developers Only]] thunderteaser:
You're doing a great job, pikachu01! :)

I just wanted to ask you if zipaligning is really needed. I mean... one thing is zipaligning the apks and then pushing them to the phone, but that doesn't make such a huge difference, unless you batch optimize them too (e.g. optipng).

Another thing is having a script that runs at every startup slowing down a bit the boot process. What do you think about it?

Keep up the good work! ;)
[Android Software/Hacking General [Developers Only]] hackeron:
It takes a while before Data is displayed. Just activate the service in the app and then go to bed when u wake up u will have stats showing.
[Android Software/Hacking General [Developers Only]] oserx:
pikachu ... i'm thinking of something that may help to stabilize sql ... we had short talk today about screenstate script .. what if you sync everytime when screen goes off ??

after your cat command which waits for screen off, you can add sync ..

what do you think ?
[Android Software/Hacking General [Developers Only]] goodolsen:
MMS seems to be running fine today, no closes to desktop yet.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, it might be that MIUI has different files than CM7. I got the files from CM7 and I assumed that both will be compatible :/

If you can provide the files for me in MIUI (refer to the restore pack, I would need the files there), I can make a restore pack for MIUI :)

Optipng'ing is only done to reduce disk space consumption, nothing else (I think). And it would increase boot time by a lot (more than what it is right now).

Right now, the zipalign script is intelligently selecting APKs to zipalign. It keeps a zipalign db of which apk is already zipaligned. If it sees that the APK is older than the zipalign db and the apk is already recorded in the zipalign db, it will skip zipaligning thus saving time on booting.

The libsqlite* files will corrupt only when a transaction is occurring. It doesn't matter when you do a sync. Hence, not much stability can be increased when doing a sync everytime we turn off/on the screen.
[Android Software/Hacking General [Developers Only]] mrcool007:
yeah... when i reflash the ROM or restore the original files, the black screen issue goes away, for now i just use Supercharger as i have to reboot each time it happens with ThunderBolt :/
[Android Software/Hacking General [Developers Only]] pikachu01:
Are you by any chance using Speedmod or Semaphore?

As ThunderBolt! mount points delay journaling commits, it might hasten the problem seen in Semaphore and Speedmod kernels:

In Semaphore thread, starting from this post:

http://xdaforums.com/showpost.php?p=18804202&postcount=4006

In Speedmod thread, starting from this post:

http://xdaforums.com/showpost.php?p=18804373&postcount=3219
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika pika, TalonDev released public test kernel. Can I flash that on top of your tweaks ? Do I need to reflash your tweaks after upgrading TalonDev 0.5.2.1 public test version ??
[Android Software/Hacking General [Developers Only]] pikachu01:
You can flash on top of it, but the base tweaks need to be reflashed :)

Also, I'm considering removing screenstate_scaling from Talon builds. Talon currently sleeps well on ondemand.
[Android Software/Hacking General [Developers Only]] s30ckf:
Thanks for advice. I have flashed TalonDev 0.5.2.1, follow by v1.7 beta talon.zip, everything is ok atm (with sampling rate 10000, Up Threshold 80%). If I wan to OC to 1.2/1.3Ghz in TalonDev 0.5.2.1, I got to extract the script to init.d, will this script been wiped next time if I flash your tweaks again?
[Android Software/Hacking General [Developers Only]] pikachu01:
Nope. The overclock script will stay there. Be careful with overclocking though. Stress test it by playing an RMVB file in software decoding in RockPlayer for more than 10mins.
[Android Software/Hacking General [Developers Only]] Spalter:
Hello,

thanks pikachu for your great Work !!

My SGS was never faster before!!

Your script works Perfekt witch my Miui Stock 1.10.21 ,Glitch V12 beta 3 ML.

Great work thanks :-)
[Android Software/Hacking General [Developers Only]] s30ckf:
Thanks pika pika. Wow, your Pikachu avatar change from sad to cheering face.... :D:D
[Android Software/Hacking General [Developers Only]] :
Do I need to reapply your tweak if I reflash my rom?
[Android Software/Hacking General [Developers Only]] :
Will it make the phone smooth though I don't flash the addons?
[Android Software/Hacking General [Developers Only]] pikachu01:
I've explained that in the OP.

Quoting it here:

Edit: The 2nd and 3rd addon will improve speed, with the 2nd one prone to corruption (as a summary) :)
[Android Software/Hacking General [Developers Only]] Dimitri178:
Hi guys,

tnx for the awesome work pika!

Im a little bit confused tho. Currently im on Galnet miui weekly with the latest Glitch.

Went to recovery mode

I mounted system and data with mount and storage.

Installed recovery for miui/cm7

Rebooted in recovery

Then installed 1.7 others and all the other scripts without rebooting in recovery.

Then i rebooted my phone.

Done.

Is this correct?

Or must i do something with the scriptmanager aswell?

tnx
[Android Software/Hacking General [Developers Only]] pwlj:
hey, is there any way to 'whitelist' an app lmk is killing?

it keeps killing my gameboid game while running in backgroung... it's still working but i have to load rom again, and load game state too.

im using bigmem talon rc1

honestly, im considering chcanging kernel now, to use normal supercharger and make gameboid app bulletproof.
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you mount system and data everytime you booted into CWM? If yes, you're good to go.

To be sure, check your /system/etc/init.d directory. It should contain files like S98system_tweak or s98screenstate_scaling.

There is no known way of whitelisting apps from being killed. If you open a big app that requires memory, your background app will be killed no matter what. Even Supercharger's bulletproofing requires it to be applied every few minutes (or seconds). I can make the LMK less aggressive, but you will complain of lagginess after a certain number of hours or general lagginess, not as smooth or no performance gain etc.

Which would you choose :)
[Android Software/Hacking General [Developers Only]] boris03:
This is too complex - sorry

I just was on the way to give it a try - sounds good and generally good feedback.

But sorry this is confusing. I don´t understand what files is for what ...

And to be honest you can assume I am not the only one who don´t understand.

Can you make it somehow easier?

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Which files are you talking about? Can you explain (copy-paste the words/sentences) which part you don't understand?

These explain perfectly what the addons are for.
[Android Software/Hacking General [Developers Only]] XuperLugia:
Hey pika,

actually Titanium Backup Pro offers a way to migrate the phone DB's into a "WAL mode", it wasn't possible to apply this batch option but since I've installed your scripts it seems to work fine, any advice on wtf is that (yes, I'm gonna as it in their boards) and why could I have applied it after installing TB?
[Android Software/Hacking General [Developers Only]] pikachu01:
WAL is basically journaling on your Titanium Backup's backup (I think).

http://en.wikipedia.org/wiki/Write-ahead_logging

Not sure of why it couldn't be done before though.
[Android Software/Hacking General [Developers Only]] boris03:
installation

Hi,

what does this mean:

Open up Script Manager and launch /sdcard/bolt_scripts/remount as root (You can use Script Manager to launch it at boot too :P) This is done because on Voodoo lagfix, Voodoo will remount the partitions later than init.d scripts (from my testing hence reverting the mounts to stock lagfix mounts - which is slow btw)

Do i need to install script manager first?

will it not start automatically after restart?

Next restart script manager again?

I don´t use Vodoo I use ext4 any problem, any specifics?

Are these scripts not automatically loaded with ext4 in init.d?

Thanks a lot
[Android Software/Hacking General [Developers Only]] XblackdemonX:
1-You install script manager before or after Thunderbolt it doesn't matter

2-It will start automatically if you set the script "on boot"

3-Voodoo and ext4 not the same thing

4-No they are not loaded automatically in init.d that is why you need script manager
[Android Software/Hacking General [Developers Only]] Perka:
Hi, and again thx for your time!

Got this error when I tried to run opt_sqlite script

exec sh '/mnt/sdcard/bolt_scripts/sqlite_optimize'

# h '/mnt/sdcard/bolt_scripts/sqlite_optimize'

Error: no such collation sequence: UNICODE
[Android Software/Hacking General [Developers Only]] Guto ViP:
Pika, i changed all in my phone (look my sig), i'm not using Auto Memory Manager anymore, now my phone always stay with 30 - 45 of memory free, this is normal? With AMM my memory as 80 - 100 free.

P.S: I having problem with drain battery too, maybe because of callibation (now i done the 2º cicle), anyway now my battery status is 9H20M25S with 40% yet.
[Android Software/Hacking General [Developers Only]] DonVito2020:
Hi pikachu01,

First of all, thanks for the great tweak :) .Your tweak has made my SGS on MIUI superfast, but I think its breaking HD video playback (MX Video player). I am using ThunderBolt 1.7 Beta & I have changed the lib files to the one in the restore zip. But its still there. I know the HD plaback in MIUI is not smooth. But here its choppy almost every 40-50 secs. Any idea how to overcome this? But solution or not, I cannot even think about my ph without your script!!! Once again great work pikachu01 :) :) :)
[Android Software/Hacking General [Developers Only]] pikachu01:
That means one of the database it is working on uses a different collation than standard sqlite, and it errors out (skips it).

If the LMK/OOM is thoroughly optimized, you should be getting a very low free RAM but still have a smooth experience. In Linux, free RAM is wasted RAM. Remember that :)

How about restoring libsqlite* files. Does that fix the issue? :)