summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* i9300: rewrite libsensors in c++Simon Shields2016-03-0562-6621/+2395
| | | | | | | | * based off t0lte sensors * AkmSensor kanged from i9100 (added sensor status support) * has a working compass! Change-Id: Iaed0463c33089ca0b636be4ba3f966f2e25f34f9
* i9300: power: pegasusq boosting supportSimon Shields2016-03-024-11/+101
| | | | | | implement INTERACTION, LAUNCH_BOOST, and CPU_BOOST hints. Change-Id: Iac8c84ecb910a72a6de4c81a470c9d2d800ff631
* i9300: tweak f2fs configSimon Shields2016-03-021-2/+2
| | | | Change-Id: I48e23ddb012769efce1251716763a5b94e51a5d8
* i9300: lmk configSimon Shields2016-03-021-0/+19
| | | | Change-Id: I5be3949709af51bab502efc7b0a24fb125936165
* i9300: SamsungExynos4RIL: Samsung STK supportPawit Pornkitprasan2016-03-011-0/+18
| | | | Change-Id: I1915332e8d6917dea2f4e71cb4e84564e7ad9556
* libsensors: update sensor flagsDheeraj CVR2016-02-271-5/+5
| | | | Change-Id: Ia57026f4e8f5dd270da7619bc25289fc414bce30
* i9300: refactor processUnsolicited closer to frameworksSimon Shields2016-02-251-11/+18
| | | | | | * easier kanging later on Change-Id: I0217a819187f914e261d4e58d53de3e085b97607
* i9300: kill powerhal logspamSimon Shields2016-02-201-1/+1
| | | | Change-Id: Ie6e9b431ee3f73e799238305676eee5e068b9390
* i9300: don't overwrite powerhal governor settings from initSimon Shields2016-02-201-19/+0
| | | | Change-Id: Id704829e1f65b538e7fd05a599a1159ffe37aeb1
* i9300: initial pegasusq powerhalSimon Shields2016-02-205-0/+574
| | | | | | | | | | | | | | * based off flo * powersave (3 core max/1GHz), balanced (current defaults), and performance (back off on downscaling) * support for separate low power profiles (activated on screen off) PS2: low power + min/max cpu freq support PS3: whitespace fixes PS4: apparently POWER_HINT_LOW_POWER means PROFILES[POWER_SAVE]. Change-Id: I786a9e0e35fcc1dba1510baa13493ecf261bdfcc
* i9300: chown pegasusq cpufreq nodes to system:systemSimon Shields2016-02-201-0/+30
| | | | Change-Id: Iadbeeffcf0db58a0a96f99df596cdb0f32dd589f
* i9300: update proprietary-files and extract-filesSimon Shields2016-02-202-9/+19
| | | | | | extract gps HAL to the expected location Change-Id: I3f391310b416889c8d99107dec53eb276823e5f7
* i9300: fix selinux denialSimon Shields2016-02-181-0/+2
| | | | Change-Id: I3e8a8ca2e35cca22bdd248c1bfe9433f2d8285fb
* i9300: enable f2fs supportSimon Shields2016-02-173-0/+9
| | | | Change-Id: I4405cbf6573e277ac7d2dbcb0014131d9cbbcc9d
* i9300: mqanelements should actually be 4Simon Shields2016-02-151-1/+0
| | | | | | fixes manual network selection Change-Id: I516917a816a202020d41b8621d7ea07464c73f1f
* Move Snap to common treerogersb112016-02-141-2/+1
| | | | Change-Id: I0ffe9a68ebadab7a91866857e1b5dfcf398551ea
* i9300: move macloader and tinyplay sepolicy up to -common [2/2]Simon Shields2016-02-134-19/+0
| | | | Change-Id: I874a9f2f6590755e5815e18bcdc5d1e0cdac4523
* i9300: allow system_server access to mdnie sysfsSimon Shields2016-02-111-0/+3
| | | | | | needed for any mdnie stuff that ends up in cmhw Change-Id: I6efe58e295cae59f074abc4a1fd64258fb5d8188
* i9300: downclock more aggressivelySimon Shields2016-02-021-1/+19
| | | | | | | | | | | previously, pegasusq would keep 3 or 4 cores active with static content on the screen tweak the governor's values so that sometimes we get down to 1 core active with screen on, both by increasing the on/off clock speeds/rq sizes of secondary cores, bumping up_threshold and encouraging faster downclocking. Change-Id: I698bec823312cac7b859ed8d5ac303873fddc7bc
* Revert "i9300: add lmk config"Simon Shields2016-02-011-9/+0
| | | | | | | | * this did not seem to work as well as I'd hoped. This reverts commit dc7601b1fcf97f847e0316b8cac3d886aefcae14. Change-Id: I3041187d8b3aaee46bd09eaa2a9082cf56635b7b
* i9300: add lmk configkeepcalm4442016-01-291-0/+9
| | | | Change-Id: I8736cb90544f5dc5b28ac2a166e99f85ad2eaf04
* i9300: join the snap partySimon Shields2016-01-141-1/+2
| | | | Change-Id: Id397b5a07a3239e87f8be41868401c9f5c788e36
* i9300: ensure we don't build opensource sensorsSimon Shields2015-12-232-1/+5
| | | | | | | currently the compass seems to be really broken, so we'll use the proprietary ones for now Change-Id: I195e0765da7789d38940835d9e8c6eff4e09a900
* i9300: update proprietary filesSimon Shields2015-12-231-2/+3
| | | | Change-Id: I2386805d1fe134109b983c389ffa4208222c6f5a
* i9300: use synchronous setsurfaceSimon Shields2015-12-231-0/+3
| | | | Change-Id: I715cbce3f4387bb557a9ddd2ec23deebc1b1d7ec
* i9300: fix bluetooth denialsSimon Shields2015-12-211-0/+1
| | | | Change-Id: I198c0eafcd6b554c826b3c0814be6955301835e4
* i9300: libsensors: fix possible overflow while setting delayChristian Balster2015-12-182-7/+7
| | | | | | | | Even though we changed the signature of the set_delay() methods, we can still get an overflow while actually writing the values to sysfs. Let's adapt sysfs_value_read() and sysfs_value_write() too. Change-Id: If8eda7204831f0edabec890d4e3127be520fa3bf
* i9300: enable dlmallocSimon Shields2015-12-181-0/+3
| | | | Change-Id: I492e1974e0e1a1c0e70467e30190908909b60451
* i9300: moar selinuxSimon Shields2015-12-181-1/+2
| | | | Change-Id: I6e059f68f4d1c7ef82762443af14a1230b12b2f6
* i9300: remove storage_listSimon Shields2015-12-141-52/+0
| | | | Change-Id: I75ddc2b53e7bcf9e9cc904d549fb72aa8438a238
* i9300: set mQANelements through propertySimon Shields2015-12-142-1/+1
| | | | Change-Id: Iff77015e69e68c87b058d97b04449a508087f33b
* i9300: clean up radio access familiesSimon Shields2015-12-131-1/+1
| | | | Change-Id: I7218ef0bf6ff0630bce24f42b95cf3a9e85c20cf
* i9300: ril-wrapper: fake GET_RADIO_CAPABILITY responseSimon Shields2015-12-131-0/+13
| | | | | | Samsung's RIL doesn't support this, but doesn't error on it either. Change-Id: I5a470c55fecf85183e9c7b4b37aef3b3cbffaf90
* i9300: bring SamsungExynos4RIL inline with frameworksSimon Shields2015-12-131-2/+28
| | | | Change-Id: Id4fb54e855c817ce9460e2583168776c6a9ea612
* i9300: more selinux fixesSimon Shields2015-12-135-0/+15
| | | | Change-Id: Ifa1f39c78c8b4fb96ab3024a4f7cdb3cc9d732bd
* i9300: use sh to run gps_daemon and fix config locationSimon Shields2015-12-112-3/+3
| | | | | | one does not simply exec a shell script Change-Id: I538f28b2ccd80b39fd6e84dedcb2554a215c94ea
* i9300: M sepolicy bringupforkbomb2015-12-1125-49/+162
| | | | | | | | | GPS fixes taken from grouper: https://github.com/CyanogenMod/android_device_asus_grouper/commit/9651b24fb481bf0fc1db3b1d700033cf66eb067e and https://github.com/CyanogenMod/android_device_asus_grouper/commit/f5592571d581478622f0fc3f86fbbddf20cf89c7 Change-Id: I7ec658691c65c3b6c087ee41ba69f2cb37ade525
* i9300: remove CameraWrapperSimon Shields2015-12-102-647/+0
| | | | | | | open source camera is better in every possible way. This also doesn't build anymore. Change-Id: If1048b8df45679adc5bdf357dd13f1b3e6365dcb
* i9300: use responseFailCause on REQUEST_LAST_CALL_FAIL_CAUSESimon Shields2015-12-071-1/+1
| | | | | | fixes phone crashes when the call is disconnected from the other end Change-Id: If6211af2d62ce9a6ee6879b67ae473b9fb9083d2
* i9300: disable ashmem tracking in parcelsforkbomb2015-12-061-0/+1
| | | | | | fixes RIL Change-Id: I9d4b83f245976b7cbb68aca315c54878e51f1356
* i9300: set radio access familiesforkbomb2015-11-271-0/+6
| | | | Change-Id: I139186d5b408779c05827e0d66f21b1071f7dd2c
* i9300: Don't build CameraWrapper if we want open sourceforkbomb2015-11-241-0/+4
| | | | Change-Id: I88a7d92b4831ff61e7507c65db66ccd6d71c81fc
* [WIP] i9300: SELinux M bringupforkbomb2015-11-243-3/+3
| | | | | | | | currently you need to cherry-pick this: http://review.cyanogenmod.org/#/c/120540/ to boot. Change-Id: Ibf6f85db7235a5c09010bcedc57642f91f278d29
* i9300 Grouper GPS blobs SElinux updatemcgi5sr22015-11-2511-12/+32
| | | | Change-Id: I3dbb887bd1356a3198a4b4da5aadf95b64920e55
* i9300: Grouper blobs update for initmcgi5sr22015-11-251-3/+15
| | | | | | | Conflicts: rootdir/init.target.rc Change-Id: I97dd09c7ebbfda242d8e8b3e140a2597c14c36f9
* i9300: GPS modifications for use of Groupers PIE blobs [1/2]mcgi5sr22015-11-252-962/+3
| | | | | | | | | | | | gps.xml removal of values that cause segfualt init.rc addition of required data folders and init of gps-daemon (gpsd->glgps) Set preset values gps.h header removed as non-samsung blobs Conflicts: include/hardware/gps.h Change-Id: I9e07d8a507b5669987480a4ecae4f7697685e1f4
* libsensors: switch to portable typedefs to match callbacksDheeraj CVR2015-11-259-29/+30
| | | | | | | | | | | | | Using a strict basetype only coding style is not a good idea especially when we are dealing with callbacks which use portable typedef like int64_t. This kind of coding style would most likely end up in overflows at various places especially when dealing with timestamps and sensor delays which are caused when typecasting datatypes of different size. Switch to portable typedefs and get rid of "long". Change-Id: I75b9cace7602345dba9095f046292e6d4db07df4
* libsensors: fix light sensorJavi Ferrer2015-11-251-3/+37
| | | | Change-Id: I7cad5c048c1a9877889216ca8ca43bb13daeb4b0
* i9300: libsensors: remove unused orientation sensorChristian Balster2015-11-256-480/+0
| | | | | | | | | | | | | The Orientation Sensor is deprecated and no longer required. Additionally this implementation is never even used, since Android automatically replaces it by it's own implementation if the sensor HAL doesn't also provide a Rotation Vector sensor. Furthermore the current implementation only uses the accelerometer and magnetometer for the sensor fusion and doesn't make use of the Gyroscope. So should we at some point decide to implement our own complete sensor fusion this would have to be rewritten anyway. Change-Id: I45d8a9afd2089b49131e6cc69cdf2f3dfee46c92
* i9300: libsensors: Fix compass orientation (for real)Christian Balster2015-11-254-6/+6
| | | | | | | | | | | | | | | | | | | | | | | Actually this fixes several more problems, but the compass orientation is the most noticeable symptom of this: Android expects sensor event timestamps in nanoseconds. Linux timestamps on the other hand are saved in the timeval struct in seconds and micro- seconds. Therefore these need to be converted, which is easy enough and is implemented in input.c of libsensors. Unfortunately, the current implementation uses type long int for the return value and all further calculations. Since the nanosecond values easily exceed 2^32 the buffers overflow and wrap, which results in the reported timestamps moving between -2^16 and 2^16. The consequences of this are noticeable especially with fused sensors integrating the gyroscope readings, which use the difference of two timestamps to calculate the change in orientation by multiplying it by the rotation rate. When the buffer wraps around this results in a huge time difference and thus leads to a momentary orientation change every ~4.3 seconds. This commit fixes this behavior by using long long int. Change-Id: Ib47bdc36ece16371c82f61b125315074ec048e32