yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] stellarman:
When I use this for all three -- gapps, phone and mediaserver -- I see that phone and gapps have been changed to the expected values. Mediaserver has not. Something is going on here. Either it is not being changed as expected, or this command doesn't pick up the priority and nice from the correct process. In any event, it shows priority = 20 and nice=0. Anyone have any idea?

[edit] Also, I notice that, after some period of time, gapps seems to reset itself to 'priority=20' and 'nice=0'. It must get restarted by some process or something.
[G1 Android Development] rikupw:
theres another app for that... Gscript.. and maybe editing the boot.img?

another thing to try is using Gscript to call a renice shell script from your home screen... though its a little more work than automatically setting it up :)

I did notice the mediaserver service restarts every time there is a sound changed, I have sound enabled for selection in my settings, and I reniced the mediaserver before I clicked anything, pressed menu, it made noise (go figure) and then checked the priorty of it, and noticed that it changed back to the default priority of 20. EDIT: or perhaps (which I wouldn't know) the mediaserver isn't the baseline service, and another service is calling it out?

I don't think changing the nice values of mediaserver will work unless we change something in the boot.img... (theres another idea... which I have the tools to unpack and repack a boot.img)

on second thought, if it didn't work when using the userinit.sh... it probably wouldn't work in the boot.img... unless i'm missing something...
[G1 Android Development] devsk:
I see this behavior too. It looks like either the process is getting recycled or something is actively setting it lower down its priority.
[G1 Android Development] miketaylor00:
Same here. That's why I was hoping there was a way to do it other than pid. It is changing too much. This may be something that the developers can build into the ROM by making changes at a lower level. Maybe we should request Cyanogen or someone look into it. I've heard that some ROMs have less trouble with this than others. Which is possible if they handle the priority of processes differently.
[G1 Android Development] stellarman:
I have brought this issue up in the Cyanogen threads several times. It just doesn't seem to be on Steve's 'radar screen' that much. But, I suppose if we go to him with more data about the situation, maybe he would put in some kind of a fix. I just don't have the programming chops to suggest how to permanently increase the priority on a process at that low level. Anyone here that does?
[G1 Android Development] Janis:
CM 4.0.3.1 rings at the beginning of the 2nd ring, no tweaks

I'm using an ogg file, thats it.

Say, I had my ring vol way down so as not to wake the fam, so I had one ear to my G1 speaker and one to the house phone. I heard a hiss prior to the ring. I've been using sapphire as default. Could there be silence at the beginning of these files that could be trimmed?

I don't know how to edit and ogg file, but I'm going to try the mp3, take a look at it, and see if I can find a way to convert, unless someone can kindly suggest something.
[G1 Android Development] Binary100100:
I used one from this link:

http://download.cnet.com/Free-Mp3-Wma-Ogg-Converter/3000-2140_4-10793572.html

It worked pretty well.

I set my ringtones to mono (since the absense of a built in secondary speaker) and at the lowest bitrate and it saved some space. I have some custom mp3 ringtones that I made which were about 500 to 700kb in mp3 format and with the conversion I managed to get them down to about 100 -400 kb. Much better and it does ring sooner. It's strange though. Non-Hero builds use ogg, but the Hero build that I'm using all have mp3 as their built in ringtones. It still plays the ogg files though.
[G1 Android Development] tehseano:
Hello everyone, I've had a lot of success getting my phone to ring like a real phone. To acheive this I A:

disable the phone vibrate. It will vib 2/3 times before ringing. If you turn this off, you ring right away.

As for the lag itself, I found that having ringtones on the SDcard is the main problem, moving them to the internal memory, they are started much quicker. Only problem is, sometimes they stay there, sometimes they don't. There's got to be something about putting certain mp3's on the int memory that the g1 just doesn't like.

But as I said, it does work, just sometimes, or at least after a few tries.
[G1 Android Development] rikupw:
I run Cyanogen's build, and I have a script that I run right after I flash, I have also folder on my sd partition that has some OGG'd ringtones and other files that like, I have it remove the default media/audio folder, and put my media/audio folder in, as long as you do this RIGHT AFTER YOU FLASH your cyanogen update, (if its a no wipe, the ringtones will not stick if you let the update boot before changing the media files, if you make sure to stick 'em in your int audio folder BEFORE you boot, you should be good)

anyway, the script replaces the default fonts and audio and installs the man scripts and also sets up my 4th partition to be mounted to /system/sdc via the fstab :) (which after such I use the autostart.sh script to mount it up properly after booting :) ) but thats a little off subject, sort of :P )

just make sure that if you don't want to go through all the trouble of resetting all those media files, to place them into the /media/audio/'etc etc etc' folders before you boot for the first time, or it won't stick :P :)

I agree, and have had perfect success, as long as vibrate is off, its almost instantaneous (minus normal phone lag). and if you add some nice renice'ing scripts to the mix, you get it quite literally within a second or two of calling ;D sweet deal, I must say so myself :D
[G1 Android Development] worldestroyer:
Just thought i'd throw in my experience on the topic..

I'm currently running a 64MB linux swap off of the sdcard, no ext3 partition, no compcache, virtual memory enabled, all with huanyu's userinit.sh script. All my ringtones are in the /sdcard/ directory, and it vibrates 1/2 through the 1st ring, and the ringtone plays before the end of the first ring. My only major change i've made was to the CPU adjustments in the userinit.sh; I lowered the sampling_rate to 1000000 from 2000000, set the powersave_bias=0, and raised up_threshold=50. I'm still playing around with everything, but it seems to really kick stuff up pretty quickly in general.
[G1 Android Development] miketaylor00:
I don't think anyone has posted this yet. Here is the autostart.sh file that I created. You have to have the app from the market installed for this to work. Search for 'autostart' and you will see it. It is developed by blank-online.eu, I have no affiliation with them. Download the script and remove the .txt from the file name. Copy the file to the root of your sd card and then run the following commands from Terminal Emulator.

su
mkdir /data/opt/
cp /sdcard/autostart.sh /data/opt/autostart.sh
chmod 755 /data/opt/autostart.sh

Reboot your phone to get the app to change the settings. Autostart should run everytime the phone boots up. You can run the script manually by using this command:

su
sh /data/opt/autostart.sh

To see if it is really changing the values, you can use Devsk's script that he wrote here:

http://xdaforums.com/showthread.php?p=4365912&#post4365912

Note: This is not a permanent fix. It helps speed up the ring time on incoming calls but there are other factors that will slow things down. Also, if the services get restarted they will go back to their default settings and stay that way until the script is run manually or by rebooting

EDIT: I forgot to put busybox in front of the commands. I tested it again and it wasn't working on my phone. Please download the updated file if you are using this. I also added a command to make sure the script has the correct permissions.
[G1 Android Development] jinx10000:
Updates to this have been moved to this thread.

http://xdaforums.com/showpost.php?p=4511181&postcount=1

Warning - Do not use a script that has the word reboot in it. :D

Changelog:

v1 - automatic 20, -20 , -20 renicing every 30 minutes.

v1r2-

User selectable times are now available. Just press menu and change hours and minutes to how often you would like it to run.

Changed renice from 20, -20, -20 to 5, -18, -18 as suggested.

v1r3-

A user (you) made script is required for this version. This should allow you to run your own custom scripts at time intervals specified by you.

The user script must be named script.txt and placed in the root of the sdcard ----/sdcard/script.txt

Removed service announcement in title bar. Still provides quick toast.

Removed a couple of unused graphics that made it a little smaller.

I included a sample renicer script in the PhoneRenicer1r3.zip.

v1r5-

Starts at reboot. This can be turned off in preferences.

script.txt must now be placed in the folder /sdcard/phonePrioritizer/ <---note the capitol P.

so /sdcard/phonePrioritizer/script.txt.

If you run the program once before placing the script.txt file the directory will be created for you.

Added additional prioritization stuff from Mike Taylor's script to the sample script. Thanks.

Future Plans -

Additional Testing

Ability to set a specific reboot time. <-- 5am reboot, now I wake up to a nice freshly rebooted phone. Thanks to prscott1 for the idea.
[G1 Android Development] pascanu:
Thank you for this! I tried it and it seams to work.

I was wondering if you could make it run the /data/opt/autostart.sh file repeatedly instead, as some people have suggested values of +/-20 would be to much and I have set mine a little lower.
[G1 Android Development] jinx10000:
I am planning on doing that and allowing for time interval changing.

