yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] mssmison:
Umm better not try because this patch cause is not for the kernel, it's for the ril. :) But great heads up on this.

Should be an easy patch, I'll have a look at it.

Edit** not as quick as I thought but do able for sure **

lol.. nice response :)
[Touch CDMA Android Development] mssmison:
I talked with Vilord about this, as he's the RIL expert. So this will work for other devices but not the Vogue, apparently the vogue uses the ARM9 for cell tower location. he does however think that he may have an idea about *how to get it working but it's not going to be a nice little patch like what we have here. (well two patches actually that we need)
[Touch CDMA Android Development] polyrhythmic:
Thanks for the fast work mssmison, I wish I could be of more help. Let me know if you need any testing!!
[Touch CDMA Android Development] jnadke:
Me and vilord have already been working on this (Network Location) for a couple weeks.

The patch above is for GSM. Our CDMA phones don't reply the same way GSM does.

Here's what I posted in this other thread:

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

"Unfortunately, our radio doesn't support the AT commands that the Touch Pro2 and Hero have to return the Cell ID. I hexedited the code and didn't see any. That kills the easy route.

Now, supposedly Cell Location (not necessarily ID) is sent over the GPS interface (not necessarily part of the GPS message). Separate work would need to be done to first figure out if it even exists, then figure out the interface, then write a driver that returns the Cell Location to the RIL. The last part is the easy part, the rest require a fair bit of time."

Vilord says there's a way to get it to work in WinMobile. I'm going to wait for him to reproduce his results, then hack at it with HaReT and see if there's a way to extract the Cell Tower info.
[Touch CDMA Android Development] jnadke:
The patch above would fix Cell tower location for your GSM phones.

There's another patch too that you'd need. The diamond folks have it. I could compile a RIL up for you and you can give it a try.
[Touch CDMA Android Development] plemen:
dzo - I see a 04-03-10 nbh on your site - what are the changes in this?
[Touch CDMA Android Development] mrkite38:
44 hours ago	Martin Johnson	Update defconfig htc-vogue	commit | commitdiff | tree | snapshot

2 days ago	Martin Johnson	Don't suspend while hsuart is operating, wake when...	commit | commitdiff | tree | snapshot

4 days ago	Martin Johnson	Some cleanups and add smd8 to allow reading of the...	commit | commitdiff | tree | snapshot

6 days ago	Martin Johnson	Allow uart1dm clock to be disabled.	commit | commitdiff | tree | snapshot

Maybe one other?

http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue
[Touch CDMA Android Development] mssmison:
I'm not sure what the last was he posted but the most recent changes are for the hsuart, and some defconfig changes.
[Touch CDMA Android Development] SyubSnunb:
For CDMA the mobile stations receives the BSID or BASE_ID (Base Station ID) not a Cell Identifier like in GSM although they can be thought of in the same manner. The layer 3 signaling should contain not only the Base Station ID but also the Base Station Lat and Long. Of course I have no idea how the radio communicates (or if it even does communicate) those up to layer 4.
[Touch CDMA Android Development] plemen:
Thanks - I'm getting random reboots and it seems to be since I loaded 4-3-10 (4 in the last day); going back to 26-2-10 and will post back to confirm the reboots have stopped.
[Touch CDMA Android Development] dzo:
If you get a reboot, can you look at the kernel messages (/proc/last_kmsg) to see what was happening at the time.
[Touch CDMA Android Development] plemen:
Next reboot I definetly will. It's not your nbh - there is something funny with my phone becuase it's rebooted again with an older kernel.
[Touch CDMA Android Development] ThomasHW:
Sometimes it seems as though the phone doesn't actually charge when it says it has. I'll have it plugged in all night, and it'll say it's at 100%, but it'll quickly go down to something like 40%.

Other days, I'll leave it plugged in all night, and it'll go down slowly from 100% like normal.

Any idea what causes this?
[Touch CDMA Android Development] incubus26jc:
maybe something wrong with the contact on the charge chord or the phone.
[Touch CDMA Android Development] ThomasHW:
I don't think that's it.
[Touch CDMA Android Development] bri3d:
It probably has to do with the age and type of your battery, especially if it's one of those Chinese double-capacity ones.

