Androidシステムログの分析方法
16678 ワード
高通またはMTKのAndroidシステムログファイルはほぼ同等ですが、logファイル名は異なります.
携帯電話のAndroidロゴは主にmain_log、events_log、kernel_logの3種類、その他にdata/anrディレクトリの下のtraces/tombstonesなど、ハングアップ、再起動を分析することが重要です. main_log携帯電話android上層appやframework関連活動のlogを記録します.例えば、あなたが書いたappで印刷したlogは、ここにあります. events_logは主にActivity Manager、powerManagerなどに関するlogである. Kernel_logは主に駆動関連のlogである.Modem logは、主に通信に関連しています.例えば、信号の強弱、そのネットワークへの接続などです.また、ネット関連のnetlog、ネットリンクの状況を見たり、ネットパッケージをつかんだりします.
システムログの用途
mainlogはアプリケーションがどのような権限を申請したかを見ることができ、もちろんadb shell dumpsys package(注釈1)をコマンドしたり、apkを逆コンパイルしたりしてAndroidManifestを表示することもできる.xmlファイル.
注記1:コマンド形式adb shell dumpsys package XX
例:adb shell dumpsys package com.wandoujia.phoenix2
表示:
携帯電話のAndroidロゴは主にmain_log、events_log、kernel_logの3種類、その他にdata/anrディレクトリの下のtraces/tombstonesなど、ハングアップ、再起動を分析することが重要です.
システムログの用途
mainlogはアプリケーションがどのような権限を申請したかを見ることができ、もちろんadb shell dumpsys package(注釈1)をコマンドしたり、apkを逆コンパイルしたりしてAndroidManifestを表示することもできる.xmlファイル.
注記1:コマンド形式adb shell dumpsys package XX
例:adb shell dumpsys package com.wandoujia.phoenix2
表示:
Activity Resolver Table:
Schemes:
Wandoujia-PaySdk-Unify:
25d3344e com.wandoujia.phoenix2/com.wandoujia.p4.pay.activity.RechargeActivity
3731396f com.wandoujia.phoenix2/com.wandoujia.p4.pay.activity.PayActivity
wandoujia:
1a4f767c com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.DetailActivity
market:
1a4f767c com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.DetailActivity
tencent100724372:
9d76b05 com.wandoujia.phoenix2/com.tencent.tauth.AuthActivity
shortcut:
1e32475a com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.HomeActivity (4 filters)
36c1fd8b com.wandoujia.phoenix2/com.wandoujia.launcher.launcher.activity.GameLauncherActivity
wdj:
1702162 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.ReviewTopicActivity
1862547 com.wandoujia.phoenix2/com.wandoujia.p4.app_launcher.activity.AppLauncherActivity
2f2bbb0 com.wandoujia.phoenix2/com.wandoujia.p4.campaign.CampaignActivity
3cc7857 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.GiftDetailActivity
3e8b281 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.QuestionHomeActivity
7115f7b com.wandoujia.phoenix2/com.wandoujia.jupiter.topic.activity.TopicListActivity
779fdd6 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.RankingActivity
f423df1 com.wandoujia.phoenix2/com.wandoujia.jupiter.app.activity.AppMustHaveActivity (2 filters)
105b7e68 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.UCHelperActivity
10a9ba29 com.wandoujia.phoenix2/com.wandoujia.jupiter.imageviewer.activity.ImageViewerActivity
12db3b0a com.wandoujia.phoenix2/com.wandoujia.jupiter.topic.activity.TopicDetailActivity
13cdb280 com.wandoujia.phoenix2/com.wandoujia.jupiter.search.activity.InAppCampaignActivity
1503ef44 com.wandoujia.phoenix2/com.wandoujia.ripple_framework.ripple.activity.DetailActivity
1a4f767c com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.DetailActivity
1c7267b2 com.wandoujia.phoenix2/com.wandoujia.jupiter.search.activity.SearchHotQueryActivity
1dfa9303 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.CommonActivity
1e32475a com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.HomeActivity (3 filters)
1f095c5f com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.CategoryDetailActivity
1ffacfe5 com.wandoujia.phoenix2/com.wandoujia.jupiter.gift.GiftListActivity
213d7f26 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.QuestionDetailActivity
2150e767 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.QuestionQueryResultActivity
219b76ac com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.TagListActivity
219f5198 com.wandoujia.phoenix2/com.wandoujia.jupiter.award.AwardActivity
22621f75 com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.OnlineGameActivity
23681b4f com.wandoujia.phoenix2/com.wandoujia.p4.game.acitvity.GameVideoActivity
259b4cfe com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.CategoryListActivity
266cf5bd com.wandoujia.phoenix2/com.wandoujia.jupiter.question.activity.QuestionAnswerActivity
288d8561 com.wandoujia.phoenix2/com.wandoujia.jupiter.library.activity.LibActivity
29f830b9 com.wandoujia.phoenix2/com.wandoujia.jupiter.search.activity.SearchQueryHistoryActivity
2bb51d6b com.wandoujia.phoenix2/com.wandoujia.p4.feedback.FeedbackActivity
2ceb8886 com.wandoujia.phoenix2/com.wandoujia.jupiter.onboard.OnboardActivity
33b2f1ae com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityHomePageActivity
369e1914 com.wandoujia.phoenix2/com.wandoujia.jupiter.question.activity.QuestionAskActivity
36d650c8 com.wandoujia.phoenix2/com.wandoujia.jupiter.search.activity.SearchHomeActivity
382bc82d com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.ReviewActivity
39407aba com.wandoujia.phoenix2/com.wandoujia.p4.settings.MainSettingActivity
39bfe2dc com.wandoujia.phoenix2/com.wandoujia.p4.game.acitvity.GameVideoPlayActivity
3ab642f3 com.wandoujia.phoenix2/com.wandoujia.accessibility.hibernation.activity.BoosterHomeActivity
http:
2f2bbb0 com.wandoujia.phoenix2/com.wandoujia.p4.campaign.CampaignActivity
3c470e0 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityBallotStatusActivity
b3c169d com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityTopicListActivity
12db3b0a com.wandoujia.phoenix2/com.wandoujia.jupiter.topic.activity.TopicDetailActivity
1a4f767c com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.DetailActivity
1e75cee3 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityTopicDetailActivity
2163b174 com.wandoujia.phoenix2/com.wandoujia.p4.connection.ui.ConnectionActivity
31e7a712 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityMessageActivity
https:
2f2bbb0 com.wandoujia.phoenix2/com.wandoujia.p4.campaign.CampaignActivity
3c470e0 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityBallotStatusActivity
b3c169d com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityTopicListActivity
1a4f767c com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.DetailActivity
1e75cee3 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityTopicDetailActivity
2163b174 com.wandoujia.phoenix2/com.wandoujia.p4.connection.ui.ConnectionActivity
22487f99 com.wandoujia.phoenix2/com.wandoujia.p4.account.activity.PhoenixAccountActivity
31e7a712 com.wandoujia.phoenix2/com.wandoujia.p4.community.activity.CommunityMessageActivity
3915225e com.wandoujia.phoenix2/com.wandoujia.account.activities.AccountActivity
navigation:
1e32475a com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.HomeActivity
Non-Data Actions:
android.intent.action.MAIN:
1e32475a com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.HomeActivity
2fafbb0c com.wandoujia.phoenix2/com.alipay.android.mini.window.sdk.MiniWebActivity
312c763f com.wandoujia.phoenix2/com.alipay.android.mini.window.sdk.MiniPayActivity
36c1fd8b com.wandoujia.phoenix2/com.wandoujia.launcher.launcher.activity.GameLauncherActivity
android.intent.action.VIEW:
f0d066a com.wandoujia.phoenix2/com.wandoujia.p4.account.activity.AccountBindActivity
10187c55 com.wandoujia.phoenix2/com.wandoujia.p4.account.activity.AccountModifyProfileActivity
36c1fd8b com.wandoujia.phoenix2/com.wandoujia.launcher.launcher.activity.GameLauncherActivity
com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY:
7c375b com.wandoujia.phoenix2/com.wandoujia.jupiter.activity.EntryWeiboActivity
Receiver Resolver Table:
Schemes:
package:
243cee37 com.wandoujia.phoenix2/com.taobao.accs.EventReceiver
34105fa4 com.wandoujia.phoenix2/com.taobao.agoo.AgooCommondReceiver
39237bf8 com.wandoujia.phoenix2/com.wandoujia.ripple_framework.installer.install.impl.PackageChangeReceiver
3db188d1 com.wandoujia.phoenix2/com.wandoujia.jupiter.downloadreminder.NotInstallAppReceiver
3eed1f36 com.wandoujia.phoenix2/com.wandoujia.p4.receiver.AppChangedReceiver
content:
4f4e10d com.wandoujia.phoenix2/com.wandoujia.p4.download.notification.DownloadReceiver
Non-Data Actions:
phoenix.intent.action.UPGRADE_IMPORTANT_APP:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
phoenix.intent.action.UPGRADE_ALL:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
phoenix.intent.action.UPGRADE_APP:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
phoenix.intent.action.RETRY_DOWNLOAD:
4f4e10d com.wandoujia.phoenix2/com.wandoujia.p4.download.notification.DownloadReceiver
phoenix.intent.action.CLICK_IMPORTANT_NOTIFICATION:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
UT.FoundIT:
2fe836d3 com.wandoujia.phoenix2/com.alipay.ut.device.BFoundIt
phoenix.intent.action.NETWORK_DISCONNECT:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE:
3eed1f36 com.wandoujia.phoenix2/com.wandoujia.p4.receiver.AppChangedReceiver
com.wandoujia.phoenix2.ACTION_IP_FEEDBACK:
20c5d210 com.wandoujia.phoenix2/com.wandoujia.p4.download.ipfb.FeedbackReceiver
phoenix.intent.action.CREATE_GL_SHORTCUT:
29b8109 com.wandoujia.phoenix2/com.wandoujia.p4.receiver.GameLauncherReceiver
android.net.conn.CONNECTIVITY_CHANGE:
137cdf0e com.wandoujia.phoenix2/com.wandoujia.push_loader.PushReceiver
243cee37 com.wandoujia.phoenix2/com.taobao.accs.EventReceiver
phoenix.intent.action.CHECK_ONLINE_CONFIG:
2af56d2f com.wandoujia.phoenix2/com.wandoujia.p4.receiver.OnlineConfigScheduleReceiver
ripple_framework.intent.action.ACTION_REDIRECT:
331dff3c com.wandoujia.phoenix2/com.wandoujia.ripple_framework.download.DownloadReceiver
ripple_framework.intent.action.ACTION_OPEN:
331dff3c com.wandoujia.phoenix2/com.wandoujia.ripple_framework.download.DownloadReceiver
phoenix.intent.action.HidePromote:
3db188d1 com.wandoujia.phoenix2/com.wandoujia.jupiter.downloadreminder.NotInstallAppReceiver
phoenix.intent.action.PromoteNotInstallApp:
3db188d1 com.wandoujia.phoenix2/com.wandoujia.jupiter.downloadreminder.NotInstallAppReceiver
com.wandoujia.logv3.INSTALL_REFERRER:
bf224c5 com.wandoujia.phoenix2/com.wandoujia.logv3.ActiveTrackingReceiver
com.wandoujia.p4.recommand.clean.ACTION_CHECK_BACKGROUND_APP:
12abde1a com.wandoujia.phoenix2/com.wandoujia.p4.recommand.clean.CleanBroadcastReceiver
android.intent.action.BOOT_COMPLETED:
243cee37 com.wandoujia.phoenix2/com.taobao.accs.EventReceiver
android.intent.action.USER_PRESENT:
243cee37 com.wandoujia.phoenix2/com.taobao.accs.EventReceiver
com.taobao.accs.intent.action.START_FROM_AGOO:
32f5ad4b com.wandoujia.phoenix2/com.taobao.accs.ServiceReceiver
phoenix.intent.action.UPGRADE_NOTIFICATION_DELETED:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
UT.QueryWhoHasOne:
2069d328 com.wandoujia.phoenix2/com.alipay.ut.device.BQueryWhoHasOne
com.wandoujia.phoenix2.GROUP_NOTIFICATION_DELETE:
4f4e10d com.wandoujia.phoenix2/com.wandoujia.p4.download.notification.DownloadReceiver
com.taobao.accs.intent.action.COMMAND:
32f5ad4b com.wandoujia.phoenix2/com.taobao.accs.ServiceReceiver
com.wandoujia.phoenix2.ACTION_INSTALL:
4554841 com.wandoujia.phoenix2/com.wandoujia.p4.campaign.CampaignReceiver
com.wandoujia.push2.ARE_YOU_PUSH_CENTER:
137cdf0e com.wandoujia.phoenix2/com.wandoujia.push_loader.PushReceiver
phoenix.intent.action.APP_CHECK_UPGRADE:
15e3f8c2 com.wandoujia.phoenix2/com.wandoujia.p4.app.upgrade.UpgradeReceiver
com.wandoujia.phoenix2.intent.action.COMMAND:
34105fa4 com.wandoujia.phoenix2/com.taobao.agoo.AgooCommondReceiver
Service Resolver Table:
Non-Data Actions:
android.content.SyncAdapter:
3799c1e6 com.wandoujia.phoenix2/com.wandoujia.p4.account.authenticator.AccountSyncService
com.taobao.accs.intent.action.SERVICE:
236fd327 com.wandoujia.phoenix2/com.taobao.accs.ChannelService
org.agoo.android.intent.action.RECEIVE:
201cf9d4 com.wandoujia.phoenix2/.TaobaoIntentService
org.android.agoo.client.MessageReceiverService:
e6d277d com.wandoujia.phoenix2/com.taobao.agoo.TaobaoMessageIntentReceiverService
android.accounts.AccountAuthenticator:
2e301672 com.wandoujia.phoenix2/com.wandoujia.p4.account.authenticator.AccountAuthenticationService
android.accessibilityservice.AccessibilityService:
1f7c7ac3 com.wandoujia.phoenix2/com.wandoujia.accessibility.AccessibilityDispatcher
com.taobao.accs.intent.action.ELECTION:
236fd327 com.wandoujia.phoenix2/com.taobao.accs.ChannelService
com.taobao.accs.intent.action.RECEIVE:
b39df40 com.wandoujia.phoenix2/com.taobao.accs.data.MsgDistributeService
1529be79 com.wandoujia.phoenix2/org.android.agoo.accs.AgooService
Registered ContentProviders:
com.wandoujia.phoenix2/com.wandoujia.accessibility.content_provider.AccessibilityContentProvider:
Provider{56527be com.wandoujia.phoenix2/com.wandoujia.accessibility.content_provider.AccessibilityContentProvider}
ContentProvider Authorities:
[com.wandoujia.accessibility.contentprovider]:
Provider{56527be com.wandoujia.phoenix2/com.wandoujia.accessibility.content_provider.AccessibilityContentProvider}
applicationInfo=ApplicationInfo{1922001f com.wandoujia.phoenix2}
Key Set Manager:
[com.wandoujia.phoenix2]
Signing KeySets: 26
Packages:
Package [com.wandoujia.phoenix2] (67daf6c):
userId=10057 gids=[3003, 1028, 1015, 3002, 3001]
pkg=Package{3bb83cd3 com.wandoujia.phoenix2}
codePath=/data/app/com.wandoujia.phoenix2-1
resourcePath=/data/app/com.wandoujia.phoenix2-1
legacyNativeLibraryDir=/data/app/com.wandoujia.phoenix2-1/lib
primaryCpuAbi=armeabi
secondaryCpuAbi=null
versionCode=12064 targetSdk=22
versionName=5.23.1
splits=[base]
applicationInfo=ApplicationInfo{1922001f com.wandoujia.phoenix2}
flags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
pkgFlagsEx=[ ]
dataDir=/data/data/com.wandoujia.phoenix2
supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
timeStamp=2010-01-01 13:35:00
firstInstallTime=2010-01-01 13:35:01
lastUpdateTime=2010-01-01 13:35:01
signatures=PackageSignatures{287ec935 [334801ca]}
permissionsFixed=true haveGids=true installStatus=1
pkgFlags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
User 0: installed=true hidden=false stopped=false notLaunched=false enabled=0
enabledComponents:
com.taobao.accs.ChannelService
grantedPermissions:
android.permission.WRITE_SETTINGS
android.permission.READ_SMS
com.android.launcher3.permission.READ_SETTINGS
android.permission.ACCESS_FINE_LOCATION
android.permission.RESTART_PACKAGES
android.permission.USE_CREDENTIALS
android.permission.MANAGE_ACCOUNTS
android.permission.SYSTEM_ALERT_WINDOW
android.permission.CHANGE_NETWORK_STATE
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.EXPAND_STATUS_BAR
com.android.launcher.permission.UNINSTALL_SHORTCUT
android.permission.BLUETOOTH
android.permission.GET_TASKS
android.permission.AUTHENTICATE_ACCOUNTS
android.permission.INTERNET
android.permission.BLUETOOTH_ADMIN
android.permission.READ_EXTERNAL_STORAGE
android.permission.GET_PACKAGE_SIZE
android.permission.ACCESS_COARSE_LOCATION
android.permission.READ_PHONE_STATE
android.permission.BROADCAST_STICKY
android.permission.CHANGE_WIFI_STATE
android.permission.FLASHLIGHT
android.permission.ACCESS_NETWORK_STATE
android.permission.DISABLE_KEYGUARD
android.permission.CAMERA
android.permission.KILL_BACKGROUND_PROCESSES
android.permission.CLEAR_APP_CACHE
android.permission.GET_ACCOUNTS
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.VIBRATE
android.permission.ACCESS_WIFI_STATE
com.android.launcher.permission.INSTALL_SHORTCUT
android.permission.WAKE_LOCK