For now let me know better values and i can hardcode.
[G1 Android Development] javacody:
Wow, that is freakin' cool! Took 1.5 rings the first time and half a ring the second time I called.

The send/home/back/end keys lit up almost immediately as well!

Great work on this little app. Installed it on the latest Jac Hero ROM (JACxHEROSkiv1.7r2).
[G1 Android Development] clarkeismine:
In the past I have had a similar ringing issue as this thread. However, after installing Cyanogen's newest 4.16 update... I cannot make it happen any more. As soon as I call my cell it rings, does not matter what is going on in the background. I had 5 home screens of widgets set to constantly update from the internet along with some programs running in the background, such as downloading and installing many programs at once from market, and it always rings immediately now. His newest build incorporates a lot of new Donut changes, so Google may have partially addressed this issue. This newest build is ridiculously fast. So this may be a good sign for the future.

Sorry if that was a bit off topic, but it seemed to fix all the ringing issues.
[G1 Android Development] cyanogen:
I also put a fix into the Phone app itself to not do weird stuff with the keyguard at inappropriate times.
[G1 Android Development] miketaylor00:
When I read your post I thought, wow we had the exact same idea but used different methods to get there. I've built a script that gets called at startup and updates every 3 minutes (or whatever interval you set it to). It will be included in the next xROM build and then I will be posting it too. But I like your idea of making an app out of it. It's just one of those things that people can hurt their phone with if they don't know what they are doing. My suggestion is DO NOT let them ever choose -20. Nothing else will respond when something is set to -20 and it can freeze up the phone if that processes gets out of control. I suggest -18. Also don't set gapps to 20. It is too high and will slow down all of your google apps. I use 5.
[G1 Android Development] jinx10000:
Mike. Thanks for the info.

I will set those values in the program on next release. I am mostly just playing around with coding in Android to see what I can get this phone to do. This thread gave me the idea. I thought it would be neat to be able to schedule scripts since I couldn't get Cron to work and Gscript doesn't have a scheduler.

Sounds like once Cyanogen releases the new stable release we will not have to worry about this at all anymore.
[G1 Android Development] pascanu:
Your crappy little app also needs an icon :D

One interesting thing: on CM 4.0 to 4.0.3 I had a problem with caller ID not showing up (just the number showed up). It was fixed in 4.0.4. Now in 4.1.6 the problem reappeared but it seams that running your app solved the issue. I can't swear it was your app (I'll have to do more testing) but I got a call just after flashing 4.1.6 and no caller ID showed up, then I ran your app and all other calls behaved as they should (fast ringing and caller ID showed up instantly).
[G1 Android Development] jinx10000:
That is funny. I have zero artistic talent. If you want to offer up an icon I will slap it in the program. LOL.

Nice to hear that it is working for you.

I have thrown up a new version which allows you to set your own times. I hardcoded the renice values suggested by MikeTaylor.

http://xdaforums.com/showpost.php?p=4493992&postcount=126
[G1 Android Development] javacody:
I'm not sure if it was changing to using linux swap from compcache or your app, but my sms app is working better. Weird.

Another wierd thing. First call took 1.5 rings, second call, my G1 didn't ring at all? Third and fourth calls about a half a ring.

Anyone else have this issue with their phone not ringing at all?
[G1 Android Development] jinx10000:
Added v1.3 that allows you to schedule your own custom script.

Once I get this to restart on boot and work out any bugs that arise (so far so good), I think I am finished.

Let me know if you come up with any great ideas for scheduled scripting other than renicing.

http://xdaforums.com/showpost.php?p=4493992&postcount=126
[G1 Android Development] Janis:
BFS

Apparently what Cyanogen has incorporated into his latest experimental ROM, 4.1.6, pretty much eliminates the ring and caller ID lag by reprioritizing apps. it's called BFS. I loaded the ROM, and it is speedy, but I ran out of time andcoudn't check the ring time. I'd be curious if anyone has any feedback on it. I'll post here again once I get a chance to reload the ROM and test this properly.

So I was wondering if this new BFS management works with the renicing, and jinx10000's awesome new app that I have yet to figure out. I'm strongly ambivalent that Android is rife with learning opportunities. The simplicity of v1r2 is great, and it really seems to help on Cyanogen's 4.0.4.
[G1 Android Development] jinx10000:
LOL, I guess my instructions were confusing. All you have to do is place a file named script.txt on the root of the /sdcard/. Of course this script.txt should actually have a script you want to schedule in it.

You can also set times if you want. You don't have to, it autosets for 30 minutes. Very easy actually.

I guess once Cyanogen gets a stable bfs version out (can't wait) there will only be need for those that want to experiment with Hero. I don't know if bfs can be ported.
[G1 Android Development] Janis:
Well, I got the idea, I'm just having a (sort of) hard time finding Userscript, so I took the r2 easy way.

I looked on Market, nada. I Gooogled it and searched this dev forum in posts and got too many results to handle. I got nothing when I searched xda AndDev forum in titles.

I'll keep looking, but if you beat me to it, do you have a link?

Edit: I got a link with a barcode*. It's called com.google.ase

I am so f-ing confused I'm laughing. The help page for this has instructions to install barcode* scanner.

I'll get it, but I feel like a hamster in a HabiTrail (not a bad thing for a more active hamster, I suppose.)
[G1 Android Development] jinx10000:
Wow. My instructions were really bad i guess.

A user script was supposedto be two words.

It is just script.txt. user being you and whatever you put into the script.

sorry.
[G1 Android Development] jinx10000:
The apk now autostarts on reboot.

Wow, that was surprisingly tough to figure out.

Looks like Mike Taylor's script will be included in the newer releases so this may not be necessary in the future. Bad timing. LOL.

However, it was a learning experience.

Let me know if you come up with good ideas for scheduled scripting.
[G1 Android Development] raven911:
Not to muddy the waters here, but I wanted to see if anyone's having a similar issue to mine that seems to be related to this ring delay. I ran the renicing script and now the delay on the rings seems to be a lot better. However, if anyone tries to call the phone while I'm surfing the browser, or otherwise using EDGE, the call won't come through (no vibrate and no ring). It just rings and then goes through to voicemail.

I've tried looking through some forums, and the only explanation I've heard is that EDGE can't do data + voice simultaneously, but that somehow Android prioritizes data over voice with no apparent solution? Thanks,
[G1 Android Development] ccriffman:
Mike- Not to sound too dense, but where did you turn off "missed call"? I can't find it anywhere- chris aka riffman:confused:
[G1 Android Development] jinx10000:
Missed call is an app from market.
[G1 Android Development] jacsonmoore3:
ok i got my phone to start ringing after the 1st ring by doing is

1. i got a app call - Caller ID by WhitePages

2. use Advance Task Manager Pro - for killing running apps

3. use OverClockWidget - set 528 max,min

4. you can then do this

[Step 1.] Enter *#61*11# and press Send/Talk on your phone.

[Step 2.] Write down the number your calls are currently forwarded to.

[Step 3.] This is your voicemail deposit number.

[Step 4.] Decide how long you want the phone to ring in 5 second intervals. The maximum time is 30 seconds. I have mine set at 25 seconds.

[Step 5.] Now enter **61*[number from step 2]*11*[number from step 3, use 2 digits]# and press Send/Talk.

5. PM me - if u have any question
[myTouch 3G, Magic General] lpasq:
Rogers' Magic here tomorrow to use on ATT USA. Want a ROM to blow out Rogers and willing to beta Sense UI ported to 32A even with minor bugs. Or...might prefer a de-branded, optimized Donut with MS Exchange functionality.

What's bleeding edge that yo have tested?
[myTouch 3G, Magic General] bonesy:
I suggest cyanogens experimental. CM Updater from the market is now working on sapphire.

I keep flicking to Hero ROMs when they say "extremely fast but compared to cyanogen theyre slower than a legless dog!
[Windows Mobile Development and Hacking General] Martinhdk:
So...

Have seen and tried this AWESOME player called Mobilekugou.

Its chinese, but it is possible to download and install and it seems to have quite an awesome GUI.

It would be rather cool if one of the chinese devs of XDA, could make an english version of this.

If you wanna try - go for DOPOD and download a version...

http://translate.google.com/transla...bilekugou&hl=en&safe=off&rls=com.microsoft:da

Found ONE video of and older version on TUBE - http://www.youtube.com/watch?v=8CGizTD4VwU - but you should try it to see how slick it is..

Have attached one for VGA/WVGA - WM...
[Windows Mobile Development and Hacking General] Martinhdk:
For any updates

Just in case for updates
[Windows Mobile Development and Hacking General] zsoft:
Too it would be desirable to find the English version of this player, very convenient (beautiful) player and a sound quite good....
[Windows Mobile Development and Hacking General] Martinhdk:
Just a BUMP
[Windows Mobile Development and Hacking General] EREZYAD:
better 1 :D

http://s2p.ac-s2.com/

tnx 2 A_C XDA Member
[Windows Mobile Development and Hacking General] wuffi123:
s2p isn´t better.

it´s such a pity... my prior mobile was a nokia n95 (symbian s60v3) and there were so many good music players. the 2 best ones: 360ting and TTPOD !!!

possibility of fullscreen cover, many different themes, download cover, download lyrics AND DOWNLOAD SONGS.

+ lyrics in karaoke-style!!!!

360ting or ttpod (or kugou in english) for wm6x, that´s my dream!!!

(there´s a java version of ttpod, but that seems to be buggy)
[Windows Mobile Development and Hacking General] Martinhdk:
just a bump to see if we could get some to translate... :)
[Tilt, TyTN II, MDA Vario III General] ASCIIker:
the "three-layer-xda-architecture" you describe is not a very accurate description of the internals of a windows mobile device

also, most of the information mentioned here is also mentioned in the wiki

congratulations on your first custom ROM flash and your post proves that unlocking your device and flashing a ROM is really not that difficult if the steps are followed correctly.
[Tilt, TyTN II, MDA Vario III General] akhussain:
Hi there,

Thanks, and we have the same ROM:D

I'm now in the process of updating the radio 1.71.09.01 (as mentioned on the ROM thread) - How are you finding the 1.70.18.02?

I can also see that you are using the HSPL 3.34 DaveShaw...

I'm going to take a shortcut and ask you a few questions if you dont mind :o ...

I installed in the following order SPL --> ROM --> planning to to Radio now.

If I want the HSPL 3.34 Daveshaw, do I have to reinstall the ROM and Radio afterwards????

Can I install Daveshaw's the same way I followed mskip's tutorial?

Thanks
[Tilt, TyTN II, MDA Vario III General] ASCIIker:
dude, if you look carefully at my signature that mentions the ROM and ROM "parts" that i am using, you will see that they are LINKS. i have made them LINKS so that any forum member can just click the links to get more information.

the very FIRST link in my signature is to the "wiki" that contains 99% of the information anyone might need, including the answers to the following questions you are asking:

1. I'm now in the process of updating the radio 1.71.09.01 (as mentioned on the ROM thread) - How are you finding the 1.70.18.02?

it doesn't matter what radio version **I** am using. the performance of a radio version is highly dependent on the particular ROM you are using and your LOCATION in the world and your PROVIDER. even though we are both using the same SERIES of ROMs, they are DIFFERENT ROMs (based on different windows mobile builds) and we are in DIFFERENT parts of the world and we are using DIFFERENT providers. read the "Ultimate Radio Thread" in my signature and you will see this is the answer given to ANYONE that asks "what is the 'best' radio"

2. I installed in the following order SPL --> ROM --> planning to to Radio now.

If I want the HSPL 3.34 Daveshaw, do I have to reinstall the ROM and Radio afterwards????

just read the PDA Corner Ultimate thread for more information...read the FAQ there. HardSPL needs to be done ONCE in your entire life, unless you want to upgrade your HardSPL version. changing HardSPL and/or Radio is NON DESTRUCTIVE. but some people are starting to recommend doing a hard reset after changing radio to be on the safe side. the process of changing the SPL or radio SHOULD NOT affect your programs and data but these days some people are recommending hard resetting after the change.

3. Can I install Daveshaw's the same way I followed mskip's tutorial?

mskip's tutorial is great but you seriously need to read the wiki to clear your concepts. short answer is that the tutorial steps CAN be followed but SOME radios, SPLs, and ROMs might require slightly different steps that will be clarified in the threads for those radios, SPLs, and ROMs. so, just read the thread for DaveShaw HardSPL 3.34 which is linked in my signature.

once again, just please please please read the wiki and search and read and search. it will be a rewarding experience and will help build your concepts and will minimize the need for basic questions.