FORUMS
Remove All Ads from XDA

 View Poll Results: Did you buy a Fairphone

Yes!
 
38 Vote(s)
53.52%
No, wasn't interested
 
14 Vote(s)
19.72%
No, shipping to EU only
 
0 Vote(s)
0%
No, hadn't heard about it
 
19 Vote(s)
26.76%

[APP] Peace of Mind+, Fairphone fork

58 posts
Thanks Meter: 81
 
Post Reply Email Thread
24th January 2014, 09:03 PM |#21  
benkxda's Avatar
Recognized Contributor
Thanks Meter: 3,667
 
More
Quote:
Originally Posted by mudar1488

Thanks @benkxda! Did you try-out the v07a and v07b versions (attached here)? the latter doesn't play video and they both use ugly colors to try to understand what zone/element holds the strange pixels!

However, I do suspect an issue with the custom ROM or the custom DPI value used

Quote:
Originally Posted by mudar1488

APK and Changelog are provided in the OP. Peace of Mind+ is also available on the Playstore.

Out of beta now so future updates will mainly be bug-fixes. Your feedback/suggestions/comments are most welcome!

Thanks,
mudar

Screenshots of Version 7A and 7B. Pixels still appearing. No change with Version 8. However, it's not hurting.

Version 7 A


Version 7 B


Version 8


I tried 7A and 7B without the enabled software navbar, also with the native DPI @ 320 dpi. Nothing changed there, as well.


Quote:

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

What's that? Why did you strike that? I don't mind if you would touch that as well


EDIT:
Upgraded the S3 LTE to CM11 (Android 4.4.2). Regardless to software navbar and dpi settings - it just works now. So forget this problem on (maybe all ROMs with) Android 4.4.2.
But you could update the Help page, it's up to 12 hours now, what is really great.
 
 
26th January 2014, 12:24 AM |#22  
mudar1771's Avatar
OP Member
Flag Montréal
Thanks Meter: 81
 
More
Hi @benkxda,

Here attached is a new version that should fix the weird-pixels problem

Quote:
Originally Posted by benkxda

It has Android 4.3.1 running, CM10.2 nightly (set to 280 ppi).

I've installed CM 10.2 / Android 4.3.1 on my Galaxy Tab 10.1 and I had the same issue you reported. I've attached screenshots of the bug (yours) and of my build info.

So, the bug was related to the textShadow. It's very strange because it's not the only textView that has shadow. And the fix was adding some padding to right of the text! Bug fixed on my device, can you confirm it's fixed on your S3?

Quote:
Originally Posted by benkxda

When done, I hope to refactor the Fairphone OS launcher.
What's that? Why did you strike that? I don't mind if you would touch that as well

Working on PoM, I was very surprised by the buggy (and low quality) source code. When I first compiled/ran the launcer, it had many errors too. So I think it's too much work! Another selfish reason is that I hate edge-swipe since I use my phone with a gel case, so I've already replaced the launcher on my Fairphone and I don't think I'll be using it on another phone. Sorry

However, someone has already forked it on the playstore
Attached Thumbnails
Click image for larger version

Name:	ROM version.png
Views:	70
Size:	48.0 KB
ID:	2539179   Click image for larger version

Name:	screenshot_2014-01-1621kdo.png
Views:	69
Size:	222.1 KB
ID:	2539180  
Attached Files
File Type: apk PeaceOfMind-v09.apk - [Click for QR Code] (1.12 MB, 17 views)
The Following User Says Thank You to mudar1771 For This Useful Post: [ View ] Gift mudar1771 Ad-Free
26th January 2014, 01:52 AM |#23  
benkxda's Avatar
Recognized Contributor
Thanks Meter: 3,667
 
More
Quote:
Originally Posted by mudar1488

Hi @benkxda,

Here attached is a new version that should fix the weird-pixels problem



I've installed CM 10.2 / Android 4.3.1 on my Galaxy Tab 10.1 and I had the same issue you reported. I've attached screenshots of the bug (yours) and of my build info.

So, the bug was related to the textShadow. It's very strange because it's not the only textView that has shadow. And the fix was adding some padding to right of the text! Bug fixed on my device, can you confirm it's fixed on your S3?



Working on PoM, I was very surprised by the buggy (and low quality) source code. When I first compiled/ran the launcer, it had many errors too. So I think it's too much work! Another selfish reason is that I hate edge-swipe since I use my phone with a gel case, so I've already replaced the launcher on my Fairphone and I don't think I'll be using it on another phone. Sorry

However, someone has already forked it on the playstore


While I was editing my old post, you posted a new one...

Quote:

Upgraded the S3 LTE to CM11 (Android 4.4.2). Regardless to software navbar and dpi settings - it just works now. So forget this problem on (maybe all ROMs with) Android 4.4.2.
But you could update the Help page, it's up to 12 hours now, what is really great.

I upgraded about 11 hours ago and I won't go back now.
But I used my girlfriend's Samsung Galaxy Note 2 (GT-N7100) with Samsung stock firmware Android 4.3 (unrooted). Also got these strange pixels, but also only on the right side, like yours and mine.

How did you get your Fairphone btw.? I thought it's only available in Europe

Do I understand right, the source for PoM as provided was not able to be compiled? Obviously the app within Fairphone OS was able to be compiled so there is a difference, right?

We have the dev of the Fairphone launcher in the Fairphone thread, I'll ask him if he wants to do improvements on it.


EDIT:
The device of my girlfriend is set to German language. Now I saw the German version the first time, haha. The text is longer but as far as I read, it was good.
26th January 2014, 06:01 PM |#24  
mudar1771's Avatar
OP Member
Flag Montréal
Thanks Meter: 81
 
More
Quote:
Originally Posted by benkxda

But I used my girlfriend's Samsung Galaxy Note 2 (GT-N7100) with Samsung stock firmware Android 4.3 (unrooted). Also got these strange pixels, but also only on the right side, like yours and mine.

So does PeaceOfMind-v09.apk (version 1.1) still have the strange pixels on the Galaxy Note 2? meaning that the problem is still not fixed?

Quote:
Originally Posted by benkxda

How did you get your Fairphone btw.? I thought it's only available in Europe

I had my Fairphone shipped at a friend's who was planning to come to Montreal in January

Quote:
Originally Posted by benkxda

Do I understand right, the source for PoM as provided was not able to be compiled? Obviously the app within Fairphone OS was able to be compiled so there is a difference, right?

Hmm... not what I meant. The source compiled fine, there's probably no difference between the source-code and the version shipped on the Fairphone.

What I meant is that the quality of the code was lower than I expected, with some serious bugs that should never have shipped.
Also, the app was not built to support Android's different screen sizes and resolutions , which requires lots of work before making it available for devices other than the Fairphone.
I don't know the time or the resources they had to build these apps, but the source-code is... not very inviting!
26th January 2014, 07:24 PM |#25  
benkxda's Avatar
Recognized Contributor
Thanks Meter: 3,667
 
More
Quote:
Originally Posted by mudar1488

So does PeaceOfMind-v09.apk (version 1.1) still have the strange pixels on the Galaxy Note 2? meaning that the problem is still not fixed?


I had my Fairphone shipped at a friend's who was planning to come to Montreal in January


Hmm... not what I meant. The source compiled fine, there's probably no difference between the source-code and the version shipped on the Fairphone.

What I meant is that the quality of the code was lower than I expected, with some serious bugs that should never have shipped.
Also, the app was not built to support Android's different screen sizes and resolutions , which requires lots of work before making it available for devices other than the Fairphone.
I don't know the time or the resources they had to build these apps, but the source-code is... not very inviting!

Sorry, I forgot that in the last post. Yes, version 09, as you provided, was working without any problem. I started it several times and have had no issues here. Great job, sir.
Hopefully Fairphone will grab your code and integrates it again for the Fairphone customers. Not everyone knows, there could be a better version in Google Play.

Oh, nice. Now we have a delivery bridge for spreading the Fairphone to North America.

Ok, now I understand. So you did some development for Kwamecorp or let's say for the next update of the Fairphone OS or the widget Peace of Mind. Although the source is not perfect, I am happy, because they provided the idea and the source code. And thank you, that you accepted the code challenge
The Following User Says Thank You to benkxda For This Useful Post: [ View ] Gift benkxda Ad-Free
26th January 2014, 07:55 PM |#26  
Senior Member
Thanks Meter: 56
 
More
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
+    srclibs=RootTools-new@3.4
+    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
The Following 3 Users Say Thank You to dabl8 For This Useful Post: [ View ] Gift dabl8 Ad-Free
27th January 2014, 12:51 AM |#27  
mudar1771's Avatar
OP Member
Flag Montréal
Thanks Meter: 81
 
More
Submitting to F-Droid
Quote:
Originally Posted by dabl8

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!

Thanks @dabl8 for the F-Droid metadata file, I have started testing this but the buiid fails because of the FairphoneHome app, even though it compils (and runs) fine in AndroidStudio.

Build fail log:
Code:
$ fdroid build -t ca.mudar.fairphone.peaceofmind
Building version 1.0 of ca.mudar.fairphone.peaceofmind
Getting source for revision 36fd2aeb73
HEAD is now at 36fd2ae New version released
Removing RootTools-new
HEAD is now at 36fd2ae... New version released
Collecting source libraries...
HEAD is now at fe75688 adding .gitignore, removing .DS_Store
HEAD is now at fe75688... adding .gitignore, removing .DS_Store
Removing debuggable flags...
Cleaning Gradle project...
Could not build app ca.mudar.fairphone.peaceofmind due to BuildException: 'Error cleaning ca.mudar.fairphone.peaceofmind:1.0'
==== detail begin ====
FAILURE: Build failed with an exception.

* Where:
Build file '/home/android/Fairphone/_DATA/f-droid/mudar-fdroiddata/build/srclib/Fairphone-mudar/FairphoneHome/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':FairphoneHome'.
> Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.343 secs
==== detail end ====
Build for app ca.mudar.fairphone.peaceofmind failed:
'Error cleaning ca.mudar.fairphone.peaceofmind:1.0'
==== detail begin ====
FAILURE: Build failed with an exception.

* Where:
Build file '/home/android/Fairphone/_DATA/f-droid/mudar-fdroiddata/build/srclib/Fairphone-mudar/FairphoneHome/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':FairphoneHome'.
> Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.343 secs
==== detail end ====
Finished.
1 builds failed

I'm not quite sure about the need of building RootTools 3.4 from source instead of using the official JAR file. Is this an f-droid requirement for libraries? However, since the project is currently (one day ago) moving to github, a new version might be on the way...

So, I'm looking into this, reading the doc, checking the build config etc... I've forked fdroiddata, so you could push your additions to fdroiddata or to my repo. I would greatly appreciate your help with these build issues since this is the first time I submit to f-droid.

thanks
27th January 2014, 09:57 AM |#28  
Senior Member
Thanks Meter: 56
 
More
Quote:
Originally Posted by mudar1488

Thanks @dabl8 for the F-Droid metadata file, I have started testing this but the buiid fails because of the FairphoneHome app, even though it compils (and runs) fine in AndroidStudio.

Build fail log:

Code:
$ fdroid build -t ca.mudar.fairphone.peaceofmind
Building version 1.0 of ca.mudar.fairphone.peaceofmind
Getting source for revision 36fd2aeb73
HEAD is now at 36fd2ae New version released
Removing RootTools-new
HEAD is now at 36fd2ae... New version released
Collecting source libraries...
HEAD is now at fe75688 adding .gitignore, removing .DS_Store
HEAD is now at fe75688... adding .gitignore, removing .DS_Store
Removing debuggable flags...
Cleaning Gradle project...
Could not build app ca.mudar.fairphone.peaceofmind due to BuildException: 'Error cleaning ca.mudar.fairphone.peaceofmind:1.0'
==== detail begin ====
FAILURE: Build failed with an exception.

* Where:
Build file '/home/android/Fairphone/_DATA/f-droid/mudar-fdroiddata/build/srclib/Fairphone-mudar/FairphoneHome/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':FairphoneHome'.
> Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.343 secs
==== detail end ====
Build for app ca.mudar.fairphone.peaceofmind failed:
'Error cleaning ca.mudar.fairphone.peaceofmind:1.0'
==== detail begin ====
FAILURE: Build failed with an exception.

* Where:
Build file '/home/android/Fairphone/_DATA/f-droid/mudar-fdroiddata/build/srclib/Fairphone-mudar/FairphoneHome/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':FairphoneHome'.
> Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.343 secs
==== detail end ====
Finished.
1 builds failed

I'm not quite sure about the need of building RootTools 3.4 from source instead of using the official JAR file. Is this an f-droid requirement for libraries? However, since the project is currently (one day ago) moving to github, a new version might be on the way...

So, I'm looking into this, reading the doc, checking the build config etc... I've forked fdroiddata, so you could push your additions to fdroiddata or to my repo. I would greatly appreciate your help with these build issues since this is the first time I submit to f-droid.

thanks

Oh dear. I have only one change made to my fdroidserver: I prevent gradle clean from running because it is so slow and pointless on my netbook. There looks like a problem with FairphoneHome/build.gradle so just use rm=roittools.jar;FairphoneHome and it should work. If not Ill check it out and do a merge request.

Edit: Its possible to use the jar; it can be added to the fdroid repo, but it bloats it to have jars in there, or you can use wget over https. I prefer to use source code myself.

Edit: Did you ever use gradle 1.10? If so look at this bug: https://code.google.com/p/android/is...etail?id=63999
27th January 2014, 01:16 PM |#29  
Senior Member
Thanks Meter: 56
 
More
Merge request created to mudar's fork.
The Following User Says Thank You to dabl8 For This Useful Post: [ View ] Gift dabl8 Ad-Free
27th January 2014, 01:59 PM |#30  
Junior Member
Flag Skellefteå
Thanks Meter: 3
 
More
Hi and thanks for releasing this great app for all us non-fairphone owners
I've got a bug concerning phone volume. When I start the timer the phone goes to silent mode and flight mode. When the timer ends only flight mode is turned off again, phone remains in silent mode.

My phone is a rooted LG Optimus 4X HD, running CM11 (android 4.4.2). I have this bug under both ver 1.0 and 1.1.
27th January 2014, 02:30 PM |#31  
mudar1771's Avatar
OP Member
Flag Montréal
Thanks Meter: 81
 
More
Quote:
Originally Posted by lungre

I've got a bug concerning phone volume. When I start the timer the phone goes to silent mode and flight mode. When the timer ends only flight mode is turned off again, phone remains in silent mode.

My phone is a rooted LG Optimus 4X HD, running CM11 (android 4.4.2). I have this bug under both ver 1.0 and 1.1.

I've added this to the issue tracker on GitHub

Later I'll probably need your help to test some versions and see if the issue is solved.

For now:
  • Did you install any superuser app/binaries, or is just CM's?
  • Small test 1: if you manually interrupt the timer (dragging down to zero), does it revert to the previous sound mode or stays stuck in Silent?
  • Small test 2: can you set the phone to Vibrate mode (the middle button on the power-off menu). Start the PoM timer afterwards. It should go into Silent and Flight modes. When it ends, does it revert to Vibrate or stays in Silent?

Thanks a lot for your feedback
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes