Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mm6.0 root #1

Open
wants to merge 31 commits into
base: mm6.0
Choose a base branch
from
Open

Mm6.0 root #1

wants to merge 31 commits into from

Conversation

PRJosh
Copy link
Contributor

@PRJosh PRJosh commented Mar 31, 2016

Do not merge just yet

rmcc and others added 30 commits January 6, 2016 10:44
Enabled by BOARD_USES_QC_TIME_SERVICES=true, it requires the device
to provide its own time_daemon executable and libtime_genoff.so
proprietaries. The library should be copied by the device's setup
config to $OUT/obj/lib for linkage (and pushed to the final build,
obviously)

Change-Id: Ie6964dbe2692dc33fc04093a5b89b6922d8443c8
* The additional CLOCK_POWEROFF_ALARM entry is invalid for timerfd, and
  causes _ALL_ timerfd creation to fail, resulting in mostly
  nonfunctional alarms systemwide.

Change-Id: I5366ed8296635ab51599bce1b988d54060da22ac
 * applyOomAdjLocked in ActivityManager will call into native
   layer to adjust tasks in the cpuctl and memory cgroups. The global AM
   lock is held while this happens, and on a busy system can result in
   slowdowns.
 * The cpuctl cgroup is already handled in a sane way. Adjust the memory
   cgroup code to cache file descriptors to reduce overhead by an order
   of magnitude.
 * These cgroups are actually exactly the same in their content, in the
   future when remounting a cgroup fs is supported we can combine them.

Change-Id: If0043e651eebdf73075a96e6de618badd8b5935b
 * This is gonna get really sketchy with the proprietary bits, and
   we have our own solution. Revert all associated patches.

Revert "BoostFramework: Adding config for disable packing params & scroll fix"

This reverts commit a313bfa.

Revert "Perf: Adding hooks for IO prefetcher into framework"

This reverts commit 96e75fc.

Revert "frameworks/base: Add support for low resolution rendering"

This reverts commit d5282e0.

Revert "frameworks/base: support for loading wfd whitelist dynamic libraries"

This reverts commit 79a889b.

Revert "ActivityTrigger: New class to invoke when activity starts/resumes"

This reverts commit 20d6e3c.

Revert "BoostFramework to enchance performance during critical scenarios"

This reverts commit 0c3a49a.

Change-Id: Ibc81f3150f4bea572f869be688ebfade11b27307

Revert "IME: improve design of keypress powerhal hint"

This reverts commit e64997d.

Revert "IME: Enable perflock feature for soft input"

This reverts commit 6ce6216.

Revert "Add perflock for NotificationBar drag animation"

This reverts commit ea21248.

Change-Id: I49cc4367fcc4b9985baf75b60b6fe56b7223d393
Change-Id: Idc7d128e84f54a89f9a45cb2ac474461e3152808
HW implemntation overwrites the SW implementation

Change-Id: Id738f2808691c35e5507e1d557bc5351456953ad
Change-Id: Iac0c5c2d41759e63706db1cf7cdbb7256756499f
…arkit.

+ Don't allow contact sharing by default for devices not recognized
as carkit at pair time.

Bug: 23607427
Change-Id: If6babb10117ba7ee5008a4a29450a7cb981bea4a
…ents.

Bug: 25476219

Change-Id: Ibbe621748f7275f8c1ccded84612ca16292559eb
…Thread

Sample decoding still occurs in SoundPoolThread
without holding the SoundPool lock.

Bug: 25781119
Change-Id: I11fde005aa9cf5438e0390a0d2dfe0ec1dd282e8
(cherry picked from commit 0275a982abecee683f16c827d405eafe51fb67ae)
- add pause in java level
- add pause in jni level

CRs-Fixed: 587051

Add 2 APIs (suspend/resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
  to replace release() which will release the whole player
- API:resume() will just init the decoders again,
  then start() will be called to start to play the streaming

Change-Id: Ia0c38bd827f21261b2bd87c04778e86362003344
Android 6.0.1 release 22

Change-Id: I87262f7f7ebdbbe4664242645fa4ff6bd0f5753b
On XML write, include the op name.  On XML read, map
the name back to op id (if it exists).

Persistent AppOp state now follows the op name instead
numeric id.  This allows upgrades between versions of
android that have different code<>name mappings.

Change-Id: Iffc02095b6838a34ff999f8db51c2c6739dd0db8
Add support for new mode(MODE_ASK) in AppOpsService to show a permission
dialog box to user to confirm user permission before allowing or ignoring
that operation.
All strict operations (defined in AppOpsManager) are going to be in
MODE_ASK by default.
Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to
user's choice.

Change-Id: I1314125a2b8be558e422e4a9eea0ff066c21bf94
Add support to read AppOps policy file.
AppOps policy file can be used to configure Ops default policy.

Change-Id: Idb4e3501ff9f58e491b06e74152342aa9574afbf
PS2: * add missing call to updatePrivacyGuardNotificationLocked()
     * remove ic_privacy_guard and ic_privacy_guard_off
     * use stat_notify_privacy_guard drawable from Björn
     * rebase

PS3: * exclude MODE_IGNORED from causing
       getPrivacyGuardSettingForPackage() returning true.
       multiuser restrictions on calls/sms otherwise
       cause privacyguard to appear to be on when really
       it isn't.
     * rebase

Pulled together from:

Author: Danesh M <[email protected]>
Date:   Thu Sep 5 19:23:15 2013 -0700
Privacy Guard : Reimplement backed by AppOps
Re-implements privacy guard to use appops.
Change-Id: I2b52e8cf0d6e126fb156f83df885b5551503cd9d

Author: Jorge Ruesga <[email protected]>
Date:   Sat Jan 4 01:34:39 2014 +0100
privacyguard: Share privacy package name between activity stacks
AOSP 4.4 now has a stack supervisor with differents activity stacks for home and focus activities.
Every ActivityStack instance has a ref to this supervisor. Just share the privacy guard package name
throught the supervisor.
Patchset 2: Fix formatting
Change-Id: I5dd75cfa7f5e8b568a4302fce98809ae307c6d52
JIRA: CYAN-2874
Issue: https://jira.cyanogenmod.org/browse/CYAN-2874

Author: Steve Kondik <[email protected]>
Date:   Sun Feb 23 19:23:31 2014 +0100
Use MODE_ASK as the default ops mode in Privacy Guard
* Prompting the user is far more useful as a default behavior. The
  choice will be remembered after the first request.
Change-Id: Ie62f932047f8b761bd0dd9f836bcd1132062edf5

Author: Steve Kondik <[email protected]>
Date:   Tue Feb 25 13:11:12 2014 +0100
Relocate and cleanup new app ops features and PGify it
Change-Id: I4eb65f6f88c2f2aecdf054ffd52c31c4d5866900

Change-Id: I2a69d59f288630fefcc83e6109ab608fa28eb71b
Port from cm-10.2 and cm-11.0

Author: Sam Mortimer <[email protected]>
Date:   Wed Oct 2 22:06:42 2013 -0700
[2/2] AppOps: Add per Op allowed and ignored counters
Change-Id: Ifb3d25e17dbab082b816a0a655b4796a83af336b

Change-Id: Ifb3d25e17dbab082b816a0a655b4796a83af336b
Check user permissions before enabling/disabling wifi.

Change-Id: I1ddae6e47f42b6d3fc831c2c135ece75cf9e935d
Check user permission before enabling bluetooth.

Change-Id: I9af341157df05104d3c5a52874538eefdbe14c4b
Add BOOT_COMPLETED operation in AppOps.

This operation is used to allow user to control auto start of
applications and services at bootup.

Change-Id: Ie8488ec1b4683c8617ca569cfc858709f0d35ba2
Check user permission before enabling nfc.

Change-Id: Ia84e33c299e4fdecfd66ee933d9e7d37ed29c340
Check user permission before enabling/disabling mobile data.

Change-Id: I6e1895b130788dfccbc0a8523dadf1559b698988
This patch adds support for superuser app-ops control. The end-goal
is to better prepare superuser for the multi-user experience while
also replacing the superuser app with existing components.

Change-Id: I52acf98a39f18f12a23f4f902a39ae3f7c5b4895
This adds an indicator to the statusbar that is visible whenever a root
session is active, akin to the fine location icon.

Change-Id: I669fcc87e2b7a3201308170d7727ec5fb0e00e2b
There's no direct permission tied to it and fix the op-to-switch entry.

Change-Id: I661ef6707ba50adb371e3223a91880c4838df669
Signed-off-by: Roman Birg <[email protected]>
Change-Id: I4229a65c362fe4915e62684e5ebc209525c9f9d3
Signed-off-by: Roman Birg <[email protected]>
adapted to reflect new permission indices and codes

Change-Id: Iba9a45838ee8eb7f5cb6ec6d29776574c86e84b6
The AppOpsService is essentially a manager for a set of counters
and permissions. Each operation request has the potential to change
the state and, as such, access to such state is synchronized.

We are whitnessing deadlocks caused by the broadcast and, in fact,
while we want to notify superuser changes eventually, it does not
have to be synchronous with the app ops request. This patch uses the
request to schedule the notification on a handler, leaving the locking
semantics of appops intact.

Change-Id: I94f6dd2c66b9492f95d3c9ffb438b3e6417007d7
Also added op codes to prevent further mismatches.

Change-Id: I6e20cc5bcabe6a3216cec47d984768bf12cf4311
Signed-off-by: Roman Birg <[email protected]>
Grant wifi, bt, boot_complete, nfc, and data changes for systemui.

Also remove the bluetooth permission tied to the bluetooth_change op -
it is not always directly tied to BLUETOOTH or BLUETOOTH_ADMIN, so we
can't force one there.

Change-Id: Ib042dc34b0763b2d84a57baa71dc9fa995724d64
Signed-off-by: Roman Birg <[email protected]>
Change-Id: Ic7b69921e3df7987ab89673cb83a7456d5b0c41e
@PRJosh
Copy link
Contributor Author

PRJosh commented Apr 1, 2016

@gmillz give this a go and review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants