Skip to content

Download/Update install intent uses wrong file path #634

Description

@kudiaborm

I'm not sure if this is new as of Android N, but using the in-app "check for updates" feature returns a "unable to parse app".

The resultant apk file in the downloads app also cannot parse, and the file is not actually in the ~/Downloads folder

Using the downloads app to move the file shows it is actually in /data/data/com.android.providers.downloads/cache/adguard_beta.apk and not /data/user/0/com.android.providers.downloads/cache/adguard_beta.apk

START u0 {act=android.intent.action.VIEW dat=file:///data/user/0/com.android.providers.downloads/cache/adguard_beta.apk typ=application/vnd.android.package-archive flg=0x10000000 cmp=com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity} from uid 10188 on display 0

I've attached logs of my process, note that apk download names probably conflict between logs because I tried multiple times without deleting old version (i.e. apk-1, apk, apk-2).

CopyFIle.txt
FailedUpdate.txt
IsolatedError.txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions