niclabs / adkintun-mobile-middleware Goto Github PK
View Code? Open in Web Editor NEWAndroid Middleware for Mobile Sensing created originally for the Adkintun Mobile project
License: Other
Android Middleware for Mobile Sensing created originally for the Adkintun Mobile project
License: Other
In new generation devices with support for 4g technology, the library doesn't recognize the signal strength of the antennas, so the telephony monitor never report data with samples for signal strength
Device class must also receive the following actions:
"android.intent.action.QUICKBOOT_POWERON"
"com.htc.intent.action.QUICKBOOT_POWERON"
this is because not all devices send "android.intent.action.BOOT_COMPLETED"
when they start.
#0. Crashed: main: 0 0 0x0000000000000000
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onCellLocationChanged(Telephony.java:105)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:295)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onCellLocationChanged(Telephony.java:105)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:295)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Starting in N (android 7) the methods getUidRxBytes and getUidTxBytes used to calculate application traffic for each app, will only report traffic statistics for the calling UID (in our case, only statistics for AdkintunMobile). It will return UNSUPPORTED for all other UIDs for privacy reasons.
To access historical network statistics belonging to other UIDs, Android recommend to use NetworkStatsManager.
#0. Crashed: main: 0 0 0x0000000000000000
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onSignalStrengthsChanged(Telephony.java:282)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5430)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
Fatal Exception: java.lang.ClassCastException: cl.niclabs.adkmobile.monitor.data.CdmaObservation cannot be cast to cl.niclabs.adkmobile.monitor.data.GsmObservation
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onSignalStrengthsChanged(Telephony.java:282)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5430)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
To avoid erroneous calculation of the mean signal strength in TelephonyObservation
samples, individual samples must be sent to the server so that measures of central tendency are calculated when necessary
#0. Crashed: main: 0 0 0x0000000000000000
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onCellLocationChanged(Telephony.java:148)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:288)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:189)
at android.app.ActivityThread.main(ActivityThread.java:5535)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.telephony.cdma.CdmaCellLocation.getBaseStationId()' on a null object reference
at cl.niclabs.adkmobile.monitor.Telephony$TelephonyStateListener.onCellLocationChanged(Telephony.java:148)
at android.telephony.PhoneStateListener$1.handleMessage(PhoneStateListener.java:288)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:189)
at android.app.ActivityThread.main(ActivityThread.java:5535)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.