Read the sessionId value as long.

Bug: 149782008
Test: atest CtsBlobStoreHostTestCases
Change-Id: Ie3df317137fe1b88692e4a43744f66602cb17206
This commit is contained in:
Sudheer Shanka
2020-02-18 14:50:40 -08:00
parent 251c21df37
commit 34c24fbb17

View File

@@ -514,7 +514,7 @@ class BlobStoreSession extends IBlobStoreSession.Stub {
static BlobStoreSession createFromXml(@NonNull XmlPullParser in, int version,
@NonNull Context context, @NonNull SessionStateChangeListener stateChangeListener)
throws IOException, XmlPullParserException {
final int sessionId = XmlUtils.readIntAttribute(in, ATTR_ID);
final long sessionId = XmlUtils.readLongAttribute(in, ATTR_ID);
final String ownerPackageName = XmlUtils.readStringAttribute(in, ATTR_PACKAGE);
final int ownerUid = XmlUtils.readIntAttribute(in, ATTR_UID);