tasomaniac / OpenLinkWith

Open the current webpage you have in another app. Magic! 🔮
https://play.google.com/store/apps/details?id=com.tasomaniac.openwith
Apache License 2.0
362 stars 31 forks source link

Cannot update from 2.3-floss to 2.5-floss #54

Open kowith337 opened 5 years ago

kowith337 commented 5 years ago

F-Droid version is now updated to 2.5-floss but unfortunately, I cannot install that update on my device.

F-Droid only reported "Failed to install update due to unknown error"

Info: Device Name: HTC one E9 Plus Dual Sim (e9pw / a55ml_dtul) OS: Android 5.0.2 F-Droid Client: 0.102-3 (I didn't use latest version due to compatibility of index file and UI)

tasomaniac commented 5 years ago

Hi, it would be nice to have more information about this. Can you access device logs? If so, it would be awesome to post them here.

tasomaniac commented 5 years ago

Just downloaded Fdroid. Seems like they support installing older versions. I did that and upgraded to 2.5-floss and it was successful.

kowith337 commented 5 years ago

Dumped and search with package name...

Search "com.tasomaniac.openwith.floss" (25 hits in 1 file)
  C:\Temp\Android\Logs\installopenlinkwith.txt (25 hits)
    Line 6043: W/InstallAppProgress( 8991): Replacing package:com.tasomaniac.openwith.floss
    Line 9761: D/PackageManager(  835): Renaming /data/app/vmdl1575059616.tmp to /data/app/com.tasomaniac.openwith.floss-2
    Line 9763: I/ActivityManager(  835): Force stopping com.tasomaniac.openwith.floss appid=10222 user=-1: uninstall pkg
    Line 9767: I/PackageManager(  835): Package com.tasomaniac.openwith.floss codePath changed from /data/app/com.tasomaniac.openwith.floss-1 to /data/app/com.tasomaniac.openwith.floss-2; Retaining data and using new
    Line 9767: I/PackageManager(  835): Package com.tasomaniac.openwith.floss codePath changed from /data/app/com.tasomaniac.openwith.floss-1 to /data/app/com.tasomaniac.openwith.floss-2; Retaining data and using new
    Line 9767: I/PackageManager(  835): Package com.tasomaniac.openwith.floss codePath changed from /data/app/com.tasomaniac.openwith.floss-1 to /data/app/com.tasomaniac.openwith.floss-2; Retaining data and using new
    Line 9775: I/art     (  835): DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/arm64/data@app@com.tasomaniac.openwith.floss-2@base.apk@classes.dex' for file location '/data/app/com.tasomaniac.openwith.floss-2/base.apk': Failed to open oat filename for reading: No such file or directory
    Line 9775: I/art     (  835): DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/arm64/data@app@com.tasomaniac.openwith.floss-2@base.apk@classes.dex' for file location '/data/app/com.tasomaniac.openwith.floss-2/base.apk': Failed to open oat filename for reading: No such file or directory
    Line 9777: I/art     (  835): DexFile_isDexOptNeeded failed to open oat file '/data/app/com.tasomaniac.openwith.floss-2/arm64/base.odex' for file location '/data/app/com.tasomaniac.openwith.floss-2/base.apk': Failed to open oat filename for reading: No such file or directory
    Line 9777: I/art     (  835): DexFile_isDexOptNeeded failed to open oat file '/data/app/com.tasomaniac.openwith.floss-2/arm64/base.odex' for file location '/data/app/com.tasomaniac.openwith.floss-2/base.apk': Failed to open oat filename for reading: No such file or directory
    Line 9779: I/PackageManager(  835): Running dexopt on: /data/app/com.tasomaniac.openwith.floss-2/base.apk pkg=com.tasomaniac.openwith.floss isa=arm64 vmSafeMode=false
    Line 9779: I/PackageManager(  835): Running dexopt on: /data/app/com.tasomaniac.openwith.floss-2/base.apk pkg=com.tasomaniac.openwith.floss isa=arm64 vmSafeMode=false
    Line 9803: I/dex2oat ( 9574): /system/bin/dex2oat --zip-fd=5 --zip-location=/data/app/com.tasomaniac.openwith.floss-2/base.apk --oat-fd=6 --oat-location=/data/dalvik-cache/arm64/data@app@com.tasomaniac.openwith.floss-2@base.apk@classes.dex --instruction-set=arm64 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m
    Line 9803: I/dex2oat ( 9574): /system/bin/dex2oat --zip-fd=5 --zip-location=/data/app/com.tasomaniac.openwith.floss-2/base.apk --oat-fd=6 --oat-location=/data/dalvik-cache/arm64/data@app@com.tasomaniac.openwith.floss-2@base.apk@classes.dex --instruction-set=arm64 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m
    Line 26245: E/[B+]AutoStartGuardService( 4783): ERROR: Failed to get application info!!! (pkg=com.tasomaniac.openwith.floss).
    Line 26247: E/[B+]AutoStartGuardService( 4783): android.content.pm.PackageManager$NameNotFoundException: com.tasomaniac.openwith.floss
    Line 66089: E/[B+]AutoStartGuardService( 4783): ERROR: Failed to get application info!!! (pkg=com.tasomaniac.openwith.floss).
    Line 66091: E/[B+]AutoStartGuardService( 4783): android.content.pm.PackageManager$NameNotFoundException: com.tasomaniac.openwith.floss
    Line 85117: E/[B+]AutoStartGuardService( 4783): ERROR: Failed to get application info!!! (pkg=com.tasomaniac.openwith.floss).
    Line 85119: E/[B+]AutoStartGuardService( 4783): android.content.pm.PackageManager$NameNotFoundException: com.tasomaniac.openwith.floss
    Line 88505: E/installd(  353): DexInv: --- END '/data/app/com.tasomaniac.openwith.floss-2/base.apk' --- status=0x0100, process failed
    Line 88507: W/PackageManager(  835): Package couldn't be installed in /data/app/com.tasomaniac.openwith.floss-2
    Line 88537: W/PackageParser(  835): Unknown element under <manifest>: uses-permission-sdk-23 at /data/app/com.tasomaniac.openwith.floss-1/base.apk Binary XML file line #12
    Line 88539: W/PackageParser(  835): Unknown element under <manifest>: uses-permission-sdk-23 at /data/app/com.tasomaniac.openwith.floss-1/base.apk Binary XML file line #13
    Line 88559: I/PackageManager(  835): Successfully restored package : com.tasomaniac.openwith.floss after failed upgrade

I guess because new permission have been added but it's required higher Android version than me, or something occur in the package name.