yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kaz93:
In my init d folder only contains zram,frandom,darky zipalign ,your s91supercharger, and your s98 system tweak.

there is also no tweaks that I could see in the build prop that might affect the lmk except thunderbolt ones

However, this script really works well with my phone even with above small error since that my phone has quite low available ram around 350mb, your approach did wonders compared without keeping my launcher constantly in memory that crippled my phone's performance.
[Android Software/Hacking General [Developers Only]] pikachu01:
That's how it should be. Launcher wouldn't be kept at a huge expense of performance and memory. It should be killed when necessary.

Might be your ROM causing or kernel causing the values to be like that? Not sure. Or an app that tweaks memory.
[Android Software/Hacking General [Developers Only]] kaz93:
I dunno. I had removed most of the tweaks regarding LMK that came with the rom and the kernel that I currently used offers optional lmk optimisation tweak setting, which I didnt use. Its okay though, my phone felt snappier and smoother already thanks to the script. The best thing about owning an outdated piece of hardware is that any improvement or decline in performance caused by tweaks are very noticeable and I can say that Thunderbolt is surely not a placebo.
[Android Software/Hacking General [Developers Only]] pikachu01:
Might be your ROM modifying different parts of the LMK that kept some ADJ static.
[Android Software/Hacking General [Developers Only]] dark_knight35:
Okay, thank you! In the meantime I got another problem: I disabled fs debug and something else in the kernel, flashed it and now my phone bootloops. I was able to get it into download mode, but neither Windows nor Ubuntu now detect it. Did I mess up so much that the only solution is sendig it in, or is there anything I can do?
[Android Software/Hacking General [Developers Only]] pikachu01:
Tried another USB port or cable?
[Android Software/Hacking General [Developers Only]] dark_knight35:
Oh, it's working again. I tried all ports and cables, also tried uninstalling the drivers. Didn't help, but another computer detected it flawlessly.
[Android Software/Hacking General [Developers Only]] thewaywardgeek013:
Hi pika, I'm just weirded out about the LMK Scripts, according to the OP, LMK Scripts are not applicable to AOSP Based Roms from ICS+, but according to this changelog:

So, is there an LMK for AOSP ICS Based Roms? Also just read your OP that because of lowMemory and LRU Flags, JB Roms are not compatible to with any LMK settings, so is there no way to configure the LMK in order to change its values with optimal ones? Or are we just stuck with what the JB Rom LMK offers us? Just a newbie learning the ins and outs of LMK. ;)
[Android Software/Hacking General [Developers Only]] ulvergr:
Time for the testing!
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, due to how LMK in JB works, hacking the adj will prove disastrous. Best to just leave it be.
[Android Software/Hacking General [Developers Only]] thewaywardgeek013:
BTW while trying your script out with my JB Rom(Jellytime for DHD R30), I recently found that line 190, specifically this code

page_size=`cat /proc/sys/kernel/shmmni`;

Doesn't pull-up anything, is it because of JB Changes? And is it alright to just comment it out as not to throw errors?

Also one more thing, the JB Rom I'm using has ZRAM in it, and is enabled by default, is it alright to enable the swappiness to 70 or is it better to just comment it out and disable the ZRam altogether?
[Android Software/Hacking General [Developers Only]] pikachu01:
ZRAM slows down your device somewhat if you're using ARM devices. Not in x86 though.

About that line, I'll do some investigation.
[Android Software/Hacking General [Developers Only]] thewaywardgeek013:
ISSUE with the Screen State Scaling v3.0 w/ JB ROM(Specifically cm-JellyTime R30, CM10 Based Rom), Phone does not boot-up after flashing. Maybe Previous Issue you mentioned is still affecting some CM10 Based Roms.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. Probably.
[Android Software/Hacking General [Developers Only]] Perseus:
Pika, I am trying to install and execute on T-Mo Galaxy S3 SGH-T999. I have a JB 4.2.2 based ROM (Liquidsmooth) Kernel KT747 running. Based on my search so far on this thread, your recommendation had been to use remountNexus4 for Remounting.

When I went to flash the 3 Zips,

signed_ThunderBolt-CWM_v3.1.1.zip, AKA Main Zip

signed_ThunderBolt-CWM_screenstate_scaling_addon_v3.0.zip, AKA Screenstate Zip

ThunderBolt-CWM_libsqlite_4.2_JB_addon_v3.0.2.zip, AKA Sqlite Zip.

