android - debug.log for XposedBridge? -


i work on application xposedbridge , have lot of questions. start simple ones.

  1. how can debug.log file?

    i cannot find debug.log file. have tried phone shell 2 adb ways : a. adb shell data/data/de.robv.android.xposed.installer/log/debug.log b. adb shell "su -c 'cat data/data/de.robv.android.xposed.installer/log/debug.log'" c. adb shell cat data/data/de.robv.android.xposed.installer/log/debug.log

    adb says : " no such file or directory "

    the phone shell can cd /data , /data/data not after. cannot ls neither of data's. says access denied. adb when try adb ls.

    the phone, moto e xt1023, rooted. despite, shell cannot read directories. have posted question why here no 1 seems care answer.

    i had go es file explorer. managed /data. es says folder empty. managed emulator/0/de.robv.android.xposed.installer or alike. there subdirectory called files. inside installer. no debug.log.

    searched directories es debug.log. nothing found.

  2. once create xposedbridge class in separate file of project , once whatever xposedbridge supposed (override methods, insert code before , or after methods, etcetera) overridden methods or methods code run before , or after or overridden data continue overridden until app exits. true?

  3. is there simple, yet powerful , comprehensive manual or reference or, best, tutorial?

  4. can specify directory debug.log.file?

  5. in case able make directory \data\data manually, make xposed save debug.log there?

i happy have managed partially answer first question not related xposedbridge global root reach question rooted phones, cannot think of other questions now. not have debug.log have error.log , know how read these. here how in case interested :

in order able reed xposedbridge log files :

  1. go specialised moto e adb ( may work standard 1 ).

  2. type :

    ************  * adb root *  ************  

    to ensure root access.

  3. the dollar sign $ must appear sign before commands. $ means adb shell environment has been entered.

  4. after $, type :

    ******  * su *  ******  
  5. the sharp sign # must appear sign before commands. # means root has been entered. once root has been entered, there full access phone. :

    **************************************************  * cd /data/data/de.robv.android.xposed.installer *  **************************************************  

    can executed , directory /data/data/de.robv.android.xposed.installer entered.

  6. type :

    ******  * ls *  ******  

    to see contents of directory.

  7. in case error.log or debug.log files there, type :

    *****************  * cat error.log *  *****************  

    and or

    *****************  * cat debug.log *  *****************  

    to view these files.

  8. type :

    ********  * exit *  ********  

    to return safer $ prompt.

  9. type :

    ********  * exit *  ********  

    to exit adb.

    note : adb root may not run while project developed. rest works, though.

i still not have debug.log. may xposedbridge lines not run. check simple method manual.

here have found out, though. have created empty text file called debug.log on computer , transferred file main root of device, /sdcard directory, themn copied file /data/data/de.robv.android.xposed.installer/log see happens. nothing happens. file empty.

here have found out may helpful:


commands read log files :

adb shell  su  cd /data/data/de.robv.android.xposed.installer/log  cat error.log  

use cp source destination after su shell, # prompt, copy files 1

directory on device.


important notes :


all xposed classes must put in xposed_init, otherwise android studio 1.2 reports them never used.


in built.gradle, have :

/* ssb : added manually gradle builds  xposedbridgeapi-54.jar in app -> libs  not include jar in apk. */ dependencies { provided filetree(dir: 'libs', include: ['*.jar']) } 

these have been put manually.


update : have been able clean code , have managed find why not have debug.log. because 2 xposedbridge classes have ( 1 initialisation of zygote , other work file hooks , replacements ) not loaded. error.log shows : didn't find class " package ( strts without com. ) nameofthepackagewithoutcomdot.nameoftheexposedclass in nameofthepackagewithoutcomdot-2.apk "

this said 2 classes.

problem partially solved:

i have removed string " package " xposed_init , solved problem. thus, instead of :

package thenameofthepackage.thenameoftheclass  

xposed_init contains :

thenameofthepackage.thenameoftheclass  

without word " package " in front of names android studio puts , requires.

now, custom class seems load ok , xmain zygote init generates novel.

regardless, custom class test code works ok. debug.log file generated. however, application not seem write in file , debug.log says :

d.xposed.installer/log/debug.log  

inside.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -