yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] compwhiz2k5:
[TWEAKS][UPDATED 11/04/2011 - Flashable .zips] Performance and battery tweaks

Will this work now with CM7 of mik_os with ClockworkMod Recovery?:confused:
[Optimus One, P500 Android Development] franciscofranco:
Yes it will.
[Optimus One, P500 Android Development] taha198:
@franco

Local.prop downloaded as .txt file on my phone. Should I rename it local.prop and place it in \data
[Optimus One, P500 Android Development] franciscofranco:
As .txt? That's strange. But yeah, rename it and place it into /data.
[Optimus One, P500 Android Development] taha198:
Bro you seems to forgot to zip the file because I downloaded second time and text file this time as well.

Anyway renamed and pushed to data.
[Optimus One, P500 Android Development] franciscofranco:
That's right. I'm too tired today, thanks for pointing it out.
[Optimus One, P500 Android Development] sadun91:
is the /data in internal memory or sd card?
[Optimus One, P500 Android Development] kly91:
I think he means as .prop which is not placed in a zip..;)

BTW it's a good thing i extract your zips and manually placed mine when i use them..:D so now i don't need to download this local.prop again unless there are changes you've made sir..
[Optimus One, P500 Android Development] kly91:
internal memory sir
[Optimus One, P500 Android Development] kly91:
yeah it works!
[Optimus One, P500 Android Development] franciscofranco:
No changes at all :)
[Optimus One, P500 Android Development] compwhiz2k5:
Hehehe! Downloaded it on the phone in txt file is really strange but if downloaded from a computer, you might forgot to change the "Save as type" to "All Files" and left it as "*.txt"
[Optimus One, P500 Android Development] sadun91:
Why it said cannot move the file?
[Optimus One, P500 Android Development] franciscofranco:
Nah I did it correctly, don't worry.
[Optimus One, P500 Android Development] franciscofranco:
You need a file manager with root permissions, like Root Explorer.
[Optimus One, P500 Android Development] sadun91:
Other than root explorer?
[Optimus One, P500 Android Development] neilmb:
You can do out from the terminal with the command "su; cp /sdcard/local.prop /data" assuming that you have extracted the contents of the zip file to /sdcard.

Sent from my LG-P509
[Optimus One, P500 Android Development] franciscofranco:
http://www.appbrain.com/app/explorer/com.speedsoftware.explorer
[Optimus One, P500 Android Development] sadun91:
The command not work.
[Optimus One, P500 Android Development] sadun91:
And this,whenever I want to access the /data, it asking to download the root explorer.and root explorer is paid app.
[Optimus One, P500 Android Development] fxarun:
Try super manager from market .
[Optimus One, P500 Android Development] sadun91:
Sorry,the comnd method already worked.thank you to all for helping.
[Optimus One, P500 Android Development] Zerobarat1:
Lol . EPIC FAIL !!!! :D
[Optimus One, P500 Android Development] Magnumutz:
Moved local.prop to /data.

No crashes :-)

Sent from my Optimus One
[Optimus One, P500 Android Development] Zerobarat1:
Hey , great work with that local prop ;) . It brings a hefty boost for battery life
[Optimus One, P500 Android Development] sovikhaque:
How do i know that the command worked for me or not?

I have on my sd card.

Send this commad su; cp /sdcard/local.prop /data to my phone using chrome to phone and pasted on my terminal. it just said terminal granted super user.
[Optimus One, P500 Android Development] Samhain77:
Going with Root Explorer on /data..... if the file local.prop is there it worked......

or just type in the terminal:

if the file local.prop is in that list it worked......
[Optimus One, P500 Android Development] sovikhaque:
Yes. I can see local.prop in that list using terminal. Thanks buddy
[Optimus One, P500 Android Development] lekhwani:
So how are the tweaks working? Any practical results?
[Optimus One, P500 Android Development] Samhain77:
O1 is very fast for me... I'm just testing battery life.....

@Franco: have you put the test.zip file in the tweaks.zip??
[Optimus One, P500 Android Development] franciscofranco:
Nop. They are two separate files, only flash test.zip if you're having problems with tweaks.zip ;)
[Optimus One, P500 Android Development] Samhain77:
Really strange....... I've reflashed the original tweaks.zip (I've also verified if the settings in the file are the same in my system after reboot) and now it's working very well.... no more lag as it was before.... so I think I don't need the test tweaks anymore.

Just a question for my personal knowledge:

in original tweaks file you've disabled laptop mode echo "0" > /proc/sys/vm/laptop_mode don't you think it's better to have it enabled so we can save more battery?
[Optimus One, P500 Android Development] franciscofranco:
I didn't notice any difference having it on or off, so I disabled it because that is meant for laptops and not for phones, but you can test it echoing 5 instead of 0.
[Optimus One, P500 Android Development] lekhwani:
@Franciscofranco

Can you or somebody else explain the tweaks given on first post one by one in the first post itself.

On cmb6 I copied local.prop to /data and flashed tweaks.zip and libsquilite.so in recovery. The phone hung at boot logo. Had to nand restore. Where was I wrong?
[Optimus One, P500 Android Development] Samhain77:
Probably is the libsqlite.so....
[Optimus One, P500 Android Development] yanuk:
I'm getting 2% per hr drain too..
[Optimus One, P500 Android Development] franciscofranco:
Like I said in the first post in the "Very Important" red text, libsqlite.so is compiled for CM7 only.
[Optimus One, P500 Android Development] ungaze:
This is better left as 0. Laptop mode can save battery but it could also cripple performance(micro lags). Another solution is to make Laptop mode active only when in sleep/screen-off mode. If anyone want's to implement it PM me, otherwise I'll try to deal with it later.

Anyways, been having some problem with the tweaks(kernel panic). Really don't know why so just wanna share how I encountered it.

Kernel panic always happened when:

-I was using wifi

-I was browsing the internet(and maybe downloading stuff)

-In a time-frame when someone was calling/about to call me.(might be the cause of the panic)

Update: Was able to recreate the problem by opening a bunch of tabs on opera mini and pressing on every link I see, real fast! So incoming call and huge/medium file download is out of the question. My setup was Tweaks.zip/Test.zip, no sqlite3 library and script, no patched libsqlite.so and no local.prop patch. BTW there was also this one time when I wasn't using wifi at all but was trying to open a PDF file. phone hang, hard buttons flashed and screen just stayed there with no messages.

Maybe someone can replicate it and report back.

About libsqlite.so I'll try to ask some guys to compile it for Froyo. No promises though
[Optimus One, P500 Android Development] franciscofranco:
I can have a look at it, can't promise any timetable, but soon.
[Optimus One, P500 Android Development] valent|n0:
I know what to do with Tweaks.zip and local.prop

what do I do with libsqlite.so??
[Optimus One, P500 Android Development] franciscofranco:
If you're using CM7 backup your libsqlite.so from /system/lib, then move the downloaded libsqlite.so to the same path and overwrite. Then reboot.
[Optimus One, P500 Android Development] franciscofranco:
@ungaze

Check PM.
[Optimus One, P500 Android Development] Komod5910:
I flashed 3 files from first page 1 hour ago. Before that and now my device works nice, i dont see the difference. But i expecte that battery life will be longer. Am i right?

And what is file TEST.zip for? May i use it now and for what?

I'm on CM7 beta6 Mik_os Rom

Thanks!
[Optimus One, P500 Android Development] franciscofranco:
About the test.zip you have the explanation on the first page. You can flash it if you want anyway.
[Optimus One, P500 Android Development] Komod5910:
I'm back to read first page.

Thanks
[Optimus One, P500 Android Development] fxarun:
thanks
[Optimus One, P500 Android Development] franciscofranco:
Just to boast myself, I just reached 2k points in quadrant ;)
[Optimus One, P500 Android Development] bioan:
I've found something interesting on our neighbours X8.

Take a look at this link: http://xdaforums.com/showthread.php?t=1028974

In the changelog you can find: 1. gradation color better than ever, so the black color is more concentrated

This would be a very interesting tweak. I've asked them about it but nobody answered, maybe you can find more info on this.

If you don't like the idea, just ignore this post. Thanks !
[Optimus One, P500 Android Development] franciscofranco:
Sounds good, but I think it has something to do with the framework instead of "real" tweak, I need to dig a little more though.
[Optimus One, P500 Android Development] acrossy:
Francisco is right! That's framework territory! which we all know is... kind of tricky :D Still very interesting! BTW Francisco any news bout my little issue? :x

Edit: nevermind i just checked your reply to which i also replied :)
[Optimus One, P500 Android Development] franciscofranco:
Yep that's framework's territory which I won't touch ;)
[Optimus One, P500 Android Development] Mithun_srk05:
Franco,

I am a lil confused here.... shud I flash libsqlite.zip from recovery or extract libsqlite.so from the folder system/lib in the zip???
[Optimus One, P500 Android Development] ungaze:
It's in zip format. Flash it!

Just make sure you do a backup first!!!!!
[Optimus One, P500 Android Development] ngarcesp:
For local.prop:

1. Download it.

2. Extract it to your sdcard.

3. Move it to /data.