The battery charge/discharge factors were calculated using a stock HTC battery that probably had a little wear on it, to the best of my knowledge. As usual, I'm sure dzo knows more :)
[Touch CDMA Android Development] ThomasHW:
It's the stock battery and it's fairly new.

As I mentioned, sometimes it charges, and other times it seems as though the phone "thinks" the battery is charged, when it really isn't.
[Touch CDMA Android Development] dzo:
The battery charges until it gets to 100% and the current in is less than a certain value, then it discharges until it goes below 100%. This means that it does cycle the charging but it should always be fully charged when you unplug it. When you think it's not charging properly can you do the following:

start a terminal on the phone and type:

dmesg > /sdcard/kmesg.txt

Then copy the kmesg.txt file from the card and post it here.

Thanks
[Touch CDMA Android Development] jnadke:
Hey dzo,

I'll try to collect some logs but I was wondering if you have any insight as to where a bug might be I've been seeing recently:

Lately, I've been putting my phone in airplane mode in the gym locker room (so the radio doesn't eat up battery in high power mode trying to find a tower). We'll, more often than not, I find that the phone randomly reboots while in airplane mode.

Just the other day, I put it in airplane mode during a movie, and it rebooted in my pocket.

I'm asking here, because in my experience, random rebooting in linux = kernel panic.
[Touch CDMA Android Development] dzo:
I've just put a new kernel on my site, it powers down the sd card correctly now so you can actually remove and replace the card (needs userspace changes so vold knows about the card). It may also save a bit of power when suspended too. I've also added support for kexec so you can boot a new kernel without reflashing. This would be useful for people wanting to use a different resolution to sign in to google and makes testing a new kernel really easy.

Enjoy...
[Touch CDMA Android Development] incubus26jc:
thanks man. You are awesome. downloading now
[Touch CDMA Android Development] dzo:
I'll try my phone in airplane mode for a while but I haven't had a random reboot for a long time now. Try looking at /proc/last_kmsg, thats the kernel messages from before the reboot.
[Touch CDMA Android Development] cp0020:
How can I boot a new kernel without flashing?
[Touch CDMA Android Development] jnadke:
Unfortunately NoMoRootfs / initrd needs to be recompiled to add kexec to BusyBox (I think it supports it). Once that happens, you can do:

kexec -l <kernel-image> --append="<command-line-options>"

i.e.

adb shell kexec -l /sdcard/andboot/zImage --append="mddi.height=......."

Or this can possibly be done with a script on the phone, or a custom-made apk that executes that command. adb would be easiest.

This is more of a developer feature. The flash chips on these generally are only good for 100,000 writes, and even then errors start showing up before that. The less times the NAND is flashed, the better.

Realistically, most people only flash once or twice a day, so you have nothing to be concerned about. But having to flash every time you want to test a change out, is time consuming and puts unnecessary wear on the phone.
[Touch CDMA Android Development] incubus26jc:
i believe he posted that initrd here a minute ago

http://xdaforums.com/showpost.php?p=5821496&postcount=1944
[Touch CDMA Android Development] jnadke:
No, that's the HaReT initrd. You need it for booting the zImage using kexec.

Essentially kexec is HaReT for Android.

kexec is two parts: kernel support (which allows accessing memory in kernel mode), and a user-space program for loading the kernel. I'm talking about the user-space part.

I'm refering to putting the kexec executable on NAND. Dzo did include a stand-alone executable, but you'd generally put that on the sdcard and run it there. NAND would be better.
[Touch CDMA Android Development] incubus26jc:
thanks for the clarification. I have no idea what i am talking about. You obviously do. Thanks:)
[Touch CDMA Android Development] Brad_J:
I can confirm this bug. It has happened to me numerous times now.

Unfortunately my job requires me to use airplane mode several times per day.
[Touch CDMA Android Development] Maranevim:
im sorry to bother you with my problems but cant you make some minor update to kaiser nbh, so i can boot android?

thing is: i flash newest nbh a then reboot, ( rarely ) it loads android installer, where i install whole system. then it boots up into android and works just fine.

