and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  1. 18 Nov, 2019 1 commit
    • liujk2's avatar
      [FWAPP-1][UE][liujk2] fix a translation issue · df875475
      liujk2 authored
      1. on Android N, get temperature would need be set as device manager,
      and name of this App would be display on view, but App Name just have
      little translation (English and Chinese),
      so now we do not need support Android N, so remove the action of
      been set as device manager to fix translation issue
      
      Change-Id: I21dca477485b73041f1c2c7f98117e4b403af0bf
      df875475
  2. 24 Oct, 2019 2 commits
    • liujk2's avatar
      [FWAPP-1][UE][liujk2] keep wifi info when ssid lost · 6760aa75
      liujk2 authored
      1. before wifi lost, capabilities change would override wifi info
      2. add is_lost to A803
      
      Change-Id: Ia47e307880340b9353f7891553def178ce22d9bc
      6760aa75
    • liujk2's avatar
      [FWAPP-1][UE][liujk2] fix duration issue · cb047dda
      liujk2 authored
      1. fix screen on duration issue, when screen on more than one day,
         duration may be error
      2. make sure duration do not more than one day in one event
      
      Change-Id: Idc1e9f6ce39a9b7a588dca95c04c32f14f718ba2
      cb047dda
  3. 22 Oct, 2019 1 commit
  4. 21 Oct, 2019 7 commits
  5. 22 Aug, 2019 2 commits
  6. 01 Aug, 2019 1 commit
  7. 31 Jul, 2019 1 commit
  8. 19 Jul, 2019 1 commit
  9. 15 Jul, 2019 2 commits
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] multi user support for other app · adf7d252
      JackyLiu authored
      change provider as singleUser=true
      
      Change-Id: I7ba2a6c1be43df1351bed93dfc7632dc339628ff
      adf7d252
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix sometimes upload data lost · ba5f5237
      JackyLiu authored
      maybe has some exception when cursor.moveToNext()
      and then upload interrupted
      
      07-15 08:21:14.662  1982  2320 E SQLiteConnection: startPos 3192 > actual rows 3109
      07-15 08:21:14.663  1982  2320 E SQLiteQuery: exception: Row too big to fit into CursorWindow requiredPos=4788, totalRows=3109; query: SELECT DISTINCT * FROM committed
      07-15 08:21:14.666  1982  2320 W UserExperience: ULog.b() android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=4788, totalRows=3109
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:859)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:157)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.sqlite.SQLiteCursor.onMove(SQLiteCursor.java:128)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:237)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.database.AbstractCursor.moveToNext(AbstractCursor.java:269)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService.b(UploadService.java:345)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService.a(UploadService.java:305)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService.b(UploadService.java:289)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService.a(UploadService.java:274)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService.a(UploadService.java:53)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at com.lenovo.ue.device.uploader.UploadService$1.run(UploadService.java:240)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.os.Handler.handleCallback(Handler.java:873)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.os.Handler.dispatchMessage(Handler.java:99)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.os.Looper.loop(Looper.java:193)
      07-15 08:21:14.666  1982  2320 W UserExperience: 	at android.os.HandlerThread.run(HandlerThread.java:65)
      
      Change-Id: I080fcb35038a1659bcd32119f2f46a62dd2bab2b
      ba5f5237
  10. 12 Jul, 2019 3 commits
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] A101 lost boot memory · 249f65ef
      JackyLiu authored
      because init ue earlier, so boot complete point is later than
      A101 collect, so just collect memory after init over
      
      Change-Id: I6ff34374a43ff281a76cb56919b9cf1dab9abde2
      249f65ef
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] add new event for record count of daily events · ede093e4
      JackyLiu authored
      1. add special event to record upload count of events by day
      2. all data would be count, but one count event just contain one day
      3. add upload_day to every event data
      
      Change-Id: Icee04e42e9fc150bf597bdd77f6f53cf34707578
      ede093e4
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix a FC · a636267f
      JackyLiu authored
      should remove twoHourJob when ActiveInfoCollector stop collection
      
      07-09 22:27:05.528 19146 19146 E AndroidRuntime: FATAL EXCEPTION: main
      07-09 22:27:05.528 19146 19146 E AndroidRuntime: Process: com.lenovo.ue.device, PID: 19146
      07-09 22:27:05.528 19146 19146 E AndroidRuntime: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Handler.removeCallbacks(java.lang.Runnable)' on a null object reference
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.app.job.JobServiceEngine$JobHandler.handleMessage(JobServiceEngine.java:112)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6714)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Handler.removeCallbacks(java.lang.Runnable)' on a null object reference
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.a.a(ActiveInfoCollector.java:191)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.a.o(ActiveInfoCollector.java:181)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.a.d(ActiveInfoCollector.java:94)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.CollectorService.b(CollectorService.java:287)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.CollectorService.d(CollectorService.java:314)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at com.lenovo.ue.device.collector.CollectorService.onStartJob(CollectorService.java:300)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.app.job.JobService$1.onStartJob(JobService.java:62)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        at android.app.job.JobServiceEngine$JobHandler.handleMessage(JobServiceEngine.java:108)
      07-09 22:27:05.528 19146 19146 E AndroidRuntime:        ... 6 more
      
      Change-Id: I537b7a06ed486f476df3b77d9e20a98b3069c2bc
      a636267f
  11. 08 Jul, 2019 2 commits
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix a FC · ef6a5464
      JackyLiu authored
      java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.post(java.lang.Runnable)' on a null object reference
      	at android.app.job.JobServiceEngine$JobHandler.handleMessage(JobServiceEngine.java:112)
      	at android.os.Handler.dispatchMessage(Handler.java:106)
      	at android.os.Looper.loop(Looper.java:164)
      	at android.app.ActivityThread.main(ActivityThread.java:6518)
      	at java.lang.reflect.Method.invoke(Native Method)
      	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.post(java.lang.Runnable)' on a null object reference
      	at com.lenovo.ue.device.uploader.UploadService.onStartJob(UploadService.java:235)
      	at android.app.job.JobService$1.onStartJob(JobService.java:71)
      	at android.app.job.JobServiceEngine$JobHandler.handleMessage(JobServiceEngine.java:108)
      	... 6 more
      
      Change-Id: I6f63d9e252f85d915dfbbf4e7cac3e6526515a81
      ef6a5464
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix a FC · 53c5b55e
      JackyLiu authored
      java.lang.RuntimeException: Error receiving broadcast Intent { act=android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED flg=0x4000010 (has extras) } in com.lenovo.ue.device.collector.h@6501866
      	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_53034(LoadedApk.java:1333)
      	at android.app.-$Lambda$aS31cHIhRx41653CMnd4gZqshIQ.$m$7(Unknown Source:4)
      	at android.app.-$Lambda$aS31cHIhRx41653CMnd4gZqshIQ.run(Unknown Source:39)
      	at android.os.Handler.handleCallback(Handler.java:790)
      	at android.os.Handler.dispatchMessage(Handler.java:99)
      	at android.os.Looper.loop(Looper.java:164)
      	at android.os.HandlerThread.run(HandlerThread.java:65)
      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.bluetooth.BluetoothClass.toString()' on a null object reference
      	at com.lenovo.ue.device.collector.g.a(BluetoothCollector.java:462)
      	at com.lenovo.ue.device.collector.g.c(BluetoothCollector.java:431)
      	at com.lenovo.ue.device.collector.g.c(BluetoothCollector.java:47)
      	at com.lenovo.ue.device.collector.h.onReceive(BluetoothCollector.java:79)
      	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_53034(LoadedApk.java:1323)
      	... 6 more
      
      Change-Id: I67f643edc7ca278c179ffd330401f1040883097e
      53c5b55e
  12. 01 Jul, 2019 1 commit
  13. 25 Jun, 2019 2 commits
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix a data collect error · 07b4dcee
      JackyLiu authored
      sometimes free space of storage may be wrong,
      such as format
      
      Change-Id: I5c50ec7e6e48c46d4fd158742553f96818d6edb2
      07b4dcee
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix a FC · abd44ac6
      JackyLiu authored
      when plug in usb device and then plug out immediately maybe casue this FC
      
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: FATAL EXCEPTION: main
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: Process: com.lenovo.ue.device, PID: 1366
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:842)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:254)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.lenovo.ue.device.collector.aj$b.d(JacksCollector.java:431)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.lenovo.ue.device.collector.aj.a(JacksCollector.java:320)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.lenovo.ue.device.collector.aj.a(JacksCollector.java:36)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.lenovo.ue.device.collector.an.run(JacksCollector.java:330)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:873)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6702)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      06-22 13:55:25.726271  1366  1366 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
      
      Change-Id: I133f253b05c1b1a80424e102a8be30a7edb53fb6
      abd44ac6
  14. 20 Jun, 2019 1 commit
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] fix data lost error · b7a1e530
      JackyLiu authored
      1. when app send the same events quickly one by one, may be lost some
        so add serial to table name to resolve it
      
      Change-Id: I760b599c62ae3f00ce4357ac441d8f601929f1ea
      b7a1e530
  15. 19 Jun, 2019 2 commits
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] setup UE earlier · dd1dfd2e
      JackyLiu authored
      1. BOOT_COMPLETE broadcast is too late for other app to collect data
          to UE, so add Application class UEApp and move setup UE actions
          to UEApp.onCreate()
      2. event A404 collect boot up info, is depending on BootReceiver,
          so make sure A404 can be collected correctly
      
      Change-Id: Id2285c6b9e613dafb040e933c377caf4d67c3ef4
      dd1dfd2e
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] do something for app collect data interface · 39efcdd2
      JackyLiu authored
      1. add more log, about receive/collect/save/upload/lost
      2. add package version when receive data from app
      3. add platform data collect for framework
      
      Change-Id: Ic8a7251e42223e1b20f73d4363405a4f1a1679f6
      39efcdd2
  16. 15 Jun, 2019 2 commits
  17. 13 Jun, 2019 1 commit
  18. 11 Jun, 2019 1 commit
    • JackyLiu's avatar
      [FWAPP-1][UE][liujk2] remove send type config · 98a4f941
      JackyLiu authored
      because sendType 1 means upload data just when app start
      
      and UE would not start again when device running
      
      so remove send type config, so data would be upload OK
      
      Change-Id: Id0a95ffdac97e4bfc264626b1c449910f04d0856
      98a4f941
  19. 06 Jun, 2019 1 commit
  20. 07 May, 2019 1 commit
  21. 05 May, 2019 5 commits