yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] iXNyNe:
Mine is one of those roms where sdcard and emmc are funny, which is why I output to both.

I also intentionally didn't put it in sub folders so it would be easy to locate from cwm. Users can move it if they like.

Not all users would be smart enough to browse /tmp for a flash able zip

Initially that's what I did, but the zip binary is an evil *****.

I had everything operating under /system/etc/bolt_scripts/tb-restore/ but when creating the zip I ended up with all those directories inside it, example /system/etc/bolt_scripts/tb-restore/META-INF/

And that doesn't work... so I made sure that any files or directories created are also removed.

I don't see any scenarios where META-INF would have already existed and contained something important, maybe /tools/ but I haven't seen any Linux or android distro/rom make use of it before.

I tried MANY combinations with the zip binary, the main issue is wild cards and regex seem to ether be ignored or cause cwm to freeze (didn't see it coming the first time, prayed I didn't brick)

Feel free to tinker with it, but that's the only way I had found to make it work correctly (not saying there is only one right answer, but that's the only one I was able to come to)
[Android Software/Hacking General [Developers Only]] ram3n:
Hi Pika,

Here is the main site for Abyss kernel :

http://www.nonsolosmartphone.it/abyssics-kernel-t133.html

And kernel latest sources :

http://www.mediafire.com/?cf8w3crenp535b5

Tell me if you could make a nice script for abyssplug matey

:rolleyes:

Sent via my S2 monster
[Android Software/Hacking General [Developers Only]] spambayes:
Bummer. That's a harsh verdict. Do you think going to ICS would help? Is the problem with ICS somewhat similar to this? I thought there's a hack for services.jar for ICS?

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, there's a hacked services.jar for ICS. However, you lose native 3G calling and some Samsung only ROM features like FM radio.
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me tinker on it tonight (or this weekend if I don't have the time on weekdays and see what I can do with it :P)

I should be able to release an abyssplug compatible screenstate_scaling file soon ;)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I've never heard of any such reports... is it limited to a certain rom?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah only jw5 and jw4 ROMs.
[Android Software/Hacking General [Developers Only]] ldrifta:
7.????

8.PROFIT!!

lol hahaha yes!!!! i literally am leaving this comment to share my love of this 1 part of OP lolol

for those of you who dont know its a south park quote haha underpants knomes :D love it!!! ur tha man dude!!
[Android Software/Hacking General [Developers Only]] pikachu01:
Hehe, glad that it tickled your funny bone there ;)
[Android Software/Hacking General [Developers Only]] ram3n:
Great news !

Then, May I ask you to pm me when you'll release it matey ?

Sorry to ask you that but im quite busy this month. :o

Thanks. Love your work Pika !

Big Cheers

Sent via my S2 monster
[Android Software/Hacking General [Developers Only]] cyberbandit1998:
Can I use screen state scaling for ics aokp m5?
[Android Software/Hacking General [Developers Only]] iXNyNe:
Backup

Flash screen scaling

If you successfully boot then you're all set

If not, restore backup

Nandroid backup from cwm is recommended
[Android Software/Hacking General [Developers Only]] pikachu01:
I'll try to remember :)

As iXNyNe mentioned, you can backup then flash to see if it works. Or flash it first, then flash the restore pack for your ROM (if you don't have a restore pack for it, send me the files and I'll make a restore pack for you). The restore pack will delete every piece of ThunderBolt! script, hence you need to reinstall if you want some parts of ThunderBolt!.
[Android Software/Hacking General [Developers Only]] iXNyNe:
Had a chance to tinker with that zip I sent ya? :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Not yet :( work work work :(
[Android Software/Hacking General [Developers Only]] :
The latest version of tweak doesn't work on Optimus one... It doesn't mount the system through busybox... I modified the updater-script to work... Thanks!!! Congrats on becoming recognized dev!
[Android Software/Hacking General [Developers Only]] pikachu01:
What errors are you getting when mounting? Busybox not found?
[Android Software/Hacking General [Developers Only]] ram3n:
Hello pika,

What's up? Any news about screen state scaling script for abyssplug yet?

As you know, I do love this kernel very much. Only this one (with speedmod) can give me 10 hours screen on. :p

Sent via my S2 monster
[Android Software/Hacking General [Developers Only]] pikachu01:
Not yet. >.<

Even at this point, I'm still busy with work. :( Sorry.
[Android Software/Hacking General [Developers Only]] ram3n:
No problem matey, I'm already quite happy with my current settings.

Good luck with work.

Know that feeling.

I'm quite busy too :D

Sent via my S2 monster
[Android Software/Hacking General [Developers Only]] pikachu01:
OK, I went to tinker with it and found that you should create the zip like this:

run_program("/tmp/zip", "-r", "/data/local/tb-restore.zip", "META-INF", "tools", "/system/xbin/sqlite3", "/system/bin/app_process", "/system/bin/system_server", "/system/lib/libncurses.so", "/system/lib/libsqlite.so", "/system/lib/libsqlite_jni.so");

This is because it's not guaranteed that /sdcard exists. Also, I'm not sure if this will work with other phones or not. Extracting to the root folder (initramfs) seems a bit dangerous :/

Just PMed you a beta copy of screenstate_scaling with abyssplug support. :)
[Android Software/Hacking General [Developers Only]] iXNyNe:
The zip command won't zip from anywhere but the current directory and in recovery its / and there's no way to change directory that I know of.

Edit

Also, since this flashes through cwm which reads from sdcard and emmc I assumed it would be safe to place one in each. If it doesn't exist (in my case sdcard doesn't exist from cwm) the zip is still copied to emmc as well.
[Android Software/Hacking General [Developers Only]] pikachu01:
No the creation of the zip can be stored anywhere in the disks. I'm talking about the creation of the disks. Not what files are zipped. When you create the zip you defaulted it to sdcard. It should be done in data instead.
[Android Software/Hacking General [Developers Only]] vkumar2695:
This question may have been asked numerous amounts of times, but does this interfere with V6 supercharger or its boot scripts?

Also, is this even necessary over V6? (I like speed though :D)
[Android Software/Hacking General [Developers Only]] pikachu01:
It won't if you only install V6. The LMK addon though will interfere. Hence, either use ThunderBolt! LMK or V6 Supercharger. The KAK will conflict with ThunderBolt!. Use only one or the other.

V6 is only for LMK (KAK does tweak some Linux related stuff), though ThunderBolt! is more comprehensive.
[Android Software/Hacking General [Developers Only]] vkumar2695:
As I'm currently running AOKP, and LMK is only partially working on TB, it would be safe to install TB 2.7.3 with V6?

Edit: even if I proceed with this, would i even notice a difference in speed?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, hence don't install LMK and KAK.

It should be safe, though nandroid just in case.

You will (or will not). It depends on how optimized your kernel is. The values in ThunderBolt! can be set by a kernel too you know ;)

Don't forget to check out bolt_scripts and enable remount and zipalign scripts. :) sqlite_optimize also once in a while.
[Android Software/Hacking General [Developers Only]] vkumar2695:
Will do thanks :D
[Android Software/Hacking General [Developers Only]] eddie3495:
HI pikachu01 ,

why I got slower sdcard read and white speed after using your tweaks?

Is there any solution to get back my original sdcard speed?

Thank you!Your tweak is great!
[Android Software/Hacking General [Developers Only]] pikachu01:
Because I tweaked it to have a lower value. And it's not a "slower" sdcard read and write speed, it's more "efficient" sdcard read and write speed, even to the extent of it being faster in real life situations, but may not reflect well on benchmarks.

Read this:

http://xdaforums.com/showthread.php?t=1032317
[Android Software/Hacking General [Developers Only]] eddie3495:
Oh :eek: I see...

Thank you for your explanation :)
[Android Software/Hacking General [Developers Only]] pikachu01:
No problem. That thread helped a lot of other people understand the reason behind readahead :)
[Android Software/Hacking General [Developers Only]] rasanu:
I feeling same as before ....::
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you run the remount as well as sqlite_optimize/zipalign? remount and zipalign should be done at every boot while sqlite_optimize only needs to be done once in a while.
[Android Software/Hacking General [Developers Only]] iXNyNe:
Sorry I think we were aiming at two different things in the discussion.

I was talking about having to extract files to / and that being unsafe, but the zip command makes the zip from current directory so if you try to extract the files that make the zip to a sub directory they will end up in the sub directory (eg: /temp/META-INF/...etc)

As for the output location we could do this.

run_program("/tmp/zip", "-r", "/data/local/tb-restore.zip", "META-INF", "tools", "/system/xbin/sqlite3", "/system/bin/app_process", "/system/bin/system_server", "/system/lib/libncurses.so", "/system/lib/libsqlite.so", "/system/lib/libsqlite_jni.so");
run_program("/tmp/busybox", "cp", "/data/local/tb-restore.zip", "/sdcard/tb-restore.zip");
run_program("/tmp/busybox", "cp", "/data/local/tb-restore.zip", "/emmc/tb-restore.zip");

