yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] flolep:
Hmm... Ok. Got it. Thanks. And is there a way to know how much space is used in this allocated storage space for a specific app? I trust you but as I already tested and had a bit more performance in my heavy games with 48mb, I just want to be sure it is only placebo in knowing precisely how much of this space is used by apks...

My point is... I have an android tablet too with 1gb ram so I have always enough ram :-) but on this machine, vm heapsize is fixed by default at 160mb...

So I am assuming that if we have more memory, we can increase vm heapsize... But the question is why? If you tell me that today apk don't even use 32mb, then why increasing this number even on a 1gb ram machine?

I just think that applications perform better with a bit more storage space than what they need...

And if we increase vm heapsize carefully to not sacrifice too much multitasking, why not doing it?

Anyway. I will test 48mb for some days to see if my theory is correct...

Take care.

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] pikachu01:
News:

Updated main ThunderBolt! CWM to v2.1.6 with quite a lot of changes. See changelog.

Changelog:

12/5/2011 (2.1.6)

- Updated updater_script to remove bolt_scripts. I moved the directory hierarchy a bit in the last version (forgot to add that). Hence, removing it so that people will realize the scripts are in a different position already.

- Users have to manually readd remount scripts in Script Manager because of the above change.

- Added remountCM7MIUI-fullext4. A variation of CM7/MIUI that doesn't use yaffs2. Renamed the original remountCM7MIUI to remountCM7MIUI-yaffs.

- I just noticed that CFSK is actually the wrong CFS I wanted to use. Edited CFSK with the correct values. Should feel much smoother.

- Revamped most of the echo tweaks to use sysctl instead. Might make it compatible with ICS.

- Increased Dalvik heapsize to 48MB (another 16MB won't hurt much).
[Android Software/Hacking General [Developers Only]] pikachu01:
The VM settings are incorrect. I've updated 2.1.6 with sysctl. See if it is resolved :)

Yeah, the bigger the RAM, the bigger the heapsize can be. It's all about how much an app's heap size can be. If the heap size is too small, garbage collection interval will be increased. I've increased it to 48MB for 2.1.6 :)
[Android Software/Hacking General [Developers Only]] Mopral:
Just flash 2.1.6 and remount and sqlite_optimize scripts do not work anymore in script manager

Both of them give me "applet not found" error
[Android Software/Hacking General [Developers Only]] saszseb:
pika,

simply flash it over 2.1.5 on ICS? (mount /sdcard and /system and /data before)
[Android Software/Hacking General [Developers Only]] pikachu01:
Weird, I didn't change anything regarding sqlite_optimize in 2.1.6. Did this happen as well in 2.1.5?

Try updating the busybox installer (and install busybo) and Script Manager. Both of them had bugs in them that caused huge problems in the past few days.

Yes. :)
[Android Software/Hacking General [Developers Only]] Mopral:
Busybox installer and script manager are both up to date

Before 2.1.6, I was on 2.1.4 so I do not know if it works with 2.1.5

I will try right now
[Android Software/Hacking General [Developers Only]] pikachu01:
Great. Let me know if it works well.

If it does, I think you have a busybox issue.

Try doing this:

which busybox

In the busybox installer, see if it says that you have multiple busybox installations. If you have, you have to delete one of them to make it work.
[Android Software/Hacking General [Developers Only]] saszseb:
Is "CM7MIUI-yaffs" to apply?
[Android Software/Hacking General [Developers Only]] Mopral:
Busybox installer does not say I have multiple busybox installation

I do not flash 2.1.5 because I first try back to 2.1.4 and it does not work neither

after some search, I solve my issue: wrong path in script manager settings

Sorry to make you loose time for such a dumb issue
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup :) ICS is using the yaffs type of partitions.

Ahh, it's ok :)

Don't worry about it.
[Android Software/Hacking General [Developers Only]] Perka:
Flashed 2.1.6 on TeamHacksungs Build 6 for sgs. Stuck on GT-I9000 screen. :-(

Flashed build 6 again and now charging does not work! Crap.
[Android Software/Hacking General [Developers Only]] saszseb:
pika,

applied, but nothing changed.

What's next?
[Android Software/Hacking General [Developers Only]] Perka:
Rebooted and charging works.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, I guess its not for ICS anytime soon :/

I'll need to install ICS to check. For now, it's not going to happen until ICS matures. If you can troubleshoot it by using ADB and manually doing a sysctl, I can get enough information to fix it.

Hmm. Not sure about ICS. For now, I'm going to consider not supporting ICS. :/
[Android Software/Hacking General [Developers Only]] darkronald:
Quick reply from using 2.1.6 via teamhacksung ics(cm9) build6

Reboot work,charges work

Smoother, and vellamo test move from 6xx to 7xx :)

Thx for the support on ics
[Android Software/Hacking General [Developers Only]] xenon_bn:
I'm really happy with v2.1.5, no issues for now. Should i flash v2.1.6?
[Android Software/Hacking General [Developers Only]] Perka:
Awsome.

Did u mount the partitions?
[Android Software/Hacking General [Developers Only]] darkronald:
What fo you mean by mount the partition?

do you mean the remount script? Is so then i didn't since i don't want to risk of data losing :x
[Android Software/Hacking General [Developers Only]] Perka:
Mount in recovery I mean.
[Android Software/Hacking General [Developers Only]] saszseb:
You shouldn't give up at the beginnings.
[Android Software/Hacking General [Developers Only]] saszseb:
And this one?
[Android Software/Hacking General [Developers Only]] Bejda:
Raise funds to buy Pika two or three additional sgs?:)

No seriously,it seems you only can help on this goal for the moment before more ics users shows concern (that's probably how it began for Cm7/miui support),thanks.;)
[Android Software/Hacking General [Developers Only]] pikachu01:
Why not :)

Yeah, but I would need my phone for day-to-day interactions :/

I don't have an extra phone for testing >.<

Still the same :(

Seems that sysctl is also not taking effect.

Well, it's a pipe dream for me right now. Maybe if someone has an SGS they don't need anymore. That seems to be a better option.
[Android Software/Hacking General [Developers Only]] burakgon:
Wow! Stunning CFS! Thanks!
[Android Software/Hacking General [Developers Only]] geokilla:
Why buy SGS when you can get SGSII or Galaxy Nexus :p
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, money is a problem :(

If I had the money, I would've bought one.
[Android Software/Hacking General [Developers Only]] KMino:
If I had the money I'd def buy Pik whatever phone I got just to keep getting amazing tweaks :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Well, if every ThunderBolt! user donates $1, I would have enough money to buy a Galaxy Nexus and another Galaxy S for testing :P

Well, jokes aside. For now, I'll take up developing as it comes. Which means, I will wait for ICS to be stable for daily usage.

Till then, Gingerbread will be the only one with official support for ThunderBolt! :)
[Android Software/Hacking General [Developers Only]] RolluS:
Well...

I've integrated Thunderbolt! in my french custom MIUI rom (with proper credits). On my forum and my download page, I have some ads to help me paying the server.

Last month I've got some extra cash and...

10$ donation is on the way for you pika: 5NP45246PJ955310E; thanks for your hard work ;)
[Android Software/Hacking General [Developers Only]] Blondasisko:
for your fund

8T684330RF817215J

Thanks, not only for TB but for all your activity in other threads.
[Android Software/Hacking General [Developers Only]] saszseb:
Which part(s) of TB (S98system_tweak, S98CFSK, S70darky_zipalign, s78enable_touchscreen_1) do you think doesn't work?
[Android Software/Hacking General [Developers Only]] pikachu01:
Whoa guys, thanks!!!

Made my day when I read this in the office. Will continue to strive to make SGS (and other phones I will own in the future) to be better as time goes by!

The S98system_tweak, especially the sysctl ones (in /proc/sys). I have a hunch that /proc/sys is locked down.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
When applying, just use sysctl with the -e switch... it hides errors in the event that the kernel doesnt support a particular setting.

On CM7 for Milestone, sysctl -a gives me the same 2 errors:

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

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

So its not an ICS thing.
[Android Software/Hacking General [Developers Only]] saszseb:
#!/system/bin/sh

#

# 89system_tweak V66

# by zacharias.maladroit

# modifications and ideas taken from: ckMod SSSwitch by voku1987 and "battery tweak" (collin_ph@xda)

# OOM/LMK settings by Juwe11

# network security settings inspired by various security, server guides on the web

EDIT:

# set the cfq scheduler as default i/o scheduler (Samsung ROMs)

#for i in $STL $BML $MMC;

#do

#	echo "noop" > $i/queue/scheduler;

#done;

(The default scheduler is cfq.)

# ==============================================================

# ==============================================================

# ==============================================================

# One-time tweaks to apply on every boot

# ==============================================================

# ==============================================================

# ==============================================================

# =========

STL=`ls -d /sys/block/stl*`;

BML=`ls -d /sys/block/bml*`;

MMC=`ls -d /sys/block/mmc*`;

ZRM=`ls -d /sys/block/zram*`;

# set the cfq scheduler as default i/o scheduler (Samsung ROMs)

#for i in $STL $BML $MMC;

#do

#	echo "noop" > $i/queue/scheduler;

#done;

There are no stl, bml, mmc, zram folder or file in /sys/block.

Doesn't it cause the problem?
[Android Software/Hacking General [Developers Only]] pikachu01:
sysctl -e just hides the errors. The ICS will also have the same Linux tunables. They can't be tuned using echo or sysctl, which is an enigma since I don't have ICS to test.

Yes, it means the physical blocks are named something else. Will need to flash ICS to get to the bottom of this.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Why do you think no sysctl tweaks can be applied?

Edit: doh... just looked at the screen cap again. Its not the errors I guess the values don't match the script's values.

Has it been tried with sysctl instead of echo?
[Android Software/Hacking General [Developers Only]] pikachu01:
It's either one of these two:

1. /proc/sys/ mount is not rw, or superuser can't access it.

2. The tunables are hard-coded by ICS.

sysctl and echo does the same thing which modifies the files in /proc/sys.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Not sure how sysctl "knows" where to apply the values.

If its not coded in the applet and the kernel directs it to the right place, I figure it should just work unless tests prove otherwise.

I probably would have a lot of questions from KAK users by now if it didn't work :p

I should just ask... LOL

Edit: not sure if it helps but a user had posted his ICS init.rc file for me a couple of weeks ago

http://pastebin.com/4RXAkEuQ

Paths are the same anyway...
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, paths are the same, hence it could be that su couldn't access /proc/sys or ICS locked it down.
[Android Software/Hacking General [Developers Only]] loomis:
hi pika, I had install ThunderBolt-CWM v2.1.6 the rest of addon in I9100, wondering anyone ever mention that the phone will hang after using awhile, it happen to me after a phone call, the screen go blank and I have to pull out the battery and insert again then it work for a while, it also happen to my frd as well. I even only install ThunderBolt-CWM v2.1.6 without addon, still same problem. what could it be? but I had no issue in I9000, it works amazing...
[Android Software/Hacking General [Developers Only]] mak777:
Pika, I've got great idea for donation! ;) Payed downloads - but by your own server :) If I or someone else want to download Thunderbolt - need to pay 1$ ;) Your tweaks are fu..in awesome - soo I think that every single person that using Thunderbolt will payd! Even me - person who live in such a poor country like Poland ;)
[Android Software/Hacking General [Developers Only]] lippol94:
That's not only against XDA rules but politically incorrect as Pikachu started his great work thanks to infos got for free by more experienced users :-)

So donations are fine and if you appreciate your work do it. If not don't. Every user should be free to do whatever he wants without being "forced".

Sent from my Samsung Galaxy S I9000 running MIUI Mintberry Edition
[Android Software/Hacking General [Developers Only]] Code Geass:
Sorry for the noob question but do I have to run the script on every start up of my phone?
[Android Software/Hacking General [Developers Only]] pikachu01:
It could be due to the more aggressive CFS. I'll release an alternative pack with a lesser aggressive CFS in a few hours :)

I won't want to do that because some users wouldn't have the means to pay for it (not to mention that it's illegal to do that in XDA).

Yeah, it's actually illegal to do this in XDA.

Though, I didn't get all of the info from senior members. Most of the information I have is from my own experience dealing with the Linux OS. What I'm doing is that I'm applying it to the phone rather than the PC. Yes, I did get some information like the LMK (which is built differently in the PC) and the bin files etc.

And most important of all, I wouldn't want users to pay to use something they can do to their phones for free (well the instructions are a bit lengthy, sure, but that's to prevent any untoward incidents).

ThunderBolt! CWM tweaks will stay free forever. :)

If you guys want to support me in my endeavors, I welcome donations or even moral support :)

Appreciate it!

Only the remount script needs to run at boot. That is setup once in Script Manager. All the others will work when installed.

Sqlite_optimize is a script that you run at anytime, arbitrarily.
[Android Software/Hacking General [Developers Only]] sherpa25:
What specific script, those in bolt_scripts folder? If so, you can set the 'remount' script (i.e. remounti9000 if using an i9000) to run at boot so it would run automatically at every boot. You'll just have to run it the first time. For sqlite_optimize, it's recommended to run it after every boot since it takes some time to run the script.

UPDATE: Nonetheless pika is busy, he beat me to it :D
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Added v2.1.6L with a less aggressive CFS. This is for phones that can't wake up after a while. Also try it if you've encountered shut-downs or hangs. It is possible that your phone can't cope with an aggressive CFS.

Changelog

12/7/2011 (2.1.6L)

- Tuned down the CFS aggressiveness in the v2.1.6L after a few complaints about devices that can't wake up received.
[Android Software/Hacking General [Developers Only]] loomis:
Thanks Pika, you are fast and great man... I will try it out, really appreciate.. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, test it out and let me know if you're still facing the same issue.

If you are still facing the same issue, I recommend trying an earlier version to see if the issue reoccurs. If the same issue reoccurs, then it is highly likely due to a misbehaving app and/or too aggressive Undervolting.
[Android Software/Hacking General [Developers Only]] rlorange:
@pika I'm getting regular fc's on my browser. I'm pretty sure that I've removed journaling on System partition so which is more likely: corrupted system data? Or overly aggressive cfs. Going to try 2.1.6L to test cfs theory. I might also copy the browser apk from my rom zip over the one currently installed.

**Simply Honey 5.1 JVR rom & Talon kernel @ 1.3ghz**
[Android Software/Hacking General [Developers Only]] Hasan10:
Hey! I really want to use this tweak, however I am a little scared to be honest. Can you tell me if it is safe to use this with my following setup?

Setup is:

- Stock XXJVT odex

- Dark Core Kernel 4.1 JVT

- Adrenaline Shot v13

I know that I have to get rid of Adrenaline Shot, but how do I do it? The reason why I want to switch to this tweak is because, even though my phone's performance is ridiculously fast, but the battery is just HORRIBLE. I mean I can barely get 15 hours with medium usage.

EDIT: Oh and Also which version do I get?
[Android Software/Hacking General [Developers Only]] geokilla:
Pika pika! Remember the back button thing problem I was getting about when opening Phone.apk, Messaging.apk, etc.? My friend's phone that I flashed for her has the same problem as well. Chances of it being a hardware problem just dropped a bit because her Captivate is only 3 months old at most.
[Android Software/Hacking General [Developers Only]] pikachu01:
Might be corruption. Wipe data on Browser.apk in Titanium Backup and try again? :) Should be a "data" only corruption. The APK won't get corrupted if /system is Read only.

It's safe. Just delete everything in /system/etc/init.d and /system/etc/sysctl.conf.

Get the v2.1.6.
[Android Software/Hacking General [Developers Only]] spambayes:
Hi Pika,

I'm still a little unsure about the order of execution and priority of Thunderbolt's screenstate script over Semaphore Manager's governor/scheduler selection.

I understand that the screenstate script has more options as well as fine-tuning control over Semaphore's more broadbase and rudimentary settings but how should the user utilize both of them in peaceful coexistence? Or should the user just use only one or the other? Having searched through the thread, I couldn't find a direct answer to this.

For example:

Case1: Say I have Smartass2 and SIO selected in Semaphore. In Screenstate, I have uncommented SmartassV2 for both Awake and Sleep governors. Does this present any conflict and what will be the net result?

Case 2: I have Ondemand and Noop selected in Semaphore and SmartassV2 for Awake and Sleep in Screenstate. What will this do?

Thanks.
[Android Software/Hacking General [Developers Only]] Hasan10:
Alright, applied the script. Don't really notice anything special, but thanks for your hardwork and great support.

One little question; Does this script helps the battery life? Like I mentioned before coming from Adrenaline Shot + Dark Core battery was terrible but performance was oustanding. Now I am running Thunderbolt + Dark Core and the performance is just a tad bit slower but still fantastic. I am just hoping that the battery life is improved.

Also, do you think battery drain might be related to Dark Core kernel as well? is it a good battery-friendly kernel overall or, should I go with TalonDev mentioned by you in the early posts?
[Android Software/Hacking General [Developers Only]] Perka:
My donation for your phone and all the work .

10$ 0AV60463753448451.

Seems I can use cpu master on pawitps ICS, can u help me set it up?

Again, thx for your work.

And to all! For sure u have 1$ to give?
[Android Software/Hacking General [Developers Only]] loomis:
Hi Pika,

Many thanks, so far so good, better now. but I am not sure is it because due to this, my modem became unknown after reboot, it happen twice today after I did a reboot, my third time of installing the modem, it still show unknown till I had already delete init.d folder, I reinstall modem again and its working again, I will leave it as it is, later i will test again... many thanks and keep it up, really like your work.. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Semaphore governor scripts won't conflict with the screenstate_scaling script as they are loaded before screenstate_scaling does. (They're using S10 while screenstate_scaling is using S98). The Semaphore governor scripts only works to load the governor onto the kernel. Once that is done, screenstate_scaling will take everything into account and switch governors accordingly without problems.

If you're not changing governors between awake and asleep, you don't have to edit the screenstate_scaling script. Loading the Semaphore script will work just as well.

Your battery drain was bad because Adrenaline Shot (at one time), tweaked the ondemand governor to scale extremely fast resulting in your phone being in 1GHz almost all the time (thus explaining the speed and the battery drain). ThunderBolt! doesn't do that and in fact can almost be as fast (actually most people told me it's faster, even I myself feel ThunderBolt! is faster) while being very battery saving. Try reading the last 10 pages, or search for battery. You'll see what I mean.

Try both and see which one is better for you. I recommend TalonDev, but that's just me :)

Thank you Perka :) Appreciate your support!!!

How do I set CPU Master for you? What is CPU Master? :/

Haha, donating is optional. Even if it's $1. If you want, you can support my endeavors, if not, it's ok too.

Hmm, you're using i9000? Stock ROM?

Never heard of this before. It could be corruption (but modem corruption is unheard of). Probably a bad flash? CWM is sometimes iffy in that it sometimes doesn't flash right resulting in other partitions being affected. CM7?
[Android Software/Hacking General [Developers Only]] RolluS:
Hey Pika,

I've read again some of your great analysis posts...

According to this one: http://xdaforums.com/showthread.php?t=1266715

You told:

My question is: Why does Thunderbolt! focus on CFQ if SIO is by definition better for flash devices?

It's not to argue against your work at all, simply to have a better technical idea of this ;)

++

RolluS
[Android Software/Hacking General [Developers Only]] pikachu01:
SIO doesn't have any tunables actually. It is already optimized by default :)

ThunderBolt! tweaks every tunables that every scheduler has. Hence why you can see some tunables are for deadline/CFQ/VR specifc.
[Android Software/Hacking General [Developers Only]] loomis:
Hi Pika, I am using I9100 stock ROM, I find it strange too.. :/ In fact I just reflash the ROM yesterday, as before that I thought something wrong with the phone due to can't wake up or hang after a while, this morning I reflash your new release and it happen after few reboot. probably I will reflash my rom again and see what will happen next.. by the way I am wondering have you read this : http://xdaforums.com/showthread.php?t=1380094 it could be interesting if can integrated into it as well if possible. :/
[Android Software/Hacking General [Developers Only]] Mopral:
Wondering myself if it will work on I9000...
[Android Software/Hacking General [Developers Only]] AceofSpades90:
it be cool if it does xD

---------- Post added at 04:43 PM ---------- Previous post was at 04:40 PM ----------

There's a hack for it.. not sure its the same thing you need but worth the try
[Android Software/Hacking General [Developers Only]] pikachu01:
Weird, can you revert to an earlier version to see if it happens?

If it still happens, it can be a ROM issue, or you are UVing/OCing too much. Sometimes instabilities can happen due to new app installation or governor switching. Use my guide (Android Optimization Tips - CTRL-F for "undervolt") to undervolt/OC so that you get an actual stable voltage/frequency.

Hmm, the back button problem huh.. It seems that I missed replying this to geokilla.

Hey geokilla, this back button problem only existed after flashing ThunderBolt! ? Did you try it for a week with stock everything and see if it occurs?