yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] grktaurus83:
Quick question...

How can we modify the press+hold function of some of the keys? Is it possible from userspace (qwerty.kl file or otherwise)?

Also, is there any way to do conditional responses?

Example: A single key is assigned the wake and collapse functions. If the phone is asleep, perform wake. Otherwise, perform sleep.
[Touch CDMA Android Development] dzo:
The press & hold functions are hardcoded in:

frameworks/policies/base/phone/com/android/internal/policy/impl/PhoneWindowManager.java

But it should be possible to get the kernel to send different keycodes in certain situations. I was thinking of sending volume up/down when the kbd is open or using a long press of the cam button for something.
[Touch CDMA Android Development] bchi49:
That's great to know! thank you both.

BTW, I'm using WM6.5 w/high memory mode where the camera is disabled. After boot up it has about 20 mb free on WM. Not sure if that helps on the Linux Android side. I'll post on the Titan side in future posts. Thanks Mag! for working on the Titan version! I like to help if I have some guidance on getting started. BTW Cupcake has been released by Google.
[Touch CDMA Android Development] dzo:
I fixed the annoying click when audio starts, new kernel is on my website.
[Touch CDMA Android Development] bangout:
a little help

could somebody explain to me how to download and save zimage. thanks
[Touch CDMA Android Development] Magister2k7:
Can you tell me how can I find that unused memory?
[Touch CDMA Android Development] jaredakelly:
all the latest kernals were cause major "lag". apps running slow, scrolling slow, freezing when going back to home page for 10 seconds.

i am now using the first gpu kernal that came out and it works perfectly. everything is very fast, fast scrolling, apps open quickly. it's like a new phone.

any reason why that kernal our performs the others?
[Touch CDMA Android Development] katmandu421:
Personally I boot back into winmo and use opera or IE to navigate to dzo's site and link to the kernel. I think it asks where you want to save it by directly clicking on it, but if not you can try to "save link as..." by long pressing the kernel link. I save it off to my storage card in a backups folder and then use explorer to swap out and make backups as required.
[Touch CDMA Android Development] katmandu421:
I noteced that as well, most notably on ChompSMS. Takes a while to load the chat history or to load a chat when replying from SMSpopup.
[Touch CDMA Android Development] jaredakelly:
chompsms gets "laggy" when there is just to much text in it, i text alot and have to empty it out. try that

go back to the first gpu kernal, "zImage-gpu" in the files, you will notice a huge difference.

i like scrolling smooth instead if jumping down the screen.
[Touch CDMA Android Development] katmandu421:
I tried your tip, but all I got was an empty sms box, no performance improvement. I did notice that it is a "first time loading" lag. After it has loaded, if you close it then open again it is speedy. I assume this is because it is still open in the background and once Android closes is it for real it takes a while to open again.

I agree, despite all of the nice little features the newer kernels have provided that the zImage-GPU has significantly higher performance.
[Touch CDMA Android Development] refthemc:
I havent used android on my vogue for awhile now, though i loved the releases because they were pretty stable and the market and google apps worked, the main reason was the big blue keyboard got way to annoying to use on a daily basis. lol. but about the cupcake releases, last i remember the market and google apps didnt work, has anything changed?
[Touch CDMA Android Development] vilord:
What about rotate *without* keyboard be long-press-camera key?

I'd also like to see the end key powerdown be swapped functions with the power button functions... end from a menu in WM goes back to the today screen, and power button any time it is on, turns off the screen... it is reversed in android...

Thank you!
[Touch CDMA Android Development] dzo:
Long press camera is possible but if I swap the power and end buttons you would have to press the power button to end a call. If you pressed the end call button instead it would keep the call active and go to the home screen.
[Touch CDMA Android Development] dzo:
I don't know why this happens for you, they work fine for me, perhaps its a panel specific thing. The only things that I changed that could make a difference are the mddi clock and ahb clock so I've added kernel parameters to let you change these. Try:

clock-7x00.mddi=X

and

clock-7x00.ahb_div=Y

in the command line default.txt

X is 0xa00 + div*8 + src

div is the clock divider-1 (0..15) and src is 1 for 800Mhz and 4 for 275MHz(not sure about this), 0xa51 and 0xe2c are the vogue and kaiser values here.

Y is 2..4 default is 4, 2 works for me and speeds things up a little but uses more power.

Let me know is these help, clock-7x00.mddi=0xa51 and clock-7x00.ahb_div=2 should be the values used by the gpu test kernel.
[Touch CDMA Android Development] katmandu421:
OK, just to clarify, we will need to add the "clock-7x00.mddi=0xa51 and clock-7x00.ahb_div=2 " lines to our default.txt, correct?
[Touch CDMA Android Development] dzo:
I've been playing with the clocks and have managed to get the cpu to run a bit faster. Try the zImage-vogue-oc on my site and add the following to the default.txt cmdline:

clock-7x00.ahb_div=2 clock-7x00.a11=500

This makes the ARM11 clock 500MHz and the host bus 250MHz. It only takes affect after the first power collapse resumes. Most noticeable is the scrolling speed of the icons in the dock.

Obviously this may not work for everybody but my vogue runs fine up to about 580MHz. You can change the speed on the fly by writing to /sys/module/clock-7x00/parameters/a11 and ahb and then doing a power collapse+resume.

This only works on vogue for now.
[Touch CDMA Android Development] mssmison:
Just wondering if your getting your hands on these htc leaked builds that Haykuro has been posting?
[Touch CDMA Android Development] katmandu421:
I tried and got the error "unknown keyword: 'clock'"?

EDIT: I hit enter instead of just using spaces to separate the commands. You learn something new everyday :)

EDIT2: I also learned that when I add this line in to the default.txt I am unable to wake the phone up. The LED begins blinking green on it's own at the first power collapse and the phone won't come back out of hibernation. FYI: I am on a Sprint Touch

EDIT3: After removing the "clock-7x00.ahb_div=2 clock-7x00.a11=500" line from default.txt and still running the OC kernel performance seems to be up. - EDIT4: Nope, performance is still lagging.
[Touch CDMA Android Development] tallnerd1985:
Android for Touch Pro CDMA

Hey DZO,

I have a bunch of Touch Pros that I am willing to donate to your cause if you want to help port Android over to the new Touch Pros. They are in good shape and work but I am not sure how you would get them to work on your carrier which I believe is Telus. Anywho, let me know if you are interested.
[Touch CDMA Android Development] a_mi_dis:
I see that HTC has released a soft keyboard for android... is it just a .apk file than be installed or not... if not hope u guys can find a way to make it work with 1.1...
[Touch CDMA Android Development] vilord:
Has anyone with a linux box tried this: http://haykuro.theiphoneproject.org/?p=213 ?

I see someone else using it with a 1.1a build on a G1, so it should maybe work on ours?

EDIT: scratch that, 1.1a is a cupcake build...
[Touch CDMA Android Development] mssmison:
doesn't work on 1.1. I'll try cupcake.

**edit**

I can install into into the cupcake build but I can't move over the libt9.so file. It doesn't seem to let me write to that folder. Any ideas?

**edit again** Got it installed with file manager but still can't get libt9 over. The keyboard doesn't pop up on any txt entry boxes.
[Touch CDMA Android Development] vilord:
to get the libt9 over I would use terminal emulator...

$ su

$ mv /sdcard/libt9.so /system/lib

$ exit

$ exit

then head over to settings -> locale and enable the touch keyboard.

Since I'm not running cupcake, I'm not sure what else might be involved...

What doesn't work in cupcake again? Is it still unstable on our phones?
[Touch CDMA Android Development] mssmison:
Nope didn't work still wouldn't let me copy.
[Touch CDMA Android Development] irodex:
Hi. I read through the first 20 or so pages of this thread and didn't see an answer to this question.

Does the newest release support blue tooth on the vogue? Thanks
[Touch CDMA Android Development] mssmison:
no it doesn't
[Touch CDMA Android Development] mssmison:
If we could get that keyboard working in cupcake than we'd be set. Then again if we could get marketplace working in cupcake we'd be set... then again...

DZO you've done some much amazing work already. :)
[Touch CDMA Android Development] irodex:
Damn, that is a deal breaker for me. Hopefully it can be supported in upcoming releases.
[Touch CDMA Android Development] irodex:
Can anyone recommend an application or method of getting the contacts off of my Touch with Windows Mobile on it and back onto the touch after I install Android?
[Touch CDMA Android Development] grktaurus83:
The system.img file uses cramfs which is read only.

You might need to unpack the system.img outside of android (like on a linux box), put the file in the system folder, then repack the system.img for android.

I don't think there is any way that doing it this way won't work.
[Touch CDMA Android Development] vilord:
Forgot about that...

What is included in the LD library path? Is there a user libs folder that is writable? If so we could just put the .so in there, it doesn't have to be in /system/libs, just needs to be in the library path
[Touch CDMA Android Development] mssmison:
Probably we'll have to wait for Martin to get it in there. If we can get this one going than we can disable the blue keyboard out.
[Touch CDMA Android Development] njakobs:
Hey DZO,

I too tried this and can't get it to wake up after the first power collapse.

I have an NZ vogue too.

Any ideas?

Cheers

Edit: Slipt new clock info onto its own cmd line and it now appears to work fine.
[Touch CDMA Android Development] vilord:
I use nuevasync to sync my contacts in windows mobile, but http://www.google.com/mobile/winmo/sync.html will also do the trick. Then once i enter my acct info in android with togga turned on, the contacts magically appear with data sync.
[Touch CDMA Android Development] vilord:
Did some more checking... LD_LIBRARY_PATH is ignored, so we can't create our own library location user-side...

The "default" locations are stored in linker.c, I can't look at the source right now... but another site mentioned /lib /system/lib and . (present working directory)

I was able to create a /lib and create a file in it, so that might work (I'm not running cupcake)

Alternatively, we could figure out where the actual executable that uses libt9.so sits user-side, and just put the .so in the same folder as the executable

But if somebody doesn't mind testing the /lib route, that'd be cool...
[Touch CDMA Android Development] hexto:
Its been since December since I last downloaded Android and I'm not sure which to use? I was on Martin's site and downloaded the latest cupcake version and was able to connect to the internet though downloads from the market were not possible for some reason. I then downloaded the latest 1.1 version which is supposed to be the most stable but I cannot get a data connection.

I use VZW if it makes a difference though it never did in the past and I've gone 30 straight days on Android to see just how good it was before. I loved it but have been liking WM6.5 so I haven't checked on Android in a while but want to get back into it.

I'd like to know which version others are using which gets data and downloads from the market. Thanks
[Touch CDMA Android Development] tatnai:
in cupcake, you used "modem" to connect to the internet. in 1.1, you need to use "togga". market not downloading in cupcake, at least in f00bar's latest release (not sure which one is up on dzo's site) was secondary to the storage card not being recognized.

if you got data working with "modem" in cupcake, it will work with "togga" in 1.1. market downloads work in 1.1.

if you are using toga and this is not working, try using the same default.txt that worked for you from cupcake in 1.1.
[Touch CDMA Android Development] dzo:
I've just put a new kernel on my site, it has the overclocking support and also the volume buttons change volume when the onscreen kbd is displayed.

Try adding this to the cmd line in default.txt:

clock-7x00.mddi=0xa69 clock-7x00.ahb_div=4 clock-7x00.a11=500
[Touch CDMA Android Development] hexto:
Thanks. I downloaded android-1.1.zip dated 20-May-2009 14:45 39M and data works. Whats the deal with the Market? I recall there being some market capabilities before though it didn't look like the market I can access now. I see there is still no MMS, Bluetooth, and GPS. Once those 3 things are available this will be a perfect OS.

One thing I noticed is that YouTube looks 100 times better than it does on WM. Guess those OpenGL drivers are realy doing the trick.

Overall it looks and works awesome. I'm a bit rusty at the moment but after a few days of using Android exclusively I'm sure I'll enjoy it even more. Thanks for all your hard work on this guys

Edit:

I never had created an Android Apps folder. Just did and all my Market downloads resumed on their own. Can't believe I missed that
[Touch CDMA Android Development] njakobs:
Any idea what effect this will have on battery life?

The whole api seems to respond a little snapper with overclocking, very subjective though.

Are there any performance apps in the market the anyone knows of?

Cheers
[Touch CDMA Android Development] dzo:
Doesn't seem to make much difference, the clock stops when the CPU is idle so most of the time it's drawing no extra power. If you leave the network connected, then you probably won't notice any difference. I get over 26 fps with neocore now, so it is faster.
[Touch CDMA Android Development] vilord:
Using foobar's cupcake for system.img/initrd.gz and your latest zImage, powercollapse seems to turn off the screen but not turn it back on... has anyone else run into this?

