yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] bugzy:
try the link in my website

there's a CAB file made by etiger that is great for those that are first starting

for those that are more experienced, you can use dzo's original post, and simply copy all the files into the root of your /storagecard and load haret
[Touch CDMA Android Development] craig0r:
modem script works with telus

Hey all.

I just thought I'd let everyone know that grktaurus83's initrd with his modified setupmodem.sh works with Telus in Canada.

I tested it on a source build rather than the SDK, so some of you may be interested in knowing that it works there as well. (However, my keymap is all messed up... i forget what i had to do to fix it, so I'll have to go back and check."
[Touch CDMA Android Development] Praiz2ELoHiM:
I also am successfully working! Just download grktaurus83's new intrid.gz and dropped it in.

On... Verizon Wireless
[Touch CDMA Android Development] tErbo b00st:
So is this dial on demand or it just maintains your connection?

ie Is this gonna drain the already crappy battery even faster?
[Touch CDMA Android Development] grktaurus83:
That initrd file does not give you dial-on-demand, it just maintains the internet. And yea, it will probably drain the battery.

If you want dial-on-demand.... keep reading.
[Touch CDMA Android Development] grktaurus83:
One thing I'd like to get is an apk that will run the toggle.sh script. That way, we can create a shortcut on the home screen to toggle the connection on or off.

The apk would need to do the following:

1) Run the /toggle.sh file.

2) Wait 1 second.

3) Print the contents of /smodem/ppp.goal.status to screen so that the user knows whether they are turning the connection on or off.

Anyone want to make that apk?

I don't think this should be too difficult. I don't have the IDE installed here to make it myself and I'd rather spend my time improving the toggle script. There are still a few things I'd like to update.
[Touch CDMA Android Development] tErbo b00st:
this is great! Thanks for all the hardwork! This is incredible what two guys can do with their spare time!! I spend so much time tinkering with my electronics (getting android to work, loading ubuntu and OS X on my dell laptop, ect) that I really need to learn to code so I can help out on this. I took a basic C++ class in college, but that's about it.

Now to be greedy :p...what will be necessary to have a true dial-on-demand, just how it works in winmo. So if you don't have a connection and an app needs one (opening browser, opening maps, ect) the script will be run automatically. And if the connection goes unused for a couple minutes it will disconnect?

This is deffinently a good start, but having to go into the terminal and type that is a pain. Part of the reason for this whole data project was because the connection would be dropped after using android for awhile. Is this a "glitch" or is there specific timeout period for the connection?
[Touch CDMA Android Development] bugzy:
so far so good here

1 thing to note, when my WinMo boots, it makes an internet connection almost automatically

so when i booted into Android, it had a Internet connection already, when i ran the toggle.sh, it said it turned it on, but it was already on

but when it turns it off, it does actually turn it off

just so people know
[Touch CDMA Android Development] grktaurus83:
It's definitely not just two guys. A few people are submitting patches and updating code, but Martin is doing the majority of the work. I jumped in here to try to alleviate some of the burden on him on this end of things. And unfortunately, this became more than just a "spare time" project. *sigh* I've spent way too much time on this the last two weeks and now I need to catch up on everything else in my life. I should have seen this coming. Haha.

Woah there! Haha. I think we'll have to move to the open sourced release of Android and away from the SDK to get that to work.

I agree here. I think the best we can do for now is to make an apk that we can link onto the home screen. If you want to read up on how to make an apk, you can definitely contribute there.

The drop in connection was just random signal loss, not a timeout.
[Touch CDMA Android Development] grktaurus83:
Windows Mobile will only start an internet connection on boot if you have it set to do that (through push e-mail and such) or if you have a program that automatically connects periodically.

If you toggle the script on when the connection already exists, the script will realize it and do nothing. I have it set to check if the connection exists before it does anything (connect or disconnect).

It should actually turn off. But why not test it out yourself and see?

All of you, make sure to report your results. The more feedback I get on this, the better.
[Touch CDMA Android Development] pchasco:
I can confirm that the toggle.sh script does not work for me. I'm on Verizon. When using WM, the username and password are left blank. I've set up my boot command line the same way.
[Touch CDMA Android Development] craig0r:
well, the official marketplace app is closed-source apparently, so we can't even try that out.

I've built the "real" version of android, and I'm having trouble getting the keymap working for some reason. The latest Slideme app (slideme.org... sam2.apk) has support for the market. It crashes on the SDK version, and I'm hoping to try it on the full version to compare results, but not having a working keymap significantly reduced what I can do.

Of course I'm at work, so any change I make I'm doing remotely on my home pc, then downloading the 32MB system.gz to stick on my phone. it's kind of annoying.
[Touch CDMA Android Development] tErbo b00st:
Well I leave for Italy tomorrow, so I'm going to have a long plane ride...lot's of spare time. I'm gonna take a look at all this, DL all the necessary files and pages from codes.google, and I will give it a shot. I would imagine someone can get one working within a week (how long I'll be gone) but atleast it will give me a starting point in creating apps :D
[Touch CDMA Android Development] jovewheat:
Works so far.

With connection already established in WinMo, after Android boot must run the su; /toggle.sh twice in terminal.

I have the data connection as always on (1) in the WinMo Registry btw.
[Touch CDMA Android Development] pierrechn:
hey when first using this is it suppose to say cant mount to sd card? or something like cant partition? do i just wati?
[Touch CDMA Android Development] Praiz2ELoHiM:
You can also terminate the data connection in WinMo. Should be in settings. You should also beable to longpress the red(hangup) key and it will give you the option to terminate data connection, this may be dependent on the Rom you are using.

So just terminate it before booting android. It will ensure that your testing is legit.
[Touch CDMA Android Development] tErbo b00st:
I believe this means you need to clear up some space on ur SD card...atleast it gave me that error too. It needs room to unpack everything.
[Touch CDMA Android Development] jim256:
I think that he said that you do indeed have to have something typed in the username field
[Touch CDMA Android Development] pierrechn:
yea it still doesnt work 4 me....my sd card has over 500mb free..dont know what the problem is..
[Touch CDMA Android Development] bugzy:
so far so good ...

kinda sucks it just doesnt do it automatically, but great work

this is an awesome work around !! :)
[Touch CDMA Android Development] grktaurus83:
Listen to jim256. Haha. Also, please read the posts with my updates. They are a bit long, I know, but I include lots of information so that people know what's going on.

Yea, I have to run it multiple times the first time too. It might be that every time you connect to the net, you need to toggle on and off again. Not sure as I haven't been keeping track, but it certainly seems like it.

Ah, yea... that's the other way, through the registry keys. Thanks for the info.

There shouldn't be a problem with booting Android with the connection already going in Windows Mobile. I haven't really tested that since I want the connection to come up from scratch. Go ahead and try it. If my script works the way I think it would, either:

1a) The connection will be up immediately (and working) and running toggle.sh the first time should turn it off.

1b) The connection will be up immediately (but not working) and running toggle.sh the first time should turn it off. You must then toggle it back on to get it to work. This seems like the result you are reporting. This result is the same thing as the "connection doesn't work the first time, but toggling it off and on makes it work" case I specified in my long post.

2) The connection will be down initially and the script will be the same as your previous tests.

But as with everything, give it a shot! It's always good to test things that go against the initial rules (unless they have been verified to not work, in which case you're wasting your time, haha).

Glad this is working for quite a few of you.

As always, keep me updated with results.
[Touch CDMA Android Development] grktaurus83:
If you want to make it so that the connection comes up immediately on boot, try making the following changes in the setupmodem.sh file:

Change lines 20 and 21 from

/bin/echo "off" > /smodem/ppp.goal.status
SLEEPY="1"

to

/bin/echo "on" > /smodem/ppp.goal.status
SLEEPY="0"

and see what happens. I think this should work, but I'm not sure.

Again, let me know the results.
[Touch CDMA Android Development] sfleury:
For Bell the username and password are not important, it should work with whatever is in the default.txt that Martin supplied, along with the new setupnodem script.
[Touch CDMA Android Development] grktaurus83:
It's quiet.......

Too quiet......

How about another update then?

http://prometheus.usc.edu/initrdtoggle

Newest version is v02. I've now renamed the older version to v01. I've also added a change log so you guys know what's different.

v02 isn't fundamentally different than v01, just added some logging and added an error checker to force quit if it fails 4 times in a row.

Test away.
[Touch CDMA Android Development] tlang1982:
SOOOO close