Of these, the main zip and Screenstate flashed fine. Sqlite aborted with the error "You're applying this tweak on the wrong Android version!" Digging further, the updater script for the Sqlite actually prohibits installing to 4.2.2. However your OP message does mention compatibility to JB.

Can you let me know if I need to get a different version of your Sqlite zip file ? Or is it that Libsqlite is not needed on JB 4.2.2 ?

Would I need to remove the GetProp statements from the script as you suggested bellow for ICS ?

EDIT - After proceeding with the rest, I had Errors with the SQLITE_Optimize and NEXUS4 Remount. The ones with remounting were expected given its not for my Phone. But the one with Sqlite were quiet different. Screenshot attached. Can get any log you'd want.
[Android Software/Hacking General [Developers Only]] pikachu01:
Some custom ROMs provide the wrong prop entries leading to wrong detection. You can disable the check for the libsqlite zip by deleting the line that prints that message.

For the sqlite binary, the same thing. It detects it wrongly. Manually extract the binary from the sqlite_jb directory in the main zip.
[Android Software/Hacking General [Developers Only]] Perseus:
Pika, I manually extracted the files from the System_JB folder as well as the ones in the SQLITE zip. Still when I run the SQL script manually with SU grants, it gave me more errors about missing sqlite3 missing binary.
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you chmod the file permissions to 755?
[Android Software/Hacking General [Developers Only]] Perseus:
I went to recovery and hit "Fix Permissions". I thought it would do 755 to entire system partition.. Oh well, we learn. Will try that next. Thanks Pika!
[Android Software/Hacking General [Developers Only]] pikachu01:
Did it work? :)
[Android Software/Hacking General [Developers Only]] .:Crack:.:
So pika,

did you have time to look at row yet?

You may want to look at SIOPlus, too!
[Android Software/Hacking General [Developers Only]] pikachu01:
Couldn't get to it. Sorry. My dad's in the hospital now.. :( don't think I will get to it in these few weeks. Sorry
[Android Software/Hacking General [Developers Only]] Rebel2k:
Oh too bad. Wish the best for your father. Good luck.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Android Software/Hacking General [Developers Only]] Lefteris Fragiadakis (Frago):
Yes good luck for ur father
[Android Software/Hacking General [Developers Only]] :
Sad to hear that bro, wish him good luck,

Sorry for off topic
[Android Software/Hacking General [Developers Only]] slaid480:
Good luck with your father dude!
[Android Software/Hacking General [Developers Only]] nosense10:
thansk
[Android Software/Hacking General [Developers Only]] Perseus:
Sorry to hear that Bro. Family comes first before anything. Take care of him. He's a special person.

My Kernel and my ROM suddenly decided to fight with each other. So my phone started to Freeze. It has nothing to do with this mod.

I am still recovering from it. Will do it in a day or 2.
[Android Software/Hacking General [Developers Only]] :
[MENTION=2352735]nosense10[/MENTION] Why you quote the entire OP just for thank, there is a thank button , just hit it, this is nonsense you know :mad::banghead::thumbdown::thumbdown:
[Android Software/Hacking General [Developers Only]] pikachu01:
Thanks for the well received thoughts guys.
[Android Software/Hacking General [Developers Only]] kotaxor:
Take care yourself too!

Sent from GT-I9100 LSD stock rom
[Android Software/Hacking General [Developers Only]] eushaun99:
He even spelled "thanks" wrong lol.
[Android Software/Hacking General [Developers Only]] scapper:
I get invalid instruction even though my busybox is updated to the latest one from stericson whenever I run the sqlite script. It's in /system/xbin/ and I'm pretty sure my busybox works correctly since every other script and root apps work perfectly fine. I've tried fixing permissions and even reflashing but the problem hasn't gone away.
[Android Software/Hacking General [Developers Only]] Perseus:
Ok Pika, So the battle of my kernel and my rom has a truce now. So I went back and flashed again. Followed through the steps without flashing the SQLITE zip. Instead extracted all the pertinant files with required permissions. Also extracted system_jb from the main zip file, also granted correct permissions.

After the Scriptmanager stuff and one Reboot later, here I am. As it stands, I skipped on copying Zipalign file to init.d. I know (and confirmed) that my ROM developer did Zip align before posting and my apps were already zipaligned. So I will run the darky script every time I install something.

I did go through the steps that help you test to make sure the process was successful. My Dirty_Ratio and all seem to be in the right range given my 2 GB Ram.

Now here are my 2 questions.

1. I use a special Governer from my Kernel called Ktoonservative. This is a hot pluggng derivative of the Conservative Governer. Based on what I read, the scripts modify some of the other governers. So how do I gauge the effectiveness of the overall process ? (Pretty dumb question but needed given my next question.)

2. I know you did try and apparently were shot down trying to post on SGH-T999 or other Variant Devices forums. I wish to help other SGH-T999 owners reap the benefits but also know they won't be coming here unless pointed to. So what do you think I can do to help them use ? I could make my own thread with SGH-T999 specific thread. (Of course with Due Credit. Duh!) What do you think ?
[Android Software/Hacking General [Developers Only]] Exit_Only:
Hope your father gets well soon. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
1. You gauge it by the battery life and performance that you have. If it's smooth for you and it doesn't drain too much battery, you're good :)

2. Hmm, point them over this thread. I can't keep track on a lot of threads. Even my subscribed threads, I haven't touched them for over a week. Thanks for understanding :)
[Android Software/Hacking General [Developers Only]] Perseus:
Just to confirm that I didn't miss, (Given I am on JB), per OP, only scripts that are good to execute are the ones covered by OP sub section Instructions correct ?

Also how about the Governer question I asked ?

Yes I do understand. Given there isn't a direct remount for SGH-T999 & its ATT version, I was wondering if a thread with bit of device specific instructions would do any good ? If you wish, I can open the thread and ask the specific minded ones over here, while keeping those needing basic hand holding away from here. I won't ask or expect you to subscribe or answers any questions on that thread.

The reason for this suggestion, lies in the fact that, for KT747 Kernel's OverClock & Undervolt settings, there have been platform specific threads with a vibrant community. The kernel developer rarely has to spend quality time on such threads. Let me know your thoughts.

Thanks Pika for the time much Appreciated.
[Android Software/Hacking General [Developers Only]] scapper:
[MENTION=3599329]pikachu01[/MENTION] can you please help me with this? Thanks :)
[Android Software/Hacking General [Developers Only]] pikachu01:
I haven't optimize ktoonservative yet. I might if I have the time for it.

As I remember the remount for SGH-T999 is the same as the SIII remount as it's a similar model.

Well, if you can maintain the thread, that's alright, though I'm not sure if the mods will try to delete the thread and point to this one instead.

Can you try extracting /system_jb/xbin/sqlite3 into /system/xbin then make sure the chmod is 755?
[Android Software/Hacking General [Developers Only]] Perseus:
I will open & maintain the thread. Will ask the Mods for their blessing as well.

I used your Advice of using Nexus 4 Remount and that seemed to do well. I didn't try I9300 Remount. Now that you mention it, which between the 2 would you prefer ?

Ktoonservative is a derivative of Conservative. So if you have modified Conservative, then that same thing can re-apply to Ktoonservative.

Kindly let me know.
[Android Software/Hacking General [Developers Only]] scapper:
I'm on GB 2.3.7 and sqlite3 is already in /system/xbin with chmod 755
[Android Software/Hacking General [Developers Only]] pikachu01:
I don't actually remember the contents of your mount output. If I suggested Nexus4, you should stick with it :) I was only considering how close the SIII is to your phone.

Yes, you can use conservative tweaks to Ktoonservative.

Then extract sqlite_gbics. It might have extracted the wrong sqlite3. Sorry, just read the history of our posts and I got the scenario you're in.
[Android Software/Hacking General [Developers Only]] Perseus:
Thanks Pika! I will re-post when I have the post up and running.

(Note The Thanks button has been pressed.)

EDIT - Would it take too much of your time, if I asked you to include Kttoservative in your script knowing it has same settings as Conservative ? The only reason I ask is that for each future editions, I'd have to modify your scripts for this.
[Android Software/Hacking General [Developers Only]] mahesh48:
Can I flash this mod on my HTC wildfire s running 4.1 custom rom
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. :) Be sure to read the first post for instructions.
[Android Software/Hacking General [Developers Only]] scapper:
Had a problem doing adb push probably because of no extension so I used Root Explorer to copy and paste the sqlite3 for GB. Right when I pasted my phone went into bootloop :/ So I went into recovery to fix permissions and then chmod sqlite3 to 755 and even 777 but still bootloop. Decided to Nandroid what I got and reflash the ROM and extract my data from it later. Got status 0 error while flashing Thunderbolt and its addons but flashed other .zips perfectly fine. :eek:
[Android Software/Hacking General [Developers Only]] Exit_Only:
This will fix the status 0 install aborted error inside recovery during flashing.

Thunderbolt unofficial v3.1.2 LONG OVERDUE :P

http://www.mediafire.com/?g1dsb69akj0r9ol
[Android Software/Hacking General [Developers Only]] defiant07:
Hey [MENTION=3599329]pikachu01[/MENTION],

First of all, thanks for all you labours developing this mod. Being that is seems you designed your mod with swap users in mind, I was wondering if it would be cool with you if I use your sysctl tweaks from S98system_tweak in a marginally modified form as an additional option in my swap script. Proper credits would of course be given in the OP and noted in the code. Many thanks and much respect...even if you say 'no.'

peace
[Android Software/Hacking General [Developers Only]] mahesh48:
How to remove or uninstall this script
[Android Software/Hacking General [Developers Only]] Cartman44:
Read the OP.!!
[Android Software/Hacking General [Developers Only]] mahesh48:
I m getting status 0 error while flashing restore script also plz help me to overcome status 0 error
[Android Software/Hacking General [Developers Only]] eushaun99:
Replace the update binary in the restore zip with one that works for you.
[Android Software/Hacking General [Developers Only]] pikachu01:
Please don't release binaries without permission from the author. You always find a way to piss people off you know.

And your solution isn't the correct one either. Some updater_binary files aren't compatible to some phones due to their version of CWM (yes some phones are still using CWM 3.0)

Yes, as long as you link it back to the thread. It's fine :)
[Android Software/Hacking General [Developers Only]] Exit_Only:
Just returning the favor bro!!! Remember when you pissed me off ;) Enough said. The update binary is from the universal gapps released by CM team.

Want to be direct injected? View my thread!!!
[Android Software/Hacking General [Developers Only]] pikachu01:
Compatible with CWM 3.0?

That incident was because you were kanging. I don't really want to discuss this.
[Android Software/Hacking General [Developers Only]] Exit_Only:
Its gapps for cm10.1 so no

Want to be direct injected? View my thread!!!
[Android Software/Hacking General [Developers Only]] defiant07:
Much thanks ;), but I got impatient, did a bunch of reading, some testing, and came up with my own numbers, but should I find they cause problems for users, although I doubt they should, I may switch the values to the ones you use (in which case I will most definitely credit and put a link to your OP in my OP).

Kinda random question, I am curious why your values for dirty ratio and dirty background go down as ram goes up :confused:?

I decided to go in the opposite direction and increase the dirties as ram goes up...my logic being higher ram devices don't need to write to disk as often to free up ram (i.e. they can keep more stuff in ram cache relative to a low ram device and still have enough free ram to perform smoothly). But, perhaps my logic is flawed and I misunderstand what these parameters control...it wouldn't be the first time :p.
[Android Software/Hacking General [Developers Only]] pikachu01:
I based that off the NAND Flash's I/O speed and how much dirty memory can be written back from that size. With the higher amount of dirty memory, your apps will lag/freeze when pdflush kicks in as it is writing a higher amount of dirty memory.
[Android Software/Hacking General [Developers Only]] defiant07:
Ahh, interesting never thought to look in to nand flash i/o speed. But, none the less shouldn't higher ram devices be able to keep more dirty memory, so shouldn't the values increase (but not too high because as you noted it will create memory bottlenecks) instead of decrease? Here's what I ended up doing:

accramkb=\`awk '/MemTotal/{print \$2}' /proc/meminfo\`
if [ "\$accramkb" -lt "524288" ]; then
busybox sysctl -e -w vm.dirty_background_ratio=20
busybox sysctl -e -w vm.dirty_ratio=40
elif [ "\$accramkb" -lt "1049776" ];then
busybox sysctl -e -w vm.dirty_background_ratio=30
busybox sysctl -e -w vm.dirty_ratio=60
else
busybox sysctl -e -w vm.dirty_background_ratio=40
busybox sysctl -e -w vm.dirty_ratio=80
fi
busybox sysctl -e -w vm.vfs_cache_pressure=50
busybox sysctl -e -w vm.dirty_writeback_centisecs=3000
busybox sysctl -e -w vm.dirty_expire_centisecs=1500

It's kinda a hybrid/compromise of your ideas and KAK, but with a bit of my own perhaps flawed logic :).
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm no. As I've explained, the higher the dirty memory you keep, the more RAM it's going to flush to disk when pdflush kicks in. If it's too much, it'll stall as it waits for the I/O to flush to disk.

vm.dirty_*_ratio is a percentage of the RAM. How much memory would you like to keep dirty when the apps you use don't even amount to few hundred MBs per session.
[Android Software/Hacking General [Developers Only]] defiant07:
Many thanks for edifying me and humoring my dumbness...I now see the logic of the decrease :good:.

I am going to adjust my numbers in accordance with yours...I will of course credit you and link to your OP ;).

Cheers!
[Android Software/Hacking General [Developers Only]] a g bell:
Should this work on jb 4.3?
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without problems (except for the libsqlite. I'll need to find time to compile it for 4.3).
[Android Software/Hacking General [Developers Only]] grfunari:
I tried to install the i9505 galaxy s4 unsuccessfully to have to perform some specific procedure?
[Android Software/Hacking General [Developers Only]] damathos:
sqlite_optimize

Hello,

I've installed you package, but when I launch the sqlite_optimize script with SE, I have only a whole bunch of the same error messages:

reloc_library[1308]: <a number from 2475 to 2784> cannot locate 'sqlite3_enable_load_extension

CANNOT LINK EXECUTABLE

Any idea ?

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Which CWM zip did you install and what error are you getting?

That is due to the script detecting the build.prop wrongly. I'll need to update it. Meanwhile, please extract sqlite3 binary from system_jb/xbin and make sure the permissions are rwx-rwx-rwx.
[Android Software/Hacking General [Developers Only]] damathos:
I've checked, and sqlite3 is rwxrwxrwx...
[Android Software/Hacking General [Developers Only]] pikachu01:
It extracted the wrong sqlite3 binary. Instead of extracting sqlite_jb in the CWM zip, it extracted the sqlite_gbics. Extract the sqlite3 from sqlite_jb and make the permissions rwx-rwx-rwx.
[Android Software/Hacking General [Developers Only]] damathos:
I've extracted it, and tried to make permissions rwx rwx rwx using root browser, but it doesn't want to change permissions (I am not a total noob, I can follow instructions, but I thought that changing permissions was easier than that :confused: )
[Android Software/Hacking General [Developers Only]] damathos:
As far as I know, I can not modify the permissions of such a file if it is not in /system, and /system is mounted as R/W.

So, if I extract the .zip somewhere in system (after mounting it R/W), then modify the file's permission as indicated, then re-zip and copy the package to a folder where it is accessible for CWM (/sd_card or external sd_card), then flash it, will it work ? (I mean, the permissions will still be valid, even if the .zip is in /sd_card ?)

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Extract the sqlite3 binary to /system/xbin and make the permission rwx rwx rwx
[Android Software/Hacking General [Developers Only]] damathos:
Just did that, and when I launched the script, I have:

SQlite header and source version mismatch
[Android Software/Hacking General [Developers Only]] pikachu01:
This is weird. What phone and OS version are you using?
[Android Software/Hacking General [Developers Only]] damathos:
I am using a LG L9 P769 (T-Mobile), Jelly Bean 4.1.2, software version is 20f.

Phone is rooted, has BusyBox and SuperSU, CWM, init.d support.
[Android Software/Hacking General [Developers Only]] pikachu01:
I think libsqlite.so didn't extract correctly too. Try extracting libsqlite.so and chmod rwx-rwx-rwx permissions.
[Android Software/Hacking General [Developers Only]] damathos:
I am sorry, but I cannot find libsqlite.so in your package... :confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
Sorry, it's supposed to be libncurses.so. so sorry for the mix up.
[Android Software/Hacking General [Developers Only]] damathos:
No problem ;).

I tried to extract it in system/lib, but still have that "SQlite header and source version mismatch" error :confused:.
[Android Software/Hacking General [Developers Only]] Exit_Only:
What version of android are you on?

Want to be direct injected? View my thread!!!
[Android Software/Hacking General [Developers Only]] damathos:
JB 4.1.2...

(software is T-MOBILE, LGP76920f)
[Android Software/Hacking General [Developers Only]] Exit_Only:
Flash this in recovery - http://www.mediafire.com/?veew6l0hvtr54h4

Its only the proper sqlite binary for your version of android. The scripts will run properly after flashing this!!!

Want to be direct injected? View my thread!!!
[Android Software/Hacking General [Developers Only]] damathos:
... sorry, still doesn't work. Same error :crying:.
[Android Software/Hacking General [Developers Only]] Exit_Only:
Sorry :(

Want to be direct injected? View my thread!!!
[Android Software/Hacking General [Developers Only]] pikachu01:
system_jb/lib?