yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] damathos:
Yes, I extracted libncurses.so from the .zip (system_jb/lib), and then I moved it to system/lib, with rw-rw-rw permissions, but still has the error message "SQlite header and source version mismatch"
[Android Software/Hacking General [Developers Only]] pikachu01:
Can I get a screenshot of the error? :)
[Android Software/Hacking General [Developers Only]] damathos:
Sure...
[Android Software/Hacking General [Developers Only]] pikachu01:
It's too small. I can't make anything out of it. Sorry.
[Android Software/Hacking General [Developers Only]] slaid480:
Are you sure you're on 4.1.2 with proper sqlite binary and libncurses.so?

Cause the log says they're mismatching.
[Android Software/Hacking General [Developers Only]] damathos:
Totally sure I am on 4.1.2... as for the proper sqlite and libncurse, well, that is the point of my problem. I have this message when I launch the optimize_sqlite script. Everything else seems to work well.
[Android Software/Hacking General [Developers Only]] pikachu01:
Seems like the picture was corrected. I didn't notice that. Try to find "libsqlite.so" in your phone. Seems like you might have duplicated copies of it and sqlite3 is referring to the wrong libsqlite.so.
[Android Software/Hacking General [Developers Only]] Perseus:
Pika,

As promised earlier, I have posted a JellyBean only version of this mod here. Also as promised, entire credit has been given to you.

I did ask the Mods for permission before posting and weather they'd think if this is duplicate.

Appreciate your thoughts.
[Android Software/Hacking General [Developers Only]] UpInTheAir:
Hi pikachu01,

I would like to please have permission to use some of your script into my SkyHigh kernel initramfs install script or hard-coded changes?

I won't be going too fancy, but some IO & governor tweaks etc.

credits will of course be given

Thank you,

UITA
[Android Software/Hacking General [Developers Only]] pikachu01:
Great. Let me know if you need me to reply to any of the queries there. I won't be monitoring the thread there.

Permission given. Let me know if run into any problems :)
[Android Software/Hacking General [Developers Only]] Perseus:
Sure. Thanks Pika. Will let you know. If possible and if you have CWM plus JB, request to give it a test run. Some CWM user complained stuck on boot animation. I use TWRP.
[Android Software/Hacking General [Developers Only]] pikachu01:
Stuck on the screenstate_scaling CWM?

That would be due to the ROM incompatible with screenstate_scaling.
[Android Software/Hacking General [Developers Only]] Perseus:
Oh Ok. Thanks a bunch. Didn't know that. I moved all the scripts out of init.d and have the users run them one by one after flashing.
[Android Software/Hacking General [Developers Only]] HeathenMan:
i9001 bootloop with universal odexed (6.2) liquid smooth rc5 , cwm 6.0.3.7 touch

(thunderbolt script and screenstate scaling -> bootloop

libsqlite ->works)
[Android Software/Hacking General [Developers Only]] Exit_Only:
Man your bootlooping here and my thread. Check your setup. Adjust where needed.
[Android Software/Hacking General [Developers Only]] HeathenMan:
also getting bootloop with lovins tweak and infinity engine.. its a fresh install i got from stock xxkq6 , up to the liquid smooth with cit kernel 12.4.. no other changes then universal odex script and agps patch - or maybe its an error caused from the zgapps multi dpi - on stock xxkqo all tweaks worked
[Android Software/Hacking General [Developers Only]] Exit_Only:
Ok soooooooooo how is that our fault? Fix your setup then reflash. If every single tweak pack isn't working for you then common sense says its obviously your setup.
[Android Software/Hacking General [Developers Only]] HeathenMan:
what should be wrong with my setup? .. mount all , erase data, wipe cache + dalvik , install rom, gapps, kernel , tweaks - i thought nothing is wrong with this
[Android Software/Hacking General [Developers Only]] Perseus:
Are you serious ? Do you think this process is all right ? Sorry to break this to you. That's where the problem is. Indiscriminate flashing of multiple tweaks/mods without knowing consequences is a surefire receipe for Soft Brick.

