Question: fetch data of settings -> General -> About

Question

fetch data of settings -> General -> About

Answers 2
Added at 2016-12-28 13:12
Tags
Question

In the about section of iOS it has a lot of information about the device.

Can I and Am I allowed to access this information?

I want to fetch data of settings -> General -> About in swift. Is it feasible to get the same in iOS ?

Answers
nr: #1 dodano: 2016-12-28 14:12

Explore UIDevice class you will get some information programmatically:

UIDevice.currentDevice()

https://developer.apple.com/reference/uikit/uidevice

nr: #2 dodano: 2016-12-28 14:12

You can get the trivial ones, but interesting ones like serial number and IMEI are restricted to system apps only.

  • Name: UIDevice.current.name [1]
  • Network: ?
  • Number of songs, videos, photos: Use MPMediaQuery, ALAssetsLibrary or PHPhotoLibrary; see [3] and related links
  • Number of apps: Private API [4].
  • Capacity / Available: NSFileManager [5]
  • OS Version: UIDevice.current.systemVersion
  • Carrier: CTTelephonyNetworkInfo.subscriberCellularProvider.carrierName [6]
  • Model: Private API
  • Serial: Jailbreaking required
  • Wi-Fi MAC: Jailbreaking required [7]
  • Bluetooth: Jailbreaking required
  • IMEI / MEID / ICCID / SEID: Jailbreaking required [8] (Also: [9] does not work)
  • Modem firmware: ?
Source Show
◀ Wstecz