So if it doesn't exist it just won't copy, no big deal, but leaving it in only /data/local/ where its not flash able.

I'm thinking scenarios where a device won't boot until TB! Is removed so having this give you a "way out" is ideal I think.
[Android Software/Hacking General [Developers Only]] pikachu01:
The PM that you sent me contains everything that I've mentioned previously :)

I'll test it out extensively when I have the free time.

Though, it should work on most cases (except for phones that locks down the root directory).

Thanks!
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Updated ThunderBolt! to v2.7.4 adding support for abyssplug and pegasusq governor tweaking. Also removed CFS from being automatically executed. Use Script Manager to navigate to bolt_scripts/CFS/ to pick and choose (default was s98CFS). Also updated screenstate_scaling to 1.9.0 with support for abyssplug and pegasusq so that governors can be more battery friendly when screen is off + other misc changes.

Changelog:

5/18/2012 (2.7.4, Screenstate_scaling 1.9.0)

- Updated both main script and screenstate_scaling script to support tweaking abyssplug and pegasusq governors for better performance + battery life when screen is off.

- Removed CFS from executed by default. Use Script Manager to navigate to /etc/bolt_scripts/CFS to manually run it. s98CFS is the default one.

- Removed lulzactive tuning on the pump_up_step as Siyah introduced 18steps of frequency. This needs to be manually set.

- Removed io_is_busy from being set. You can edit the script to set it if you feel performance is lagging.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Hey Pika,

I know your I/O scheduler ranking but is it still up to date? There's a saying that V(R) ist the best on a MTD device while SIO is the best on an EMMC device, whats your opinion on that?

Thanks ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
Is there an article for this? Or is it based on benchmark? Benchmark is a pretty poor way of measuring I/O if the benchmark only performs sequential reads/writes.
[Android Software/Hacking General [Developers Only]] iXNyNe:
From droidphile's thread^

Sio is known to be best in terms of speed and stability

Vr is known to be the best speed, leaving stability aside, not always the best option.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Yea, here's a summary i guess ;)

http://xdaforums.com/showpost.php?p=20890005&postcount=2
[Android Software/Hacking General [Developers Only]] pikachu01:
V(R) is also mostly for spindle based drives based on the weight when spinning in reverse, hence it's mostly overhead. I don't understand why it can be claimed to be known for speed :S

It's mostly copy pasted from my thread. With that said, emmc and mtd are both flash drives or based on having no difference between reading/writing far-based/near-based addresses making simpler governors better suited for it.
[Android Software/Hacking General [Developers Only]] iXNyNe:
By "known for speed" I should have said "scores best in benchmarks"
[Android Software/Hacking General [Developers Only]] schwarzerkreuz:
How I find out if ThunderBolt-CWM_3G_i9000_addon_v1.0.5 works?
[Android Software/Hacking General [Developers Only]] pikachu01:
With contiguous data transfer and or reduced susceptibility for interrupts, some governors can score very well in benchmarks, though the numbers doesn't mean jack in the real life as most I/O operation involves random read write. Having high benchmark also mean one thing, high throughout, but high latency leading to low interactivity. This means visible lags are more prone.

Are you on i9000? If not don't use it. Should have higher speeds if you used it right.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Then why did you raise fifo_batch to 4 (more throughput, more latency)?
[Android Software/Hacking General [Developers Only]] pikachu01:
That's because batching transactions is still good (you'd wait awhile till 4 transactions arrives before randomly writing/reading) as the overhead of trying to access the I/O device is still there (as in the CPU would have to be interrupted for an I/O transaction to occur).

Interrupting the CPU for every transaction can be a very costly thing to do if not done right.

As for the overhead of each scheduler determining the addressing then batching each transaction according to the address (which every governor in existence does except for SIO, Deadline and Noop), that's the overhead which I'm trying to minimize.
[Android Software/Hacking General [Developers Only]] octolith:
Dear pikachu,

Will your remount script work if I set barrier=1 and commit=20 for /data, /datadata and /cache? Are there any other values for the barrier apart from 0 and 1? Are the barriers enabled by default (without remount script)? Will leaving them enabled grant more stability/smaller chance of corruption? Sorry for bothering you with my questions, I just want to understand this a bit more :) Thanks for your help! :)

Sent from my SGS ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
It will work, do note that having shorter commits and barriers decreases performance, though it'll increase data integrity (to an extent). Do take note that even with barriers and commit, data corruption can still happen (though to a lesser extent).

Barriers are 0 or 1 (from the documentation, unless new things were added I assume it's the same).

Barriers are disabled by default.
[Android Software/Hacking General [Developers Only]] spambayes:
Hi Pika,

I flashed your latest 2.7.4 with all except 3G addon on a JW1 I9000.

I get:

getprop | grep ADJ

[ro.FOREGROUND_APP_ADJ]: [0]
[ro.VISIBLE_APP_ADJ]: [1]
[ro.PERCEPTIBLE_APP_ADJ]: [1]
[ro.HEAVY_WEIGHT_APP_ADJ]: [2]
[ro.SECONDARY_SERVER_ADJ]: [2]
[ro.BACKUP_APP_ADJ]: [2]
[ro.HOME_APP_ADJ]: [4]
[ro.HIDDEN_APP_MIN_ADJ]: [7]
[ro.EMPTY_APP_ADJ]: [15]

which doesn't tally with the expected output in your OP. Any idea what I'm doing wrong? I'm not running any other scripts.

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
I think I might have messed up something in the LMK settings. Let me investigate.
[Android Software/Hacking General [Developers Only]] spambayes:
Okay. Thanks! :)
[Android Software/Hacking General [Developers Only]] PIRATA!:
Also interested. Waiting for your reply before flashing...
[Android Software/Hacking General [Developers Only]] pikachu01:
I'm not sure if this is kernel related or framework (JW1,JW4, JW5), but the local.prop no longer runs before the init.rc. This causes the init.rc to be the only thing that sets ADJ/MEM. The only way to set this is through a kernel edit as the init.rc will get erased at every boot (the kernel sets the initramfs).
[Android Software/Hacking General [Developers Only]] pikachu01:
One more thing. The busybox mounter doesn't seem to work well with some busybox versions. Certain busybox version will complain of missing /etc/fstab when trying to mount without the file system. This defeats the purpose of mounting before installing. I'll have to revamp the updater_script again to fix this. Hence, before installing any CWM zips, please mount /system and /data at every single time (even after installing the script once)
[Android Software/Hacking General [Developers Only]] spambayes:
Please delete.
[Android Software/Hacking General [Developers Only]] PIRATA!:
I am with Semaphore 2.5 JVT.... should I have same problem?
[Android Software/Hacking General [Developers Only]] spambayes:
I've just referred stratosk to this post assuming that's the right thing to do. Is there anything I can do to rectify this?

Thanks.
[Android Software/Hacking General [Developers Only]] spambayes:
I was on Semaphore 2.50 JVT without this issue.
[Android Software/Hacking General [Developers Only]] pikachu01:
JVT doesn't have this. It started with the Value Pack and rolled onwards. There's nothing you can do though. Initramfs can only be tweaked in the kernel.
[Android Software/Hacking General [Developers Only]] PIRATA!:
So with JVT I can install 2.7.4 without any problem, but better remain with 2.7.3 if rom has JW1,JW4, JW5 ??
[Android Software/Hacking General [Developers Only]] pikachu01:
No, no. This problem only involves the LMK addon. The LMK addon cannot be used for the Value Pack ROMs.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Okok...but what are the Value Pack ROMs? I'm sorry, but I really don't know if mine in signature is one of those.... Please apologize. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
The Value Pack ROMs are JW1 (leaked), JW4 and JW5. :)
[Android Software/Hacking General [Developers Only]] PIRATA!:
Okthank you :) I was thinking to put one of those in the weekend....

In the mean time while still with JVT and Semaphore 2.5 I can instal Thunderbolt 2.7.4 an any LMK addon I like..correct??

When I'll instal a Value Pack ROM, which Thunderbolt is safe to instal so to use LMK addons? ..if there is any..... I mean: it is better to forget the LMK addon for the moment and prefere to install last Thunderbolt script, or if there is any is it better to install older Thunderbolt and use LMK addond??

Thank you.
[Android Software/Hacking General [Developers Only]] pikachu01:
Main CWM - Compatible with every ROM

LMK Addon - Only non-Value pack ROMs (not JW1,JW4,JW5).

Let me know if you still need help on this :)
[Android Software/Hacking General [Developers Only]] PIRATA!:
Hahahaha!!! :)
[Android Software/Hacking General [Developers Only]] alexlaveline:
Can I use it for Xperia with V6?
[Android Software/Hacking General [Developers Only]] iXNyNe:
:eek:

would changing the busybox version make a difference?

also consider this

assert(is_mounted("/system");

do this after the automount attempt to see if the automount actually worked, if it failed, then it will stop the install

could even tuck a message in before that saying "if the install stops here please mount partitions manually"

at this point though if a different version of busybox doesnt do the trick and work on all devices (without rewriting anything) it almost feels like the assert idea ends up being a lot of overhead

i dont mind writing it if you think it'd be handy (my recent fascination with edify scripts keeps me creative)
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool. I haven't the time to test the asserts. It would be great if you can test it. The restorepack could use an assert too, to test whether zip works (or a if a zip exists after the operation).
[Android Software/Hacking General [Developers Only]] pikachu01:
Is your Xperia Nand unlocked with CWM support as well as root + init.d? If yes, it should work. Be sure to have a nandroid backup beforehand just in case.

Also, V6 will work with ThunderBolt! as long as you don't install the LMK addon. Only use the LMK addon or V6.
[Android Software/Hacking General [Developers Only]] spambayes:
Thanks for the explanation. It's all clear now.:) This brings me to the next question: What about the kernel LMK tweaks found in Semaphore, Midnight kernels etc.? Are they inoperative in Value Pack roms as well?

Has XDA removed the 'Thanks' button?!:eek:
[Android Software/Hacking General [Developers Only]] pikachu01:
They only tweak the Linux LMK while the	Dalvik LMK is not configured.

Thanks button worked here :/
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Updated ThunderBolt! to v2.7.5 with more tweaking towards all governors for better battery life, and no significant loss of performance. Also tweaked pegasusq according to some fixes in Siyah.

Changelog:

5/24/2012(2.7.5, screenstate_scaling 2.0.0)

- Updated all governors to skew towards more battery life.

- Updated pegasusq to correct typo in some of the settings as well as scale better.
[Android Software/Hacking General [Developers Only]] CatalystWon:
As I recall, Semaphore 2.74 is for JW4/JW5, not JW1.

Semaphore 2.50 is for JW1.
[Android Software/Hacking General [Developers Only]] iXNyNe:
I'll work on this. Btw is there a specific version of busy box you have found to work better or more reliably than others?
[Android Software/Hacking General [Developers Only]] Arimbi:
dear pikachu

can s70darky_zipalign run as boot ?
[Android Software/Hacking General [Developers Only]] k4t5u:
wow, what I really need to
[Android Software/Hacking General [Developers Only]] iXNyNe:
Yes it can, it may slow down your boot up time occasionally but it shouldn't be always.
[Android Software/Hacking General [Developers Only]] schwarzerkreuz:
Yes I'm on i9000.

Thanks.

Inviato dal mio GT-I9000 usando Tapatalk
[Android Software/Hacking General [Developers Only]] schwarzerkreuz:
I installed using CWM ThunderBolt-CWM_v2.7.5.zip and ThunderBolt-CWM_3G_i9000_addon_v1.0.5; I applied instructions in first post.

Using Root Explorer I navigated in /system/etc/init.d/ and I found S70zipalign, S093G_tweak, S98system_tweak and S99complete, but not S98CFS.

Can I manually copy S98CFS from /etc/bolt_scripts/CFS/ and paste it to /system/etc/init.d/?
[Android Software/Hacking General [Developers Only]] iXNyNe:
Yes, don't forget to chmod to 777

Also try just installing the main zip, no 3g add on. See what that leaves you with.
[Android Software/Hacking General [Developers Only]] pikachu01:
The S98CFS was moved to bolt_scripts so that people who want to use it can use Script Manager or move it manually to init.d if they want to use as some people reported slow-downs on certain phones if S98CFS is used (though there are other choices in the CFS folders, hence you need to find out which is the best for you).
[Android Software/Hacking General [Developers Only]] schwarzerkreuz:
It means that I have launch /etc/bolt_scripts/remounti9000 as Root and as Boot? Yes, I did.

Thanks.

Thanks.
[Android Software/Hacking General [Developers Only]] spambayes:
I was referring to Thunderbolt 2.7.4. :)

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] Fishmanzero:
Using with my Internal storage broken Captivate, this gives it the normal speed...

/data on External SD is so laggy just like a nightmare without Thunderbolt.:(
[Android Software/Hacking General [Developers Only]] pikachu01:
Don't understand your post. Can you clarify? :)