主頁 > 後端開發 > Android~adb卸載系統預裝應用(親測有效)

Android~adb卸載系統預裝應用(親測有效)

2020-09-15 01:27:16 後端開發

本文介紹一種安卓卸載系統應用的方法,如果你和我一樣喜歡瞎折騰,有那么一點強迫癥,希望對你有用,作為一名安卓開發者,大學以前總喜歡刷不同刷機包(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/houduan/40302.html

標籤:java

上一篇:谷歌瀏覽器之安裝插件(SwitchyOmega_Chromium)提示程式包無效:"CRX_HEADER_INVALID"

下一篇:大疆無人機安卓Mobile Sdk開發(一)簡單介紹

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 【C++】Microsoft C++、C 和匯編程式檔案

    ......

    uj5u.com 2020-09-10 00:57:23 more
  • 例外宣告

    相比于斷言適用于排除邏輯上不可能存在的狀態,例外通常是用于邏輯上可能發生的錯誤。 例外宣告 Item 1:當函式不可能拋出例外或不能接受拋出例外時,使用noexcept 理由 如果不打算拋出例外的話,程式就會認為無法處理這種錯誤,并且應當盡早終止,如此可以有效地阻止例外的傳播與擴散。 示例 //不可 ......

    uj5u.com 2020-09-10 00:57:27 more
  • Codeforces 1400E Clear the Multiset(貪心 + 分治)

    鏈接:https://codeforces.com/problemset/problem/1400/E 來源:Codeforces 思路:給你一個陣列,現在你可以進行兩種操作,操作1:將一段沒有 0 的區間進行減一的操作,操作2:將 i 位置上的元素歸零。最終問:將這個陣列的全部元素歸零后操作的最少 ......

    uj5u.com 2020-09-10 00:57:30 more
  • UVA11610 【Reverse Prime】

    本人看到此題沒有翻譯,就附帶了一個自己的翻譯版本 思考 這一題,它的第一個要求是找出所有 $7$ 位反向質數及其質因數的個數。 我們應該需要質數篩篩選1~$10^{7}$的所有數,這里就不慢慢介紹了。但是,重讀題,我們突然發現反向質數都是 $7$ 位,而將它反過來后的數字卻是 $6$ 位數,這就說明 ......

    uj5u.com 2020-09-10 00:57:36 more
  • 統計區間素數數量

    1 #pragma GCC optimize(2) 2 #include <bits/stdc++.h> 3 using namespace std; 4 bool isprime[1000000010]; 5 vector<int> prime; 6 inline int getlist(int ......

    uj5u.com 2020-09-10 00:57:47 more
  • C/C++編程筆記:C++中的 const 變數詳解,教你正確認識const用法

    1、C中的const 1、區域const變數存放在堆疊區中,會分配記憶體(也就是說可以通過地址間接修改變數的值)。測驗代碼如下: 運行結果: 2、全域const變數存放在只讀資料段(不能通過地址修改,會發生寫入錯誤), 默認為外部聯編,可以給其他源檔案使用(需要用extern關鍵字修飾) 運行結果: ......

    uj5u.com 2020-09-10 00:58:04 more
  • 【C++犯錯記錄】VS2019 MFC添加資源不懂如何修改資源宏ID

    1. 首先在資源視圖中,添加資源 2. 點擊新添加的資源,復制自動生成的ID 3. 在解決方案資源管理器中找到Resource.h檔案,編輯,使用整個專案搜索和替換的方式快速替換 宏宣告 4. Ctrl+Shift+F 全域搜索,點擊查找全部,然后逐個替換 5. 為什么使用搜索替換而不使用屬性視窗直 ......

    uj5u.com 2020-09-10 00:59:11 more
  • 【C++犯錯記錄】VS2019 MFC不懂的批量添加資源

    1. 打開資源頭檔案Resource.h,在其中預先定義好宏 ID(不清楚其實ID值應該設定多少,可以先新建一個相同的資源項,再在這個資源的ID值的基礎上遞增即可) 2. 在資源視圖中選中專案資源,按F7編輯資源檔案,按 ID 型別 相對路徑的形式添加 資源。(別忘了先把檔案拷貝到專案中的res檔案 ......

    uj5u.com 2020-09-10 01:00:19 more
  • C/C++編程筆記:關于C++的參考型別,專供新手入門使用

    今天要講的是C++中我最喜歡的一個用法——參考,也叫別名。 參考就是給一個變數名取一個變數名,方便我們間接地使用這個變數。我們可以給一個變數創建N個參考,這N + 1個變數共享了同一塊記憶體區域。(參考型別的變數會占用記憶體空間,占用的記憶體空間的大小和指標型別的大小是相同的。雖然參考是一個物件的別名,但 ......

    uj5u.com 2020-09-10 01:00:22 more
  • 【C/C++編程筆記】從頭開始學習C ++:初學者完整指南

    眾所周知,C ++的學習曲線陡峭,但是花時間學習這種語言將為您的職業帶來奇跡,并使您與其他開發人員區分開。您會更輕松地學習新語言,形成真正的解決問題的技能,并在編程的基礎上打下堅實的基礎。 C ++將幫助您養成良好的編程習慣(即清晰一致的編碼風格,在撰寫代碼時注釋代碼,并限制類內部的可見性),并且由 ......

    uj5u.com 2020-09-10 01:00:41 more
最新发布
  • Rust中的智能指標:Box<T> Rc<T> Arc<T> Cell<T> RefCell<T> Weak

    Rust中的智能指標是什么 智能指標(smart pointers)是一類資料結構,是擁有資料所有權和額外功能的指標。是指標的進一步發展 指標(pointer)是一個包含記憶體地址的變數的通用概念。這個地址參考,或 ” 指向”(points at)一些其 他資料 。參考以 & 符號為標志并借用了他們所 ......

    uj5u.com 2023-04-20 07:24:10 more
  • Java的值傳遞和參考傳遞

    值傳遞不會改變本身,參考傳遞(如果傳遞的值需要實體化到堆里)如果發生修改了會改變本身。 1.基本資料型別都是值傳遞 package com.example.basic; public class Test { public static void main(String[] args) { int ......

    uj5u.com 2023-04-20 07:24:04 more
  • [2]SpinalHDL教程——Scala簡單入門

    第一個 Scala 程式 shell里面輸入 $ scala scala> 1 + 1 res0: Int = 2 scala> println("Hello World!") Hello World! 檔案形式 object HelloWorld { /* 這是我的第一個 Scala 程式 * 以 ......

    uj5u.com 2023-04-20 07:23:58 more
  • 理解函式指標和回呼函式

    理解 函式指標 指向函式的指標。比如: 理解函式指標的偽代碼 void (*p)(int type, char *data); // 定義一個函式指標p void func(int type, char *data); // 宣告一個函式func p = func; // 將指標p指向函式func ......

    uj5u.com 2023-04-20 07:23:52 more
  • Django筆記二十五之資料庫函式之日期函式

    本文首發于公眾號:Hunter后端 原文鏈接:Django筆記二十五之資料庫函式之日期函式 日期函式主要介紹兩個大類,Extract() 和 Trunc() Extract() 函式作用是提取日期,比如我們可以提取一個日期欄位的年份,月份,日等資料 Trunc() 的作用則是截取,比如 2022-0 ......

    uj5u.com 2023-04-20 07:23:45 more
  • 一天吃透JVM面試八股文

    什么是JVM? JVM,全稱Java Virtual Machine(Java虛擬機),是通過在實際的計算機上仿真模擬各種計算機功能來實作的。由一套位元組碼指令集、一組暫存器、一個堆疊、一個垃圾回收堆和一個存盤方法域等組成。JVM屏蔽了與作業系統平臺相關的資訊,使得Java程式只需要生成在Java虛擬機 ......

    uj5u.com 2023-04-20 07:23:31 more
  • 使用Java接入小程式訂閱訊息!

    更新完微信服務號的模板訊息之后,我又趕緊把微信小程式的訂閱訊息給實作了!之前我一直以為微信小程式也是要企業才能申請,沒想到小程式個人就能申請。 訊息推送平臺🔥推送下發【郵件】【短信】【微信服務號】【微信小程式】【企業微信】【釘釘】等訊息型別。 https://gitee.com/zhongfuch ......

    uj5u.com 2023-04-20 07:22:59 more
  • java -- 緩沖流、轉換流、序列化流

    緩沖流 緩沖流, 也叫高效流, 按照資料型別分類: 位元組緩沖流:BufferedInputStream,BufferedOutputStream 字符緩沖流:BufferedReader,BufferedWriter 緩沖流的基本原理,是在創建流物件時,會創建一個內置的默認大小的緩沖區陣列,通過緩沖 ......

    uj5u.com 2023-04-20 07:22:49 more
  • Java-SpringBoot-Range請求頭設定實作視頻分段傳輸

    老實說,人太懶了,現在基本都不喜歡寫筆記了,但是網上有關Range請求頭的文章都太水了 下面是抄的一段StackOverflow的代碼...自己大修改過的,寫的注釋挺全的,應該直接看得懂,就不解釋了 寫的不好...只是希望能給視頻網站開發的新手一點點幫助吧. 業務場景:視頻分段傳輸、視頻多段傳輸(理 ......

    uj5u.com 2023-04-20 07:22:42 more
  • Windows 10開發教程_編程入門自學教程_菜鳥教程-免費教程分享

    教程簡介 Windows 10開發入門教程 - 從簡單的步驟了解Windows 10開發,從基本到高級概念,包括簡介,UWP,第一個應用程式,商店,XAML控制元件,資料系結,XAML性能,自適應設計,自適應UI,自適應代碼,檔案管理,SQLite資料庫,應用程式到應用程式通信,應用程式本地化,應用程式 ......

    uj5u.com 2023-04-20 07:22:35 more