get value from android os data

Discussions about creating CAPI applications to run on Android devices
Post Reply
provogrammer2
Posts: 7
Joined: December 6th, 2022, 8:42 am

get value from android os data

Post by provogrammer2 »

Hi,

How to get information from android data, for example I want to get android.os.Build.MANUFACTURER, how to get it using systemapp or other function in cspro if possible?

Thanks in advance,
justinlakier
Posts: 160
Joined: November 21st, 2022, 4:41 pm

Re: get value from android os data

Post by justinlakier »

Hello,

CSPro's GetOS Function can return the name, version, and build of the OS. It does not return more detailed information such as the manufacturer. CSPro does support integration of JavaScript, and JavaScript can support finding the manufacturer of a device. This StackOverflow post contains a few different possible ways to find the manufacturer in JavaScript.

Hope this helps,
Justin
Gregory Martin
Posts: 1803
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: get value from android os data

Post by Gregory Martin »

If you are using paradata, you can query the paradata log. That Build.MANUFACTURER value is logged in the device_info table, device_manufacturer column.

You can query the paradata log using the paradata function, or the Sqlite.exec action:

https://www.csprousers.org/help/CSPro/C ... _exec.html
https://www.csprousers.org/help/CSPro/C ... adata.html
https://www.csprousers.org/help/CSPro/p ... ction.html
adam anbar
Posts: 3
Joined: May 12th, 2024, 2:33 pm

Re: get value from android os data

Post by adam anbar »

Hi,

To get the android.os.Build.MANUFACTURER value in CSPro, you can utilize the device_info table in the paradata log as Gregory Martin mentioned. This is a reliable way to access the manufacturer's information without needing additional JavaScript integrations. Just follow the links Gregory provided for detailed guidance on using the paradata function and Sqlite.exec action.
Post Reply