yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
Memento might be using some clever sqlite techniques to make sure fsync doesn't bog down their database. This backfired when fsync is completely disabled. It's an app problem rather than a sqlite problem as disabling safety_levels is a documented sqlite behaviour.

It's for all versions. It seems the Fascinate MIUI are the only ones facing this.

Yeah, as I've mentioned, I've only seen Fascinate MIUI facing this problem.

I still need 3G calling as well as 720p video playing (I know Galnet fixed 720p video playing, but stuttering still occurs).
[Android Software/Hacking General [Developers Only]] flolep:
Hey pikachu. First thanks for these scripts that seem to even improve performances on semaphore 1.8 kernel.

But do you think there is a possibility that they are cutting support of hsdpa protocol that I can have here in France?

I am only able to attain 3g debit...

To get back hsdpa, I have to do the command to put it on (but when I check it with the check command, it's already on), then toggle data off, 2g / cmda off / on, wait a little and it goes back to hsdpa debit...

But when I reboot, boom, 3g only again...

Do you think the problem comes from your scripts or from the kernel?

Thanks in advance.

And... Keep up the good Linux research, you are really good at that :p

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] sinichi21:
I just tried this on a fasty kj2 rom along with the samurai kernel which is kj3, seems to be smooth but when i play angry birds seems it aggressively constantly kill the background apps that sometimes it renders lag while playing with it.
[Android Software/Hacking General [Developers Only]] pikachu01:
I might need to make the 3g tweaks separate since there are devices that have different 3g configurations. Let me look into this :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me experiment on this with angry birds and get back to you :)
[Android Software/Hacking General [Developers Only]] sinichi21:
thanks its angry birds season to be exact :D
[Android Software/Hacking General [Developers Only]] eliteforce:
want to ask Pikachu01

1) i tried to convert system to EXT4 but phone writes that i don't have enough space at|system but - i have abot 40 mb free! Other partitions converted allready :eek:

2) in your Requirements Ext4 lagfix if you want to use the remount script

Can i use it?
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika pika, for your information, both of my angry bird apps "Angry Bird RIO" and "Angry Bird Seasons" is play with pretty smooth in my device. It is smoother than before I put your script in. ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
CF-root ext4 converter? Yes, there's a bug there that needs you to convert your system twice to get it converted (from what I've read around the forums).

Yes, you must have ext4 lagfix to use the remount fix. You can still use the remount script while still in RFS, but any problems from there onwards will not be supported by me.
[Android Software/Hacking General [Developers Only]] sherpa25:
quick feedback pika... after 36 hours w/o reboot, I'm now starting to have more apps getting closed more frequently. I even tried increasing priority (i.e. lower value) of one app I'm particular with (WidgetLocker) through Auto Memory Killer but it didn't seem to work. I'll leave it overnight and see how it holds up until tom am.
[Android Software/Hacking General [Developers Only]] pikachu01:
Apps getting closed is a normal situation. In fact, the 512HP ones are more aggresive than what I'm using. It's called LowMemoryKiller for a reason ;)

It's always a pull between having to cope with lagginess or having to reopen apps back again.

Your choice.

I would prefer not to have lagginess as reopening an app takes only about 1 second.
[Android Software/Hacking General [Developers Only]] eliteforce:
i tried with kernel Midnight its also have kernel option in recovery to convert RFS-EXT4 - it cant help me!

tried CF-root ext4 converter for may times and Nothing helps!
[Android Software/Hacking General [Developers Only]] pikachu01:
You have to bring that up to the kernel developer. Might have some problems with the converter or your system configuration. :)
[Android Software/Hacking General [Developers Only]] Guto ViP:
Pikachu, maybe 1.6 version have LMK too high, because phone application close more of three times when you select a contact using dial number to find it, can you (or me) solve this?. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me research some more on this :)
[Android Software/Hacking General [Developers Only]] geokilla:
Ditto. I have Messaging closes on me 3 times, and sometimes I don't even get notified that I received a text.
[Android Software/Hacking General [Developers Only]] pikachu01:
You guys are sure that you're not using any other LMK/OOM settings other than ThunderBolt!'s right? i.e. Supercharger or Juwe's ram scripts etc? Are you sure you've removed them completely?
[Android Software/Hacking General [Developers Only]] Guto ViP:
I'm using ElinROM 2.1 (comes with version 1.4 of Thunderbolt, but i updated it for 1.6).
[Android Software/Hacking General [Developers Only]] sherpa25:
Yup, it just started to close more frequently, but responsiveness is persistent, so I agree it's relatively better to reopen an app than have lags.

