{"id":3613,"url":"https://github.com/nisrulz/easydeviceinfo","last_synced_at":"2025-04-11T11:46:52.454Z","repository":{"id":37927202,"uuid":"58121109","full_name":"nisrulz/easydeviceinfo","owner":"nisrulz","description":":iphone: [Android Library] Get device information in a super easy way.","archived":false,"fork":false,"pushed_at":"2024-07-12T18:42:56.000Z","size":2446,"stargazers_count":1769,"open_issues_count":10,"forks_count":227,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-04-03T11:07:17.119Z","etag":null,"topics":["android","android-library","annotations","battery","bluetooth","cpu","details","device","display","easydeviceinfo","identifier","information","library","location","memory","mod","network","nfc","sensor","telephony"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nisrulz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nisrulz","ko_fi":"nisrulz","buy_me_a_coffee":"nisrulz","custom":["https://revolut.me/nisrulz","https://www.paypal.me/nisrulz/5eur"]}},"created_at":"2016-05-05T09:48:09.000Z","updated_at":"2025-02-21T22:56:04.000Z","dependencies_parsed_at":"2024-12-25T21:05:02.275Z","dependency_job_id":"ac3acf07-3232-41c7-a1e6-ea0c20506854","html_url":"https://github.com/nisrulz/easydeviceinfo","commit_stats":{"total_commits":206,"total_committers":6,"mean_commits":"34.333333333333336","dds":0.07281553398058249,"last_synced_commit":"75704fd7e7421443aab591c8274d588e5b6260d1"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisrulz%2Feasydeviceinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisrulz%2Feasydeviceinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisrulz%2Feasydeviceinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisrulz%2Feasydeviceinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nisrulz","download_url":"https://codeload.github.com/nisrulz/easydeviceinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248388205,"owners_count":21095353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","annotations","battery","bluetooth","cpu","details","device","display","easydeviceinfo","identifier","information","library","location","memory","mod","network","nfc","sensor","telephony"],"created_at":"2024-01-05T20:16:46.427Z","updated_at":"2025-04-11T11:46:52.421Z","avatar_url":"https://github.com/nisrulz.png","language":"Java","funding_links":["https://github.com/sponsors/nisrulz","https://ko-fi.com/nisrulz","https://buymeacoffee.com/nisrulz","https://revolut.me/nisrulz","https://www.paypal.me/nisrulz/5eur","https://www.paypal.me/nisrulz/5"],"categories":["Utility","Java","Libraries","Libs"],"sub_categories":["Utility","\u003cA NAME=\"Utility\"\u003e\u003c/A\u003eUtility"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"img/logo_color.png\" height=\"128\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eEasyDeviceInfo \u003ca href=\"https://twitter.com/intent/tweet?text=EasyDeviceInfo%3A%20Android%20library%20to%20get%20device%20information%20in%20a%20super%20easy%20way%F0%9F%98%8E\u0026url=https://github.com/nisrulz/easydeviceinfo\u0026via=nisrulz\u0026hashtags=AndroidDev\"\u003e\n        \u003cimg src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=social\"/\u003e\n    \u003c/a\u003e\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eAndroid library to get device information in a super easy way.\u003c/strong\u003e\n  \u003cp\u003eThe library is built for simplicity and approachability. It not only eliminates most boilerplate code for dealing with device information, but also provides an easy and simple API to retrieve them\u003c/p\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003c!-- Bintray --\u003e\n    \u003ca href=\"https://bintray.com/nisrulz/maven/com.github.nisrulz%3Aeasydeviceinfo/_latestVersion\"\u003e\n        \u003cimg src=\"https://api.bintray.com/packages/nisrulz/maven/com.github.nisrulz%3Aeasydeviceinfo/images/download.svg\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- API --\u003e\n    \u003ca href=\"https://android-arsenal.com/api?level=14\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/API-14%2B-orange.svg?style=flat\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- Android Arsenal --\u003e\n    \u003ca href=\"https://android-arsenal.com/details/1/3562\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Android%20Arsenal-EasyDeviceInfo-green.svg?style=true\"/\u003e\n    \u003c/a\u003e\n     \u003c!-- Android Dev Digest --\u003e\n    \u003ca href=\"https://www.androiddevdigest.com/digest-99/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/AndroidDev%20Digest-%2399-blue.svg\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- Android Weekly --\u003e\n    \u003ca href=\"http://androidweekly.net/issues/issue-209\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Android%20Weekly-%23209-blue.svg\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- Awesome Android --\u003e\n    \u003ca href=\"https://snowdream.github.io/awesome-android/Other.html#Utility\"\u003e\n        \u003cimg src=\"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- GitHub stars --\u003e\n    \u003ca href=\"https://github.com/nisrulz/easydeviceinfo\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/stars/nisrulz/easydeviceinfo.svg?style=social\u0026label=Star\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- GitHub forks --\u003e\n    \u003ca href=\"https://github.com/nisrulz/easydeviceinfo/fork\"\u003e\n        \u003cimg src=\"hhttps://img.shields.io/github/forks/nisrulz/easydeviceinfo.svg?style=social\u0026label=Fork\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- GitHub watchers --\u003e\n    \u003ca href=\"https://github.com/nisrulz/easydeviceinfo\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/watchers/nisrulz/easydeviceinfo.svg?style=social\u0026label=Watch\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- Say Thanks! --\u003e\n    \u003ca href=\"https://saythanks.io/to/nisrulz\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.paypal.me/nisrulz/5\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026amp;style=flat\"\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n     \u003c!-- GitHub followers --\u003e\n    \u003ca href=\"https://github.com/nisrulz/easydeviceinfo\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/followers/nisrulz.svg?style=social\u0026label=Follow%20@nisrulz\"/\u003e\n    \u003c/a\u003e\n    \u003c!-- Twitter Follow --\u003e\n    \u003ca href=\"https://twitter.com/nisrulz\"\u003e\n        \u003cimg src=\"https://img.shields.io/twitter/follow/nisrulz.svg?style=social\"/\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    Also featured in\n    \u003ca href=\"https://android.libhunt.com/newsletter/9\"\u003e\n        Awesome Android Newsletter #Issue 9\n    \u003c/a\u003e, \n    \u003ca href=\"http://email.changelog.com/t/t-C0123E3CCEDED6A6\"\u003e\n        Changelog Weekly Issue #114\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤︎ by\n  \u003ca href=\"https://twitter.com/nisrulz\"\u003eNishant Srivastava\u003c/a\u003e and\n  \u003ca href=\"https://github.com/nisrulz/easydeviceinfo/graphs/contributors\"\u003e\n    contributors\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n#### **Note**\nEasyDeviceInfo is split into multiple module-libraries , v2.2.0 onwards. Use the appropriate one as per your requirement.\n\n+  `easydeviceinfo`\n    - Main library which transitively includes both `easydeviceinfo-ads` and `easydeviceinfo-base`.\n\n+ `easydeviceinfo-ads`\n    -  EasyDeviceInfo Ads, which facilitates information regarding ads. Has a dependency on `play-services-base`.\n    -  **Supported Mods**\n        + [EasyAdsMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easyadsmod)\n+ `easydeviceinfo-base`\n    -  EasyDeviceInfo Base, which facilitates information regarding the device.\n    -  **Supported Mods**\n        + [EasyAppMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easyappmod)\n        + [EasyBatteryMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easybatterymod)\n        + [EasyBluetoothMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easybluetoothmod)\n        + [EasyConfigMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easyconfigmod)\n        + [EasyCpuMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easycpumod)\n        + [EasyDeviceMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easydevicemod)\n        + [EasyDisplayMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easydisplaymod)\n        + [EasyIdMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easyidmod)\n        + [EasyLocationMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easylocationmod)\n        + [EasyMemoryMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easymemorymod)\n        + [EasyNetworkMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easynetworkmod)\n        + [EasyNfcMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easynfcmod)\n        + [EasySimMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easysimmod)\n        + [EasySensorMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easysensormod)\n        + [EasyFingerprintMod](https://github.com/nisrulz/easydeviceinfo/wiki/Usage#easyfingerprintmod)\n\n# Changelog\n\nStarting with `1.1.8`, Changes exist in the [releases tab](https://github.com/nisrulz/easydeviceinfo/releases).\n\n# Including in your project\nEasyDeviceInfo is available in the Jcenter, so getting it as simple as adding it as a dependency.\n\n```gradle\ndependencies {\n    def easyDeviceInfoVersion = {latest version}\n\n    // Base + Ads Bundled Library\n    implementation \"com.github.nisrulz:easydeviceinfo:$easyDeviceInfoVersion\"\n\n    // Base Composite\n    implementation \"com.github.nisrulz:easydeviceinfo-base:$easyDeviceInfoVersion\"\n\n    // Ads Composite\n    implementation \"com.github.nisrulz:easydeviceinfo-ads:$easyDeviceInfoVersion\"\n}\n\n```\n\nwhere `{latest version}` corresponds to published version in Jcenter\n+ `easydeviceinfo` - [ ![Jcenter](https://api.bintray.com/packages/nisrulz/maven/com.github.nisrulz%3Aeasydeviceinfo/images/download.svg) ](https://bintray.com/nisrulz/maven/com.github.nisrulz%3Aeasydeviceinfo/_latestVersion)\n+\t`easydeviceinfo-ads` - [ ![Jcenter](https://api.bintray.com/packages/nisrulz/maven/easydeviceinfo-ads/images/download.svg) ](https://bintray.com/nisrulz/maven/easydeviceinfo-ads/_latestVersion)\n+\t`easydeviceinfo-base` - [ ![Jcenter](https://api.bintray.com/packages/nisrulz/maven/easydeviceinfo-base/images/download.svg) ](https://bintray.com/nisrulz/maven/easydeviceinfo-base/_latestVersion)\n\n# Usage Docs/Wiki\n\nIntroducing **Mods** in **EasyDeviceInfo v2**!\n\n ***Mods*** or ***Modules*** are the new way to retrieve information. They let you get information in a very segmented manner and the best part is you only initialize the Mods you need in your project. Pretty rad , eh ?  I know.\n\n\u003e The whole api has been reworked in v2.x.x , however the functions remain the same, hence now you need to migrate to v2.x.x from 1.x.x.\n\n### Simple example\n\nNow to use them, create an instance of one of the Mods ( **Easy\\*Mod** class ), i.e `EasyConfigMod`\n```java\nEasyConfigMod easyConfigMod = new EasyConfigMod(context);\n```\nNext call an available function on the ***easyConfigMod*** instance such as\n```java\nString time_in_ms= String.valueOf(easyConfigMod.getTime());\n```\n\nNow each **Mods** has a certain set of functions you can call on them to retrieve device information. i.e for  **EasyConfigMod**\n\n|Value|functionName|returns\n|---|---|---|\n|Is running on emulator|`isRunningOnEmulator()`|boolean\n|Time (ms)|`getTime()`|long\n|Formatted Time (24Hr)|`getFormattedTime()`|String\n|Up Time (ms)|`getUpTime()`|long\n|Formatted Up Time (24Hr)|`getFormattedUpTime()`|String\n\n#### Android Studio support\n+ Include a required permission check\n  \n  ![PermissionCheck](img/permissioncheck.gif)\n\n+ Setup all constants returned in a switch statement\n  \n  ![SetupSwitch](img/usingintedefs.gif)\n  \n  This applies to all annotations bundled with easydeviceinfo. Checkout the wiki to see where these annotations can be applied.\n  + `@RingerMode`\n  + `@DeviceType`\n  + `@PhoneType`\n  + `@OrientationType`\n  + `@NetworkType`\n  + `@BatteryHealth`\n  + `@ChargingVia`\n\n### :page_with_curl: For more info , check the **[Wiki Docs](https://github.com/nisrulz/easydeviceinfo/wiki/Usage)**\n\n# Pull Requests\nI welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:\n  1. Match coding style (braces, spacing, etc.) This is best achieved using CMD+Option+L (Reformat code) on Mac (not sure for Windows) with Android Studio defaults. This project uses a [modified version of Grandcentrix's code style](https://github.com/nisrulz/AndroidCodeStyle/tree/nishant-config), so please use the same when editing this project.\n  2. If its a feature, bugfix, or anything please only change code to what you specify.\n  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)\n  4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.\n  5. Check for existing [issues](https://github.com/nisrulz/easydeviceinfo/issues) first, before filing an issue.  \n  6. Have fun!\n\n## Apps using EasyDeviceInfo\nIf you are using EasyDeviceInfo in your app and would like to be listed here, please let me know by opening a [new issue](https://github.com/nisrulz/easydeviceinfo/issues/new)!\n\n * EasyDeviceInfo - [Playstore](https://play.google.com/store/apps/details?id=in.excogitation.deviceinfo)\n * System Tweaker - [Playstore](https://play.google.com/store/apps/details?id=com.nowenui.systemtweaker), [Github](https://github.com/AlexanderKirillov/System-Tweaker-FREE)\n\n [Other apps using EasyDeviceInfo, via AppBrain Stats](https://www.appbrain.com/stats/libraries/details/easydeviceinfo/easydeviceinfo)\n\n## Author \u0026 support\nThis project was created by [Nishant Srivastava](https://github.com/nisrulz/nisrulz.github.io#nishant-srivastava) but hopefully developed and maintained by many others. See the [the list of contributors here](https://github.com/nisrulz/easydeviceinfo/graphs/contributors).\n\n\u003e If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal:\n\u003e  + [PayPal](https://www.paypal.me/nisrulz/5)\n\u003e  + Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL\n\u003e\n\u003e I love using my work and I'm available for contract work. Freelancing helps to maintain and keep [my open source projects](https://github.com/nisrulz/) up to date!\n\n\u003cimg src=\"http://forthebadge.com/images/badges/built-for-android.svg\" /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisrulz%2Feasydeviceinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnisrulz%2Feasydeviceinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisrulz%2Feasydeviceinfo/lists"}