Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.96k stars 57 forks source link

Sync. Camera showing blank screen #785

Closed NTWarrior closed 3 years ago

NTWarrior commented 3 years ago

Description of the issue

Sync. Camera doesn't do anything after granting camera permission and then continue, then when you come back to it the screen is blank instead of showing the camera viewfinder.

Reproduction Steps

Grant camera access, return to Sync. Camera

Version Information

Device platform info

``` [ro.product.board]: [lito] [ro.product.brand]: [OnePlus] [ro.product.build.date]: [Sat Mar 13 02:55:23 CST 2021] [ro.product.build.date.utc]: [1615575323] [ro.product.build.fingerprint]: [OnePlus/Nord_EEA/Nord:11/RP1A.201005.001/2103130237:user/release-keys] [ro.product.build.id]: [RP1A.201005.001] [ro.product.build.tags]: [release-keys] [ro.product.build.type]: [user] [ro.product.build.version.incremental]: [2103130237] [ro.product.build.version.release]: [11] [ro.product.build.version.release_or_codename]: [11] [ro.product.build.version.sdk]: [30] [ro.product.cpu.abi]: [arm64-v8a] [ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi] [ro.product.cpu.abilist32]: [armeabi-v7a,armeabi] [ro.product.cpu.abilist64]: [arm64-v8a] [ro.product.device]: [Nord] [ro.product.first_api_level]: [29] [ro.product.locale]: [en-US] [ro.product.manufacturer]: [OnePlus] [ro.product.model]: [AC2003] [ro.product.name]: [Nord_EEA] [ro.product.odm.brand]: [OnePlus] [ro.product.odm.device]: [Nord] [ro.product.odm.manufacturer]: [OnePlus] [ro.product.odm.model]: [AC2003] [ro.product.odm.name]: [Nord_EEA] [ro.product.product.brand]: [OnePlus] [ro.product.product.device]: [Nord] [ro.product.product.manufacturer]: [OnePlus] [ro.product.product.model]: [AC2003] [ro.product.product.name]: [Nord_EEA] [ro.product.property_source_order]: [odm,vendor,product,system_ext,system] [ro.product.system.brand]: [OnePlus] [ro.product.system.device]: [Nord] [ro.product.system.manufacturer]: [OnePlus] [ro.product.system.model]: [AC2003] [ro.product.system.name]: [Nord_EEA] [ro.product.system_ext.name]: [qssi] [ro.product.vendor.brand]: [OnePlus] [ro.product.vendor.device]: [Nord] [ro.product.vendor.manufacturer]: [OnePlus] [ro.product.vendor.model]: [AC2003] [ro.product.vendor.name]: [Nord_EEA] [ro.product.vndk.version]: [30] ```

Android Log

