yashsingh1/xdaforums huggingface dataset:
[Motorola Droid and Milestone General] norsedakotan:
Loaded the latest build and GAPPS tonight. Really looking good. One issue I see is the phone locks up every time I dock it, which is connected via USB to my PC for charging. Have had a couple random reboots. But still runs very smoothly for an alpha!
[Motorola Droid and Milestone General] crzayalex:
Market works fine, but my calendar still shows nothing on the calendars to sync/calendars to display screen. did I do something wrong during the flashing process?
[Motorola Droid and Milestone General] kfazz:
calendar might have to be moved to /system too, it needs some permissions that aren't being granted. i'll look into it.
[Motorola Droid and Milestone General] nmiltner:
Amazing work on this! Can't believe the OG refuses to die. Once in call audio is working, I'll be giving this another go.

I'd love to help out, but really don't even know where to start.
[Motorola Droid and Milestone General] DroidAddict101:
Was about to say exactly what he said. Haha. This is amazing. Seriously
[Motorola Droid and Milestone General] voidedsoul:
First let me same awesome work man :) this is running faster that GB ever ran on my phone. With that said I've installed what you have listed as the latest build in the op, but I'm still having radio issues. If I reboot my phone I lose signal and it will not come back on. It says airplane mode is on so I turn it off and it still doesn't come back on. If I try to make a call it says please turn airplane mode off. I can get it to come back on by using the radiooptions 1 command in TU.
[Motorola Droid and Milestone General] metalspring:
i did notice that in your most recent build and gapps the calendar.apk and calendarprovider.apk is in /system but the gapps install the calendarprovider.apk to /data...i havent flashed it yet but do the gapps uninstall the calendarprovider.apk in /system or do they just install a second copy to /data? and if it does move it to /data would having the calendarprovider.apk in /data and the calendar.apk in /system make it not work? or if it doesnt move the calendarprovider.apk would having a copy in /system and /data do that?

btw would this be a temporary fix or would calendarprovider.apk need to be installed to /system natively?

mv /data/app/CalendarProvider.apk /system/app

fix_permissions

i also noticed the GoogleCalendarSyncAdapter.apk is missing...does ics not need this or could this also be the problem?
[Motorola Droid and Milestone General] Ozzie12:
cm may have given up on this phone, but look at how many hits this thread has gotten...this phone isn't going away for a while. My phone runs better than it did with GB too...it even feels like a new phone to me with this OS. That is really saying something.

A number of issues here as well, but it is progressing nicely.

I'll be looking forward to the day this can be used as a daily driver.

And...when I hook up with work again I'll be buying some beer...:D

The least we can do is show some support.
[Motorola Droid and Milestone General] kfazz:
airplane on _> airplane off _> radio turns back on by itself

then i made a call, radio died

i guess it needs some more work.

i've freed up 10mbs of space in system by removing more translations and layouts, moved more gapps back to system.

i'm unsure about /data and /system multiple copies, i think the PackageManager just goes with whatever it saw first, unless one is newer. updates to system apps like market live in data

i'm not sure about the calendar stuff, i've never used it, but i'll try creating some events and test it
[Motorola Droid and Milestone General] metalspring:
moving the CalendarProvider.apk to /system solved the sign in issue but i think its still missing the GoogleCalendarSyncAdapter.apk because it doesnt show the sync calendar option in settings and fails to sync...you cant even add a new account to the calendar

edit- actually im not sure if there is a GoogleCalendarSyncAdapter.apk for ics...i took a look at other ics gapps and didnt see any so maybe theres just something else not right?
[Motorola Droid and Milestone General] jyrlyn:
I installed the newest build with the newest gapps from the OP just now, and I can't install anything from the market (reports an error -101) and signal loss is happening again on restart. I'm on an A855, so it surprises me that this isn't happening to anyone else. What else can I report to you guys that would be helpful?
[Motorola Droid and Milestone General] DroidAddict101:
I had the same problem with the market
[Motorola Droid and Milestone General] jpsiemer:
Fix Permissions with ROM Manager, reboot phone, after phone reboots goto Manage Apps, select Market, Force Close, clear data, open Market, Market works.
[Motorola Droid and Milestone General] durandgir:
I loaded up the latest build and fixed permissions after I synced my account and rebooted it and I lost service and tried every trick to get it back with none of them working
[Motorola Droid and Milestone General] kfazz:
between builds i recommending wiping data, cache and system.
[Motorola Droid and Milestone General] Ozzie12:
That's pretty much what happened to me too...he still has a ways to go before it's usable.

It's awesome to see this coming about...wish I knew enough under the hood stuff to help out.

---------- Post added at 02:48 PM ---------- Previous post was at 02:41 PM ----------

Hehe...the way things are moving around it may be a bit before we can install without wiping and starting fresh. The the price we pay for running alpha's...

I don't mind though...plenty fun to see this moving forward...:D
[Motorola Droid and Milestone General] jyrlyn:
My issues were on a clean install after a full wipe of everything in Clockwork. The permission fix worked for the market, and (after the reboot) radiooptions 1 brought service back long enough for me to install google voice. Service then stopped again and radiooptions did not bring it back, before or after another reboot.
[Motorola Droid and Milestone General] SupremeFoams1917:
kfazz's latest build is running smoothly on the OG Droid. As the last issues states, the cons about the alpha build is here:

Camera doesn't work

Market won't let you download anything

No service (states as T-CDMA 64)

2.2 Froyo music app (outdated)

EXTREMELY slow with the 1st boot, reboots after that last only 30 seconds

Won't let you boot into Clockword Recovery

Overall, very well made alpha build. Can't wait until the offical release comes.
[Motorola Droid and Milestone General] norsedakotan:
I can install from market and boot into recovery... I'm also only using mine on Wifi.
[Motorola Droid and Milestone General] durandgir:
But I did wipe. I wiped everything in RZR with wipe all 3 times then i wiped everything else one by one
[Motorola Droid and Milestone General] SupremeFoams1917:
All I had to do was hold the power button down, click Reboot, and it gives me the option to reboot, recovery, and bootloader. Now I need to know how to get into the market. I'm relatively new to this, since getting my OG Droid as an inheritent gift from my dad, and I'm using it as a WiFi device, so I don't really care if there is no service right now.
[Motorola Droid and Milestone General] imanol01:
camera!!!!!!!

ICS Camera Driver Overview

The driver seems to be very generic to most Qualcomm SoCs, so either approach should work for many other devices.

New Driver

See CameraHal_Module.cpp from the ICS source code to see what functions needs to be implemented. It needs to be placed in /system/lib/hw/camera.<target_name_in_build.prop>.so and have the struct "camera_module_t HAL_MODULE_INFO_SYM" inside the code, which the HAL looks for before loading. Once it is loaded, you must implement a few dozen functions to get it to work.

Old Driver

The old drivers primary interface with Android is through libcamera. This loads liboemcamera, which sends commands to the camera kernel driver and the Snapdragon DSP. Liboemcamera is a propriatary library with no documentation apart from the source for QualcommCameraHardware.cpp (which compiles to libcamera.so). The actual Linux kernel module is just a simple I2C bridge to control the camera, and provides no real interface.

Current code/skeleton driver available:

http://xdaforums.com/showpost.php?p=20281617&postcount=17

i love ics and i need cameraaaa :o
[Motorola Droid and Milestone General] rixter13:
@kfazz I am not sure this can be done, but can you increase the size of /system and reduce the size of /data? Also, (as many of us would like to know) where is a good place to start with using your code and making tweaks and rolling our own roms? Got some links for us newbies?

Also, for the people with the radio drops, I can get the radio back almost every time with

$ su
# radiooptions 5
# radiooptions 1
# radiooptions 0

provided I don't TOUCH the airplane mode button. If I hit it, it takes a reboot to get back the radio.
[Motorola Droid and Milestone General] SupremeFoams1917:
After playing around with the latest build of ICS, the menu kept force closing and the only thing working now is the Google Music app I got before the Market went on the fritz. I don't know how to go into recovery mode. Please help.
[Motorola Droid and Milestone General] metalspring:
as far as i know yes it can be done but NO you dont want to lol...it would require re-partitioning the internal memory and would make it very very hard to recover and would also probably require a ton of extra work in order it to even work

---------- Post added at 07:14 PM ---------- Previous post was at 07:11 PM ----------

1) hold the power button until the menu drops down, then select reboot, then recovery

or

2) in terminal emulator or adb type in

su

reboot recovery

3) pull the battery and put it back in and hold the x button on the slide out keyboard while the phone powers on until the recovery menu comes up
[Motorola Droid and Milestone General] jyrlyn:
Interestingly, fixing permissions on my market with ROM manager worked, but adding a new google account caused the same -101 error to reoccur for that account only. Switching to the original account without even leaving the market session reverted it back to a functional state, so the error is clearly tied to the account permissions.
[Motorola Droid and Milestone General] rixter13:
With that being said, its just about as easy to flash the rom, reboot, add your accounts, reboot to recovery, flash the gapps, reboot and boom everything works. (if not, after the first step, do gapps, then follow the rest, reflashing gapps)
[Motorola Droid and Milestone General] Ace42:
Does this phone have an eMMC chip or MTD?

If it has MTD then there's a MTD partition script that changes the partitions through recovery; could it be modded for moto phones? As of now it's mostly for HTC devices, but I'm sure others can port it too.
[Motorola Droid and Milestone General] kfazz:
here's a new gapps to test

http://www.mediafire.com/?8mta2daw4c7den5

with this calendars are working for me, it shows my contacts birthdays and US holidays
[Motorola Droid and Milestone General] kfazz:
it's mtd.

http://blog.opticaldelusion.org/2010/05/introduction-to-droid-hacking.html

the boot.img, recovery.img and cdt would all have to be in sync, and it would make flashing back to stock or CM7 difficult
[Motorola Droid and Milestone General] metalspring:
someone should make this into an mp3 or an ogg file and edit it so its from 1:48 to 2:00 and it should be the default ringtone for this rom ;)

http://youtu.be/2JfMCBh1sJQ

btw ignore the bad language before and after that part lol

oh and the song the ice cream trucks play (chain hang low, i think) should be the notification ringtone

just a random thought/idea haha
[Motorola Droid and Milestone General] metalspring:
this doesnt work on your currently released build...not enough space in /system and when i tried to uninstall some system apps and ringtones/notifications and reboot and flash the gapps it was stuck with no cell signal at all
[Motorola Droid and Milestone General] crzayalex:
same happened to me.
[Motorola Droid and Milestone General] metalspring:
how about this idea then- would it be possible to make an ext3 (or ext4) partition on the sdcard act as part of /system?

btw, what is up with ics being so amazing at mobile data? speedtest.net is saying 2mb/s dl consistently and i can steam youtube in hq seemlessly, not to mention the amazing web browser...if you can get the phone working and maybe the camera this will DEFINITELY be my daily driver rom :D

also to anyone interested in real overclocking try out deprimed kernel from droidforums, its really the only one above 1GHz that doesnt heat up like crazy for me on this rom (although i dont think init.d scripts work on this so you have to use script manager to run the 20overclock file with that kernel)
[Motorola Droid and Milestone General] jyrlyn:
After a scrub clean in clockwork, the new gapps installs for me with the 12/28 build. Confirming that the calendar syncs just fine. This build, however, doesn't have the market stock (even though vending.apk is in system), skips the lockscreen, and broke my home button. These could all be related to the size of the pak, i suppose. But the point is, calendar works!
[Motorola Droid and Milestone General] metalspring:
type in df /system as superuser (su) in terminal and see how much free space there is left (M= megabytes, K= kilobytes btw lol)
[Motorola Droid and Milestone General] jyrlyn:
140M/140M used, 40K free...not a lot of wiggle room.
[Motorola Droid and Milestone General] metalspring:
that means it couldnt install properly because of lack of space which is why you had weird issues, thats what happened to me too...

on a side note i think i might have discovered how to fix the signal issues...i used the gapps on the op rather than the ones just posted (i dont use the calendar anyway) and cleared up enough space in /system to move all the gapps i actually wanted/used and now i dont lose signal after a reboot (i cant be 100% sure thats what did it though because i did all kinds of little tweaks here and there but it seems like moving all the gapps is what fixed it?)
[Motorola Droid and Milestone General] durandgir:
These gapps keeps getting bigger, but I mean I have used roms that where up in the 100mb size, like MIUI and the latest Simply Stunning, but then again the gapps didn't take up so much system space
[Motorola Droid and Milestone General] jyrlyn:
I tried to mess around with the gapps zip before, but it wouldn't even let me flash it after rezipping it. What process do you use to build those files?
[Motorola Droid and Milestone General] metalspring:
try this...

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

watch the video on it
[Motorola Droid and Milestone General] kfazz:
i use archive manager in ubuntu to edit the zips as they are, i found extracting and recreating them fails.

GPS, radio, and audio problems seem to be inter-related.

something to do with RDS socket, and service loading order.

at one point i got in call audio to work, but i can't seem to get it going again. perhaps it's audio policy related, trying with more debugging.

also, my latest builds broke youtube again.

to free up 5mb in system, remove res/*sw600dp* from Launcher2.apk

sw is smallest width, and ours is 480 so those resources never get used anyhow.

not sure why aapt is including them.
[Motorola Droid and Milestone General] metalspring:
odd, i get in call audio all the time...i think there was 1 time i didnt. the problem i run into is cell signal dropping out completely until a reboot. it happens like 5-10 seconds into trying to make a call and it doesnt even always drop the call right away, i just cant do anything. for example calling my voicemail i get the audio just fine but as soon as i try to put in my pin number it shows no signal but the audio keeps going but i cant input any numbers or even end the call

edit:

btw do you mean drawable-sw600dp-hdpi, layout-sw600dp-port, layout-sw600dp-land, layout-sw600dp, or drawable-sw600dp-nodpi? or all of them?
[Motorola Droid and Milestone General] kfazz:
that's interesting. I can end the calls fine, and i keep signal, but when i did get in call audio, that was what happened. any chance you can get a logcat of this happening? and a logcat -b radio?

do you know what baseband version you're running? mine is

BASEBAND_VERSION C_01.43.01P

http://pastebin.com/ezggad8h some interesting things from logcat

all of them.
[Motorola Droid and Milestone General] metalspring:
i know im running C_01.41.00R but im pretty sure it also did that when i used the C_01.43.01P too...although i was running a few scripts and tweaks, not to mention a different kernel...

ok, i figured out what did it, it was zepplinrox 3g turbocharger script and i'll put up what the logcat says after i figure out how to use it without it running continously
[Motorola Droid and Milestone General] kfazz:
you can do adb logcat > file

and then Ctrl C to stop it

for me deleteing /system/lib/libaudiopolicy.so makes radio work across reboots, tested 10 reboots, with and without gapps.. of course this breaks sound.
[Motorola Droid and Milestone General] metalspring:
well maybe you can work something with that 3g turbocharger script? if you can find a happy medium between getting call audio but losing the call and keeping the call but not getting audio AND for some reason with that script my radio works every reboot except a hot reboot

and here are the logcats

View attachment logcat.txt

View attachment radio.txt
[Motorola Droid and Milestone General] darkhole:
For those asking for Android 4 (ICS) in Motorola Milestone (A853) check this!!

http://xdaforums.com/showthread.php?t=1310375&page=16

Maybe in a few weeks we'll have one booting room!
[Motorola Droid and Milestone General] ubermetroid:
+1 to this. My Droid 1 is better then my Droid 3 (for now)
[Motorola Droid and Milestone General] kfazz:
the errors the ril is throwing are the same. i looked at the script, none of the values it sets are recognized by the moto ril. weird and weirder.

http://pastebin.com/t514dMMp <ril findings part1

Radio Death happens like this (theory so far):

radio starts up, opens RDS Socket

Audio driver opens RDS socket.

Audio policy and radio crash, Signal 13 broken pipe. (why?)

radio restarts and can't access devices that are still being held by previous instance.
[Motorola Droid and Milestone General] zimpleguy:
Thanks so much for working on this.
[Motorola Droid and Milestone General] metalspring:
i was just thinking...there arent currently any cdma phones running ics yet, are there?
[Motorola Droid and Milestone General] spectrrr:
Samsung Galaxy Nexus runs ICS on Verizon :)
[Motorola Droid and Milestone General] metalspring:
haha, wow i missed checking the obvious one although it helps a lot more to see ics on a phone that didnt have it pre-installed to see exactly what changes were made...i dont think any other cdma phones have a full ics rom yet though...

although i saw one for the bionic where cell radio works for calling
[Motorola Droid and Milestone General] Ozzie12:
Someone at DF has an ICS theme for Pete's 19. You can turn the launcher on by hitting the icon...I know, it's a theme, but could anything be gleened from it?

Or maybe a little chat with brgroover? Looks like he made a call with his...

http://xdaforums.com/showpost.php?p=20836354&postcount=151
[Motorola Droid and Milestone General] metalspring:
im no real developer but i dont think you can get much from that theme...the whole problem of porting different android versions (especially largely revised ones like ics) is the difference in the basic coding, whereas themes usually deal with xml files and a few framework files and image files...

i hope that the milestone and this build can work together to get different issues fixed, since they are basically the same phone, however i dont know if the radio ril files/settings would be the same at all since the one big difference is the radio type (droid= CDMA, milestone=GSM)

being a developer must be quite frustrating at times like this lol...lets just all start bugging google/verizon to just go ahead and push out an official update for us lol
[Motorola Droid and Milestone General] metalspring:
not sure if this'll help (probably not? It seems like too simple of a fix here lol) but this is how the dev working on the bionic got the phone to make calls

so are you trying to build/modify those files yourself or are you doing that same thing?
[Motorola Droid and Milestone General] Ozzie12:
...the same principle as metamorphs...let the current os build the parts. Good suggestoon.
[Motorola Droid and Milestone General] kfazz:
i'm lettings ics compile everything i have source for, i'm using proprietary libaudio, libmoto-ril, libril-rds.

edit: getting function prototypes from a .so file:

arm-eabi-nm -CDg --defined-only vendor/motorola/sholes/proprietary/libaudio.so > audio_funcs
[Motorola Droid and Milestone General] metalspring:
hmm, oh well maybe the work on the milestone or some other moto phone will help and hopefully the new year brings some new discoveries on getting everything working

and happy new year to you and to everyone here

btw i really wanted to get into development but seeing your posts just makes me realize how far i really am from it, the most i can do are just some command line scripts (probably a little more than the average rooted person that likes tweaking roms, i even have my own special tweaks/scripts thread on droid forums lol)...do you know of any good places to really learn more about developing roms and just general linux/android know how?
[Motorola Droid and Milestone General] metalspring:
Btw i had one quick question you may or may not be able to answer...is it at all possible to port the stock ics browser to gingerbread roms? i love the speed and look of it so much its one of the big reasons im so eager to see your ics rom fully working (or at the very least making/receiving phone calls to work) but obviously without the phone radio working it cant really be a daily driver for me yet so im stuck on gingerbread
[Motorola Droid and Milestone General] kfazz:
it's probably possible, perhaps not easy though. i'll take a look tomorrow. it'd lose the hardware acceleration, but that's off in my builds anyway and it's still really fast
[Motorola Droid and Milestone General] aptx4869hhxx:
The ROM very makes me excited, I'm looking forward to your new ROM, thanks！
[Motorola Droid and Milestone General] jyrlyn:
I thought that I could be very clever and use voice chat in gtalk as an alternative to phone calls in a pinch, but initiating voice fcs talk. I don't know how to log the errors. Might be related, might be some other dumb bug.
[Motorola Droid and Milestone General] kfazz:
I tried google voice; it failed at 'verifying phone number' I'm going to try building rild and librilreference from gingerbread; and possibly audioflinger.

Also happy new year everyone and thanks for the donations!
[Motorola Droid and Milestone General] kfazz:
I learned by trial and error, reading source, googling things. There're lots of dev tuts out there, don't give up.
[Motorola Droid and Milestone General] jyrlyn:
Odd...my voice works just fine. I downloaded it from the market and pulled the apk with root explorer, and have 7zipped it into the gapps pak ever since. I can listen to my vms and texts all show up fine.
[Motorola Droid and Milestone General] kabaldan:
kfazz: for the correct hw keyboard lid state detection (to hide sw keyboard when you open the hw kb) see this: https://github.com/nadlabak/android_frameworks_base/commit/6f82046b9966f873d199bd85654edd529191cec3
[Motorola Droid and Milestone General] metalspring:
hardware acceleration is off? wow, i thought it was on because it runs so smoothly already. If you get the hardware acceleration working then it should definitely be pretty stable and fast

i was wondering if the T-CDMA or whatever it says for network instead of verizon is related to the ril/phone calling issues?

I did notice at one point my keyboard did light up when sliding it out but immediately turned right back off though