Skip to content
Open
Changes from 1 commit
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
4ef8c7b
SystemUI: Add missing accessibility message for volume panel QS tile
mikeNG Sep 26, 2015
eeb4bd2
Tether: add ipa tether stats to the existing design
May 25, 2015
7115425
Revert "Revert "Revert "Themes: Don't use themed fonts for non themab…
temasek Sep 27, 2015
c23b69a
Revert "Fix issue where non-themable app still had themed fonts"
temasek Sep 27, 2015
9d68c90
Disable Lockscreen Media Art [1/2]
Beanstown Sep 12, 2015
97969b0
base: cache power profiles support
jruesga Sep 26, 2015
1ee6a25
Shorten first boot time by filtering dexopted apps by LRU.
jeffyhao Sep 23, 2015
c368690
Add System Property for Resolver
Sep 28, 2015
23d02fb
PowerManager: change performance profile when disabling battery saver
romanbb Sep 28, 2015
77a592a
SystemUI: Hide perf profile tile on devices without perf profiles
mikeNG Sep 25, 2015
8d40bbb
Fixed Possible Resolver Infinite Loop
Sep 28, 2015
9bd9ff3
pm: Fix PackageManagerTests for testGetKeySetByAlias.
Sep 23, 2015
4bf0d31
QS: long press expanded desktop tile for detail view
Altaf-Mahdi Sep 11, 2015
43613f6
QS: long press flashlight tile for detail view
Altaf-Mahdi Sep 13, 2015
2bf1dd4
SystemUI: fix switching from task manager to detailed view
Altaf-Mahdi Sep 13, 2015
cd6335d
services: core: server: NetworkManagementService: Mute getNetworkStat…
ZdrowyGosciu Oct 1, 2015
c4bacca
Merge pull request #98 from ZdrowyGosciu/network
temasek Oct 1, 2015
1b7e9c5
Fix FileManager Interaction
Sep 30, 2015
60d3694
On The Go: Fix and tint power menu icon
MrApocalypse Sep 23, 2015
c97f54c
prebundled: Handle prebundled packages per-user.
Sep 15, 2015
d7f49e3
pm: Create per-mcc prebundled install filter.
Sep 29, 2015
7f2856f
SettingsProvider: Load per SKU default theme.
Oct 2, 2015
b47fd2e
bootanim: Display SKU-specific variants if present
rmcc Oct 1, 2015
2f6a7a6
SystemUI: bail out of recents-to-home animation when losing focus
romanbb Oct 2, 2015
761f7e0
Check for externally installed apps if sdcard ejected
0xD34D Oct 2, 2015
915c169
pm: Update PackageManagerSettingsTests.
Oct 2, 2015
f927eb5
Automatic translation import
mikeNG Oct 2, 2015
a49f0f0
implement noise suppression for phone calls (1/2)
Nov 24, 2012
aa191a0
2G Network doesn't connects always for some carriers
Oct 2, 2015
d2b0cd4
battery: Add fast charging UI support [3/3]
crpalmer Sep 12, 2015
f6bbaed
base: show again qs brightness mode toggle
maxwen Sep 26, 2015
3fbc1e4
SystemUI: remove extra space when brightness slider is disabled
Altaf-Mahdi Sep 29, 2015
f69f220
Revert "[1/2] Base: option to launch heads up in floating mode."
temasek Oct 3, 2015
8e7968b
Revert "HeadsUp: only snooze when swiping up"
temasek Oct 3, 2015
3f0b944
Revert "Don't dismiss notification if expanding status bar from top o…
temasek Oct 3, 2015
aacb535
Revert "[Heads up] get back with expand status bar when we swipe down…
temasek Oct 3, 2015
d20cce0
Revert "Base: HeadsUp snooze function [1/2]"
temasek Oct 3, 2015
8bf3fc1
Revert "Improve HeadsUp [1/2]"
temasek Oct 3, 2015
284ae03
Revert "HeadsUpNotificationView: Remove mExpandHelper"
temasek Oct 3, 2015
aa653b3
Revert "[Heads up] Don't show heads up while IME is showing"
temasek Oct 3, 2015
7771514
Revert "[Heads up] Touch outside to hide (1/2)"
temasek Oct 3, 2015
5275816
Revert "[Heads up] Add touch outside event"
temasek Oct 3, 2015
349a296
Revert "Base: HeadsUp options [1/2]"
temasek Oct 3, 2015
991cd8c
Revert "SystemUi: Prioritize call notifications which interrupt."
temasek Oct 3, 2015
7ce1272
Frameworks: Actually start to use HEADS_UP_REQUESTED extra
kufikugel Dec 4, 2014
b7e92cc
Frameworks: Slim heads up customizations for LP (1/2)
kufikugel Dec 12, 2014
46a3435
Frameworks: Only set package name on user heads ups
kufikugel Dec 14, 2014
ea26030
Frameworks: Be sure heads up view is attached before removing it
kufikugel Dec 15, 2014
b6e7c62
Heads up notifications behavior fix
victorlapin May 25, 2015
8327f7e
Fixed non-intrusive incoming call.
victorlapin Jun 14, 2015
b0f8068
SystemUI: fix heads up snooze button
dankoman30 Jun 27, 2015
9794a6b
[2/2] SlimHeadsUp: Add a global 3-way switch
yank555-lu Jul 2, 2015
3b9f9fc
SystemUI: better choice for heads up snooze icon
dankoman30 Jul 6, 2015
ea457ba
[1/2] Non-intrusive InCall UI switch
victorlapin Jun 25, 2015
05fdf8a
Revert "Fix Heads-up tile transparency in off state"
temasek Oct 3, 2015
8bb5450
Revert "QS: Clean up heads up tile (1/2)"
temasek Oct 3, 2015
5d65983
Revert "StatusBarHeader: update headsup button onclick"
temasek Oct 3, 2015
3ea1f78
Revert "SystemUI: add HeadsUp button in status bar header (1/2)"
temasek Oct 3, 2015
5996f79
Revert "Framework: StatusBar Ticker (1/2)"
temasek Oct 4, 2015
581e35b
Framework: StatusBar Ticker (1/2)
Jubakuba Oct 17, 2014
7177b7e
Frameworks: Remove leftovers & fix build for heads up (1/2)
temasek Oct 4, 2015
c86d7e9
Revert "battery: Add fast charging UI support [3/3]"
temasek Oct 5, 2015
51e3a6a
Revert "2G Network doesn't connects always for some carriers"
temasek Oct 5, 2015
6345498
Don't unregister Fonts from renderer at destruction
ChrisCraik Oct 2, 2015
e479bd1
Revert "Revert "SystemUi: Prioritize call notifications which interru…
temasek Oct 5, 2015
ed4a99b
Revert "base: Fix notification sounds for wifi only devices"
crpalmer Sep 30, 2015
124ff51
Revert "NotificationTile: Ring ring my bell"
temasek Oct 5, 2015
533c543
Add back observer
temasek Oct 6, 2015
df8473d
DO NOT MERGE. Truncate and ellipsize app name if too long for dialog.
Aug 24, 2015
0920265
Allow debugging only for apps forked from zygote
Aug 10, 2015
ebc738a
Merge tag 'android-5.1.1_r23' into cm-12.1
rmcc Oct 5, 2015
41ddbd5
Fix issue #23116383: Include security patch level in Settings
Aug 12, 2015
4bad24a
Add config to show WiFi/data activity indicators
intervigilium Sep 15, 2015
fa22407
Keyguard: Third party keyguard support
0xD34D Jun 3, 2015
28f4c88
Live lock screen support [1/2]
0xD34D May 20, 2015
8db7d93
AudioService: allow volume control on analog dock
TDR Jan 16, 2013
82a3d89
Add Dock USB Audio Support for Samsung Car / Desk Docks
StevenHarperUK Dec 9, 2012
d23a7ba
audio: Add overlay to fix analog docks.
bbelos May 2, 2013
83a727f
core: Fix AOSP ES typo
mikeNG Oct 6, 2015
92bfc69
Disable default blending when drawing color rect
Sep 30, 2015
aee4017
Frameworks/base: Fix AdapterViewAnimator.createOrReuseLayoutParams
agampe Mar 15, 2015
b45baf2
Remove hard-coded DrawSelectorOnTop on ListFragment's default ListView.
Aug 8, 2013
501b84d
Text size for empty view shall be styled according to theme
Jul 3, 2014
6773d0b
Reset the setOnKeyListener callback when view is destroyed
Feb 9, 2015
c682991
IndexOutOfBoundsException on addPreference in PreferenceGroup
Feb 4, 2014
27c1452
[1/2] Base: option to launch heads up in floating mode.
lion0738 Jun 27, 2015
181819a
BatteryService: Prevent UUC scenarios at 0%
rmcc Oct 2, 2015
31262f9
Window rotation: fix up sensor logic
romanbb Oct 7, 2015
c7ff079
RotationPolicy: fix rotation toggle logic
romanbb Oct 8, 2015
2a35511
PackageManager : Extend prebundled logic
Danesh Oct 8, 2015
06366f9
Revert "[1/2] Base: option to launch heads up in floating mode."
temasek Oct 9, 2015
7fa174f
PhoneWindowManager: Update navigation bar policy
temasek Oct 9, 2015
8c5e8b7
Retry if interrupted before mMessageThread has joined
pirama-arumuga-nainar Oct 2, 2015
c7f499f
Safely handle interrupts during Thread.join()
pirama-arumuga-nainar Oct 2, 2015
be67891
[1/2] Heads up touch outside behavior
cristianomatos Oct 7, 2015
1cb981b
Make accessing mInputMethodTarget thread-safe
tiger-huang Oct 1, 2015
f2d996c
Revert "Support package signature faking used by µg GmsCore"
temasek Oct 9, 2015
e1c9db3
[1/2] core: Add support for fake signatures, enabled by developer set…
mar-v-in Oct 9, 2015
515f935
SettingsProvider : load region-specific settings for mobile data
Oct 9, 2015
46b0e11
Add live lock screen previews [1/2]
0xD34D Oct 9, 2015
6df6077
Add volume boosted ringtones (2/2)
ciwrl Oct 8, 2015
d5bd63a
FINALLY lockscreen to sleep can be turn offf
gazachin Oct 2, 2015
1eff747
NVIDIA Shield Controller support [2/2]
BitOBSessiOn Sep 28, 2015
c743fba
Revert "SystemUI : Navbar ring five targets"
temasek Oct 10, 2015
d2867dc
Fix huge bounce-back in ListView when double-flinging
kaznacheev Jun 18, 2015
84c31a6
Fix rotation tile animation
Monkopedia Jun 11, 2015
76c6dc4
Fix horrible warning on every systemui startup.
Jun 9, 2015
e7c92b1
Revert "RotationPolicy: fix rotation toggle logic"
romanbb Oct 10, 2015
4d85688
Multiple LEDs [3/3]: Illumination Bars support
AdrianDC Aug 22, 2015
8cf82c0
Don't accidently clear TRANSPARENT_VERTICAL_NAV
Oct 9, 2015
e24b249
Automatic translation import
mikeNG Oct 12, 2015
39ea8dc
Fix invisible rotation tile
Monkopedia Jun 15, 2015
02141a6
Revert "PackageManager : Extend prebundled logic"
temasek Oct 13, 2015
b70c95d
Revert "pm: Update PackageManagerSettingsTests."
temasek Oct 13, 2015
98be6e8
Revert "bootanim: Display SKU-specific variants if present"
temasek Oct 13, 2015
424dfc0
Revert "pm: Create per-mcc prebundled install filter."
temasek Oct 13, 2015
4e153be
Handle 'root' pseudo-package in the appops command
Snild-Sony Sep 3, 2015
68ece28
FingerprintService: synchronize access to clients
romanbb Oct 13, 2015
0af69e8
Switch packages and services in frameworks not on the bootclasspath t…
Sep 30, 2015
b829ab3
QSPanel: Update QS brightness slider to use CMSettings
temasek Oct 14, 2015
81e39ff
Services : Ensure proximity check is taken into consideration
Danesh Aug 5, 2014
a6f5718
SystemUI: Update screenshot notification icon to material
mikeNG Oct 7, 2015
1509d70
SystemUI: attach a queue to media player notifications
romanbb Jul 17, 2015
dd258f2
Revert "services: core: server: NetworkManagementService: Mute getNet…
temasek Oct 16, 2015
3309d2d
Fix network stats logspam.
maniac103 Oct 16, 2015
c03c767
Revert "Modify SILENT profile to restrict notification sound"
Danesh Oct 15, 2015
e35ed3f
ZenMode : Remove config_setZenModeWhenSilentModeOn
Danesh Oct 15, 2015
874c47e
Support for faster brightness response to light changes.
Feb 6, 2015
ac89fbb
Lights Modes: Avoid regular values updates
AdrianDC Oct 19, 2015
1602fdb
base: initialized context ContentResolver reference before use it.
jruesga Oct 19, 2015
8b6a300
Automatic translation import
mikeNG Oct 21, 2015
cca03a0
Ensure state transition of paused activity.
Oct 20, 2015
6a335a4
SystemUI: Improve play queue string
mikeNG Oct 17, 2015
c33e81e
AssetAtlasService: fix a potential race condition
Apr 7, 2015
756e1bd
Wifi tile: don't set items visible from non-ui thread
romanbb Oct 19, 2015
fc6f87f
Fix crash if Exif-Tag buffer-length and component-count are both 0
tobigun Jul 19, 2015
f782bf8
Fix system ui NPE on landscape theme change
westcripp Oct 24, 2015
e9ee5fd
[Base] Back with Heads up configurable swipe behavior
cristianomatos Oct 20, 2015
e488b54
Revert "Turn off screen pinning off by default in recents"
temasek Oct 27, 2015
3da73dd
Revert "Screen pinning improvements"
temasek Oct 27, 2015
06d6034
base: Locked apps to exclude from dismiss all
ghbhaha Jun 15, 2015
17f3a43
Revert "autobrightness: Fix the brightness dialog is not work when fi…
maniac103 Oct 26, 2015
9cfd103
perf: Add support for additional power profiles
Oct 21, 2015
f1bb23f
SystemUI: update keyguard state when profiles disable keyguard
romanbb Oct 26, 2015
852b920
Automatic translation import
mikeNG Oct 28, 2015
5a092d7
FingerprintService: fix fingerprints disappearing
romanbb Oct 27, 2015
5e66145
Keyguard: fix fingerprint not starting after user switch
romanbb Oct 22, 2015
6bb563b
SettingsProvider: load animation defaults into correct table
romanbb Oct 15, 2015
93a211f
Only accept user rotations when in USER_ROTATION_FREE mode
romanbb Oct 13, 2015
9e4f838
Keyguard: Show backdrop when sim pin secure screen shown
0xD34D Oct 29, 2015
ecb3b8b
Revert "base: Locked apps to exclude from dismiss all"
temasek Oct 30, 2015
f3a9d7a
Revert "Revert "Screen pinning improvements""
temasek Oct 30, 2015
5040856
Revert "Revert "Turn off screen pinning off by default in recents""
temasek Oct 30, 2015
61b97ae
[ActivityManager] Fix IndexOutOfBoundsException
Oct 27, 2015
f429a42
Merge tag 'android-5.1.1_r26' into cm-12.1
rmcc Nov 4, 2015
22407bf
Update boosted audio files 1/2
ciwrl Nov 3, 2015
4758b89
Fix mis-merge in r26 sources (Remove duplicates)
temasek Nov 4, 2015
df1623f
Revert "Only accept user rotations when in USER_ROTATION_FREE mode"
romanbb Nov 5, 2015
6dc6ec1
Automatic translation import
mikeNG Nov 6, 2015
0abacfd
Revert "Services : Ensure proximity check is taken into consideration"
temasek Nov 7, 2015
da5651d
base: get rid of android time class
jruesga Nov 3, 2015
90c6d40
Listen phone state change
hcz017 Nov 14, 2015
32b4849
base: prevent StrictMode to crash system because an overflow
jruesga Nov 19, 2015
bb65b62
base: strictmode fixes
jruesga Nov 19, 2015
7c1baec
Shell: Declare cyanogenmod WRITE for system and secure settings.
Nov 13, 2015
546e7c3
Recents: Fix IndexOutOfBoundsException
0xD34D Nov 18, 2015
42db616
SysUI: Fix navbar theme changing with status bar
0xD34D Nov 19, 2015
2f1a52d
ZenMode : Update defaults for CTSVerifier
Danesh Nov 25, 2015
381075b
Automatic translation import
mikeNG Nov 28, 2015
a28d32f
Reset uninstalled apps for lockscreen shortcuts (1/2)
Danesh Dec 1, 2015
c359545
Sync extras bundle comparison can throw NPE
mjwilliams43 Oct 16, 2015
cd1e592
Themes: Don't uninstall theme when processing an overlay fails
0xD34D Dec 1, 2015
ab10a3c
[PATCH 1/2] DO NOT MERGE Send next alarm's show intent via
adrianroos Nov 4, 2015
f670a1c
[PATCH 2/2] Delay hiding the cast icon for 3 seconds. DO NOT MERGE
dsandler Nov 5, 2015
afa9645
Toast: Fix toast layout for RTL
0xD34D Dec 9, 2015
4daf4f6
DO NOT MERGE Ensure that the device is provisioned before showing Rec…
Nov 11, 2015
b213622
DO NOT MERGE. Prevent recents from coming up when in SUW
Nov 13, 2015
f2159ec
Fix lockscreen disabling for MSIM.
maniac103 Dec 4, 2015
464db66
merge in lmp-mr1-release history after reset to lmp-mr1-dev
Dec 17, 2015
1f78154
SystemUI: fix "directly show bouncer" conflicting with smart unlock
romanbb Dec 17, 2015
082ce55
Automatic translation import
mikeNG Dec 16, 2015
314561b
PowerManagerService: Log when proximity blocks wake
Dec 11, 2015
ecd9163
Add custom camera shutter
ciwrl Dec 15, 2015
e732553
NavigationBar : Switch to display orientation from config orientation
Danesh Dec 22, 2015
c92af3f
ThemeEngine : Use manifest.mf for hash calculation
Danesh Jan 4, 2016
96abbae
Merge tag 'android-5.1.1_r33' into HEAD
Jan 5, 2016
8adb3a1
Automatic translation import
mikeNG Jan 4, 2016
7ca2567
Fingerprint: handle canclled error code
romanbb Jan 8, 2016
738a3ac
SettingsProvider: Load notification led customization defaults
edwardwa Jan 7, 2016
4ff4517
Make WIFI_IDLE_MS default into an overlay
Danesh Jan 11, 2016
72bb7ae
ThemeService: ManagedProvisioning is a setup package too.
rmcc Jan 12, 2016
e853a15
fingerprint improvements
romanbb Jan 12, 2016
3950060
Automatic translation import
mikeNG Jan 12, 2016
15ba6e0
New contextual header images
blazze11 Dec 13, 2015
195f67c
FWB: Make all 18 font variants available to Statusbar Clock (1/2)
temasek Jan 13, 2016
a40d98e
FWB: Make all 18 font variants available to Statusbar weather temp (1/2)
temasek Jan 13, 2016
35513db
Fingerprint: fix restarting timeout when screen is on
romanbb Jan 14, 2016
0526011
policy: disable EdgeGestureService
Jan 14, 2016
f46e2f3
Revert "base: prevent StrictMode to crash system because an overflow"
temasek Jan 17, 2016
f1a624b
StrictMode: fix deserialization of ViolationInfo on large stacks
gh2o Oct 15, 2015
d854cb7
Paella: Enable Spanish single shift table
ciwrl Jan 19, 2016
a685e10
DO NOT MERGE Ensure that the device is provisioned before showing Rec…
Nov 11, 2015
f57c9ed
Automatic translation import
mikeNG Feb 2, 2016
4769a9d
AppOps: fix wifi scan op
romanbb Oct 27, 2015
ea9ba51
SystemUI : Show create profile if user doesn't have one setup
Danesh Jan 21, 2016
f3d4600
LiveDisplayTile : Update entries on locale changes
Danesh Feb 5, 2016
1720c4b
Automatic translation import
mikeNG Feb 10, 2016
b0f95ce
bootanimation: Move the bootanimation playaudio code
sundars87 Jan 27, 2016
3692359
SystemUI: Handle possible NPE on task.group during layout.
Feb 15, 2016
fdb15af
Add ability to set preconfirmed apps filter for immersive mode hint
Feb 17, 2016
0303aba
SysUI: Keep sensitive notifications redacted for swipe
0xD34D Feb 15, 2016
25d3969
SettingsProvider: Allow default volume adjust sound to be overlayed.
Feb 17, 2016
8bd21fa
SettingsProvider: allow ambient display/doze mode to be overlayed
Feb 18, 2016
6d67acf
Automatic translation import
mikeNG Feb 19, 2016
aff7ee9
Fonts: add sans-serif fallback fonts first
0xD34D Feb 3, 2016
cf621c2
SharedStorageAgent: fix off by 1
Feb 23, 2016
17b5d1c
SysUI: Fix hiding per-app sensitive notifications
0xD34D Mar 2, 2016
69c4236
SysUI: Fix hiding sensitive notification behavior
0xD34D Mar 9, 2016
81ef10e
fix metrics density comparisons
romanbb Mar 11, 2016
3ed1897
Support for country specific ECC numbers in the framework
deepakkundra Mar 18, 2016
38bd619
GlobalActions: Set the initial status of airplane mode toggle
Christopher83 Jan 31, 2014
1f2fcca
FBW: Add DancingScript / ComingSoon / NotoSerif to Statusbar Clock (1/2)
temasek Jan 30, 2016
ae83a39
JobScheduler: handle connectivity action in bg looper
Mar 16, 2016
43cb29a
Make BluetoothManagerCallback oneway to prevent waiting on response
panickeraj Mar 18, 2016
7fd0880
fix SeekBarPreference support for summaries
thestinger Mar 10, 2016
b690449
Make accessing mWaitingForDrawn thread-safe
tiger-huang Feb 23, 2016
67d2de6
SystemUI: Unbreak Status bar Clock
temasek Mar 25, 2016
8cb0224
base: Fix proximity check on power key
crpalmer Feb 19, 2016
80a189a
base: Fix proximity check on non power key
vm03 Feb 27, 2016
e6dbfdd
Merge tag 'android-5.1.1_r37' into HEAD
Apr 4, 2016
9e50cad
Automatic translation import
mikeNG Apr 20, 2016
6e32940
base: header image tweaks
maxwen Dec 11, 2015
8676853
Custon header: Add shadow to more TextViews
LorDClockaN Feb 6, 2016
74f40dd
Race in WapPushManager under multi-thread environment
ChaoBi Mar 15, 2016
7621093
base: fix num cpu check for CPU overlay
maxwen Jan 3, 2016
25bcf40
base: Add support to show GPU Frequency
neobuddy89 Apr 14, 2016
86ae261
When wifi ssid is empty, return WifiSsid.NONE
Jan 13, 2016
e691265
Do not scan a file which cannot be read
Oct 8, 2014
5081173
Custon header: Fix shadow to more TextViews
temasek Apr 26, 2016
05f8d1f
RemoteController: extract interface conflicting with CTS test (1/2)
romanbb May 4, 2016
60a6dbb
Automatic translation import
mikeNG May 7, 2016
0c6ad79
Disallow guest user from changing Wifi settings
Mar 14, 2016
db31639
Update volume slider only if ringer mode changed
greniaz May 11, 2016
3e9d871
QS: Don't stop the music!
temasek May 19, 2016
0a52356
Automatic translation import
ciwrl May 23, 2016
5449476
Kill the real/isolated uid group, not the ApplicationInfo uid
May 9, 2016
7baf50d
resolve merge conflicts of 7641889 to lmp-mr1-dev
Apr 19, 2016
fa00fca
Automatic translation import
Jun 21, 2016
77e6ab1
Don't pass URL path and username/password to PAC scripts
JensenPaul Apr 15, 2016
a6d268c
DO NOT MERGE : backport of backup transport whitelist
Jun 14, 2016
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
Prev Previous commit
Next Next commit
base: prevent StrictMode to crash system because an overflow
Sometimes StrictMode is trying to parse a bad parcel that causes the tags array to overflow,
causing a soft reboot. Although this change doesn't fix the original cause, it should prevent
OOM derived from reading the wrong parcel.

E/AndroidRuntime(  727): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime(  727): java.lang.OutOfMemoryError: java.lang.String[] of length 1869767790 would overflow
E/AndroidRuntime(  727):        at android.os.Parcel.readStringArray(Parcel.java:1798)
E/AndroidRuntime(  727):        at android.os.StrictMode.<init>(StrictMode.java:2200)
E/AndroidRuntime(  727):        at android.os.StrictMode.readAndHandleBinderCallViolations(StrictMode.java:1738)

Change-Id: I57d10f3339053195ca75db4f7f16a1640d82148f
JIRA: CYAN-7163
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Patchset: 1
http://review.cyanogenmod.org/#/c/120427/
  • Loading branch information
jruesga authored and temasek committed Nov 19, 2015
commit 32b4849ce7b2876f7a64704cf624d16ed410375f
32 changes: 28 additions & 4 deletions core/java/android/os/StrictMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -1754,9 +1754,14 @@ private static class LogStackTrace extends Exception {}
// so we'll report it and bail on all of the current strict mode violations
// we currently are maintaining for this thread.
// First, drain the remaining violations from the parcel.
while (i < numViolations) {
info = new ViolationInfo(p, !currentlyGathering);
i++;
try {
while (i < numViolations) {
info = new ViolationInfo(p, !currentlyGathering);
i++;
}
} catch (IllegalStateException iex) {
// Parcel is the wrong one or is corrupted. Stop reading draining
// the parcel here.
}
// Next clear out all gathered violations.
clearGatheredViolations();
Expand Down Expand Up @@ -2217,7 +2222,26 @@ public ViolationInfo(Parcel in, boolean unsetGatheringBit) {
violationUptimeMillis = in.readLong();
numInstances = in.readLong();
broadcastIntentAction = in.readString();
tags = in.readStringArray();

// TODO if parcel is corrupted or it's not what we expect, readStringArray() can
// end reading a integer that causes an overflow because of the new string array
// created. So instead of use readStringArray(), just read the length of the
// array, and in case that the length is bigger than MAX_SPAN_TAGS then
// we should stop reading here.
// FIXME this is only a patch to prevent UI to crash because an OOM exception.
// In deep, this is cause by a bad received parcel. We must found the orginal cause
// and fix it.
int length = in.readInt();
if (length > MAX_SPAN_TAGS) {
throw new IllegalStateException();
} else if (length >= 0) {
tags = new String[length];
for (int i = 0 ; i < length ; i++) {
tags[i] = in.readString();
}
} else {
tags = null;
}
}

/**
Expand Down