31 July 2017

Huawei P10 liteの不要アプリ削除

中国の通信機器メーカー華為(华为)が日本国内で販売しているHuawei P10 liteを購入して、root化まで行った後に、不要アプリを削除した。

前回の記事 『Huawei P10 lite購入とroot化

pmコマンドでパッケージ無効化

pm disable [package]で無効化したパッケージ一覧

HWWAS-H:/ # pm list packages -d | sort                                         
package:com.android.calendar   ← Googleカレンダー アプリで代替
package:com.android.deskclock   ← Google時計 アプリで代替
package:com.android.email   ← GMailアプリ、K-9メールで代替
package:com.android.gallery3d   ← QuickPicで代替
package:com.android.hwmirror   ← 標準カメラアプリで代替
package:com.example.android.notepad   ← メモ帳は利用しない
package:com.google.android.apps.plus   ← Google+は利用しない
package:com.google.android.googlequicksearchbox   ← デスクトップ検索は利用しない
package:com.google.android.play.games   ← Google Playゲームは利用しない
package:com.google.android.syncadapters.calendar   ← Googleカレンダー アプリで代替
package:com.google.android.webview   ← 購入時から無効化されていた
package:com.hisi.mapcon
package:com.huawei.KoBackup   ← Huaweiのバックアップは使わない
package:com.huawei.android.FloatTasks   ← フローティングボタンは使わない
package:com.huawei.android.hwouc
package:com.huawei.android.internal.app
package:com.huawei.android.launcher   ← Xperiaホームで代替
package:com.huawei.android.location.activityrecognition
package:com.huawei.android.mirrorshare
package:com.huawei.android.projectmenu
package:com.huawei.android.totemweather   ←デスクトップ天気予報は使わない
package:com.huawei.compass   ← コンパスはGPS地図ソフトで代替
package:com.huawei.iaware
package:com.huawei.iconnect   ← HuaweiのIP電話らしいが、使わない
package:com.huawei.imonitor
package:com.huawei.ims
package:com.huawei.phoneservice   ← ユーザサポートHiCareは使わない
package:com.huawei.watch.sync
package:jp.co.omronsoft.iwnnime.ml   ← wnn入力は使わない

パッケージ自体を削除

pmコマンドで削除できないプリインストール・アプリは、システム・ディレクトリ上のapkパッケージファイルを削除する。たとえば、次のように/systemディレクトリを読み書き可能な状態で再マウントしてから、目的のapkが入っているディレクトリをバッサリと削除する。

# mount -o rw,remount /system
# rm -r /system/priv-app/HwIndexSearchService

全てのプリインストール・パッケージは、次のディレクトリに存在している。