``` <<< log_count = 106 >>> [05-04 21:25:37.935 1306:1940 V/WindowManager] GestureButton: skip onPointerDownOutsideFocusLocked win=Window{4f291e3 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity} [05-04 21:25:37.939 12780:8028 D/RecentTasksList] dumpTasks# id=6164, cmp=ComponentInfo{com.google.android.apps.magazines/com.google.apps.dots.android.newsstand.notifications.NotificationOpenTrampolineActivity}, uid=0, locked=false, isAppLocked=false id=6169, cmp=ComponentInfo{tv.twitch.android.app/tv.twitch.android.app.core.LandingActivity}, uid=0, locked=false, isAppLocked=false id=6175, cmp=ComponentInfo{com.picsart.studio/com.socialin.android.photo.picsinphoto.MainPagerActivity}, uid=0, locked=false, isAppLocked=false id=6174, cmp=ComponentInfo{com.facebook.orca/com.facebook.messenger.neue.MainActivity}, uid=0, locked=false, isAppLocked=false id=6199, cmp=ComponentInfo{com.mixplorer.silver/com.mixplorer.activities.BrowseActivity}, uid=0, locked=false, isAppLocked=false id=6201, cmp=ComponentInfo{com.rubenmayayo.reddit/com.rubenmayayo.reddit.ui.submissions.subreddit.MainActivity}, uid=0, locked=false, isAppLocked=false id=6206, cmp=ComponentInfo{com.google.android.gm/com.google.android.gm.ui.MailActivityGmail}, uid=0, locked=false, isAppLocked=false id=6162, cmp=ComponentInfo{com.twitter.android/com.twitter.android.StartActivity}, uid=0, locked=false, isAppLocked=false id=6184, cmp=ComponentInfo{com.android.settings/com.android.settings.applications.InstalledAppDetails}, uid=0, locked=false, isAppLocked=false id=6208, cmp=ComponentInfo{com.termux/com.termux.app.TermuxActivity}, uid=0, locked=false, isAppLocked=false id=6163, cmp=ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.RoutingActivity}, uid=0, locked=false, isAppLocked=false id=6211, cmp=ComponentInfo{com.pluscubed.matlog/com.pluscubed.logcat.ui.LogcatActivity}, uid=0, locked=false, isAppLocked=false id=6209, cmp=ComponentInfo{com.catchingnow.tinyclipboardmanager/com.catchingnow.tinyclipboardmanager.activity.ActivityMain}, uid=0, locked=false, isAppLocked=false id=6161, cmp=ComponentInfo{com.android.chrome/com.google.android.apps.chrome.Main}, uid=0, locked=false, isAppLocked=false id=6158, cmp=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}, uid=0, locked=false, isAppLocked=false id=6216, cmp=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity}, uid=0, locked=false, isAppLocked=false [05-04 21:25:37.942 12780:8227 D/RecentTasksList] dumpTasks# id=6164, cmp=ComponentInfo{com.google.android.apps.magazines/com.google.apps.dots.android.newsstand.notifications.NotificationOpenTrampolineActivity}, uid=0, locked=false, isAppLocked=false id=6169, cmp=ComponentInfo{tv.twitch.android.app/tv.twitch.android.app.core.LandingActivity}, uid=0, locked=false, isAppLocked=false id=6175, cmp=ComponentInfo{com.picsart.studio/com.socialin.android.photo.picsinphoto.MainPagerActivity}, uid=0, locked=false, isAppLocked=false id=6174, cmp=ComponentInfo{com.facebook.orca/com.facebook.messenger.neue.MainActivity}, uid=0, locked=false, isAppLocked=false id=6199, cmp=ComponentInfo{com.mixplorer.silver/com.mixplorer.activities.BrowseActivity}, uid=0, locked=false, isAppLocked=false id=6201, cmp=ComponentInfo{com.rubenmayayo.reddit/com.rubenmayayo.reddit.ui.submissions.subreddit.MainActivity}, uid=0, locked=false, isAppLocked=false id=6206, cmp=ComponentInfo{com.google.android.gm/com.google.android.gm.ui.MailActivityGmail}, uid=0, locked=false, isAppLocked=false id=6162, cmp=ComponentInfo{com.twitter.android/com.twitter.android.StartActivity}, uid=0, locked=false, isAppLocked=false id=6184, cmp=ComponentInfo{com.android.settings/com.android.settings.applications.InstalledAppDetails}, uid=0, locked=false, isAppLocked=false id=6208, cmp=ComponentInfo{com.termux/com.termux.app.TermuxActivity}, uid=0, locked=false, isAppLocked=false id=6163, cmp=ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.RoutingActivity}, uid=0, locked=false, isAppLocked=false id=6211, cmp=ComponentInfo{com.pluscubed.matlog/com.pluscubed.logcat.ui.LogcatActivity}, uid=0, locked=false, isAppLocked=false id=6209, cmp=ComponentInfo{com.catchingnow.tinyclipboardmanager/com.catchingnow.tinyclipboardmanager.activity.ActivityMain}, uid=0, locked=false, isAppLocked=false id=6161, cmp=ComponentInfo{com.android.chrome/com.google.android.apps.chrome.Main}, uid=0, locked=false, isAppLocked=false id=6158, cmp=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}, uid=0, locked=false, isAppLocked=false id=6216, cmp=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity}, uid=0, locked=false, isAppLocked=false [05-04 21:25:37.955 1306:3771 D/OpColorDisplayService] frontPackageChanged: com.github.catfriend1.syncthingandroid [05-04 21:25:37.955 1306:3771 D/OpSlaNetlinkHelper] frontPackageChanged: com.github.catfriend1.syncthingandroid uid:10498 pid:1770 | com.dp.logcatapp uid:10507 pid:8382 [05-04 21:25:37.955 1306:3771 D/OpProximityController] noteFrontPackageChanged pkg:com.github.catfriend1.syncthingandroid uid:10498 lpkg:com.dp.logcatapp luid:10507 [05-04 21:25:37.958 1306:3771 E/ScreenModeService] getAppToken ActivityRecord{bafe26 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6216} [05-04 21:25:37.958 1306:3771 E/ScreenModeService] setRefreshRate token ActivityRecord{bafe26 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6216} rate 0 tmpRate 0 [05-04 21:25:37.958 1306:3771 D/OpQuickReply] setQuickReplyResumed focusedApp ActivityRecord{bafe26 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6216} pkgName com.github.catfriend1.syncthingandroid [05-04 21:25:37.958 1306:3771 D/Hypnus] hypnusSetScene: uid=10498, pid=1770, name=com.github.catfriend1.syncthingandroid, activity=null [05-04 21:25:37.999 12780:12780 D/BaseActivity] Showing call stack: [BaseActivity] WindowTransformSwipeHandler.java, notifyGestureStartedAsync, line: 949 [05-04 21:25:38.001 12780:12780 D/BaseActivity] Showing call stack: [BaseActivity] WindowTransformSwipeHandler.java, notifyGestureStartedAsync, line: 949 [05-04 21:25:38.070 2631:2631 I/PhoneStatusBarView] isFullAndNotchEnabled() isFullMode=false pkg=com.github.catfriend1.syncthingandroid isCameraNotchIgnoreSetting=false, uid=10498 [05-04 21:25:39.263 12780:8028 D/RecentTasksList] dumpTasks# id=6164, cmp=ComponentInfo{com.google.android.apps.magazines/com.google.apps.dots.android.newsstand.notifications.NotificationOpenTrampolineActivity}, uid=0, locked=false, isAppLocked=false id=6169, cmp=ComponentInfo{tv.twitch.android.app/tv.twitch.android.app.core.LandingActivity}, uid=0, locked=false, isAppLocked=false id=6175, cmp=ComponentInfo{com.picsart.studio/com.socialin.android.photo.picsinphoto.MainPagerActivity}, uid=0, locked=false, isAppLocked=false id=6174, cmp=ComponentInfo{com.facebook.orca/com.facebook.messenger.neue.MainActivity}, uid=0, locked=false, isAppLocked=false id=6199, cmp=ComponentInfo{com.mixplorer.silver/com.mixplorer.activities.BrowseActivity}, uid=0, locked=false, isAppLocked=false id=6201, cmp=ComponentInfo{com.rubenmayayo.reddit/com.rubenmayayo.reddit.ui.submissions.subreddit.MainActivity}, uid=0, locked=false, isAppLocked=false id=6206, cmp=ComponentInfo{com.google.android.gm/com.google.android.gm.ui.MailActivityGmail}, uid=0, locked=false, isAppLocked=false id=6162, cmp=ComponentInfo{com.twitter.android/com.twitter.android.StartActivity}, uid=0, locked=false, isAppLocked=false id=6184, cmp=ComponentInfo{com.android.settings/com.android.settings.applications.InstalledAppDetails}, uid=0, locked=false, isAppLocked=false id=6208, cmp=ComponentInfo{com.termux/com.termux.app.TermuxActivity}, uid=0, locked=false, isAppLocked=false id=6163, cmp=ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.RoutingActivity}, uid=0, locked=false, isAppLocked=false id=6211, cmp=ComponentInfo{com.pluscubed.matlog/com.pluscubed.logcat.ui.LogcatActivity}, uid=0, locked=false, isAppLocked=false id=6209, cmp=ComponentInfo{com.catchingnow.tinyclipboardmanager/com.catchingnow.tinyclipboardmanager.activity.ActivityMain}, uid=0, locked=false, isAppLocked=false id=6161, cmp=ComponentInfo{com.android.chrome/com.google.android.apps.chrome.Main}, uid=0, locked=false, isAppLocked=false id=6158, cmp=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}, uid=0, locked=false, isAppLocked=false id=6216, cmp=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity}, uid=0, locked=false, isAppLocked=false [05-04 21:25:39.277 1306:3910 D/OpColorDisplayService] lpackageName: com.github.catfriend1.syncthingandroid [05-04 21:25:39.277 1306:3910 D/OpSlaNetlinkHelper] frontPackageChanged: net.oneplus.launcher uid:10133 pid:12780 | com.github.catfriend1.syncthingandroid uid:10498 pid:1770 [05-04 21:25:39.278 1306:3910 D/OpProximityController] noteFrontPackageChanged pkg:net.oneplus.launcher uid:10133 lpkg:com.github.catfriend1.syncthingandroid luid:10498 [05-04 21:25:39.318 1094:1094 E/Layer] [Surface(name=Task=6216)/@0x7cf2061 - animation-leash#0] No local sync point found [05-04 21:25:39.318 1094:1094 E/Layer] [Surface(name=Task=6157)/@0xd08be3e - animation-leash#0] No local sync point found [05-04 21:25:39.405 1306:1938 V/OneTimePermissionUserManager] Importance changed for com.github.catfriend1.syncthingandroid (10498). importance=125 [05-04 21:25:39.459 6163:6163 I/BgTaskExecutorImpl] Starting EXCLUSIVE background task TNG_MINUS_ONE_SYNC. [05-04 21:25:39.465 6163:6163 I/BgTaskExecutorImpl] Starting EXCLUSIVE background task TNG_VOICE_SEARCH_SYNC. [05-04 21:25:39.468 6163:7578 I/TngMinusOneSync] Syncing TNG:-1 [05-04 21:25:39.469 6163:7578 I/TngVoiceSearchSync] Syncing TNG:VoiceSearch [05-04 21:25:39.477 12780:8227 D/RecentTasksList] dumpTasks# id=6161, cmp=ComponentInfo{com.android.chrome/com.google.android.apps.chrome.Main}, uid=0, locked=false, isAppLocked=false id=6158, cmp=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}, uid=0, locked=false, isAppLocked=false id=6216, cmp=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity}, uid=0, locked=false, isAppLocked=false [05-04 21:25:39.802 12780:12780 D/RemoveTaskHelper] getTaskId: pkgName= com.github.catfriend1.syncthingandroid, id= 6216 [05-04 21:25:39.803 12780:8028 D/OpActivityManagerWrapper] Task is removed: id 6216 pkgName com.github.catfriend1.syncthingandroid, user:0, killAll:false [05-04 21:25:39.809 12780:8028 D/OpActivityManagerWrapper] Task is killed:com.github.catfriend1.syncthingandroid, 0 [05-04 21:25:40.067 26063:26063 I/Finsky] [2] ContentSyncJob.s(1): [ContentSync] job started [05-04 21:25:41.201 26063:26063 I/Finsky] [2] hqj.b(1): Completed 1 account content syncs with 1 successful. [05-04 21:25:41.204 26063:26063 I/Finsky] [2] ContentSyncJob.a(1): [ContentSync] Installation state replication succeeded. [05-04 21:25:49.759 13173:13173 W/libsyncthingnat] type=1400 audit(0.0:84726): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tclass=netlink_route_socket permissive=0 b/155595000 app=com.github.catfriend1.syncthingandroid [05-04 21:25:49.763 13173:13173 W/libsyncthingnat] type=1400 audit(0.0:84729): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tclass=netlink_route_socket permissive=0 b/155595000 app=com.github.catfriend1.syncthingandroid [05-04 21:25:51.925 12780:12780 D/Stats] Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): com.github.catfriend1.syncthingandroid [05-04 21:25:51.942 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:51.942 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:51.968 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:51.968 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:54.722 11443:11443 W/Choreographer] Frame time is 0.097332 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. [05-04 21:25:55.271 13173:13173 W/libsyncthingnat] type=1400 audit(0.0:84811): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tclass=netlink_route_socket permissive=0 b/155595000 app=com.github.catfriend1.syncthingandroid [05-04 21:25:55.275 13173:13173 I/chatty] uid=10498(com.github.catfriend1.syncthingandroid) libsyncthingnat identical 3 lines [05-04 21:25:55.275 13173:13173 W/libsyncthingnat] type=1400 audit(0.0:84815): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c242,c257,c512,c768 tclass=netlink_route_socket permissive=0 b/155595000 app=com.github.catfriend1.syncthingandroid [05-04 21:25:57.313 12780:12780 D/BaseActivity] Showing call stack: [BaseActivity] WindowTransformSwipeHandler.java, notifyGestureStartedAsync, line: 949 [05-04 21:25:57.313 12780:12780 D/BaseActivity] Showing call stack: [BaseActivity] WindowTransformSwipeHandler.java, notifyGestureStartedAsync, line: 949 [05-04 21:25:57.873 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:57.873 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:25:58.023 6163:6163 I/BgTaskExecutorImpl] Starting EXCLUSIVE background task TNG_MINUS_ONE_SYNC. [05-04 21:25:58.024 6163:6163 I/BgTaskExecutorImpl] Starting EXCLUSIVE background task TNG_VOICE_SEARCH_SYNC. [05-04 21:25:58.039 6163:7578 I/TngVoiceSearchSync] Syncing TNG:VoiceSearch [05-04 21:25:58.041 6163:7578 I/TngMinusOneSync] Syncing TNG:-1 [05-04 21:25:58.708 12780:12780 D/AppTagContainer] [ITN-43578]onSearchResult, query=Recent searches, apps=[keepass2android.keepass2android/crc64ae7e22645ed9821f.KeePass#0, com.mixplorer.silver/com.mixplorer.activities.BrowseActivity#0, org.meowcat.edxposed.manager/org.meowcat.edxposed.manager.WelcomeActivityMlgmXyysd#0, com.rubenmayayo.reddit/com.rubenmayayo.reddit.ui.submissions.subreddit.MainActivity#0, demigos.com.mobilism/demigos.com.mobilism.UI.SplashActivity#0, org.wikipedia/org.wikipedia.main.MainActivity#0, com.tippingcanoe.hukd/com.pepper.apps.android.app.activity.MainActivity#0, wscv.xn/x.F#0, org.telegram.messenger/org.telegram.ui.LaunchActivity#0, chipolo.net.v3/net.chipolo.app.ui.main.MainActivity#0, tv.twitch.android.app/tv.twitch.android.app.core.LandingActivity#0, com.google.android.keep/com.google.android.keep.activities.BrowseActivity#0, com.privateinternetaccess.android/com.privateinternetaccess.android.ui.LauncherActivity#0, com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity#0, f.f.freezer/f.f.freezer.MainActivity#0, com.studentbeans.studentbeans/com.studentbeans.studentbeans.LoadingActivity#0, com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity#0, com.catchingnow.tinyclipboardmanager/com.catchingnow.tinyclipboardmanager.activity.ActivityMain#0, org.schabi.newpipe/org.schabi.newpipe.MainActivity#0, org.thoughtcrime.securesms/org.thoughtcrime.securesms.RoutingActivity#0, ru.ojckEAhN.PBbqwSdOw/ru.ojckEAhN.PBbqwSdOw.MainActivity1#0, com.joaomgcd.join/com.joaomgcd.join.activity.ActivityMain#0, com.mobisystems.msdict.embedded.wireless.oxford.dictofengandconcthes/com.mobisystems.msdict.viewer.EulaActivity#0, com.arjanvlek.oxygenupdater/com.oxygenupdater.activities.SplashActivity#0, com.ceco.r.gravitybox/com.ceco.r.gravitybox.GravityBoxSettingsAlias#0, com.bt.mnie.wispr/com.bt.mnie.wispr.Splash#0, com.androidfung.drminfo/com.androidfung.drminfo.MobileActivity#0, com.mufri.authenticatorplus/com.mufri.authenticatorplus.LoginActivity#0, com.zerotier.one/com.zerotier.one.ui.NetworkListActivity#0, com.lidl.eci.lidlplus/es.lidlplus.i18n.splash.presentation.view.SplashActivity#0, com.jabra.moments/com.jabra.moments.ui.splash.SplashActivity#0, org.kiwix.kiwixmobile/org.kiwix.kiwixmobile.main.KiwixMainActivity#0, com.slash.batterychargelimit/com.slash.batterychargelimit.activities.MainActivity#0, akhil.alltrans/akhil.alltrans.MainActivity#0, com.termux/com.termux.app.TermuxActivity#0, com.oneplus.backuprestore/com.oneplus.backuprestore.activity.BootActivity#0, com.camel.corp.universalcopy/com.camel.corp.universalcopy.settings.SettingsActivity#0, tw.fatminmin.xposed.minminguard/tw.fatminmin.xposed.minminguard.ui.MainActivity#0, com.twitter.android/com.twitter.android.StartActivity#0, com.aurora.adroid/com.aurora.adroid.ui.generic.activity.SplashActivity#0, com.whatsapp/com.whatsapp.Main#0, com.flinkapps.safteynet/com.flinkapps.safteynet.ui.MainActivity#0, com.raincat.unblockmusicpro/com.raincat.unblockmusicpro.MainAlias#0, com.vanced.manager/com.vanced.manager.ui.SplashScreenActivity#0, com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity#0, au.com.shiftyjelly.pocketcasts/au.com.shiftyjelly.pocketcasts.ui.MainActivity#0, com.camerasideas.instashot/com.camerasideas.instashot.DummyActivity#0, com.bbc.sounds/com.bbc.sounds.ui.activity.MainActivity#0, com.netflix.mediaclient/com.netflix.mediaclient.ui.launch.UIWebViewActivity#0, org.kde.kdeconnect_tp/org.kde.kdeconnect.UserInterface.MainActivity#0, org.mozilla.firefox/org.mozilla.firefox.App#0, org.adaway/org.adaway.ui.home.HomeActivity#0, com.google.android.apps.translate/com.google.android.apps.translate.TranslateActivity#0, com.netease.cloudmusic/com.netease.cloudmusic.activity.LoadingActivity#0, com.oneplus.gamespace/com.oneplus.gamespace.ui.main.MainActivity#0, com.jt5.xposed.chromepie/com.jt5.xposed.chromepie.settings.PieSettings_Alias#0, com.example.unblockneteasemusic/com.example.unblockneteasemusic.MainActivity#0, com.dolby.dolby234/com.dolby.sessions.Laun [05-04 21:25:58.727 4871:4871 I/VoiceInputManagerWrapper] VoiceInputManagerWrapper.syncLanguagePacks():66 syncLanguagePacks() [05-04 21:25:59.971 23247:23470 E/msgr.msys] E[N rtchannel]_rt_mqtt_publish_callback(356)=>Failed to publish the request over MQTT. token:cd7b32da-cf94-4d08-8d1f-f230dd631bb5, category:mcd-sync-data-task-category, requestId:10260, error:Error Domain=mqtt Code=3008 [05-04 21:25:59.983 23247:23470 E/msgr.msys] E[N rtchannel]_rt_mqtt_publish_callback(356)=>Failed to publish the request over MQTT. token:e194bcfa-d872-4920-9ff9-9a1911b1e9ae, category:mcd-sync-data-task-category, requestId:48624, error:Error Domain=mqtt Code=3008 [05-04 21:25:59.993 23247:23461 E/msgr.msys] E[S sync]_createResponseError(164)=>Network Response cd7b32da-cf94-4d08-8d1f-f230dd631bb5 contains sync error Error Domain=mqtt Code=3008 - Underlying error (null): Error Domain=mqtt Code=3008 [05-04 21:25:59.994 23247:23470 E/msgr.msys] E[N rtchannel]_rt_mqtt_publish_callback(356)=>Failed to publish the request over MQTT. token:9222b386-5181-4f54-9e6c-9b3a27c0c6ad, category:mcd-sync-data-task-category, requestId:18309, error:Error Domain=mqtt Code=3008 [05-04 21:25:59.998 23247:23461 E/msgr.msys] E[S sync]_createResponseError(164)=>Network Response e194bcfa-d872-4920-9ff9-9a1911b1e9ae contains sync error Error Domain=mqtt Code=3008 - Underlying error (null): Error Domain=mqtt Code=3008 [05-04 21:26:00.002 23247:23461 E/msgr.msys] E[S sync]_createResponseError(164)=>Network Response 9222b386-5181-4f54-9e6c-9b3a27c0c6ad contains sync error Error Domain=mqtt Code=3008 - Underlying error (null): Error Domain=mqtt Code=3008 [05-04 21:26:00.005 23247:23461 W/msgr.msys] W[S sync-state-machine]MCDSyncStateMachineScheduleDelayedRetry(173)=>skipping the new retry with longer delay [05-04 21:26:00.005 23247:23461 W/msgr.msys] W[S sync]_scheduleNextCursorRetry(326)=>skipping delayed retry due to state machine state decision [05-04 21:26:00.425 12780:12780 D/AllAppsContainerView] setLastSearchQuery# query=Sync, search=true, tab=false [05-04 21:26:01.386 1306:1761 I/ActivityTaskManager] START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity bnds=[236,627][439,934]} from uid 10133 pid 12780 [05-04 21:26:01.433 12780:12780 D/BaseDraggingActivity] startActivity bookkeeping intent = Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity bnds=[236,627][439,934] } [05-04 21:26:01.447 12780:12780 D/Launcher] recentSearchAppAdd# name: com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity#0 [05-04 21:26:01.447 12780:12780 D/Stats] Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): com.github.catfriend1.syncthingandroid [05-04 21:26:01.448 12780:12780 D/Stats] Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): com.github.catfriend1.syncthingandroid [05-04 21:26:01.456 12780:12780 D/ItemClickHandler] onClick app, allappsTransProgress = 0.0, tag = AppInfo(id=-1 type=APP container=-1 screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Sync. Camera hidden=false dirty = false newInstallTag=null componentName=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity} searchResult=RecentSearchAppInfo(id=140 count=25 componentKey=com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity#0 firstLaunch=Sat May 01 19:36:06 GMT+01:00 2021 modified=Tue May 04 21:26:01 GMT+01:00 2021 restore=false) suggestionApp=null) [05-04 21:26:01.456 1306:1941 D/OPFD_CTRL_SVC] [2]handle Starting Window for { com.github.catfriend1.syncthingandroid }, Dark? false [05-04 21:26:01.466 1306:3437 I/ActivityTaskManager] The Process com.github.catfriend1.syncthingandroid Already Exists in BG. So sending its PID: 1770 [05-04 21:26:01.467 1056:1167 E/ANDR-PERF-LM] MetaMeter: handleAsync() 164: AdaptLaunch Invalid Async [05-04 21:26:01.499 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:26:01.499 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:26:01.501 1306:6421 I/ActivityTaskManager] The Process com.github.catfriend1.syncthingandroid Already Exists in BG. So sending its PID: 1770 [05-04 21:26:01.502 1056:1167 E/ANDR-PERF-LM] MetaMeter: handleAsync() 164: AdaptLaunch Invalid Async [05-04 21:26:01.505 1306:6421 D/OpColorDisplayService] frontPackageChanged: com.github.catfriend1.syncthingandroid [05-04 21:26:01.505 1306:6421 D/OpSlaNetlinkHelper] frontPackageChanged: com.github.catfriend1.syncthingandroid uid:10498 pid:1770 | net.oneplus.launcher uid:10133 pid:12780 [05-04 21:26:01.506 1306:6421 D/OpProximityController] noteFrontPackageChanged pkg:com.github.catfriend1.syncthingandroid uid:10498 lpkg:net.oneplus.launcher luid:10133 [05-04 21:26:01.514 1306:6421 E/ScreenModeService] getAppToken ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} [05-04 21:26:01.514 1306:6421 E/ScreenModeService] setRefreshRate token ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} rate 0 tmpRate 0 [05-04 21:26:01.514 1306:6421 D/OpQuickReply] setQuickReplyResumed focusedApp ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} pkgName com.github.catfriend1.syncthingandroid [05-04 21:26:01.514 1306:6421 D/Hypnus] hypnusSetScene: uid=10498, pid=1770, name=com.github.catfriend1.syncthingandroid, activity=null [05-04 21:26:01.514 1306:6421 E/ScreenModeService] getAppToken ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} [05-04 21:26:01.514 1306:6421 E/ScreenModeService] setRefreshRate token ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} rate 0 tmpRate 0 [05-04 21:26:01.514 1306:6421 D/OpQuickReply] setQuickReplyResumed focusedApp ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} pkgName com.github.catfriend1.syncthingandroid [05-04 21:26:01.514 1306:6421 D/Hypnus] hypnusSetScene: uid=10498, pid=1770, name=com.github.catfriend1.syncthingandroid, activity=null [05-04 21:26:01.515 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:26:01.516 1056:1167 W/ANDR-PERF-LM] MetaMeter: handlePrimaryAsync() 116: AdaptLaunch MetaMeter. No MeterMgr Available to handle this Primary Async. !!!! [05-04 21:26:01.524 1306:6421 E/ActivityTaskManager] createRemoteAnimationTarget Task{9a581fe #6217 visible=true type=standard mode=split-screen-secondary translucent=false A=10498:com.github.catfriend1.syncthingandroid U=0 StackId=4 sz=1} top most activity ActivityRecord{ec7f37c u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity t6217} [05-04 21:26:01.532 12780:12780 D/AllAppsContainerView] setLastSearchQuery# query=Sync, search=true, tab=false [05-04 21:26:01.540 1770:1770 I/AllTrans] AllTrans: AllTrans: in attachBaseContext of ContextWrapper for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.540 1770:1770 I/AllTrans] AllTrans: AllTrans: returning because context already not null for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.540 1770:1770 I/AllTrans] AllTrans: AllTrans: in attachBaseContext of ContextWrapper for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.540 1770:1770 I/AllTrans] AllTrans: AllTrans: returning because context already not null for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.557 1770:1770 V/PhotoShootActivity] prefEnableSyncthingCamera=true, haveRequiredPermissions=true [05-04 21:26:01.568 1770:1770 I/AllTrans] AllTrans: AllTrans: in attachBaseContext of ContextWrapper for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.568 1770:1770 I/AllTrans] AllTrans: AllTrans: returning because context already not null for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.568 1770:1770 I/AllTrans] AllTrans: AllTrans: in attachBaseContext of ContextWrapper for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.568 1770:1770 I/AllTrans] AllTrans: AllTrans: returning because context already not null for package com.github.catfriend1.syncthingandroid [05-04 21:26:01.582 1306:1940 D/OpRestartProcessManager] updateSelf : com.github.catfriend1.syncthingandroid, size : 30 [05-04 21:26:01.592 1770:1770 V/ViewRootImpl] The specified message queue synchronization barrier token has not been posted or has already been removed [05-04 21:26:01.647 1306:1956 D/ArtManagerInternalImpl] /data/misc/iorapd/com.github.catfriend1.syncthingandroid/1150100/com.nutomic.syncthingandroid.activities.PhotoShootActivity/compiled_traces/compiled_trace.pb doesn't exist [05-04 21:26:01.648 1306:2110 I/===> HoustonPackage] addLaunchTimeInfo: for com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity isCold:false launchTime:260 [05-04 21:26:01.649 1306:1956 I/ActivityTaskManager] Displayed com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity: +260ms [05-04 21:26:01.671 2631:2631 I/PhoneStatusBarView] isFullAndNotchEnabled() isFullMode=false pkg=com.github.catfriend1.syncthingandroid isCameraNotchIgnoreSetting=false, uid=10498 [05-04 21:26:01.680 1306:1938 V/OneTimePermissionUserManager] Importance changed for com.github.catfriend1.syncthingandroid (10498). importance=100 [05-04 21:26:01.708 12780:8028 D/RecentTasksList] dumpTasks# id=6158, cmp=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity}, uid=0, locked=false, isAppLocked=false id=6161, cmp=ComponentInfo{com.android.chrome/com.google.android.apps.chrome.Main}, uid=0, locked=false, isAppLocked=false id=6217, cmp=ComponentInfo{com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.PhotoShootActivity}, uid=0, locked=false, isAppLocked=false ```
Catfriend1 commented 3 years ago

Hi, thanks for reaching out. I wonder if this feature generally works on Android 11 as I expect It not to have much users out there. I didn't put much time in this "feature experiment" so maybe the phone's os requires the modern camera2 api which i did not use!? I was also thinking in removing that experiment. What bothered me most is that you have to take picutres one by one and the take picture for app intents are implemeted different across manufacturers, so sometimes you do not get all features offered when taking pictures initiated by intent instead of the phones "full" camera app.

Catfriend1 commented 3 years ago

On AVD 11:


2021-04-02 18:03:23.878 27636-27636/com.github.catfriend1.syncthingandroid.debug V/PhotoShootActivity: prefEnableSyncthingCamera=true, haveRequiredPermissions=true
2021-04-02 18:03:23.878 27636-27636/com.github.catfriend1.syncthingandroid.debug V/PhotoShootActivity: User completed intro and consented before. Warp to take a picture.
2021-04-02 18:03:23.879 27636-27636/com.github.catfriend1.syncthingandroid.debug E/PhotoShootActivity: This system does not support the ACTION_IMAGE_CAPTURE intent.

@NTWarrior Do you have those lines too in the log?

Notes:

Catfriend1 commented 3 years ago

Yeah, the section needed to be added for Android 11 compatibility.

Catfriend1 commented 3 years ago

@NTWarrior Thanks for reporting the bug. Fixed.