yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] androcheck:
Of course. You will find 2 scripts for gscript in the attached zip-file:

enable_CFS_tweak.sh

disable_CFS_tweak.sh

So you can simply switch for easy testing.

For those who don't know GScript: It's an app from the market to easily execute scripts on your phone. Pretty handy if you are testing things before you add them to an init-script.

Instructions:

Install "GScript Lite" from the market

Unzip the 2 scripts and place it on the sd-card into the folder gscript

Launch GScript Lite, press "Menu" -> "Add script" -> "Load file" and select the scripts you just placed into "gscript" folder.

Make sure the "Need SU?" checkbox is checked and press "Save"

Tap on the script to launch it.

Correct. You would need to place the commands into an init script, which are located in "/system/etc/init.d" on most ROMs.
[Hero, G2 Touch Android Development] androcheck:
Hard to test.. :)

I underclocked my Hero to 245Mhz, started the music player, launched NeoCore benchmark and via adb launched 10 instances of "md5sum /dev/urandom".

Music still not choppy. No matter whether the tweak is enabled or disabled.

The scheduler seems too good to exploit it.. :)

[edit]

just got a NeoCore benchmark if 02.8 FPS :) Yeahh, that's stresstesting..

[/edit]
[Hero, G2 Touch Android Development] MaXo64:
is there a way to make this by default in the source?

maybe add the option to the .config file?
[Hero, G2 Touch Android Development] k0rner:
Yes, you can edit kernel/sched_features.h

and replace

SCHED_FEAT(NEW_FAIR_SLEEPERS, 1)

with

SCHED_FEAT(NEW_FAIR_SLEEPERS, 0)
[Hero, G2 Touch Android Development] MaXo64:
thanks mate, compiling right away.. :)
[Hero, G2 Touch Android Development] tenfar:
what is the test result?
[Hero, G2 Touch Android Development] Izeltokatl:
Just so you guys know we are basically doing this now on the Eris... via some cool scripts:

http://xdaforums.com/showthread.php?t=784089&page=7
[Hero, G2 Touch Android Development] erasmux:
Thanks for the tip will definitively check it out :)
[Hero, G2 Touch Android Development] f_padia:
Wow! Thanks for the tip. After reading it sparked my curiosity in the Linux kernel so I went hunting on the web for more detailed info on this particular parameter (NEW_FAIR_SLEEPERS) but I found no useful info as to what exactly it is or what it does. unfortunately, the name doesnt give too much away either (to the layman).

Anyway eventually I came across a site that a couple of other SLEEPER parameters are mentioned. and it claimed that tweaking these as well as changing the sched_latency and sched_granulairty parameters will enhance android phone performance. Again I searched for explanations of these parameters but to no avail (im obviously not very good at searching!). In the end I thought id just apply the tweaks and see what happened. and voila! the phone is the smoothest I have ever felt it!

As I said I dont know which tweak is responsible for the smoothness or if its just a combination of all three but my phone is really nice to use now. I can scroll long lists and actually see scrolling instead of a stutter from start to finish! I am running elelinux 1.8 and flykernel10a at 528MHz and its smoother than i've had it when running at > 600MHz.

I have no idea what implications the changes have on the overall performance of the phone but its smooth and not overclocked! cant be bad??

so heres the changes I applied: (from ./adb shell or terminal emulator on phone)

$ su

# mount -o remount,rw /system

# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf

# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf

# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf

# mount -o remount,ro /system

# sysctl -p

kernel.sched_latency_ns = 600000

kernel.sched_min_granularity_ns = 400000

kernel.sched_features = 24188

# exit

$ exit

the 24188 parameter disables a couple of sleepers and the other two change some timings in the kernel. The changes are supposedly ONLY suitable for non-BFS kernels. but they are supposed to make the CFS kernel behave more like the BFS kernel in general.

Anyway try it and see if you want and report back if it makes your phone any better or worse. Or if there are any Linux gurus maybe you can shed more light on what these parameters actually do.
[Hero, G2 Touch Android Development] _tek_:
I know this thread is a little old, but I wanted to report that those settings worked great on my MyTouch Slide! I'm also overclocked/underclocked to 825/245 and using the autokiller memory optimizer, with the settings you suggest my phone is amazingly fast!

I did a little research on these settings as well, and will report back as I do some more testing to see what works best with the specs in this specific phone. At that time I will post a link to a new thread on this in the section for my specific phone.

Thanks for the great tips! :cool:
[Nexus One Android Development] Wysie:
Hello all,

