vendetta-mod / Vendetta

A mod for Discord's mobile apps.
BSD 3-Clause "New" or "Revised" License
1.46k stars 91 forks source link

Unable to install the app #133

Open hypertrash opened 1 year ago

hypertrash commented 1 year ago

I am unable to download the app with the installer and it stops at downloading the app Vendetta Manager v1.0.87 Built from commit cee4d01 on main (Changes Present)

Running Android 12, API level 31 Supported ABIs: arm64-v8a, armeabi-v7a, armeabi

Checking if base-190017.apk is cached base-190017.apk is not cached, downloading now

Failed on step DL_BASE_APK

java.lang.SecurityException: Unsupported path /data/data/dev.beefers.vendetta.manager/cache/190017/base-190017.apk at android.os.Parcel.createExceptionOrNull(Parcel.java:2456) at android.os.Parcel.createException(Parcel.java:2440) at android.os.Parcel.readException(Parcel.java:2423) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) at android.content.ContentProviderProxy.insert(ContentProviderNative.java:557) at android.content.ContentResolver.insert(ContentResolver.java:2193) at android.content.ContentResolver.insert(ContentResolver.java:2155) at android.app.DownloadManager.enqueue(DownloadManager.java:1119) at dev.beefers.vendetta.manager.domain.manager.DownloadManager.download(DownloadManager.kt:110) at dev.beefers.vendetta.manager.domain.manager.DownloadManager.downloadDiscordApk(DownloadManager.kt:23) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel.install(InstallerViewModel.kt:165) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel.access$install(InstallerViewModel.kt:40) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel$job$1$1.invokeSuspend(InstallerViewModel.kt:106) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) This is the copied logs

hypertrash commented 1 year ago

Screenshot_20230816-000838

daedaevibin commented 1 year ago

This is being caused by device security protocols in java.lang.SecurityException

Devs please check validation of '/data/data/dev.beefers.vendetta.manager/cache/190017/base-190017.apk'

Added message for devs:

Fixing Unsupported Path Issue

Default (GPT-3.5)

User How to fix

Checking if base-190017.apk is cached base-190017.apk is not cached, downloading now

Failed on step DL_BASE_APK

java.lang.SecurityException: Unsupported path /data/data/dev.beefers.vendetta.manager/cache/190017/base-190017.apk at android.os.Parcel.createExceptionOrNull(Parcel.java:2456) at android.os.Parcel.createException(Parcel.java:2440) at android.os.Parcel.readException(Parcel.java:2423) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) at android.content.ContentProviderProxy.insert(ContentProviderNative.java:557) at android.content.ContentResolver.insert(ContentResolver.java:2193) at android.content.ContentResolver.insert(ContentResolver.java:2155) at android.app.DownloadManager.enqueue(DownloadManager.java:1119) at dev.beefers.vendetta.manager.domain.manager.DownloadManager.download(DownloadManager.kt:110) at dev.beefers.vendetta.manager.domain.manager.DownloadManager.downloadDiscordApk(DownloadManager.kt:23) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel.install(InstallerViewModel.kt:165) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel.access$install(InstallerViewModel.kt:40) at dev.beefers.vendetta.manager.ui.viewmodel.installer.InstallerViewModel$job$1$1.invokeSuspend(InstallerViewModel.kt:106) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

ChatGPT The error message you provided seems to be a stack trace from a Java code snippet. It indicates that there's a java.lang.SecurityException occurring due to an unsupported path. It seems to be related to downloading and caching an APK file for an Android app.

To resolve this issue, you might want to check the following:

Permissions: Ensure that your app has the necessary permissions to access the storage and download files. You might need to request the WRITE_EXTERNAL_STORAGE permission in your AndroidManifest.xml.

Path Issues: Make sure that the paths you are using for caching and downloading the APK are correct and supported. The path /data/data/dev.beefers.vendetta.manager/cache/190017/base-190017.apk should be a valid location for caching, and the DownloadManager should be able to handle it.

Content Provider: The error seems to be related to inserting data into a content provider. Double-check that you're using the correct URI and content resolver to perform the insertion.

Exception Handling: Wrap the relevant code in try-catch blocks to handle any exceptions gracefully. This will help you identify the exact cause of the issue and provide a better error message.

Library Versions: Ensure that you are using the appropriate library versions for downloading and caching files. Outdated or incompatible libraries could potentially lead to such issues.

hypertrash commented 1 year ago

So am I just unable to do anything until the devs are involved?

daedaevibin commented 1 year ago

So am I just unable to do anything until the devs are involved?

Quite frankly, yes.

daedaevibin commented 1 year ago

So am I just unable to do anything until the devs are involved?

Do check your manager application for updates please. Thank you

wingio commented 1 year ago

First of all, don't use ChatGPT to solve issues, it's unable to help. Secondly can I ask what rom and device are you using

hypertrash commented 1 year ago

I'm the phone model im using is the TMAF025G the only things I've downloaded is the manager from GitHub

wingio commented 1 year ago

i don't think this is an issue i can solve, your device is blocking access to the apps own storage