yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Android Development] saijao:
Hi guys,

Could some1 please run the following 'experiment' on their diamond, its regarding battery life.

Earlier todayI ran a test with my diamond .. I put in an deactivated SIM to see if the lack of GSM communication would improve battery life , contrary to what I expected there was no improvement.. I got 7 Hours of minimal use.

I placed the phone in airplane mode in winmo and android (I firstly set it in android then booted to winmo to set it there) around 3 hours into running with some use I was @ 91% battery now 7 hours into the experiment im @ 66%, I rebooted into winmo to see if this is simply Android reporting the capacity wrongly ... it said 64%

Would some other person be able to do the same and see if they get better battery life?

I am using the 4-2-09 pack and a 1.93 Olinex hardSPL + a 1.09.25.23 radio

I have just booted back into android and it reports 54% now (that appears to be increasing) if this phone is on in the morning I will be shocked.

Another intresting note, normally when I engage airplane mode in android it still reports a -dbm signal strength, with it deactivated in winmo it now gives 0dbm.

EDIT:

I Just checked in the Android System Info App

for the first time ever in my android experience (Ive been through about 20 Kernels + been a heavy user since of android since early december ) my uptime and uptime without sleep are differing (as in accurate).
[Touch Pro, Fuze Android Development] chibiushi:
I looked at those, but ended up going with home++, I think it looks great and does everything that I want it to.
[Touch Pro, Fuze Android Development] babijoee:
all these home alternatives are not free so XDANDROID will not have them. Its a shame though as more screens is heaven. I have about 5 screens on n1 and 1 for games, media, control, internet and other. If someone is able to find some kind of free home alternative and themes i would gladly implement them into the next update. :p
[Touch Pro, Fuze Android Development] Anthony S:
please help me

can someone tell me why 3d and g-sensor do not work with the 08 feb version and the worse thing is i couldn't shut down my device( it stops at the shuting down screen)...please tell me the solutions thank you so much!
[Touch Pro, Fuze Android Development] tyguy:
Yeah it's a shame that these apps and little tools cost money.

Better spend 10 bucks for a homescreen app or theme then on booze or other crap IMHO.
[Touch Pro, Fuze Android Development] chibiushi:
Home++ is free (as in beer)
[Touch Pro, Fuze Android Development] gm112:
I just realized that the snd.force_headset option works perfectly fine. It's just that, the music application included with Android for some reason does not adjust to it. Even if I have it set to 2, it still won't work properly.. Any music player application doesn't seem to change to headset O_o. In settings, though, the sounds play just fine. Weird...

EDIT: Scratch that. Option 2 works perfectly fine now.. turns out I forgot to make that phone call. XD >_<;;
[Touch Pro, Fuze Android Development] pix:
I prefer to use a free homescreen app and donating 10 bucks to the XDAndroid project ;)
[Touch Pro, Fuze Android Development] TheDeadCPU:
And Home++ is one of the best ones Imo.
[Touch Pro, Fuze Android Development] Razzee:
so the fscs and the data dir are still created in your root?
[Touch Pro, Fuze Android Development] glenn1982:
Hoping for a soon release with 3DHW and deep sleep trouble fixed for Blackstone...Trouble with not able to wake up phone after deep sleep is mainly the only thing that makes android running at Blackstone very unstable...

___________________

Blackstone
[Touch Pro, Fuze Android Development] funkys:
May be you found the POWER leakage. Unfortunately I can't turn off my phone for so long.

best regards
[Touch Pro, Fuze Android Development] sohell:
What is "Allow Mock Locations"?

Settings > Applications > Development > Allow Mock Locations

I am guessing it is something to help the dev, but also wondering if it has any effect on the battery?
[Touch Pro, Fuze Android Development] Razzee:
it's used to give the device false gps data, so you can test somethings without having to travel there etc
[Touch Pro, Fuze Android Development] tyguy:
Battery life, some things to consider

I'm running Android for the second and ½ day straight and, with some common sense or - better - WinMo experience I cannot complain that much about the battery. Using the same tricks as in WinMo DOES do the trick!

Check WiFi, we know it runs high power ---> sucks the battery dry.

Check running apps regardless how good or bad the task killer is (remember complaining about "X" minimizes apps in WinMo instead of closing?) and kill unnecessary stuff.

Check email (regardless if email or gmail) ---> Constant polling ain't be good for the battery.

Twitter and facebook active? Here goes the battery down the drain.

You REALLY need 3G on all the time? Try 2G/Edge worst case boot haret from WinMo with CommMgr setting to Edge first (you may not be able to switch).

Market open? Did you notice that the app polls in the background if there are updates?

Screen full brightness (eats the battery alive).

Exhausting playing with Android (guess what...).

As it looks, though it's hard to believe it, the second day showed a much better battery performance, almost like "WinMo calibration after flashing a new ROM". OK, the battery meter is currently a better hour-glass but there is A LOT of room for "user improvements."

Side note:

I noticed today that my car charger (cig lighter with USB port and a red LED which comes on when ign is on ACC or motor is running) will SHOW the red LED even with the engine OFF. I checked with two USB cables (one original HTC cable) but that little LED stays on, no idea why, it's like the phone is draining juice back through the cable *puzzled*
[Touch Pro, Fuze Android Development] gm112:
So.. after a day of extensive use of Android, I think that the battery drainage is somehow related to the sleep mode. Honestly, the battery drains faster when in sleep mode than if it isn't sleeping. I kept the phone from going into sleep mode for two hours and only lost about 5% of my battery. When I put it in sleep mode, my battery drained about 20%. The test involved playing music from my SD card, mind you, with Wi-Fi enabled.

Wi-Fi seems to drain data faster than if you were to use the data network. Though, this is to be expected when you're using EDGE versus the 802.11G band which effectively has faster transfer speeds.

I'm not going to say with 100% certainty it's sleep mode. I think there's something running in the background which goes ape**** when sleep mode gets turned on. Which leads me to this question.. is there any possible way to log the processes and their usage stats?

It's funny because sometimes sleep mode doesn't kill the phone the way it did in my "test" which is why I believe it's something about a background process doing it? ..Hm. Normally in Windows Mobile, I can go 34 hours from 100% - 33% on average. Android, SOMETIMES it will do better.. sometimes, it will do horribly worse. And by horribly worse, I mean from 100% - 20% within a matter of 30 minutes. The phone gets extremely hot.. yeah.

I tend to run the task killer every time I wake my phone up as some processes love to find a way to open themselves!

@tyguy: Yep. Essentially, the same rules in WinMo apply in Android. Though, with the drainage being a little extreme sometimes worries me. Good post ;P.

EDIT: One thing.. WinMo would do the same thing as Android would sometimes with the battery draining and that was when A LOT of processes would decide to run in the background. Same side effects.. phone getting hot, sluggish performance, etc. WinMo might have even been worse.
[Touch Pro, Fuze Android Development] sohell:
re: sleep mode and battery drain

I don't find this at all - I find that if I have a fully charged battery, and WiFi is off, and all tasks are killed, I have more that 50% battery left after 8 hours of sleep (both me and the phone!)

For me, battery life and sleep mode are not connected
[Touch Pro, Fuze Android Development] cynepmeh:
I am using 04.02 version and it is quite stable. I have observed that switching off the wi-fi when it is not used is safe, but when it is used (like when it starting) it will restart the phone. So each time I want to turn it off i just wait until it is idle and then turn it off.

I have one issue. The phone restarts itself very often. I think for 1 hour it restarts at least once. I didn't have that issue with previous builds. What could the problem be. I have switched off the wi-fi, sync, background sync...

thank you guys.
[Touch Pro, Fuze Android Development] funkys:
Mine DIAM100 does not restart. Delete everything from sd card and start with clean XAndroid. I'm using latest build.
[Touch Pro, Fuze Android Development] cynepmeh:
Do you mean everything that is related to ANDROID. Every time I upgrade I delete the android files from the internal storage except for the data.img file. This time I deleted it too and imported my contacts and apps using my backup.
[Touch Pro, Fuze Android Development] funkys:
Yes, delete everything related to XAdnroid, including data.img file. I don't use backup programs. I only use gmail.com to store my contacts.
[Touch Pro, Fuze Android Development] teddyteddy92:
are the live backgrounds jet in the os?i can't find them:(

and can i sync the phone with a pc (to copy files to the phone) because i tryed it but i had no success and i didn't find anything here...
[Touch Pro, Fuze Android Development] Razzee:
you have to copy them into the androidapps dir from one of the subdirs. after boot hold long on your desktop. you'll figure it out from there.
[Touch Pro, Fuze Android Development] teddyteddy92:
thanks a lot!it worked..

i found that i can't copy data over usb. can i copy them in some other way?

thanks for the great help
[Touch Pro, Fuze Android Development] Razzee:
copy them via windows mobile and use astro to view them on android?
[Touch Pro, Fuze Android Development] 5systems:
New, clueless and it doesn't work

Hi all,

I am new here and a little confused. I have a diam500 from sprint. and am attempting to try this out. I loaded the zip file from the top of the thread "Android 2.0 (Eclair) for CDMA Diamond (DIAM500)" from mrPippy. Then the instructions say:

"From this xda post, download the latest XDANDROID build."

this brings me to the following post (this thread):

[prj][android.eclair.2.0.1][update.feb.08]HW3D,WIFI,RAMZSWAP UPDATE

I looked through that post and did not find any link referring to the latest build just some confusing stuff under downloads on the first page. So not sure what I am supposed to grab.

So I did a Google search for for xAndroid diam500 and got the following file at connect - utb

File: Android 2.0.1 XDAndroid

Uploaded: 14.01.10

Modified: 25.01.10

File Size:81 MB

Downloads:5476

Version 20100124

downloaded the file and put its contents along with the contents of MrPippy's zip file in the root directory of my internal storage. I then last night ran haret.exe and I got a black command line type screen and 2 hours later it was still there doing something.

I finally did a hard reboot this morning, tried it again and and now it seems to stop at /bin/sh: can't access tty: job control turned off /# and a blinking cursor.

Oh, the command line screen is still moving but seems to be taking a long time.

any ideas?

sorry for the rather long post, but I figured it was important to be a through in my explanation as possible. I tried also to put urls but apparently since I ma new here that has been disabled so sorry

EDIT: OK, got it to work, just deleted all the files and tired it again. booted just fine, the only other issue seems to be screen calibration, anyway to calibrate the screen?

thanks.
[Touch Pro, Fuze Android Development] gmanfuzing:
OMG im trying this right now, even though im on the computer at school. xD

ill report if it works and if it doesn't ill just have to delete the data img and try again.
[Touch Pro, Fuze Android Development] JesusFreak316:
I'm trying to follow these directions http://www.androidfanatic.com/cms/community-forums.html?func=view&id=2248&catid=9 to install debian over android but I keep getting permission denied at the chmod part. Do only some parts of root access work? I know the screenshot app works but su doesn't seem to like me. It hangs pterminal and it doesn't seem to do anything in android terminal emulator. I would love some help on figuring this out.
[Touch Pro, Fuze Android Development] mm2236:
Hi Everyone

Is it run on P4350?

If your answer is yes could you please give me a link to download it for p4350 ???

Thanks guys :)
[Touch Pro, Fuze Android Development] R^7Z:
Maybe, will not hurt to try... [hInt] One thing about Android, you can't be afraid to try things out on your own... :eek: ;)

N-joie!
[Touch Pro, Fuze Android Development] saijao:
My phone died today at around 15:00 -- I had around 18 hours uptime without charge,

As the Android system info tools is now reporting my uptime without sleep accurately I can confirm the last time I checked uptime without sleep was @ 2hr 43 mins (I played a lot of android lightsaber and abduction -- just for testing).

Can some one else with a GSM Diamond (mine is a DIAM 300 / O2 XDA edition) please check these findings?

I am going to fully charge my phone in winmo (in airplane mode) then boot android and enable with wifi only now to see how my batt compares to winmo it will have push facebook and twitter running (possibly spotify). I normally only get around 3-4 hours in winmo in this mode (my battery has easily had over 300 charges and so is getting on a bit).
[Touch Pro, Fuze Android Development] saijao:
Could you do me a huge favour and get the android system info tools from the market then please tell us is there a difference between the uptime and uptime without sleep (there is something weird with sleep).

I have gotten android to sleep properly(well to be reported accurately in the above tool) when I placed winmo in airplane mode and then did the same in android
[Touch Pro, Fuze Android Development] Horace:
GPS

Is anyone working on GPS support? I might make a donation towards that.
[Touch Pro, Fuze Android Development] cafein:
Hi , I have a Duch T-Mobile MDA Vario IV and i just downloaded latest build of android and copied all files to my microSD then i copied the STARTUP for RAPH to the root of my microSD.Clicked on Haret and waited for ages but there is only black screen with the numbers and ects.So how long does it takes for running android , or what am I doing wrong? Please help me :)
[Touch Pro, Fuze Android Development] phhusson:
(I'm fed up of noob android users)

The only reason why the deep sleep might not work, is because of bluetooth is activated (which is documented in wiki) or you're using a rhod (which you wouldn't have mentioned), or ****ing apps that prevent the system from sleeping (and guess what... yes it's documented as well !).

If turning off radio helps, it's just because you have a stupid app that ""works"" (ie kills sleep) only when radio is on.

cr2 and me are trying to get it working, but we ran out of ideas for the moment :/
[Touch Pro, Fuze Android Development] saijao:
I dont have bluetooth activated, I am using a diamond, And I have no apps that are causing a wake lock (I always terminate apps).

As I only get true sleep when airplane is activated in winmo and android The only 'stupid app' that could be forcing the sleep to fail on my system when the cpu is on would be the RIL daemon (as I have set only standard phone + sms -- no email or other tasks) but that makes no sense as the application processor/RIL shd only be woken when there is an interrupt from the baseband/modem processor (according to http://sites.google.com/site/io/anatomy--physiology-of-an-android @ ~14:00)

Has anyone looked @ the HTC developed linux kernel for the msm7201a on the HTC dream? its basically the same hardware and has complete GPS, camera and power management drivers. It may give some extra info on the MSM7k. The Source is available here : http://developer.htc.com/ (I would help but wouldnt know where to start, if there is anything you would like me to pitch in with just let me know)

I seriously am in awe of how well you guys have reverse engineered the MSM7k support, You have done an insane amount of amazing work..

Thank you so much
[Touch Pro, Fuze Android Development] Razzee:
no problem with deepsleep on my device, when killing all apps
[Touch Pro, Fuze Android Development] phhusson:
There are very few reasons to set wakelocks. And even, they are only temporary wakelocks.

See logcat -b radio to see any possible reason for such wakelocks.

Anyway, check dmesg to know who triggers wakelocks (and running a taskkiller might not help with really stupid apps)

No, we did everything on your own without any other source code.

(Yes I'm kidding)

Oh, and there is no GPS driver in this kernel, and the power management stuff isn't usable at all (because of AMSS differences), and we are using hero's camera driver.
[Touch Pro, Fuze Android Development] gm112:
To follow up my earlier post, my phone held out for most of the day. Around 11AM, it was at around 63%. Around 1PM, the phone wouldn't boot. It was dead. I noticed that the phone had gotten extremely hot between 12PM and 1PM. I think processes are starting up on their own and just chomping away at my battery as the day goes by. Sleep itself seems fine.. it's just something that simply can't be helped.

QUESTION. How do I prevent apps starting up on startup? This never happened before till now. How do I prevent apps from starting up on its own? Is there a way?
[Touch Pro, Fuze Android Development] saijao:
Im going to do this now, hopefully it will provide some info on wtf is going on, I honestly cant see what apps would be causing this, obv something that uses data or another radio feature.

I wasnt sure if you read/learned from other msm7k type source or reverse engineered the required code.

I thought that the base of this linux porting effort predated the release of the HTC source and so would not incorporate a lot of the HTC code (If I were in such a position couldn't imagine tearing down all my efforts to incorporate some 3rd party code)

What is AMSS ? I assume AMSS it is some binary blob / precompiled library or ROM based api interface.

Are there any other avenues of exploration that would help?

You mentioned looking @ the Palm Pixi stuff, is its 76** chip similar enough to provide any benefits (I imagine some sub-components are the same)

Again if there is anything I can do to help please let me know.
[Touch Pro, Fuze Android Development] J-Hop2o6:
is there a list somewhere where i can see all the "snd_force" u can add to the startup file?
[Touch Pro, Fuze Android Development] gKNOWS:
do me a favor and unplug your phone from your car charger. leave your car off then see if the red LED is still on because some cars still give power through their 12V outlet regardless of it being off and even when the key is not in.

If you could also turn the car off and plug the charger in and the phone and see if the phone is actually charging or not?
[Touch Pro, Fuze Android Development] IceBone:
My car powers the 12V plug all the time too.
[Touch Pro, Fuze Android Development] kingofslackerz:
Just started yesterday but I keep loosing my HW keyboard, have to reboot to get it to work again.

Never had or heard of that happening.
[Touch Pro, Fuze Android Development] babijoee:
Which files can't you download?

Anyone else having trouble downloading any files:confused:
[Touch Pro, Fuze Android Development] aavan:
Yep that's what I thought too but I really don't know where to look to debug that.

There are a lot of files in /data/data, and there is a /data/data/com.android.phone also, but it contains only a lib directory.

I've not been able to figure out the mount point from /data/data, i've search in the rootfs.img and in the system.sqsh.

My guess is that these are created by the first setup of android.

But I don't think that it's the problem, after all it runs on kaiser with the same image, and not on our devices.
[Touch Pro, Fuze Android Development] GeezyAF:
I'm on a Raph800 and use the Android 1.6 package from Connect-UTB with Makkenon's CDMA kernel.

What do I have to replace to test this out?
[Touch Pro, Fuze Android Development] aavan:
- Delete the data.img file (android 2.0.1 will recreate a fresh new data.img, but you will lose all your user customization).

- Rename raphdiamrootfs to rootfs.img and replace it.

- Rename system-zenmod-2.0.1.sqsh to system.sqsh and replace it.

Voila, it's done.

But you won't get past the android boot animation (or won't get past the "click on the android to continue" if you're really lucky)
[Touch Pro, Fuze Android Development] GeezyAF:
So is this useless to even try?
[Touch Pro, Fuze Android Development] babijoee:
We'll we are testing it out on your devies. Some models might be able to run it. Also we are trying to pinpoint the cause of this freeze, so using adb and analysing whats going on we may be able to rectify the cause and run 2.0.1 Eclair on our beloved devices.:D
[Touch Pro, Fuze Android Development] cruzzmz:
how to set the adb?
[Touch Pro, Fuze Android Development] babijoee:
Update: I've decided to build my own build from scratch and slowly implement features and stability into it. So far it works but its very sluggish. Theres no power management or sound. Vibrate is working at this stage. :) and Touch screen

I HAVE SOME VERY EXCITING NEWS PEOPLE

I successfully booted into Zenulator's Eclair build. From the data.img i created from my own build, I decided to do some checking. I set the phone into airplane mode and switched off the device. I then booted up Zen's build and viola it booted. Now that we know that some service that has do with the radio, wifi, bluetooth or GPS is freezing the build. I will implement one by one until i find the culprit.

I will upload a build when i get it running more smooth and having more features :D

I spent soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo much time on this. i am very sleep deprived -.- zzzzzzzzzzzzzzzzzzzzzzzz

will be catching up on some sleep and full throttle as no work for 3 days XD
[Touch Pro, Fuze Android Development] herpez:
Hi. Later, when you wake up and rest, can you explain us the whole procedure you made so we can may follow you?

Thanks pal!
[Touch Pro, Fuze Android Development] GeezyAF:
Good find!

I'm looking forward to actually getting to the home screen with Eclair.

Still running Donut. CDMA users have it bad though :(
[Touch Pro, Fuze Android Development] herpez:
A little offtopic, does anyone knows if HTC Sense is only OS dependent (device) or if it's also device dependent? What i am thinking is if we successfull port to 2.0.1 will we be able to have HTC sense?

Thanks
[Touch Pro, Fuze Android Development] babijoee:
Well its running on the vogue and kaiser sooo no. HTC hero has got a leaked update. Hrmmm i'll run this and see if it works.
[Touch Pro, Fuze Android Development] herpez:
Thanks

Any news about run with BT on and all otheroff, and then with wifi on an all others off and so on?

Thanks for the hard work
[Touch Pro, Fuze Android Development] babijoee:
I'll give that a try. That should also help determined and eliminating the problem
[Touch Pro, Fuze Android Development] babijoee:
I'm going to upload an Eclair bundle with my data.img included. soon

The data.img is necessary to boot into Android otherwise it wont boot any further. Do not turn off airplane mode or Android will instantly freeze.

This build isn't functional for daily use and is only for testing and debugging purposes. But give it a try and have a look at Eclair. :D

I've removed all the apps that cannot be used. eg: apps that use internet connection.

I've also removed apps that wouldn't be used in every day usage or that isn't necessary at this stage. Hopefully this will improve some speeds.