Meshtastic: USB_SERVICE is not available

Mestastic 1.2.53 on XA2:

  165   210 I ALIEN   : alien processing window (de-)activation: 0. TARGET/SOURCE PKG: com.geeksville.mesh
  165   210 I ALIEN   : alien relaunching app: com.geeksville.mesh
  165   210 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10004000 pkg=com.geeksville.mesh c
esh/.MainActivity} from uid 1000
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  321   321 D FakeHome: onPause
 1105  1105 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@1243d8
  165   201 E memtrack: Couldn't load memtrack module
  165   201 W android.os.Debug: failed to get memory consumption info: -1
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  165   183 I chatty  : uid=1000(system) SFThread identical 1 line
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  165   183 I SurfaceFlinger: ALIEN: new app: com.geeksville.mesh vs system
 1105  1105 W SystemServiceRegistry: No service published for: usb
 1105  1105 D AndroidRuntime: Shutting down VM
 1105  1105 E AndroidRuntime: FATAL EXCEPTION: main
 1105  1105 E AndroidRuntime: Process: com.geeksville.mesh, PID: 1105
 1105  1105 E AndroidRuntime: java.lang.IllegalArgumentException: USB_SERVICE is not available
 1105  1105 E AndroidRuntime:        at com.geeksville.mesh.android.ContextServicesKt.getUsbManager(ContextServices.kt:1)
 1105  1105 E AndroidRuntime:        at com.geeksville.mesh.service.SerialInterface$Companion.findDrivers(SerialInterface.kt:1)
 1105  1105 E AndroidRuntime:        at com.geeksville.mesh.MainActivity.onStart(MainActivity.kt:2)
 1105  1105 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1425)
 1105  1105 E AndroidRuntime:        at android.app.Activity.performStart(Activity.java:7825)
 1105  1105 E AndroidRuntime:        at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3294)
 1105  1105 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
 1105  1105 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
 1105  1105 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
 1105  1105 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
 1105  1105 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
 1105  1105 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:107)
 1105  1105 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:214)
 1105  1105 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7356)
 1105  1105 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
 1105  1105 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
 1105  1105 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
 1105  1122 I geeksville.mes: Waiting for a blocking GC ProfileSaver
 1105  1171 I FA      : Tag Manager is not found and thus will not be used
 1105  1122 I geeksville.mes: Waiting for a blocking GC ProfileSaver
 1105  1171 I FA      : Tag Manager is not found and thus will not be used
 1105  1122 I geeksville.mes: WaitForGcToComplete blocked ProfileSaver on HeapTrim for 25.746ms
 1105  1129 D TransportRuntime.SQLiteEventStore: Storing event with priority=HIGHEST, name=FIREBASE_CRASHLYTICS_REPORT for destination cct
 1105  1129 D TransportRuntime.JobInfoScheduler: Scheduling upload for context TransportContext(cct, HIGHEST, MSRodHRwczovL2NyYXNobHl0aWNzcmVwb3J0cy1wYS5nb
MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lCcnBTWVQ0RkZMMDlyZUhKaTZIOUZZZGVpU25VVE92Mk0=) with jobId=-1306906243 in 1000ms(Backend next call timestamp 1642
 1
  656   656 D GmsMeasureBrokerSvc: onBind: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
  165   401 W ActivityTaskManager:   Force finishing activity com.geeksville.mesh/.MainActivity
  165  1174 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
 1105  1105 I Process : Sending signal. PID: 1105 SIG: 9
  165   401 I ActivityManager: Process com.geeksville.mesh (pid 1105) has died: fore TOP
   41    41 I Zygote  : Process 1105 exited due to signal 9 (Killed)
  165   204 I libprocessgroup: Successfully killed process cgroup uid 10061 pid 1105 in 0ms
  165   194 W WindowManager: Failed looking up window callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5297 com.android.server.wm.W
.removeWindow:1769 com.android.server.wm.Session.remove:176
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  321   321 D FakeHome: onResume
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  165   193 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{bb40e56 u0 com.geeksville.mesh/.MainActivity t-1 f}
  165   210 I ALIEN   : alien processing window (de-)activation: 1. TARGET/SOURCE PKG: com.jolla.home
  165   210 I ALIEN   : alien moving home to foreground: com.android.systemui
  165   210 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10240000 cmp=com.jolla.home/.FakeHome
uid 1000
  165   183 I chatty  : uid=1000(system) SFThread identical 1 line
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  321   321 D FakeHome: onPause
  321   321 D FakeHome: onResume
  165   183 I SurfaceFlinger: ALIEN: discarding frame without app/window (system process).
  165   210 I ALIEN   : already inactive

is this still a thing?
only seaerchable result i can find on the forum for meshtastic.
love the idea of using SFOS for meshtastic text.

USB is still not available in AAS. Whether the app works, you are probably better off trying than asking.

1 Like