Last active
May 24, 2016 09:10
-
-
Save eyecatchup/7054948dafaf6f0a07d9 to your computer and use it in GitHub Desktop.
Shell script to use on Android systems to enforce VERBOSE logging for a bunch of system-relevant internal services / processes. (Needs to be executed with root permissions!)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/xbin/sh | |
#LEVEL=$1 | |
LEVEL="VERBOSE" | |
PROPS=" | |
AndroidRuntime | |
ActivityManager | |
ActivityThread | |
PackageManager | |
BroadcastQueue | |
ACDB-LOADER | |
libc | |
libsuspend | |
main | |
servicemanager | |
JNIHelp | |
LibraryLoader | |
SoLoader | |
DexLibLoader | |
Documents | |
ExternalStorage | |
native | |
GLSActivity | |
GLSUser | |
GmsApplication | |
GmsNetworkLocationProvi | |
GoogleHttpClient | |
GoogleApiIcingClientImpl | |
GEL | |
Icing | |
AmanattoDataUpdaterHelper | |
Finsky | |
PlayCommon | |
PlayEventLogger | |
m | |
SubscribedFeeds | |
Gmail | |
GmailReceiver | |
YouTube | |
GCoreUlr | |
chromium | |
InvalidationService | |
SyncScheduler | |
AndroidInternalSchedule | |
ConnectivityService | |
ConnectivityManager | |
ConnectivityManager.CallbackHandler | |
IInputConnectionWrapper | |
SnapshotDownloadReceiver | |
SnapshotArchiveManager | |
NetworkManagementSocketTagger | |
WifiStateMachine | |
WifiService | |
wpa_supplicant | |
dhcpcd | |
Nat464Xlat | |
BWR | |
MtpService | |
SQLiteStatements | |
SQLiteGlobal | |
SQLiteDatabase | |
SQLiteConnection | |
SQLiteTime | |
SQLiteLog | |
SqliteWrapper | |
Atlas | |
art | |
DataBuffer | |
GenericSource | |
ServiceDumpSys | |
EventLogService | |
PropertyValuesHolder | |
ConfigFetchService | |
ConfigService | |
ConfigStore | |
ProviderInstaller | |
PackageBroadcastService | |
LauncherBackupHelper | |
BackupServiceBinder | |
BackupManagerService | |
BackupTransportService | |
BackupHelperDispatcher | |
BackupRestoreController | |
PerformBackupTask | |
DownloadManager | |
UploadsManager | |
InstalledAppDetails | |
AppSecurityPermissions | |
ZenLog | |
ViewRootImpl | |
ContextImpl | |
Settings | |
SubSettings | |
System.err | |
DEBUG | |
GCM | |
GCMBaseIntentService | |
GCMBroadcastReceiver | |
AlertReceiver | |
AlertService | |
AlarmScheduler | |
ExtensionsFactory | |
ProviderInstaller | |
GAV2 | |
GA-SERVICE | |
AnalyticsLogBase | |
asset | |
fdl | |
InputReader | |
IntentResolver | |
Resources | |
ResourcesManager | |
NetworkMonitor | |
DefContainer | |
AwContents | |
GlobalDismissManager | |
ExperimentServiceImpl" | |
for prop in $PROPS; | |
do | |
TAG="log.tag.$prop" | |
echo -e -n "Try to set log level for '$TAG' to '$LEVEL'..\t" | |
res=`setprop $TAG $LEVEL` | |
echo $res | |
done | |
# To work-around | |
setprop log.tag.Resources ERROR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment