### API Usage Source: https://github.com/czy1121/settingscompat/blob/master/README.md Examples of how to use the SettingsCompat API to check and manage permissions. ```java // 检测是否授权 SettingsCompat.canDrawOverlays(Context) SettingsCompat.canWriteSettings(Context) // 设置授权状态,仅在未深度定制的 Android 4.3/4.4 上可用 SettingsCompat.setDrawOverlays(Context, boolean) SettingsCompat.setWriteSettings(Context, boolean) // 跳转到悬浮窗权限设置页 SettingsCompat.manageDrawOverlays(Context) // 跳转到系统设置修改权限设置页,暂时只支持 Android 6.0+ SettingsCompat.manageWriteSettings(Context) ``` -------------------------------- ### License Source: https://github.com/czy1121/settingscompat/blob/master/README.md The Apache License, Version 2.0 for the SettingsCompat library. ```text Copyright 2016 czy1121 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` -------------------------------- ### Gradle Dependencies Source: https://github.com/czy1121/settingscompat/blob/master/README.md How to add the SettingsCompat library to your Android project using Gradle. ```groovy repositories { maven { url "https://jitpack.io" } } dependencies { compile 'com.github.czy1121:settingscompat:1.1.4' } ``` -------------------------------- ### Build Properties Source: https://github.com/czy1121/settingscompat/blob/master/roms/meizu.txt Standard Android build properties for a Meizu device. ```properties import /custom/cip-build.prop # begin build properties # autogenerated by buildinfo.sh ro.build.cta=noncta ro.meizu.build.spt=0 ro.build.id=LMY47D ro.build.mask.id=5.1-1461548116_stable ro.build.inside.id=5.1-20160425093516 ro.build.version.incremental=1461548825 ro.build.version.sdk=22 ro.build.version.codename=REL ro.build.version.all_codenames=REL ro.build.version.release=5.1 ro.build.date=Mon Apr 25 09:49:57 CST 2016 ro.build.date.utc=1461548997 ro.build.type=user ro.build.user=flyme ro.build.host=mz-builder-2 ro.build.tags=release-keys ro.build.flavor=full_meizu6753_65cn_l1-user # ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete, # use ro.product.cpu.abilist instead. ro.product.cpu.abi=arm64-v8a ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi ro.product.cpu.abilist32=armeabi-v7a,armeabi ro.product.cpu.abilist64=arm64-v8a ro.product.locale.language=zh ro.product.locale.region=CN ro.wifi.channels= ro.board.platform=mt6753 # ro.build.product is obsolete; use ro.product.device # Do not try to parse description, fingerprint, or thumbprint ro.build.characteristics=default ro.product.brand=Meizu ro.product.manufacturer=Meizu ro.build.display.id=Flyme OS 5.1.5.0A ro.product.model=m2 note ro.product.name=m2note ro.product.device=m2note ro.product.board=m2note # ro.build.product is obsolete; use ro.product.device ro.build.product=m2note # Do not try to parse ro.build.description or .fingerprint ro.build.description=meizu_m2note-user 5.1 LMY47D 1461548825 release-keys ro.build.fingerprint=Meizu/meizu_m2note/m2note:5.1/LMY47D/1461548825:user/release-keys ro.flyme.published = true # end build properties # # from device/meizu/meizu6753_65cn_l1/system.prop # # # system.prop for generic sdk # rild.libpath=mtk-ril.so rild.libargs=-d /dev/ttyC0 # MTK, Infinity, 20090720 { wifi.interface=wlan0 # MTK, Infinity, 20090720 } # MTK, mtk03034, 20101210 { ro.mediatek.wlan.wsc=1 # MTK, mtk03034 20101210} # MTK, mtk03034, 20110318 { ro.mediatek.wlan.p2p=1 # MTK, mtk03034 20110318} # MTK, mtk03034, 20101213 { mediatek.wlan.ctia=0 # MTK, mtk03034 20101213} # wifi.tethering.interface=ap0 # ro.opengles.version=196608 wifi.direct.interface=p2p0 dalvik.vm.heapgrowthlimit=256m dalvik.vm.heapsize=512m # USB MTP WHQL ro.sys.usb.mtp.whql.enable=0 # Power off opt in IPO sys.ipo.pwrdncap=2 ro.sys.usb.storage.type=mtp,mass_storage # USB BICR function ro.sys.usb.bicr=yes # USB Charge only function ro.sys.usb.charging.only=yes # audio ro.camera.sound.forced=0 ro.audio.silent=0 ro.zygote.preload.enable=0 # temporary enables NAV bar (soft keys) qemu.hw.mainkeys=1 ro.kernel.zio=38,108,105,16 #ro.kernel.qemu=1 #ro.kernel.qemu.gles=0 #ro.boot.selinux=disable # Disable dirty region for Mali debug.hwui.render_dirty_regions=false ro.sf.lcd_density=480 # performance ro.mtk_perf_simple_start_win=1 ro.mtk_perf_response_time=1 #hchua add for CTA dalvik.vm.checkjni=false # # ADDITIONAL_BUILD_PROPERTIES ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.