4. Reboot.

5. Done

i don't have that folder in the sd card. or is it in android/data?

thanks
[Optimus One, P500 Android Development] franciscofranco:
Just /data.
[Optimus One, P500 Android Development] sadun91:
internal memory dude.

----------------------------

@franco,

is it true you reached 2k in quadrant??woww :D
[Optimus One, P500 Android Development] ungaze:
actually it is generaly called data partition. it is an internal/nand storage partition which can only be accessed thru certain file explorers(backread a few pages for some examples) or with adb/terminal. it's not on sdcard. to do step 3 with terminal, do this:

cp /sdcard/local.prop /data

chmod 0777 /data/local.prop
[Optimus One, P500 Android Development] franciscofranco:
Yes I did ;)

@ungaze Thanks for explaining that to the user.
[Optimus One, P500 Android Development] sovikhaque:
I am using this tweak and i feel the difference but i have a question. Mik released updated rom, if i flash the new rom, just flashing over the old rom, will i have to apply these tweaks again or flashing new rom over the old will not affect the tweaks and local.prop?
[Optimus One, P500 Android Development] franciscofranco:
Yeh you don't need to reflash the tweaks, they stay inside init.d,
[Optimus One, P500 Android Development] AsherChua:
Anyone can upload the tweaks.zip and local.prop somewhere else? I can't seen to be able to download them :/
[Optimus One, P500 Android Development] Stumpalump:
Links need to be updated.
[Optimus One, P500 Android Development] 4silvertooth:
Can't download can any one upload.
[Optimus One, P500 Android Development] ungaze:
Links(also dropbox, please reply if link works or not)

p500_tweaks.zip

local_prop.zip

libsqlite.zip

test.zip

Links will get removed once franco fixes his(if there ever is a problem)
[Optimus One, P500 Android Development] Stumpalump:
Thanks.
[Optimus One, P500 Android Development] AsherChua:
Do I extract local_prop first and then move it to /data or just move the whole package to /data?
[Optimus One, P500 Android Development] franciscofranco:
Can't be more explicit than that.

All the links are functional, maybe Dropbox was down or something, I didn't touch them.
[Optimus One, P500 Android Development] 4silvertooth:
Link provided by ungazed for local-prop is flashable.
[Optimus One, P500 Android Development] zeemar007:
@franciscofranco can u make a flashable zip for us which would include tweaks to enhance quardrant to over 2k like u did??? possible?
[Optimus One, P500 Android Development] lupohirp:
Yeah francisco we want it :)
[Optimus One, P500 Android Development] franciscofranco:
It's not a simple tweak. If you want it google data2ext, it's too advanced to be explaining here. Try it at your own risk.
[Optimus One, P500 Android Development] ungaze:
^Actually, what franco is using right now is a mod designed to be used on most(if not all) android devices. Even I find some errors with it. Another thing is, the mod requires you to not have a2sd(well a2sd can be fixed but is pretty much hit or miss). What we need right now is an optimized solution specifically for optimus one.

regarding the links I provided, local_prop.zip is flashable but is not working. You must extract the local.prop and push it manually to your device.(I was intending to fix this but things just got in the way, sorry)
[Optimus One, P500 Android Development] franciscofranco:
All that you said is right, that mod should be designed for most of the android devices, but even I had to wipe and reflash everything a bunch of times before making it work because it's delicate.

I haven't tried to get a working flashable local.prop yet because I've been busy with these optimization stuff, haven't been sleeping because of it too. I'll have to update first post as well, I think I'm making test.zip the default tweaks file too. All in it's due time.
[Optimus One, P500 Android Development] The_ERROR:
Tweak compatibility

Sorry if I'm asking for somethig what was already answered, but I want to know, if these tweaks are compatible with all ROMs (Android v2.2 same as v2.3). Thank you.

NOTE: Maybe it should be noted in main description.
[Optimus One, P500 Android Development] franciscofranco:
Tweaks.zip it's compatible with any version.

A little update is coming soon, expect a new version up in a few hours.
[Optimus One, P500 Android Development] franciscofranco:
First post updated. New changes are live.
[Optimus One, P500 Android Development] Zerobarat1:
Hmmm .... just flashed your new p500 tweaks and a message in notification appeared : " Android jackal.term download failed " and it sends me into market . Strange right?

LE: Hmmm also , system seems lightning fast , and there's no more lag in app drawer ( using ADW ) . But on the performance side I will have to test some more.

Neah it still is pretty twitchy in app drawer. SD tools on the other hand report a bit higher speeds in writing ( probabily because of smaller value in read_ahead)

