yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] jamezelle:
if your running from nand open terminal and type

mount -o remount,rw /system
rm -rf /system/etc/apns-conf.xml

data shouldnt connect after that
[Touch CDMA Android Development] CyCLoBoT:
I tried flashing the ROM to NAND today but it keeps on freezing during the initialization. It kept on stopping at various different points after I did soft reset. I tried flashing using the 3 empty files and by following Method 1 but its just not working. I can run throug HaRET just ine though. Any idea on what could be causing this?
[Touch CDMA Android Development] jamezelle:
did you get any errors, sorry but you post is quite vague
[Touch CDMA Android Development] falabraza:
thanks so much! i'll give that a try and let you know. i really appreciate it.
[Touch CDMA Android Development] CyCLoBoT:
When I tried running using Method 2, the installation kept on stopping at kernel panic. I used 320x240 nbh file. As for Method 1, unfortunately I don't remember what the exact errors were and since I have switched back to WM.
[Touch CDMA Android Development] Newbie16:
The output is from dmesg, not logcat, sorry for any confusion. Tried messing with the kernel code but no progress.

pm.sleep_mode=1 and board-htckaiser.panel_type=2 (or whichever screen you have)

is all thats needed to get it to suspend right?
[Touch CDMA Android Development] enatefox:
Negative on Haret settings. Playing with Eclair and Lock 2.0 which also enforces a wake lock (quite relentlessly too) I've been able to successfully get it to sleep by using what Polyrythmic said (echo "standby" > /sys/android_power/request_state) however you to put the phone to sleep with that command. Running that once you've hit the power button has no effect (request_state says standby too).

So I was hoping if the kernel can't be fixed soon to get a quick hack in place. I can do it, but can someone tell me how to detect the power button and Home button? With the installer the volume down key is mapped but how do I find the others? The good news is that this will work even if it requires a Gscript shortcut while those that don't suck like me can work on the core issue.
[Touch CDMA Android Development] Newbie16:
What exactly are we trying to do?

Press the power button then:

# cat /sys/android_power/request_state
standby
#

Wake up with double menu press:

# cat /sys/android_power/request_state
wake
#

Then what?
[Touch CDMA Android Development] enatefox:
The power button will make request_state say "standby" but it's not really sleeping. If you echo it to that file (or whatever it is..) it will actually make it sleep correctly and power down only if the phone is awake at the time. It has no effect if the phone is already "sleeping" whatsoever. Then I've noticed I press the power button once to get a white screen (sometimes grey) and the second time wakes it back up again so a double press and it's good.

Thing is that it'd be really hard to override the button-- I think it's fairly intimate with the system but if we can inject that line before the system has a chance to act we could be lucky maybe. Is there a "return false" style command? I know people have done some nice things with injecting into the keyboard through VNC and other means so this shouldn't be impossible
[Touch CDMA Android Development] Newbie16:
How do you know if it has really suspended or not? it looks the same here, what do you have in your default.txt?
[Touch CDMA Android Development] enatefox:
Same as you have although I have an ATT Tilt and have a hacked around version of Eclair as I'm testing. Only way I know is that the power and Home button are the only ones that can wake it back up. Also it's not 100% fool proof either sometimes I have to echo that 5 or so times and mess with it but more times than not it works.
[Touch CDMA Android Development] s3point14dr:
is there any way to verify your radio version in Android? If it's not the right one, would there be a way to update it in Android?

I have a Sprint HTC Touch that had radio version 3.42

I used the Vogueunlocker from IamCoKeMaN

since I can't go into stanby my battery dies after 3 hours, with brightness all the way down.
[Touch CDMA Android Development] enatefox:
For ATT Tilt at least, the End key and Power button both are key code #107. How can I catch that in bash?
[Touch CDMA Android Development] mssmison:
a further option is to use something like the gscript app, it can create a shortcut on the home screen to run a script. Like what is mentioned here. While it's not an optimal solution perhaps it could be a good work around.
[Touch CDMA Android Development] polyrhythmic:
@Newbie16: Thanks! Everything more I can learn about debugging helps.

@enatefox: I'm guessing that you can use the read command to capture the keyboard output during init and see what the value of the end & power keys are. After Android is booted, the power and end key are grabbed by Android, so I can't use read through terminal or adb. I'm going to try to write this in a second, something in init like this:

#...somewhere after the sdcard is mounted

echo Press power key for capture
read -n 1 powerkey
echo Press end key for capture
read -n 1 endkey
echo -e "Power key: $powerkey\nEnd key: $endkey" >> /sdcard/keycodes.txt
[Touch CDMA Android Development] enatefox:
Well Eclair Hero (surprise!) crapped out on me and I was able to get the key code from it that I posted (107) but that's from DalvikVM. I can make a listener that will run that command within Android. Not for this thread I guess though. Guess I'll post what I come up with. I was thinking a Gscript link as a last resort though.
[Touch CDMA Android Development] ahmadallica:
Flash WM back...

Hi Everyone,

I'd like to give android a try on my HTC Touch Elf (P3450).

I have followed the links to SourceForge then downloaded a zip file called androidinstall, it's 47.3 MB.

But I have few questions that I hope any of you would help me find answers for them:

1- Is this the correct file to be downloaded?

2- If yes, then it's mentioned in the readme file inside that this will completely remove the existing ROM and replace it with WM. So what about if I'll need to flash back the Windows Mobile 6.5 Cooked ROM I have now? Is this possible?

3- Just to ensure, is Haret no more used???

Thank you in advance and looking forward to hearing from you.
[Touch CDMA Android Development] jamezelle:
this WON'T work on your phone!!!
[Touch CDMA Android Development] ahmadallica:
Thanks...

Thank YOU so Much... I thought Elf is the same as Vogue, but I've searched again now and found that Elf is GSM while Vogue is CDMA. So it's not the same at all.

Thank you again ;)
[Touch CDMA Android Development] bchi49:
how do you hold the Home button to show the last couple applications used so you can switch between those applications?
[Touch CDMA Android Development] tatnai:
dzo,

I think I'm onto something after all these months. I was previously confused about how some days my phone would last all day, and some days it would die prior to getting through the day at work.

