Skip to content

Commit 378d437

Browse files
1582130940fusionjackCl3KenerAndroidRul3zamartinz
authored andcommitted
fwb: Disable some debug/log/trace
* ResourceTypes: Don't spam logcat fusionjack <dogfight60-fusionjack@yahoo.de> * GpsNetInitiatedHandler: Disable More Debugging Chet Kener <Cl3Kener@gmail.com> * Ringtone/DeadZone: Turn off some debugs AndroidRul3z <ferrettidario@gmail.com> * BluetoothAdapter: Disable logspew Alexander Martinz <eviscerationls@gmail.com> * base: Kill some log spam * SystemUI: Disable KeyguardConstants DEBUG * ViewRootImpl: Log spill when dragging maxwen <max.weninger@gmail.com> * BluetoothUtils: Disable useless logspam * AlarmManagerService: Reduce log level wtf -> w ?UTF-8?q?Sim=C3=A3o=20Gomes=20Viana?= <devel@superboring.dev> * InterruptionStateProvider: Disable debugging jhonboy121 <alfredmathew05@gmail.com> * DEBUG: Turn off some debugging we don't need. mydongistiny <jaysonedson@gmail.com> * DefaultPermissionGrantPolicy: Silence harmless errors Logcat spams with google packages not installed. Kill it. * InputMethodUtils: Fix system bootloop when no IME found In case of faulty gapps, there are no default IME left on the system. This shouldn't be situation where user cannot boot at all. Handle InputMethodUtils to prevent PackageManagerService crashing system. * SystemUI: Remove trace counter from ScrimState updateScrimColor is expensive Pranav Vashi <neobuddy89@gmail.com> * services: LightsService: Mute an annoying error message. E LightsService: Light requested not available on this device. If you google for the error you will find many discussion threads or logcats that show this error. Since the error only describes that the device does not support this function, the error can be classified as harmless. In order not to confuse the user, we will now hide the logging of this error. spezi77 <spezi7713@gmx.net> * StatusIconContainer: Remove duplicate import utzcoz <utzcoz@gmail.com> * Settingslib: Remove a reflect method that can never succeed Stops spamming logcat with java.lang.ClassNotFoundException The target class doesn't exist anywhere Soo-Hwan Na <69458352+roynatech2544@users.noreply.github.com> * ActivityThread: Remove Failed to find provider info logspam Immanuel Raj <immanuelr44@gmail.com> Co-authored-by: fusionjack <dogfight60-fusionjack@yahoo.de> Co-authored-by: Chet Kener <Cl3Kener@gmail.com> Co-authored-by: AndroidRul3z <ferrettidario@gmail.com> Co-authored-by: Alexander Martinz <eviscerationls@gmail.com> Co-authored-by: maxwen <max.weninger@gmail.com> Co-authored-by: ?UTF-8?q?Sim=C3=A3o=20Gomes=20Viana?= <devel@superboring.dev> Co-authored-by: jhonboy121 <alfredmathew05@gmail.com> Co-authored-by: mydongistiny <jaysonedson@gmail.com> Co-authored-by: spezi77 <spezi7713@gmx.net> Co-authored-by: Pranav Vashi <neobuddy89@gmail.com> Co-authored-by: utzcoz <utzcoz@gmail.com> Co-authored-by: Soo-Hwan Na <69458352+roynatech2544@users.noreply.github.com> Co-authored-by: Immanuel Raj <immanuelr44@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 9859930 commit 378d437

File tree

15 files changed

+11
-27
lines changed

15 files changed

+11
-27
lines changed

apex/jobscheduler/service/java/com/android/server/alarm/AlarmManagerService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5567,7 +5567,7 @@ private void decrementAlarmCount(int uid, int decrement) {
55675567
}
55685568
}
55695569
if (oldCount < decrement) {
5570-
Slog.wtf(TAG, "Attempt to decrement existing alarm count " + oldCount + " by "
5570+
Slog.w(TAG, "Attempt to decrement existing alarm count " + oldCount + " by "
55715571
+ decrement + " for uid " + uid);
55725572
}
55735573
}

core/java/android/app/ActivityThread.java

-5
Original file line numberDiff line numberDiff line change
@@ -7952,11 +7952,6 @@ public final IContentProvider acquireProvider(
79527952
}
79537953
}
79547954
if (holder == null) {
7955-
if (UserManager.get(c).isUserUnlocked(userId)) {
7956-
Slog.e(TAG, "Failed to find provider info for " + auth);
7957-
} else {
7958-
Slog.w(TAG, "Failed to find provider info for " + auth + " (user not unlocked)");
7959-
}
79607955
return null;
79617956
}
79627957

core/java/android/view/ViewRootImpl.java

-1
Original file line numberDiff line numberDiff line change
@@ -8168,7 +8168,6 @@ private boolean updatePointerIcon(MotionEvent event) {
81688168
}
81698169
if (x < 0 || x >= mView.getWidth() || y < 0 || y >= mView.getHeight()) {
81708170
// E.g. when moving window divider with mouse
8171-
Slog.d(mTag, "updatePointerIcon called with position out of bounds");
81728171
return false;
81738172
}
81748173

