yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] georgemv:
Data on/off button in PowerControl widget

Hi everyone,

I ported the data on/off button in the PowerControl widget (part of the Settings app) from cyanogenmod to AOSP.

Find a screen shot attached.

I also attach the patch, ready to applied with git apply if you wish.

Last attachment is a new Settings.apk for the brave people wanting to beta test.

You can apply it it by:

adb reboot recovery

** DO A NANDROID BACKUP **

adb shell mount /system

adb shell rm /system/app/Settings.apk

adb push Settings.apk /system/app/

adb shell umount /system

adb shell sync

adb reboot

The widget will fail to load on first boot. Remove it and re-add it.

All credits go to drakaz and the cyanogen team for this
[Desire Android Development] georgemv:
+1 Battery life is great with HAVS
[Desire Android Development] chrysochire:
In 4 hours, 50 percent down... Quite erratic sometimes... 2.5 Defrost, with Setcpu set...
[Desire Android Development] cezarL:
So... if I only wanted the new power control widget, would I have to use the new settings.apk, or just the first attachment? And how do I apply that one? Flash .zip in recovery?
[Desire Android Development] mmace:
that looks very different to mine, my display is usually around 40% and no voice calls on my list (rarely use it for talking!) but mine is usually down 50% in 4 hours too
[Desire Android Development] georgemv:
No, this is a patch zip for the source code, not an update zip for your device.

If you want to try the new widget you have you follow the adb instructions.
[Desire Android Development] cezarL:
Alright, thanks for posting them... will give it a try tonight, I think :)
[Desire Android Development] Doogleman:
2.5a HAVS 800mV Kernel

Hey guys, I know the HAVS kernels are meant to be available through Defrost setup but I'm running 2.5a and I'm only seeing SVS ones, and no 800mV. Anyone know why?
[Desire Android Development] mattharris26:
A few posts back Richard says he has taken them down as he was not completely happy with them.
[Desire Android Development] Marsbar:
Read back about ten posts.

Geoff
[Desire Android Development] Doogleman:
Thanks for that, hopefully get some decent updated ones soon. I'm experiencing really poor battery life so far...
[Desire Android Development] Marsbar:
ambient light sensor problem

So last night I used the last of my battery when I needed to use maps+navigation - the last 20% went very quickly, but that's no surprise, I think we all know google nav drains like hell.

Unfortunately, after a full recharge today my usage is higher than before, although still not as bad as it has been - it's using around 5% per hour; I looked at the output from alogcat and found quite a lot of entries looking like this:

07-29 11:22:24.692 D/PhoneApp( 451): updateProximitySensorMode: releasing...
07-29 11:22:24.692 E/Sensors ( 370): CAPELLA_CM3602_IOCTL_ENABLE error (I/O error)

Now a quick web search suggests that the CM3602 is the proximity/ambient light sensor. This might explain why automatic brightness can cause problems.

I've no idea what to do about this; just providing info in the hope that someone else might :)

Edit: I installed showsensors and the light sensor seems very flakey - I can be in a dark room and go into a bright one and the reading will not change.

Edit[2]: an hour later and after a reboot I'm back nearer 1%/hour; there are no CM3602 entries in the log and ShowSensors shows the light sensor responding fairly well. Coincidence? Maybe. Maybe the bootup initialisation for the CM3602 is a bit dodgy?
[Desire Android Development] ephumuris:
Is it possible to add menu to UNLOCK to the services.jar myself? I had a look but there are only 2 files. Manifest.mf and the classes.dex. How do i edit the .dex file?]

I have edited bravo keypad to WAKE on menu press but i want to double press and have it wake then unlock.
[Desire Android Development] zigson:
Hi. New here, so first off, thanks to Richard for the ROM and the whole community for the support.

For me, great ROM, the only significant issues are the battery use and email.

I've moved from 2.4 to 2.5a, and the battery life has improved significantly. I'm also using the 800 kernel which Rich has now removed, and in combination with SetCPU and a black background, things have improved further still. When the phone is asleep, battery is discharging <1% per hour, probably <0.5%, so I can run for a couple of days minimum. If I switch on autosync and mobile data, I'm using about 5-10% per hour, WIFI about 15% per hour, heavy browsing 25% per hour, gaming vaies. I'm underclocked to approx 700mhz while awake. This discharge rate seems a bit steep, but from what I've read, people are experiencing very mixed results and it makes me wonder what other variables might be at work.

Email is another matter altogether. On Sense 2.1, I'd get an alert when I received anything in Hotmail (mail app not Gmail), albeit with a lag because I was set to sync hourly. With the new app included on this 2.2 ROM, anything can happen. Sometimes the emails don't arrive for hours, sometimes they do but I don't get a notification. In the GMail app, I don't see an option for the number of messages to download, so it's taken everything I had on the server, about 2,000 messages, into my inbox. I'm not sure where these are stored, but if they're not on the SD card then that might explain why every time I remove an app, I get a whole load more emails, which seem to stop coming through when I'm back down to about 8mb phone memory.

Would be good to hear everyone's thoughts, I've no intention of going back to Sense if I can help it.

Cheers!
[Desire Android Development] Marsbar:
In Gmail, Menu->More->Settings->Labels.
[Desire Android Development] Eggcake:
Still can't find the SwitchPro widget in the market... I can somehow only access it in the download section, because I bought it, but when I search it (for example using a QR code) it doesn't appear... strange.

Edit: actually Tue version I can see is outdated. The info suggests it already is version 1.8.3 but only 1.6 is available. So clearly something is bugged here!
[Desire Android Development] zigson:
Thanks, that's the option I was after. I've still got a couple of thousand emails in the inbox though, and there doesn't seem to be a way to mass-delete them. Maybe I can do something via Hotmail on my PC.
[Desire Android Development] mrshiz:
Sorry if this seems rude as I haven't read through the thread.

I've tried two ROM's so far (DJDroid & OpenDesire w/Sense). Both work fine but with one problem.

The problem is if I play music at the same time as using sat nav then once the woman start telling me directions the music never comes back on again afterwards.

Could someone possibly tell me if the same happens with this rom?

