Skip to content

Commit fd6b13c

Browse files
huyuxinGenkzsz11
authored andcommitted
Catch SQLiteFullException in AccountManagerService
Bug:190638634 Test: Manual Change-Id: I6ca088995d8a9af13ae6085953706ba21d09acae Signed-off-by: huyuxin <huyuxin@xiaomi.com>
1 parent 39f0142 commit fd6b13c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

services/core/java/com/android/server/accounts/AccountManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import android.content.pm.Signature;
6868
import android.content.pm.UserInfo;
6969
import android.database.Cursor;
70+
import android.database.sqlite.SQLiteFullException;
7071
import android.database.sqlite.SQLiteStatement;
7172
import android.os.Binder;
7273
import android.os.Bundle;
@@ -5153,7 +5154,7 @@ public void run() {
51535154
logStatement.bindLong(6, userDebugDbInsertionPoint);
51545155
try {
51555156
logStatement.execute();
5156-
} catch (IllegalStateException e) {
5157+
} catch (IllegalStateException | SQLiteFullException e) {
51575158
// Guard against crash, DB can already be closed
51585159
// since this statement is executed on a handler thread
51595160
Slog.w(TAG, "Failed to insert a log record. accountId=" + accountId

0 commit comments

Comments
 (0)