Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with disabled UI #252

Closed
5andr0 opened this issue Dec 11, 2024 · 7 comments
Closed

Use with disabled UI #252

5andr0 opened this issue Dec 11, 2024 · 7 comments
Labels
feature-request New feature or request

Comments

@5andr0
Copy link

5andr0 commented Dec 11, 2024

Thanks for making this open source!

Is there a way to use this with disabled ui? (pm disable com.android.systemui)
It doesn't start when the ui is disabled

@bk138
Copy link
Owner

bk138 commented Dec 11, 2024

Interesting use case. You might want to take a look at #245 and #243.

@bk138 bk138 added the feature-request New feature or request label Dec 11, 2024
@bk138
Copy link
Owner

bk138 commented Dec 11, 2024

PS if you can post some logs someone might be able to fix this :-)

@5andr0
Copy link
Author

5andr0 commented Dec 11, 2024

12-11 18:59:03.956 29158 29158 I droidvnc-ng (native): loading, using LibVNCServer 0.9.15
12-11 18:59:03.956 29158 29158 D MainService: onCreate
12-11 18:59:03.962 20380 29112 D CompatibilityChangeReporter: Compat change id reported: 136219221; UID 10158; state: ENABLED
12-11 18:59:03.964 29158 29158 I TetheringManager: registerTetheringEventCallback:net.christianbeier.droidvnc_ng
12-11 18:59:03.967 20380 24630 D ConnectivityService: requestNetwork for uid/pid:10158/29158 NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ]
12-11 18:59:03.969 20380 20483 D ConnectivityService: NetReassign [86 : null → 101]
12-11 18:59:03.969 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:03.969 20380 20479 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ] with score 60 and providerId 3
12-11 18:59:03.969 20380 20479 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ] with score 60 and providerId 3
12-11 18:59:03.970 20743 20743 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ] with score 60 and providerId 3
12-11 18:59:03.970 29158 29544 D MainService: DefaultNetworkCallback: now available: 101
12-11 18:59:03.974 20743 20743 D Telephony: isEmergencyPreferredAccount: subId=1, activeData=1
12-11 18:59:03.974 20743 20743 D Telephony: isEmergencyPreferredAccount: Device does not require preference.
12-11 18:59:04.125 29158 29158 D MainService: onStartCommand: start
12-11 18:59:04.126 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.128 20380 29112 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=net.christianbeier.droidvnc_ng/.InputRequestActivity (has extras)} from uid 10158
12-11 18:59:04.128 20380 20407 D EventSequenceValidator: inc AccIntentStartedEvents to 2
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.134 20380 24630 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.135 20380 24630 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.165 20380 20380 D NotificationService: 0|net.christianbeier.droidvnc_ng|11|null|10158: granting content://settings/system/notification_sound
12-11 18:59:04.168 29158 29554 D libEGL  : loaded /vendor/lib/egl/libEGL_emulation.so
12-11 18:59:04.166 20380 20380 I chatty  : uid=1000(system) Binder:20380_3 identical 1 line
12-11 18:59:04.166 20380 20380 D NotificationService: 0|net.christianbeier.droidvnc_ng|11|null|10158: granting content://settings/system/notification_sound
12-11 18:59:04.171 20380 20380 W NotificationHistory: Attempted to add notif for locked/gone/disabled user 0
12-11 18:59:04.171 29158 29158 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
12-11 18:59:04.171 29158 29554 D libEGL  : loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
12-11 18:59:04.176 29158 29554 D libEGL  : loaded /vendor/lib/egl/libGLESv2_emulation.so
12-11 18:59:04.193 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.194 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.194 29158 29158 D InputRequestActivity: onCreate: input requested: true start on boot requested: false
12-11 18:59:04.194 29158 29158 I InputRequestActivity: a11y enabled
12-11 18:59:04.197 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.200 20380 20407 D EventSequenceValidator: dec AccIntentStartedEvents to 1
12-11 18:59:04.212 29158 29158 D MainService: onStartCommand: handle input result
12-11 18:59:04.213 20380 24630 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=net.christianbeier.droidvnc_ng/.WriteStorageRequestActivity (has extras)} from uid 10158
12-11 18:59:04.213 20380 20407 D EventSequenceValidator: inc AccIntentStartedEvents to 2
12-11 18:59:04.218 20380 24630 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (16740254)
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.218 20380 24630 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.219 20380 24630 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.219 20380 24630 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.219 20380 24630 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.219 20380 24630 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.219 20380 24630 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.222 20380 24630 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.222 20380 24630 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.222 20380 24630 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.222 20380 24630 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.222 20380 24630 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.227 20380 20407 D EventSequenceValidator: dec AccIntentStartedEvents to 1
12-11 18:59:04.234 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.235 29158 29158 I WriteStorageRequestActivity: Permission already given!
12-11 18:59:04.235 29158 29158 I WriteStorageRequestActivity: permission granted
12-11 18:59:04.235 24312 24312 I A       : onPause
12-11 18:59:04.236 29158 29158 W Defaults: /storage/emulated/0/Android/data/net.christianbeier.droidvnc_ng/files/defaults.json: open failed: ENOENT (No such file or directory)
12-11 18:59:04.270 20380 20407 D EventSequenceValidator: dec AccIntentStartedEvents to 0
12-11 18:59:04.270 29158 29158 D MainService: onStartCommand: handle write storage result
12-11 18:59:04.270 29158 29158 I MainService: Requesting confirmation
12-11 18:59:04.271 20380 29112 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=net.christianbeier.droidvnc_ng/.MediaProjectionRequestActivity} from uid 10158
12-11 18:59:04.271   410   936 W iorapd  : Rejecting transition from kIntentFailed to kActivityLaunchCancelled
12-11 18:59:04.271 20380 20407 D EventSequenceValidator: Transition from INIT to INTENT_STARTED
12-11 18:59:04.277 20380 20739 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (16740341)
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.278 20380 20739 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
12-11 18:59:04.282 20380 20407 D EventSequenceValidator: Transition from INTENT_STARTED to INTENT_FAILED
12-11 18:59:04.285 29158 29158 I MPRequestActivity: Requesting confirmation
12-11 18:59:04.287 20380 20739 I ActivityTaskManager: START u0 {cmp=com.android.systemui/.media.MediaProjectionPermissionActivity} from uid 10158
12-11 18:59:04.287 20380 20407 D EventSequenceValidator: inc AccIntentStartedEvents to 1
12-11 18:59:04.287   410   961 W iorapd  : Rejecting transition from kIntentFailed to kIntentFailed
12-11 18:59:04.292 29158 29158 D AndroidRuntime: Shutting down VM
12-11 18:59:04.292 29158 29158 E AndroidRuntime: FATAL EXCEPTION: main
12-11 18:59:04.292 29158 29158 E AndroidRuntime: Process: net.christianbeier.droidvnc_ng, PID: 29158
12-11 18:59:04.292 29158 29158 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.christianbeier.droidvnc_ng/net.christianbeier.droidvnc_ng.MediaProjectionRequestActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}; have you declared this activity in your AndroidManifest.xml?
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:223)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7656)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
12-11 18:59:04.292 29158 29158 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}; have you declared this activity in your AndroidManifest.xml?
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2065)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Activity.startActivityForResult(Activity.java:5320)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:780)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Activity.startActivityForResult(Activity.java:5278)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:761)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at net.christianbeier.droidvnc_ng.MediaProjectionRequestActivity.onCreate(MediaProjectionRequestActivity.java:55)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:8000)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7984)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        ... 11 more
12-11 18:59:04.296 20380 20739 W ActivityTaskManager:   Force finishing activity net.christianbeier.droidvnc_ng/.MediaProjectionRequestActivity
12-11 18:59:04.297 20380 29567 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
12-11 18:59:04.298 29158 29158 I Process : Sending signal. PID: 29158 SIG: 9
12-11 18:59:04.299 20380 20407 D EventSequenceValidator: dec AccIntentStartedEvents to 0
12-11 18:59:04.299   410   961 W iorapd  : Rejecting transition from kUninitialized to kActivityLaunchCancelled
12-11 18:59:04.303 20380 20424 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
12-11 18:59:04.303 24312 24463 V ClearcutMetricXmitter: Transmission is done.
12-11 18:59:04.307 20380 25270 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ], android.os.BinderProxy@6071068)
12-11 18:59:04.307 20380 20483 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10158 AdministratorUids: [] RequestorUid: 10158 RequestorPackageName: net.christianbeier.droidvnc_ng] ] (release request)
12-11 18:59:04.307 20380 27591 I ActivityManager: Process net.christianbeier.droidvnc_ng (pid 29158) has died: fg +50 TOP
12-11 18:59:04.307 20380 23961 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@db48191
12-11 18:59:04.308 20380 27591 W ActivityManager: Scheduling restart of crashed service net.christianbeier.droidvnc_ng/.InputService in 1000ms for connection
12-11 18:59:04.311 20311 20311 I Zygote  : Process 29158 exited due to signal 9 (Killed)

Thanks for the fast reply ;)

@bk138
Copy link
Owner

bk138 commented Dec 11, 2024

Ah, it doesn't find the system activities. You can try the appops and settings stuff mentioned in https://github.com/bk138/droidVNC-NG?tab=readme-ov-file#notes to get around this.

@5andr0
Copy link
Author

5andr0 commented Dec 11, 2024

Already set

settings get secure enabled_accessibility_services
net.christianbeier.droidvnc_ng/net.christianbeier.droidvnc_ng.InputService

I ran that from root
cmd appops set net.christianbeier.droidvnc_ng PROJECT_MEDIA allow

see:

cmd appops get net.christianbeier.droidvnc_ng
Uid mode: LEGACY_STORAGE: ignore
READ_CLIPBOARD: allow; time=+19d4h1m22s912ms ago
WRITE_CLIPBOARD: allow; time=+19d4h1m20s859ms ago
PROJECT_MEDIA: allow; rejectTime=+10d5h1m20s737ms ago
BIND_ACCESSIBILITY_SERVICE: allow; time=+30m24s706ms ago
START_FOREGROUND: allow; time=+2m49s278ms ago (running)
ACCESS_ACCESSIBILITY: allow; time=+61ms ago
MANAGE_EXTERNAL_STORAGE: default; rejectTime=+2m49s384ms ago
NO_ISOLATED_STORAGE: deny; rejectTime=+2m49s384ms ago

But I still get the permission error, when ui is disabled:

12-11 18:59:04.292 29158 29158 E AndroidRuntime: FATAL EXCEPTION: main
12-11 18:59:04.292 29158 29158 E AndroidRuntime: Process: net.christianbeier.droidvnc_ng, PID: 29158
12-11 18:59:04.292 29158 29158 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.christianbeier.droidvnc_ng/net.christianbeier.droidvnc_ng.MediaProjectionRequestActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}; have you declared this activity in your AndroidManifest.xml?
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
12-11 18:59:04.292 29158 29158 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)

It's an android 11 emulator

It starts with --ez net.christianbeier.droidvnc_ng.EXTRA_FALLBACK_SCREEN_CAPTURE true

@bk138
Copy link
Owner

bk138 commented Dec 11, 2024

Then maybe #243 and then I'm out of ideas ;-)

@5andr0
Copy link
Author

5andr0 commented Dec 11, 2024

So I had to set settings put secure enabled_accessibility_services net.christianbeier.droidvnc_ng/net.christianbeier.droidvnc_ng.InputService with InputService.
Then it starts via command line, but for some reason it reenables the UI and asks to upgrade the screen capture. Looks like the new screen capture is deeply tied with the systemui process.
I will switch to ws-scrcpy then

@5andr0 5andr0 closed this as completed Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants