yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pastime1971:
for that, you can directly change STREAM_MUSIC in frameworks/base/media/java/android/media/AudioService.java

private int[] MAX_STREAM_VOLUME = new int[] {
5, // STREAM_VOICE_CALL
7, // STREAM_SYSTEM
7, // STREAM_RING
[COLOR="Red"]15, // STREAM_MUSIC[/COLOR]
7, // STREAM_ALARM
7, // STREAM_NOTIFICATION
15, // STREAM_BLUETOOTH_SCO
7, // STREAM_SYSTEM_ENFORCED
15, // STREAM_DTMF
15, // STREAM_TTS
15 // STREAM_FM
};

so make a patch like

--- cyanogen/frameworks/base/media/java/android/media/AudioService.java	2011-12-19 13:14:58.908433964 -0800
+++ kang/frameworks/base/media/java/android/media/AudioService.java	2012-01-30 08:37:41.512939148 -0800
@@ -167,7 +167,7 @@
5, // STREAM_VOICE_CALL
7, // STREAM_SYSTEM
7, // STREAM_RING
- 15, // STREAM_MUSIC
+ 30, // STREAM_MUSIC
7, // STREAM_ALARM
7, // STREAM_NOTIFICATION
15, // STREAM_BLUETOOTH_SCO
[LG Optimus 2x] zeepday:
Same question from me. And how to upgrade to CWM 5.0.2.8 zip file which I took from temasek`s mediafire? From CWM itself? As any other rom?

And one more question. Does kang 51 have stock camera or I have to flash one of stock camera mod from temasek`s mediafire separately? Thanx.
[LG Optimus 2x] pastime1971:
@temasek,

i am not sure, but maybe http://review.cyanogenmod.com/#change,12294 could be a culprit, doing something ?
[LG Optimus 2x] salisbury_steak:
Q1: The CWM 5028 zip you have contains scripts that can be run from Windows, Linux or Mac. So you'll need to connect your phone to a desktop (with USB debugging of course).

Q2: You'll need to flash separately. Temasek keeps by his word that his kangs will stay as kangs. Meaning that all sources has to be from CM commits/resources. At least... until he finds the time to launch Temasek ROM #1. :p
[LG Optimus 2x] Shadowchaz:
I tried to run this from my Mac but got accessed denied in terminal. Will try from my pc at home.

I have previously installed older versions from my Mac fine...
[LG Optimus 2x] salisbury_steak:
So far, below are my experiences with "smooth scroll" tweaks. Note that I tried both Androidon's tweaks (when I was on #50), and the recent Pastime commits inside Temasek #51 and #52:

ADW EX app drawer: no difference.

Settings: no difference.

Twitter timeline (official twitter app): worse during androidon's tweak, also, worse on "Default Disable" setting.

As such, I've went back to CM's default scrolling cache. Which is "default enable".

P.S. Using the LG camera right now, and I'm loving it. :)
[LG Optimus 2x] k101d:
Sorry this may not your need answer. For me I always download new rom to PC and before copy to O2x I unzip it go inside folder /system/app to delete and add some apk then re zip that make all in one zip.

And for GMTNITZ no need to flash just add this line in build.prop

ro.telephony.nitz=HMT

And once first boot go into setting date/time select autoupdate you will get time sync correct with GMT.
[LG Optimus 2x] pastime1971:
i will try to explain 32bpp Gallery3D commit, and Scrolling Cache commit:

32bpp Gallery3D:

android creates windows as 16bpp by default, making Gallery3D to show a banding effect (see http://en.wikipedia.org/wiki/Colour_banding and http://stuffthathappens.com/blog/2010/06/04/android-color-banding/ )

32bpp Gallery3D commit, makes RenderView.java as 32bpp, and removes the banding effect for

a full screen view of single images

.

For the moment, the rest of Gallery3D is still in 16bpp, which maybe causes thumbnail and slide show to still show banding effect.

However, thumbnail is small size preview and banding effect may be unavoidable.

Slide-show in 32bpp may suffer performance issue. Also, I'm not sure how it behaves w/ 16 bpp transparency setting in Settings > CM > Performance > 16 bpp.

Background wallpaper has been fixed in the second patch. You can make wallpaper using Gallery3D app w/o banding...

Scrolling Cache:

Scrolling cache was enabled by default in CM, unless app overrides. (Each app should be conscious about it.)

Enabling it in conjunction w/ garbage collection may lead to a performance lag. (see AndroidON's thread, http://xdaforums.com/showthread.php?t=1411317 ) Also Yanuar Harry said it consumes battery as well as memory.

By disabling it by Settings > CM > Performance > Scrolling cache > * disable, you may see a smoother scrolling in certain apps (facebook, twitter, etc.)

The entries mean:

Force enable : force to enable cache regardless of app

Default enable : enable cache by default, but app can override (

CM default

)

Default disable : disable cache by default, but app can override <-- try this

Force disable : force to disable cache regardless of app <-- or even this
[LG Optimus 2x] TrymHansen:
Are we basically saying that Google screwed up? The scrolling cache is supposed to be an optimization to achieve faster/smoother scrolling. I had to disable the cache in of my apps as it didn't work well with background images (until I found another setting which was more appropriate.) Personally I can't tell the difference with it on or off, but it will for sure use more processor time->battery if disabled.
[LG Optimus 2x] pastime1971:
my guess (and this is only a guess) is that it helped performance-wise in old days when devices were not powerful enough. but then it became a performance toll, once devices can handle it better ?

edit: it's probably better to ask experts for facts. (maybe i should delete this post.... don't take my word seriously... just guessing here...)
[LG Optimus 2x] Higgsy:
Seems like a logical theory to me :)
[LG Optimus 2x] TrymHansen:
It's as good a guess as any I suppose.

The scrolling cache works by drawing the listviews into a bitmap, and then copying that bitmap to the screen. The next time you scroll it copies the already drawn elements it can re-use to the appropriate position and only draws the new items instead of re-drawing all of them. All listviews (all Views in fact) are by default transparent, so any drawing will also require blending, which is supposed to be the costly part that the scrolling cache tries to avoid. This should in theory always be faster than redrawing all of them each time. (This only works with solid background colors of course, which is why you have to set the cacheColorHint to transparent (==disabled) if you use a background image for instance.)

I guess the interesting thing here is the blending. If disabling the scrolling cache actually leads to faster/smoother scrolling, then (Drawing entire list+blending) < (Draw partial list+copy partial bitmap.) I guess it's possible that tegra2 blending is so quick it can work.

One day I'll make a scrolling test app I guess.
[LG Optimus 2x] pastime1971:
well, according to AndroidON, it's GC (garbage collection) that interferes

so maybe it's JIT ? (i know nothing about GC or JIT...)
[LG Optimus 2x] rskyline:
3d gallery isn't showing thumbnails what should i do?

Enviado desde mi Optimus 2X usando Tapatalk
[LG Optimus 2x] 75markus:
delete cooliris media folder on sdcard (android/data/com.cooliris.media ) and wait for recreation
[LG Optimus 2x] pastime1971:
32 bpp wallpaper

(first of all, i couldn't find who posted about banding effect in wallpaper when using Gallery3D. not so using QuickPic. i apologize.)

now i fixed the banding effect in wallpaper.

when making wallpaper, basically, we use CropImage.java which was forcing 16bpp.

i changed it to use the native bpp of original image.

screenshot at http://xdaforums.com/album.php?albumid=5965&pictureid=19370

edit: a flashable zip http://www.mediafire.com/?w8knpw2nudy59nc for those who want to try it

edit: i'm also looking into if there is any other change to be made. (initial one was kinda minimal approach, just enough to remove banding in full screen image view.)

edit: i think that's it...
[LG Optimus 2x] 75markus:
nice one ! :D
[LG Optimus 2x] ergoen:
It was me, thanks alot for the work you're putting into this! It seems weird that the default, pre-installed picture-application in android should have such stupid "bugs" in it. The 16-bit thing probably made sense with the first handsets, but still.
[LG Optimus 2x] alakyr:
witch baseband do you suggest guys? ril 0725 froyo cause cyano don't support ginger's ril but dunno which bb choose...
[LG Optimus 2x] 75markus:
after trying all of them, i´m back to 0218 since weeks, best for me ...
[LG Optimus 2x] Lapiduss:
Always FC of superuser after installing kang 52.. What can I do?? Why I can't see superuser with titanium backup??

Thanksss
[LG Optimus 2x] 75markus:
no problems for me, just updated binary to 3032...
[LG Optimus 2x] salisbury_steak:
Works perfect here.

Try manually clearing cache, clearing dalvik, then reflashing the rom without any mods.
[LG Optimus 2x] Lapiduss:
Error is in android.database.sqlite.SQLiteException

Source file SQLiteDatabase.java

I already had in the past this problem and I would not have to wipe everything..

I can't get root anymore for new apps..
[LG Optimus 2x] Shadowchaz:
Well, you have inspired me to try building my own KANG (Just for fun!)

And... I can't beieve how much its having to download! Not sure if my 8meg broadband line will cope! :eek:
[LG Optimus 2x] salisbury_steak:
I see. Not familiar with that error then.

Btw. Clearing cache and dalvik is not equivalent to a full data wipe (factory restore).
[LG Optimus 2x] TrymHansen:
I've done some testing. (Thanks to your patch that was easy.)

Scrolling performance does indeed improve for very simple list-layouts, like the CyanogenMod settings.

The moment you move up to slightly more complex layouts, like Twitter for example, disabling the scrolling cache has a noticably negative impact, and it only gets worse the more complex the layouts get.

So although I don't mind the option being present I think it would be a good idea to disable the scrolling-cache in the list-layout for the settings, unless that breaks theme-compatability or something else.

Btw, I can find no sign of GC running more often when scrolling cache is enabled.
[LG Optimus 2x] tonyp:
Just a wild theory of mine - but it might make sense.

16bbp is better for phones with lower performance and at the beginning android had to compete with iOS in terms of "smoothness" - especially in apps like the gallery. So Google might (I am _guessing_ here!) have tried to get the best performance out of their apps which was necessary for many low-spec phones.

This changed with Android introducing proper hardware accelleration in Android 2.3 and better phone hardware (snapdragon & dualcore processors etc.).

Google even did rewrite their apps - but just for their modern android versions (3.0 / 4.0) - where the design became more and more important.

Interesting posts (slightly related) by Dinane Hackborn on Android graphics:

https://plus.google.com/105051985738280261832/posts/2FXDCz8x93s

https://plus.google.com/105051985738280261832/posts/XAZ4CeVP6DC
[LG Optimus 2x] Lapiduss:
I know.. I tried to wipe cache and dalvik but does not work .. try again tomorrow

thank you..
[LG Optimus 2x] tonyp:
I now did merge the zips and changed the updater-script to the following - it's working well.

(cm7 kernel with sensor fix, gmtnitz, stock camera and a custom bootanimation)

assert(getprop("ro.product.device") == "p990" || getprop("ro.build.product") == "p990" || getprop("ro.product.board") == "p990");
ui_print("");
ui_print("Installing CM Kernel sensor fix, GMTNITZ, stock camera, bootanimation");
delete_recursive("/tmp/vorkKernel");
package_extract_dir("tmp", "/tmp");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.200000, 10);
delete("/system/media/audio/ui/camera_click.ogg", "/system/media/audio/ui/VideoRecord.ogg");
package_extract_dir("system", "/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
set_perm(0, 0, 0700, "/tmp/vorkKernel/busybox");
set_perm(0, 0, 0700, "/tmp/vorkKernel/installkernel.sh");
run_program("/tmp/vorkKernel/installkernel.sh");
run_program("/sbin/busybox", "umount", "/system");
ui_print("");
ui_print("Installation complete!");
ui_print("");
show_progress(0.100000, 0);

For the next KANG I'll include the bravia mod, too. I'd prefer a solution which would flash the ZIPs one by one - but at least it's working :)

Oh and - does anyone understand the show_progress behaviour?
[LG Optimus 2x] pastime1971:
which part did you change ? (can you highlight or color it ?)
[LG Optimus 2x] tonyp:
Uhm I didn't really change anything.

I took the updater-script from temasek's kernel with sensor fix as base and copy-pasted the missing lines from the other scripts to a place where it made sense (stuff which happened before mounting system again before the mounting system part etc.).

If you're referring to my question about show_progress: I just don't know how show_progress should be used correctly.

I found out that the syntax is "show_progress(fraction, duration)" - would it be correct to add several show_progress lines into the code if it's doing several things, then? Or is there a way how it's increasing automatically. And I don't really get for what the duration is needed if it's a static display. Or is it able to increase dynamically?

Sorry for the OT.
[LG Optimus 2x] temasek:
AndroidON's Sound tweak for temasek's KANG BUILD P204-52

Download Link - http://www.mediafire.com/temasek#742gbdh7igc6y

2 Files in the folder

- AndroidON tweak for Build 52

- Revert back to original framework.jar for build #52

Flash from recovery.

Enjoy :)
[LG Optimus 2x] pastime1971:
i see. i asked because i thought you created a script that installs multiple zip files, and i didn't really see where you install several zips.

