Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
12332e0
[DO NOT MERGE] Disallow guest user from changing Wifi settings
Mar 14, 2016
613f63b
Add new, hidden MotionEvent flag for partially obscured windows.
Mar 31, 2016
8dd6c30
Add Weather Content Provider [5/5]
greniaz Mar 24, 2016
766d3bb
SysUI: Don't call removeAllViews on AdapterView
0xD34D Apr 26, 2016
39312b1
media: Remove effect session callbacks from the framework
Apr 23, 2016
999b3c2
SystemUI: Handle null keys on settings reload.
Apr 27, 2016
dc4f444
Automatic translation import
mikeNG Apr 28, 2016
cbd2e76
Keyguard: Register for the correct CMSW completed Uri
0xD34D Apr 29, 2016
a86c8a9
SysUI: Animate notificaiton panel back into view
0xD34D Apr 25, 2016
374bff1
Revert "SettingsLib: Add back accidentally removed translations"
mikeNG May 1, 2016
d6236bd
nms: Only generate LED colors if the device has a multicolored LED
May 2, 2016
9f7fc27
keyguard: Allow disabling fingerprint wake-and-unlock
May 2, 2016
f5b69f3
Lockscreen shortcuts: don't allow specific activities
romanbb Apr 29, 2016
31f3026
Revert "Selectively show zen footer."
romanbb Apr 28, 2016
adbe561
Settings: defer DEV_FORCE_SHOW_NAVBAR query to CMSettings
romanbb Apr 29, 2016
4d5f0cf
Merge tag 'android-6.0.1_r43' into HEAD
May 3, 2016
61ed457
SystemUI: remember deleted custom tiles
romanbb Apr 27, 2016
d8a30fc
SystemUI: avoid lock screen shortcut picker crash
romanbb May 3, 2016
ef03777
batteryservice: Add support for segmented power LEDs
May 3, 2016
305fc23
SysUI: Show keyguard when LLS dies and had focus
0xD34D Apr 30, 2016
5d52a18
Partially revert "Merge tag 'android-6.0.1_r22' of https://android.go…
mikeNG May 1, 2016
82a138e
pms: Skip reinstall of prebundles correctly per user.
May 3, 2016
db0e699
systemui: Fix the TrustDrawable animation state
May 4, 2016
8aefa31
Fix revert build breakage
May 4, 2016
26c932e
SystemUI: implement properly saving tile locations
romanbb May 4, 2016
a429e47
SystemUI: bail out of recents-to-home animation when losing focus
romanbb Oct 2, 2015
a77b5bc
server: modify network stat plugin framework
Dec 21, 2015
40e8e4c
Lockscreen : Bunch-o-fixes
Danesh Apr 12, 2016
aec68c4
SystemUI: LiveDisplay is not translatable
mikeNG May 5, 2016
62e6a40
Themes: Expose manifest styles for themes
djdarkknight96 May 5, 2016
a7014af
Revert "Themes: Expose manifest styles for themes"
0xD34D May 5, 2016
91c526f
Themes: Expose manifest styles for framework activities
djdarkknight96 May 5, 2016
35c5005
fw: Provide system context to EnableAccessibilityController.
May 6, 2016
28393c9
Add new options for call waiting response in InCallUI
kmaini Apr 22, 2016
a3cdad2
SysUI: Make sure LLS focus is false when unlocking
0xD34D May 6, 2016
9d04814
perf: Send the process name and pid for launch boosts
May 6, 2016
c241b7e
SystemUI: Update cached weather data when temperature unit changes
greniaz May 2, 2016
002900b
am: Remove extraneous boostage
May 9, 2016
648593d
batteryservice: Use Alpha channel for segmented LED power level
AdrianDC May 4, 2016
73ca66e
RF cutback feature for SAR
deepakkundra May 6, 2016
fe5fb7b
CmRes: Attach themed cmsdk resources to assets
0xD34D May 9, 2016
ec270e6
Automatic translation import
mikeNG May 10, 2016
2d7b916
Automatic translation import
ciwrl May 10, 2016
d77a60f
am: Don't protect apps that atttempt to grant uri perms.
May 11, 2016
caea16f
SystemUI: fix potential NPE with Queue
romanbb May 10, 2016
b991d94
only use proximity checks on wakeup keys
romanbb Apr 26, 2016
548a36f
SystemUI: fix blank qs tile issues
romanbb May 11, 2016
db5cf5d
SysUI: Use VectorDrawable's for rendering battery
0xD34D Apr 25, 2016
256268f
LLS: Fix logic in isKeyguardInteractiveAndShowing
0xD34D May 11, 2016
801a234
Add hotword AudioService null check
May 10, 2016
25550fb
pm: Don't throw if invalid package setting or classname.
May 11, 2016
af23a18
Revert "LLS: Fix logic in isKeyguardInteractiveAndShowing"
0xD34D May 11, 2016
5e5aaf9
bootanimation: fix check for system bootanimation
marado May 12, 2016
684be31
WindowManagerService : Ensure we update both size/position
Danesh May 6, 2016
d9ff407
Keyguard : Ensure we expand onIconClicked
Danesh May 9, 2016
2e0fcdf
Ensure camera is launched if doing screen off gesture
Danesh May 9, 2016
c8bbaca
Lockscreen : Only animate targets if launched via swipe
Danesh May 10, 2016
32b90fc
Acquire wakelock until dream service acknowledges dream state change
May 9, 2016
9878bb9
Kill the real/isolated uid group, not the ApplicationInfo uid
Apr 18, 2016
f7caedc
SpamFilter : Hide option if notification cannot be filtered
Danesh May 13, 2016
59cd599
Keyguard: Allow swiping up when trust managed
0xD34D May 12, 2016
c3de534
Lockscreen : Disable left edge after showing keyguard
Danesh May 12, 2016
971ea68
CMSettings : Move force_show_navbar to global
Danesh May 13, 2016
c30e3aa
SystemUITests: fix compile error
statik213 May 13, 2016
ba3acb5
Update volume slider only if ringer mode changed
greniaz May 11, 2016
1530ec9
SystemUI: Set circle battery path as untranslatable
mikeNG May 13, 2016
4ccaf0a
SystemUI : Fix multi-user for keyguard
Danesh May 13, 2016
448c4a5
QS: fix performance profile tile observer
May 13, 2016
50734c2
ActivityManager: fix perf boost NPE
romanbb May 13, 2016
2d7713a
Fix incorrect behavior for statusbar and quicksettings panel
Nov 26, 2015
58ae12f
MediaScanner: Add support for default ringtones per sim
Danesh Nov 12, 2014
20cb552
Automatic translation import
ciwrl May 14, 2016
ad97956
Expose lock screen blurring as a setting [2/2]
0xD34D May 9, 2016
079dfef
ShutdownThread: Decrypt before stopping storage manager
May 9, 2016
72d45c0
LLS: Ensure LLS loses focus when showing bouncer
0xD34D May 16, 2016
7ace828
LLS: Don't change bar state when changing LLS focus
0xD34D May 16, 2016
734edc1
Lls: Use LlsController for checking LLS focus
0xD34D May 16, 2016
a54a479
SystemUI : Ensure previous camera preview is removed
Danesh May 16, 2016
105c6f5
pm: Avoid installing prebundle to other users that were uninstalled b…
May 11, 2016
1af2061
Automatic translation import
ciwrl May 17, 2016
22a2eff
Settings: add Kiev time zones to picker
greniaz May 13, 2016
f59a969
Port "Settings: add a way to not localize zone selections" to cm-13
greniaz May 16, 2016
6ce16de
QSTiles: set disconnect callback in bluetooth details list adapter
bigrushdog Apr 14, 2016
507b3a7
SystemUI : Ensure bouncer is not shown for SHADE
Danesh May 17, 2016
234fb3b
usb: ensure accessory detached sent on re-attach
statik213 May 17, 2016
2cfbb7a
SystemUI : Fix left swipe when dismissing bouncer
Danesh May 17, 2016
2da425e
SysUI: Check swiping progress before collapsing KBA
0xD34D May 17, 2016
b7583ae
am: Handle unchecked activity starts for protected components.
May 18, 2016
e3ddac3
SysUI: Adjust battery dimensions for better look
0xD34D May 12, 2016
453e8f2
SysUI: Fix coloring of battery drawables
0xD34D May 19, 2016
7d60f88
SystemUI: Check current data subscription when updating signal cluster
intervigilium May 18, 2016
52df681
MSIM: Fix to resolve SIM PIN unlock in APM.
May 19, 2016
82fcd4a
Fix isComponentProtected calls in package manager tests
May 19, 2016
0b4226b
Themes: Fix theming of cmsdk assets
0xD34D May 18, 2016
b4d593b
SystemUI: update qs tile hint and header view on locale change
romanbb May 17, 2016
ea876cd
SyncManager: Adjust sync remaining time calculation.
Feb 12, 2015
c7e7c09
Release alarm wakelock for blocked uid.
Jan 22, 2016
1974da9
Revert "SysUI: Fix coloring of battery drawables"
0xD34D May 20, 2016
7a3ef4f
Revert "SystemUI: fix clock jumping when expanding QS from lockscreen"
romanbb May 19, 2016
4855c26
SystemUI: fix NPE when configuring blur layer
May 20, 2016
931814d
Revert "SystemUI: recalculate clock position on removing empty shade …
romanbb May 21, 2016
cca9cb7
keyguard: Fix password doesnot sanitize after verification
Mar 15, 2016
5fafd29
server: Whitelist non-INTERNET/non-CELLULAR Network for metering
Feb 19, 2016
7ebf5f4
Add 3 APIs for card application
Dec 16, 2015
d9d67fd
IMS-VT: Disable multi tasking by default
Dec 22, 2015
ed1ce24
Add P2 option in openLogicalChannel.
Dec 4, 2015
e691cca
Create emergency account with primary stack phone.
Jan 25, 2016
5a9abe4
Handle mnc 00 while retrieving the Resources based on subid
Feb 17, 2016
9a4f162
IMS: Add support of notifyPreciseCallState for multi sim
Feb 26, 2016
77c53d0
Fix NL translation after r22 revert
mikeNG May 22, 2016
cb48836
SysUI: Only set mKeyguardBlurEnabled if supported
0xD34D May 23, 2016
20e7bcc
frameworks/base: Support for third party NFC features
Nov 24, 2015
070cd3b
bootanim: Cleanup
rmcc May 17, 2016
805983d
SystemUI: Filter out unsupported values off perf profile tile
luk1337 May 7, 2016
4018231
SystemUI: fix multi touch gestures and extra jank
romanbb May 20, 2016
936f7e2
fw: Repurpose PREVENT_POWER_KEY for preventing multiple system keys.
May 20, 2016
5953be0
SysUI: Allow styling of battery text/charge blend mode
0xD34D May 20, 2016
d37a5aa
SysUI: Fix coloring of frame and bolt
0xD34D May 22, 2016
2b21b18
SysUI: Use linear interpolator for battery level
0xD34D May 21, 2016
ed671ae
Only call uncrypt when we're encrypted
May 20, 2016
1125435
SystemUI: improve layout of qs detail panel
romanbb May 11, 2016
82f64dc
fw: Move HOME key interception logic to interceptKeyBeforeDispatching
jtangfcy May 24, 2016
d1bac5b
StatusBar: Do not just define vars...
BadDaemon May 24, 2016
955c97f
SystemUI: improve keyguard with SIM PIN interactions
romanbb May 24, 2016
2ca88f6
pm: Use sourcerecord if available for protected app validation.
May 25, 2016
9b2e90c
SystemUI: fix qs pulldown on certain themes
romanbb May 25, 2016
34acda1
Add CM version to dropbox entries
May 25, 2016
8e897a5
Automatic translation import
May 27, 2016
b4088dd
appops: Implement concept of delayedcount.
May 23, 2016
1c1efe4
appops: Respect screen interactivity before creating dialogs.
May 25, 2016
aa238e9
Core: Fix OOB
BadDaemon May 30, 2016
9a23f2e
am: clear state for every protected app invocation.
May 31, 2016
70d2082
services: Kick off to CMSystemServer for external service init.
Apr 26, 2016
44e91e0
fw: reintroduce PRIVATE_FLAG_PREVENT_POWER_KEY
Jun 1, 2016
ee43aa5
Frameworks: Add per app controls for LP keyguard notifications (1/2)
kufikugel Nov 24, 2014
bdb7df2
Don't lookup application keyguard notification visibility unnecessarily
sam3000 Feb 10, 2015
edb09e6
SystemUI : Ensure we unset focus when showKeyguard is called
Danesh Jun 1, 2016
1fb2216
Automatic translation import
Jun 1, 2016
cb4391b
SystemUI: Fix mCanDismissKeyguard state issue
intervigilium Apr 21, 2016
ce709c9
fw: Fix power key interception for PRIVATE_FLAG_PREVENT_POWER_KEY
kerneltoast Jun 2, 2016
ce01d29
SystemUI: fix toggling lockscreen rotation [1/3]
invisiblek May 2, 2016
e49ebe6
Visualizer: Let visualizer fill the entire available screen
invisiblek May 19, 2016
981a59d
SystemUI: Do not enable KeyguardBlur by default
mikeNG May 30, 2016
28e023d
Only show keyguard panel if on lockscreen + no activity on top
Danesh Jun 3, 2016
a563b30
powermanager: Extend scope of lock when updating blocked UIDs
Jun 3, 2016
3d98dae
SystemUI: Add support for persistent usb drive notification.
Jun 2, 2016
1b2a150
isRoaming: fix possible NPE
BadDaemon May 31, 2016
423a82e
systemui: Fix compilation failure
defer Jun 7, 2016
03ea311
Merge tag 'android-6.0.1_r46' into HEAD
Jun 7, 2016
6c769a7
keyguard: SIM Display Name is now a config
marado Jun 8, 2016
e704fc0
Keyguard: Get your weather on... the lock screen [1/3]
0xD34D May 24, 2016
eb7ff1a
Framework: allow ResolverActivity to be specialized from other package
May 27, 2016
d0c49f4
UsbDeviceManager: Remove charging from persisted function composition
tdmcyngn Jun 9, 2016
2c755a6
SystemUI: fix NFC tile sometimes hiding
romanbb Feb 16, 2016
e39d1d7
Revert "base: start nfc service prior to systemui"
romanbb Jun 10, 2016
9164274
DocumentsUI : Hide advanced menu option when in forced mode
Danesh Jun 14, 2016
5f8d3f8
Themes: Expose Power Dialogs
djdarkknight96 May 8, 2016
9153396
SysUI: Don't let rogue themes ruin notifications
0xD34D Jun 13, 2016
926ad44
Update android_media_AudioSystem.cpp
tandob-mtk Jun 15, 2016
f9d1686
Merge pull request #1 from CyanogenMod/cm-13.0
tandob-mtk Jun 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 8 additions & 10 deletions cmds/bootanimation/BootAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#define OEM_SHUTDOWN_ANIMATION_FILE "/oem/media/shutdownanimation.zip"
#define SYSTEM_SHUTDOWN_ANIMATION_FILE "/system/media/shutdownanimation.zip"
#define SYSTEM_ENCRYPTED_SHUTDOWN_ANIMATION_FILE "/system/media/shutdownanimation-encrypted.zip"
#define THEME_SHUTDOWN_ANIMATION_FILE "/data/system/theme/shutdownanimation.zip"

#define OEM_BOOT_MUSIC_FILE "/oem/media/boot.wav"
#define SYSTEM_BOOT_MUSIC_FILE "/system/media/boot.wav"
Expand Down Expand Up @@ -408,14 +409,9 @@ status_t BootAnimation::readyToRun() {
(access(getAnimationFileName(IMG_ENC), R_OK) == 0) &&
((zipFile = ZipFileRO::open(getAnimationFileName(IMG_ENC))) != NULL)) ||

((access(THEME_BOOTANIMATION_FILE, R_OK) == 0) &&
((zipFile = ZipFileRO::open(THEME_BOOTANIMATION_FILE)) != NULL)) ||
((access(getAnimationFileName(IMG_THM), R_OK) == 0) &&
((zipFile = ZipFileRO::open(getAnimationFileName(IMG_THM))) != NULL)) ||

((access(OEM_BOOTANIMATION_FILE, R_OK) == 0) &&
((zipFile = ZipFileRO::open(OEM_BOOTANIMATION_FILE)) != NULL)) ||

((access(SYSTEM_BOOTANIMATION_FILE, R_OK) == 0) &&
((zipFile = ZipFileRO::open(SYSTEM_BOOTANIMATION_FILE)) != NULL)) ||

((access(getAnimationFileName(IMG_DATA), R_OK) == 0) &&
((zipFile = ZipFileRO::open(getAnimationFileName(IMG_DATA))) != NULL)) ||
Expand Down Expand Up @@ -888,12 +884,14 @@ bool BootAnimation::movie()

const char *BootAnimation::getAnimationFileName(ImageID image)
{
const char *fileName[2][3] = { { OEM_BOOTANIMATION_FILE,
const char *fileName[2][4] = { { OEM_BOOTANIMATION_FILE,
SYSTEM_BOOTANIMATION_FILE,
SYSTEM_ENCRYPTED_BOOTANIMATION_FILE }, {
SYSTEM_ENCRYPTED_BOOTANIMATION_FILE,
THEME_BOOTANIMATION_FILE }, {
OEM_SHUTDOWN_ANIMATION_FILE,
SYSTEM_SHUTDOWN_ANIMATION_FILE,
SYSTEM_ENCRYPTED_SHUTDOWN_ANIMATION_FILE} };
SYSTEM_ENCRYPTED_SHUTDOWN_ANIMATION_FILE,
THEME_SHUTDOWN_ANIMATION_FILE} };
int state;
char sku[PROPERTY_VALUE_MAX];
char skusuffix[PATH_MAX];
Expand Down
2 changes: 1 addition & 1 deletion cmds/bootanimation/BootAnimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BootAnimation : public Thread, public IBinder::DeathRecipient
bool readFile(const char* name, String8& outString);
bool movie();

enum ImageID { IMG_DATA = 0, IMG_SYS = 1, IMG_ENC = 2 };
enum ImageID { IMG_DATA = 0, IMG_SYS = 1, IMG_ENC = 2, IMG_THM = 3 };
const char *getAnimationFileName(ImageID image);
const char *getBootRingtoneFileName(ImageID image);
void playBackgroundMusic();
Expand Down
6 changes: 4 additions & 2 deletions core/java/android/app/ApplicationPackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2048,9 +2048,11 @@ public void setComponentProtectedSetting(ComponentName componentName, boolean ne

/** @hide */
@Override
public boolean isComponentProtected(String callingPackage, ComponentName componentName) {
public boolean isComponentProtected(String callingPackage, int callingUid,
ComponentName componentName) {
try {
return mPM.isComponentProtected(callingPackage, componentName, mContext.getUserId());
return mPM.isComponentProtected(callingPackage, callingUid, componentName,
mContext.getUserId());
} catch (RemoteException re) {
Log.e(TAG, "Failed to get component protected setting", re);
return false;
Expand Down
5 changes: 5 additions & 0 deletions core/java/android/app/ContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,11 @@ private File[] ensureDirsExistOrFilter(File[] dirs) {
}
result.add(dir);
}

// Make sure there is at least one element, let the callers handle that
if (result.size() == 0) {
result.add(null);
}
return result.toArray(new File[result.size()]);
}

Expand Down
3 changes: 3 additions & 0 deletions core/java/android/app/INotificationManager.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ interface INotificationManager
void setPackageVisibilityOverride(String pkg, int uid, int visibility);
int getPackageVisibilityOverride(String pkg, int uid);

void setShowNotificationForPackageOnKeyguard(String pkg, int uid, int status);
int getShowNotificationForPackageOnKeyguard(String pkg, int uid);

// TODO: Remove this when callers have been migrated to the equivalent
// INotificationListener method.
StatusBarNotification[] getActiveNotifications(String callingPkg);
Expand Down
15 changes: 15 additions & 0 deletions core/java/android/app/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,21 @@ public class Notification implements Parcelable
@Priority
public int priority;

/**
* Default.
* Show all notifications from an app on keyguard.
*
* @hide
*/
public static final int SHOW_ALL_NOTI_ON_KEYGUARD = 0x01;

/**
* Show only notifications from an app which are not ongoing ones.
*
* @hide
*/
public static final int SHOW_NO_ONGOING_NOTI_ON_KEYGUARD = 0x02;

/**
* Accent color (an ARGB integer like the constants in {@link android.graphics.Color})
* to be applied by the standard Style templates when presenting this notification.
Expand Down
11 changes: 11 additions & 0 deletions core/java/android/app/NotificationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.app.Notification;
import android.app.Notification.Builder;
import android.content.ComponentName;
import android.content.Context;
Expand Down Expand Up @@ -512,6 +513,16 @@ public ArraySet<String> getPackagesRequestingNotificationPolicyAccess() {
return new ArraySet<String>();
}

/** @hide */
public int getShowNotificationForPackageOnKeyguard(String pkg, int uid) {
INotificationManager service = getService();
try {
return getService().getShowNotificationForPackageOnKeyguard(pkg, uid);
} catch (RemoteException e) {
return Notification.SHOW_ALL_NOTI_ON_KEYGUARD;
}
}

private Context mContext;

private static void checkRequired(String name, Object value) {
Expand Down
23 changes: 23 additions & 0 deletions core/java/android/app/ResourcesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ private boolean attachThemeAssets(AssetManager assets, ThemeConfig theme) {
PackageInfo piTheme = null;
PackageInfo piTarget = null;
PackageInfo piAndroid = null;
PackageInfo piCm = null;

// Some apps run in process of another app (eg keyguard/systemUI) so we must get the
// package name from the res tables. The 0th base package name will be the android group.
Expand Down Expand Up @@ -609,16 +610,20 @@ private boolean attachThemeAssets(AssetManager assets, ThemeConfig theme) {
}
piAndroid = getPackageManager().getPackageInfo("android", 0,
UserHandle.getCallingUserId());
piCm = getPackageManager().getPackageInfo("cyanogenmod.platform", 0,
UserHandle.getCallingUserId());
} catch (RemoteException e) {
}

if (piTheme == null || piTheme.applicationInfo == null ||
piTarget == null || piTarget.applicationInfo == null ||
piAndroid == null || piAndroid.applicationInfo == null ||
piCm == null || piCm.applicationInfo == null ||
piTheme.mOverlayTargets == null) {
return false;
}

// Attach themed resources for target
String themePackageName = piTheme.packageName;
String themePath = piTheme.applicationInfo.publicSourceDir;
if (!piTarget.isThemeApk && piTheme.mOverlayTargets.contains(basePackageName)) {
Expand All @@ -638,6 +643,24 @@ private boolean attachThemeAssets(AssetManager assets, ThemeConfig theme) {
}
}

// Attach themed resources for cmsdk
if (!piTarget.isThemeApk && !piCm.packageName.equals(basePackageName) &&
piTheme.mOverlayTargets.contains(piCm.packageName)) {
String resCachePath= ThemeUtils.getTargetCacheDir(piCm.packageName,
piTheme.packageName);
String prefixPath = ThemeUtils.getOverlayPathToTarget(piCm.packageName);
String targetPackagePath = piCm.applicationInfo.publicSourceDir;
String resApkPath = resCachePath + "/resources.apk";
String idmapPath = ThemeUtils.getIdmapPath(piCm.packageName, piTheme.packageName);
int cookie = assets.addOverlayPath(idmapPath, themePath,
resApkPath, targetPackagePath, prefixPath);
if (cookie != 0) {
assets.setThemePackageName(themePackageName);
assets.addThemeCookie(cookie);
}
}

// Attach themed resources for android framework
if (!piTarget.isThemeApk && !"android".equals(basePackageName) &&
piTheme.mOverlayTargets.contains("android")) {
String resCachePath= ThemeUtils.getTargetCacheDir(piAndroid.packageName,
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/content/pm/IPackageManager.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,6 @@ interface IPackageManager {
int processThemeResources(String themePkgName);

/** Protected Apps */
boolean isComponentProtected(in String callingPackage, in ComponentName componentName,
int userId);
boolean isComponentProtected(in String callingPackage, in int callingUid,
in ComponentName componentName, int userId);
}
2 changes: 1 addition & 1 deletion core/java/android/content/pm/PackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4564,7 +4564,7 @@ public void onCreated(int moveId, Bundle extras) {}
* Return whether or not a specific component is protected
* @hide
*/
public abstract boolean isComponentProtected(String callingPackage,
public abstract boolean isComponentProtected(String callingPackage, int callingUid,
ComponentName componentName);

/**
Expand Down
2 changes: 2 additions & 0 deletions core/java/android/content/res/Resources.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ public class Resources {
public static final int THEME_APP_PKG_ID = 0x61;
/** @hide */
public static final int THEME_ICON_PKG_ID = 0x62;
/** @hide */
public static final int THEME_CM_PKG_ID = 0x63;
/**
* The common resource pkg id needs to be less than the THEME_FRAMEWORK_PKG_ID
* otherwise aapt will complain and fail
Expand Down
5 changes: 5 additions & 0 deletions core/java/android/nfc/INfcAdapter.aidl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/*
* Copyright (c) 2015, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -28,6 +31,7 @@ import android.nfc.INfcTag;
import android.nfc.INfcCardEmulation;
import android.nfc.INfcUnlockHandler;
import android.os.Bundle;
import android.os.IBinder;

/**
* @hide
Expand All @@ -37,6 +41,7 @@ interface INfcAdapter
INfcTag getNfcTagInterface();
INfcCardEmulation getNfcCardEmulationInterface();
INfcAdapterExtras getNfcAdapterExtrasInterface(in String pkg);
IBinder getNfcAdapterVendorInterface(in String vendor);

int getState();
boolean disable(boolean saveState);
Expand Down
11 changes: 7 additions & 4 deletions core/java/android/nfc/cardemulation/AidGroup.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Copyright (c) 2015, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -37,17 +40,17 @@
*
* @hide
*/
public final class AidGroup implements Parcelable {
public class AidGroup implements Parcelable {
/**
* The maximum number of AIDs that can be present in any one group.
*/
public static final int MAX_NUM_AIDS = 256;

static final String TAG = "AidGroup";

final List<String> aids;
final String category;
final String description;
protected List<String> aids;
protected String category;
protected String description;

/**
* Creates a new AidGroup object.
Expand Down
6 changes: 6 additions & 0 deletions core/java/android/nfc/tech/MifareClassic.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Copyright (C) 2015 NXP Semiconductors
* The original Work has been changed by NXP Semiconductors.
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -173,6 +175,10 @@ public MifareClassic(Tag tag) throws RemoteException {
mType = TYPE_CLASSIC;
mSize = SIZE_4K;
break;
case 0x19:
mType = TYPE_CLASSIC;
mSize = SIZE_2K;
break;
case 0x28:
mType = TYPE_CLASSIC;
mSize = SIZE_1K;
Expand Down
13 changes: 11 additions & 2 deletions core/java/android/nfc/tech/NfcA.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Copyright (C) 2015 NXP Semiconductors
* The original Work has been changed by NXP Semiconductors.
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -66,8 +68,15 @@ public static NfcA get(Tag tag) {
/** @hide */
public NfcA(Tag tag) throws RemoteException {
super(tag, TagTechnology.NFC_A);
Bundle extras = tag.getTechExtras(TagTechnology.NFC_A);
mSak = extras.getShort(EXTRA_SAK);
Bundle extras;
mSak = 0;
if(tag.hasTech(TagTechnology.MIFARE_CLASSIC))
{
extras = tag.getTechExtras(TagTechnology.MIFARE_CLASSIC);
mSak = extras.getShort(EXTRA_SAK);
}
extras = tag.getTechExtras(TagTechnology.NFC_A);
mSak |= extras.getShort(EXTRA_SAK);
mAtqa = extras.getByteArray(EXTRA_ATQA);
}

Expand Down
35 changes: 20 additions & 15 deletions core/java/android/os/RecoverySystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,22 +335,27 @@ public static void installPackage(Context context, File packageFile)
throws IOException {
String filename = packageFile.getCanonicalPath();

FileWriter uncryptFile = new FileWriter(UNCRYPT_FILE);
try {
uncryptFile.write(filename + "\n");
} finally {
uncryptFile.close();
}
// UNCRYPT_FILE needs to be readable by system server on bootup.
if (!UNCRYPT_FILE.setReadable(true, false)) {
Log.e(TAG, "Error setting readable for " + UNCRYPT_FILE.getCanonicalPath());
}
Log.w(TAG, "!!! REBOOTING TO INSTALL " + filename + " !!!");
final String cryptoStatus = SystemProperties.get("ro.crypto.state", "unsupported");
final boolean isEncrypted = "encrypted".equalsIgnoreCase(cryptoStatus);

// If the package is on the /data partition, write the block map file
// into COMMAND_FILE instead.
if (filename.startsWith("/data/")) {
filename = "@/cache/recovery/block.map";
if (isEncrypted) {
FileWriter uncryptFile = new FileWriter(UNCRYPT_FILE);
try {
uncryptFile.write(filename + "\n");
} finally {
uncryptFile.close();
}
// UNCRYPT_FILE needs to be readable by system server on bootup.
if (!UNCRYPT_FILE.setReadable(true, false)) {
Log.e(TAG, "Error setting readable for " + UNCRYPT_FILE.getCanonicalPath());
}
Log.w(TAG, "!!! REBOOTING TO INSTALL " + filename + " !!!");

// If the package is on the /data partition, write the block map file
// into COMMAND_FILE instead.
if (filename.startsWith("/data/")) {
filename = "@/cache/recovery/block.map";
}
}

final String filenameArg = "--update_package=" + filename;
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/preference/SeekBarVolumizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,11 @@ public void onReceive(Context context, Intent intent) {
int streamValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, -1);
updateVolumeSlider(streamType, streamValue);
} else if (AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION.equals(action)) {
final int oldRingerMode = mRingerMode;
if (mNotificationOrRing) {
mRingerMode = mAudioManager.getRingerModeInternal();
}
if (mAffectedByRingerMode) {
if (mAffectedByRingerMode && oldRingerMode != mRingerMode) {
updateSlider();
}
} else if (AudioManager.STREAM_DEVICES_CHANGED_ACTION.equals(action)) {
Expand Down
1 change: 0 additions & 1 deletion core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,6 @@ public static interface Validator {
// At one time in System, then Global, but now back in Secure
MOVED_TO_SECURE.add(Secure.INSTALL_NON_MARKET_APPS);

MOVED_TO_SECURE.add(System.DEV_FORCE_SHOW_NAVBAR);
MOVED_TO_SECURE.add(System.KEYBOARD_BRIGHTNESS);
MOVED_TO_SECURE.add(System.BUTTON_BRIGHTNESS);
MOVED_TO_SECURE.add(System.BUTTON_BACKLIGHT_TIMEOUT);
Expand Down
Loading