yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Signfang:
I know you are impatient(me either)

But I think OP knows what is wrong about his work, why don't we just calm down a little bit and waiting.
[Nexus One Android Development] j00m:
Another bug: can't install app from market. It said download error
[Nexus One Android Development] blunden:
How about reading the first and second posts of the thread? The fix is already mentioned.
[Nexus One Android Development] klausdieter79:
Can't find these options in the settings. Where did you find it?
[Nexus One Android Development] supperbas:
You can find them in settings -> development options -> near the bottom (two fields with animation and transition)

//edit

Anyone else has issues with syncing their calendars? it looks like the calendar.sync is missing
[Nexus One Android Development] heroid007:
+1 supperbas! I am having the same problem, I installed gapps and reinstalled couple of times :)
[Nexus One Android Development] Vadimus_ca:
WiFi does not work.

Neither WiFi icon nor WiFi settings are present regardless of WiFi state.
[Nexus One Android Development] heroid007:
I really think you should wipe and do a fresh install. There is no wifi issue what so ever except that the signal strength isn't rendered!
[Nexus One Android Development] jspidey:
WiFi DOES work, it's just the icon that is not updating properly as the author states in the first post in the "Does not work" section - "Wifi Signal Strengh Icon in Status Bar."

I had that issue on Alpha7 but it worked just fine for me on Alpha8. The author does offer a suggestion on the front page for this.

I would have run with ICS today but I had some random reboots so I went back to CM7 for now.

The only issues I have, which I'm sure the author is aware of are

- HW Acceleration (for obvious reasons)

- Camera/screenshot/USB mass storage (I'm sure these are all related to the fact that it is not writing to the SD card but it looks like it was fixed with a new boot.img posted earlier in the post)

-Calendar - it recognizes my Gmail account (as in, I cannot re-add it) but it does not Sync anything. Matter of fact, when I go to the Manage Accounts section it shows options for syncing Gmail, G+ and a couple others, but no calendar option is listed.

Keep up the good work!
[Nexus One Android Development] bluedragon1982:
I just tries the new boot.img it seems now native screenshot seem to be disabled also flashed 5.08 radio noticed no network change to 5.12 havw still to manual select my mobile network.
[Nexus One Android Development] papubhai:
hey texasice i was just wondering tht i totally agree wid u abt waiting for other devs to fix HW acc.

what i want to ask is that what is the estimated ETA for other things like camera, trackball etc?

TIA
[Nexus One Android Development] baseballfanz:
Shouldn't ask for ETA.;)
[Nexus One Android Development] texasice:
Alpha9 available in new thread: http://xdaforums.com/showthread.php?t=1366897
[Nexus One Android Development] papubhai:
I was not actually asking about ETA.... well i think i was.... so much excited :)

But i just wanted to have an idea if camera and trackball working is relatively easier than HW acc or not?
[Nexus One Android Development] texasice:
stop posting here
[Nexus One Android Development] imfloflo:
@texasice Should i close this topic ?
[Nexus One Android Development] texasice:
Yes please. Thanks imfloflo
[Nexus One Android Development] danarama:
This is very interesting. I don't have an n1 (htc desire) and wonder, how did you get this far? What did you do about the kernel etc?
[Nexus One Android Development] island3r:
https://groups.google.com/group/android-building/browse_thread/thread/fd9c118d42630a11#

No word about drivers though.
[Nexus One Android Development] texasice:
Updated OP with a link!
[Nexus One Android Development] danarama:
That's great news, thanks
[Nexus One Android Development] babijoee:
You should also add that you got bluetooth working in the first post :D
[Nexus One Android Development] texasice:
Updated OP with my sources.
[Nexus One Android Development] babijoee:
I'll see if i can help you out

Edit: Gave my development laptop to my younger brother so now i have to set up vm on my pc

@texasace: have you looked at hw acceleration yet? or 3d?
[Nexus One Android Development] danarama:
Pressed thanks, didn't mean to.

Surely hardware acceleration comes last?
[Nexus One Android Development] texasice:
I have not. I don't really have any knowledge of that stuff. It doesn't run half bad right now. Not too much lag. If we can get audio, wifi, 3g issues sorted out it would be very usable.
[Nexus One Android Development] DJ_Jedi:
Yep, the main problem of SDK port was not the lacks of hw acceleration but the SDK base, btw i think we can work closely since Desire and N1 share the same hardware so if i can get something to work it will help you too and viceversa.
[Nexus One Android Development] danarama:
Slightly off topic as we are talking Desire, but I was thinking the same thing. I have limited availability to my build env at the moment. I was hoping to get the sources to this stage for the desire and post a thread similar in desire section.

At the moment, I am having issues with the AudioFliger and MediaPlayer parts though so not done a full complile yet. I'll resync the original /frameworks back over the weekend and try again.
[Nexus One Android Development] texasice:
Update on libaudio: builds but doesn't work see OP.
[Nexus One Android Development] babijoee:
sigh just read that should be running on ubuntu 10.04 and not 11.10...
[Nexus One Android Development] DJ_Jedi:
Ok, i red the OP and tring to figure out the problem (as i said i cant really work on sources now, so i have to try to help you without building directly). Can you please contact me in PM and explain a bit more? Or maybe later (it's about 4.38AM here, i just wanted to have some water and now i'm sitting in the kitchen writing here with the phone lol) we can have a chat in the IRC channel you can find me at #ics_desire_port @freenode (just search freenode on Google and you'll find the webchat) at about 8.30/9 pacific, let me know via PM.

Hope to hear you soon ;)
[Nexus One Android Development] roadhead:
Is there a repo for others to tinker with or is this device overlay currently a 1 man effort?
[Nexus One Android Development] texasice:
Yea I had to set up a chroot with Natty (11.04) before it would build.
[Nexus One Android Development] davelis828:
could you please tell us or point us to a tutorial that explains? :o
[Nexus One Android Development] texasice:
Yea here's one that I wrote

Heres my logcat error if anyone knows what it means:

I/SystemServer( 152): Audio Service
E/AudioFlinger( 78): createTrack_l() Bad parameter: sampleRate 44100 format 1, channelMask 0x00000001 "for output 0x103b0 with format 1
E/AudioTrack( 152): AudioFlinger could not create track, status: -22
E/SoundPool( 152): Error creating AudioTrack
E/AudioFlinger( 78): createTrack_l() Bad parameter: sampleRate 44100 format 1, channelMask 0x00000001 "for output 0x103b0 with format 1
E/AudioTrack( 152): AudioFlinger could not create track, status: -22

repeat

Another logcat

I did adb logcat | grep Network

http://logcat.miui.us/506018

Here's one with logcat -b radio

http://logcat.miui.us/500034
[Nexus One Android Development] texasice:
Presenting WORKING wifi! see OP
[Nexus One Android Development] fabler:
Wow.. That's amazing.. Thanks a lot. :)
[Nexus One Android Development] yumcax:
Flashable .zip?

This is great, how hard would it be to create a flashable .zip file to install from?
[Nexus One Android Development] drive2droad:
I am installing in 3 .. 2 ... 1 ....
[Nexus One Android Development] FrAsErTaG:
not very, but why should the OP bother while he is just releasing alpha work?

fastboot is easy to use...
[Nexus One Android Development] pconwell:
I know you're busy, but...

Can you clean up your first post instead of just mangling edits all over the place. I'm trying to keep up with what you are doing, but it's just a hodge podge of edits. Something like:

Working:
Wifi
MMS
Bluetooth
TouchScreen

Not working:
3g (severe connect/disconnect issues)
Audio
Home button
Trackball
Camera
GPS

Near the top would be awesome.

Thanks.
[Nexus One Android Development] skitty:
I'm pretty sure drew Garen had the hard home button working in his sdk build. Maybe speak to him or have a sift through his build?

3g also is supposed to work but I never tested it as I could be bothered to enter my apn details
[Nexus One Android Development] lim_ryan:
any irc dev chat? or twitter follow dev? i unable to enter freenote
[Nexus One Android Development] PeRKoniX:
Cool that someone is developing this :D though it's still kinda slow (I hope it will get better?) it would be nice to see that bottom bar gone since N1 already has softbuttons. I know that the android emulator has similar behavior (no on-screen buttons) since the emulator has it's own menu/home/back button. Maybe it is something to look into in the future of this project :)

Nice work! Thanks allot!
[Nexus One Android Development] babijoee:
I have to disagree. having the steps aswell as code encourages others to follow and help others who want to build/fix aosp. great work do far Texas.
[Nexus One Android Development] DaXmax:
Great work texasice! Im waiting for a full ver from u if u successfully port... But libaudio is the problem itself or??
[Nexus One Android Development] texasice:
DJ_Jedi and I have been investigating. We think the driver is fine but something to do with how audioflinger is handling it.

Get this when I open the phone app and press the 2 button (as a test)

createTrack_l() Bad parameter: sampleRate 44100 format 1, channelMask 0x00000001 "for output 0x103b0 with format 1
AudioFlinger could not create track, status: -22
Error creating AudioTrack
createTrack_l() Bad parameter: sampleRate 44100 format 1, channelMask 0x00000001 "for output 0x103b0 with format 1
AudioFlinger could not create track, status: -22
AudioTrack->initCheck failed
ToneGenerator init failed
Exception caught while creating local tone generator: java.lang.RuntimeException: Init failed
playTone: mToneGenerator == null, tone: 2

Changed the audioflinger source for more detail

[ 11-19 06:20:47.159 78:0x242 E/AudioFlinger ]
createTrack_l() Bad parameter: sampleRate 44100 m 44100 format 1 m 1, channelMask 0x00000001 " m 0x00000003 for output 0x103a8 with format 1

So it is either channelMask or mChannelMask

And we're stuck here right now.
[Nexus One Android Development] davelis828:
thanx fella!
[Nexus One Android Development] DaXmax:
This logcat is somehow similar to my fellas at Optimus One while porting ICS.... One of the users manage to get the audio working but....
[Nexus One Android Development] Chaosz-X:
Yes, we Desire-people get that error too :(

We tried to insert these files: http://recluster.net/ics4bravo/alllibs.zip

But it didn't work, but it seems we're having the exact same issue. Do any of you people here have an idea how to fix it? ;p
[Nexus One Android Development] HairyMerkin:
I wish someone would post an update.zip. I have no access to a linux box to compile!
[Nexus One Android Development] babijoee:
Okay i'm going to install 10.04..

11.10 sucks bad and re-download the source.
[Nexus One Android Development] twistedddx:
In one version of code I just skim read on CodeAurora, maybe not 4.0 code?:

channelCount is suppose to be an int.

If you do createTrack with channelCount set as 0 it will just set it to 2.

1 will be mono, 2 for stereo, all other values are invalid and will throw BAD_VALUE aka -EINVAL aka -22.

In theory 0x00000001 is valid(hopefully it's not being converted to a text string or something?!) but I saw a 0x00000003 also in your logs which would be invalid.

It can throw BAD_VALUE for more things than just setting a channelCount above 2.

I would start by proving you are REALLY setting channelCount as either 0, 1 or 2 and NOTHING else.

Edit: From other code i Just read on gitorious, is this 4.0 code?:

The only place I can find the same error output is in:

http://www.gitorious.org/0xdroid/fr...4a39b09278/libs/audioflinger/AudioFlinger.cpp

if (sampleRate != mSampleRate || format != mFormat || channelCount != mChannelCount) {

LOGE("createTrack_l() Bad parameter: sampleRate %d format %d, channelCount %d for output %p",

sampleRate, format, channelCount, mOutput);

lStatus = BAD_VALUE;

goto Exit;

}

I assume:

createTrack_l() Bad parameter: sampleRate 44100 m 44100 format 1 m 1, channelMask 0x00000001 " m 0x00000003 for output 0x103a8 with format 1

Is where you also printed the mChannelCount which was 0x00000003, but channelCount was at 0x00000001 and because they are not equal it throws the error.

Sounds like an AudioTrack object was created with mchannelCount as 3 instead of 1, then moments later you have channelCount as 1 and the code fails.

Why was the AudioTrack created with mchannelCount 3? I think if its created with no params it creates it as CHANNEL_OUT_STEREO

CHANNEL_OUT_STEREO = (CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT),

CHANNEL_OUT_FRONT_LEFT = 0x4,

CHANNEL_OUT_FRONT_RIGHT = 0x8,

Which leads to 0x00001100 which is kind of close to, but entirely not, 0x00000011 which in hex would read 0x000003 :p

So well I have no great ideas where the problem stems from. Track down when the AudioTrack gets created, if you are setting it up with or without params. If without it'll set as stereo unless you later go back to re-set the channelCount correctly to your desired 1.
[Nexus One Android Development] JieeHD:
AudioStreamOut* AudioHardware::openOutputStream(
uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status)
{
{ // scope for the lock
android::Mutex::Autolock lock(mLock);

// only one output stream allowed
if (mOutput) {
if (status) {
*status = INVALID_OPERATION;
} else {
LOGD("Output stream already exists, using existing channels and format");
*status = NO_ERROR;
}
}
return mOutput;
}

// create new output stream
AudioStreamOutMSM72xx* out = new AudioStreamOutMSM72xx();
status_t lStatus = out->set(this, devices, format, channels, sampleRate);
if (status) {
*status = lStatus;
}
if (lStatus == NO_ERROR) {
mOutput = out;
} else {
delete out;
}
}
return mOutput;
}

Hoping this should fix audio issues, will try it when I have time.
[Nexus One Android Development] crazybyte:
In this code you're not relasing the mutex... i think that we have to relase it before return...
[Nexus One Android Development] texasice:
Can you elaborate. With JieeHD code sound still does not work
[Nexus One Android Development] crazybyte:
I cant write any line of code because i doesn't know where to find info about the NDK api, in android. But if in some pice of code we do a lock(mutex&) it's mandatory to do a relase(mutex&). Otherwise it will make a deadlock...

In other topic we saw that someone found the 3.0 android source. It's good idea to check the code associated to the non working parts and see the difference with the CM7 kernel.
[Nexus One Android Development] toes2:
No. android::Mutex::Autolock automatically releases when it goes out of scope.
[Nexus One Android Development] crazybyte:
Thanks for the info, where did you read this? i would love to know more about the NDK Android api....
[Nexus One Android Development] toes2:
It's a pretty common technique. If you google Mutex::Autolock you'll find plenty of examples and discussion including in Android.
[Nexus One Android Development] texasice:
Uploaded Alpha2 as flashable zip
[Nexus One Android Development] DaXmax:
I heard from HD2, they are having fully working ICS??
[Nexus One Android Development] texasice:
I don't know how they did that. The desire (bravo) guys seem to be having more luck than me as well getting things working.
[Nexus One Android Development] DaXmax:
:(:(:( Nevermind, we will still can get a good port, we just have to wait...:D:D:o:o
[Nexus One Android Development] johnston9234:
You are doing a great job man. This is well on it's way to being a daily rom :)
[Nexus One Android Development] lilchicano:
its coming along amazing you guys, i really wish i knew what to do like you guys, but my knowledge isnt as much as that yet =(

all i could do for you guys is just be a test dummy and help out any way i could. but i really do believe you guys will get our N1s a fully working ICS port =)

edit: just tried to install the alpha2 and it goes straight into fastboot for me.

the steps i took to install was booting into recovery, did a backup, used a format.zip file, and then the flashable zip file in the OP, then rebooted.

i even tried not using the format.zip file and just used the wipe built in the recovery and same results occured. phone info on my sig
[Nexus One Android Development] craigacgomez:
@texasice... well, you are doing a fantastic job with the N1... and no one is going to say otherwise!! kudos!!
[Nexus One Android Development] babijoee:
Hey texasace, in the first post you mention that Accelerometer (rotation) isn't working but its working for me. Well in terms of rotation the screen from portrait to landscape.
[Nexus One Android Development] johnston9234:
I think he means like steering in a racing game.
[Nexus One Android Development] poexone:
Successfully flashed. Wifi doesn't work for me. Landscape doesn't either. Scrolling across homescreens are very slow as well. Menus and app draw are smooth as butter though.

Keep up the good work.
[Nexus One Android Development] ricky9237:
Flashed it with clockwork recovery. It works.

-Wifi does not work. Keep searching WIFI signal but not on at all. Wifi works after flashing with GB kernel.

-Cell (Tmobile) signal detected only manually. Can call in and out.

-3G and 2G data do not work (not stable, showing on/off).

-Accelerometer works. Can switch between landscape and portrait automatically.

-Gallery works but not fully. Whole picture preview does not show up but can see the picture using pinch to zoom.

-Music app works but one song is louder than the other one. Strange.

-Multitouch works as described in gallery.

-Soft buttons works but home button does not work.

-Bluetooth works. Can hear ringtone but the mic does not work with my headset.

Overall, great job. Thanks everyone for working on the ICS.

Can't wait to see a fully functional rom.
[Nexus One Android Development] atoyu:
will N1 have hardware acceleration? wait google release or we can use other source code compile ourself??
[Nexus One Android Development] babijoee:
Technically yes it can. There is already someone working on it.
[Nexus One Android Development] yumcax:
Flashing now. Will report back with bugs (edit them in).

EDIT: Stuck in re-boot loop. I'm trying again now after erasing data/cache/dalvik a couple more times, also re-downloading the file if this does not work. Do you think you could put up the MD5 for the file, so we can test and make sure we aren't flashing corrupted ROMs?

EDIT: I see that I am getting a random offset error during flashing. 0xa4. Possible causes?

EDIT: After re-downloading the ROM multiple times, I am still stuck in a boot loop. I guess I'll try again when alpha 3 comes out.
[Nexus One Android Development] dang025:
flashed successfully with CWM.

will report back if I find anything not previously mentioned.
[Nexus One Android Development] dferreira:
The WiFi drivers and the kernel must match otherwise WiFi won't work. I'm guessing you are using the wifi drivers from a GB build, hence it will work with the GB kernel.
[Nexus One Android Development] lolobabes:
nice now on alpha 4, wish I could help but am no programmer... ill try this now ty

by the way how do i flash a system and boot image? ty
[Nexus One Android Development] Domskibus:
Wow!

Nice progress! Will look forward for more details :)
[Nexus One Android Development] papubhai:
This is incredible performance by our DEVs given that it has only been about one week since proper work on N1 was started.

Really looking forward for the release of stable version. just one major milestone left which is HW acceleration.

---------- Post added at 05:32 PM ---------- Previous post was at 05:24 PM ----------

One question though if anyone can answer.

When we will have a full release of N1 rom, what is the estimated size that it will require on NAND storage? and Will it include all features of ICS or would it be a cut down version???

TIA
[Nexus One Android Development] chrs2021:
For me the accelerometer doesn't work either, Also another observation the magnometer isn't working either. I tested with the app GPS status. good news is the gps works well. keep up the good work DEVs
[Nexus One Android Development] skitty:
I flashed the latest version, alpha 4, and I could not get a mobile signal at all. This meant I couldn't test the sound during calls. Weirdly, it new my apn settings, but as I had no signal it didn't help.

seems like a good build. Gapps for ics would be good
[Nexus One Android Development] marlonbr:
AWESOME!!! I will try it when home!
[Nexus One Android Development] addam360:
Looking good. Just a few more things and in my opinion it will be a decent everyday ROM. Needs Gapps, 3g, full audio and camera. Then I'd use it.

Great progress though I can see this being usable by next week.:D

Also, and this is where i get nooby again, I have no idea how to flash in this boot img and system form. Only ever flashed zips. If its not too much trouble could someone please explain this or link me to an explanation?
[Nexus One Android Development] crazybyte:
This is a DEV thread, please if you doesn't know how to flash a .img, please leave it until people that are working on it finish their job.
[Nexus One Android Development] texasice:
No eta on full release. In current status (minimal build) we only have 4mb free space on system partiton. If we want to keep our current bootloaders a lot of things will need to be removed if were going to fit gapps on there. I've still been looking into audio. I have no experience with it so having to learn how it all works. :)
[Nexus One Android Development] crazybyte:
Tonight i will download ics asop and i will start to check the mismatches with the CM7 source.
[Nexus One Android Development] Menelkir:
I think 4Mb is enough, since cm7 left 3,6Mb (with gapps). I think if something get moved from /system (/system/media for example) to /data, we'll get plenty of space to an AOSP.
[Nexus One Android Development] DaXmax:
Or the only solution is resizing iur NAND??
[Nexus One Android Development] yumcax:
I'll flash alpha4 (or 5 if it is out) when I get home. In the mean time, can I suggest that you move download links, possibly excluding the current version, down to the changelog? That would clear up the post and put working/not working front and center.

Great work! Keep it up!
[Nexus One Android Development] MartinodF:
The first thing to go should be the 4.8MB VideoEditor.apk

Nice, but really not strictly necessary :D
[Nexus One Android Development] yumcax:
Check the changelog for alpha5 (not out yet), that apk and a couple others have been removed, Gapps added.
[Nexus One Android Development] rickh925:
As a huge fan of DT A2SD, would an approach like that work for shoe horning ICS onto the internal RAM on the N1? Can we symlink anything to the SD card and free up space?

I know that this would move the ICS build on the N1 out of the reach of many users, but realistically, if someone is going to run ICS on the N1, at least for now, they are looking for a bleeding edge project. :)
[Nexus One Android Development] MartinodF:
Nice! I'll flash it as soon as it's up.

I would really like to help but I'm just an app/web developer and I haven't compiled Android from scratch previously.. I guess I wouldn't be of much help.

Could the orange flashes be related to the strict mode development setting? IIRC it makes the screen flash when apps do too much elaboration on the UI thread. It's for app development purposes.
[Nexus One Android Development] rickh925:
I can't imaging doing video editing on my N1. Now a Samsung Note, hellz yeah! Replace my SandyBridge i7 with 16gig RAM, SSDs, Adobe Premier... Wait a minute, who am I kidding...video editing on a phone? That looks cool, but certainly not necessary. :)