Cheers
[Optimus One, P500 Android Development] franciscofranco:
O_O That's the terminal application... What the hell...maybe I've done a typo somewhere, give me a sec to check.
[Optimus One, P500 Android Development] lerkin:
I think local_prop.zip's size is too small... There is only local.prop and nothing else..
[Optimus One, P500 Android Development] franciscofranco:
I've just re-uploaded it again, but I didn't find anything weird.

Suggestion: change your launcher, if you try LauncherPro you'll notice the BIG difference.
[Optimus One, P500 Android Development] franciscofranco:
That's the idea, read the instructions.
[Optimus One, P500 Android Development] Zerobarat1:
Yeah I know launcher pro is awesome , but I'm all out of 3G juice :D . I would have to go outside and abuse someone's wifi network.

Also soz for confusing you , it was my fault , I was updating the terminal app when my 3G juice fell flat :D . It must have stood in standbye and it tried to resume upon restart ( when I entered recov to flash your zip ) and it notified me .
[Optimus One, P500 Android Development] lerkin:
Ok, I need to copy it manually right? But there are no changes from the 14.04.11 version? So, I need to flask only Tweaks.zip?
[Optimus One, P500 Android Development] franciscofranco:
Again, read the first post. There is the changelog and as you can see I haven't changed the local.prop. You can move it manually or via adb/terminal.
[Optimus One, P500 Android Development] franciscofranco:
No problem, but I was somewhat confused for a sec ;) But I'm glad everything is working fine and speedy!
[Optimus One, P500 Android Development] sadun91:
flashed, thanks franco.
[Optimus One, P500 Android Development] aursta:
Seriuos fps drop with new tweaks.

Flashed back test.zip
[Optimus One, P500 Android Development] franciscofranco:
That's pretty impossible, the settings are the same.
[Optimus One, P500 Android Development] aursta:
Really? I dont understant..i just flashed it over and my fps droped to 40
[Optimus One, P500 Android Development] franciscofranco:
Did you rebooted?
[Optimus One, P500 Android Development] Martin4os:
its probably because, execute permissions are not selected when installed!!! there is a small difference, between the old and the new, but not a noticable improvement .. Anyway, you do great work constantly, by trying to improve our O1 ... and you succeed a bunch of times :)
[Optimus One, P500 Android Development] Martin4os:
and can you write a little tutorial about i/o improvement... i tried once,
[Optimus One, P500 Android Development] franciscofranco:
Maybe that's the problem. I'll change it tomorrow!

EDIT: Bah just uploaded it with the fix, should be set with the right permissions now.

Glad it works fine to you.

I'm not gonna step into that. Maybe tomorrow some magic happens, who knows, just wait and see.
[Optimus One, P500 Android Development] Stumpalump:
Links are not staying up. Maybe need to try something other than drop box
[Optimus One, P500 Android Development] sadun91:
Dont use your phone when downloading in dropbox.use your laptop.
[Optimus One, P500 Android Development] Stumpalump:
What laptop?
[Optimus One, P500 Android Development] Stumpalump:
I would like to request for fransiscofranco to put back the code box with the tweaks and keep it updated for those of us that like to apply manually. Thanks!
[Optimus One, P500 Android Development] sadun91:
I mean download using your computer.
[Optimus One, P500 Android Development] aursta:
i hope that magic happens:D
[Optimus One, P500 Android Development] cmangalos:
thanks for this, felt the boost.

the i/o trick started with samdroid right, i remember we this .so to boost our q.score on i/o
[Optimus One, P500 Android Development] ivaaN:
i couldn´t install it. I´ve got "E: Verification Failed" error
[Optimus One, P500 Android Development] r291:
Couldn't flash p500_tweaks.zip.

E:Wrong digest: system/etc/init.d/99tweaks

E:Verification failed.
[Optimus One, P500 Android Development] ciolnadu:
try turning off verification in recovery
[Optimus One, P500 Android Development] ivaaN:
Thanks, it works now ;D
[Optimus One, P500 Android Development] r291:
Works. Thanks.
[Optimus One, P500 Android Development] 32bit:
Hi there!

libsqlite.so hangs my system up on very early boot stage (on LG logo). Stock FW 2.2, rooted, app2sd, zipaligned, signed-kernel-v1.1, etc.

===

And the question: does it matters if I not flashed tweaks.zip but only copied 99tweaks into

etc/init.d

???

In this case my Neocore & Quadrant scores are some higher then when I flashing tweaks.zip. I presume it's due to system/bin/sqlite3 that flashing in with 99tweaks from tweaks.zip

What's purpose of this sqlite3 ?
[Optimus One, P500 Android Development] blueren:
I re did the tweaks again.. the battery drain is still significant :( Although the feel is super snappy and super smooth! How exactly do I revert back to the original sqlite3?
[Optimus One, P500 Android Development] ungaze:
You're a bit frisky huh?! ;)

Well, libsqlite.so is recompiled with android 2.3(CM???) sources. So I'm almost sure that it won't work for 2.2(or any froyo build). I think mik_os don't have froyo source so he can't compile for 2.2. I'll ask dookmatt or poalo(LOL) if they can build it from source.(I personally can't ;) )

tweaks.zip also fashes the sqlite3 binary which is needed to tun the vacuum command. If you just copied/moved the 99tweaks to init.d, then everything will run fine except for the vacuum command(for obvious reasons).
[Optimus One, P500 Android Development] ungaze:
Originally, theres no sqlite3 binary to start with. So just delete it if you want. If you wan't to fully revert, just remove "/system/etc/init.d/99tweaks", "/data/local.prop", and "/system/bin/sqlite3". These 3 files are the only files ADDED by franco's tweaks.

While you need to revert the "/system/lib/libsqlite.so" to the original one if you really want to fully revert.(might be useless cause you might not be able to boot at all if you're having a problem with this.).
[Optimus One, P500 Android Development] 32bit:
Thank You!

May be there is the reason to add this info to the hat of the topic.

And... strange about sqlite3. The purpose of VACUUM command afaik is to clean & rebuild database. So I don't understand why it hits the performance.
[Optimus One, P500 Android Development] Zerobarat1:
I tested for almost a week on mik's CM7 b6.2 , franco's tweaks and I have to say they bring massive battery potential and great performance tweaks, the most notable , Boot time which is practically halved and 3g speed which is quite impressive ;)
[Optimus One, P500 Android Development] Stumpalump:
What computer? You know something about me I don't lol

Edit: didn't need to use a computer. Just noticed in browser link was coming up HTTP://https://

Had to remove the first HTTP://
[Optimus One, P500 Android Development] franciscofranco:
There is a big red sign about that, you should've read it.
[Optimus One, P500 Android Development] compwhiz2k5:
Total scores: 1230

Is this graph normal for a 729MHz-600MHz processor speed using your tweakz? Thanks!

Sorry for the attached.
[Optimus One, P500 Android Development] acrossy:
Actually i think he is forgetting something a little important that even you mentioned before Francisco! the tweaks Francisco made, are optimized for CUSTOM ROMS not stock! they may work well on stock but.... can vary i think! Like the previous scripts got my Void Rom a little extra bat drain and aparently with the new ones works smoothly!

And yes i am using them on a 2.2 Custom Rom -.-; bite me :P

And the newest 99tweaks script compilation is working smoothly! it even improoved battery conserving, while on standby! 10 minutes while on standby and raised me 2% and i was like, "wait whaaaaaaat!?"

Anyways i can be wrong and his newest tweaks can in fact be used and could be 100% compatible with stock froyo! All i am saying is... just like everything in life, nothing behaves exactly the same with every phone, because ppl do diferent things and use the phone diferently!
[Optimus One, P500 Android Development] 32bit:
Oh, there's no problem.

But I mean it could be useful to say: "Don't even try libsqlite.so on 2.2"
[Optimus One, P500 Android Development] mihachris:
Hello and thanks for your tweaks.

It may have been asked before but would you mind telling me whether the tweaks would be deleted if I reflashed the ROM without wiping any data?

Thank you!
[Optimus One, P500 Android Development] Stumpalump:
No
[Optimus One, P500 Android Development] franciscofranco:
You only need to reflash them if you format /system.
[Optimus One, P500 Android Development] franciscofranco:
Couldn't agree more, obrigado ;)
[Optimus One, P500 Android Development] blueren:
Would rom make a difference? I'm running on void.
[Optimus One, P500 Android Development] franciscofranco:
I haven't tested the tweaks on any 2.2 rom, obviously I'm running a 2.3.x build. The tweaks work regardless the rom you're using, but I bet you'll see more improvements on a 2.3 rom.
[Optimus One, P500 Android Development] 32bit:
Oh, guys! I hasn't presumed that my words could be so excitatory :)

I'm only said what I said:

1. libsqlite.so hangs up the stock/tuned 2.2

2. With system/bin/sqlite3 the performance is slightly lower on stock/tuned 2.2

Not less, not more. Only ascertaining of the facts.

No problems. No complaints.

Sorry if I bother you :)

And thank You for your tweaks!
[Optimus One, P500 Android Development] aursta:
hi franco,

so you learn us how to boost I/O performance?;)