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: 152
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: 1796
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
Post Reply