as for show_progress, i just do show_progress(0.25,1) for 25%. i don't remember if it worked or not. i don't know what the second argument means...

as for combining zips, if you have an access to linux pc, you could combine and replace files inside. for example, if you have some files like system/framework/core.jar under extracted-replacing-folder/, run

$ cd extracted-replacing-folder
$ zip -r ../update.zip system

that will overwrite/add files inside update.zip (kang) w/ new ones (mod/tweaks)

edit: this may help ? http://www.londatiga.net/it/how-to-create-android-update-zip-package/ (not sure if it is up-to-date or not...)
[LG Optimus 2x] paul_cad44:
I'm trying to download the brilliant kang by temasek direct on my phone using dolphin HD browser everytime it gets to 56 ish % it stops the download. With file unknown length or unable to download. Is there any other apps that manage downloads? I want to play with the new kang while I'm at work..
[LG Optimus 2x] temasek:
U tried the minus.com mirror?

Here is the direct link from minus.com

http://i.minus.com/1328055835/PCKj_K0K1KmPR-Tl0sl3Ww/dbylxTZ8LqC13P.zip
[LG Optimus 2x] paul_cad44:
Thanks but tried both it gets to about 60mb then resets utter pain. Will have to wait till I'm home :(
[LG Optimus 2x] temasek:
Ok then, who knows by then its already #53 :eek:
[LG Optimus 2x] salisbury_steak:
I actually download files straight from the stock browser half of the time via the mediafire link. Works well. I do it via wifi though.

You may try the stock browser, or... You can try using Advanced Download Manager.
[LG Optimus 2x] temasek:
I just tried pastime1971's PATCH#2 of his Gallery3D, it just got better!

I let the owner (pastime1971) do the talking. :)

EDIT: He did already....I must be blind to miss his post :eek:
[LG Optimus 2x] paul_cad44:
Thanks temsek and Salisbury just tried advanced download manager same thing happens wonder if its my carrier not allowing me to download large files and resets my connection causing the download to error or restart which is what happens when I use advanced download manager.
[LG Optimus 2x] temasek:
Ic.

No hurry then, we promised we won't go away anytime soon. :D
[LG Optimus 2x] salisbury_steak:
It actually could be. (Many carriers do that these days.) You just need to verify with other users who're trying to download 90+MB files over mobile internet. Which country and which carrier are you using? And what's your download speed?
[LG Optimus 2x] paul_cad44:
I'm on optus in Australia, getting around 167k per sec. Takes about 7 mins to get to 60 Meg then dies. Oh well thank God that my home internets working. Might as well wait on the 53# build!! Thanks again all.
[LG Optimus 2x] temasek:
Don't wait on #53. I'm taking 1 day break unless some commit really attracts me.

Get #52 when you at home and enjoy pastime1971's newest contribution to the community.
[LG Optimus 2x] tonyp:
Thanks for that post. At least I'm not the only one who's confused about show_progress :D

If I combine the ZIPs like you suggested it would break the scripts within the "updater-script" file, wouldn't it? It would work for multiple apk's which are pushed to system - but not for combining e.g. a kernel + a your GWTNITZ.zip.

That's why I combined the updater-script in the first place.

Do you know if there's a way to create a zip which would only execute a script which will flash several (other) ZIPs from the SD card?
[LG Optimus 2x] pastime1971:
yes, it becomes tricky.

both kernel and GMTNITZ run shell script to do their task.

for kernel, if zip contains boot.img, i think you can just overwrite it w/ custom boot.img (i think vadonka's kernel just contains boot.img. vork builds a new one using zImage. however, vadonka's kernel also does quite a few more steps, and combining them becomes messy i guess.)

sorry, no easy solution. you can write a linux shell script to automate this process, but it may take some effort.

at the moment, i am more interested in patching pdroid source...

but i will look into an updater script running several zip updates...
[LG Optimus 2x] temasek:
Why don't u just use ROM Manager to flash multiple files at once?
[LG Optimus 2x] salisbury_steak:
Wait, you could do that? How?

----------

Sent from my Optimus 2X
[LG Optimus 2x] temasek:
Rom Manager -> Settings ->Check Advanced Mode

From now on, when u select "Install ROM from SD Card", you can "Add Zip" and choose another, and another,...till u press "OK" then it will start flashing.

I'm not sure if it is a premium feature but I bought the premium version of Rom Manager.
[LG Optimus 2x] k101d:
About GMTNITZ.zip. I remember that temasek had already merge GMTNITZ and I had read gerrit about this they they said how to use is to add the line

ro.telephony.nitz=GMT or

ro.telephony.nitz=local

after I add this line in build.prop I can set time to sync with network (before it not). so ignore to flash GMTNITZ.zip.
[LG Optimus 2x] temasek:
If you are on 824 BB and want to use "Automatic Time", you are still required to flash the GMTNITZ.zip file after u flash a KANG build.

But if u had manually done that in build.prop then of cuz u can ignore and not flash the GMTNITZ.zip.

Pastime1971 created the file so that users no need to manually edit the build.prop.
[LG Optimus 2x] k101d:
I use BB824 (download from your temasek) and not over lay flash with GMTNITZ.zip so wonder while it update time automatically my local time is ITC or GMT+7 before add that line it display time of GMT with no change to GMT+7 even both tick or not tick automatic. BUT if in build.prop has this line ro.telephony.nitz=GMT it can set clock to GMT+7.

EDIT: I search back in this thread and found this http://xdaforums.com/showpost.php?p=20582832&postcount=12055 has said by pastime1971
[LG Optimus 2x] salisbury_steak:
Yep, verified a Premium only feature. Greyed out on my end. If I do purchase rom manager, won't it create a conflict with the free version that comes with the rom?

Also, can you set a certain sequence of which zip it flashes 1st?

----------

Sent from my Optimus 2X
[LG Optimus 2x] temasek:
To me, Rom Manager premium is a must buy.

Rom Manager premium is just a 42.3KB size file. Basically it is just a KEY to activate your Rom Manager to be a premium version. So no conflicts whatsoever. You still need a Rom Manager to work.
[LG Optimus 2x] tonyp:
No please focus on pdroid (wow this was asked by me, too. I'm asking too much stuff here :D) and other things - it's not important at all. I just wanted to know if there is a quick solution already.

I combined the update scripts and it's working like a charm :)

It was just a little annoying to go through the menu 4-5 times for each flash and I looked for a solution which would make it possible to flash your kang and flash another zip with all tweaks I'd like to add.

As I wrote above I managed to merge the zip's to a single one and I'm pretty happy with that solution now - now I just have to select 2 zips with ROM Manager :)

I didn't want to bother you guys - just thought that asking won't harm and that the "daily flashers" might have an even better idea for flashing multiple zips at once :o
[LG Optimus 2x] temasek:
For some of your tweaks, you could add them to custom_backup_list.txt which is in /system/etc

In this custom_backup_list.txt then u could add those u wants to survive a flash of a ROM. As such you don't need to keep flashing the same tweaks again and again.

In my custom_backup_list.txt I had quite a few stuffs. Example of few of many stuffs in my txt file, I save the LG Camera apk and its lib.

lib/libamce.so

lib/libcamera.so

app/Camera.apk
[LG Optimus 2x] aksolanki:
Ciao, I'm in Italy on PosteMobile (Vodafone), I use 0725 and V10d, Europe RIL and everything works great. I hope this helps.

Have fun. Anil
[LG Optimus 2x] tonyp:
The files will get flashed in the order you select them :)
[LG Optimus 2x] aksolanki:
LMAO, nice one dude.

Anil
[LG Optimus 2x] tonyp:
Thanks, I'll look into that. I totally forgot about this file - getRIL already created that file to keep the 824RIL.

Sounds perfect for keeping camera and my beloved BIOS bootanimation.

What else do you have in your custom_backup_list.txt? :D

But I need to go to bed now.. your timezone doesn't fit to well to mine which will keep me up way too long lol.
[LG Optimus 2x] temasek:
@pastime1971

Seems like even the senior CM dev also love your Scrolling Cache commit. Congratulations on a solid commit and hope it gets approved soon.

Cheers :)
[LG Optimus 2x] pastime1971:
it looks that way.

Tanguy pruvot gave me a good advice on coding style, and possibly performance improvement. will upload a second patch of framework once i finish testing it.
[LG Optimus 2x] temasek:
Nice

I saw the inline comments.

Great job! :)
[LG Optimus 2x] pastime1971:
after 32bpp CropImage part in 32bpp Gallery3D commit, adaptive background in Gallery3D is also free of banding, i think. (i don't exactly recall if it was before, but i guess it was, because that's how the whole discussion on banding started...)
[LG Optimus 2x] Lapiduss:
I solved restoring only "system" from a nandroid backup.. :D
[LG Optimus 2x] ergoen:
It feels like it's already free of banding after your first patch (the one included in temasek's 52). But it's harder to test than with single images where you can take the gradient image.
[LG Optimus 2x] temasek:
Hei1125 has PM me to allow him to use my KANG as his base. He was the one that closed his thread due to this.

I've no objection this time as some of u guys supported the motion. So u will see another thread coming up and users will start again "wow....best rom".

This decision is for the community.

Regards

Temasek

Edit: Removed negative contents. :D
[LG Optimus 2x] TheDaftandFilthyOne:
You still have "faithfulls" ;-) Honestly, your Kang has come at long way and works great Vadonka's kernel, you guys and passtime could move on now; knowing the O2X is a better phone, thanks to you.
[LG Optimus 2x] droweed:
can i ask a request? can anyone post a youtube vid of the current kang? with the ics transition/rotations and lockscreen? I havent had a taste of cm since.. so if anyone can post a vid, that would be nice:cool:
[LG Optimus 2x] paul_cad44:
Just installed 52# build but everytime I run gallery the screen goes black and everyother app after a force close doesn't work. I have done a format and loaded a backup but this is still happening on the backup of 50# build.l which was working perfectly? Any suggestions?
[LG Optimus 2x] C0D3N1N3R:
@temasek and @pastime1971 any news about the screen lock bug?
[LG Optimus 2x] temasek:
I can't reproduce it ....

Anyone?
[LG Optimus 2x] temasek:
Try reflash your rom. If still fc then proceed to Rom Manager to fix permissions then reboot.