本文介紹一種安卓卸載系統應用的方法,如果你和我一樣喜歡瞎折騰,有那么一點強迫癥,希望對你有用,作為一名安卓開發者,大學以前總喜歡刷不同刷機包(ROM)、愛裝不同的Launcher桌面體驗,不過作業了沒以前愛折騰了,安卓提供的adb工具不用多介紹,網上都有很多教程,
一. 實驗條件
- LG V30 (Android 9.0)
- 較新adb驅動
- PC一臺
- 對應的USB除錯線一根
二. 安裝adb驅動
下載360手機助手,安裝USB連接手機,360手機助手對手機adb驅動支持很好,直接連接就好了,確定adb驅動安裝好后,任務管理器將360Mobile相關的行程干掉,重新連接adb,最后使用cmd或者AS自帶的Terminal進入命令列,熟悉我們的adb命令就行了,
三. adb卸載預裝應用步驟
1、查看adb版本
確認adb版本較新,我自己親自試了在自己筆記本電腦adb工具執行命令用不了,總是提示如下列印:
F:\mypc>adb devices
adb server is out of date. killing…
daemon started successfully *
List of devices attached
810e909e offline
嘗試了網上的方法,還是沒有解決,但想到公司電腦好像沒有問題的,于是對比了兩臺電腦adb的版本,還是存在差異,或許是adb安裝路徑有問題!
F:\mypc>adb version
Android Debug Bridge version 1.0.29
E:\other>adb version
Android Debug Bridge version 1.0.41
Version 29.0.1-5644136
Installed as C:\Windows\system32\adb.exe
2、查看系統中所有包
執行下面命令,將列印復制到記事本中,方便后面查找,
adb shell pm list packages
3、確認不知名的應用包名(較低安卓版本可直接查看應用包名)
有的應用我們可以通過包名就可以判斷哪一個應用,但有的應用我們是確定不了的,那么就需要確認當前運行的應用的包名,記住安卓Activity和Application packagename是有關系的!好幾種方法,一種不行嘗試另外一種哦,
法一:
1、在手機上打開app
2、執行:adb shell dumpsys window w |findstr / |findstr name=
法二:
1、在手機上打開app
2、執行:adb shell dumpsys activity activities
3、分析列印
執行:adb shell dumpsys activity activities 后,我拿到的列印如下,具體分析我們就知道包名和應用名是哪一個了,這條命令會將activity堆疊資訊和活動資訊告訴我們,
D:\other>adb shell dumpsys activity activities
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
Display #0 (activities from top to bottom):
Stack #102: type=standard mode=fullscreen
isSleeping=false
mBounds=Rect(0, 0 - 0, 0)
Task id #3162
mBounds=Rect(0, 0 - 0, 0)
mMinWidth=-1
mMinHeight=-1
mLastNonFullscreenBounds=null
* TaskRecord{5546a0e #3162 A=com.uplus.onphone U=0 StackId=102 sz=1}
userId=0 effectiveUid=u0a265 mCallingUid=u0a121 mUserSetupComplete=true mCallingPackage=com.lge.launcher3
affinity=com.uplus.onphone
intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.uplus.onphone/.activity.MainActivity}
realActivity=com.uplus.onphone/.activity.MainActivity
autoRemoveRecents=false isPersistable=true numFullscreen=1 activityType=1
rootWasReset=true mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
Activities=[ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}]
askedCompatMode=false inRecents=true isAvailable=true
mRootProcess=ProcessRecord{d749b7 25828:com.uplus.onphone/u0a265}
stackId=102
hasBeenVisible=true mResizeMode=RESIZE_MODE_RESIZEABLE mSupportsPictureInPicture=false isResizeable=true lastActiveTime=95850170 (inactive for 12s)
* Hist #0: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
packageName=com.uplus.onphone processName=com.uplus.onphone
launchedFromUid=10121 launchedFromPackage=com.lge.launcher3 userId=0
app=ProcessRecord{d749b7 25828:com.uplus.onphone/u0a265}
Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.uplus.onphone/.activity.MainActivity bnds=[312,1214][584,1665] (has
extras) }
frontOfTask=true task=TaskRecord{5546a0e #3162 A=com.uplus.onphone U=0 StackId=102 sz=1}
taskAffinity=com.uplus.onphone
realActivity=com.uplus.onphone/.activity.MainActivity
baseDir=/system/product/app/UplusTVonPhone/UplusTVonPhone.apk
dataDir=/data/user/0/com.uplus.onphone
stateNotNeeded=false componentSpecified=true mActivityType=standard
compat={640dpi, } labelRes=0x7f12002d icon=0x7f0f0002 theme=0x7f13000a
mLastReportedConfigurations:
mGlobalConfig={1.0 460mcc1mnc [zh_CN_#Hans,en_US,zh_CN] ldltr sw360dp w360dp h654dp 640dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 27
12, 1440) mAppBounds=Rect(0, 0 - 1440, 2712) mWindowingMode=fullscreen mActivityType=undefined} s.45 fontTypeIndex0 forceEmbolden0}
mOverrideConfig={1.0 460mcc1mnc [zh_CN_#Hans,en_US,zh_CN] ldltr sw360dp w360dp h654dp 640dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 -
1440, 2712) mAppBounds=Rect(0, 0 - 1440, 2712) mWindowingMode=fullscreen mActivityType=standard} s.45 fontTypeIndex0 forceEmbolden0}
CurrentConfiguration={1.0 460mcc1mnc [zh_CN_#Hans,en_US,zh_CN] ldltr sw360dp w360dp h654dp 640dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0,
0 - 1440, 2712) mAppBounds=Rect(0, 0 - 1440, 2712) mWindowingMode=fullscreen mActivityType=standard} s.45 fontTypeIndex0 forceEmbolden0}
taskDescription: label=“null” icon=null iconResource=0 iconFilename=null primaryColor=ffffffff
backgroundColor=fffafafa
statusBarColor=ff000000
navigationBarColor=ff000000
launchFailed=false launchCount=1 lastLaunchTime=-2m33s40ms
haveState=false icicle=null
state=RESUMED stopped=false delayedResume=false finishing=false focused=true
keysPaused=false inHistory=true visible=true sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_REMOVED
fullscreen=true noDisplay=false immersive=false launchMode=0
frozenBeforeDestroy=false forceNewConfig=false
mActivityType=standard
waitingVisible=false nowVisible=true lastVisibleTime=-12s404ms
connections=[ConnectionRecord{b2a7614 u0 CR com.uplus.onphone/.player.PopupPlayer:@b109867}]
resizeMode=RESIZE_MODE_RESIZEABLE
mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
translucent=false
Running activities (most recent first):
TaskRecord{5546a0e #3162 A=com.uplus.onphone U=0 StackId=102 sz=1}
Run #0: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
mResumedActivity: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
mLastPausedActivity: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
Stack #0: type=home mode=fullscreen
isSleeping=false
mBounds=Rect(0, 0 - 0, 0)
法三:
1、手機打開應用
2、執行:adb shell dumpsys activity top
linux: adb shell dumpsys activity | grep “mFocusedActivity”
windows: adb shell dumpsys activity | findstr “mFocusedActivity”
這種方法和法二類似,但仔細看一下下面的列印太恐怖了,我列印了安卓Launcher桌面活動資訊,居然什么都暴露了,我擦谷歌爸爸太強大了!
D:\other>adb shell dumpsys activity top
TASK com.android.systemui id=3064 userId=0
ACTIVITY com.android.systemui/.recents.RecentsActivity 1c13a90 pid=2533
Local Activity ca56c1a State:
mResumed=false mStopped=true mFinished=false
mChangingConfigurations=false
mCurrentConfig={1.0 460mcc1mnc [zh_CN_#Hans,en_US,zh_CN] ldltr sw360dp w360dp h654dp 640dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2712,1440) mAppBounds=Rect(0, 0 - 1440, 2712) mWindowingMode=fullscreen mActivityType=recents} s.45 fontTypeIndex0 forceEmbolden0}
mLoadersStarted=true
FragmentManager misc state:
mHost=android.app.Activity H o s t C a l l b a c k s @ d f 5 b 1 f e m C o n t a i n e r = a n d r o i d . a p p . A c t i v i t y HostCallbacks@df5b1fe mContainer=android.app.Activity HostCallbacks@df5b1femContainer=android.app.ActivityHostCallbacks@df5b1fe
mCurState=3 mStateSaved=true mDestroyed=false
ViewRoot:
mAdded=true mRemoved=false
mConsumeBatchedInputScheduled=false
mConsumeBatchedInputImmediatelyScheduled=false
mPendingInputEventCount=0
mProcessInputEventsScheduled=false
mTraversalScheduled=false mIsAmbientMode=false
android.view.ViewRootImpl N a t i v e P r e I m e I n p u t S t a g e : m Q u e u e L e n g t h = 0 a n d r o i d . v i e w . V i e w R o o t I m p l NativePreImeInputStage: mQueueLength=0 android.view.ViewRootImpl NativePreImeInputStage:mQueueLength=0android.view.ViewRootImplImeInputStage: mQueueLength=0
android.view.ViewRootImplKaTeX parse error: Expected '}', got '#' at position 338: …....I. 0,0-0,0 #?102018a android…HostCallbacks@de35f9e
mContainer=android.app.Activity H o s t C a l l b a c k s @ d e 35 f 9 e m C u r S t a t e = 5 m S t a t e S a v e d = f a l s e m D e s t r o y e d = f a l s e V i e w R o o t : m A d d e d = t r u e m R e m o v e d = f a l s e m C o n s u m e B a t c h e d I n p u t S c h e d u l e d = f a l s e m C o n s u m e B a t c h e d I n p u t I m m e d i a t e l y S c h e d u l e d = f a l s e m P e n d i n g I n p u t E v e n t C o u n t = 0 m P r o c e s s I n p u t E v e n t s S c h e d u l e d = f a l s e m T r a v e r s a l S c h e d u l e d = f a l s e m I s A m b i e n t M o d e = f a l s e a n d r o i d . v i e w . V i e w R o o t I m p l HostCallbacks@de35f9e mCurState=5 mStateSaved=false mDestroyed=false ViewRoot: mAdded=true mRemoved=false mConsumeBatchedInputScheduled=false mConsumeBatchedInputImmediatelyScheduled=false mPendingInputEventCount=0 mProcessInputEventsScheduled=false mTraversalScheduled=false mIsAmbientMode=false android.view.ViewRootImpl HostCallbacks@de35f9emCurState=5mStateSaved=falsemDestroyed=falseViewRoot:mAdded=truemRemoved=falsemConsumeBatchedInputScheduled=falsemConsumeBatchedInputImmediatelyScheduled=falsemPendingInputEventCount=0mProcessInputEventsScheduled=falsemTraversalScheduled=falsemIsAmbientMode=falseandroid.view.ViewRootImplNativePreImeInputStage: mQueueLength=0
android.view.ViewRootImpl I m e I n p u t S t a g e : m Q u e u e L e n g t h = 0 a n d r o i d . v i e w . V i e w R o o t I m p l ImeInputStage: mQueueLength=0 android.view.ViewRootImpl ImeInputStage:mQueueLength=0android.view.ViewRootImplNativePostImeInputStage: mQueueLength=0
Choreographer:
mFrameScheduled=false
mLastFrameTime=74902929 (9414 ms ago)
View Hierarchy:
DecorView@3260a7f[LauncherExtension]
android.widget.LinearLayout{c10568 V.E… … 0,0-1440,2880}
android.view.ViewStub{b9f5a4c G.E… …I. 0,0-0,0 #102018a android:id/action_mode_bar_stub}
android.widget.FrameLayout{1d23605 V.E… … 0,0-1440,2880 #1020002 android:id/content}
com.android.launcher3.LauncherRootView{6ee4c6f V.E… … 0,0-1440,2880 #7f0900a4 app:id/launcher}
android.widget.ImageView{d4f0c87 G.ED… …I. 0,0-0,0 #7f09002b app:id/blur_background_in_bottom_of_rootview}
com.android.launcher3.dragndrop.DragLayer{4f5ef54 V.E… … 0,0-1440,2880 #7f090056 app:id/drag_layer}
com.android.launcher3.FocusIndicatorView{324ca95 V.ED… … 0,96-208,304 #7f090064 app:id/focus_indicator}
com.android.launcher3.Workspace{7e3a7b4 V.ED…L. … -2909,-2189-4349,5069 #7f090163 app:id/workspace}
com.android.launcher3.CellLayout{54a0481 VFED…CL. … 2949,2365-4309,4469}
android.widget.LinearLayout{a1d7aa I.E… … 0,0-0,0}
android.widget.ImageButton{c1acf9b VFED…C… …I. 0,0-0,0}
com.android.launcher3.ClickShadowView{f8dcf38 V.ED… … 0,0-320,468}
com.android.launcher3.ShortcutAndWidgetContainer{1d47b11 V.E… … 0,0-1360,2104}
FolderIcon {手機管理}
android.widget.ImageView{51dc476 V.ED… … 8,6-264,262 #7f0900ec app:id/preview_background}
AppIcon {手機管理}
AppIcon {聯系人}
AppIcon {檔案管理器}
AppIcon {計算器}
AppIcon {Quick備忘錄+}
AppIcon {設定}
com.android.launcher3.CellLayout{18f8967 VFED…CL. … 4389,2365-5749,4469}
android.widget.LinearLayout{8ccca77 I.E… … 0,0-0,0}
android.widget.ImageButton{3eca6e4 VFED…C… …I. 0,0-0,0}
com.android.launcher3.ClickShadowView{ef4b74d V.ED… … 0,0-320,468}
com.android.launcher3.ShortcutAndWidgetContainer{99b202 V.E… … 0,0-1360,2104}
AppIcon {豌豆莢}
AppIcon {支付寶}
AppIcon {百度網盤}
AppIcon {微信}
AppIcon {高德地圖}
AppIcon {美團}
AppIcon {QQ}
AppIcon {優酷視頻}
AppIcon {網易云音樂}
AppIcon {手機淘寶}
AppIcon {王者榮耀}
AppIcon {當當}
AppIcon {迅雷}
AppIcon {WiFi萬能鑰匙}
AppIcon {發現精彩}
AppIcon {LBE安全大師}
AppIcon {Chrome}
com.android.launcher3.CellLayout{815503 VFED…CL. … 5829,2365-7189,4469}
android.widget.LinearLayout{5399713 I.E… … 0,0-0,0}
android.widget.ImageButton{13f4d50 VFED…C… …I. 0,0-0,0}
com.android.launcher3.ClickShadowView{d627b49 V.ED… … 0,0-320,468}
com.android.launcher3.ShortcutAndWidgetContainer{7f4ec4e V.E… … 0,0-1360,2104}
AppIcon {無人農機終端}
AppIcon {UTSmartCook}
com.android.quickstep.views.RecentsViewContainer{59c916f G.E… …I. 0,0-0,0 #7f0900de app:id/overview_panel_container}
com.android.quickstep.views.LauncherRecentsView{2d3ee7c V.ED… …ID 0,0-0,0 #7f0900dd app:id/overview_panel}
com.android.quickstep.views.ClearAllButton{6ce8305 VFED…C… …I. 0,0-0,0 #7f09003c app:id/clear_all_button}
android.widget.FrameLayout{cb77f5a V.E… …I. 0,0-0,0 #7f0900dc app:id/overview_guide_ani_view}
android.widget.LinearLayout{c8ad58b V.E… …I. 0,0-0,0 #7f0900df app:id/overview_swipeup_arrow}
android.view.View{8af7668 I.ED… …I. 0,0-0,0 #7f0900e0 app:id/overview_swipeup_guide_arrow1}
android.view.View{5394a81 I.ED… …I. 0,0-0,0 #7f0900e1 app:id/overview_swipeup_guide_arrow2}
com.android.launcher3.SwipeUpGuideText{ede3726 I.ED… …I. 0,0-0,0 #7f0900e2 app:id/overview_swipeup_guide_text}
com.android.launcher3.Hotseat{6cf3f67 V.E… … 0,2436-1440,2712 #7f090087 app:id/hotseat}
com.android.launcher3.CellLayout{3e3627b V.ED…L. … 0,0-1440,276 #7f0900a7 app:id/layout}
android.widget.LinearLayout{c399114 V.E… … 0,0-0,0}
android.widget.ImageButton{82f0dbd VFED…C… …I. 0,0-0,0}
com.android.launcher3.ClickShadowView{f669fb2 V.ED… … 40,0-428,324}
com.android.launcher3.ShortcutAndWidgetContainer{9066b03 V.E… … 40,0-1480,276}
AppIcon {手機}
AppIcon {資訊}
AppIcon {照相機}
AppIcon {圖片庫}
android.widget.Button{3a8aa80 GFED…C… …I. 0,0-0,0 #7f09004e app:id/default_screen}
com.lge.launcher3.OverViewPanel{447b0ac I.E… … 0,2248-1440,2712 #7f0900af app:id/lg_overview_panel}
android.widget.FrameLayout{1c3c8b9 V.E… … 0,0-360,464}
android.widget.TextView{f9b04fe VFED…C… … 30,0-330,273 #7f090147 app:id/widget_button}
android.widget.FrameLayout{afab45f G.E… …I. 0,0-0,0}
android.widget.TextView{2deeac VFED…C… …ID 0,0-0,0 #7f090141 app:id/wallpaper_button}
android.widget.FrameLayout{74f3775 V.E… … 360,0-720,464}
android.widget.TextView{91e730a VFED…C… … 30,0-330,273 #7f090136 app:id/theme_button}
android.widget.FrameLayout{cc0377b G.E… …I. 0,0-0,0}
android.widget.TextView{2e14998 VFED… …ID 0,0-0,0 #7f090116 app:id/settings_button_vzw}
android.widget.FrameLayout{1e8d5f1 G.E… …I. 0,0-0,0}
android.widget.TextView{ab8b5d6 VFED… …ID 0,0-0,0 #7f09005b app:id/dynamic_gird_button}
android.widget.FrameLayout{190d057 V.E… … 720,0-1080,464}
android.widget.TextView{46d6744 VFED…C… … 30,0-330,273 #7f090115 app:id/settings_button}
android.widget.FrameLayout{aa3e02d V.E… … 1080,0-1440,464}
android.widget.TextView{5e25962 VFED…C… … 30,0-330,326 #7f0900f1 app:id/recent_uninstall_button}
com.lge.launcher3.dynamicgrid.DynamicGridPannelView{c681af3 G.E… …I. 0,0-0,0 #7f0900d9 app:id/overview_dynamic_panel}
android.widget.LinearLayout{b7bb3b0 V.E… …I. 0,0-0,0}
android.widget.LinearLayout{e8b5229 VFE…C… …I. 0,0-0,0 #7f0900d5 app:id/overview_dynaic_grid_layout1}
android.widget.ImageView{910a9ae V.ED… …I. 0,0-0,0 #7f0900d1 app:id/overview_dynaic_grid_icon1}
android.widget.TextView{a5f734f V.ED… …ID 0,0-0,0 #7f0900e3 app:id/overview_text1}
android.widget.LinearLayout{de05adc VFE…C… …I. 0,0-0,0 #7f0900d6 app:id/overview_dynaic_grid_layout2}
android.widget.ImageView{65de7e5 V.ED… …I. 0,0-0,0 #7f0900d2 app:id/overview_dynaic_grid_icon2}
android.widget.TextView{2c1b2ba V.ED… …ID 0,0-0,0 #7f0900e4 app:id/overview_text2}
android.widget.LinearLayout{6c9f56b VFE…C… …I. 0,0-0,0 #7f0900d7 app:id/overview_dynaic_grid_layout3}
android.widget.ImageView{88648c8 V.ED… …I. 0,0-0,0 #7f0900d3 app:id/overview_dynaic_grid_icon3}
android.widget.TextView{e0a1d61 V.ED… …ID 0,0-0,0 #7f0900e5 app:id/overview_text3}
android.widget.LinearLayout{9484086 VFE…C… …I. 0,0-0,0 #7f0900d8 app:id/overview_dynaic_grid_layout4}
android.widget.ImageView{5107d47 V.ED… …I. 0,0-0,0 #7f0900d4 app:id/overview_dynaic_grid_icon4}
android.widget.TextView{a1b2974 V.ED… …ID 0,0-0,0 #7f0900e6 app:id/overview_text4}
android.widget.LinearLayout{7ea2e9d V.E… …I. 0,0-0,0}
android.widget.Button{357df12 VFED…C… …I. 0,0-0,0 #7f0900db app:id/overview_dynamicgrid_cancel_btn}
android.widget.Button{c4da6e3 VFED…C… …I. 0,0-0,0 #7f0900da app:id/overview_dynamicgrid_apply_btn}
com.lge.launcher3.pageindicator.PageIndicatorExtension{e89fc50 V.E… … 606,2280-834,2436 #7f0900e7 app:id/page_indicator}
com.lge.launcher3.pageindicator.PageIndicatorMarkerExtension{413b6b2 VFE…CL. … 0,40-76,116}
android.widget.ImageView{c7b68e0 V.ED… … 20,20-56,56 #7f090091 app:id/inactive}
android.widget.ImageView{7c01799 V.ED… … 20,20-56,56 #7f090013 app:id/active}
com.lge.launcher3.pageindicator.PageIndicatorMarkerExtension{dbb3603 VFE…CL. … 76,40-152,116}
android.widget.ImageView{d50da5e V.ED… … 20,20-56,56 #7f090091 app:id/inactive}
android.widget.ImageView{a9ce3f V.ED… … 20,20-56,56 #7f090013 app:id/active}
com.lge.launcher3.pageindicator.PageIndicatorMarkerExtension{8090bb9 VFE…CL. … 152,40-228,116}
android.widget.ImageView{8de330c V.ED… … 20,20-56,56 #7f090091 app:id/inactive}
android.widget.ImageView{1719455 V.ED… … 20,20-56,56 #7f090013 app:id/active}
android.widget.LinearLayout{74c3e6a V.E… … 654,2272-786,2436 #7f090126 app:id/swipeup_arrow}
android.view.View{6770f5b I.ED… …I. 0,0-132,132 #7f090127 app:id/swipeup_guide_arrow1}
android.view.View{2c173f8 I.ED… …I. 0,32-132,164 #7f090128 app:id/swipeup_guide_arrow2}
com.android.launcher3.SwipeUpGuideText{78420d1 I.ED… …I. 0,2264-1440,2436 #7f090129 app:id/swipeup_guide_text}
com.lge.launcher3.droptarget.LGSearchDropTargetBar{7e7d736 I.E… …ID 0,136-1440,345 #7f09010c app:id/search_drop_target_bar}
android.widget.FrameLayout{b0d4637 V.E… …ID 0,0-1440,209 #7f090057 app:id/drag_target_bar}
android.widget.FrameLayout{595d7a4 G.E… …ID 0,0-1440,209}
com.android.launcher3.DeleteDropTarget{558f90d V.ED… …ID 0,0-1440,209 #7f09004f app:id/delete_target_text}
android.widget.FrameLayout{fd230c2 V.E… …ID 0,0-1440,209}
com.lge.launcher3.droptarget.LGUninstallDropTarget{5e8305c V.ED… …ID 0,0-1440,209 #7f09013d app:id/uninstall_target_text}
android.widget.FrameLayout{f660ed3 G.E… …ID 0,0-1440,209}
com.lge.launcher3.droptarget.CancelDropTarget{12aca10 V.ED… …ID 0,0-1440,209 #7f090034 app:id/cancel_target_text}
android.widget.FrameLayout{1291909 G.E… …ID 0,0-1440,209}
com.lge.launcher3.droptarget.DisableDropTarget{a16970e V.ED… …ID 0,0-1440,209 #7f090050 app:id/disable_target_text}
android.widget.LinearLayout{78c52f V.E… … 0,0-1440,209}
com.lge.launcher3.droptarget.LGUninstallDropTarget{da773c G.ED… …ID 0,0-0,0 #7f09001f app:id/all_apps_uninstall_target_text}
com.lge.launcher3.droptarget.DisableDropTarget{1c13cc5 G.ED… …ID 0,0-0,0 #7f09001a app:id/all_apps_disable_target_text}
com.android.launcher3.DeleteDropTarget{529161a G.ED… …ID 0,0-0,0 #7f090019 app:id/all_apps_delete_target_text}
android.widget.TextView{956854b G.ED… …I. 0,0-544,184}
android.widget.TextView{975cb28 G.ED… …I. 0,0-544,184}
android.widget.TextView{3fde041 G.ED… …I. 0,0-544,184}
android.widget.TextView{b279e6 G.ED… …I. 0,0-544,184}
com.lge.launcher3.widgettray.LGWidgetContainerView{6f7ec34 GFE… …ID 0,96-1440,2712 #7f090161 app:id/widgets_view}
android.widget.LinearLayout{baf9307 V.E… …ID 0,0-1440,2616 #7f090149 app:id/widget_container}
android.widget.FrameLayout{b062b27 V.E… …ID 0,0-1440,176}
com.lge.launcher3.allapps.AllAppsSearch{9f071d4 G.E… …I. 0,0-0,0 #7f090155 app:id/widget_search_bar}
android.widget.ImageView{c073f7d VFED…C… …I. 0,0-0,0 #7f09001e app:id/all_apps_search_exit}
android.widget.SearchView{c1c4e72 VFE… …I. 0,0-0,0 #7f09001d app:id/all_apps_search_edittext}
android.widget.LinearLayout{62052c3 V.E… …I. 0,0-0,0 #10203d1 android:id/search_bar}
android.widget.TextView{accd740 G.ED… …I. 0,0-0,0 #10203d0 android:id/search_badge}
android.widget.ImageView{e4d5679 GFED…C… …I. 0,0-0,0 #10203d2 android:id/search_button}
android.widget.LinearLayout{1dcdfbe V.E… …I. 0,0-0,0 #10203d4 android:id/search_edit_frame}
android.widget.ImageView{22b581f G.ED… …I. 0,0-0,0 #10203d6 android:id/search_mag_icon}
android.widget.LinearLayout{848276c V.E… …I. 0,0-0,0 #10203d7 android:id/search_plate}
android.widget.SearchViewKaTeX parse error: Expected '}', got '#' at position 55: …....ID 0,0-0,0 #?10203d8 android…SearchAutoComplete{4c9f2b1 VFED…CL. …ID 0,0-0,0 #10203d8 android:id/search_src_text}
android.widget.ImageView{7d47396 GFED…C… …I. 0,0-0,0 #10203d3 android:id/search_close_btn}
android.widget.LinearLayout{cb11b17 G.E… …I. 0,0-0,0 #1020434 android:id/submit_area}
android.widget.ImageView{873bb04 GFED…C… …I. 0,0-0,0 #10203d5 android:id/search_go_btn}
android.widget.ImageView{55a08ed GFED…C… …I. 0,0-0,0 #10203da android:id/search_voice_btn}
android.widget.ImageView{a5c3322 G.ED… …I. 0,0-0,0 #7f09002c app:id/blur_background_in_top_of_draglayer}
android.view.ViewStub{f2251b3 G.E… …I. 0,0-0,0 #7f0900a6 app:id/launcher_overlay_stub}
Looper (main, tid 2) {9f38370}
Message 0: { when=+3s125ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 1: { when=+14s461ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 2: { when=+14s525ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 3: { when=+14s743ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 4: { when=+14s896ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 5: { when=+40s43ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 6: { when=+40s43ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 7: { when=+57s234ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
Message 8: { when=+57s788ms what=2 target=com.lge.launcher3.liveicon.LiveIcon$1 }
(Total messages: 9, polling=false, quitting=false)
AutofillManager:
sessionId: -2147483648
state: UNKNOWN
context: com.lge.launcher3.LauncherExtension@11b312f
client: com.lge.launcher3.LauncherExtension@11b312f (android.os.BinderProxy@a1d820)
enabled: false
hasService: true
hasCallback: false
onInvisibleCalled false
last autofilled data: null
tracked views: null
fillable ids: null
entered ids: null
save trigger id: null
save on finish(): false
compat mode enabled: false
debug: false verbose: false
Autofill Compat Mode: false
ResourcesManager:
cached apks: 0 [cache disabled]
total apks: 3
resources: 4
resource impls: 3
4、卸載你想卸載的應用
上一步中我們拿到了你想要的卸載應用的包名了,這一步就小兒科了!
提供下面命令:
卸載: adb shell pm uninstall --user 0 應用包名
停用: adb shell pm disable-user 應用包名
啟用: adb shell pm enable 應用包名
參考:
【1】、adb命令查看當前運行activity
【2】、android 開發中Adb命令的使用查看所有的Apk包
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/41925.html
標籤:其他
上一篇:谷歌瀏覽器之安裝插件(SwitchyOmega_Chromium)提示程式包無效:"CRX_HEADER_INVALID"
