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

Add missing lockscreen drawables #23

Open
wants to merge 87 commits into
base: kk4.4-caf
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6304b93
Add missing lockscreen drawables
LordNerevar Dec 9, 2014
faf7b93
Revert "SystemUI: fix logic in smart pulldown all mode"
kufikugel Dec 15, 2014
da7f128
Automatic translation import
andi34 Dec 20, 2014
36f5b1f
Keyguard: Fix lockscreen selection view in landscape mode
zweif Nov 12, 2014
ad458cb
Keyguard Landscape: Fix Glowpad and SIM Pin Layout for sw360dp devices
Dec 20, 2014
657e640
ExternalStorageProvider: Use the UUID as title when the label is empty
defer Feb 18, 2015
728e70a
Add previous console on pstore to DropBox
toddpoynor Nov 23, 2013
c0f150d
Properly clean up when setting new InputFilter.
Mar 18, 2015
427e9b5
Fix data cycle calculation when CYCLE_WEEKLY
marado Mar 16, 2015
4dd5264
Externally Reported Moderate Security Issue: SQL Injection in WAPPush…
Oct 14, 2014
2f7ee78
AudioEffect JNI: use new max preprocessing constant
Nov 5, 2014
95f4b0c
frameworks: allow LockPatternView to be rotated
romanbb Aug 5, 2014
5ac63d6
Fix set pattern screen after rotating the device 1/2
Apr 1, 2015
1a8d780
Prevent system uid component from running in an app process
ogunwale Jun 25, 2015
c9a69c3
Convert all selinux_android_restorecon and _setfilecon calls to new API.
stephensmalley Feb 7, 2014
b5aec53
DO NOT MERGE Change to add STK_PERMISSION for stk related commands.
Jun 11, 2015
7233c04
National roaming info for new Tuenti MNC in Spain
Kra1o5 Sep 27, 2015
a3e498b
Check that the parcel contained the expected amount of region data. D…
LeonScroggins May 26, 2015
a3080c9
DO NOT MERGE: Ensure that unparcelling Region only reads the expected…
LeonScroggins May 29, 2015
8e445a7
Allow debugging only for apps forked from zygote DO NOT MERGE
Aug 10, 2015
326c591
DO NOT MERGE - Backport of ag/748165 to klp-dev Security patch level …
Sep 11, 2015
241b87f
Make Bitmap_createFromParcel check the color count. DO NOT MERGE
LeonScroggins Mar 11, 2015
c85cddf
Get rid of not specifying a user errors in bluetooth.
Mar 20, 2014
ad2b9fe
Merge remote-tracking branch 'slim/kk4.4-caf' into HEAD
LordNerevar Jan 7, 2016
f56bdd4
Fix graphics corruption caused by HWUI caches
Jan 9, 2014
69655e6
Fix previous patch to compile with out compiler settings
LordNerevar Jan 8, 2016
93b6827
Sync extras bundle comparison can throw NPE
Nov 12, 2015
274768f
AppOps: fix wifi scan op
romanbb Oct 27, 2015
b0de459
Augment SELinuxMMAC functionality.
r-craig Dec 2, 2013
8fdbb43
Allow PMS to restorecon directories under /data.
r-craig Mar 4, 2014
131777d
Proper security labeling of multi-user data directories.
r-craig Jul 29, 2013
9ebc1c3
Telephony: Update TD-SCDMA Network Type String
Oct 31, 2013
de92d2f
Telephony: Add functionality to handle ICC IO error
Feb 6, 2013
4993c58
Telephony: Add data rat constant
Oct 15, 2013
bc113de
Property constants to support OMH
Oct 7, 2013
a6d1aef
Telephony: Handle DATA_CALL_LIST in DCC.
Oct 5, 2013
1e25cea
MTU should be 1358 as per 3GPP standards, especially for LTE radio i…
Oct 14, 2014
09d7d8a
Telephony: Implementation for IWLAN.
Jan 14, 2014
a307587
frameworks/base: forward port DC-HSPAP support from cm-10
danidicky Dec 6, 2013
f60eaa5
Revert "Add support for BeiDou and Glonass"
Dec 4, 2013
4948fd3
Add support for BeiDou and Glonass
Aug 6, 2013
aa6805d
Fix derp on DC-HSPAP merge
LordNerevar Feb 18, 2016
1fd4444
NPE fix for SyncStorageEngine read authority
Feb 18, 2016
e056b53
DO NOT MERGE Redact Account info from getCurrentSyncs
mjwilliams43 Jan 19, 2016
d87e4d6
Don't pass URL path and username/password to PAC scripts
JensenPaul Apr 15, 2016
bf01fcd
DO NOT MERGE: Don't trust callers to supply app info to bindBackupAge…
Jun 11, 2016
82de2c3
Update ExifInterface.getDateTime to support subseconds
marcone May 29, 2015
c7ebe6f
ExifInterface: Add a few tag fields.
Jun 8, 2015
70b1708
DO NOT MERGE: Remove the use of JHEAD in ExifInterface
Jul 13, 2016
b538c5a
systemui: Unbreak the planet
hyperb1iss Sep 30, 2014
44e1044
WifiEnterpriseConfiguration: Do not print credentials in toString
pstew-dd Nov 11, 2015
2f6b68d
Updates for java-1.5 compatibility
LordNerevar Nov 13, 2016
04134c4
Fix string equality comparison
pstew-dd Mar 21, 2016
53208ec
DO NOT MERGE: Fix CTS regression
Jul 25, 2016
2d05e40
Process: Fix communication with zygote.
narayank Aug 9, 2016
cee6d0d
DO NOT MERGE: Clean up when recycling a pid with a pending launch
Aug 13, 2016
2a040bb
Fix vulnerability where large GPS XTRA data can be injected. -Can pot…
Jul 26, 2016
b1dac3b
DO NOT MERGE Check caller for sending media key to telephony service
jaewan-github Sep 21, 2016
5d671c2
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception b…
Sep 8, 2016
e985cc9
Avoid crashing when downloading MitM'd PAC that is too big
JensenPaul Aug 22, 2016
78a5a4e
Prevent FDs from being leaked when accepted sockets are closed
panickeraj Sep 8, 2016
f46303a
Fix setPairingConfirmation permissions issue (2/2)
panickeraj Sep 8, 2016
ea83ffc
DO NOT MERGE: Catch all exceptions when parsing IME meta data
tgtakaoka Sep 16, 2016
915c2fd
DO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sep 16, 2016
391e238
DO NOT MERGE Isolated processes don't get precached system service bi…
Oct 13, 2016
4d317aa
DO NOT MERGE) ExifInterface: Close the file when an exception happens
Oct 18, 2016
4c8d87b
Fix exploit where can hide the fact that a location was mocked am: a2…
Dec 22, 2016
7329cc9
[DO NOT MERGE] Check bounds in offsetToPtr
Feb 28, 2017
dcd2354
Back-port fixes for b/62196835
pweaver-google Jul 12, 2017
69b72c6
DO NOT MERGE. KEY_INTENT shouldn't grant permissions.
jsharkey Jun 12, 2017
b70b1f5
Adjust Uri host parsing to use last instead of first @.
Nov 7, 2017
d4fad7d
DO NOT MERGE Backporting potential usb tapjacking precaution.
Sep 1, 2017
027f8af
Prevent getting data from Clipboard if device is locked
siyamed Sep 6, 2017
30864b0
Fix ClipboardService device lock check for cross profile
siyamed Sep 13, 2017
9ba3ed4
Ran update-api
LordNerevar Mar 20, 2018
7cbfca2
Adjust URI host parsing to stop on \ character.
Jan 31, 2018
aab3132
Check for null-terminator in ResStringPool::string8At
Nov 10, 2017
96b9c31
ResStringPool: Fix security vulnerability
RyanMitch16 Apr 6, 2018
bd41581
DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name
Apr 26, 2018
21b625d
Fix the HIDE_NON_SYSTEM_OVERLAY_WINDOWS permission definition
Ziyann Jul 25, 2018
574b17e
ResStringPool: Prevenet boot loop from se fix
RyanMitch16 May 21, 2018
ad34efe
DO NOT MERGE. Persistable Uri grants still require permissions.
jsharkey Aug 7, 2018
cb1a4bb
DO NOT MERGE. Execute "strict" queries with extra parentheses.
jsharkey Jul 25, 2018
57776bc
Add config_hasRemovableLid
rmcc Nov 4, 2013
6c3de9e
Verify number of Map entries written to Parcel
Aug 25, 2018
c7d593b
Bluetooth: Check descriptors size in BluetoothHidDeviceAppSdpSettings
Nov 29, 2018
d61a0ad
RESTRICT AUTOMERGE Do not linkify text with RLO/LRO characters.
tony-mak Nov 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 34 additions & 7 deletions api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ package android {
field public static final int tertiary_text_dark = 17170448; // 0x1060010
field public static final int tertiary_text_light = 17170449; // 0x1060011
field public static final int transparent = 17170445; // 0x106000d
field public static final int trds_background = 17170460; // 0x106001c
field public static final int trds_text = 17170461; // 0x106001d
field public static final int white = 17170443; // 0x106000b
field public static final int widget_edittext_dark = 17170442; // 0x106000a
}
Expand Down Expand Up @@ -1494,10 +1496,12 @@ package android {
field public static final int keyboardView = 16908326; // 0x1020026
field public static final int list = 16908298; // 0x102000a
field public static final int message = 16908299; // 0x102000b
field public static final int monitor_box = 16908334; // 0x102002e
field public static final int paste = 16908322; // 0x1020022
field public static final int primary = 16908300; // 0x102000c
field public static final int progress = 16908301; // 0x102000d
field public static final int secondaryProgress = 16908303; // 0x102000f
field public static final int seek_bar = 16908335; // 0x102002f
field public static final int selectAll = 16908319; // 0x102001f
field public static final int selectTextMode = 16908333; // 0x102002d
field public static final int selectedIcon = 16908302; // 0x102000e
Expand All @@ -1513,8 +1517,6 @@ package android {
field public static final int title = 16908310; // 0x1020016
field public static final int toggle = 16908311; // 0x1020017
field public static final int widget_frame = 16908312; // 0x1020018
field public static final int monitor_box = 16908334; // 0x0102002e
field public static final int seek_bar = 16908335; // 0x0102002f
}

public static final class R.integer {
Expand Down Expand Up @@ -1566,9 +1568,9 @@ package android {
field public static final int simple_selectable_list_item = 17367061; // 0x1090015
field public static final int simple_spinner_dropdown_item = 17367049; // 0x1090009
field public static final int simple_spinner_item = 17367048; // 0x1090008
field public static final int slider_preference = 17367064; // 0x1090018
field public static final int test_list_item = 17367052; // 0x109000c
field public static final int two_line_list_item = 17367053; // 0x109000d
field public static final int slider_preference = 17367064; // 0x01090018
}

public static final class R.menu {
Expand Down Expand Up @@ -1600,6 +1602,7 @@ package android {
field public static final int cut = 17039363; // 0x1040003
field public static final int defaultMsisdnAlphaTag = 17039365; // 0x1040005
field public static final int defaultVoiceMailAlphaTag = 17039364; // 0x1040004
field public static final int default_string = 17039384; // 0x1040018
field public static final int dialog_alert_title = 17039380; // 0x1040014
field public static final int emptyPhoneNumber = 17039366; // 0x1040006
field public static final int httpErrorBadUrl = 17039367; // 0x1040007
Expand All @@ -1614,7 +1617,6 @@ package android {
field public static final int unknownName = 17039374; // 0x104000e
field public static final int untitled = 17039375; // 0x104000f
field public static final int yes = 17039379; // 0x1040013
field public static final int default_string = 17039384; // 0x01040018
}

public static final class R.style {
Expand Down Expand Up @@ -10542,7 +10544,6 @@ package android.hardware {
method public int getJpegQuality();
method public int getJpegThumbnailQuality();
method public android.hardware.Camera.Size getJpegThumbnailSize();
method public java.lang.String getPowerMode();
method public int getMaxExposureCompensation();
method public int getMaxNumDetectedFaces();
method public int getMaxNumFocusAreas();
Expand All @@ -10552,6 +10553,7 @@ package android.hardware {
method public int getMinExposureCompensation();
method public int getPictureFormat();
method public android.hardware.Camera.Size getPictureSize();
method public java.lang.String getPowerMode();
method public android.hardware.Camera.Size getPreferredPreviewSizeForVideo();
method public int getPreviewFormat();
method public void getPreviewFpsRange(int[]);
Expand Down Expand Up @@ -11999,6 +12001,7 @@ package android.media {
field public static final int ORIENTATION_UNDEFINED = 0; // 0x0
field public static final java.lang.String TAG_APERTURE = "FNumber";
field public static final java.lang.String TAG_DATETIME = "DateTime";
field public static final java.lang.String TAG_DATETIME_DIGITIZED = "DateTimeDigitized";
field public static final java.lang.String TAG_EXPOSURE_TIME = "ExposureTime";
field public static final java.lang.String TAG_FLASH = "Flash";
field public static final java.lang.String TAG_FOCAL_LENGTH = "FocalLength";
Expand All @@ -12017,6 +12020,9 @@ package android.media {
field public static final java.lang.String TAG_MAKE = "Make";
field public static final java.lang.String TAG_MODEL = "Model";
field public static final java.lang.String TAG_ORIENTATION = "Orientation";
field public static final java.lang.String TAG_SUBSEC_TIME = "SubSecTime";
field public static final java.lang.String TAG_SUBSEC_TIME_DIG = "SubSecTimeDigitized";
field public static final java.lang.String TAG_SUBSEC_TIME_ORIG = "SubSecTimeOriginal";
field public static final java.lang.String TAG_WHITE_BALANCE = "WhiteBalance";
field public static final int WHITEBALANCE_AUTO = 0; // 0x0
field public static final int WHITEBALANCE_MANUAL = 1; // 0x1
Expand Down Expand Up @@ -17448,6 +17454,7 @@ package android.os {
field public static final java.lang.String RELEASE;
field public static final deprecated java.lang.String SDK;
field public static final int SDK_INT;
field public static final java.lang.String SECURITY_PATCH;
}

public static class Build.VERSION_CODES {
Expand Down Expand Up @@ -17591,7 +17598,7 @@ package android.os {

public abstract class CountDownTimer {
ctor public CountDownTimer(long, long);
method public final void cancel();
method public final synchronized void cancel();
method public abstract void onFinish();
method public abstract void onTick(long);
method public final synchronized android.os.CountDownTimer start();
Expand Down Expand Up @@ -18772,6 +18779,23 @@ package android.preference {
method public void setShowSilent(boolean);
}

public class SlimSeekBarPreference extends android.preference.Preference implements android.widget.SeekBar.OnSeekBarChangeListener {
ctor public SlimSeekBarPreference(android.content.Context, android.util.AttributeSet);
method public void disablePercentageValue(boolean);
method public void disableText(boolean);
method public void isMilliseconds(boolean);
method public void minimumValue(int);
method public void multiplyValue(int);
method public void onProgressChanged(android.widget.SeekBar, int, boolean);
method public void onStartTrackingTouch(android.widget.SeekBar);
method public void onStopTrackingTouch(android.widget.SeekBar);
method public void setDefault(int);
method public void setInitValue(int);
method public void setInterval(int);
field public int interval;
field public static int maximum;
}

public class SwitchPreference extends android.preference.TwoStatePreference {
ctor public SwitchPreference(android.content.Context, android.util.AttributeSet, int);
ctor public SwitchPreference(android.content.Context, android.util.AttributeSet);
Expand Down Expand Up @@ -21251,12 +21275,14 @@ package android.provider {
field public static final android.net.Uri DEFAULT_NOTIFICATION_URI;
field public static final android.net.Uri DEFAULT_RINGTONE_URI;
field public static final deprecated java.lang.String DEVICE_PROVISIONED = "device_provisioned";
field public static final java.lang.String DIALKEY_PADDING = "dialkey_padding";
field public static final deprecated java.lang.String DIM_SCREEN = "dim_screen";
field public static final java.lang.String DTMF_TONE_WHEN_DIALING = "dtmf_tone";
field public static final java.lang.String END_BUTTON_BEHAVIOR = "end_button_behavior";
field public static final java.lang.String FONT_SCALE = "font_scale";
field public static final java.lang.String HAPTIC_FEEDBACK_ENABLED = "haptic_feedback_enabled";
field public static final deprecated java.lang.String HTTP_PROXY = "http_proxy";
field public static final java.lang.String INCALL_GLOWPAD_TRANSPARENCY = "incall_glowpad_transparency";
field public static final deprecated java.lang.String INSTALL_NON_MARKET_APPS = "install_non_market_apps";
field public static final deprecated java.lang.String LOCATION_PROVIDERS_ALLOWED = "location_providers_allowed";
field public static final deprecated java.lang.String LOCK_PATTERN_ENABLED = "lock_pattern_autolock";
Expand Down Expand Up @@ -21801,7 +21827,7 @@ package android.renderscript {
}

public class BaseObj {
method public synchronized void destroy();
method public void destroy();
method public java.lang.String getName();
method public void setName(java.lang.String);
}
Expand Down Expand Up @@ -32737,6 +32763,7 @@ package android.widget {
method public boolean isFlipping();
method public void setAutoStart(boolean);
method public void setFlipInterval(int);
method public void setSelfMaintained(boolean);
method public void startFlipping();
method public void stopFlipping();
}
Expand Down
10 changes: 6 additions & 4 deletions core/java/android/app/ActivityManagerNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -1444,9 +1444,10 @@ public boolean onTransact(int code, Parcel data, Parcel reply, int flags)

case START_BACKUP_AGENT_TRANSACTION: {
data.enforceInterface(IActivityManager.descriptor);
ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(data);
String packageName = data.readString();
int backupRestoreMode = data.readInt();
boolean success = bindBackupAgent(info, backupRestoreMode);
int userId = data.readInt();
boolean success = bindBackupAgent(packageName, backupRestoreMode, userId);
reply.writeNoException();
reply.writeInt(success ? 1 : 0);
return true;
Expand Down Expand Up @@ -3168,13 +3169,14 @@ public IBinder peekService(Intent service, String resolvedType) throws RemoteExc
return binder;
}

public boolean bindBackupAgent(ApplicationInfo app, int backupRestoreMode)
public boolean bindBackupAgent(String packageName, int backupRestoreMode, int userId)
throws RemoteException {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeInterfaceToken(IActivityManager.descriptor);
app.writeToParcel(data, 0);
data.writeString(packageName);
data.writeInt(backupRestoreMode);
data.writeInt(userId);
mRemote.transact(START_BACKUP_AGENT_TRANSACTION, data, reply, 0);
reply.readException();
boolean success = reply.readInt() != 0;
Expand Down
4 changes: 2 additions & 2 deletions core/java/android/app/AppOpsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public class AppOpsManager {
OP_WRITE_CALL_LOG,
OP_READ_CALENDAR,
OP_WRITE_CALENDAR,
OP_COARSE_LOCATION,
OP_WIFI_SCAN,
OP_POST_NOTIFICATION,
OP_COARSE_LOCATION,
OP_CALL_PHONE,
Expand Down Expand Up @@ -370,8 +370,8 @@ public class AppOpsManager {
android.Manifest.permission.WRITE_CALL_LOG,
android.Manifest.permission.READ_CALENDAR,
android.Manifest.permission.WRITE_CALENDAR,
null, // no permission for wifi scan available
null, // no permission required for notifications
android.Manifest.permission.ACCESS_WIFI_STATE,
null, // neighboring cells shares the coarse location perm
android.Manifest.permission.CALL_PHONE,
android.Manifest.permission.READ_SMS,
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/app/IActivityManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void serviceDoneExecuting(IBinder token, int type, int startId,
int res) throws RemoteException;
public IBinder peekService(Intent service, String resolvedType) throws RemoteException;

public boolean bindBackupAgent(ApplicationInfo appInfo, int backupRestoreMode)
public boolean bindBackupAgent(String packageName, int backupRestoreMode, int userId)
throws RemoteException;
public void clearPendingBackup() throws RemoteException;
public void backupAgentCreated(String packageName, IBinder agent) throws RemoteException;
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothA2dp.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothA2dp.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth A2DP Service with " + intent);
return false;
}
Expand Down
8 changes: 6 additions & 2 deletions core/java/android/bluetooth/BluetoothDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,11 @@ public String getName() {
return null;
}
try {
return sService.getRemoteName(this);
String name = sService.getRemoteName(this);
if (name != null) {
return name.replaceAll("[\\t\\n\\r]+", " ");
}
return null;
} catch (RemoteException e) {Log.e(TAG, "", e);}
return null;
}
Expand Down Expand Up @@ -1023,7 +1027,7 @@ public boolean setPasskey(int passkey) {

/**
* Confirm passkey for {@link #PAIRING_VARIANT_PASSKEY_CONFIRMATION} pairing.
* <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
* <p>Requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED}.
*
* @return true confirmation has been sent out
* false for error
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothDun.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothDun.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Dun Service with " + intent);
return false;
}
Expand Down
6 changes: 4 additions & 2 deletions core/java/android/bluetooth/BluetoothHandsfreeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ public void onBluetoothStateChange(boolean up) {
try {
if (mService == null) {
if (VDBG) Log.d(TAG,"Binding service...");
if (!mContext.bindService(new Intent(IBluetoothHandsfreeClient.class.getName()), mConnection, 0)) {
if (!mContext.bindServiceAsUser(new Intent(IBluetoothHandsfreeClient.class.getName()), mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Handsfree Client Service");
}
}
Expand Down Expand Up @@ -419,7 +420,8 @@ public void onBluetoothStateChange(boolean up) {
}
}

if (!context.bindService(new Intent(IBluetoothHandsfreeClient.class.getName()), mConnection, 0)) {
if (!context.bindServiceAsUser(new Intent(IBluetoothHandsfreeClient.class.getName()), mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Handsfree Client Service");
}
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothHeadset.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothHeadset.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Headset Service with " + intent);
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothHealth.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothHealth.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Health Service with " + intent);
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothHidDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothHidDevice.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth HID Device Service with " + intent);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@

import android.os.Parcel;
import android.os.Parcelable;
import android.util.EventLog;

import java.util.Random;

/** @hide */
public final class BluetoothHidDeviceAppSdpSettings implements Parcelable {

private static final int MAX_DESCRIPTOR_SIZE = 2048;

final public String name;
final public String description;
final public String provider;
Expand All @@ -38,6 +41,12 @@ public BluetoothHidDeviceAppSdpSettings(String name, String description, String
this.description = description;
this.provider = provider;
this.subclass = subclass;

if (descriptors == null || descriptors.length > MAX_DESCRIPTOR_SIZE) {
EventLog.writeEvent(0x534e4554, "119819889", -1, "");
throw new IllegalArgumentException("descriptors must be not null and shorter than "
+ MAX_DESCRIPTOR_SIZE);
}
this.descriptors = descriptors.clone();
}

Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothInputDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothInputDevice.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth HID Service with " + intent);
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothMap.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth MAP Service with " + intent);
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/bluetooth/BluetoothPan.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ boolean doBind() {
Intent intent = new Intent(IBluetoothPan.class.getName());
ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
intent.setComponent(comp);
if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
android.os.Process.myUserHandle())) {
Log.e(TAG, "Could not bind to Bluetooth Pan Service with " + intent);
return false;
}
Expand Down