{"id":16101138,"url":"https://github.com/vanco/deviceowner","last_synced_at":"2025-04-06T00:26:43.274Z","repository":{"id":94039132,"uuid":"114531428","full_name":"Vanco/DeviceOwner","owner":"Vanco","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-17T08:16:02.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:38:28.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Vanco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2017-12-17T11:38:46.000Z","updated_at":"2019-03-17T08:16:04.000Z","dependencies_parsed_at":"2023-04-24T11:32:36.996Z","dependency_job_id":null,"html_url":"https://github.com/Vanco/DeviceOwner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanco%2FDeviceOwner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanco%2FDeviceOwner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanco%2FDeviceOwner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanco%2FDeviceOwner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vanco","download_url":"https://codeload.github.com/Vanco/DeviceOwner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419641,"owners_count":20936009,"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":[],"created_at":"2024-10-09T18:49:12.481Z","updated_at":"2025-04-06T00:26:43.250Z","avatar_url":"https://github.com/Vanco.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nDeviceOwner\n===================================\n\nAs a device owner, you can configure global settings such as automatic time and timezone. \nYou can mandate a specific launcher by preferred intent handler.\n\nIntroduction\n------------\n\nIn order to set global settings, use [DevicePolicyManager#setGlobalSetting][1] and specify one of\nthe [Settings.Global][2] keys available. Note that you need to specify its value as a String. As\nmost of the keys accept boolean values, you will mostly use \"1\" for true and \"0\" for false.\n\nYou can mandate a specific launcher by adding a persistent preferred activity for an IntentFilter\nwith Intent.CATEGORY_HOME category. Call [DevicePolicyManager#addPersistentPreferredActivity][3] to\nregister the activity. You can clear the registration with\n[clearPackagePersistentPreferredActivities][4].\n\nAs a device owner, you can also use the features available for managed profile owner. See\n[BasicManagedProfile][5].\n\n[1]: http://developer.android.google.cn/reference/android/app/admin/DevicePolicyManager.html#setGlobalSetting(android.content.ComponentName, java.lang.String, java.lang.String)\n[2]: http://developer.android.google.cn/reference/android/provider/Settings.Global.html\n[3]: http://developer.android.google.cn/reference/android/app/admin/DevicePolicyManager.html#addPersistentPreferredActivity(android.content.ComponentName, android.content.IntentFilter, android.content.ComponentName)\n[4]: http://developer.android.google.cn/reference/android/app/admin/DevicePolicyManager.html#clearPackagePersistentPreferredActivities(android.content.ComponentName, java.lang.String)\n[5]: https://developer.android.google.cn/samples/BasicManagedProfile/index.html\n\nPre-requisites\n--------------\n\n- Android SDK 26\n- Android Build Tools v26.0.1\n- Android Support Repository\n\nScreenshots\n-------------\n\n\u003cimg src=\"screenshots/1-main.png\" height=\"400\" alt=\"Screenshot\"/\u003e \n\nGetting Started\n---------------\n\nThis sample uses the Gradle build system. To build this project, use the\n\"gradlew build\" command or use \"Import Project\" in Android Studio.\n\nSupport\n-------\n\n- Google+ Community: https://plus.google.com/communities/105153134372062985968\n- Stack Overflow: http://stackoverflow.com/questions/tagged/android\n\nIf you've found an error in this sample, please file an issue:\nhttps://github.com/googlesamples/android-DeviceOwner\n\nPatches are encouraged, and may be submitted by forking this project and\nsubmitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.\n\nInstall\n-------\n1. install the DOwner-${version}-release.apk\n2. Set device owner\n    adb shell dpm set-device-owner van.owner/.DeviceOwnerReceiver\n\n\nLicense\n-------\n\nCopyright 2017 The Android Open Source Project, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanco%2Fdeviceowner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanco%2Fdeviceowner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanco%2Fdeviceowner/lists"}