OK, thanks, I'll whip something up tonight and gerrit it.Code:float elevation; /** Azimuth of SV in degrees. */ float azimuth; #ifdef EXYNOS4210_ENHANCEMENTS /** Unknown field in Samsung I9100 libgps May be an indicator for constellation type (GPS, GLONASS, Galileo)? */ int samsung_broke_this; #endif } GpsSvInfo;
EXYNOS4210_ENHANCEMENTS is a global cflag we're using for all kind of galaxys2, att and galaxynote hacks since they're all identical.
https://github.com/CyanogenMod/android_device_samsung_galaxys2/blob/ics/BoardConfig.mk#L32
Since it's a header file and you dunno who includes it, we have to use a global flag.
Use the exynos one or create a new, more specific one.
BOARD_USES_SAMSUNG_GPS or something like this.
I think I may go with BOARD_USES_SAMSUNG_GPS - I'm fairly certain other Samsung devices have this enhancement, including the Qualcomm abominations. I need to dig up some info, but I think this most likely was put in here for I9100 to allow framework compatibility with the Note and Skyrocket - http://xdaforums.com/showthread.php?p=19474107#post19474107
So there's a good chance that once he unbricks his Note, xplodwild might actually see numbers other than zero for the new field if he put in some logging code to print it for each sat in... I forget the file at the moment, I'll pull it up tonight.
I somewhat disagree on sourcecode = documentation - it saves a lot of time for a new contributor to have at least some high-level architecture documentation (Android itself might have this, although tbh the documentation on how the source is organized is a bit of a pain. Figuring things out often involves long grep runs across the whole tree to find something. )