ユーザ用ツール

サイト用ツール


android:adb

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
android:adb [2019/10/22 10:29]
ips
android:adb [2019/11/15 06:59] (現在)
ips [SQLite コマンド]
ライン 31: ライン 31:
 generic_x86:/​ $ generic_x86:/​ $
  
 +# rootを取得する ※rootを取得できるイメージは決まっている ⇒ rootを取得するには参照
 +>adb root
 +
 +# 必要か不明
 +>adb remount
 +Not running as root. Try "adb root" first.
 +
 +# sqlite3
 +>adb shell
 +#cd /​data/​data/​[パッケージ名]/​databases
 +#sqlite3 xxxx.db
 +
 +</​code>​
 +
 +====== SQLite コマンド ======
 +
 +<​code>​
 +# DBオープン
 +# sqlite3 TestDB.db
 +
 +# テーブル一覧表示
 +qlite> .tables
 +
 +# テーブルの構造確認
 +sqlite> select * from sqlite_master;​
 +table|android_metadata|android_metadata|3|CREATE TABLE android_metadata (locale TEXT)
 +table|level|level|4|CREATE TABLE level (
 +    id INTEGER PRIMARY KEY AUTOINCREMENT,​
 +    type INTEGER,
 +    type_name text,
 +    level INTEGER,
 +    lock INTEGER,
 +    comp INTEGER,
 +    score INTEGER
 +    )
 +
 +# 終了
 +sqlite> .exit
 +sqlite> .quit
 +
 +</​code>​
 +
 +
 +====== rootを取得するには ======
 +<​code>​
 +>adb root
 +>adb remount
 +Not running as root. Try "adb root" first.
 +
 +
 +
 +Permission denied
 +
 +
 +
 +generic_x86:/​ $ // $マーク
 +
 +の場合はrootが取得できていない。
 </​code>​ </​code>​
  
 +<​html>​adb root</​html>​でrootを取得するためには、「Google APIs」のimageを選択したエミュレーターを使用する必要がある。
 +{{:​android:​pasted:​20191022-112103.png}}
 ===== SDK Managerでのインストール ===== ===== SDK Managerでのインストール =====
  
android/adb.1571707782.txt.gz · 最終更新: 2019/10/22 10:29 by ips