HWWAS-H:/ # ls -la /system/priv-app/
total 536
drwxr-xr-x 67 root root 4096 2017-07-29 22:51 .
drwxr-xr-x 25 root root 4096 1970-01-01 09:00 ..
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 BackupRestoreConfirmation
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 BlockedNumberProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 Calendar
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 CalendarProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 CarrierConfig
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 CellBroadcastReceiver
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 ConfigUpdater
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 Contacts
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 ContactsProvider
drwxr-xr-x  2 root root 4096 2017-04-20 14:38 CtsShimPrivPrebuilt
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 DefaultContainerService
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 DocumentsUI
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 DownloadProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 Email
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 EmergencyInfo
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 Exchange2
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 ExternalStorageProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 FusedLocation
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 Gallery2
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GmsCore
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleBackupTransport
drwxr-xr-x  3 root root 4096 2017-04-20 14:43 GoogleExtServices
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleFeedback
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 GoogleLoginService
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleOneTimeInitializer
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 GooglePackageInstaller
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GooglePartnerSetup
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleServicesFramework
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HWCardManager
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HiMovie
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwCamera2
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwChrService   ← 削除(delete)
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 HwIndexSearchService   ← 削除(delete)
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwMediaCenter
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwMotionRecognition
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwNotePad
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwScanner
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwScreenRecorder
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 HwServiceFramework
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 HwStartupGuide
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwSystemManager
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 HwWeatherClock
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 InCallUI
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 InputDevices
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 ManagedProvisioning
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 MediaProvider
drwxr-xr-x  4 root root 4096 2017-04-20 14:42 Mms
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 MmsService
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 MtpDocumentsProvider
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Phonesky
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 ProxyHandler
drwxr-xr-x  3 root root 4096 2017-04-20 14:43 Settings
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 SettingsProvider
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 SetupWizard
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 SharedStorageBackup
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 Shell
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 StatementService
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 SystemUI
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 Tag
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 TeleService
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 Telecom
drwxr-xr-x  3 root root 4096 2017-04-20 14:43 TelephonyProvider
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Velvet
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 VpnDialogs
drwxr-xr-x  3 root root 4096 2017-04-20 14:42 WallpaperCropper
 
 
HWWAS-H:/ # ls -ls /product/app/
total 40
8 drwxr-xr-x 2 root root 4096 2017-04-20 11:58 HwFMRadio
8 drwxr-xr-x 2 root root 4096 2017-04-20 11:58 HwFidoAsm
8 drwxr-xr-x 2 root root 4096 2017-04-20 11:58 HwFidoClient
8 drwxr-xr-x 2 root root 4096 2017-04-20 11:58 HwSarControlService
8 drwxr-xr-x 2 root root 4096 2017-04-20 11:58 HwSmartShot
 
 
1|HWWAS-H:/ # ls -la /system/app/                                              
total 520
drwxr-xr-x 65 root root 4096 2017-07-30 09:42 .
drwxr-xr-x 25 root root 4096 1970-01-01 09:00 ..
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 BasicDreams
drwxr-xr-x  4 root root 4096 2017-04-20 14:40 Bluetooth
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 BluetoothMidiService
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 BookmarkProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 Calculator
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 CaptivePortalLogin
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 CertInstaller
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Chrome
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 CotaDecompressService
drwxr-xr-x  2 root root 4096 2017-04-20 14:38 CtsShimPrebuilt
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 DownloadProviderUi
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Drive
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Gmail2
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleCalendarSyncAdapter
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 GoogleContactsSyncAdapter
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 GoogleExtShared
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 GooglePrintRecommendationService
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 GoogleTTS
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HTMLViewer
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwARService
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwAps
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwBluetoothImport
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwDeskClock
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwDetectRepair
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwFloatTasks
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwIAware
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwIMonitor
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwIms
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwIndexSearchObserverService   ← 削除(delete)
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwInternetAudioService
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwLBSService
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwLauncher6
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwMMITest
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwMagazine
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwMultiScreenShot
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwPowerGenieEngine3
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwProjectMenu
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwResolver
drwxr-xr-x  4 root root 4096 2017-04-20 14:40 HwSecurityMgrService
drwxr-xr-x  4 root root 4096 2017-04-20 14:40 HwSoundRecorder
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwThemeManager
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwTrustAgent
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 HwVideoEditor
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 HwWiFiDirect
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 HwWifiproBqeService
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 KeyChain
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 LiveWallpapersPicker
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Maps
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 MirrorShare
drwxr-xr-x  4 root root 4096 2017-04-20 14:40 NfcNci_45
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 PacProcessor
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 PartnerBookmarksProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 PhotoTable
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 Photos
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 PrintSpooler
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 SmartcardService
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 Stk
drwxr-xr-x  4 root root 4096 2017-04-20 14:41 SwiftKey
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 SwiftKeyFactorySettings
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 UserDictionaryProvider
drwxr-xr-x  3 root root 4096 2017-04-20 14:40 WatchSync
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 WebViewGoogle
drwxr-xr-x  2 root root 4096 2017-04-20 14:43 YouTube
drwxr-xr-x  3 root root 4096 2017-04-20 14:41 iConnect
 
 
HWWAS-H:/ # ls -la /cust/hw/jp/app/
total 112
drwxr-xr-x 14 root root 4096 2017-04-20 14:19 .
drwxr-xr-x  8 root root 4096 2017-04-20 14:19 ..
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 ChromeHomePage
drwxr-xr-x  3 root root 4096 2017-04-20 14:21 HwCloudDrive_Local
drwxr-xr-x  3 root root 4096 2017-04-20 14:21 HwOUC
drwxr-xr-x  3 root root 4096 2017-04-20 14:21 HwPhoneService
drwxr-xr-x  3 root root 4096 2017-04-20 14:21 LatinImeGoogle
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 OMACP
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 PredefinedEapSim
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 SkinStdDark
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 SkinStdLight
drwxr-xr-x  3 root root 4096 2017-04-20 14:21 iWnnIME   ← 削除(delete)
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 iWnnIME_Kbd_Old   ← 削除(delete)
drwxr-xr-x  2 root root 4096 2017-04-20 14:21 talkback   ← 削除(delete)