Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
can't install apks
An Android 10 Alcatel 3T tablet (armeabi-v7a) i have laying around for testing suddenly stopped being able to install apks by clicking on them. I can install apps just fine via f-droid and adb install
, but clicking on an apk shows a pop-up that disappears way too quickly to be read (less than a second) and i just can't install it.
I've tried older apks which i know work, but now don't. I've even factory reset the tablet, to no avail.
Looking at logcat, when i click on an apk there's this, which i think might be relevant:
2024-05-28 10:03:05.930 5224-5246/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
Process: system:ui, PID: 5224
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:399)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: android.content.res.Resources$NotFoundException: Drawable com.android.packageinstaller:drawable/ic_app_icon with resource ID #0x7f060002
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_app_icon.xml from drawable resource ID #0x7f060002
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:908)
at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:686)
at android.content.res.Resources.getDrawableForDensity(Resources.java:906)
at android.content.res.Resources.getDrawableForDensity(Resources.java:880)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.loadIconFromResource(ResolverActivity.java:695)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.getIconBitmap(ResolverActivity.java:640)
at com.android.internal.app.ResolverActivity$ActivityInfoPresentationGetter.getIconBitmap(ResolverActivity.java:746)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.getIcon(ResolverActivity.java:628)
at com.android.internal.app.ResolverActivity$ActivityInfoPresentationGetter.getIcon(ResolverActivity.java:746)
at com.android.internal.app.ResolverActivity.loadIconForResolveInfo(ResolverActivity.java:787)
at com.android.internal.app.ResolverActivity$LoadIconTask.doInBackground(ResolverActivity.java:2246)
at com.android.internal.app.ResolverActivity$LoadIconTask.doInBackground(ResolverActivity.java:2233)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x106002f
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:255)
at android.content.res.Resources.getValueForDensity(Resources.java:1369)
at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:1003)
at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:517)
at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:481)
at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:233)
at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:144)
at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1402)
at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1361)
at android.content.res.ResourcesImpl.loadXmlDrawable(ResourcesImpl.java:971)
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:894)
at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:686)
at android.content.res.Resources.getDrawableForDensity(Resources.java:906)
at android.content.res.Resources.getDrawableForDensity(Resources.java:880)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.loadIconFromResource(ResolverActivity.java:695)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.getIconBitmap(ResolverActivity.java:640)
at com.android.internal.app.ResolverActivity$ActivityInfoPresentationGetter.getIconBitmap(ResolverActivity.java:746)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.getIcon(ResolverActivity.java:628)
at com.android.internal.app.ResolverActivity$ActivityInfoPresentationGetter.getIcon(ResolverActivity.java:746)
at com.android.internal.app.ResolverActivity.loadIconForResolveInfo(ResolverActivity.java:787)
at com.android.internal.app.ResolverActivity$LoadIconTask.doInBackground(ResolverActivity.java:2246)
at com.android.internal.app.ResolverActivity$LoadIconTask.doInBackground(ResolverActivity.java:2233)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
I'm at a loss. Is the package manager broken?
The apks work just fine on an Asus Memo Pad 8 with Android 4 and Samsung Galaxy A20e with Android 9 which has been upgraded to 11.
1 answer
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
JohnRando | (no comment) | May 28, 2024 at 13:54 |
After rigorously and scientifically clicking on the apks a bunch of times i could glimpse "termux" in the ever vanishing pop-up, which indeed i had installed.
Uninstalled termux and can now install apks again. I assume termux took over the *.apk
extension for the "open with" action or somesuch...
1 comment thread