Pandora 是一款無需ROOT、可以直接在 應(yīng)用內(nèi) 查看和修改包括網(wǎng)絡(luò)、數(shù)據(jù)庫、UI等的Android工具箱,適合開發(fā)和測試階段的各種問題的快速定位。
功能

查看每條網(wǎng)絡(luò)請求的詳細(xì)日志,例如headers、response等;
查看自身應(yīng)用的內(nèi)部存儲系統(tǒng);
查看所有數(shù)據(jù)庫,支持直接進(jìn)行增刪改查操作;
查看并編輯所有Shared Preference;
預(yù)覽當(dāng)前頁面的視圖層級、查看/修改常用控件的屬性;
測量控件之間距離、檢測是否對齊;
選中頁面上的任意控件以移動位置、查看自身大小、顯示相對關(guān)系;
更多功能期待大家探索;
部分效果如下:
展示圖片依次為:網(wǎng)絡(luò)、數(shù)據(jù)庫、UI、文件
image image
image image
集成 Release
具體使用操作
在root’s build.gradle中加入Jitpack倉庫:
allprojects {
repositories {
…
maven { url ‘https://jitpack.io’ }
}
}
在app’s build.gradle中(請使用最新版本):
dependencies {
…
debugImplementation ‘com.github.whataa:pandora:v1.0.1’
releaseImplementation ‘com.github.whataa:pandora-no-op:v1.0.1’
}
public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Pandora.init(this).enableShakeOpen();
}
}