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

Smart Pixels and P Volume Panel #10

Open
wants to merge 82 commits into
base: oreo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
1b6a6b0
Proper autofill fix to let phone process autofill Settings activity.
the-felipeal Dec 11, 2017
4708368
Rework thumbnail cleanup
marcone Nov 7, 2017
fda6995
Use concrete CREATOR instance for parceling lists
Mar 16, 2018
d5e98d9
RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (…
Mar 27, 2018
17552c3
ResStringPool: Fix security vulnerability
RyanMitch16 Apr 6, 2018
ebf8e3c
DO NOT MERGE (O) Revoke permision when group changed
moltmann Apr 12, 2018
11c2698
Fix broken check for TelephonyManager#getForbiddenPlmns
Apr 14, 2018
86ac001
DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name
Apr 26, 2018
1449bd2
Osu: fixed Mismatch between createFromParcel and writeToParcel
eccopark May 3, 2018
959db06
Nullcheck to fix Autofill CTS
Dec 11, 2017
51f7f6b
clearCallingIdentity before calling into getPackageUidAsUser
tony-mak Dec 14, 2017
df55e0a
DO NOT MERGE: Fix ConnectivityController meteredness checks
May 4, 2018
a3ae24c
DO NOT MERGE: Add unit tests to ensure VPN meteredness
Feb 20, 2018
dc76622
WM: Prevent secondary display focus while keyguard is up
adrianroos May 22, 2018
0e50de3
Make safe label more safe
May 3, 2018
6ab2779
ResStringPool: Prevenet boot loop from se fix
RyanMitch16 May 21, 2018
e87a7c9
Fix DynamicRefTable::load security bug
RyanMitch16 May 30, 2018
d14a122
Backport Prevent shortcut info package name spoofing
Jun 12, 2018
44f897a
Resolve inconsistent parcel read in NanoAppFilter
Jun 25, 2018
43631a4
vpn: allow IPSec traffic through Always-on VPN
codewiz May 28, 2018
70346ba
Fix TrackInfo parcel write
rjsh Jul 9, 2018
4df41c7
Merge cherrypicks of [4691111, 4689862, 4690575, 4690576, 4690577, 46…
Aug 3, 2018
59bc89a
SystemUI: Smart Pixels [1/2]
frap129 Jan 4, 2018
8a070a9
SystemUI: Add Smart Pixels tile
adindotdev Apr 8, 2018
d02415d
SystemUI: Refactor Smart Pixels tile
adindotdev Apr 13, 2018
d0b34ac
Fix NullPointerException on systemui restart with smart pixel enabled.
nickdoherty81 Apr 14, 2018
ff6aa0e
Move Smart Pixels out of SystemUI
Apr 18, 2018
04c0ce1
Smart Pixels: Switch to registered receiver
adindotdev Apr 18, 2018
9e403fa
Make sure apps cannot forge package name on AssistStructure used for …
the-felipeal Dec 1, 2017
bdfe972
Proper autofill fix to let phone process autofill Settings activity.
the-felipeal Dec 11, 2017
fbbc3fb
DO NOT MERGE - fix AFM.getComponentNameFromContext()
the-felipeal Jan 22, 2018
4f2587a
Rework thumbnail cleanup
marcone Nov 7, 2017
c1db43a
Use concrete CREATOR instance for parceling lists
Mar 16, 2018
0da68f3
RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (…
Mar 27, 2018
4ab6bce
ResStringPool: Fix security vulnerability
RyanMitch16 Apr 6, 2018
fcd5767
DO NOT MERGE (O) Revoke permision when group changed
moltmann Apr 12, 2018
2c8e19d
Fix broken check for TelephonyManager#getForbiddenPlmns
Apr 14, 2018
9214edb
DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name
Apr 26, 2018
1112a8b
Osu: fixed Mismatch between createFromParcel and writeToParcel
eccopark May 3, 2018
275d49f
Nullcheck to fix Autofill CTS
Dec 11, 2017
13343c1
clearCallingIdentity before calling into getPackageUidAsUser
tony-mak Dec 14, 2017
007288b
DO NOT MERGE: Fix ConnectivityController meteredness checks
May 4, 2018
eef265c
DO NOT MERGE: Add unit tests to ensure VPN meteredness
Feb 20, 2018
03af9f2
WM: Prevent secondary display focus while keyguard is up
adrianroos May 22, 2018
d0c09ae
Make safe label more safe
May 3, 2018
92aed32
ResStringPool: Prevenet boot loop from se fix
RyanMitch16 May 21, 2018
906afb4
Fix DynamicRefTable::load security bug
RyanMitch16 May 30, 2018
faf2dc9
Backport Prevent shortcut info package name spoofing
Jun 12, 2018
eabaff1
Resolve inconsistent parcel read in NanoAppFilter
Jun 25, 2018
7d8ce93
vpn: allow IPSec traffic through Always-on VPN
codewiz May 28, 2018
f28568c
Fix TrackInfo parcel write
rjsh Jul 9, 2018
3c2c834
Merge cherrypicks of [4741663, 4741664, 4741665, 4741666, 4743080, 47…
Aug 10, 2018
89be24c
Optimise the hit test algorithm
mihaipopa12 May 9, 2018
ab8e82d
DO NOT MERGE. Persistable Uri grants still require permissions.
jsharkey Aug 7, 2018
1a16165
DO NOT MERGE. Execute "strict" queries with extra parentheses.
jsharkey Jul 25, 2018
136692b
DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.
jsharkey Jul 25, 2018
1cd4656
RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed pac…
Jul 19, 2018
6033d76
Fix crash during cursor moving on BiDi text
nona-google Jul 19, 2018
e94adc9
Merge cherrypicks of [4787603, 4787134, 4787604, 4786834, 4787135, 47…
Aug 16, 2018
c072f66
Implement Android P Volume Panel
IacobIonut01 Jun 28, 2018
64d9fe1
Stock recents: use round corners for headers
ai94iq Jun 11, 2018
231d7a9
Add Smart pixels tile to QS tiles options
aoleary Aug 24, 2018
2163527
Revert "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be rem…
Aug 29, 2018
0b434bf
Merge cherrypicks of [4902728, 4902589, 4902590] into oc-m7-release
Aug 30, 2018
c9bc35a
RESTRICT AUTOMERGE: Hide overlay windows when requesting media projec…
ogunwale May 16, 2018
552371d
RESTRICT AUTOMERGE: Check both self and shared user id package for re…
Aug 24, 2018
117ca49
Verify number of Map entries written to Parcel
Aug 25, 2018
bde102f
Merge cherrypicks of [4997814, 4997815, 4997816, 4996950, 4996344, 49…
Sep 11, 2018
2671bd0
Force Expanded Notifications [1/2]
Jan 6, 2014
6cf16e7
Add edge gestures (1/2)
Feb 23, 2018
fa8cb9b
Revert "Add edge gestures (1/2)"
aoleary Sep 24, 2018
1219e37
RESTRICT AUTOMERGE: Revert "RESTRICT AUTOMERGE: Check both self and s…
Sep 28, 2018
f9cc11e
Merge cherrypicks of [5142118] into oc-m7-release
Sep 28, 2018
458afeb
[Base:1/2] Add back Edge gestures
AmolAmrit Aug 18, 2018
9be443d
Make ThemeAccentsUtils accessible to other packages
Jul 1, 2018
d555ba5
[Base 1/2] QS Tile Icon Accent Toggle
SuperDroidBond Jul 30, 2018
f72806d
Base: Add Quick Settings Pulldown options [1/2]
romanbb Nov 11, 2015
77d55e7
Revert "Base: Add Quick Settings Pulldown options [1/2]"
aoleary Jan 29, 2019
aff299d
Merge tag 'android-8.1.0_r42' into 8.1
aoleary Jan 29, 2019
d866eeb
Merge tag 'android-8.1.0_r45' of https://android.googlesource.com/pla…
aoleary Feb 1, 2019
ec1226f
Merge tag 'android-8.1.0_r47' of https://android.googlesource.com/pla…
aoleary Feb 8, 2019
e124118
Merge tag 'android-8.1.0_r50' into 8.1
aoleary Feb 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ LOCAL_SRC_FILES += \
core/java/android/service/voice/IVoiceInteractionSession.aidl \
core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
core/java/android/service/gesture/IGestureService.aidl \
core/java/android/service/gesture/IEdgeGestureService.aidl \
core/java/android/service/gesture/IEdgeGestureActivationListener.aidl \
core/java/android/service/gesture/IEdgeGestureHostCallback.aidl \
core/java/android/service/wallpaper/IWallpaperConnection.aidl \
core/java/android/service/wallpaper/IWallpaperEngine.aidl \
core/java/android/service/wallpaper/IWallpaperService.aidl \
Expand Down
19 changes: 14 additions & 5 deletions core/java/android/content/pm/PackageItemInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
*/
public class PackageItemInfo {
private static final float MAX_LABEL_SIZE_PX = 500f;
/** The maximum length of a safe label, in characters */
private static final int MAX_SAFE_LABEL_LENGTH = 50000;

/**
* Public name of this item. From the "android:name" attribute.
*/
Expand Down Expand Up @@ -169,7 +172,8 @@ public CharSequence loadLabel(PackageManager pm) {
// If the label contains new line characters it may push the UI
// down to hide a part of it. Labels shouldn't have new line
// characters, so just truncate at the first time one is seen.
final int labelLength = labelStr.length();
final int labelLength = Math.min(labelStr.length(), MAX_SAFE_LABEL_LENGTH);
final StringBuffer sb = new StringBuffer(labelLength);
int offset = 0;
while (offset < labelLength) {
final int codePoint = labelStr.codePointAt(offset);
Expand All @@ -181,14 +185,19 @@ public CharSequence loadLabel(PackageManager pm) {
break;
}
// replace all non-break space to " " in order to be trimmed
final int charCount = Character.charCount(codePoint);
if (type == Character.SPACE_SEPARATOR) {
labelStr = labelStr.substring(0, offset) + " " + labelStr.substring(offset +
Character.charCount(codePoint));
sb.append(' ');
} else {
sb.append(labelStr.charAt(offset));
if (charCount == 2) {
sb.append(labelStr.charAt(offset + 1));
}
}
offset += Character.charCount(codePoint);
offset += charCount;
}

labelStr = labelStr.trim();
labelStr = sb.toString().trim();
if (labelStr.isEmpty()) {
return packageName;
}
Expand Down
3 changes: 2 additions & 1 deletion core/java/android/database/sqlite/SQLiteDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,8 @@ public void execSQL(String sql, Object[] bindArgs) throws SQLException {
executeSql(sql, bindArgs);
}

private int executeSql(String sql, Object[] bindArgs) throws SQLException {
/** {@hide} */
public int executeSql(String sql, Object[] bindArgs) throws SQLException {
acquireReference();
try {
if (DatabaseUtils.getSqlStatementType(sql) == DatabaseUtils.STATEMENT_ATTACH) {
Expand Down
Loading