I'm trying to update my app without the playstore. I've downloaded the APK of the server and set it to a folder.
I'm using the code below but I can't figure out why I don't get a popup which asks to install. Any thoughts?
Unfiltered logs (see "Spoiler") mention something about "whitelist"?
I'm using the code below but I can't figure out why I don't get a popup which asks to install. Any thoughts?
B4X:
out = File.OpenOutput(File.dirinternal,APK_Filename,False)
File.Copy2(In,out)
out.Close
If File.Exists(File.dirinternal,APK_Filename) = True Then
File.Copy(File.dirinternal, APK_Filename, Com.Provider.SharedFolder, APK_Filename)
Dim iIntent As Intent
iIntent.Initialize(iIntent.ACTION_VIEW,"" )
Com.Provider.SetFileUriAsIntentData(iIntent, APK_Filename)
'Type must be set after calling SetFileUriAsIntentData
iIntent.SetType("application/vnd.android.package-archive")
StartActivity(iIntent)
End If
Unfiltered logs (see "Spoiler") mention something about "whitelist"?
activityResumeTrigger: not whiteListedb4a.franken.jds/b4a.franken.jds.menu_instellingen/1
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
** Activity (menu_instellingen) Create, isFirst = true **
Deoptimizing android.view.View anywheresoftware.b4a.objects.ViewWrapper.build(java.lang.Object, java.util.Map, boolean) due to JIT inline cache
mCompatibilityFlags - 10
applicationDensity - 320
applicationScale - 1.0
** Activity (menu_instellingen) Resume **
JobName = GetServerLM, Success = true
ignoring event: SetImageViews
Displayed b4a.franken.jds/.menu_instellingen: +146ms
getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
Iop tryGetService failed
ActivityTrigger activityStopTrigger
Submit. TaskID: 12 Job:
func battery_type_sensor_get_status: buf BATT_PSN_6200MAH
Deoptimizing void anywheresoftware.b4a.objects.streams.File.Copy2(java.io.InputStream, java.i
utputStream) due to JIT inline cache
START u0 {act=android.intent.action.VIEW dat=content://b4a.franken.jds.provider/name/Franken_Maatwerkbox.apk typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.google.android.packageinstaller/com.android.packageinstaller.InstallStart} from uid 10096
Deoptimizing void anywheresoftware.b4a.objects.streams.File.Copy2(java.io.InputStream, java.i
utputStream) due to JIT inline cache
Invalid profile no. 0, total profiles 0 only
getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
Iop tryGetService failed
activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{278745a com.google.android.packageinstaller}
activityStartTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
activityResumeTrigger: The activity in ApplicationInfo{278745a com.google.android.packageinstaller} is now in focus and seems to be in full-screen mode
activityResumeTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
ActivityTrigger activityPauseTrigger
** Activity (menu_instellingen) Pause, UserClosed = false **
activityResumeTrigger: The activity in ApplicationInfo{278745a com.google.android.packageinstaller} is now in focus and seems to be in full-screen mode
activityResumeTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
Requesting uid 10096 needs to declare permission android.permission.REQUEST_INSTALL_PACKAGES
ActivityTrigger activityPauseTrigger
activityResumeTrigger: The activity in ApplicationInfo{90c72ac b4a.franken.jds} is now in focus and seems to be in full-screen mode
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
** Activity (menu_instellingen) Create, isFirst = true **
Deoptimizing android.view.View anywheresoftware.b4a.objects.ViewWrapper.build(java.lang.Object, java.util.Map, boolean) due to JIT inline cache
mCompatibilityFlags - 10
applicationDensity - 320
applicationScale - 1.0
** Activity (menu_instellingen) Resume **
JobName = GetServerLM, Success = true
ignoring event: SetImageViews
Displayed b4a.franken.jds/.menu_instellingen: +146ms
getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
Iop tryGetService failed
ActivityTrigger activityStopTrigger
Submit. TaskID: 12 Job:
func battery_type_sensor_get_status: buf BATT_PSN_6200MAH
Deoptimizing void anywheresoftware.b4a.objects.streams.File.Copy2(java.io.InputStream, java.i
START u0 {act=android.intent.action.VIEW dat=content://b4a.franken.jds.provider/name/Franken_Maatwerkbox.apk typ=application/vnd.android.package-archive flg=0x10000001 cmp=com.google.android.packageinstaller/com.android.packageinstaller.InstallStart} from uid 10096
Deoptimizing void anywheresoftware.b4a.objects.streams.File.Copy2(java.io.InputStream, java.i
Invalid profile no. 0, total profiles 0 only
getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
Iop tryGetService failed
activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{278745a com.google.android.packageinstaller}
activityStartTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
activityResumeTrigger: The activity in ApplicationInfo{278745a com.google.android.packageinstaller} is now in focus and seems to be in full-screen mode
activityResumeTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
ActivityTrigger activityPauseTrigger
** Activity (menu_instellingen) Pause, UserClosed = false **
activityResumeTrigger: The activity in ApplicationInfo{278745a com.google.android.packageinstaller} is now in focus and seems to be in full-screen mode
activityResumeTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallStart/27
mCompatibilityFlags - 0
applicationDensity - 320
applicationScale - 1.0
Requesting uid 10096 needs to declare permission android.permission.REQUEST_INSTALL_PACKAGES
ActivityTrigger activityPauseTrigger
activityResumeTrigger: The activity in ApplicationInfo{90c72ac b4a.franken.jds} is now in focus and seems to be in full-screen mode