libs/androidfw/ResourceTypes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4521,7 +4521,7 @@ bool ResTable::getResourceName(uint32_t resID, bool allowUtf8, resource_name* ou
45214521

45224522
if (p < 0) {
45234523
if (Res_GETPACKAGE(resID)+1 == 0) {
4524-
ALOGW("No package identifier when getting name for resource number 0x%08x", resID);
4524+
ALOGV("No package identifier when getting name for resource number 0x%08x", resID);
45254525
} else {
45264526
#ifndef STATIC_ANDROIDFW_FOR_TOOLS
45274527
ALOGW("No known package when getting name for resource number 0x%08x", resID);

location/java/com/android/internal/location/GpsNetInitiatedHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class GpsNetInitiatedHandler {
4141

4242
private static final String TAG = "GpsNetInitiatedHandler";
4343

44-
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
44+
private static final boolean DEBUG = false;
4545

4646
private final Context mContext;
4747
private final TelephonyManager mTelephonyManager;

packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*/
4949
public class BackupRestoreConfirmation extends Activity {
5050
static final String TAG = "BackupRestoreConfirmation";
51-
static final boolean DEBUG = true;
51+
static final boolean DEBUG = false;
5252

5353
static final String KEY_DID_ACKNOWLEDGE = "did_acknowledge";
5454
static final String KEY_TOKEN = "token";

packages/PrintSpooler/src/com/android/printspooler/model/MutexFileProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public final class MutexFileProvider {
3636
private static final String LOG_TAG = "MutexFileProvider";
3737

38-
private static final boolean DEBUG = true;
38+
private static final boolean DEBUG = false;
3939

4040
private final Object mLock = new Object();
4141

packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class BluetoothUtils {
6060
private static final String TAG = "BluetoothUtils";
6161

6262
public static final boolean V = false; // verbose logging
63-
public static final boolean D = true; // regular logging
63+
public static final boolean D = false; // regular logging
6464

6565
public static final int META_INT_ERROR = -1;
6666
public static final String BT_ADVANCED_HEADER_ENABLED = "bt_advanced_header_enabled";

packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ObbBackupService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444
public class ObbBackupService extends Service {
4545
static final String TAG = "ObbBackupService";
46-
static final boolean DEBUG = true;
46+
static final boolean DEBUG = false;
4747

4848
/**
4949
* IObbBackupService interface implementation

packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class SharedStorageAgent extends FullBackupAgent {
1818
static final String TAG = "SharedStorageAgent";
19-
static final boolean DEBUG = true;
19+
static final boolean DEBUG = false;
2020

2121
StorageVolume[] mVolumes;
2222

packages/SystemUI/src/com/android/systemui/navigationbar/views/buttons/DeadZone.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class DeadZone {
4646
public static final int HORIZONTAL = 0; // Consume taps along the top edge.
4747
public static final int VERTICAL = 1; // Consume taps along the left edge.
4848

49-
private static final boolean CHATTY = true; // print to logcat when we eat a click
49+
private static final boolean CHATTY = false; // print to logcat when we eat a click
5050

5151
private static final FloatProperty<DeadZone> FLASH_PROPERTY =
5252
new FloatProperty<DeadZone>("DeadZoneFlash") {

packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* Convenience class for capturing gestures for later analysis.
3434
*/
3535
public class GestureRecorder {
36-
public static final boolean DEBUG = true; // for now
36+
public static final boolean DEBUG = false; // for now
3737
public static final String TAG = GestureRecorder.class.getSimpleName();
3838

3939
public class Gesture {

packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java

-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.android.systemui.statusbar.phone;
1818

1919
import android.graphics.Color;
20-
import android.os.Trace;
2120

2221
import com.android.systemui.dock.DockManager;
2322
import com.android.systemui.res.R;
@@ -441,14 +440,6 @@ public void updateScrimColor(ScrimView scrim, float alpha, int tint) {
441440
tint = scrim == mScrimInFront ? ScrimController.DEBUG_FRONT_TINT
442441
: ScrimController.DEBUG_BEHIND_TINT;
443442
}
444-
Trace.traceCounter(Trace.TRACE_TAG_APP,
445-
scrim == mScrimInFront ? "front_scrim_alpha" : "back_scrim_alpha",
446-
(int) (alpha * 255));
447-
448-
Trace.traceCounter(Trace.TRACE_TAG_APP,
449-
scrim == mScrimInFront ? "front_scrim_tint" : "back_scrim_tint",
450-
Color.alpha(tint));
451-
452443
scrim.setTint(tint);
453444
scrim.setViewAlpha(alpha);
454445
}

services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java

-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg,
323323
return mContext.getPackageManager().getPackageInfo(pkg,
324324
DEFAULT_PACKAGE_INFO_QUERY_FLAGS);
325325
} catch (NameNotFoundException e) {
326-
Slog.e(TAG, "Package not found: " + pkg);
327326
return null;
328327
}
329328
}

services/core/jni/com_android_server_lights_LightsService.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void processReturn(
111111
case Status::SUCCESS:
112112
break;
113113
case Status::LIGHT_NOT_SUPPORTED:
114-
ALOGE("Light requested not available on this device. %d", type);
114+
ALOGV("Light requested not available on this device. %d", type);
115115
break;
116116
case Status::BRIGHTNESS_NOT_SUPPORTED:
117117
ALOGE("Brightness parameter not supported on this device: %d",

0 commit comments

Comments
 (0)