[FREE] DeviceUtils - To get some info about your device! πŸ“±

Also, instead of READ_PHONE_STATE permission, try to ask for android.permission.READ_PRIVILEGED_PHONE_STATE because the GetImei and GetMeid blocks require that permission, and make sure its granted.
Also, do you even have a IMEI number ? :sweat_smile: (If you don't have a sim slot, more chance is there that your device has no IMEI number...)

Also, this link might help...
Deviceid function of the phone manager extension no longer returns the id.

2 Likes

Third-party apps installed from the Google Play Store cannot declare privileged permissions.
https://developer.android.com/about/versions/10/privacy/changes

See this Как ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ id с android 10?

Also, An alternative for imei is discussed here:

2 Likes

Can you provide me the AIX file of this program?

Go to #post1 and click on versions

image

Please add KeepScreenOn block.

Already available here:

i know but i want in DeviceUtils.

@Bibek_Barman

I Hope that this is what you need?

no, i want KeepScreenOn option in DeviceUtils extension.

Why do you want that? This extension is only about giving device info. It doesn't make sense to add that block.

3 Likes

To control Brightness use

3 Likes

already have bluetooth enable or disable and status bar color change option.

And how to ask for READ_PRIVILEGED_PHONE_STATE from app inventor?

But how to do this from app inventor? I don't know about android Studio and the description given on this page is not related to app inventor.

AI2 is still targeting SDK 30 but will target SDK 31 in a few days. You will then have to manually change the targetSdkVersion (and set it to SDK 28) after decompiling the APK.

Note: This app will not be approved by Google in the Play Store.