export async function getDeviceInfo()

in src/properties/deviceInfo.ts [24:44]


export async function getDeviceInfo(): Promise<DeviceInfo> {
  return {
    manufacturer: {
      value: await DeviceInfo.getManufacturer(),
      dataType: 'string',
    },
    model: {value: DeviceInfo.getModel(), dataType: 'string'},
    swVersion: {value: DeviceInfo.getSystemVersion(), dataType: 'string'},
    osName: {value: DeviceInfo.getSystemName(), dataType: 'string'},
    totalStorage: {
      value: await DeviceInfo.getTotalDiskCapacity(),
      dataType: 'bytes',
    },
    totalMemory: {value: await DeviceInfo.getTotalMemory(), dataType: 'bytes'},
    processorArchitecture: {
      value: (await DeviceInfo.supportedAbis())[0],
      dataType: 'string',
    },
    processorManufacturer: {value: 'unknown', dataType: 'string'},
  };
}