I tried a fresh data image, but it is the same... it does successfully go to power collapse (flashing red led), then powering back up gives me green led and leds behind the buttons... if i hit menu, I can do a powerdown (the touchscreen is active), but the screen just stays off...

Any help would be appreciated!
[Touch CDMA Android Development] tatnai:
known problem. try earlier zImage, or stick with the one from f00bar and keep the vibrate problem instead.
[Touch CDMA Android Development] vilord:
Thanks!

Martin, you mentioned that the camera preview doesn't work because of the software scaling... would using the pixel desity modification that f00bar used allow the cam preview to function again? Just an idea...

...still gotta get my desktop's linux install booting again
[Touch CDMA Android Development] dzo:
It should be fairly easy to get it to work for 1.5, I just haven't got round to looking at that yet.
[Touch CDMA Android Development] dzo:
Hi,

I made some changes to the touchscreen to report the pressure to android and it worked on my phone but it looks like it needs some calibration. I've put a new zImage on the website that should be more likely to work, let me know how you get on with it.
[Touch CDMA Android Development] dutchman71:
updated files now working on Sprint Touch. Thanks.
[Touch CDMA Android Development] wmvdg123:
Sms works fine on sprint.
[Touch CDMA Android Development] qui_aff:
dzo, thanks to your latest upload, I am able to verify that the keyboard works, including the haptic feedback. I have been able to place and receive calls, and internet and SMS work great. Everything works as advertised in this latest version.

If there is one suggestion I can make, it would be about the layout of the SMS application. Thanks to the size of the screen, the keyboard covers the number field. If you could move that field somewhere above the actual message box, that might be useful. As it stands, I can't see what I'm typing in the number box.

If you need anything tested on a Sprint Touch, let me know. Excellent work so far.
[Touch CDMA Android Development] dzo:
Hi,

Pressing the right alt key on the keyboard moves the rest of the screen up so you can see what you are typing.
[Touch CDMA Android Development] ibri:
Another successful test on a Sprint Touch. This project has made me so happy, I can't even explain it. I'm hoping to see more development very soon and will keep up on this thread as much as I can. I'm also going to look into the Android SDK to see if I can lend a hand at development, etc.

Thanks!
[Touch CDMA Android Development] dzo:
Check out this demo of the latest version of Android.

http://www.youtube.com/watch?v=sOSk9TW7z-4

Hopefully they will release a new SDK soon. Even if they don't, the day after the first phone release when it all goes open source, we will be able to run it on vogue. I'm working on power management now, once that is done, it will be pretty much usable as a phone.
[Touch CDMA Android Development] mburris:
As i titan owner I am very envious of you vouge owners...

DZO, god of andriod porting... please bless us with the ability to start the filesystem from SD card, or onboard flash storage.

Thanks for all your hard work so far... Everytime I see a new android video, I get all excited...

Could one of you guys that has SMS, DATA and calls working make a youTube video showing it off??
[Touch CDMA Android Development] wmvdg123:
dzo, I've noticed that although data works great for maps, the browser seems to hang and not finish loading pages. Is this a problem with the browser or does the data connection quit after a while?
[Touch CDMA Android Development] dzo:
Hi,

It's not the data connection because you can connect to a busybox shell on the phone and it stays up even when the browser is having trouble. It could be because I am managing the data connection rather than android so it thinks it's not available (hence the initial browser message). I will try to get it to start pppd itself, this means I have to implement a few more things in the RIL library which may take a little while.

One thing that kills the data connection is making phone calls but that could be because I don't have working EVDO on my phone at the moment (I shouldn't have upgraded the radio without writing down the HDR Password!).
[Touch CDMA Android Development] jchang320:
Hi, I'm new to all of this. Just recently got a htc touch, and I'm trying to port android over. I downloaded all the files from the first post, but I get a white screen.

When I run haret, linux boots up, the screen fades to black and then some words appear saying that the hardware has been shut down, the kernel has been relocated and its being jumped to. And then I get a white screen. Do you have any ideas?

