5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Androidアプリのデータ削除をadbコマンドでやる

Posted at

nexus端末以外はデータ削除がめんどくさい(ときがある)

nexus系端末はアプリ長押しドラッグで「アプリ情報」までやればデータ削除が簡単ですが、
独自UI?ホームランチャー?が入っている端末(xperiaとかgalaxyとか)はどうやったらいいかわからないときあります。
長押ししたりしても出てこないし、じゃ設定アプリから行こうと思ってもまず設定アプリがどこにあるかわからない。
そんな状況ないでしょうか。

そこでadbコマンドでアプリのデータ削除をする方法を紹介します。

adbコマンドでデータ削除

adb shell pm clear パッケージネーム

です。

パッケージネームは

adb shell pm list packages

で調べられます!




この記事はDroidkaigi 2017でoperandoOSさんが発表したhttps://speakerdeck.com/operando/komantonasitehokuhaandroidkai-fa-tekinaihua-1 を元に書きました。

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?