Thanks :)
[Desire Android Development] blenni:
The only thing i can tell you that music comes back after a notification sound. Never tried it with satnav.
[Desire Android Development] ephumuris:
So i took the services.jar, then extracted the classes.dex. Then decompiled to .smali files. Now i have no clue where i am looking to see if i can add menu to unlock. I could also disable trackpad wake if i could find it :(

EDIT: Ok Menu Unlock app from the market works for my problem. Great but i would still like to have it hard modded than form an app so still after help!
[Desire Android Development] ImBarryScot:
I installed Defrost last night and I'm loving it apart from one small problem. I think I may be missing the Flash plugin or something. I went to the Machinarium website to see how well Flash ran but Flash isn't loading.

Any ideas?
[Desire Android Development] mattharris26:
Download Flash Player from the Market.
[Desire Android Development] jjplayground:
It works fine here (2.5a)
[Desire Android Development] ImBarryScot:
I see no Flash Player in the market. I've literally just searched for "flash player" but it doesn't appear to be there. There's an "Adobe Flash Showcase" which I've downloaded but when I try and run it it tries to take me to a non-existant page to install Flash that I haven't got.

Is there any chance that the Flash Player has been removed from the market?
[Desire Android Development] MaTiCeK-:
I have this annoying bug that some apps from the market download but won't install.
[Desire Android Development] ImBarryScot:
I've just searched for all apps by Adobe Systems and the only ones that appear are "Photoshop.com Mobile", "Adobe Reader", and "Adobe Flash Showcase". :(
[Desire Android Development] mattharris26:
It's called Flash Player 10.1 BETA. I find it fine if I search for it on the Market. Not sure why you wouldn't be able to see it.
[Desire Android Development] ImBarryScot:
I think it might be this: http://androidforums.com/all-things-root-droid/115739-flash-10-1-not-showing-market.html
[Desire Android Development] bendix:
Thanks your
[Desire Android Development] reudyfam:
Is javascript enabled, and mobile view turned off in your browser settings?
[Desire Android Development] benlaug:
Hi,

First of all, thank you for this ROM. It's very good, but unfortunately, I have a small issue.

I made my partitions of my sd card with ROM Manager (512 Mo ext3, 0 SWAP) and I installed DeFrost 2.5a.

After that, I have enter the command "pm setInstallLocation 2" with adb shell.

When I try to install Google Earth, the Application Manager says that it's installed on the sd card, but it's install in the internal memory (-20 Mo in the internal memory). It's the same for all applications.

I tried to make Move to phone and Move to card, but the problem is the same.

I don't understand what is wrong ?

Thank you.
[Desire Android Development] ltn100:
If I remember correctly, I used the DeFroST setup app to switch the install locations. Open it up and in the setting tab the Install Location should be set to "External Media"
[Desire Android Development] benlaug:
Thank you for your answer, but the Install Location is already on External Media :(.
[Desire Android Development] jjplayground:
Some problem with Google Earth too. Memory on phone dropped from 95 to 79 Mb of free memory.

DeFrost location is on automatic.
[Desire Android Development] ephumuris:
IF YOU HAVE AN EXT PARTITION THEN ALL YOUR APPS WILL AUTOMATICALLY INSTALL THERE. EVEN IF YOU SET THEM TO INSTALL TO SD CARD WITH ANY PROGRAM. THEY WILL SHOW IN APPLICATIONS AS ON THE PHONE MEMORY BUT THEY ARE NOT.

Sorry about the caps i just feel people need this to be cleared up!! Using an EXT partition is better as even your widgets will be installed there and still work. Your phone memory will still go down with either implementation of apps to sd but the EXT style will be MUCH slower.
[Desire Android Development] jjplayground:
Ok I thought that too but how is can the drop of free memory been explained?
[Desire Android Development] benlaug:
It sounds weird. Is there a mecanism to check if A2SD+ is working ?

And what about the low space alert ? It's very annoying...
[Desire Android Development] ephumuris:
If you have an EXT partition you shouldn't get a low space alert. Not unless you have a stupid amount of apps. I have over 60 apps and still have around 90mb free on phone memory.

Your phone memory still goes down as some small parts still need to be on phone memory.
[Desire Android Development] benlaug:
Ok, thanks for your answer. I'm going to install all my old apps and to give some feedback.

EDIT : It seems to be ok. Thanks to ephumuris.
[Desire Android Development] b3ndik:
hey, I have some questions.

Have you removed norwegian language?

Where is the HAVS kernels?

My phone auto-rotates even though I have set it to "off".

Thanks for an amazing rom btw :)
[Desire Android Development] nitrox1:
Hello all,

Had problems with the newer havs kernel this morning I wrote about it in the bug tracker, but now my tread has been deleted (with no answers) and the havs kernels have been removed from defrost setup.

Were the havs kernels not so good?
[Desire Android Development] discohero11:
Strange. I've been running 2.5a 800mV HAVS since yesterday. I had to pull battery after a random shutdown for no reason (I may have been pressing the power button to check the time, but phone was locked and inside a sleeve ... plus I have lock pattern). Pressing the power button again didn't do anything so battery pull ... tada and it is back up and running shortly thereafter.

Otherwise, 14hrs since I unplugged it and I am at 61% ... not bad but nothing to write home about as I've done better with some earlier versions.

I would like to know why HAVS were pulled.
[Desire Android Development] MaDing2000:
Not so many posts back, Richard indicated his displeasure with the the current state of the HAVS kernels and they would be taken down for the present time.

Seeing as the kernels were pulled, there is no point in the bug tracker becoming flooded with issues relating to an, as yet, unreleased version.

If you really need to know what is wrong with HAVS kernels on AOSP FroYo ROMS for the Desire, start a thread appropriate to the topic and you may get answers from developers.
[Desire Android Development] nitrox1:
Thank you for your oh so nice reply.

I did read a couple of posts back, and all it said was, dis-pleasure with the kernels,or to that effect, and since it's on topic what is the point off of starting a new thread, and cluttering up a web site. (even though this I one of the largest threads)

I'm sure people want to know what they had just put on their phones, with their defrost roms.

As the increase of different kernel is getting a little strange, and I had the best response from the last set of full voltage kernels which I can't reflash as I used defrost setup.
[Desire Android Development] fakts13:
i think it would benefit more people in a separate thread, as HAVS wasn't only used in defrost so people using other roms with HAVS can understand more about it, and the fact that HAVS is no longer available for defrost, it is currently kind of a irrelevant topic.
[Desire Android Development] Hooorny:
I still use the 800mV HAVS kernel and everything is fine ...
[Desire Android Development] mmace:
again yesterday I let my battery run out, I reset the battery, charged the phone until green light then turned it back on, it still uses around 10-15% battery every hour (2.5a with 800mV HAVS), no idea how some of you are getting such good battery times!

(Display 80% - set to v low brightness, Android sys 15%, WiFi 3%, Cell standby 2%, Launcher 2%)
[Desire Android Development] rdy2go:
Me too. Everything is fine.
[Desire Android Development] Gerald.W:
Me too, No issues so far except for no LEDs showing up except for the charge one. Nothing for emails and nothing for SMS. Not sure if that is kernal or ROM related. I am on 75% after 9 hours so not bad. That is with a few texts, few emails, listend to half an hour of music and a couple of short phone calls.

The secret is to turn off wifi and 3g till you need to use them, at least that is how I save the most battery.

Is there a fix for the LED problem?
[Desire Android Development] mmace:
LED is fine on mine, get notifications for everything

how do you know when you're going to receive an email or MMS?

how can anyone be bothered going in and out of the settings all day to switch them on and off?

looking at my percentages the display is using up most of my battery (WiFi is only 5%) yet the brightness is right down (so low I cannot view the phone outdoors)
[Desire Android Development] troca:
I don't understand how so many of you get so good battery time.my battery never last longer then 10 to 12 h
[Desire Android Development] Marsbar:
Are you getting a lot of any one error in red or orange in the main output from alogcat (free in the market)?

Geoff
[Desire Android Development] mmace:
just installed it, within a few seconds there's a massive list and 25% of it is red

it all starts: E\SuRequest( 4493):

then various errors mentioning java, LocalSockets and a looper

also, one keeps popping up saying

E/Tethering( 364): active iface (usb0) reported as adding, ignoring

(not sure if this one is to do with Tetherbot that I use while at work every now and again)

here's some of the red ones I mentioned (if it helps):

E/SuRequest( 4493): No such file or directory

E/SuRequest( 4493): java.io.IOException: No such file or directory

E/SuRequest( 4493): at android.net.LocalSocketImpl.connectLocal(Native Method)

E/SuRequest( 4493): at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)

