Android Question new REQUIRE_SECURE_ENV flag

Filippo

Expert
Licensed User
Longtime User
Hi,

does anyone know what Google is doing with this email?
 

Filippo

Expert
Licensed User
Longtime User
How is it related to your app?
I don't think it has anything to do with any of my app because the email doesn't say anything about it.

This is the complete email:
 
Upvote 0

fredo

Well-Known Member
Licensed User
Longtime User
(My first approach was not correct: SetApplicationAttribute("REQUIRE_SECURE_ENV", 1) )

See Erel's answer #9 below: https://www.b4x.com/android/forum/threads/new-require_secure_env-flag.149020/post-944527

I added this to make sure that the app will only run on a pure android device. I'm not sure if the change will help, but i don't want to left any stone unturned.

If there is anyone who knows more about "on-device android container apps", an explanation would be helpful to understand the necessity of that attribute.
 
Last edited:
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Further I understand it is relevant when our app is set as 'dual app' or similar by phone os, say Redmi has this feature.
The below setting will prevent it from running in this mode,
B4X:
SetApplicationAttribute("REQUIRE_SECURE_ENV", 1)

I noted that I can make my app as dual, but few apps in my phone do not work when made dual. They must have this setting.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
"On-device Android containers are apps that simulate the Android OS on an Android-powered device. This includes both apps that simulate the Android OS in its entirety and apps that only simulate portions of the Android OS."


Looks like apps that act as mini-OS. Maybe for enterprise solutions.

he below setting will prevent it from running in this mode,
The correct way to add this property is:
B4X:
AddApplicationText(
<property android:name="REQUIRE_SECURE_ENV" android:value="1" />
)

Most apps can ignore this.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…