I'm quite sure I don't have supercharger stuff anymore, when I removed them from your previous advise. Not sure about juwe's though, which are those? I only have 5 scripts (_99ramset, S98screen_scaling, S98system_tweak, zipalign, and S_volt). Or could it be the lower voltage settings? I'll try bringing it back all to 100% again.
[Android Software/Hacking General [Developers Only]] pikachu01:
If you don't have any files other than ThunderBolt!'s except SVolt_scheduler (for UV/OC using Voltage Control etc) or ramset (for Talon), you're fine :)
[Android Software/Hacking General [Developers Only]] mab71:
Hey there Pika... I thought supercharger was bundled in together with thunderbolt!? Shud i delete it in the init.d folder?
[Android Software/Hacking General [Developers Only]] pikachu01:
It is bundled (only the script, not the LMK/OOM setting as the LMK/OOM setting was created by me). Hence why you shouldn't install Supercharger again on top of it. And it should be removed before installing ThunderBolt!
[Android Software/Hacking General [Developers Only]] s30ckf:
Do we still need to use Auto Memory Killer on top of TB 1.6 ??
[Android Software/Hacking General [Developers Only]] pikachu01:
You can use it to monitor your apps, but don't use it to tweak :)
[Android Software/Hacking General [Developers Only]] Rebel2k:
For me that's exactly the same. After a few hours my phone app is closing while in foreground (when I type a number or open the call log) and even with GoSMS when I'm typing a message...

I'm sure I have no other tweak as I reinstalled my phone totally 2 days ago in JVT stock...

I don't understand how it is possible than a foreground app is killed by the LMK... :(
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey hey... just to clarify...

ThunderBolt's minfrees are 14, 18, 32, 40, 52, 60

512 HP UnLedded (Multitasking) are 6,12, 40, 60, 80,100

Obviously, mine are less aggressive on the low end but that doesn't really matter, generally, because RAM doesn't usually get that low when you have good LMK values.

The huge factor for me is Secondar Server apps.

Less obvious is that "secondary server" apps get killed at 40 MB on BOTH of the above configurations.

Why?

Because I have them in slot 3, ThunderBolt has them in slot 4. Both are 40 mb.

What are secondary server apps?

Well, first, nevermind the definition - it's all semantics anyway ;)

When you are in an app and hit the back key, or home the home key, it moves from Foreground App (slot 1) to the secondary server slot... ie. slot 3 when supercharged, slot 4 when thunderbolted :D

Also, the secondary server minfree plays

the biggest factor in how much free ram you typically have.

Again, that's 40 mb on both configurations.

Another difference is that I include Perceptible and Home apps in slot 2 and those fall in slot 3 when ThunderBolted.

So I basically moved everything forward a slot ;)

So in regards to better multitasking... look at Hidden Apps... they are in slot 5 in ThunderBolt (52 mb) and slot 4 in the SuperCharge example (60 mb).

So yes, ThunderBolt is more multitasking friendly when it comes to Hidden Apps, but it's not the 52 mb vs 80 mb that you can easily assume just by looking at the LMK values.

So I also have extra space in slot 5... when a hidden app is idle, it's priority will diminish and fall into slot 5.

It will either do a task and move back up to slot 4, get killed, or fall into slot 6 and get killed.

I'm not saying what's better, I just wanted to clarify what the differences are ;)

One thing that you can try to enhance multitasking is to make Hidden Apps the same minfree value as Secondary Server or slightly higher...

Say... 14, 18, 32, 40, 52, 60 becomes something like 14, 18, 32, 40, 40, 60.

Your typical free ram will still be about 40mb when you're running alot of apps but multitasking won't be diminished until you hit 40 mb free.

