aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* [DO NOT MERGE] msm8996-common: overlay-lineage: Disable not present overlaysDavide Garberi2017-12-05
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: overlays: Update for new LED capabilitiesSam Mortimer2017-12-05
| | | | | | | | | | | | | | | *) frameworks/base bool config_intrusiveBatteryLed is no longer used so it has been removed. *) Use LIGHTS_BATTERY_LIGHT capability in lineage-sdk instead. *) Update config_deviceLightCapabilities comments *) Move bool config_intrusiveNotificationLed out of Lineage-specific overlays because it's an AOSP config Change-Id: Ia813cdd0596ece07ff38e1087d9cdf9e135f20be Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: overlay-lineage: Apply LineageOS rebrandBruno Martins2017-12-05
| | | | | Change-Id: Idc537612efe4cf870d6a8164bd04844c1bb40b2b Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* Revert "z2_plus: Remove lineage related overlays"Davide Garberi2017-12-05
| | | | This reverts commit 5e4a063e26543246994912998e96c12c93984853.
* msm8996-common: Remove ipacm/ipanatdianlujitao2017-12-04
| | | | | | | * Disabled by Qualcomm in O Change-Id: I063355c2c0bf188bcbafca09f2ea5569a0e5d2f2 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Add lineage dependenciesDavide Garberi2017-12-04
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Build with AAPT2Bruno Martins2017-12-04
| | | | | Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Re-integrate into SettingsBruno Martins2017-12-04
| | | | | | | | | | | | | | | * Apply the default Oreo theme and inherit the layouts from Google for the Settings app, in order to keep UI consistency. * Get rid of SettingsDrawerActivity as it no longer fits in and include the back button in the action bar. * Kill the icon drawable not only because is a leftover, but also doesn't really serve any puropose in the new UI. Change-Id: I53b6d3bb99d63852ba34d71e16ae99f05223569e Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Apply LineageOS rebrandBruno Martins2017-12-04
| | | | | Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Hide features if unsupportedBruno Martins2017-12-04
| | | | | | | | * This is required for lithium because the device has no ability to check for proximity sensor status during standby, due to sensor's native design Change-Id: I5d3ecfe3df96b5e58ffb0579dffd311c7c13e4a9 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Require non-wake up proximity sensorLuK13372017-12-04
| | | | | | | | | | * getDefaultSensor(type) returns the first sensor and in case of capricorn it's wake-up one thus our doze package wouldn't work. Passing `false` as a second argument makes it work properly. Change-Id: If73bc43bc166945d27b95513c4255ae5a5590849 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: RefactorBruno Martins2017-12-04
| | | | | | | | | | | * Fix Ambient Display's switchbar on/off text. * Get rid of unnecessary receiver and all its related code, permissions and meta-data. * Keep the service running only if Doze is enabled system-wide along with at least one of the additional Ambient Display features. Change-Id: Id1f7f5e099f289a20f5757b7869e297e0ce74f7a Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Doze: Perform operations as current userGabriele M2017-12-04
| | | | | | | * System processes should use the 'AsUser' variant of some methods Change-Id: Ic2457950b1f0e9f29f4fb06ef38f00dd919ad8f7 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Protect com.android.systemui.doze.pulseGabriele M2017-12-04
| | | | | | | | | | As stated in ActivityManagerService: The vast majority of broadcasts sent from system internals should be protected to avoid security holes Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Set different timings for wave and pocket detectionMichael W2017-12-04
| | | | | | | * One second is a little bit short for pocket Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: CleanupMichael W2017-12-04
| | | | | | | | | | | * Rename missing OnePlus occurance * Remove unneccessary newlines * Remove redundancy * Remove unused variables and imports * Make variables local when sufficient Change-Id: I48f5dfc24275388f1deb31dc27716ed75aae898e Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze: Commonize strings translationsAbhisek Devkota2017-12-04
| | | | | | | | | * Translations moved to the new project android_packages_resources_devicesettings Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4 Signed-off-by: Adrian DC <radian.dc@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Bring DozeSettings up to dateSteve Kondik2017-12-04
| | | | | | | | | | * Rework the UI with a SwitchBar * Change to the preferences support library and use fragments * Use all the new fancy RemotePreference stuff * Slot into display settings instead of the dashboard Change-Id: I0850f7d9558a14f739f752f76002db993381a0e5 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze clean upAltaf-Mahdi2017-12-04
| | | | | | | | | * remove always enabled option * use stock fade in delay * squashed new and updated translations Change-Id: Ieebf13f88c02d5036a09b5ef83ca1b53bd6771ac Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: doze improvementsAltaf-Mahdi2017-12-04
| | | | | | | | | | | | * restructure the app * add a tilt sensor from hammerhead-caf with an option to enable/disable * add a one time dialog on first start to help users understand how the app works * remove proximity wake up option and add an option to enable the sensors as soon as the screen turns off * adjust and add new doze configs * squashed translations Change-Id: Ia9d9a807d6c4f1a80a2ba8780e7486560f9a1d87 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: add doze packagePatrick Lower2017-12-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from yu lettuce Includes the following patches YUDoze: Add service for using proximity sensor for wake-up Author: Patrick Lower <devvortex@gmail.com> Date: Mon May 11 16:14:17 2015 -0400 YUDoze: Set gesture to disabled by default Author: Arne Coucheron <arco68@gmail.com> Date: Wed May 20 00:56:19 2015 +0200 YUDoze: Consolidate doze settings Author: Christopher R. Palmer <crpalmer@gmail.com> Date: Sat May 23 11:42:49 2015 -0700 YUDoze: fix defaults Author: Dave Daynard <nardholio@gmail.com> Date: Sat May 23 18:29:13 2015 -0400 YUDoze: Add back button to action bar Author: luca020400 <luca.stefani.ge1@gmail.com> Date: Sun May 24 15:47:17 2015 -0700 YUDoze: add proximity wake Author: Dave Daynard <nardholio@gmail.com> Date: Mon May 25 12:54:00 2015 -0400 YUDoze: restore proximity wake preference on boot Author: Dave Daynard <nardholio@gmail.com> Date: Sat Jul 4 13:44:53 2015 -0400 YUDozeService: Prevent a pm wakeup with a timestamp in the future Author: Brandon McAnsh <brandon.mcansh@gmail.com> Date: Fri Jul 24 15:40:45 2015 -0400 YUDozeService: properly fix future timestamp error Author: Patrick Lower <devvortex@gmail.com> Date: Wed Aug 5 10:51:03 2015 -0400 YUDoze: fix typo Author: Dave Daynard <nardholio@gmail.com> Date: Tue Sep 8 22:56:10 2015 -0400 YUDoze: Use ScreenType util from cmsdk Author: Michael Bestas <mikeioannina@gmail.com> Date: Sun Dec 13 02:51:09 2015 -0500 YUDOze: Remove summary for YUDoze Author: TheStrix <parthbhatia98@gmail.com> Date: Sun Dec 13 07:25:36 2015 -0500 Change-Id: Ia7e668622eecf4355fd55dc9cda7ca05a6494b93 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Move configuration files to vendorDavide Garberi2017-12-04
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Re-enable the libinitDavide Garberi2017-12-02
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Decent TABs indentationDavide Garberi2017-12-02
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Update for OLuca Stefani2017-12-02
| | | | | Change-Id: I635dc8d27f92f9a2fa83da62c2f32e48bd2c7680 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Check if power off alarm is setMichael Bestas2017-12-02
| | | | | | | | | Check if power off alarm is set, then set alarm's properties Adapted from Mao Jinlong <c_jmao@codeaurora.org> patch in init.qcom.early_boot.sh Change-Id: Ib86584d1c09aba07c47435ac8bed39aac79a80f7 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Check reboot_reason when setting alarm_boot propZhao Wei Liew2017-12-02
| | | | | | | This was missed out from init.qcom.early_boot.sh. Change-Id: Iab5b0d7782a53b97315d2aa9d0c301ed7725e01d Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Use core init function to read from filesBruno Martins2017-12-02
| | | | | Change-Id: I3fd23490bcdfa4097dad73161ad226337e93cd18 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Use more conservative VM parametersDiogo Ferreira2017-12-02
| | | | | | | | | | | | | | | | | | | | | | | The maximum heap size for each virtual machine is 1GB. This is too big and puts too much pressure on both the garbage collector when it tries to perform collections in older generations. The symptoms are simple, some applications will allocate objects that live long enough to be promoted to older generations, escaping the efficient CMS collections. Eventually, a stop-the-world collection will go through this large block of memory and cause applications to pause for too long. Additionally, the out of memory killer follows a LRU approach where it tries to kill older applciations to make room for new ones. The problem arises when the least recently used applications don't have large heaps but the most recent ones do. When this happens the system halts to a crawl while older apps and services are killed and respawned in a never ending cycle of jankiness. These values were obtained experimentally but actually match the defaults for devices with >2gb of ram and xhdpi. Change-Id: I73a92269ceac61dd4d4c1b1600f55a21534a27a0 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Cleanup and update init extension for NBruno Martins2017-12-02
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Dynamically set Dalvik propertiesLuK13372017-12-02
| | | | | Change-Id: I656cbed7abf351fea4129e7ff3c930eb9d8914ae Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: init: Checkout to NDavide Garberi2017-12-02
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Don't call external kernel headersDavide Garberi2017-12-02
| | | | | | * Everything is already there in kernel now Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Cleanup after b8b870892b6f71ad9decf7cf38bf31412f540d46Davide Garberi2017-12-02
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* rootdir: SafailNet: Don't touch ro.build.selinuxjhenrique092017-11-27
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* rootdir: Introduce 'SafailNet'jhenrique092017-11-27
| | | | | | | | | | | | | | | SafailNet is inspired on magisk hide. (Thanks to topjohnwu) https://github.com/topjohnwu/Magisk/blob/master/jni/magiskhide/magiskhide.c The purpose is bypass safetynet without installing any zip via twrp And these commits too: https://github.com/PixelExperience/kernel_motorola_msm8953/commit/dc9c2f35e988123abf2aa50d30b8b324bc377fbf https://github.com/PixelExperience/kernel_motorola_msm8953/commit/ec5b1bb6821098ebb30a37cbf5d2c52286cacbfd Signed-off-by: jhenrique09 <jhenrique09.mcz@hotmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: overlay: Set brightness percentage at 50% as defaultDavide Garberi2017-11-26
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* overlay: Fix fingerprint positionontherunvaro2017-11-26
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* z2_plus: Flip screen in kernel [2/2]dd3boh2017-11-26
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Add calib.cfg from ZUIDavide Garberi2017-11-25
| | | | | | | * This is for the assertive display * The configuration was already there in the system.prop without the file though Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Add a qti_whitelist configurationDavide Garberi2017-11-25
| | | | Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Add back cmdline safetynet bypassDavide Garberi2017-11-25
| | | | | | * This should be helpful once the selinux enforcing will be working Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Nuke BOARD_USES_QC_TIME_SERVICES flagdianlujitao2017-11-24
| | | | | | | | * The framework did exact the same thing as TimeService.apk, so there's no reason to keep it, and it's not ported to O. Change-Id: I74abc65468e983732bccde571003235891379463 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: full rework of the Wifi configurationAlex Naidis2017-11-24
| | | | | | | | | | | | | | | | | | * enable RA Filtering * increase RA rate limit interval to 15 minutes -> saves power * enable IPA offloading in STA mode -> kernel support is present * set the beacon missed count threshold from stock -> ensures stability * maximize the continuous packets dropping threshold * limit peers for SoftAP to 10, prevent overloading * prefer connecting to a 5Ghz AP even if its RSSI is lower by 5dBm than the competing 2.4Ghz AP -> smart decision * set the stock RoamRssiDiff value * disable Packet logging * cleanup some options Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: enable and tune BETAlex Naidis2017-11-24
| | | | | | | | | | | | | | Enabling Beacon Early Termination in order to speed up beacon processing drastically. This will lead to power savings. Also tune the BET wake interval to a value of "8" to reduce the frequency of wakeups. "8" is a safe choice since I could detect values of higher than 10 to cause issues in some usecases. Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: relax WiFi re-association RSSI thresholdsSultanxda2017-11-24
| | | | | | Signed-off-by: Sultanxda <sultanxda@gmail.com> Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: Enable scan aging time ini parameteryeshwanth sriram guntuka2017-11-24
| | | | | | | | | | | | | Stale scan entries are updated to NL because scan results are not aged out in PNO complete handler. Fix is to enable scan aging time ini. Change-Id: I2a1a6d0d1e3a37a013b1e044301d857bc7ce062c CRs-Fixed: 2047214 Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: Tune BMPS listening intervalAlex Naidis2017-11-24
| | | | | | | | | Tune the BMPS listening interval for the moderate power level to achieve power savings during wifi idle. Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: Set gInformBssRssiRaw to 0Srinivas Girigowda2017-11-24
| | | | | | | | | | | | | | | | When FW sends the Mgmt Rx event message to host, the raw rssi field is wrongly getting updated with an RSSI that is accounted twice for RSSI offset if enabled in BDF. Set gInformBssRssiRaw to 0 to pick the raw rssi from the Rx Descriptor populated by HW & avoid double calculation. CRs-Fixed: 1084457 Change-Id: I615f9fbb8b9849025fff865c8886edd9e73f938b Bug: 31781264 Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org> Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* msm8996-common: wifi: reduce delay for Runtime PMAlex Naidis2017-11-24
| | | | | | | | | -> Set the delay to "1500" to improve power efficiency without increasing the chance of a wifi dropout. Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>