Thanks a lot!
[Touch CDMA Android Development] mherald81:
I need some help. When I try to run the defualt.txt in HaRET I get an error. "Failed to load file \Storage Card\Android\zImage#"

What do I need to do to get this fixed?
[Touch CDMA Android Development] {SBR}_L3GION:
can someone post the files im having a hard time downloading this
[Touch CDMA Android Development] ibri:
If it really is the case that there is a # at the end of the error message then there's something wrong with your defaults.txt file. Have you edited it yourself? That # should be at the beginning of the next line I believe. # is generally used to comment out a line so it doesn't get processed. If you haven't modified your defaults.txt in any way, try downloading it again from the website.

-maik
[Touch CDMA Android Development] dzo:
You probably have an elf rather than a vogue, they look the same but the elf is GSM and very different inside. This thread is only about CDMA phones based on MSM7500.
[Touch CDMA Android Development] {SBR}_L3GION:
i have a cdma vogue and everytime i hit run it says it cant run the zimage.
[Touch CDMA Android Development] ibri:
Can you post the exact error message letter for letter? There could be some extra characters, or it could be the file has an extension on it for one reason or another.

-maik
[Touch CDMA Android Development] roxorz:
i have this running just fine on internal memory minus data on an alltel touch. trying to figure out the login for data. will this run off of a storage card?
[Touch CDMA Android Development] {SBR}_L3GION:
failed to load \storage card\android\zimage.

btw im using sprint.
[Touch CDMA Android Development] dzo:
Did you read the line in the first post of this thread about making sure windows hasn't added an extension to the file name... probably not.
[Touch CDMA Android Development] zenulator:
cupcake download

where can i download the latest cupcake build from f00bar. the only one i can find is hosted on mediafire dated april 25. also any tips or walkthroughs on building 1.1 or cupcake from source for vogue. thanks in advance.
[Touch CDMA Android Development] katmandu421:
Initial looks are pretty wicked and my issue with the zimage-vogue-oc regarding waking the phone up are gone. Wakes up properly on a sprint touch with the commands you gave. Awesome so far. Will update if I find any quirks, of course ;)
[Touch CDMA Android Development] mssmison:
K I made a /lib folder and copied the .so file there. Than set touch input as my default input. Rebooted to WM and ran HARET again and.... no luck, my android stopped booting, it just turns to the messy corrupt looking graphics like when you have an incompatible program in your andoidapps folder..
[Touch CDMA Android Development] vilord:
Ugh. I wonder if /lib is saved across a reboot? I checked on mine and I don't think it is. That might be the issue...

So it looks like our only options are to repackage f00bar's system.img with libt9.so (and maybe with a vold fix for SD cards too), or wait a couple more weeks for 1.5 to become more stable that martin picks it up and has some time.

Tonight I'll be bringing up my linux box, once it is running, I'll repackage the .img

on a side note, I tried switching to the new kernel martin posted including the 500mhz clock settings... today i notice that the browser quits out randomly without an error, the app just disappears... I'm going to try pulling out the clock settings, see if that is what caused it... or is this another known issue?
[Touch CDMA Android Development] katmandu421:
It's almost like it's too fast :) When I click on the menu button to unlock the screen, I always get the settings, walppaper, etc buttons that come up when you hit menu from the home screen. Also, back out of some apps (for example, backgrounds) not only goes back to the main gallery, but closes the app.
[Touch CDMA Android Development] mssmison:
So I messaged haykuro this morning to see if he could help and here is his reply.

"just follow the output of logcat.

you require some libraries from /system/lib as well as the IME.

also remember to take /system/app/Clicker.apk

you can check out the "porting sapphire apps to JF" post in android development. they have all the libraries and stuff listed out. (i'm at school now so i can't tell you exactly which ones they are.)"

**Edit** Here's the thread he's refering to.

http://xdaforums.com/showthread.php?t=515840

Attached to that thread is the update.zip where the required files are.
[Touch CDMA Android Development] vilord:
Are haykuro's sources out there somewhere? It'd be nice to take a look at and or steal his vold and vold.conf to make 'em work for our SD cards...
[Touch CDMA Android Development] mssmison:
if the system.img wasn't cramfs we could get this working on our phones. Gonna have to try and rebuild it I guess.

**Edit**

Well I tried to revive my linux skills and it was an epic failure. Hopefully someone who knows, can do. :)