Always do only one mod at a time. Check to see if it really is stable then do the next. Ideally you flash only one mod to the phone not multiple unless you are absolutely POSITIVE that they will work together.
[Android Software/Hacking General [Developers Only]] exeon:
u0_a226@android:/ $ su
root@android:/ # mount
rootfs / rootfs rw,noatime,nodiratime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,nodiratime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,nodiratime,mode=600 0 0
proc /proc proc rw,noatime,nodiratime 0 0
sysfs /sys sysfs rw,noatime,nodiratime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,noatime,nodiratime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,nodiratime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/System /system ext4 ro,noatime,nodiratime,discard,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/Userdata /data ext4 rw,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/Cache /cache ext4 rw,nosuid,nodev,noatime,nodiratime,discard,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/SDCard /mnt/int_storage ext4 rw,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/apps_log /data/idd ext4 rw,nosuid,nodev,noatime,nodiratime,nobarrier,data=ordered 0 0
/dev/block/dm-0 /mnt/asec/com.momocorp.o2jamu-2 ext4 rw,noatime,nodiratime 0 0
/dev/block/dm-1 /mnt/asec/com.largeanimal.colorzen-2 ext4 rw,noatime,nodiratime 0 0
/dev/block/dm-2 /mnt/asec/com.idosoft.o2jam-1 ext4 rw,noatime,nodiratime 0 0
/dev/block/dm-3 /mnt/asec/com.radiangames.crush-1 ext4 rw,noatime,nodiratime 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,noexec,noatime,nodiratime,user_id=2800,group_id=2800,default_permissions,allow_other 0 0
none /sys/kernel/debug debugfs rw,noatime,nodiratime 0 0
root@android:/ #

May I ask which remount should I use? Use remountSonyXperiaS also? I'm using Xperia TX with stock JB 4.1.2. Sorry noobie here. :p

--------------------EDIT-----------------------------

May I ask why I got this error when executing S98CFS script? :confused:

View attachment 2310426
[Android Software/Hacking General [Developers Only]] KineichiNxt:
Nice tweaks...thanks :D

Send from my AMOI N828 using Xda Premium
[Android Software/Hacking General [Developers Only]] Perseus:
Most likely your Kernel does not support the Scheduler changes. Or your Currently Selected Scheduler does not.
[Android Software/Hacking General [Developers Only]] exeon:
I see.. Because it works on my sis's Xperia P. How come my TX can't.

So I think I might just give up that tweak. :(
[Android Software/Hacking General [Developers Only]] Perseus:
Flash a different kernel. If that's not possible, change the Scheduler to Row.
[Android Software/Hacking General [Developers Only]] pikachu01:
You can use:

remountCM_MIUI-fullext4ICSJB

It's 100% compatible with your mounts.

Your kernel doesn't have SCHED_DEBUG flags enabled when compiling.

You need to ask your kernel dev to enable that flag to tweak CPU scheduler configurations.
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me know if you run into problems or anything :)
[Android Software/Hacking General [Developers Only]] exeon:
Oh thanks. :laugh:

But mine is stock kernel.. Weird.. Is it possible to do it myself? :confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
You can if you can compile the source by yourself. Most stock kernels don't enable the SCHED_DEBUG flag.
[Android Software/Hacking General [Developers Only]] exeon:
Oh I see.. Hmm I don't have the knowledge of modifying kernel and also not very dare to take the risk, so it is better to just remain disabled I guess..

Thanks for your reply! :good:
[Android Software/Hacking General [Developers Only]] pikachu01:
You can opt for a custom kernel from other devs for your phone.
[Android Software/Hacking General [Developers Only]] Perseus:
Pika,

Don't suppose you've got around to compiling Libsqlite for Android 4.3 ? My current AOSP Rom does have a 4,3 version. If that's any good to you then I will post.
[Android Software/Hacking General [Developers Only]] pikachu01:
Is the libsqlite that you're posting with this modification?

File: Android.mk

Added: -DSQLITE_NO_SYNC to CFLAGS.
[Android Software/Hacking General [Developers Only]] Perseus:
Yes I am with the JB version. Would include for 4.3 if there's one.

Iam on mobile now will attach my ROM's file later.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, attach them here. I'll add it to the first post. I'm currently in US now so I don't have my desktop to work with. Work also has been tough hence I don't have the time nor bandwidth to pull in 4.3 source to build.
[Android Software/Hacking General [Developers Only]] Perseus:
Here you go. Kindly let me know which one works for you. Also let me know if you end up changing any of the scripts for 4.3. A quick search of this thread only showed you want to use updated libsqlite
[Android Software/Hacking General [Developers Only]] pikachu01:
This is 4.3 JB or something else?

Just to make sure. This is with this modification right?

File: Android.mk
Added: -DSQLITE_NO_SYNC to CFLAGS.
[Android Software/Hacking General [Developers Only]] exeon:
Hmm.. Flashing kernel require unlocked bootloader right?

Not that willing to unlock my bootloader. So just give it up I think. :rolleyes:

Thanks for your helpful reply! ;)
[Android Software/Hacking General [Developers Only]] Perseus:
Yes this is 4.3 JB. I pulled this out of my current rom. It, I believe does have that flag. I didn't mod the library myself though.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah. It requires unlocked boot loader.

The flag doesn't get enabled by default in stock ROM.
[Android Software/Hacking General [Developers Only]] Perseus:
Pika, this is a custom Rom here not Stock.

On 4,3, the JB version has been reported to be stuck at boot ani. Does the Fix permission option of CWM ruin something that I missed ? I use TWRP.
[Android Software/Hacking General [Developers Only]] pikachu01:
There are two JB versions. 4.1 and 4.2. Both won't work with 4.3 (obvious as the module version is made for that specific OS version).

Whether it is from custom or stock ROM, the ROM owner needs to consciously mod it to enable that flag.
[Android Software/Hacking General [Developers Only]] Perseus:
The files I included are from 4.3. It is my understanding the files were modified by the Rom Owner to include the flag.
[Android Software/Hacking General [Developers Only]] DBDMagic:
Can u install this with TWRP?
[Android Software/Hacking General [Developers Only]] Perseus:
Yes you can.
[Android Software/Hacking General [Developers Only]] ponemania82:
This script is compatible with the v6 supercharger?

Inviato dal mio GT-I8190 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] Perseus:
Yes.

Do you even try searching this thread of your answer ? Obviously if you had you'd have seen Zep's answer.
[Android Software/Hacking General [Developers Only]] Jsilver73:
Is thunderbolt working with 4.4?
[Android Software/Hacking General [Developers Only]] Perseus:
One Part does not. Everything else does. The part we need to update is sqlite tuner library. So that script won't work effectively.
[Android Software/Hacking General [Developers Only]] PIRATA!:
I'm sorry...Is ThunderBolt compatible with Android 4.3 and 4.4??
[Android Software/Hacking General [Developers Only]] Jsilver73:
I wonder if anyone can help me - I have searched and read but must be missing something. When I try and run the thunderbolt script I get an error message (screenshot attached)

Please can someone help me to get this script running - I am running it with su checked.

Many thanks
[Android Software/Hacking General [Developers Only]] eushaun99:
Who asked you to run the zip? Flash it in recovery and run the scripts in /etc/bolt_scripts. Read the OP to check which script should you run.
[Android Software/Hacking General [Developers Only]] Jsilver73:
Ah, I've got it now. I couldn't see system because I hadn't mounted as rw, I thought it would already be mounted because it is in es explorer. Thanks for your help, looking forwards to trying now.
[Android Software/Hacking General [Developers Only]] pikachu01:
I found that Nexus 5 breaks the screenstate_scaling script. I will investigate more on it and post a fix when I get the time for it.
[Android Software/Hacking General [Developers Only]] kyrillos13:
[MENTION=3599329]pikachu01[/MENTION], zipalign fails on those lines:

rc = "$?";

if [ $rc -eq 0 ]; then

Whats the "rc" and what is the value "$?";
[Android Software/Hacking General [Developers Only]] pikachu01:
rc is the exit status of the last shell command. "$?" means the variable that is the exit status of the last shell command.

Some reads:

http://wiki.bash-hackers.org/syntax/shellvars
[Android Software/Hacking General [Developers Only]] milojoseph:
[MENTION=3599329]pikachu01[/MENTION] hey when can we see an update on your tweak. This is the best and it is buried on the android software threads.
[Android Software/Hacking General [Developers Only]] pikachu01:
Unfortunately, I've been piled up with work and had some other personal commitments I need to work on. I'll update it soonish. Sorry for not being active. :(
[Android Software/Hacking General [Developers Only]] Perseus:
FWIW, I had been toying with the idea of extending the mod with a different set of modifications. Particularly the kind that don't require running the script at each boot.
[Android Software/Hacking General [Developers Only]] pikachu01:
Which kind. Right now I have a list of things to do, and little resource to do it.

Namely, libsqlite tweaks for 4.3/4.3 and getting screenstate_scaling to work in Nexus 5.

Is there anything else that needs an update?
[Android Software/Hacking General [Developers Only]] milojoseph:
Aye no problems. I just want this thread to be on the 1st page. Famous quote, "if its not broken dont fix it". Nothing is wrong with this. If you need ideas. Maybe giving more focus on 4.3-4.4. Best thread.
[Android Software/Hacking General [Developers Only]] pikachu01:
I'll do my best to reply to any queries. :)

As for 4.3 and 4.4, I just need time to pull in the code base and make modifications to it. As for the nexus 5 screen state scaling fix, need some time to study the power/display code.
[Android Software/Hacking General [Developers Only]] Perseus:
Well not in that direction. I was more headed towards ART in case of 4.4 and Kernel mods in case 4.3

If you are planning on working on Libsqlite, then I'd rather wait for it.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, I haven't explored ART yet. Maybe give it a read (source code and actual performance) once I have the time.

As for kernel mods, which are the ones you have in mind?
[Android Software/Hacking General [Developers Only]] Perseus:
Tighter Garbage Collection and TCP Window manipulation.
[Android Software/Hacking General [Developers Only]] pikachu01:
Garbage collection as in VM settings?
[Android Software/Hacking General [Developers Only]] Perseus:
Yup and then some.
[Android Software/Hacking General [Developers Only]] pikachu01:
Post some results. I'm interested to hear what you've found ;)
[Android Software/Hacking General [Developers Only]] Perseus:
Will do. I asked my Kernel dev to include some of these changes in a draft build as well.
[Android Software/Hacking General [Developers Only]] dio stesso:
Happy new year friends????
[Android Software/Hacking General [Developers Only]] pikachu01:
Happy New Year to you too :)
[Android Software/Hacking General [Developers Only]] Perseus:
Oh Fergot. Happy New Year All!!
[Android Software/Hacking General [Developers Only]] pikachu01:
Happy New Year to you too! :)
[Android Software/Hacking General [Developers Only]] joaonuno:
hi there,

i don't know if you can help me but i'll ask anyway:

i was searching for a script to change governors and schedulers when screen is on or off. i'm kind of a noob, but it seems to me that your mod has it included. Is it possible to use just the screen scaling? is it compatible with samsung i9100? i'm on 4.3.1 pacman nightlies with apolo 6.2b kernel.

thanks
[Android Software/Hacking General [Developers Only]] walter98100:
[MENTION=3599329]pikachu01[/MENTION] i flashed this script on my samsung galaxy w 512 mb ram.. But when i type the sysctl command appears: dirty_ratio20 background_ratio10 and vfs cache pressure 100. How i can fix that?:)
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, it's possible to just use the screenstate_scaling script :)

Though, I wouldn't recommend changing governors and schedulers when the screen is on or off. Just stick with one while you change the parameters. I've experimented on using different schedulers and found that using ondemand with different parameters work the best.

Is that the value while the screen is off?

For 512MB, if the screen is off, It should be:

dirty_background_ratio = 30

dirty_ratio = 60

vfs_cache_pressure = 100

If you're not getting the aforementioned values, then the script isn't working correctly for you.
[Android Software/Hacking General [Developers Only]] walter98100:
Oh...:( so how can i uninstall this script?
[Android Software/Hacking General [Developers Only]] pikachu01:
There's a ThunderBolt Restore zip ;)

Try to troubleshoot why it couldn't work first before uninstalling.
[Android Software/Hacking General [Developers Only]] Lefteris Fragiadakis (Frago):
Will this work on HTC one 4.4?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, it should work except for the libsqlite. I need to find time to pull in source code and compile.
[Android Software/Hacking General [Developers Only]] ponemania82:
I've just installed mini s3, to tell you the truth, I am quite satisfied, but I have a question, some scripts I've set with the run to boot, like darky Zipalign s70, s98 cfs and remount i9100, I did well or not there Need?

Inviato dal mio GT-I8190 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
You need to run those at boot for them to take effect. If not, you have to run it individually by yourself at boot.
[Android Software/Hacking General [Developers Only]] sugarkane87:
error when flashing, Installation aborted (status 0). I'm on stock gb :(
[Android Software/Hacking General [Developers Only]] pikachu01:
Check your recovery log in /cache/recovery.

Or you would require a different update-binary. Change the update-binary in the META_INF folder and reflash. Some older Cyanogenmod/ROMs require a different update-binary.
[Android Software/Hacking General [Developers Only]] sugarkane87:
my last log recovery is attached, maybe you can check it. and how to update-binary in the META_INF folder? :confused: (sorry i'm noob)
[Android Software/Hacking General [Developers Only]] pikachu01:
Just replace the update-binary with one from another zip that works when flashed to your phone.
[Android Software/Hacking General [Developers Only]] sugarkane87:
yes, it's worked man, :good:
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool :)

Let me know if you're facing any other issues.
[Android Software/Hacking General [Developers Only]] ponemania82:
Why GetProp I do not appear? how can I fix it?

Inviato dal mio GT-I8190 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Try installing stericson's busybox :)
[Android Software/Hacking General [Developers Only]] ponemania82:
I updated and installed busybox, but the situation has not changed. What does it depend?

I have installed busybox in system /bin

Inviato dal mio GT-I8190 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Try doing only getprop. I didn't see your image before replying, sorry about that.

You might be using a newer version of Android that does away with prop adjustments, where the adjustments are done on the fly by the Android LMK.
[Android Software/Hacking General [Developers Only]] milojoseph:
sqlite does not work..... and i set the permission right
[Android Software/Hacking General [Developers Only]] pikachu01:
Can I get the error message or a screenshot of it? :) Thanks.
[Android Software/Hacking General [Developers Only]] xn0live:
ThunderBolt Restore CWM v3.0.zip (672.6 KB, 2836 views)

signed_ThunderBolt-CWM v3.1.1.zip (955.1 KB, 6836 views

which i must flash for my s2?

i have now

rom:chameleon

kernel:apolo 4.9 regular

that mean if i flash the scirpt then i hav more bttery life?
[Android Software/Hacking General [Developers Only]] Perseus:
Second one.
[Android Software/Hacking General [Developers Only]] xn0live:
signed_ThunderBolt-CWM v3.1.1.zip (955.1 KB, 6836 views

that?

if i flash what i must do then?
[Android Software/Hacking General [Developers Only]] Perseus:
Flash that and then follow the steps in OP.
[Android Software/Hacking General [Developers Only]] xn0live:
can u send the step please
[Android Software/Hacking General [Developers Only]] pikachu01:
It's all in the first post. Which step do you have trouble doing?
[Android Software/Hacking General [Developers Only]] xn0live:
first i flash the script then reboot system now and then;

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

?

---------- Post added at 02:50 PM ---------- Previous post was at 02:48 PM ----------

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

how??

i must do a restart :s
[Android Software/Hacking General [Developers Only]] pikachu01:
What do you mean by "you must do a restart"?
[Android Software/Hacking General [Developers Only]] milojoseph:
oops now im on 4.4 so no support yet?
[Android Software/Hacking General [Developers Only]] pikachu01:
The main ThunderBolt 3.1.1 and screenstate scaling supports 4.4 :)
[Android Software/Hacking General [Developers Only]] milojoseph:
sqlite,:D/// actually why im here is to annoy you because like i said your awesome script is on the 3rd page of "android software and hacking general" the bump is good and to hopefully motivate you to continue to update this script which is about to be 1 year old... PLEASE!!!!
[Android Software/Hacking General [Developers Only]] pikachu01:
Oh right. The sqlite issue. It's one of my to do list. :)
[Android Software/Hacking General [Developers Only]] milojoseph:
Only... no we want more,lml we are greedy and you get no sleep no more.. Plus you got a nexus 5. :D if you need me to test im here for you. i wanna see.

[MOD][TWEAKS] ThunderBolt! v3.1.1 3/25/13 [Performance+Battery Life Mods & Tweaks]

to:

[MOD][TWEAKS] ThunderBolt! v3.1.1 3/25/14 [Performance+Battery Life Mods & Tweaks] [Anniversary Update] :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeap, it's nearly a year since I've updated the binaries. Probably time to get some of the other modules updated as well :)