I think the single thing that makes the difference is an unanswered notification (phone call or text that has come through, but has not been acknowledged or cleared from the notification screen). Multiple builds (over a few months, like 5 or 6 different systems cupcake and donut), new data files (many many), many programs or almost no programs installed, doesn't matter, on days when I don't have time to answer or look at my phone (hard to believe, i know; i'm a medical resident, those type of days are way too frequent) my phone battery drops like a rock. A few times this week in a matter of 6 hours or less with no use at all, only a few unanswered text messages, phone completely died. On days where I clear each notification when it arrives, I have 40-50% battery left at the end of a 13-14h work day. The difference is unbelievable, I don't know why it didn't click before. But this completely explains the completely random battery life i've experienced before.

I have no clue if the phone just doesn't sleep (pretty sure the orange light is flashing in between the notification light, will have to check again), or if there is a power drain linked to the notification bar, but something is going on. For me, it is very reproducible.

Can anyone confirm this on their vogue?
[Touch CDMA Android Development] shadoslayer:
There isn't much you can do. I also have a Bell Mobility vogue and brought this issue up in another thread. Basically, there are a few vogues out there that the current kernel just doesn't like.

I don't know if there has been any progress with figuring out this problem, but the only way we'll get it fixed is if someone with one of these phones can send it off to someone to debug.
[Touch CDMA Android Development] joetrisman:
+1

I've tried a multitude of sd cards and followed the guide to a t. My kernel keeps locking and throwing random codes. I even tried to use the two prepackaged ones posted (one at the front of this thread - the android zip from method 1 - and the other another user complied in another thread). Android from SD card only for me :( Is there anything we can do to help DZO short of sending our phones to him?
[Touch CDMA Android Development] Shidell:
I think you might be on to something--my battery life recently has been fantastic; I received a phone call and then a voice mail and haven't fielded it, and my battery drained to nearly dead from little use in about 7 hours.

Needs more investigation, but it seems to check out with my scenario today. I was wondering why/how the battery had dropped so quickly, too.
[Touch CDMA Android Development] shadoslayer:
I offered to provide information related to this problem, but apparently the kernel progresses further than it logs, so nailing out the exact problem is tricky without having the device. Personally, I suspect there is an issue with our vogues and the code for reading the SD card. Either that, or there is something different with our nand that prohibits the writing to it. Either way, I don't think anything can be done until dzo gets one of our phones - and I don't have a spare until I save up enough to buy the Acer Liquid.
[Touch CDMA Android Development] falabraza:
using mms without data plan

Hey guys I noticed if I don't set the ppp no start to=1 in the default file I end up eih short spurts of data charges maybe 1-3 per day. Any way to avoid that so. I can do mms without those other data charges? I have verizon so they segregate those charges aautomatically if its for an mms or random data. Any thoughts? What are those short spurts of data anyway? Thank u so much guys
[Touch CDMA Android Development] mssmison:
remove apns-conf.xml from your /system/etc folder.

Than it won't connect to data at all.
[Touch CDMA Android Development] falabraza:
Will I be able to send/receive mms though if I do that?
[Touch CDMA Android Development] Quanny2000:
Oddly enough, i have two Bell vogues inwhich i've successfully flashed android on both...

i wonder if possibly the later models of vogues have a different chipset in them?
[Touch CDMA Android Development] dzo:
It shouldn't take much to get the GPS to work I just haven't got round to it yet. If anybody wants to try, just mmutrace SMEM using haret with the GPS on and add a channel to vogue-smd.c for the GPS SMEM channel.
[Touch CDMA Android Development] dzo:
Can you get the latest zImage (should be 1022460 bytes long) and add console=ttyMSM0 to the cmdline in default.txt so it says:

set cmdline "ppp.username=mobile@jamamobile ppp.password=telecom console=ttyMSM0"

It won't help it boot but it should print out some messages, let me know what it says (or at least the last message). Thanks.
[Touch CDMA Android Development] Grondinm:
(Statment removed after reading prior posts) with the version i have(a few weeks old) i can receive sms messages...will be trying out the new version tonight...
[Touch CDMA Android Development] roxorz:
randomly working again?
[Touch CDMA Android Development] roxorz:
was glancing at the android forums and came across this site http://www.android-freeware.org/

is it possbile to add some of those apps to our current version of android or do we need sd card access figured out first.
[Touch CDMA Android Development] scottsimon1979:
OMFG....I copied this to my device not expecting much at all....

Holy $%# I cant believe how well its working! So smooth and pretty and.....not Windows Mobile!!! Wow,....Unbelieveable....I am floored how nice its working.....and how easy it was to get running! Thanks Doz!

Anyone care to tell me how to get the onscreen keyboard working on it?
[Touch CDMA Android Development] roxorz:
press the camera button
[Touch CDMA Android Development] roxorz:
and weirdly enough i can't get it to boot again
[Touch CDMA Android Development] antoniouslj:
yeah... if we could get GPS working, the program "locale" would seriously rock!

or even the multiple facets instant messenger...

or the phonebook 2.0...

or rayfarla...

or talkplay...

or teradesk...

or tunewiki...

but seriously the main functionality should be first priority... dzo, you seriously are a top dawg in my book. thanks for what you're doing!

...i think i'll head over to the android forums and snoop around for some way to help dzo with some of the small stuff...
[Touch CDMA Android Development] n5bail:
Damn, this has blown me away. I too did not expect this. I don't even want to use WM now. Yesterday I could not get the data connection, sms, phone to work. Today, I booted it up in a different location and everything connected as promised. I even used completely messed up username and password settings in default.txt. I do not think that has anything to do with it. I'm looking forward to more progress with it. Good work, dzo.
[Touch CDMA Android Development] dzo:
Its fairly easy to add applications to the initrd, on a friendly linux box do:

mkdir newinitrd

cd newinitrd

gzip -cd ../initrd-android | cpio -i

This will unpack the initrd into the newinitrd directory.

Next, add your applications (.apk) to the data/app directory

then do

cd newinitrd

find ./ | cpio -H newc -o | gzip > ../newinitrd-android

To package it up again

You can also use the same method to add your contacts to the contacts database and change the bookmarks:

sqlite3 data/data/com.google.android.providers.contacts/databases/contacts.db
[Touch CDMA Android Development] Aaron McCarthy:
Well I'm definatly no programer by any means. To someone who knows what they're doing that probably sounds REALLY easy but sounds like gibberish to me haha.. I'm just like most of the users of android I think and just having fun updating and seeing the new stuff added and watching progress. I REALLy wish I could help with development but I'm just a lost cause when it comes to stuff like that. I'm a tech savy kind of guy but It's like reading chinese when I see stuff like that.... and for the record.... I dont speak chinese!

By All means anyone who can get GPS or the aGPS to work in the googlemaps you would definatly have more then a few fans on here I think!
[Touch CDMA Android Development] kellybrf:
finally have data for more than 30s on my sprint touch, though i did have to have a pre-existing connection. got it to work with "ensemblelogin@mobile.sprintpcs.com ppp.password=ensemblepassord" after the default and @sprintpcs.com didnt work. tried all three without a pre-exisitng and none worked, this is the first one ive tried with a pre-existing connection so its entirely possible the other two would work as well as long as data was fired up first. in the past pre-existing didnt matter, id get 30s no matter what.

voice and sms didnt work at first either, but now it does. overall pretty freaking sweet!

one thing ive noticed is that you cant select some text boxes in the browser. for example, either the quick reply or main reply box on this forum and others
[Touch CDMA Android Development] tpdtopcop:
everything worked for me except the phone function would lock up when I tried to use it. Sprint touch.
[Touch CDMA Android Development] antoniouslj:
ok i can handle the linux repackaging...

but do i need a sql client to redo the db? what's the easiest method of taking a simple comma delimited rtf of my address book and merging it successfully with the sql db?

i know i sound like such a noob... lol my knowledge is spotty at best with some of this stuff. i usually learn what i need...
[Touch CDMA Android Development] antoniouslj:
there's a version of opera i'm hoping he throws into the initrd on his next release...

*crosses thumbs*
[Touch CDMA Android Development] unsungboxer:
(using Ubunu Hardy Heron/ VZW xv6900)

I followed the above information, and after playing around I was able to understand a bit more about how android works.

I have made the following changes:

1. Downloaded and installed the following apps: Android_File_Browser_2.0, Manage_1.2.apk, Snake.apk (see below for details)

2. Changed GMT to PST in /data/timezone using gedit (had no effect?)

3. Changed wallpaper in /data/misc/wallpaper using photoshop (worked)

-When adding applications, getting strange errors:

"cpio: File ./newinitrd-android grew, 507904 new bytes not copied

71656 blocks" ...

-Noticed that some of the files I put in did not show up when running android (Snake/Manager1.2/Opera mini)

-I am persistent on adding Opera Mini, so I went to system/apps/ and deleted "Browser.apk" and replaced it w/ the Opera Mini file, and renamed its "Browser.apk" (thus making the default browser Opera Mini.

-Now when running Android only 2 of my 4 new applications show up:

-Opera shows up as default browser, kinda works when starting w/ a pre-existing data connection, eventually freezes

-File Manager works, allowing me to browse the Android subfolders, but wont let me open/read/modify, so this program is really kinda useless.

-Snake and Manager1.2 do not appear to be anywhere in the menu tree?

latest edit>>> When adding new apps, I keep getting the error: "cpio: File ./newinitrd-android grew, 507904 new bytes not copied 71656 blocks" Even if I remove apps it still behaves this way. Any ideas?
[Touch CDMA Android Development] unsungboxer:
In this file, I have taken DZO's file and made the following changes:

1. Changed wallpaper

2. Added snake.apk to data/apps

when recompressing:

cpio: File ./initrd-android grew, 262144 new bytes not copied

71519 blocks

What am I doing wrong?
[Touch CDMA Android Development] dzo:
You are not changing into the newinitrd directory so it is trying to put initrd-android into the archive. Just copy and paste the commands and it will work.

Attached is a little python script I used to import my contacts. Export your contacts from outlook as a csv file, copy contacts.db to the current directory then run this and copy it back. It works for me but you may have to tweak it a bit depending on how your version of outlook exports things. You need a machine with python and sqlite installed for this to work.

I've put a new initrd-android on the web site with an updated sms app that doesn't crash. Now when you when you click on an sms number in the contacts list it opens the sms app.

enjoy.
[Touch CDMA Android Development] jim256:
hey thx for another great update! i was even wishing for this while using it just today.

so..1 question: i read today that google is delaying android because the carriers arent being firm on what they want so they have to keep changing things.

my question: if you were to estimate, how long do you really think it will be till the new sdk is released?

its killin me! :( lol :)
[Touch CDMA Android Development] myn:
I didn't see this bug reported yet.

In every Donut build I have tried, when streaming audio (example podcasts) the seek and resume functionality is not working correctly regardless of what streaming application you use. When you seek to say 30 mins into a podcast it only seeks to a fraction of what you specified (like 2 or 3 mins). Inherently when you attempt to resume a podcast at say 30 mins in the stream starts from the beginning instead of resuming where it left off.

I have tested this with both DoggCatcher and Google Listen. Both exhibit similar results.

I went back to a 1.5 build (xROM) using the same rootfs and zImage I was using in the Donut builds and noticed this wasn't a problem.

For reference my tests were performed with: rootfs-2010-01-06a and zImage-06-01-10 utilizing the ext2 and haret method.

I have confirmed this bug on both Droid-Ion Donut 1.6 for the Vogue and Donut AOSP - Updated 1222 - v242b Eclair themed - international Nav. I suspect all Donuts will have the same behavior.

If I can be of any help, please let me know.

Thanks
[Touch CDMA Android Development] diagdave:
Dzo please help

Hi DZO i wondered if you could help, we are trying to port tinboot over to Kaiser, i have it booting, but it looks like it isnt loading the initrd-mini. Did you have to add anything to the kernel to make it point to it?

or does this line vary for each device:

.equ	INITRD_START,	RAM_START+0x00800000

Any help you can provide. All donations are going to you:

http://xdaforums.com/showthread.php?t=614275
[Touch CDMA Android Development] blauze:
Bluetooth and A2DP

Now that bluetooth seems to work fine in 1.5 builds at least, what's missing to get A2DP working correctly? That would kick WM out of way otherwise i can't live without A2DP. I tried a few hint without success so far? any help?
[Touch CDMA Android Development] dzo:
For a2dp to work properly we need the high speed serial port working. I've tried to get this going but haven't had any success and don't have time to spend on it right now. If anyone else wants to look at it I can send them my haretlogs.
[Touch CDMA Android Development] shadoslayer:
I have one of the buggered Bell Vogues that wont write to nand on boot. Just an update with the latest kernel:

It makes it a lot further than the last kernel, but stops with:

[32.086051] mdp irq already on already on 4 4

[32.090062] mdp_dma_to_mddi: busy

[32.090062] kernel panic - not syncing: Attempted to kill the idle task

[32.090062] Rebooting in 3 seconds...
[Touch CDMA Android Development] shadoslayer:
Nevermind, on the 150000th reset, it actually worked. I'm having problems getting android to load, but thats another story. Great job!
[Touch CDMA Android Development] shadoslayer:
Another update...

After successfully (though painful, having to reset many many times) getting all builds of android (sensehero, donut asod,etc) that are on the first two pages of posts in this forum booting from nand, I'm stuck.

All three will boot, all three will load to the logo (android, or the little waving android depending on build), and then get stuck there. The logos will eventually stop animating and the screen will go black - not like sleep, you can still see its lit, but just with nothing on it. I let the donut asop build sit there for 2 hrs just to see what would happen, and nothing changes.

I'm wondering if I'm doing something wrong, or if these are still symptoms of problems with these few stubborn bell vogues.

Cheers

Shado
[Touch CDMA Android Development] enatefox:
shadoslayer, I bet it's a dexopt issue and not kernel related. Post over on the general threads with logcat's output so we can help
[Touch CDMA Android Development] masalma:
Check the resolution, if you are booting from SD check the default.txt for the appropriate resolution for the build, if booting from NAND look for the right RUU_signed.nbh file that supports the resolution.
[Touch CDMA Android Development] shadoslayer:
I made sure to use the proper flash for the resolution the build is designed for, it was the first thing I checked. As per enatefox's suggestion, I'll post over in the donut asop eclair theme thread (because thats the one I use off SD now and it works pretty good) and pick up the conversation there to see if we can figure out whats going on...

There is still some issues with the kernel though writing to nand, but at least it IS possible now with enough resets to get past the mdb issues.