Android Question App update from app

Dey

Active Member
Licensed User
Longtime User
Hello everyone
with the new version of B4X 13.00
not always, the app updates..
with the previous version of B4X I did not encounter this problem.

B4X:
    Dim i As Intent
    If phone.SdkVersion >= 24 Then
        i.Initialize("android.intent.action.INSTALL_PACKAGE",Starter.Provider.GetFileUri(NameApp))
        'i.Initialize("android.intent.action.PACKAGE_REPLACED",Starter.Provider.GetFileUri(NameApp))
        i.Flags = Bit.Or(i.Flags, 1) 'FLAG_GRANT_READ_URI_PERMISSION
    Else
        i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(Starter.Provider.SharedFolder, NameApp))
        i.SetType("application/vnd.android.package-archive")
    End If
    StartActivity(i)

this is unfiltered logs
Logs:
Displayed com.android.packageinstaller/.InstallInstalling: +92ms
endAllActiveAnimators on 0x74c8f8b1aa10 (RippleDrawable) with handle 0x74c808a6b930
Window{7ce4d2f u0 com.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}: Setting back callback null
Input channel object '7ce4d2f com.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity (client)' was disposed without first being removed with the input manager!
ERROR: could not load root hash from incremental install
Required verifier is null
Integrity rule files are not available.
Integrity check passed for file:///data/app/vmdl311223768.tmp
Force stopping bar.orders appid=10088 user=-1: installPackageLI
Killing 3458:bar.orders/u0a88 (adj 101): stop bar.orders due to installPackageLI
Update package bar.orders code path from /data/app/~~dDSa64F3I3w28QxfPJmBzg==/bar.orders-6MpweCvqs27eagyaOcVdLw== to /data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==; Retain data and using new
Force removing ActivityRecord{f49dea9 u0 bar.orders/.main} t91 f}}: app died, no saved state
Successfully killed process cgroup uid 10088 pid 3458 in 5ms
Process 3458 exited due to signal 9 (Killed)
failed to get buffer, invalid process token
Untracked pid 3480 received signal 9
Untracked pid 3480 did not have an associated service entry and will not be reaped
start watching /data/system/packages.list ...
ReadPackageList, total packages: 97
Instant App installer not found with android.intent.action.INSTALL_INSTANT_APP_PACKAGE
Clear ephemeral installer activity
Exception thrown during dispatchAppVisibility Window{f08298c u0 bar.orders/bar.orders.main}
android.os.DeadObjectException
    at android.os.BinderProxy.transactNative(Native Method)
    at android.os.BinderProxy.transact(BinderProxy.java:584)
    at android.view.IWindow$Stub$Proxy.dispatchAppVisibility(IWindow.java:536)
    at com.android.server.wm.WindowState.sendAppVisibilityToClients(WindowState.java:3484)
    at com.android.server.wm.WindowContainer.sendAppVisibilityToClients(WindowContainer.java:1231)
    at com.android.server.wm.WindowToken.setClientVisible(WindowToken.java:392)
    at com.android.server.wm.ActivityRecord.setClientVisible(ActivityRecord.java:6770)
    at com.android.server.wm.ActivityRecord.onAnimationFinished(ActivityRecord.java:7592)
    at com.android.server.wm.ActivityRecord.postApplyAnimation(ActivityRecord.java:5454)
    at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5414)
    at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5418)
    at com.android.server.wm.ActivityRecord.onRemovedFromDisplay(ActivityRecord.java:4174)
    at com.android.server.wm.DisplayContent.removeAppToken(DisplayContent.java:1434)
    at com.android.server.wm.ActivityRecord.removeFromHistory(ActivityRecord.java:3853)
    at com.android.server.wm.ActivityRecord.handleAppDied(ActivityRecord.java:4105)
    at com.android.server.wm.WindowProcessController.handleAppDied(WindowProcessController.java:1285)
    at com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied(ActivityTaskManagerService.java:6111)
    at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:3241)
    at com.android.server.am.ProcessList.removeProcessLocked(ProcessList.java:2872)
    at com.android.server.am.ProcessList.killPackageProcessesLSP(ProcessList.java:2817)
    at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:4490)
    at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:1755)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.os.HandlerThread.run(HandlerThread.java:67)
    at com.android.server.ServiceThread.run(ServiceThread.java:44)
Sending signal. PID: 3458 SIG: 9
Input channel object 'f08298c bar.orders/bar.orders.main (client)' was disposed without first being removed with the input manager!
Unable to open '/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/base.dm': No such file or directory
Running dexopt (dexoptNeeded=1) on: /data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/base.apk pkg=bar.orders isa=x86_64 dexoptFlags=boot_complete,profile_guided,public,enable_hidden_api_checks targetFilter=speed-profile oatDir=/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/oat classLoaderContext=PCL[]{}
DexInv: --- BEGIN '/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/base.apk' ---
Running /apex/com.android.art/bin/dex2oat32 in=base.apk out=/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/oat/x86_64/base.odex
Failed looking up window session=Session{57ac419 3458:u0a10088} callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5976 com.android.server.wm.WindowState$DeathRecipient.binderDied:3125 android.os.IBinder$DeathRecipient.binderDied:317
WIN DEATH: null
Got obituary of 3458:bar.orders
setHasOverlayUi called on unknown pid: 3458
Failed to transact (-32)
Could not find layer handle 0x729cb416ab70
Could not find layer handle 0x729cb4167f30
Could not find layer handle 0x729cb4163730
Could not find layer handle 0x729cb4163430
gralloc_alloc: Creating ashmem region of size 1540096
Unexpected CPU variant for x86: x86_64.
Known variants: atom, sandybridge, silvermont, kabylake, default
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
/apex/com.android.art/bin/dex2oat32 --input-vdex-fd=-1 --output-vdex-fd=9 --classpath-dir=/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ== --class-loader-context=PCL[]{} --compact-dex-level=none --compiler-filter=speed-profile --compilation-reason=install --max-image-b-size=524288 --resolve-startup-const-strings=true --generate-mini-debug-info
Unable to match the desired swap behavior.
gralloc_alloc: Creating ashmem region of size 1540096
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
gralloc_alloc: Creating ashmem region of size 1540096
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
app_time_stats: avg=450.72ms min=7.64ms max=19117.00ms count=44
Could not find layer handle 0x729cb4166370
Could not find layer handle 0x729cb4167270
Could not find layer handle 0x729cb41652f0
couldn't log to binary event log: overflow.
Could not find layer handle 0x729cb41652f0
Could not find layer handle 0x729cb4167270
Could not find layer handle 0x729cb4163670
ART APEX data files are untrusted.
Could not reserve sentinel fault page
Accessing hidden method Landroid/window/BackEvent;->getProgress()F (blocked, linking, denied)
Accessing hidden method Landroid/window/BackEvent;->getSwipeEdge()I (blocked, linking, denied)
Accessing hidden method Landroid/window/BackEvent;->getTouchX()F (blocked, linking, denied)
Accessing hidden method Landroid/window/BackEvent;->getTouchY()F (blocked, linking, denied)
Accessing hidden method Landroid/service/quicksettings/TileService;->startActivityAndCollapse(Landroid/app/PendingIntent;)V (blocked, linking, denied)
Could not find layer handle 0x729cb4164d50
Could not find layer handle 0x729cb416a3f0
Could not find layer handle 0x729cb416a750
Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateMap.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Method void androidx.compose.runtime.snapshots.SnapshotStateMap.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Method boolean androidx.compose.runtime.snapshots.SnapshotStateMap.removeIf$runtime_release(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Method void androidx.compose.runtime.snapshots.SnapshotStateList.update$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
dex2oat took 474.579ms (1.026s cpu) (threads: 4) arena alloc=0B (0B) java alloc=11MB (11798640B) native alloc=10MB (10565680B) free=2107KB (2157840B)
DexInv: --- END '/data/app/~~4TWTT2ZuuJyguOahyF6flA==/bar.orders-jPWTiS-TVGXVTcxNpwakkQ==/base.apk' (success) ---
Force stopping bar.orders appid=10088 user=0: pkg removed
Force stopping bar.orders appid=10088 user=0: pkg removed
Compat change id reported: 168419799; UID 10088; state: DISABLED
Invalidating LocalCallingIdentity cache for package bar.orders. Reason: package android.intent.action.PACKAGE_REMOVED
WorkProfileOwnerApps cache is empty
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package: flg=0x4000010 (has extras) } to com.android.gallery3d/.app.PackagesMonitor
Marking session 311223768 as applied
Couldn't opendir /data/app/vmdl311223768.tmp: No such file or directory
Failed to delete /data/app/vmdl311223768.tmp: No such file or directory
Reconfiguring input devices, changes=KEYBOARD_LAYOUTS |
Reconfiguring input devices, changes=KEYBOARD_LAYOUTS |
Reconfiguring input devices, changes=KEYBOARD_LAYOUTS |
CarModeTracker: Package bar.orders is not tracked.: SSH.oR@AJg
InCallController: updateCarModeForConnections: car mode apps: : SSH.oR@AJg
Invalidating LocalCallingIdentity cache for package bar.orders. Reason: package android.intent.action.PACKAGE_ADDED
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package: flg=0x4000010 (has extras) } to com.genymotion.superuser/com.koushikdutta.superuser.PackageChangeReceiver
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package: flg=0x4000010 (has extras) } to com.android.packageinstaller/.PackageInstalledReceiver
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package: flg=0x4000010 (has extras) } to com.android.gallery3d/.app.PackagesMonitor
Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package: flg=0x4000010 (has extras) } to com.genymotion.superuser/com.koushikdutta.superuser.PackageChangeReceiver
DefaultDialerCache: Refreshing default dialer for user 0: now com.android.dialer: DDC.oR@AJk
getFullBackupIntervalMilliseconds(...) returns 86400000
getFullBackupRequiredNetworkType(...) returns 2
getFullBackupRequireCharging(...) returns true
Compat change id reported: 218533173; UID 10088; state: ENABLED
Updating user sensitive for uid 10088
Compat change id reported: 171306433; UID 10088; state: ENABLED
Package bar.orders, uid 10088 lost permission to set exact alarms!
START u0 {dat=file:///... flg=0x2000000 cmp=com.android.packageinstaller/.InstallSuccess (has extras)} from uid 10013
ServiceConfig reloaded, count: 0
ServiceConfig reloaded, count: 0
ServiceConfig reloaded, count: 0
Tried to set launchTime (0) < mLastActivityLaunchTime (5749355)
Compat change id reported: 161252188; UID 10088; state: ENABLED
Window{eab7d3e u0 com.android.packageinstaller/com.android.packageinstaller.InstallSuccess}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@ec5c0ec, mPriority=0}
onPackageUpdateFinished: bar.orders
No carrier app for: 0
onPackageModified: bar.orders
No carrier app for: 0
gralloc_alloc: Creating ashmem region of size 528384
no available voice recognition services found for user 0
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
Unable to match the desired swap behavior.
gralloc_alloc: Creating ashmem region of size 528384
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
gralloc_alloc: Creating ashmem region of size 528384
open_verbose_path:50: Could not open '/dev/goldfish_pipe': No such file or directory
open_verbose:121: both vsock and goldfish_pipe paths failed
Expecting binder but got null!
Displayed com.android.packageinstaller/.InstallSuccess: +49ms
Could not find layer handle 0x729cb41634f0
Could not find layer handle 0x729cb416a1b0
Window{ce95c6e u0 com.android.packageinstaller/com.android.packageinstaller.InstallInstalling}: Setting back callback null
Input channel object 'ce95c6e com.android.packageinstaller/com.android.packageinstaller.InstallInstalling (client)' was disposed without first being removed with the input manager!
Could not find layer handle 0x729cb4168770
Could not find layer handle 0x729cb4166a30
Could not find layer handle 0x729cb4168770
app_time_stats: avg=160.49ms min=6.12ms max=1466.58ms count=10
File error accessing recents directory (directory doesn't exist?).

app is downloaded from an FTP server
in the folder of the same app

here I have a doubt
do you recommend downloading in the downloads folder and installing it from that location?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…