yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] zerorated24:
Want to try this on xperia mini( locked bootloader)

Hi there, nood here. Sorry for my question, just want to clarify things, my phone is st15i Xperia Mini, rooted with locked bootloader. Obviously, I have a stock kernel and also, I'm on a stock ROM(don't wanna use unstable custom ROMs). But I have init.d support using this mod

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

My question is, can I use this script?

Im on stock ICS 4.0.4 and I'm currently using v6 supercharger rc11t4 but I'm not satisfied with it.

Sorry again if I asked even after I ready your OP, I just want to make things clear.

Anyone with XM there ons tock ROM and kernel successed installing this script?
[Android Software/Hacking General [Developers Only]] pikachu01:
If you are rooted with the ability to modify the system partition (where the init.d belongs to it) and you can successfully run V6 Supercharger, you should be able to run this.

If you're rooted, that means you have busybox access as well?
[Android Software/Hacking General [Developers Only]] zerorated24:
what modify system partition sir? I have successfully installed busybox by stericsson but I'm currenlt using wraithdu's busybox using the supercharger starter kit.
[Android Software/Hacking General [Developers Only]] pikachu01:
Your init.d resides in /system/etc/init.d right?
[Android Software/Hacking General [Developers Only]] zerorated24:
yes its in system/etc/init.d

yes sir.
[Android Software/Hacking General [Developers Only]] RuffBuster:
Does this support Jelly Bean?

I've always used this script with all my ROMs on the Samsung Galaxy S i9000. Never been sure though if it ever made a difference, but I like the feeling that its there supposedly doing its job. I've now moved to the Jelly Bean series of ROMs and was wondering if its still safe and of benefit to use with these new ROMs? Cheers.
[Android Software/Hacking General [Developers Only]] pikachu01:
It should be alright then :)

You're NAND unlocked (can write to /system), root and have init.d support. That's the minimum requirement.

Yes, it's compatible, confirmed with a few people in the forum.
[Android Software/Hacking General [Developers Only]] zerorated24:
thanks sir!

but one last thing, do i have to remove the v6 supercharger script?
[Android Software/Hacking General [Developers Only]] pikachu01:
You can either use Supercharger or the LMK addon. All others can coexist.
[Android Software/Hacking General [Developers Only]] zerorated24:
thanks! gonna try it now!

thanks! i'll send my feedback later!
[Android Software/Hacking General [Developers Only]] zerorated24:
got an error when doing no.7 step

hi there I got an error when im on no 7. here is the screenshot

View attachment 1264158

View attachment 1264159

I didnt get this values when I use terminal emulator to check if it works.

dirty_ratio = 80

dirty_background_ratio = 40

vfs_cache_pressure = 10
[Android Software/Hacking General [Developers Only]] Custodian:
sysctl -a | grep vm

u0_a69@android:/ $ export PATH=/data/local/bin:$PATH

u0_a69@android:/ $ su

u0_a69@android:/ # sysctl -a | grep vm

sysctl: error reading key 'kernel.ftrace_enabled': No such device

sysctl: error reading key 'vm.compact_memory': Permission denied

vm.overcommit_memory = 1

vm.panic_on_oom = 0

vm.oom_kill_allocating_task = 0

vm.oom_dump_tasks = 1

vm.overcommit_ratio = 50

vm.page-cluster = 3

vm.dirty_background_ratio = 40

vm.dirty_background_bytes = 0

vm.dirty_ratio = 80

vm.dirty_bytes = 0

vm.dirty_writeback_centisecs = 500

vm.dirty_expire_centisecs = 3000

vm.nr_pdflush_threads = 0

vm.swappiness = 0

vm.lowmem_reserve_ratio = 32 32

vm.drop_caches = 0

vm.extfrag_threshold = 500

vm.min_free_kbytes = 2048

vm.min_free_order_shift = 4

vm.percpu_pagelist_fraction = 0

vm.max_map_count = 65530

vm.laptop_mode = 0

vm.block_dump = 0

vm.vfs_cache_pressure = 10

vm.stat_interval = 1

vm.mmap_min_addr = 32768

vm.highmem_is_dirtyable = 0

vm.scan_unevictable_pages = 0

sysctl: error reading key 'net.ipv4.route.flush': Permission denied

sysctl: error reading key 'net.ipv6.route.flush': Permission denied

u0_a69@android:/ #

And

getprop | grep ADJ

Returns nothing.

Using Tweaks 100 lmk and main script.

ROM: JB AOKP

Sent from my SPH-L710 using Xparent SkyBlue Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Your kernel dev might've locked the VM values. The CFS scheduler needs the SCHED_DEBUG flag activated in the kernel so that it can be tweaked.

Your sysctl settings are correct :)

Weird. getprop should return something.

How about:

getprop
[Android Software/Hacking General [Developers Only]] zerorated24:
How will I unlock the VM values on my kernel and where do I get the "SCHED_DEBUG" flag> Or how do I activate it?
[Android Software/Hacking General [Developers Only]] pikachu01:
It needs to be done at compile time, i.e. your kernel dev needs to modify them.
[Android Software/Hacking General [Developers Only]] pikachu01:
Looks OK to me :)

The LMK is applied successfully.
[Android Software/Hacking General [Developers Only]] zerorated24:
ok so that means it didnt work for my phone. Thanks anyway for the time sir. I'm going to uninstall it then. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
No, it works partially. The VM/Scheduler are one of the ones that has a requirement on the kernel (which most kernel devs would enable).

There are governor/TCP/ LMK and all the other things listed in there. :/ You can check and read them one by one to see what they do.
[Android Software/Hacking General [Developers Only]] zerorated24:
about the screenstate scaling

Is it working? How do I know this one works? I only want this for better battery performance
[Android Software/Hacking General [Developers Only]] pikachu01:
You can check by looking at the scripts in init.d and looking at the values.

There are too many in it, hence I can only list the ones at the front page, the values that are problematic.

I'm pretty sure that all the others are ok.

If you installed the LMK, you can check using:

getprop

Checking

sysctl -a

Will list out all of the available sysfs interfaces that can be programmed (and ThunderBolt! should have programmed correctly everything except for the VM settings.

You can check your mount options as well if you remount. If you don't have a remount script suitable for your phone, paste the output of:

mount
[Android Software/Hacking General [Developers Only]] zerorated24:
Im using v6 supercharger right now not LMK

I am not using the LMK sir, but I will just observe it if it really has a noticeable effect on battery life. I have battery monitor widget pro so I will know if there is really improvement.

Thanks anyway for the replies! Godbless!
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu, i have a request...

I'm using a lot of yours ThunderBolt ThunderBolt tweaks (thx for it), but I would like to know more, I want to enter in matrix. ;)

Explaining: I don't really know what they do, just the general propose.

I want to understand the importance of each io, kernel and any tweak that I use. Like droidphile's thread, where we can find explanation for all variables of all governors. I want to learn it cause:

- i hate to just apply things that I don't really know the meaning.

- I like to do the scientist thing. Change values, make tests, cause I know that always something can be improved or changed for each user need.

And I'm suffering to find awnser for each of them.

Do you know where I can find a huge explanation for it? Or (and that's is my request) could you add explanation (what it mean why change it) for all of them?

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Most of them are here: http://xdaforums.com/showthread.php?t=1309698
[Android Software/Hacking General [Developers Only]] :
How can I know if screenstate scalling is working good? [at first post I did the test and it suceeded, but it's really scalling the frequencies?]

btw, I put it in my ROM here on xda, it's okay? I removed most of the commented lines just to clean up [I've put your credits on my thread], removed some tweaked governors like assplug, ondemandx (only those), took off the #s to scale the frequencies and set ondemand to sleep/awake governor.
[Android Software/Hacking General [Developers Only]] RuffBuster:
I'm using your script with supercharger script on x-bean jelly bean on i9000 Samsung galaxy. My question, do i need to use remount script with jb? Cheers
[Android Software/Hacking General [Developers Only]] remus82:
Can't do a search from xda app. May I ask if this works on touch recovery? (Do not have cwm)
[Android Software/Hacking General [Developers Only]] geokilla:
Hey Pika. You might wanna update the OP so that it says both the CWM and LMK scripts are compatible with JB. I searched JB on first page, and didn't see any mention of it. Might explain the constant annoying questions :p
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Hey Pika,

whats your opinion on BFQ V4 and ROW?
[Android Software/Hacking General [Developers Only]] pikachu01:
It doesn't scale the frequencies. This is to make it compatible with all phones.

You can make the changes as you like as long as there's credits :)

Yes, you can use remounts in jelly bean as well.

Touch recovery is also CWM based right?

Yeah, I need to do that. Thanks for the heads up.

Any link for the source code? :)
[Android Software/Hacking General [Developers Only]] .:Crack:.:
ROW:

http://lwn.net/Articles/509829/

https://github.com/DerTeufel/samsung-kernel-aries/commit/f765603081ebba3ac3d8954e9fbc4c93ffe82b24

Many BFQ V4 files here:

https://github.com/renaudallard/gnexus_kernel/commit/6b4a478891d231e621a522cb5760d9ab41d3a0f4

a tweak by francisfranco

https://github.com/franciscofranco/Tuna_JB_pre1/commit/9d0bd92403a7a81bcce47634a9206b954e8ce1be
[Android Software/Hacking General [Developers Only]] blatz729:
Anyone wanna tell me if it worked for their SGSII t989? :P
[Android Software/Hacking General [Developers Only]] pikachu01:
It worked for the international GS 3. Should work fine :) nandroid beforehand.
[Android Software/Hacking General [Developers Only]] qqqqqq0:
Which rom or kernel work? For example Cm10

GT-I9100 cihazımdan Tapatalk 2 ile gönderildi
[Android Software/Hacking General [Developers Only]] ilyuha1108:
Hello! I'm using my Acer A100 Tablet and tried some of those scripts, but they were unsuccesfull to flash. I tried it myself to copy in catalogs. s98system_tweak seems to work fine, but with others i had a boot loop. Can you tell me how did you compile them or what to change for exmaple in libsqulite? I tried to copy those libs, setting them a proper permissions, and i had a better working apps in system. But most of them crashed. So, can you say how to compile those libs for my tablet?

Thanks in advance! :)
[Android Software/Hacking General [Developers Only]] EdikNeznanov:
hi, i want to add you script into my ROM but every time when i move all files to system folder and flash ROM i get bootloop. my device is HTC Wildfire s and I'm making CM9 based ROM.
[Android Software/Hacking General [Developers Only]] pikachu01:
The main CWM and the LMK addon should work. Have a nandroid backup just in case.

There are some that are incompatible. The main CWM and LMK addon would always work.

The libsqlite would need a source code to compile. That would need some time >.<

Which files are added? If it's CM9, only the main CWM and the LMK addon is compatible.
[Android Software/Hacking General [Developers Only]] muktheo:
hello pika..

may I request the new one, would u possible to make 120mb LMK..? :)
[Android Software/Hacking General [Developers Only]] pikachu01:
For now 100MB is the limit. I'll deliberate whether I should make one :)
[Android Software/Hacking General [Developers Only]] ilyuha1108:
Can you try? I tried again that libs and i used system for sometime. As you told, some apps worked great, my launcher were smoother than it had been before, but the most apps didn't work at all. After reboot i had a bootloop.

If you don't want to do it, just tell me, where to take a source code and how to compile? thanks again
[Android Software/Hacking General [Developers Only]] pikachu01:
You have to get the ROM source code for your phone. After that, using a Linux environment, fulfill all the requirements (compiler, toolchain etc).

After that, seek for the source file for libsqlite, then modify them as per first post. After that, compile and get the compiled object (libsqlite.so) and copy it to your phone while it is in recovery using CWM.
[Android Software/Hacking General [Developers Only]] EdikNeznanov:
i added that which is flashable from CWM. but i copied only system folder containt.
[Android Software/Hacking General [Developers Only]] pikachu01:
Not all the CWMs are compatible. You should read the first post to see which is compatible and which isn't.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
So, whats your opinion on BFQ V4 and ROW? :P
[Android Software/Hacking General [Developers Only]] Cocobillys:
It's great!!
[Android Software/Hacking General [Developers Only]] pikachu01:
Saw this:

https://patchwork.kernel.org/patch/1274761/

Seems like it's a pretty early implementation. I have great hopes on it.

As for BFQv4, it's just a rehash from BFQv2/v3. I think it's still pretty complex and have spindle disks in mind based on its creation.

Thanks :)
[Android Software/Hacking General [Developers Only]] iXNyNe:
Running smooth for me on cm10 with lmk 100 :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Does the screenstate_scaling work on CM10?
[Android Software/Hacking General [Developers Only]] iXNyNe:
Nope. I guess didle code is still messed up.
[Android Software/Hacking General [Developers Only]] pikachu01:
Still not fixed from CM7 itself :(
[Android Software/Hacking General [Developers Only]] droidstarxx:
just used this one with a previously installed v6 supercharger and thundrrbolt and this thing fcking really fly. thanks for your creation :)))))))))

samsung ics 4.0.3 . v6 + thunderbolt script + siyah. holy sh&*.
[Android Software/Hacking General [Developers Only]] droidstarxx:
one question sir pikachu. i just wanna know what cfs should i use 2_1_1_1 is the current cfs im using and what is lkm? or lkm 100 or 80? thx

samsung ics 4.0.3 . v6 + thunderbolt script + siyah. holy sh&*.
[Android Software/Hacking General [Developers Only]] pikachu01:
You should use the default one. If that is not satisfactory, you can choose from the list. It's to each own device (some testers previously felt better on certain CFS but generally the default one was the one everyone felt was good).

LMK is the lowmemorykiller. The higher the LMK, the higher performance (and the lower the multitasking capability is). You can try 100 and if you feel that it is not satisfactory, you can go for 80.
[Android Software/Hacking General [Developers Only]] droidstarxx:
oh . sir where can i edit lmk values? :)

samsung ics 4.0.3 . v6 + thunderbolt script + siyah. holy sh&*.
[Android Software/Hacking General [Developers Only]] pikachu01:
You mean editing the internal values that ThunderBolt! is setting or editing something else?
[Android Software/Hacking General [Developers Only]] sherpa25:
Hi @pika, couple of quick questions :)

1. When I play Music, and then lock the screen, it stops playback after a couple of seconds.... like it puts the phone into total sleep. Is there a workaround to this so I can leave music playing while phone is locked?

2. I'm using Widgetlocker, and when I swipe to wake the phone, I noticed it takes a couple of seconds to respond and wake up (i.e. so I have to swipe twice before it unlocks). Is there a setting to make it wake/respond more quickly?

For reference, I'm using 2.7.7, 100mb LMK, Screenstate_scaling 2.0.2, still on Semaphore. Onedemand governor and SIO Scheduler.

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
The ondemand governor from Semaphore limits itself to 500MHz once the screen is off (I can't override that using ThunderBolt!).

You can switch governors to see if it resolves it.

I am also using Semaphore and music playing on ondemand (even when it's maximum of 500MHz) works for me. :/ Not sure why it doesn't work for you. It might be that your music player requires a higher frequency?
[Android Software/Hacking General [Developers Only]] droidstarxx:
it is fine now sir. :) thanks for this script :) going to try your script on a speedmod rom hehe :)

samsung ics 4.0.3 . v6 + thunderbolt script + siyah. holy sh&*.
[Android Software/Hacking General [Developers Only]] zealred:
thank you very much
[Android Software/Hacking General [Developers Only]] pikachu01:
No prob. ;)
[Android Software/Hacking General [Developers Only]] sherpa25:
I see. Weird, as I'm just using the stock Music player on GB.

BTW, what's the stock CFS?
[Android Software/Hacking General [Developers Only]] pikachu01:
This is stock CFS:

echo 750000 > /proc/sys/kernel/sched_min_granularity_ns;

echo 10000000 > /proc/sys/kernel/sched_latency_ns;

echo 2000000 > /proc/sys/kernel/sched_wakeup_granularity_ns;

I'm using Poweramp. Not sure if it utilizes lower frequency :/
[Android Software/Hacking General [Developers Only]] droidstarxx:
sir pikachu. I have a questio. installing this and v6 supercharger is ok or there is a conflict between? thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
The ThunderBolt! addon, LMK will conflict with Supercharger. Either use the LMK addon or Supercharger. Not both.
[Android Software/Hacking General [Developers Only]] droidstarxx:
ok so i'll just use thunderbolt (w/o lmk addon) and supercharger. thanks
[Android Software/Hacking General [Developers Only]] Christophe86:
just applied main cwm script on fresh cm9 install and checked in terminal emulator if it works, got this output:

a/local/bin:$PATH <

app_20@android:/ $ su

app_20@android:/ # sysctl -a | grepvm

sh: grepvm: not found

sysctl: error reading key 'vm.compact_memory': Permission denied

sysctl: error reading key 'net.ipv4.route.flush': Permission denied

127|app_20@android:/ #

LMK settings also don't apply. never had this before :confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
It's:

sysctl -a | grep vm

Note the space between grep and vm.

Can you check your:

getprop | grep MEM

and

getprop | grep ADJ
[Android Software/Hacking General [Developers Only]] Christophe86:
oh dear... how could I've not have seen this :banghead: sorry pika!

all is fine now ;) also, the adj output was shown in a different order, so I thought it didn't match lol
[Android Software/Hacking General [Developers Only]] snoopdaclown:
Hey pika does this work on the s3 that you know of?

Sent from my Nunified S III running Triune II
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, a few people used it without problems in S3. Only the main CWM, LMK and screenstate_scaling (screenstate scaling only works for non AOSP/AOKP/Cyanogenmod derivatives).
[Android Software/Hacking General [Developers Only]] snoopdaclown:
So just the lmk and screen state will work? OK cool ill give it a try and ill let you know what the out come is. With flashing the main cwm that'll give me a init.d folder?

Sent from my Nunified S III running Triune II
[Android Software/Hacking General [Developers Only]] pikachu01:
The main CWM, LMK and screenstate_scaling :)

You'll need to create init.d folder beforehand :)
[Android Software/Hacking General [Developers Only]] alkhafaf:
Hello Pika

When I applied your scripts (main script with S98CFS) in the new version JW8 GB- i9000, I didn't notice any noticeable difference in gaming. Before, when I applied your scripts in JW6, I noticed a difference any the lags in games almost gone.. what is the reason ? maybe cuz of a new kernel in jw8 ?? I should mention that in jw8 I used your new 100 mb lmk, in jw6 I used 80 MB..

btw I didnt put the bolt_scripts folder in jw8, since it is not used, is that the problem u think ?
[Android Software/Hacking General [Developers Only]] :
I think zipalign binary is a bit broken on CM10. It corrupts Google Apps apks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you try applying the libsqlite add-on? Also, try using the 100MB LMK. Did you apply the remount script in Script Manager?

The apks themselves aren't compiled correctly?
[Android Software/Hacking General [Developers Only]] alkhafaf:
No I didn't apply the libsqlite add on. What's the use of it ? I didn't apply remount script cuz u wrote in the op that it is risky.

And I did try applying your 100 MB lmk and it does work..
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, the remount is risky to some extent. Libsqlite disables the fsync enabling faster sqlite access. If you have backups in the right places, the amount of risk is mitigated :)

I'm using both libsqlite and remounts in I9000 without problems. Note that libsqlite is only for Gingerbread.
[Android Software/Hacking General [Developers Only]] droidstarxx:
Sir pika. I have a question. I already installed thunderbolt via cwm. However i didnt yet installed with it the addons. Can i still flash the addons? Or should i reflash thunderbolt? Thanks!!
[Android Software/Hacking General [Developers Only]] pikachu01:
They can be flashed at any time at any order.
[Android Software/Hacking General [Developers Only]] snoopdaclown:
Sorry to ask such a stupid question but I forget where the init.d folder goes. Is it in main root? Or in system?

Found out where it goes and already have a init.d folder with tweaks in it. Don't know if I can use the lmk with them.

Sent from my Nunified S III running Triune II
[Android Software/Hacking General [Developers Only]] droidstarxx:
As always thanks for the fast reply :)))))))))
[Android Software/Hacking General [Developers Only]] pikachu01:
It's in /system/etc/init.d

The /etc path is basically a link to /system/etc.

What tweaks in it?
[Android Software/Hacking General [Developers Only]] alkhafaf:
Yes..thank you for your reply

U meant efs backup ???
[Android Software/Hacking General [Developers Only]] pikachu01:
No, a backup like Titanium Backup or Nandroid.
[Android Software/Hacking General [Developers Only]] suraj1:
Is it necessary to flash thunder bolt CWM?

Or only flashing stock i9003 will work?

:confused:
[Android Software/Hacking General [Developers Only]] alkhafaf:
So u meant by risky that it can harm the data only, not the hardware.. right ?

And what do u mean by the right place of backup? Internal USB storage is ok or not ?
[Android Software/Hacking General [Developers Only]] pikachu01:
I don't understand your question.

Yes, it'll harm the data only not hardware. Internal USB storage is ok. Titanium Backup is good. :)
[Android Software/Hacking General [Developers Only]] alkhafaf:
Thank u very much..I will try it.
[Android Software/Hacking General [Developers Only]] sherpa25:
... found it....
[Android Software/Hacking General [Developers Only]] pikachu01:
It's in /etc/bolt_scripts/CFS/

If you can't find it, that means you installed a new ROM that wiped it? You need to do a full reinstall.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
hi pika, can you remount this?
[Android Software/Hacking General [Developers Only]] alkhafaf:
Hello pika

How can I be sure if lmk scripts, remount scripts are working well ?
[Android Software/Hacking General [Developers Only]] droidstarxx:
The scripts in init.d should i put them in su or no? Because when i install the script, it is not on su mode.
[Android Software/Hacking General [Developers Only]] pikachu01:
What do you mean su mode? Can you give a screenshot?
[Android Software/Hacking General [Developers Only]] zerkai:
He's probably viewing the init.d directory with script manager.
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh, that explains it :)

No, don't need to give other scripts in init.d su mode as they are executed automatically by the kernel. Whatever files in init.d, as long as they are using the correct shell script syntaxes, they will be executed automatically.