Git Product home page Git Product logo

silentnight's People

Contributors

soutade avatar yankovskiy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

silentnight's Issues

App stops when screen is rotated

App stops when a screen is rotated. Tested on

  • Tablet GT-P5100 with CyanogenMod 11 (last available nightly)
  • Phone XT894 with CyanogenMod 12.1 (nightly)

Does not activate until the screen is unlocked by the user

SilentNight v.0.3 as found in F-Droid does not activate the Airplane mode on/off until I unlock the screen manually. As soon as I unlock it, I can see the message about the permissions granted to SilentNight and the Airplane mode state is changed according to the settings.
I am not sure, but maybe, SilentNight cannot wake the phone by itself, and therefore it just waits until the user wakes it?
My system is CyanogenMod 11 (Android 4.4.4)

Приложение падает при активации режима в "самолете"

Устройство: Nexus 4 (mako)

Стек:
java.lang.RuntimeException: Unable to create service ru.neverdark.silentnight.DisableSoundService: java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2582)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS
at android.os.Parcel.readException(Parcel.java:1465)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
at android.content.ContentProviderProxy.call(ContentProviderNative.java:636)
at android.provider.Settings$NameValueCache.putStringForUser(Settings.java:901)
at android.provider.Settings$Global.putStringForUser(Settings.java:6008)
at android.provider.Settings$Global.putString(Settings.java:5998)
at android.provider.Settings$Global.putInt(Settings.java:6086)
at ru.neverdark.silentnight.AirplaneMode.setSettings(AirplaneMode.java:92)
at ru.neverdark.silentnight.AirplaneMode.updateSystemSettings(AirplaneMode.java:59)
at ru.neverdark.silentnight.AirplaneMode.enable(AirplaneMode.java:41)
at ru.neverdark.silentnight.DisableSoundService.enableAirplaneMode(DisableSoundService.java:67)
at ru.neverdark.silentnight.DisableSoundService.onCreate(DisableSoundService.java:44)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2572)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.