I decided to open a new thread instead of continuing the old one because it will be a little irrelevant. This works on CM5.0.7.1 ONLY.

So what's in this mod?

- Ability to show/hide PLMN/SPN label on both status bar pulldown and lockscreen (by bcrook)

- Ability to modify notification count color (by Wysie). Thanks prash for the suggestion!

- Import colours from XML.

- Export colours to XML.

That's all for now. Lol :P.

Downloads & Changelog:

http://development.piratemedia.tv/2010-06-03-spare-parts-framework-mod-for-cm-040610/

Installation:

Flash from recovery!

Instructions/Explanations:

http://wiki.cyanogenmod.com/index.php/User:Wysie

Source:

http://github.com/Wysie

FAQ:

1. What about enomther's ROMs?

I have contacted him via Twitter regarding my framework changes, and here's his reply:

In other words, it *should* be there soon! :)

To Do:

- Override ALL notification items colours (Looking into it with jeagoss and krazykrivda, not sure if it's doable.)

- Progress bar colours (Have to look into it, not sure if it's doable to be honest)

If you like what I do, get me drunk cause I code better when I'm drunk :P!
[Nexus One Android Development] Wysie:
* Reserved * :)
[Nexus One Android Development] Treatcon:
Sounds good!

Taking requests? Here's an idea... ability to turn on/off the date on the drop down notifications window in the top left.
[Nexus One Android Development] Wysie:
Treatcon: Why would you want that? :|
[Nexus One Android Development] bcrook:
Mirrors:

http://briancrook.ca/android/MODs/

http://briancrook.ca/android/MODs/270510_DreamSapphire_Framework_Mod_Update.zip

http://briancrook.ca/android/MODs/270510_Nexus_CM_Framework_Mod_Update.zip
[Nexus One Android Development] RobbieTheStiff:
This is awesome-sauce

Didn't see any installation instructions on Wysie's page from the link above -- I'm assuming this is just flashed from recovery?

Big thanks guys!
[Nexus One Android Development] www1:
Wysie Do you think It's possible to add the carrier logo instead text like this? (photoshopped)
[Nexus One Android Development] Treatcon:
Just wondering... I hate when using a transparent status bar, pull down the notification window and the date is placed over the system icons in the status bar making it look like butt. Then the date isn't really readable anyway since it has a few icons in the background :confused:

This image has been resized, click here to see the fullsize original.
[Nexus One Android Development] rori~:
That´s the prize you have to pay for beauty!;)
[Nexus One Android Development] Wysie:
RobbieTheStiff: Added to first post, forgot about it :P. Yup, just flash it!

Treatcon: Ah ok, I *may* implement it but it's low-priority.

bcrook: Thanks for the mirrors! I'll link to your post from the OP so you can just update them :D.

www1: Nice idea, but I've to have a place to store the images. Will look into it.
[Nexus One Android Development] knightnz:
Thanks for the work Wysie. Now my interface is suitably rainbow-like :)
[Nexus One Android Development] ironslaya:
Great one mod!

Would be nice if it would support other ROM's too
[Nexus One Android Development] RobbieTheStiff:
Just a quick note and a question:

Note: The process seemed a little odd to me, let me know what you think. I flashed from recovery, rebooted, and on the first boot the carrier info was still displayed. I went into Spare Parts->General and confirmed that all the "Display..." options were UNchecked. So I tried to reboot, but the phone hung just before shutting off (with the "Rebooting phone..." window displayed). Had to BP, turned back on, and now everything is good.

Question: This will be integrated into CM from now on as part of the other Framework tweaks?

Thanks!
[Nexus One Android Development] d750:
Any chance add Progress Bar Color Change.
[Nexus One Android Development] Wysie:
Read the first post, d750 :). So far things aren't looking good. The reason is because almost all apps call progress_horizontal directly, without going thru any code (Java). The only change that is possible is to edit the binary XML directly :(

RobbieTheStiff: I had the hang on reboot on stock CM (even before my framework changes, 5.0.6) before, must be one of the apps or maybe CM itself :(.
[Nexus One Android Development] www1:
Thanks Wysie :)

I can help you if U want.

I think we can have two ways:

1 - use sd card (not very good for me)

2 - use system / etc (good way for me) where cyanogen also locate is changelog.

I try to study if It's possible a solution like iphone (any carrier with own logo) but the android structure it's very different.

I also try to add a sound when lock the phone and when unlock.

It's really cool but I can't do it.

Can U help Me?

Thanks Wysie for your android modding.

:)
[Nexus One Android Development] Wysie:
www1: Using system/etc/ to store all images of all providers? =| Regarding the sound, check LockScreen.java (Slide unlock) and UnlockScreen.java (Pattern unlock). :)
[Nexus One Android Development] www1:
I think only one file called logo.png so any person can select what lago see in device. Non only carrier logo but anything he wants.

Any carrier logo it's very difficult :(

For logo I think It can be grabbed form a SD folder like Logo so anyone can select it, but the logo see in Devices are hoster in etc. So when a person select the logo it have to be copy in etc :)

What do you think?

Now I try to look lock file for try to add a sound ;)
[Nexus One Android Development] bcrook:
Adding an image sounds unnecessarily convoluted. And there is no way we should be pitting a crapton of images in /system. We are already tight on space in the d/s builds. There are like 100 carriers with android. Ugh.
[Nexus One Android Development] Treatcon:
I vote to include trackball notifications in succession ;) WHOOT!! :)
[Nexus One Android Development] djmcnz:
Stuck & Bust

@Wysie or anyone that can help.

Where is the default colour for the notification ticker now stored? After a fresh wipe/rom it used to be that status_bar.xml in framework-res.apk was used for the defaults (and the defaults are black in that xml). But evidently this is no longer the case as I can change the values in that xml and install a fresh rom with it and my changes have no effect (I verified the changes by checking the installed apk).

So I had a look in spare parts and found that I can reuse resetUITweaks to make implementing my preferred colours easier (I'm using a dark bar) but this still requires a reboot.

When resetUITweaks executes it edits (I assume, rather than adding) values in the system settings table. And I know that values are stored as strings in that table... cool...

So perhaps that was a long way of saying I've searched, researched, decompiled, compiled, greped and am quickly running out of ideas...

Without building from source, do you/anyone know where I go to find the default black so that I can edit it?

Again; tried and eliminated status_bar.xml, already using SP Reset Defaults, I want a "first boot" solution.

TIA! :)

Edit: I'm asking here because me theory is that the system settings table never contained values for these colours, the xml was always used, Cyanogen has merged the OP's source (5.0.7) which has added the entries to the table. As a consequence Cyanogen added default values to his table when he built making the xml redundant because there's always a default value. The OP's app edits the new table values. Since I suspect most of the code came from the OP I thought here was the best place to ask.
[Nexus One Android Development] Wysie:
Updated! See first post or http://development.piratemedia.tv/2010-06-03-spare-parts-framework-mod-for-cm-040610/.

djmcnz: Not sure if the XML import will help you in what you want ^^.
[Nexus One Android Development] djmcnz:
The "what's next" will really help me! I've actually patched the Spare Parts "reset ui tweaks" function to use my colours as defaults (and now I won't have to do this, thank you sir!) but the first boot still eludes me.

I may have to go to Cyanogen's source to find those default strings if you're not sure where they are.
[Nexus One Android Development] kitsunisan:
Hell no. Its easy enough to do yourself, don't bloat this with too much junk.
[Nexus One Android Development] Treatcon:
[MOD] Trackball Notifications in Succession [v 0.5] (CM-5.0.5.3) <-- 48 pages thus far.

The community has been modifying it to work with all released versions of CM. I love the idea behind seeing a single color for each notification, it only makes sense. A simple option to turn it on or off would suffice with a warning about battery consumption if used. I would love to see it added to CM so I never have to worry about waiting for somebody to update it so I can add it in. Apps are no biggie, but this is a file replacement to get the effect. It may be easy for some to modify for the current build, but not for me and many others. I know that asking to add this into Spare Parts may sound easy, just add an on/off button, but it may be hard as hell to implement. I don't know and am just not that skilled at jar files. This is a community project and I'm just throwing out some ideas for future releases is all. I understand your concern... more junky options that I have to look at. But isn't this the XDA where the coolest **** for the phones are thought up and implemented :confused:

Peace! :cool:
[Nexus One Android Development] Wysie:
djmcnz: Oh, I get what you mean now. Take a look at frameworks/base/services/java/com/android/server/status, at StatusBarIcon.java, StatusBarPolicy.java and StatusBarService.java. I made it default to black or white in there :).
[Nexus One Android Development] Wysie:
Updated with the ability to export. See first post :)!
[Nexus One Android Development] djmcnz:
N.i.c.e. o.n.e. !! :)
[Nexus One Android Development] djmcnz:
I'm just taking a look and I am a little tired but did you really make it that easy for me? Blackcolor/whitecolor?

If so, that seems to be forward thinking at its best so props.
[Nexus One Android Development] Wysie:
I made it blackColor whiteColor for my own er.. laziness? :P You can simply change the values assigned to them.. :)
[Nexus One Android Development] Gilg@mesh:
possible to make this work with Froyo? I just want to get rid of the clock ;) is it possible yet?
[Nexus One Android Development] Wysie:
Gille1: No. Source for Froyo is not out :(.
[Nexus One Android Development] :
The latest post is already included in .8 T0, right?

unrelated note: I have some suggestions for modifying stuff throughout the OS, do you take requests? :D
[Nexus One Android Development] vincom2:
Would it be possible for there to be settings for the battery percentage display colour such that you can set different colours to go with different battery levels? What I mean is, right now I have my battery percentage set to a shade of green so it blends well with the battery icon when it's green. I'd like to be able to make it go yellow, then red, to blend in with the icon when it changes colour too.

Nice mod btw :)
[Nexus One Android Development] mgorman:
Can you update this for cm 5.0.8-T5? Thanks
[Nexus One Android Development] vincom2:
Isn't this already included in cm5.0.8?
[Nexus One Android Development] Wysie:
vincom2: Yup :).
[Nexus One Android Development] djmcnz:
Actually I've not looked. Is it all in settings.apk now or is there still a dependancy with spareparts.apk?
[Nexus One Android Development] anwoo:
Feature Request

Hi,

Could I request a small feature?

Right now, when you plug in a headphone with no mic, android disables the built in microphone, making it impossible to answer phone calls.

So when you receive calls, the only way to fix it is to pull the cable out just before answering.

Is it possible to add an option to always enable internal microphone and speaker when making calls?

And when call ends, switch back to previous state (audio through headphone).
[Nexus One Android Development] Lex82:
Now that the source is out will this be an option in the future?
[Nexus One Android Development] Wysie:
It is still in Spare Parts in 5.0.8, just that Settings calls the Spare Parts activity.

Yes, @jeagoss has kindly helped to port all of the code for the colour changes to CM6. I've also finished porting the invisible lockscreen and custom message portion. It will be in CMparts. :)
[General Topics] X-TRA:
any one tell me that how to unlock this b7320 set because this is the windows mobiles
[General Topics] magesh_kavungal:
your device is from which operator ???
[Desire General] port187:
Hi forum,

I have noticed that my HTC Desire only reaches 2mbit max upload no matter which WIFI network I take.

I know the 3G upload max is 2mbit but is the phone's max upload regardless of wifi or 3g connect also 2mbit? is this hard capped in the desire and/or Android 2.1 or a driver issue?

Anybody have the same issues or can shed some light on this issue?
[Desire General] speedking34:
Or you know, it might also come down to the fact that your internet connexion doesn't have faster upload speed that 2Mbps.

You never know
[Desire General] sruon:
A device cannot upload faster than it can read datas you know... you're probably using a class 2 SD card? That's capped at 2 mb/s.
[Desire General] port187:
I forgot to mention that I tested it on both a 60/6 internet connection at home, on my internal network and at the office wifi network 100/100mbit.

A mate of mine with a desire had the same results while 2 other mates using an Iphone had 14mbit up at the office.
[Desire General] port187:
If I download at max 2mb/s to my SD you are right, but I downloaded at around 15mbit if this was the SD card limit I would guess the upload should be the same if the network allowed it.
[Desire General] foxmeister:
Nonsense! My class 2 Sandisk 16gb MicroSD card has a sustained read speed of around 20mb/s and a sustained write speed of 7.5mb/s.

The class of a card is not an "upper" cap, it's the *minimum* sustained write speed.

Regards,

Dave
[Desire General] speedking34:
Then you might be onto something? I cannot try it myself, I've got no access to a connection greater that 1Mbps (yea, the UK has crap network speeds).
[Desire General] port187:
Anybody with wifi access with more then 2mbit upload, that can test it with an application like speedtest.net?
[Desire General] KRiZ-R:
I just tested it with speedtest.net Amsterdam Server,

@ Desire: Download 13,35 and Upload 2,35 Mbit

@ pc: Download 58,07 and Upload 2,98 Mbit
[Desire General] port187:
Some more tests:

Desire WIFI 54g @home 60/6 speedtest.net: 14m - 15m/1.5m - 2m

Laptop WIFI 54g @home 60/6 speedtest.net: 20m - 30m/5m - 5.5m

Desktop 1g @home 60/6 speedtest.net: 40m - 50m/5m - 5.5m

Looks like the wireless in the desire is not the fastest one, 15 down is enough but I don't understand why it's limited to 2 up only.
[Desire General] th3:
On a 20/2 connection, I had 6.8Mbps dl and 1.1Mbps ul 60ms ping for about two weeks until April 5th. Ever since, I'm capped to 2.9Mbps dl and 0.1Mbps ul 240ms ping, max. Same test servers. No idea why (no hardware change since). I get higher with HSPDA when I leave town now.

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

- Sent via my HTC Desire -
[Desire General] port187:
So no heavy users here that can confirm or deny the max wifi upload speed of the desire?
[Desire General] spooky75:
According to Speedtest.net application maximum I got 2.3 Mbit/sec.
[Desire General] ranwej:
On my desire was speedtest on www.merac.sk 7,8mbit down and 3,6mbit up. Wifi router 54mbit with connectivity 60/60mbit optical.

On next test 7,2/5,3 mbit. So no 2mbit upload limit here.
[Desire General] port187:
Good to hear that!! weird that I can't get mine above the 2 then!
[Desire General] doggie123:
My internet is too slow (1 Mbit /sec up) to compare; but this got me interested in trying something similar on my WiFi LAN.

I used SwiFTP Server for Android @ the Desire, and an FTP client for Windows @ the PC, all using WiFi.

Results:

- copy a 5 MByte file from from /sdcard/mp3 to the PC -> 8 Mbit / sec

- copy a 5 MByte file from from /system/app to the PC -> 9 Mbit / sec

- copying the same file twice from anywhere, the 2nd time the transfer rate would go up to 11 Mbit / sec probably due to read caching.

So over WiFi it can do 11 Mbit / sec up***

***Of course this doesn't say if that limit is imposed by the Desire, the Tele2 WiFi router, or even the laptop...

For comparison, I also mounted the phone as an USB drive.

Copying one file from /sdcard/mp3 to the PC over USB: too fast for a good result.

Copying ~400 MByte of files from /sdcard/mp3 to the PC over USB: sustained copy speeds of about 60 to 70 Mbit / sec.

YMMV :D
[Desire General] Blackflorescent:
HTC WILDFIRE VS IPOD VS PC on FIBRE

It seems that if you try to test using browser it will give much slower results - try downloading sppednet app from market place.

I have bt infinty - 40Mbps down 10Mbps up.

HTC Wildfire using the browser at speedtest.net gave me 1.95Mbps down and 0.34Mbps up

However after installing the speedtest.net app i achieved 10.85Mbps down and 1.30Mbps up

The actual results for the PC with IE8 at speedtest.net were 37.48Mbps down and 8.24Mbps up

The Ipod Touch 8GB acheived 5.70Mbps down and 6.84 upload

GET THE APP !:cool:
[Droid Eris Android Development] rw6497:
not for nothing but I have found all this bickering between the devs highly entertaining. I check this site prolly like 5 times a day , looking for updates n stuff. but this fighting is fantastic. lmao no really. its got drama, anger, backstabbing , revenge. hope moderators don't do their jobs to well. I for one am totally enjoying this. cheers :-) :-) :-)
[Droid Eris Android Development] jcase:
Post goes in the general section, not the dev section.

To Do List:

Ask moderators for new drama section??
[Droid Eris Android Development] rw6497:
lol I definitely will ask for one. ..
[Droid Eris Android Development] stupidpopmediareference:
Well, I think it might qualify as development. Of drama.

Now if I can just figure out how to code a snide comment generator for my Eris...
[Droid Eris Android Development] Andrizoid:
lol

+1 to that. means there will only one thread i need to ignore! :D
[Droid Eris Android Development] ivanmmj:
1. Not development related.

2. Flame thread.

Thread closed.
[Desire General] roakes:
Bit of a strange one, Friend Stream app is still on my phone but there is no option to add the widget. Only mod I have done is the Modaco Root, not a custom ROM or anything.

Any ideas?
[Desire General] roakes:
Actually, on closer inspection all HTC widgets have disappeared leaving just the Android widgets. Any ideas what could have happened?
[Desire General] myth1001:
Did you use any 3rd part launcher app? ( HelixLauncher, launcher pro , etc. )

If you use those instead of the default HTC Sense, you can't add HTC widget to the homescreens.
[Desire General] roakes:
No I don't use any 3rd party launchers but I've worked it out now. I just had to clear the HTC Sense application data, which annoyingly reset all of my home screens back to factory but restored the widgets too.
[Desire General] fridaycider:
thanks for finding that out. just had it happen to me..