but when i reboot the phone, it just hangs in the windows phone screen ( or any other picture after pressing power button ) and hangs there.

tried pull out the battery for 10 minutes and it still dont work. so isnt there any nice fix for this? :)

thx for reply :)
[Touch CDMA Android Development] slm4996:
Some of the kaisers I ran across have this issue. revert to the next older hardspl and it should work. no idea why.
[Touch CDMA Android Development] dzo:
I don't think kexec is part of busybox, easiest just to use the standalone executable. For the airplane mode problem, I can't reproduce this, does it do it only when you don't have coverage. Does it do it if you don't have a data connection active when you switch on airplane mode.
[Touch CDMA Android Development] cp0020:
So how do we use kexec? Could you explain it like I'm a 6 year old? Lol I'm sorry its just some of this stuff really confuses me. I usually flash nbh files via sdcard cause I don't have a computer, if your saying there is no more need to flash then I'm interested. :) thanks!
[Touch CDMA Android Development] jnadke:
Yeah, I've yet to reproduce it again, despite running in airplane mode part of today. Perhaps it's not quite as frequent as I thought.

I'll get some kmsg dumps the next time this happens.

After checking again, you're right, kexec isn't part of busybox. Since the standalone version is so big (and since nobody has a major use for it), I guess we should keep it out of the initrd.
[Touch CDMA Android Development] dzo:
It's mostly for testing new kernels, it doesn't flash a kernel permanently, just boots it temporarily. Sounds like you don't need it.
[Touch CDMA Android Development] Grondinm:
tried the new version last night..worked great...altho i still had to have a active data connection for it to work but it did work much better than befor...and the sms notification worked as well...keep it up dzo
[Touch CDMA Android Development] roxorz:
i think its already out but only for people who won the challenge that they had
[Touch CDMA Android Development] unsungboxer:
Well... I will admit I was doing this at first, but figured that error out right away. However, I think something else is wrong.

I have been copy/pasting your commands. I am putting the intitrd-android file into the new folder, changing the name to .gz, then unzipping it using your script. Then I delete the initrd-android.gz file itself so that it is not in the directory when I rezip things. Thus it is only the extracted files being rezipped.

Every time I re-zip it, it tells me that initrd-android grew and that X amount of bytes wont be copied. I am sure I am missing something minor, and I will try it later today on my linux box.

tell me if you have any thoughts, as I am certain I am following your instructions.

-jake
[Touch CDMA Android Development] mburris:
it sounds like you are not saving the new archive you are creating into a new folder.

Go back and search this thread for my last (or close to last) post. I give some instructions on extracting and recompressing the initrd.gz file.

Bottom line is you are not running the commands correctly or there is something wrong with your box
[Touch CDMA Android Development] uiucryan:
touchscreen problems

Anyone having problems with the touchscreen with this release?

I have tried different WM roms to make sure it has nothing to do with with that, but am seeing some weird issues.

On the home screen:

I touch the 'all' tile, it simply highlights yellow and does nothing.

I touch the 'dialer' tile, nothing happens.

I touch the 'contacts' tile, nothing happens

I open the virtual keyboard:

touch a key it highlights grey and then just sticks on the screen.

I cannot select a tile, by touch, on the left side after opening 'all' with the dpad. If I touch a tile on the left, it jumps to another tile and simply highlights it yellow.

Does anybody have a similar experience, or, better, any advise?

BTW - i have run the screen calibration application and it appears to work fine.
[Touch CDMA Android Development] dzo:
It does this if it misses a ts interrupt, this shouldn't happen but I'll put some code in the ts event loop to check for missed interrupts.
[Touch CDMA Android Development] unsungboxer:
You were absolutely correct. I thought I had to have initrd-android in the new directory, it actually needs to be 1 directory above, and the commands that DZO gave actually look 1 directory up to find it.

I have taken DZO's latest initrd-android and made following changes:

1. Added opera mini and snake (opera mini loads, snake does not appear)

2. Added my newest wallpaper (wallpaper works nicely)

3. Changed data/misc/timezone to read "PST" (makes no difference to timezone).

Any thoughts why the Opera.apk appears in the menu but not Snake.apk?

Try my initrid-android (back yours up)

http://www.fileqube.com/shared/cMCaJgE49389
[Touch CDMA Android Development] unsungboxer:
I am downloading and testing apps. Try my newest initrid-android file:

http://www.fileqube.com/shared/wBEatgKz49406

Includes following .apk's in /data/apps/

- android_blackjack (does not appear in menu?)

- android_file_browser_2.0 (does not appear in menu?)

+ androidGlobalTime.apk (included in DZO's pkg, works)

+ opera_mini_4.0 (appears in menu, works)

+ sms.apk (included in DZO's pkg, works)

- snake.apk (does not appear in menu?)

+ Xlive.apk (appears in menu, works)

Haret will not open the file if it is bigger than 25mb, so I will need to try other apps later. Anyone got any idea why some apps show up and others don't?

-Jake
[Touch CDMA Android Development] uiucryan:
Any reason this consistently happens on my phone but not others?

BTW - once again thank you for all you extremely hard work Martin!!
[Touch CDMA Android Development] lmv7777:
I have the same problem
[Touch CDMA Android Development] itsallsubliminal:
i tried this file and it worked great! All the hard work is GREATLY APPRECIATED!

the only issue, and i'm sure this is well known, is when i save a contact and soft reset and relaunch, the contact(s) haven't really been saved...

is there a way i can manually input them into the file via my desktop pc?

i'm no developer so lamens terms would be great... thanks!
[Touch CDMA Android Development] unsungboxer:
Unfortunately there is no way to save data (like contacts) while running android. As you said a soft reset will lose that info.

However, Martin explains how to decompress the initrd-android file and add apps/contacts in post 471. in post 479 he gives a script to import outlook contacts to android. This all needs to be done from a linux computer (i use ubuntu 8), and requires a bit of tweaking.
[Touch CDMA Android Development] etiger13:
this works pretty smoothly for the most part. Some things are still awkward to me, like navigating around. some times the left key on the dpad takes me back to the main page, other times it works as a left key.

couple of questions:

1. Since we can get most of the phone functions working in Android, would these all be possible to get working in an actual full linux distro?

2. How much interest is there in creating a site for this project that would include the latest downloads, tutorials, help section and developer's section?
[Touch CDMA Android Development] dzo:
Shouldn't be hard to get Openmoko working, Angstrom works fine. The only problem is that without working SD you are limited to the 25M initrd that haret can load and no persistent storage. I'm working on SD support now.....

A site for this project would be good, the kaiser developers are starting to catch up so we should combine forces with them.
[Touch CDMA Android Development] Spyderekz:
Website

i would be glad to donate money to get a site going.
[Touch CDMA Android Development] etiger13:
well i have a domain already, myhtcphone.com

if anybody wants to give me a design and/or features i'll code it. im thinking blog with comments for tutorials and tips, a forum for support and svn web access maybe.

so if anybody wants to help out or anything send me a PM with what you can do/want to do. Or if you want to see something on the site, let me know.

If anybody wants to donate to help with web hosting costs that would be cool too.

I'm going to have advertising and maybe sell some stuff with proceeds going to hosting and web site expensives and most of the profit going to people who help with this project.
[Touch CDMA Android Development] unsungboxer:
sounds good to me! Keep it real simple, and put a paypal donation link on it, ill be happy to contribute. Hopefully having a site like this will help gain some exposure, bring in some more developers, and take some of the load off of Martin's shoulders.

As far as site sections go, I recommend a place for apps, development, tutorials. Perhaps subsections for different hardware (i.e. vogue/titan/etc). For site design ideas, I like how the linux community uses the wikipedia style pages. i.e. http://www.wiili.org/index.php?title=Main_Page.

Let me know if you need any graphical help -- images, logos, etc

-Jake
[Touch CDMA Android Development] d1rtyd33z:
dzo, you are awesome

Dzo, this was causing me trouble when I was trying to update the contacts.db in sqlite3. Thanks for the fix! Do you know why the insert trigger does not work properly? I couldn't figure out how to remove the triggers.

You've done some really amazing things so far, and I just cant get enough of it. Thanks again, man.
[Touch CDMA Android Development] uiucryan:
I have been laying some of the groundwork for forums and a wiki devoted to Android based stuff and would love to host information regarding these porting efforts. It isn't ready - but I at least have some of the base applications installed.

You can have a look here for the main site -> http://www.androidgeeks.net

You can have a look here for the wiki -> http://www.androidgeeks.net/wiki

Long term I would like to serve as kind of a breading ground for Android development - but I am getting ahead of myself!

Please note, currently I have to manually add members to the wiki.

--Ryan
[Touch CDMA Android Development] tpdtopcop:
Internet does not work anymore on my Sprint Touch Vogue after official rom update. I believe there is a new radio that came with install. Just FYI for sprint users that updated.
[Touch CDMA Android Development] cp0020:
Thanks for the quick responsel! :)

Ps. I have found a way to alsmost completely get rid of the bluriness in 320×480.
[Touch CDMA Android Development] cp0020:
Edit..........
[Touch CDMA Android Development] manu33xtro:
Hi DZO,

Just one question. I've a Polaris 100. Can I use your latest zImage (zImage-08-03-10) without flash my phone ?

Or can I use it with the polaimg-panel1-480-14-02-10.nbh ?

Thanks in advance.

Cheers.
[Touch CDMA Android Development] dzo:
Yes, it should work.
[Touch CDMA Android Development] plemen:
How do you get rid of blurriness at 320 x 480?
[Touch CDMA Android Development] mssmison:
Yeah I'm curious on this too.
[Touch CDMA Android Development] myn:
x3 The suspense is killing me!
[Touch CDMA Android Development] cp0020:
I used metamorph to theme the cpy. Here is a zip containing 7 different fonts http://android-stock-theme.googlecode.com/files/fonts.zip. I used the original.cpy. I did this on several builds and even compared it to 240×320. I noticed a huge! Difference after applying this.
[Touch CDMA Android Development] mssmison:
well yes, that makes the fonts clearer but it's not making it less fuzzy :)
[Touch CDMA Android Development] Reddog80p:
What do you mean by using cpy? Wouldn't creating an update tar changing the font be the same thing?
[Touch CDMA Android Development] cp0020:
You guys keep saying its fuzzy but after applying this its almost crystal clear! No fuzziness or anything.
[Touch CDMA Android Development] Reddog80p:
Let me know exactly what your doing. I want full market and want it crystal clear like 240 x 320.
[Touch CDMA Android Development] cp0020:
Do you know how to use metamorph? If not, download metamorph and andexplorer from the market. Open metamorphose and search for and click on this zip http://android-stock-theme.googlecode.com/files/fonts.zip then just choose which font you want. Apply theme then soft reset. The android font is pretty big bug I'm just not crazy about the way it looks. I used the original font.
[Touch CDMA Android Development] Reddog80p:
I applied the original font via an update I made but I don't notice any change in screen clarity. The fonts look more readable but thats about it. If you look in the setting screens the text doesn't look as crisp. Kind of like watching a program thats been recorded rather than watching live tv...lol hard to explain but thats what it looks like to me.
[Touch CDMA Android Development] cp0020:
I think it looks pretty clear. Maybe its just me. But not only does it look good but you got full market and everything fits right. On 240×320 a lot of the aplcations overlap. Is rather have almost clear and not messed up than clear and messed up lol
[Touch CDMA Android Development] mssmison:
Could we move this idea to a new thread instead of flooding the kernel thread with userspace related stuff?
[Touch CDMA Android Development] slow88lx:
So can an App be created that would let you toggle kernels? This way you could switch on 480 to see the full market, then toggle back to 240 for full-time use.

Furthermore could this be included in the androidinstall.tar's that would include the 240 and 480 kernels along with the app to toggle them?

This sounds like a not all to difficult way of giving 240 users full market access.

Unless I'm totally off this seems like it could happen faster than other ideas on full market support for 240x320 resolution??!?! I should mention I have NO idea what I'm talking about.
[Touch CDMA Android Development] incubus26jc:
haha, sounds nice though, coming from someone who also has no idea what im talking about lol
[Touch CDMA Android Development] jnadke:
Yeah, this would be possible. It could be added as an option to NoMoRootfs, at least until someone can write an apk that does the above.