Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

+1
−2

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Offtopic for software development (1 comment)

1 answer

+1
−0

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...

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »