• Stars
    star
    530
  • Rank 83,660 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android system log viewer on Android phone without root.

Fairy

中文版

Fairy is an easy debug tool which will allow developer to use adb logcat command to view Android system log on your Android phone instead of on your PC.You can scan the system log information anywhere with your Android phone which is no need to root.

Getting Start

Fairy support Android API 21+. There are two ways to choose.

  • Download
  1. Download the project.

  2. Cd [project path]/pc in the terminal.

  3. Configured adb environment In the terminal.

    • MacOS/Linux: Run pusher.sh with sh pusher.shcommand in terminal.

    • Windows: Run these commands

      //change the ${dir} to the real path
      adb push ${dir}/server.dex  /data/local/tmp
      adb push ${dir}/launcher.sh  /data/local/tmp
      adb push ${dir}/libfairy.so  /data/local/tmp
      adb shell sh /data/local/tmp/launcher.sh
  4. Install the apk in the [project path]/pc

  • Import
  1. Import project in AndroidStudio.

    • MacOS/Linux: Run ./gradlew -p fairy-server runService.

    • Windows: First Run gradlew -p fairy-server moveSo. Then run these commands:

      //change the ${dir} to the real path
      adb push ${dir}/server.dex  /data/local/tmp
      adb push ${dir}/launcher.sh  /data/local/tmp
      adb push ${dir}/libfairy.so  /data/local/tmp
      adb shell sh /data/local/tmp/launcher.sh
  2. Run fairy-client module or install APK directly.

It means that the server is working successfully if there is log information exec~~~ in terminal, and there is a server process named fairy in your phone (you can use this command to check it: adb shell ps | grep fairy).

Fairy default use armeabi .so. You can change the file path in task named moveSo which is in fairy-server's build.gradle if you need to change the type of .so.

Questions

  1. You can use chmod command to enhance file's executive power (r-w-x) if you have this error can't execute: Permission denied when run shell script.
  2. You can use Dos2Unix tool to convert the edit format if you are developing with Windows env and have too many logs which is not found when run the launcher.sh script.

TODO

  • Fit Android low-end mobile phone.Some low-end mobile phone like MI2 and MI3 may kill the Fairy-Server when USB is break up or may can't support logcat -t "[time]"command. So these phones may not use Fairy because Fairy uses feed-stream which is based on timeline.
  • Add log grep feature.
  • Optimize the view to display log.
  • Optimize the view to display item
  • Data persistence by SQL.
  • Add floating window to display data.

Fix

  • Fit Android8.0+ of the Window Type permission limit.
  • Update readme to notice the Windows Programmer how to use it.

About More

I have completed the code refactoring in this release (v2.0.0-alpha) with Android Architecture Components

aritecture

FAQ

[email protected]

  • Welcome our qq group: 577953847
  • You can submit an issue for me too if you have some error when use it.
  • And welcome everybody to help me together optimize this project.Just fork and request.

License

    Copyright 2017 Zane

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

More Repositories

1

EasyRouter

A simple android framework used to route activity or action with url.
Java
159
star
2

GithubQuery

由rxjava+retrofit2+dagger2+mvp架构完成的查询github用户信息的app by android。
Java
43
star
3

P2P_UDP

使用Android+Node.js实现基于UDP协议的P2P打洞测试,移动端
Java
41
star
4

EasyMVP

在安卓上运用的MVP模式开发框架。A framework for MVP pattern in android.
Java
38
star
5

ICY-ClaTable

i重邮项目课表查询功能。by android
Java
19
star
6

BookManager

个人练手项目:图书管理,阅读计划类型app by android。(Rxjava, Retrofit2, dagger2, EasyMVP, Datamanager, MD设计)
Java
15
star
7

EasyImage

运用在安卓开发上提供本地,缓存,网络三方图片的快速开发库
Java
14
star
8

P2P_UDP_SERVER

使用Android+Node.js实现基于UDP协议的P2P打洞测试,服务端
JavaScript
12
star
9

EasyLineCounter

a gradle plugin to count the number of lines of code in android project
Groovy
7
star
10

BestBitmapDownload

使用双向弱引用防止recycleview图片异步加载错位。
Java
5
star
11

Zane96.github.io

纪录程序人生
HTML
4
star
12

EasyHomeWork

数据库比赛app
Java
4
star
13

EventBus_Annotation

EventBus源码的中文注释
Java
2
star
14

SharedElements_ViewDragHelper

一个简单的练习页面跳转组件共享以及仿Youtube拖拉控件的效果demo
Java
2
star
15

Cheese

一个符合material design的app by android,练习了design包的各种控件。
Java
2
star
16

mvp-test-login

一个用MVP模式实现的登入页面。A realization of the MVP pattern login page.
Java
1
star
17

NetListener

A simple app to make a cell phone access through IP addresses to listen for other phones by android(Zane.)
Java
1
star
18

custom-view-touch-test

一些自定义的view来加强对Touch的认识
Java
1
star
19

Script_Set

脚本练习集合
Python
1
star