E/SuRequest( 4493): at android.net.LocalSocket.connect(LocalSocket.java:95)

E/SuRequest( 4493): at com.noshufou.android.su.ResponseHelper.sendResult(ResponseHelper.java:27)

E/SuRequest( 4493): at com.noshufou.android.su.SuRequestReceiver.onReceive(SuRequestReceiver.java:35)

E/SuRequest( 4493): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2810)

E/SuRequest( 4493): at android.app.ActivityThread.access$3200(ActivityThread.java:125)

E/SuRequest( 4493): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)

E/SuRequest( 4493): at android.os.Handler.dispatchMessage(Handler.java:99)

E/SuRequest( 4493): at android.os.Looper.loop(Looper.java:123)

E/SuRequest( 4493): at android.app.ActivityThread.main(ActivityThread.java:4627)

E/SuRequest( 4493): at java.lang.reflect.Method.invokeNative(Native Method)

E/SuRequest( 4493): at java.lang.reflect.Method.invoke(Method.java:521)

E/SuRequest( 4493): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/SuRequest( 4493): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/SuRequest( 4493): at dalvik.system.NativeStart.main(Native Method)

EDIT:

I also get these orange ones about once a minute or less (Newsrob is only meant to sync once an hour):

W/Service ( 710): setForeground: ignoring old API call on com.newsrob.SynchronizationService

W/ResponseProcessCookies( 616): Cookie rejected: "[version: 0][name: GX][value: DQAAAKsAAAC1RhGMZpAcmi5pC-3WR1T275TvPRPvup99gfAxKyH1dHJBOjqYdmu_p0-_TXpLttnt8yv72KCzOszMd_6K1dsfmgv19DJDbKQn9LbGIE10mlpFaNlXjGas3lfZH_5mRVEWqNVT8HH5cMeATooJ6GTxe5RuH23iPytpqyj6dGNN97me8YxhcqLSN4oBNCsvzmd3Gol_IEXOWupnlIGh03ASSsC1MjfjUDgVMh27LJfDAw][domain: mail.google.com][path: /proxy/gmail/mail][expiry: Fri Aug 13 10:02:59 GMT+01:00 2010]". Illegal domain attribute "mail.google.com". Domain of origin: "android.clients.google.com"
[Desire Android Development] Marsbar:
If you're in a poor signal area (as I am at home) and have background sync turned on you'll probably find your battery is far worse letting the data run over GPRS on one or two bars than over wifi.

I'm with mmace on this one: I'm simply too impatient to keep disabling and enabling wifi/3g to save myself an hour on battery life. My hope is that I can get to a stage where I can use my phone for music, email, occasional browsing and the odd game through the day without worrying about the battery; however I'm almost never going to be in a situation where I need more than about 10 hours of battery life, simply because I'm just never that far from a charger.

IMO the real secret to good battery life is to stay in strong signal areas :)
[Desire Android Development] mmace:
I'm always in a strong signal area, yet if I forget my charger when I go to work and go out after work there's no chance the phone lasts more than an hour out of work, and that's deliberately not using it for calls/texts/emails all day!

If I went out after work and needed to phone someone I'd be screwed because it would die, I'd only get an extra hour if I did nothing with the phone making it pointless

bloody smartphones!
[Desire Android Development] Marsbar:
Bear in mind that that's one error: java gives you a stack trace (ish) so the top error of that block is where it went wrong, the rest is the upward trace in the code.

noshufou is the superuser program, no? How many of these are you getting in (say) an hour?

If that's talking about a local socket (as it seems to be) it may be that something failed to create a unix socket in a folder somewhere; have you tried running fix permissions in Rom Manager? (does this even work on the not-quite-rooted desire?)

Yeah, I get this one; I don't think that's a major drain, it doesn't happen often enough and it also carried on even on the times when I was using 1% an hour.
[Desire Android Development] mmace:
I have no idea what noshufou is, I will keep an eye out for it, I have just run fix permissions and am rebooting, cheers
[Desire Android Development] mmace:
I've removed the Newsrob widget (which says how many unread articles there are), fixed permissions and rebooted and now the only thing appearing is the mail.google.com error below which appears every 30-60 seconds, everything else is green or blue

W/ResponseProcessCookies( 616): Cookie rejected: "[version: 0][name: GX][value: DQAAAKsAAAC1RhGMZpAcmi5pC-3WR1T275TvPRPvup99gfAxKyH1dHJBOjqYdmu_p0-_TXpLttnt8yv72KCzOszMd_6K1dsfmgv19DJDbKQn9LbGIE10m lpFaNlXjGas3lfZH_5mRVEWqNVT8HH5cMeATooJ6GTxe5RuH23 iPytpqyj6dGNN97me8YxhcqLSN4oBNCsvzmd3Gol_IEXOWupnl IGh03ASSsC1MjfjUDgVMh27LJfDAw][domain: mail.google.com][path: /proxy/gmail/mail][expiry: Fri Aug 13 10:02:59 GMT+01:00 2010]". Illegal domain attribute "mail.google.com". Domain of origin: "android.clients.google.com"
[Desire Android Development] Marsbar:
Yeah, I get that from gmail. Don't know if it's fixed in the newer gmail (anyone?)

Don't think the fix permissions will have fixed the noshofou error: I tried it myself and I'm still getting it on bootup; however I only get it the once, which doesn't suggest anything that would increase drain to 10-15% an hour.

Sorry if it didn't help - I'm no expert on this (the Desire's my first 'droid phone) - but my Linux experience has always been "if there's problems, check the logs first" :)

Geoff
[Desire Android Development] mmace:
any help is appreciated mate, don't apologise
[Desire Android Development] le3ky:
i'm getting an orange every like 30 seconds, usually in batches of 3 like below:

W/Settings( 6805): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

W/Settings( 6805): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

W/Settings( 6805): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

any ideas? :)
[Desire Android Development] kurtfimmers:
Activesync Exchange dies battery!

Hi there,

Anyone noticed before there is a problem with the built-in email app. After setting up an Exchange Account I noticed that the batteru drained very fast! Although the account is not set to push, but pull ever 30 min its supposed to make a connection every 30 mins. But checking the Partial Wake battery history shows that the email app is constantly keeping the phone from going in standby.

remove the email account seems to resolve the problem :) but this is offcourse not a solution.

It even gets worse when putting the phone in Airplane mode. Tested it overnight, had the phone charged to 100 % put in in Airplane mode at 23:00 and it woke me at 6:00 vibrating cause the battery is dead! Checking the server logs (when it is not in airplane mode) reveals that it polls more than once a second!

I wiped everything, reinstalled but same issue, even tried Defrost Rom, same porblem...

When I install a Sense Rom (wich uses another mail cleint (HTC)) the problem does not occure?

Anyone has seen this before, and even better knows how to solve this, cause for now I'm stuck to Sense Roms!

thx
[Desire Android Development] ivan_white:
i know this isn't the place to ask but,

how to get back go stock 2.1 so i can use the OTA tomorrow? :D

edit:

i'm asking cos of the new radio we now use in defrost