They still get killed before Secondary Server apps because of their priority value.
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika pika, just a quick feedback on the battery usage in this v1.6 over v1.5.1. In v1.6 phone overnight till next morning, about 7 hours ++, the battery drop 5%, where v 1.5.1 is 2%... for day time normal usage up to my office lunch time, in v1.6 the battery will left 60-65%, where in v1.5.1, it will have 75-80%..... I cannot guarantee the phone usage for morning till lunch time is 100% identical, but it consider a moderate usage.

Until now, I didn't encounter issue that apps suddenly auto close....
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool :)

My thoughts are the same as yours actually. My lower LMK values are too aggressive and I need to tune it down a notch.
[Android Software/Hacking General [Developers Only]] Rebel2k:
Interesting explanation! Do you think changing those values with the ones you propose could help not to kill foreground app?
[Android Software/Hacking General [Developers Only]] pikachu01:
Actually, the slots themselves don't change, but the app category changes. If slot 5 is unused, it will never be used.

The app categories though can change from being a HIDDEN_APP to EMPTY_APP, and if HIDDEN_APP is 7 and EMPTY_APP is 15, it jumps from 7 to 15 :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Foreground apps are in slot 1 so you'd have to lower that for a direct effect.

TB's /data/SuperChargerMinfree looks like this:

3584,4608,8192,10240,13312,15360

Divide each number by 256 to get the MB value.

So if you want to lower foreground app's minfree to say 8 MB, you'd just replace the 3584 with 2048 (8 x 256 = 2048 :))

---------- Post added at 12:45 PM ---------- Previous post was at 12:43 PM ----------

That's incorrect... If I boot up and immediately run Auto Memory Manager and keep refreshing the OOM Groupings page, I see alot of background/start up app activity and I see stuff dropping to slot 5 with a priority value of somewhere between 8 and 14 before they get killed... usually a 9.

So when ThunderBolted, you can boot up, load AMM and goto the OOM groupings feature.

Keep refreshing and you'll see stuff in the Empty App slot 6 with values that are not 15.

Also, android doesn't move an app from say foreground to secondary server or hidden.

It's priority number changes based on a variety of things - inactivity, badness score (hence the name "renice" for eliminating a bad score),etc.

So once it's priority number changes, whatever that may be, then it will fall into another slot - the slot is determined by the 6 "upper limit" values in the adj file.
[Android Software/Hacking General [Developers Only]] pikachu01:
That's weird, I am seeing the OOM groupings of AMM being different in terms of CONTENT_PROVIDER and HIDDEN_APP, hence I paid not much attention to its authenticity.

I'm seeing that the direct memory clearing happening though (through free RAM) by tuning the HIDDEN_APP to its direct OOM_ADJ number rather than having a number higher or lower. It seems to wait a while to free up memory and only free up memory when memory is lower than 60MB when it kills HIDDEN_APP in Supercharger. That's how I came into the conclusion that OOM groupings have to be exact.

Edit: Once I thought more about this, I think that the Dalvik related ones are the ones that requires the exact OOM, and is somewhat correlated to the Linux OOM. The ones in AMM might be referring to the Linux LMK (or it might be Dalvik's?).

However, to make both Dalvik and Linux be efficient at killing (killing the app but leaving the Dalvik cache might be counterproductive, I think?)

Hence, my conclusion is still the same, the Linux LMK OOMs have to be the exact number to free up RAM efficiently.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yeah I ignore the "labels" that's why I always say "slots" :p

I mean secondary server apps are still secondary server apps... that's what they are, and on froyo they are indeed in the slot 3 SECONDARY_SERVER group.

But on gingerbread they are in the "HIDDEN_APP" grouping - slot 4.

So I just say it's in slot 4 :p

Sure, it sounds a little dirty but there is no confusion lol

Well, based on articles I read, once the lowmemory killer starts killing apps in a grouping, it kills the higher numbered ones first in that grouping and works it's way to low numbered/higher priority apps.

So if it's looking to kill stuff in slot 4, it goes after the higher number first.

If you look at your init.rc file, you even see APP_ADJ values that DO NOT correspond to any of the 6 adj parameters ie. they will have an ADJ values that is not equal to any of the stock adj's of 0,1,2,4,7,15.

# Define the oom_adj values for the classes of processes that can be
# killed by the kernel. These are used in ActivityManagerService.
setprop ro.FOREGROUND_APP_ADJ 0
setprop ro.VISIBLE_APP_ADJ 1
setprop ro.PERCEPTIBLE_APP_ADJ 2
setprop ro.HEAVY_WEIGHT_APP_ADJ 3
setprop ro.SECONDARY_SERVER_ADJ 4
setprop ro.BACKUP_APP_ADJ 5
setprop ro.HOME_APP_ADJ 6
setprop ro.HIDDEN_APP_MIN_ADJ 7
setprop ro.EMPTY_APP_ADJ 15

from the same file init.rc file:

# Write value must be consistent with the above properties.
# Note that the driver only supports 6 slots, so we have combined some of
# the classes into the same memory level; the associated processes of higher
# classes will still be killed first.
write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15

HHEAVY_WEIGHT_APP_ADJ, BACKUP_APP_ADJ, and HOME_APP_ADJ don't match up - even though it's ADJ value of 6 doesn't "match" any of the 6 adj values, we all know that HOME_APP

efficiently

gets killed on this stock configuration ;)
[Android Software/Hacking General [Developers Only]] Guto ViP:
So, what need to do to LMK dont kill phone and another important programs?
[Android Software/Hacking General [Developers Only]] Rebel2k:
Yes I'm in to test news values!
[Android Software/Hacking General [Developers Only]] tanjiajun_34:
The remount script is affecting MIUI's music player. It caused the MIUI player to only display all the songs in my internal sd and not external sd. When I try to refresh in the miui player, songs in my external sd did show up but then my phone will lag bady until I restart my phone....
[Android Software/Hacking General [Developers Only]] geokilla:
Just your script.
[Android Software/Hacking General [Developers Only]] rom08:
Can't this be related to talon ? Does this happen with other kernels too? I encounter the problem too with talon. Now I try with semaphore to see if the problem happens also.
[Android Software/Hacking General [Developers Only]] Rebel2k:
I'm using Semaphore and I face this issue too...
[Android Software/Hacking General [Developers Only]] rom08:
Ok thanks for the info
[Android Software/Hacking General [Developers Only]] topiratiko:
pikachu01

just flashed.

Opened script manager and cant find boltscript remount as root anywhere. just remount cm7 remount19000 and i9001 what am i doing wrong?
[Android Software/Hacking General [Developers Only]] goodolsen:
Use the remount I9000, unless you are on CM7.

Select Run as root and Run at boot.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hey guys, I will be experimenting new values of LMK and will be releasing it soon in a day

Can you guys provide miui music apk here? Let need try it. Stock seems to be fine for me.
[Android Software/Hacking General [Developers Only]] Guto ViP:
All stock here. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Are you getting the sdcard issue too? I.e. the music from sdcard I'd missing?
[Android Software/Hacking General [Developers Only]] Guto ViP:
I dont have music inside sdcard, I use very little to listen to music. :p
[Android Software/Hacking General [Developers Only]] pikachu01:
Hey guys, to those who are experiencing any problem, please include details like:

- Device name

- ROM name

- Kernel name

- Any more tweaks that are included

- What you did before experiencing the problem

Makes it easier for me to troubleshoot :)

Easier for me to troubleshoot = easier for you to get the fix asap.
[Android Software/Hacking General [Developers Only]] mab71:
Im also experiencing a little more drain on v1.6 Pika...like someone from malaysia that always calls you pika pika i think(forgot his id and cant seem to find his post to quote) mentioned earlier. 1.5.1 was better for me too. Other than that all's fine here...
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmmm, reducing fsyncs should drain less battery. Not sure why more battery is draining.

Remember that battery drain is non-linear. At certain battery percentages, they can "feel" more draining than when it's at a certain percentage.

I know that battery at ~ 95%-100% and 1-15%(also due to display being dimmed) drains more slowly.

But you're right, I do feel having faster sqlite transactions seem more draining. More load to the CPU (since CPU is not kept waiting, hence higher CPU usage, but faster transaction?)
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, it's more draining for me too but not really too drainnig. My theory is on the last post :)
[Android Software/Hacking General [Developers Only]] geokilla:
MIUI Music at the top.

http://jdvhosting.com/MosaicOTA/other.php?ROM=Mosaic
[Android Software/Hacking General [Developers Only]] mab71:
Guess youre right bro...but all i can give you is user experience only which is not at all accurate also...dont know why v1.5.1 also feels smoother...as i flashed back and forth to test both versions...

