I have this problem when I try to press the button to start an activity from library(face emotion recognition).
E/AndroidRuntime: FATAL EXCEPTION: main
Process: vokaturi.sampleapp, PID: 1912
java.lang.SecurityException: UID 10245 does not have permission to content://com.lampa.emotionrecognition.fileprovider/my_images/Pictures/ER_20220418_031223_6417256160146127805.jpg [user 0]
at android.os.Parcel.readException(Parcel.java:2029)
at android.os.Parcel.readException(Parcel.java:1975)
at android.app.IActivityManager$Stub$Proxy.startActivity(IActivityManager.java:4842)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1619)
at android.app.Activity.startActivityForResult(Activity.java:4621)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:676)
at android.app.Activity.startActivityForResult(Activity.java:4579)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:663)
at com.lampa.emotionrecognition.MainActivity.takePhoto(MainActivity.java:167)
at com.lampa.emotionrecognition.MainActivity.access$000(MainActivity.java:49)
at com.lampa.emotionrecognition.MainActivity$1.onClick(MainActivity.java:92)
at android.view.View.performClick(View.java:6935)
at android.widget.TextView.performClick(TextView.java:12787)
at android.view.View$PerformClick.run(View.java:26214)
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.app.ActivityThread.main(ActivityThread.java:7000)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Related
I'm trying to submit an update to an existing app to production, but I seem to be failing in the prelaunch for one specific device on on android sdk 26. I can reproduce this on emulation of sdk 26. The testing video seemed to just show the automated testing opening and closing the app and clicking around for about 5 minutes. I didn't seem to see any errors in the app itself.
I'm received several errors and all seem to be related to items related to com.google.android.apps.mtaas .
My app doesn't use any DeviceAdmin features so I'm not sure where these are coming from. Also, after looking at the full logcat file none of these process ID's match with the process ID's of my running app, and some of these seem to occur in the logs before I see much activity from the testing opening/closing my app.
Does anyone have any clue where to begin? I can't seem to recreate it, and without any hint to how they might relate to my code(if they do at all) I can't properly attempt to implement any fix.
I've seen numerous threads about false positives related to the prelaunch reports generating false positivies, but I'm not sure if that's the case here or not.
FATAL EXCEPTION: Instr: com.google.android.apps.mtaas.deviceadmin.HideApps
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14692
java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.isApplicationHidden(IDevicePolicyManager.java:8952)
at android.app.admin.DevicePolicyManager.isApplicationHidden(DevicePolicyManager.java:7466)
at com.google.android.apps.mtaas.deviceadmin.HideApps.onStart(HideApps.java:63)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2106)
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14836
java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction}
: java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6050)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setUserRestriction(IDevicePolicyManager.java:8542)
at android.app.admin.DevicePolicyManager.addUserRestriction(DevicePolicyManager.java:7339)
at com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction.start(ToggleUserRestriction.java:49)
at com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction.onCreate(ToggleUserRestriction.java:22)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6047)
... 8 more
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14959
java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy}
: java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6050)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setSystemUpdatePolicy(IDevicePolicyManager.java:9956)
at android.app.admin.DevicePolicyManager.setSystemUpdatePolicy(DevicePolicyManager.java:7970)
at com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy.start(SetUpdatePolicy.java:51)
at com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy.onCreate(SetUpdatePolicy.java:34)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6047)
... 8 more
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.tools, PID: 23437
java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo
{com.google.android.apps.mtaas.tools/androidx.test.runner.AndroidJUnitRunner}
: java.lang.ClassNotFoundException: Didn't find class "androidx.test.runner.AndroidJUnitRunner" on path: DexPathList[[zip file "/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/lib/arm64, /system/lib64, /vendor/lib64]]
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5995)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.test.runner.AndroidJUnitRunner" on path: DexPathList[[zip file "/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5993)
... 8 more
I try to share of files in android 11,but i get an exception:
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.DOWNLOAD_COMPLETE flg=0x10 pkg=ru.alexanderkozlovskiy.test (has extras) } in ru.alexanderkozlovskiy.test.ActivityMain$loadReciever$1#bbd5a77
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1572)
at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7861)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.SecurityException: UID 10415 does not have permission to content://downloads/all_downloads/1199 [user 0] [prefix]
You can see my code on https://github.com/AlexandrKozlovskiy/share_issue. Thanks everybody for any help.
When I run my app by android studio some times I get this error and app didn't run:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: ir.android_studio.ati_school_student, PID: 2860
java.lang.IllegalStateException: Failed to lookup info for package ir.android_studio.ati_school_student
at android.os.Parcel.createException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1918)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.call(ContentProviderNative.java:651)
at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:2099)
at android.provider.Settings$Global.getStringForUser(Settings.java:12212)
at android.provider.Settings$Global.getString(Settings.java:12201)
at android.provider.Settings$Global.getInt(Settings.java:12380)
at android.os.GraphicsEnvironment.setupGpuLayers(GraphicsEnvironment.java:95)
at android.os.GraphicsEnvironment.setup(GraphicsEnvironment.java:56)
at android.app.ActivityThread.setupGraphicsSupport(ActivityThread.java:5475)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5756)
at android.app.ActivityThread.access$1100(ActivityThread.java:199)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.providers.settings.SettingsProvider.getCallingApplicationInfoOrThrow(SettingsProvider.java:1741)
at com.android.providers.settings.SettingsProvider.enforceSettingReadable(SettingsProvider.java:1714)
at com.android.providers.settings.SettingsProvider.getGlobalSetting(SettingsProvider.java:964)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:384)
at android.content.ContentProvider$Transport.call(ContentProvider.java:403)
What is this error and how can I resolve it?
I my application app will crash on EditText when text enters and select that text. Otherwise it will works fine. Only problem when text gets selected by tapping on it. I have added android:importantForAutofill="noExcludeDescendants" in my xml still will not working.
Logs:
2020-07-06 12:15:15.256 21356-21356/com.zz.zzz E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zz.zzz, PID: 21356
com.android.internal.util.SyncResultReceiver$TimeoutException: Interrupted
at com.android.internal.util.SyncResultReceiver.waitResult(SyncResultReceiver.java:60)
at com.android.internal.util.SyncResultReceiver.getIntResult(SyncResultReceiver.java:68)
at android.view.autofill.AutofillManager.ensureServiceClientAddedIfNeededLocked(AutofillManager.java:1841)
at android.view.autofill.AutofillManager.isEnabled(AutofillManager.java:830)
at android.widget.TextView.canRequestAutofill(TextView.java:11592)
at android.widget.Editor$TextActionModeCallback.populateMenuWithItems(Editor.java:4017)
at android.widget.Editor$TextActionModeCallback.onCreateActionMode(Editor.java:3961)
at com.android.internal.policy.DecorView$ActionModeCallback2Wrapper.onCreateActionMode(DecorView.java:2596)
at com.android.internal.policy.DecorView.startActionMode(DecorView.java:913)
at com.android.internal.policy.DecorView.startActionModeForChild(DecorView.java:869)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1008)
at android.view.View.startActionMode(View.java:7339)
at android.widget.Editor.startActionModeInternal(Editor.java:2245)
at android.widget.SelectionActionModeHelper.startActionMode(SelectionActionModeHelper.java:267)
at android.widget.SelectionActionModeHelper.startSelectionActionMode(SelectionActionModeHelper.java:248)
at android.widget.SelectionActionModeHelper.lambda$startSelectionActionModeWithSmartSelectAnimation$0$SelectionActionModeHelper(SelectionActionModeHelper.java:302)
at android.widget.-$$Lambda$SelectionActionModeHelper$xdBRwQcbRdz8duQr0RBo4YKAnOA.run(Unknown Source:4)
at android.widget.SelectionActionModeHelper.startSelectionActionModeWithSmartSelectAnimation(SelectionActionModeHelper.java:310)
at android.widget.SelectionActionModeHelper.lambda$l1f1_V5lw6noQxI_3u11qF753Iw(Unknown Source:0)
at android.widget.-$$Lambda$SelectionActionModeHelper$l1f1_V5lw6noQxI_3u11qF753Iw.accept(Unknown Source:4)
at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:998)
at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:952)
at android.os.AsyncTask.finish(AsyncTask.java:755)
at android.os.AsyncTask.access$900(AsyncTask.java:192)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7410)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
I am trying to develop a simple app that scan documents. I am using scanlibrary, provided by jhansireddy (https://github.com/jhansireddy/AndroidScannerDemo). I've integrated the library with my actual project, i had done the gradle build.
When I start the activity, i have the options to select a photo from Gallery, or to take a brand new one. In both case, it crashes when it comes to save in the internal memory (requires android.permission.WRITE_EXTERNAL_STORAGE).
Below I will paste the entire error from logcat.
09-09 10:40:51.219 27738-27738/com.example.cosmin.kdocscanner E/MediaStore: Failed to insert image
java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=27738, uid=10158 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1599)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.insert(ContentProviderNative.java:476)
at android.content.ContentResolver.insert(ContentResolver.java:1251)
at android.provider.MediaStore$Images$Media.insertImage(MediaStore.java:971)
at com.scanlibrary.Utils.getUri(Utils.java:23)
at com.scanlibrary.PickImageFragment.postImagePick(PickImageFragment.java:146)
at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:141)
at android.app.Activity.dispatchActivityResult(Activity.java:6487)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3738)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3785)
at android.app.ActivityThread.access$1400(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5525)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
And after this one, another one that I think is a side effect. Meaning that at the point I resolve the first one, it will resolve the other too.
09-09 10:40:51.220 27738-27738/com.example.cosmin.kdocscanner E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.cosmin.kdocscanner, PID: 27738
java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=2, result=-1, data=null} to activity {com.example.cosmin.kdocscanner/com.scanlibrary.ScanActivity}: java.lang.NullPointerException: uriString
at android.app.ActivityThread.deliverResults(ActivityThread.java:3742)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3785)
at android.app.ActivityThread.access$1400(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5525)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.<init>(Uri.java:475)
at android.net.Uri$StringUri.<init>(Uri.java:465)
at android.net.Uri.parse(Uri.java:437)
at com.scanlibrary.Utils.getUri(Utils.java:24)
at com.scanlibrary.PickImageFragment.postImagePick(PickImageFragment.java:146)
at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:141)
at android.app.Activity.dispatchActivityResult(Activity.java:6487)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3738)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3785)
at android.app.ActivityThread.access$1400(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5525)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
I must say that android manifest has already the permission. In fact, both manifest files (The one that belongs to my project, and the one that belongs to the library).
What can be the cause?!