[FREE] Device 💻 - Get device info!

ok thanks Lu

1 Like

Sadly this DeviceInfo extension is discontinued on Kodular community. I will try to implement the blocks there to here.

EDIT: I found the download link, no need to implement.

4 Likes

Version 19!

Big thanks to @oseamiya.

IsNightModeActive

image

Checks if the night mode of the device is on.

Returns: boolean

Supported32BitAbis

image

Returns a list of 32 bit ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.

Returns: list

Supported64BitAbis

image

Returns a list of 64 bit ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.

Returns: list

SupportedAbis

image

Returns a list of ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.

Returns: list

Time

image

The time at which the build was produced, given in milliseconds since the UNIX epoch.

Returns: number (long)

BTW: Website and OP updated.

3 Likes

One of the greatest and useful updates I have ever seen @Gordon_Lu! :heart:

2 Likes

Due to the fact that many of the blocks only support versions > API 20, in the next version I'll make the minimum API to 21. Sorry for users who use phones older than that :disappointed_relieved:.

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
1 Like

Version 20!

Minumim API level: 21

Thanks to @Salman_Dev for this release, I took great inspiration from his StatusBarTools extension. His extension has additional features in handling status bars, remember to check that out!

IsSmsCapable

image

Returns true if the current device supports SMS service.

Returns: boolean

SetStatusBarColor

image

Resets the status bar color to the given color.

Parameters: color = color

SetStatusBarColorDefault

image

Sets the status bar color to the default color of the application or transparent. (Remember that the status bar color of the App Inventor Companion is dark green.)

SimCountryIso

image

Returns the ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.

Returns: text

SimOperator

image

Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.

Returns: text

SimOperatorName

image

Returns the Service Provider Name (SPN).

Returns: text

6 Likes

NICE UPDATE!

EDIT: please no judging as my caps lock was somehow on

2 Likes

@TIMAI2 Can you unlist this for a while? I think I have some bugs going on.

Sorry that I tagged you.

EDIT: Now it's OK, sorry for the inconveniences.

version 20 updated (still version 20):

  • Fixed minor bugs,

  • Installed AndroidX support and Proguard.

Even though Proguard is installed, there is still a chance that hackers will successfully decompile the extension. Please don't do that.

4 Likes

Version 21!

  • Added InstalledApplications and SetNavigationBarColor blocks.

  • Added an AIA file for you to test.

Customizer.aia (62.3 KB) to deal with colors of the device.

  • Updated first post.

Happy Chinese New Year to everyone!

7 Likes

working on google pixel 5 emulator and @Gordon_Lu's xiaomi 5g 11 ne lite. both are android 11.

3 Likes

GOOD UPDATE @Gordon_Lu!

2 Likes

Bravo!

:clap: :clap: :clap:

3 Likes

gordon, please add these items to the test list:

  • Google Pixel 5 Emulator (Android 11, API 30)

  • Google Pixel 4 Emulator (Android 10, API 29)

2 Likes

Added, thank you.

P.S.: I just tested, and the extension is working in Kodular.

1 Like

Will you not make any updates anymore @Gordon_Lu?

1 Like

I didn't decide to make any new updates yet.

3 Likes

Create extension to check:
isAutomaticDateTime = True/False
isAutomaticTimeZone = True/False please...
:pray::pray::pray::blush::blush::blush:

4 Likes

Thank you Ronald!

5 Likes

image

It is better to rename it to 'IsDarkModeActive' because it makes more sense :slight_smile:

3 Likes

Really? Is it returning this?

1 Like