[APP] Peace of Mind+, Fairphone fork

Did you buy a Fairphone

  • Yes!

    Votes: 38 53.5%
  • No, wasn't interested

    Votes: 14 19.7%
  • No, shipping to EU only

    Votes: 0 0.0%
  • No, hadn't heard about it

    Votes: 19 26.8%

  • Total voters
    71
Search This thread

Unrelashade

Senior Member
Sep 7, 2009
156
47
Thank you for this amazing app, it's well designed and offers good functionality.
A feature request : I usually put my phone into airplane plane mode at night, is there anyway this process can be automated such that it switches to airplane mode at a particular time?
Thanks again for the app :)

Sent from my Nexus 4 using Tapatalk

You can probably use software e.g. an app like Tasker. I agree that a nice feature request is a "start time" and "end time" though, as you could also set it up for times more than an hour and recurring times. Like Cyanogenmod's silent hours. Maybe there's a code libraby/ template for stuff like this?
 

Dede525

Senior Member
Jul 6, 2012
131
35
@op what about compatibility with older version of android? I've got my FP but also an older phone, that I'm using sometime, with android 2.3.... any chance to have this app on 2.3.x as well?
 
Last edited:

mudar1771

Senior Member
Mar 21, 2011
58
88
Montréal
www.mudar.ca
@op what about compatibility with older version of android? I've got my FP but also an older phone, that I'm using sometime, with android 2.3.... any chance to have this app on 2.3.x as well?

Sorry, but no plans for 2.3 compatibility :(

PeaceOfMind+ started as a fork of Fairphone's PeaceOfMind, which was intended to run only on the fairphone: screen resolution, android version, system app, etc.
So working with that code I tried to make it compatible with other devices. The original app was for Android 4.1 (API 16), so I added support for 4.0+ (API 14). Initially I thought it would only need some UI changes, but I had to handle non-rooted phones and fix too many bugs. And the code quality was not that great.

So to me it's difficult to justify the amount of changes (and time!) required to add support for 2.3, especially for what was supposed to be a simple Fork.
 
  • Like
Reactions: Dede525

Unrelashade

Senior Member
Sep 7, 2009
156
47
Hi Mudar, didn't you plan to release it/ have it released on free software appstore f-droid also? That would be really nice still!
Regards
 

mudar1771

Senior Member
Mar 21, 2011
58
88
Montréal
www.mudar.ca
Update, version 2.1.0

Hi all,

More than 3 years later, I have updated the app to support native Do not disturb mode, along with Material design and other fun stuff.

Changelog and screenshots in the first post, or on Github. App is also available on Google Play.
 

Phant19

Member
Aug 6, 2018
7
3
Hidden Airplane Mode?

Hi!

I've found this app yesterday on F-Droid and installed it right away (V2.1.1) as I know the original software already from my FP1. So now, on my FP2, it looks good and works, BUT: There isn't any Airplane Mode available.
Fairphone Open 18.04.1 (Android 6.0.1) is running and "root access" is generally enabled for apps in the Developer settings. I've also uninstalled and reinstalled the app again. No change.

Is there any tweak to enable the Airplane Mode support? Could another app disturb the detection of root access (I have XPrivacy and GravityBox running as system-near apps)?

Thanks for any hints.
Phant
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Hi,

    I have forked one of the app's released on GitHub by Fairphone/Kwamecorp, the Peace of Mind app. It's bascially an Airplane Mode with a timer.

    We become more conscious of our phones as our lives become increasingly connected. Would you like to disconnect, if only for a moment? Your phone will go silent and disconnect from the world: no e-mail, no status updates, no SMS and no phone calls. Choose how long you wish to disconnect (up to 12 hours).

    I'm not sure if they're planning on publishing it as a standalone app (currently a system-app), so I've forked into Peace of Mind+ to make it available for other devices and for eager Fairphone owners!

    Released under the Apache License version 2.0. Source code and APK are available here https://github.com/mudar/Fairphone

    For Android 4.2+ devices, the app requiers Root privileges to enable the Airplane Mode. On non-rooted phones (or if SU is declined) the app enables Silent Mode instead. This is due to security changes introduced by Google in Android SDK version 17.

    Attached are two screen captures and the APK.

    When done, I hope to refactor the Fairphone OS launcher.

    Read article on XDA's portal :eek:
    Put Airplane Mode on a Schedule with Peace of Mind+ by @willverduzco

    Download:
    Check GitHub for the lastest version and version release history

    Changelog:
    versionCode=18 versionName=2.1.0
    • Updated to Material Design
    • Added support for Android's "Do not disturb" mode
    • Optimizations, clean animation, etc..
    • Airplane mode support for rooted devices

    versionCode=12 versionName=1.2
    • Restore sound to previous setting (bug fix)
    • RootTools updated to version 3.4

    versionCode=10 versionName=1.1
    • Enhanced tablet layout
    • Fixed bug for some Android 4.3 devices

    versionCode=8 versionName=1.0
    • Out of beta!
    • Improved Widget layout
    • DashClock extension added
    • Restores previous ringerMode at the end of an Airplane-mode PeaceOfMind
    • Added About dialog (in Settings)
    • Added Brazilian-Portuguese and Russian translations, and completed other translations
    Click below to view complete changelog...
    versionCode=6 versionName=0.9.4 beta
    • Fixed deep-sleep bug
    • Improved timer accuracy
    • Fixed videoplayback issue on some devices
    versionCode=5 versionName=0.9.3 beta
    • Nightly, fixing the deep-sleep bug.
    versionCode=4 versionName=0.9.2 beta
    • AirplaneMode enables SilentMode too, to avoid notifications
    • Fixed SilentMode issue (would trigger AirplaneMode on some android versions)
    • Fixed video animation playback issue
    • Fixed minor timer issue (was running an extra minute)
    versionCode=3 versionName=0.9.1 beta
    • Settings to determine maximum duration (3, 6 or 12 hours) and disconnection mode (Airplane/Silent mode)
    • Fixed layout issues and optimization!
    3
    I knocked up an F-Droid recipe, which you may want to push to them. I used RootTools 3.4 because 3.3 is known to have problems compiling and preferred to build it from source since there is no official binary of 3.3 to compare yours with. Note that XDA has misinterpreted the text in the for the Categories value!
    Code:
    diff --git a/metadata/ca.mudar.fairphone.peaceofmind.txt b/metadata/ca.mudar.fairphone.peaceofmind.txt
    new file mode 100644
    index 0000000..0a68fa6
    --- /dev/null
    +++ b/metadata/ca.mudar.fairphone.peaceofmind.txt
    @@ -0,0 +1,40 @@
    +Categories:eek:ffice
    +License:Apache2
    +Web Site:http://fairphone.mudar.ca
    +Source Code:https://github.com/mudar/Fairphone
    +Issue Tracker:https://github.com/mudar/Fairphone/issues
    +
    +Auto Name:Peace of Mind+
    +Summary:Widget to quiet the phone
    +Description:
    +Based-on a widget that comes with the [http://fairphone.com Fairphone],
    +a phone that's made from ethically-sourced materials.
    +
    +Would you like to disconnect, if only for a moment? 
    +Your phone will go silent and disconnect from the world: no e-mail, no status 
    +updates, no SMS and no phone calls. 
    +Choose how long you wish to disconnect (up to 3 hours).
    +
    +Requires root on Android 4.2+ to put the phone in Airplane Mode; if 
    +the request is declined only Silent Mode will be enabled instead.
    +.
    +
    +Repo Type:git
    +Repo:https://github.com/mudar/Fairphone
    +
    +Build:1.0,8
    +    commit=36fd2aeb73
    +    subdir=FairphonePeaceOfMind
    +    gradle=defaultFlavor
    +    [email protected]
    +    rm=FairphonePeaceOfMind/libs/RootTools-3.3.jar
    +    prebuild=sed -i "/^    compile files/d" build.gradle && \
    +             sed -i "37 i \ \ \ \ compile project(':RootTools-new')" build.gradle && \
    +             echo "include ':RootTools-new'" >> ../settings.gradle && \
    +             ln -s $(readlink -f $$RootTools-new$$) ../RootTools-new
    +
    +Auto Update Mode:None
    +Update Check Mode:RepoManifest
    +Current Version:1.0
    +Current Version Code:8
    +
    diff --git a/srclibs/RootTools-new.txt b/srclibs/RootTools-new.txt
    new file mode 100644
    index 0000000..0925f35
    --- /dev/null
    +++ b/srclibs/RootTools-new.txt
    @@ -0,0 +1,3 @@
    +Repo Type:git
    +Repo:https://github.com/Stericson/RootTools
    +Subdir:RootTools/RootTools
    2
    @mudar1488 ...finally, your improved app is on the XDA portal :victory: Congrats!
    1
    Nice to see you working on that!

    Maybe you'd like to submit it to f-droid? That'd be great!
    www.f-droid.org

    @Unrelashade I'll definitly submit the app to F-Droid when out of beta!
    1
    @op what about compatibility with older version of android? I've got my FP but also an older phone, that I'm using sometime, with android 2.3.... any chance to have this app on 2.3.x as well?

    Sorry, but no plans for 2.3 compatibility :(

    PeaceOfMind+ started as a fork of Fairphone's PeaceOfMind, which was intended to run only on the fairphone: screen resolution, android version, system app, etc.
    So working with that code I tried to make it compatible with other devices. The original app was for Android 4.1 (API 16), so I added support for 4.0+ (API 14). Initially I thought it would only need some UI changes, but I had to handle non-rooted phones and fix too many bugs. And the code quality was not that great.

    So to me it's difficult to justify the amount of changes (and time!) required to add support for 2.3, especially for what was supposed to be a simple Fork.