Ok, update:

Bought new kingston 4gb sdhc card and now it doesn't even show linux screen it goes so fast. it slowly fades to a white screen, but that's as far as I get.

Could people please post the text of their default.txt (with phone numbers etc Xed out)

I think I'm so close just need to get my default.txt setup correctly.
[Touch CDMA Android Development] grktaurus83:
The only thing I've changed about my defaults.txt file (from the 11-19-2008 release) is my username/password. Just try using "blah" as your username and leave your password blank.
[Touch CDMA Android Development] khaoskosmos:
I was able to establish an internet connection (sprint) while in android using /toggle.sh, but cannot turn it off.

cat: can't open '/smodem/sleep.pid' : No such file or directory

You need to specify whom to kill

Edit:

also, it doesn't echo anything.
[Touch CDMA Android Development] grktaurus83:
Woops, I accidentally removed the echo to screen in the toggle.sh script. I'll be adding that back in shortly.

It looks like the sleep process isn't running when you go to toggle it.

Also, can you tell me what you see in the file /smodem/setupmodem.log? That'll tell me what the script is actually doing.

/bin/cat /smodem/setupmodem.log

Did you run the command as root? (using su before running toggle.sh) Did you try rebooting to see if it was a random error?

Edit: Updated to v03. Get it from http://prometheus.usc.edu/initrdtoggle. The only things added were the toggle echo commands. First check the log file (if you still can) and then try it with this update to see if anything changes. If it happens again, try to get me a copy of the log.
[Touch CDMA Android Development] tlang1982:
so 2 things, how long should it have the all white screen

2nd so your default.txt is just the following stock text:

set RAMSIZE 0x08000000

set MTYPE 1667

set KERNEL zImage

set initrd initrd.gz

#

# The following kernel parameters are useful

# ppp.username - The username used to connect to the network when dialing #777

# ppp.password - The password used to connect to the network when dialing #777

# msm_sdcc.msmsdcc_fmax - The maximum frequency (in Hz) used by the SD controller

# pm.sleep_mode - The mode used when the phone is off

# 0=Power Collapse Suspend, 1=Power Collapse, 2=Apps Sleep,

# 3=Slow Clock and Wait for Interrupt 4=Wait for Interrupt

# Default is 0, use 3 if you have an old radio

# board-htcvogue.panel_type - Panel type used to power the panel off and on

# 0=Don't power off the panel (Default)

# 1=Hitachi 2=Topoly 3=Samsung

#

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

# This is what I use: "msm_sdcc.msmsdcc_fmax=32000000 pm.sleep_mode=0 board-htcvogue.panel_type=1"

boot

NEVERMIND finally got it to work. I want to thank everyone for their help!
[Touch CDMA Android Development] khaoskosmos:
Yes, I ran as root. In my log, I got a timestamp and

Setupmodem Status: Modem initialization starting.

Setupmodem Status: Modem initialization completed.

Setupmodem Status: Going to sleep now...

Connection Toggle: Connection toggled on...

Setupmodem Status: Waking up main script...

Setupmodem Status: Woken up from sleep...

Connection Open: Attempting...

Connection Open: SUCCESS!

Setupmodem Status: Going to sleep now...

Connection Toggle: Connection toggled off...

Setupmodem Status: Waking up main script...

Setupmodem Status: Woken up from sleep...

Connection Toggle: Connection Toggled off

Connection still works at this point and running /toggle.sh still gives error. Let me try version w/ echo.
[Touch CDMA Android Development] grktaurus83:
So looking over everything again, I noticed something in the sleep.sh script. I didn't have absolute references to echo and sleep. I'm suprised I didn't notice that before. *sigh* For some shell runs, Android actually finds echo and sleep, and others it does not. I've had this problem before and that's why I switched over to absolute references.

Edit: Also found some echo commands in setupmodem.sh and toggle.sh that weren't absolute references. It helps to have a fresh set of eyes to spot these mistakes.

Thanks for your feedback and sorry about the trouble.

I've updated the v03 build to fix this error (and changed the log file to ppp.log since it's easier to type from the terminal emulator). If any of you have already downloaded v03 before seeing this post, please download it again. Sorry for the inconvenience.
[Touch CDMA Android Development] strra:
ok this one is driving me nuts.

i can add widgets to the home screen, but i can't do anything with them... i can't move them, remove them, or anything... they're just stuck where they popped up... help?

thanks

-Randy
[Touch CDMA Android Development] bugzy:
can you post the link again?
[Touch CDMA Android Development] jim256:
Hey awesome this is great. Thanks again! Keep it up :)

I assume that when you try to move them or whatever you hold your finger on them till they become larger, then move your finger around?
[Touch CDMA Android Development] grktaurus83:
The dial-on-demand updates can be found at:

http://prometheus.usc.edu/initrdtoggle
[Touch CDMA Android Development] joeyjones:
Weird bugs

I jsut installed Android using the .cab file from http://www.myhtcphone.com/vogue-cab-installer and have come across a few weird issues. The view of the os is extended beyond my screen, aka. only a millimeter of the scroll bar is visible. The screen also froze while making a call. My phone has the model number VOGU100 with a QUALCOM(R) 7500 400MHZ cpu and a 240x320 resolution.

On a side note i actually seem to get better signal quality while running android.

Any ideas how to correct these bugs?
[Touch CDMA Android Development] ingenue007:
how do you uninstall an app??
[Touch CDMA Android Development] prodigy2m:
Suggestion

There were some problems before with SD card and Android when there is a folder "System" on it. You must delete that folder before it can unmount system.img.
[Touch CDMA Android Development] prodigy2m:
Uninstall Apps. from Android

If you are asking how to uninstall APPS. from Android... Here it is.

1. Go to "HOME" (Where you can see the clock)

2. Slide left navigation "DOWN"

3. Click on "Settings"

4. Scroll till you see "Applications" - Click on it

5. Now click on "Manage applic..."

6. Click on APP. that you want to Uninstall

7. Click "Uninstall"

That's it!

Enjoy.
[Touch CDMA Android Development] ingenue007:
Thanks a lot!
[Touch CDMA Android Development] jim256:
So, just to be certain, system.img and data.img are what stores msgs, contacts, settings, etc correct?

Problem is, android will no longer boot for me. Card doesnt seem corrupted, and I even tried replacing the initrd.gz w/ dzo's version. no good.

It just sits at the android loading screen with the little robot. He has the pulsing white behind him for about 5-8 times, but then one time when it pulses white behind him, it hangs and doesnt fade away again.

It then sits there for about 7 seconds, then the screen goes blank and the whole process starts all over again.
[Touch CDMA Android Development] Praiz2ELoHiM:
I thought it was only the data.img
[Touch CDMA Android Development] prodigy2m:
DATA location help

Data such as messages, contacts, and other settings located in:

Data.img file

... Hope it will work out for you...

Make sure that when you add new files to SD card, not to have data.img.gz there because it will destroy your previous unmount file. OK. Good luck.
[Touch CDMA Android Development] pierrechn:
yea i just cant get it to work..when do u guys think it will be fully ported and functional on the htc touch? do u think u will be able to switch to it from winmo?
[Touch CDMA Android Development] jim256:
Got it thx. Here goes.. :S
[Touch CDMA Android Development] jim256:
I'd give it at least a solid 2 months
[Touch CDMA Android Development] jim256:
Ah heck looks like my data.img was somehow corrupted. I guess I may as well hang on to it. Gosh I had 7 new txts on there that were rather important I think.
[Touch CDMA Android Development] strra:
ok, new question...

this is kind of crazy, but who is googlemaps tracking when i turn on "my location"? i turned it on 4pm est and it showed someone in california (which would be 1pm local) driving east down bayshore rd, stopping at two intersections, then turning around across from o'connor st and traveling back west down bayshore rd.

i feel like i'm stalking someone O_O
[Touch CDMA Android Development] jim256:
Lol ya this is kind of funny, but has been mentioned a few times in this thread. No one REALLY knows what it is..
[Touch CDMA Android Development] bugzy:
interesting ... i didnt toggle off the internet connection since this morning

and im at 59% power still

but i havent used the internet ... so far ... seems like i can leave it connected without crazy power drains
[Touch CDMA Android Development] grktaurus83:
Awesome. I think the fact that my script keeps the setupmodem.sh script from looping is helping the battery a bit.
[Touch CDMA Android Development] jf11time:
Got Android to run on my touch, but, no internet connection. Do I have to have the Data Connection turned on in windows?
[Touch CDMA Android Development] grktaurus83:
If you're using the full builds from dzo's site, then yes, you need to have the internet up in Windows Mobile first.

To be able to toggle internet on and off (or get internet without first establishing a connection in Windows Mobile), you have to use my custom initrd.

Use:

Username=blah

Password=

(password is blank)

Find the custom initrd.gz here: http://prometheus.usc.edu/initrdtoggle

Make sure to read the directions.
[Touch CDMA Android Development] dzo:
Hi,

OK, here's a new build with experimental camera support.

http://it029000.massey.ac.nz/vogue/android-26-11-08.zip

The camera isn't 100% working but I thought you might like to see what it does at the moment.

these are the issues I know about:

Only simple autoexposure control:

It takes a while to adjust the exposure for the lighting conditions.

No white balancing:

Colours may be wrong, but you can always correct this afterwards.

Resolution only 320*240:

Not much use as a camera I know, but OK for contacts icons I suppose. It won't be too hard to get the full resolution.

Preview not in the same format as the G1:

All the software for the G1 expects YUV420 for the preview format but if I give that to Android, it only displays it in greyscale (a limitation of the opengl software renderer) so I give it RGB_565. This means that applications like ShopSavy don't work. However, the camera is so crappy that it can't scan bar codes anyway because they are too out of focus. I could get a barcode to scan by enlarging it on a photocopier, but this is not a practical solution! It is possible that using some software zoom it would work, but then controlling the zoom is a problem. So for now, there is a colour preview and apps won't work at all.

Scale changes:

After quitting the camera app and starting it again, the preview scale is wrong, don't know why it does this.

Messed up preview:

Sometimes the preview doesn't display correctly, just restart the camera app if it does this. The emulator does this too sometimes I think, so it's not my fault.

sdcard remounts itself as read only:

Sometimes this happens for some reason, you can fix it by going to the terminal and typing:

su

mount -t vfat -o rw,remount /dev/block/mmcblk0p1 /sdcard

As you can see, it's not really done yet, but try it anyway.

I also added a few sleeps to the setupmodem script so it should work with Sprint but you can always drop grktaurus83's toggle initrd in if it doesn't.
[Touch CDMA Android Development] grktaurus83:
I added the toggle scripts to the initrd of dzo's 11-26-2008 release.

You can find this new version (v04) at the usual place (http://prometheus.usc.edu/initrdtoggle).
[Touch CDMA Android Development] pierrechn:
hey so since some of u predict a 2month wait...when its ready to and 100 percent...will we always have 2 boot it through programs or can it replace winmo as a whole..like uninstall winmo and upgrade to android?
[Touch CDMA Android Development] grktaurus83:
Everyone is so quick to try and jump ship and move completely to Android. *sigh*

You guys need to realize that many of these fixes are just workarounds. Android for the Touch may never reach 100%. As long as we don't have complete driver support from HTC we'll have to try to reverse engineer it all. Reverse engineering doesn't always work, and sometimes when it does work, it doesn't work as well as it should.

Not just that... What happens if Martin gets a new phone or finds he has no more time to continue working on this? Who will continue this work? At some point, the Touch will go out of style and the user base will decrease. This project can only continue if the demand is high enough or if there are people interested enough to put in the time.

We're lucky to have Martin (as many people with other phones have realized) and that's all you can really say. No one knows how far this project will go. No one expected it to come this far this fast and it's still taken several months to get here. But there's no guarantee it'll finish and become what Android is meant to become. We're all along for the ride, but this project is just too much to do for one person (or even just a few).

Sorry to rain on the parade, but it's really just the fact of the matter.

And even though I do think this, I'm still enjoying what we've got so far and I'm now finally even contributing to the project. It's not a lost cause, it's just not guaranteed to work 100%.

In some ways, what we've got already is a success. The only thing we can do is keep trying.
[Touch CDMA Android Development] imfloflo:
great work dzo, when do you think this will be compatible with our kaizer/polaris .?
[Touch CDMA Android Development] grktaurus83:
Updated the toggle initrd to v05.

Fixed a bug that wouldn't allow the script to initiate the "close connection" branch in my toggle script.

Get it at http://prometheus.usc.edu/initrdtoggle.