Android Question Incompatible app

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I have android app (build with B4A 12.20) that runs fine on all other phones except on Samsung A55 (Android 14).

On this phone, app couldn't be installed, the error message is something like Incompatible App.

On others Android 14 phones, app runs fine.

Problem is, don't have that phone, phone is in user.

Here are the manifest file
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="false" />)
AddPermission("android.permission.CAMERA")
AddPermission("android.permission.FLASHLIGHT")   
AddPermission(android.permission.USE_FINGERPRINT)   
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@style/br")
SetActivityAttribute(InpRcvGd, android:windowSoftInputMode, adjustPan|stateHidden)
SetActivityAttribute(InpSls, android:windowSoftInputMode, adjustPan|stateHidden)
SetApplicationAttribute(android:usesCleartextTraffic, "true")

AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)

AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)

Conditional symbols (on build configuration) = KVS_ENCRYPTION

Attached are libraries use in this app.

Could you give me a hints where might be the problems?
 

Attachments

  • Lib1.png
    Lib1.png
    20.6 KB · Views: 8
  • Lib2.png
    Lib2.png
    11.7 KB · Views: 8

virpalacios

Active Member
Licensed User
Longtime User
Hi, I had the A55 Phone Android 14, I already ported some of my android 13 App to Android 14, here is the Manifest from one of my apps. I advice you to create a Simple Hello World program with the Api level indicated in code to check if it working.

Manifest from Android 14 App - A55 Phone:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:allowBackup, "false")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Core.NetworkClearText)   
'End of default text.
 
Upvote 0

incendio

Well-Known Member
Licensed User
Longtime User
Hi, I had the A55 Phone Android 14, I already ported some of my android 13 App to Android 14, here is the Manifest from one of my apps. I advice you to create a Simple Hello World program with the Api level indicated in code to check if it working.

Manifest from Android 14 App - A55 Phone:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:allowBackup, "false")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Core.NetworkClearText)  
'End of default text.
I add/edit manifest file with these 2 lines
B4X:
uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
CreateResourceFromFile(Macro, Core.NetworkClearText)

A simple Hello Word runs fine, but on real app, still got same error.
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Hi, In the past I have an issue using api 30 and api 33, My app has to be in Api 33, My Manifest works fine in API 30 but not in API 33, It gave me a similar error like your.
Erel ask me to delete all entries in manifest and start adding just the information need. From the past My manifest grow up adding lines that really I don't need anymore. Erel's advice solve my problem and my app run form android 12, 13 and 14 without any change. I think it was a conflictive line in manifest. I could't find Eres anwer now, but as soon I get I going to post the link here.

Best Regard
 
Upvote 0
Top