For the drain, i normally test by using wifi... battery percentage was dropping faster on wifi with v 1.6

sorry i cant help you out on the technical side bro...this is the most i can do atm...
[Android Software/Hacking General [Developers Only]] pikachu01:
Try recalibrating your battery, I'll try recalibrating mine. I've flashed many tweaks in between 5 days ago and now. Something might be going up there.
[Android Software/Hacking General [Developers Only]] mab71:
Ok will do...thanks
[Android Software/Hacking General [Developers Only]] s30ckf:
Yes pika pika.... the draining is at the acceptable range, just as the user of your script, I have to feedback anything that I experiencing, so that you can develop better and better, and hope at the end, you can come out with something like Ferrari or Lamboghini's performance :D:D:D

By the way, have been more than 48 hours after v1.6, I no need reboot my phone hence still smooth like silk....

---------- Post added at 10:24 AM ---------- Previous post was at 10:22 AM ----------

Mind to share how you flash back to v1.5.1 ?? Have you replaced the files in system/lib ??
[Android Software/Hacking General [Developers Only]] mab71:
I think the files will be replaced automatically when u flash?
[Android Software/Hacking General [Developers Only]] pikachu01:
Actually, no. The libsqlite is not replaced with the old one when you flash as 1.5.1 doesn't have libsqlite by itself. What you might be feeling is purely placebo then as the changes from 1.51 to 1.6 is only the patched libsqlite.
[Android Software/Hacking General [Developers Only]] baghera1979:
Hey pikachu

Question for you. .... I installed the scripts for talon Dev. I didn't see till afterwards about how to revert back to original state before the scripts and how complex it would be. I admit I should of read more in depth first off, but if i want to go back to were I was. ...would starting back over from scratch as in formatting the phone and re-installing the rom and kernel I want remove all the scripts that were installed from your tweak?

Doing the revert is above my paygrade so starting over I feel is my only option. No biggie. Just curious

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, a full restore will always be able to remove my tweaks :)

So is removing all the init.d files listed in the OP and replacing the files from the restore pack in CWM using ADB.
[Android Software/Hacking General [Developers Only]] baghera1979:
Thanks for the response. I would remove the init.d files but i don't know how to do that so im not gonna mess with it.

Time I did a full restore anyways. Been a while since I cleaned up my phone.

Thabka for the script though. Did increase speed and function a bit but not a whole lot.

Keep up the good work

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] bundi22:
what are the lower lmk values that you are testing now?
[Android Software/Hacking General [Developers Only]] baghera1979:
I honestly couldn't tell you.. I got in way over my head with these scripts. That's why im goin back to where I was until I can understand these scripts and how they work better. I'm a noob but at least I know when im in over my head and when to research more.

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika Pika, I would like to know, will you develop ROM on your own in the future with your knowledge, experiences, skills, etc ??
[Android Software/Hacking General [Developers Only]] bundi22:
sorry i was asking in reply to pikachu,

what are the newer values
[Android Software/Hacking General [Developers Only]] baghera1979:
Its cool

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] pikachu01:
Still haven't done anything other than compute it in my head :)

I'll experiment it and then release it tomorrow (my weekend) :)
[Android Software/Hacking General [Developers Only]] darkronald:
just a quick report after using 1.6 other in my i9000 cm7 (nightly 153), fast,good, but camera seems broken:confused:

had tried reflash nightly 153 and camera works fine but after putting thunderbolt 1.6 in system and the camera broke again:(
[Android Software/Hacking General [Developers Only]] pikachu01:
How did Camera "broke"? FC? No pictures taken? Can't start the app?
[Android Software/Hacking General [Developers Only]] RashaMatt:
So if I want to install 1.6 minus all the sqlite tweaks, can I just remove the sqlite-related files from the zip and flash? I already restored everything from cwm.

____________________________________________________________

AT&T Captivate SGH-I897 build 1010, Apex 10, Talon Dev 0.5.1 RC1 1200 BIGMEM kernel, KC1 modem
[Android Software/Hacking General [Developers Only]] pikachu01:
Remove just the libsqlite*. Libncurses.so is required for sqlite3 binary (which doesn't affect libsqlite).