[Lenovo Zuk Z2 Pro ROMs, Kernels, Recoveries, & Oth] bnsmb:
get SnoopSnitch runnining on AEX

Hi

I read this

"For addition of more tweaks or features, head on to our G+ community and post the list of features that you want! Features with commits will be more helpful!"

on the first page but I really do not want to create a G+ userid only for a new feature request so probably I can request it here ...

I want to use SnoopSnitch

https:<remove_this>//opensource.srlabs.de/projects/snoopsnitch/wiki/Wiki

(I'm currently not allowed to post a message with a link ...)

on my ZUK z2 Pro with AEX

According to the FAQ for SnoopSnitch these are the requirements for SnoopSnitch (plus root access):

"The kernel needs to have the DIAG_CHAR device driver enabled and the /dev/diag character device must be present. The driver can be found under drivers/char/diag/ in the MSM kernel source.

How can I check whether the DIAG driver is enabled

Check whether a kernel driver named 'dia' is found in /proc/devices:

$ grep dia$ /proc/devices

247 dia

Then check whether a character device /dev/diag with a corresponding major number (it may differ from the value 247 in this example) exists:

$ ls -l /dev/diag

crw-rw---- system qcom_diag 247, 0 1970-02-02 03:25 diag

"

I checked that on my phone and /proc/devices/dia and /dev/diag exist in AOSPExtented but SnoopSnitch still ends with "Could not initialize the DIAG interface"

The messages in the logs when I start SnoopSnitch are

08-22 18:33:45.063 2539 2629 W QCNEJ : |CORE| CNE received unexpected action: android.intent.action.BATTERY_CHANGED
08-22 18:33:45.079 539 722 W SurfaceFlinger: Ignoring duplicate VSYNC event from HWC (t=20259879697478)
08-22 18:33:45.079 1241 1794 E wifi : Ignoring invalid tx_level info in radio_stats
08-22 18:33:45.081 1241 1363 E BatteryStatsService: no controller energy info supplied
08-22 18:33:45.122 1241 1363 E BatteryStatsService: power: Missing API
08-22 18:33:45.132 1241 1363 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
08-22 18:33:46.494 1241 1794 E wifi : Ignoring invalid tx_level info in radio_stats
08-22 18:33:46.495 18012 18012 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
08-22 18:33:46.500 18012 18012 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=9 sndbuf=212992 outq=768 send_len=48
08-22 18:33:47.247 1241 1856 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=de.srlabs.snoopsnitch/.StartupActivity bnds=[643,984][849,1276] (has extras)} from uid 1000 on display 0
08-22 18:33:47.249 1241 1856 E BoostFramework: Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
08-22 18:33:47.303 1241 2584 I ActivityManager: Start proc 26031:de.srlabs.snoopsnitch/u0a197 for activity de.srlabs.snoopsnitch/.StartupActivity
08-22 18:33:47.303 1241 2584 W System : ClassLoader referenced unknown path: /system/framework/QPerformance.jar
08-22 18:33:47.303 1241 2584 E BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
08-22 18:33:47.304 1241 2584 E BoostFramework: Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
08-22 18:33:47.503 26031 26031 I SNOOP : /proc/version: "Linux version 3.18.31-n7x-caf-g686e479a721 (davide@dmd-desktop) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Thu Aug 10 00:30:41 CEST 2017"
08-22 18:33:47.924 26056 26056 I diag-helper: starting
08-22 18:33:47.924 26056 26056 I diag-helper: test mode invoked
08-22 18:33:47.924 26056 26056 D diag-helper: opening diag device
08-22 18:33:47.925 26056 26056 F diag-helper: error setting diag device logging mode: Bad address/Invalid argument
08-22 18:33:47.925 26056 26056 E diag-helper: error opening DIAG device
08-22 18:33:47.979 26053 26053 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-22 18:33:47.984 26053 26053 D AndroidRuntime: CheckJNI is OFF
08-22 18:33:48.029 26053 26053 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-22 18:33:48.047 26031 26058 I Adreno : QUALCOMM build : 853a1ff, I9c435c2712
08-22 18:33:48.047 26031 26058 I Adreno : Build Date : 01/10/17
08-22 18:33:48.047 26031 26058 I Adreno : OpenGL ES Shader Compiler Version: XE031.09.00.04
08-22 18:33:48.047 26031 26058 I Adreno : Local Branch :
08-22 18:33:48.047 26031 26058 I Adreno : Remote Branch :
08-22 18:33:48.047 26031 26058 I Adreno : Remote Branch :
08-22 18:33:48.047 26031 26058 I Adreno : Reconstruct Branch :
08-22 18:33:48.053 26031 26058 I OpenGLRenderer: Initialized EGL, version 1.4
08-22 18:33:48.053 26031 26058 D OpenGLRenderer: Swap behavior 1
08-22 18:33:48.113 26053 26053 I Radio-JNI: register_android_hardware_Radio DONE
08-22 18:33:48.133 1241 1413 I ActivityManager: Displayed de.srlabs.snoopsnitch/.StartupActivity: +868ms
08-22 18:33:48.140 26053 26053 D AndroidRuntime: Calling main entry com.android.commands.am.Am
08-22 18:33:48.169 26053 26053 D AndroidRuntime: Shutting down VM
08-22 18:33:48.521 594 594 I cnss-daemon: RTM_NEWROUTE Indication
08-22 18:33:49.285 26057 26057 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
08-22 18:33:49.302 26057 26057 D AndroidRuntime: CheckJNI is OFF
08-22 18:33:49.399 26057 26057 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
08-22 18:33:49.512 1241 1794 E wifi : Ignoring invalid tx_level info in radio_stats
08-22 18:33:49.512 18012 18012 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
08-22 18:33:49.514 18012 18012 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=9 sndbuf=212992 outq=768 send_len=48
08-22 18:33:49.550 26057 26057 I Radio-JNI: register_android_hardware_Radio DONE
08-22 18:33:49.609 26057 26057 D AndroidRuntime: Calling main entry com.android.commands.am.Am
08-22 18:33:49.659 26057 26057 D AndroidRuntime: Shutting down VM

Any change to get that working in the AOSPExtended ROM?

regards

Bernd