summaryrefslogtreecommitdiff
path: root/app/src/debug/java/se/leap
AgeCommit message (Collapse)Author
2015-06-08s/buildtype/flavor, changed riseup's pinParménides GV
Riseup's EE certificate expired (EE = End-Entity, the commercial certificate signed by the issuer), and we weren't able to fetch provider.json because the pin wasn't valid. This problem needs to be avoided in the future, using HKPK (https://tools.ietf.org/html/rfc7469), which Micah's implementing on Riseup. Switching from build types from flavors enables us to run tests against production apk, not just debug. I didn't detect this pinning problem because tests were run only against the debug apk, which trusted preseeded providers by default (thus bypassing pinning issue).
2015-04-30Works smoothly, correct texts.Parménides GV
Next step: beautify.
2015-04-29Functional.Parménides GV
2015-04-29Creating a user session fragment.Parménides GV
I've separated the user session management to it, and encapsulated ProviderAPICommand into its own class. Putting the fragment statically in dashboard.xml isn't working, Android complains about it being duplicated, so I'm going to add it dynamically.
2015-04-27testEveryProvider also worksParménides GV
2015-04-22Tests for ConfigurationWizard passParménides GV
I've done this because of https://leap.se/code/issues/6863#note-2, testing the previous commit's changes.
2015-04-22Avoid the check for a null provider.Parménides GV
A provider can be asked if it's configured or not, so that we don't find more provider = null issues. I've created a DefaultedURL which links to https://example.net, so that we can initialize an URL. I use composition instead of inheritance, since URL class is final.
2015-04-22Initialize ca fingerprint, avoiding nullpointerParménides GV
Danger on defaults to true in debug build
2015-04-22Pinning connection to provider.jsonParménides GV
Using AndroidPinning library from Moxie, I make sure the provider.json file Bitmask downloads is fetched from a pinned https connection, so that the api certificate fingerprint is the good one.
2015-04-15Set accept-language in ProviderAPI, language-countryParménides GV
String locale = Locale.getDefault().getLanguage() + Locale.getDefault().getCountry();
2015-04-07Trying to conjugate the Spanish verbs programmatically.Parménides GV
2015-03-24ProviderDetailFragment release was bad formatedParménides GV
2015-03-24Remove all Logs.Parménides GV
In the near future, I should implement an error feedback mechanism (ideally using ics-openvpn's log view), and avoid the e.printStackTrace() and Log.d("","") without losing information.
2015-03-24Indent everything with IntelliJParménides GV
2015-03-24Cleaned imports, use wildcards when appropriateParménides GV
2015-03-19Warn riseup users about credentials, as an error in the username field.Parménides GV
I haven't still decided how to show that warning, I'm talking to gus about it. This is just the first idea, but the core mechanism is implemented at least.
2015-03-19Don't show user session progress in the eip fragmentParménides GV
2015-03-13If a provider fails to be configured, go back to CW.Parménides GV
2015-03-13Show user session status separately.Parménides GV
Switching orientation doesn't hide that information, now we have two places to avoid it.
2015-03-12Restore state on Configuration Wizard.Parménides GV
2015-01-30Don't reuse last session dialog.Parménides GV
It was giving problems when trying to change the arguments.
2015-01-19Reusing methods to download certificate.Parménides GV
This makes sure that if a a certificate is not valid, a new one is downloaded. Unit tests don't apply to this, I've already added one to the certificate validator, whose result will determine if a new certificate will be downloaded.
2015-01-12xlarge layouts updatedParménides GV
Last refactor, introducing ButterKnife and all those things, I forgot to update this layouts.
2015-01-12Reviewed both ConfigurationWizardsParménides GV
2014-12-31HTTP 401 = Logged out correctlyParménides GV
2014-12-22Check for null certificate on validCertificateParménides GV
2014-12-16Update eip-service.json each EipFragment.onAttachParménides GV
2014-12-15Working on Android 5.Parménides GV
Beware! https://code.google.com/p/android/issues/detail?id=80074: Wrong VpnService.prepare() behavior after re-installation of the VPN app on Android 5.0 "The following steps will cause incorrect behavior of the VpnService.prepare(): 1. Establish VPN connection using any VPN app. VpnService.prepare() will return an intent for the "Connection request" system activity. Once user accepts it, VPN connection can be established successfully. 2. Uninstall VPN app. 3. Re-install the same VPN app. 4. Now VpnService.prepare() returns null, as if the VPN service has been already prepared. 5. Now VpnService.protect() returns false and VPN connection fails. Device reboot is needed in order to be able to establish VPN connection again."
2014-12-09Bug in the add provider to the adapter fixed.Parménides GV
Refactored the new provider dialog too.
2014-12-09Final refactoring for this bug.Parménides GV
Removed the sign up dialog, log in one is enough with the third button I added some time ago to sign up. Removed classes we don't need due to the libraries I have recently introduced.
2014-12-09Save custom providers to sdcard.Parménides GV
2014-12-09EIP fragment shown correctly.Parménides GV
2014-12-09Release flavor updated, back button works.Parménides GV
2014-12-09Switching provider doesn't refresh provider list.Parménides GV
It shows just one provider, and it's not the one that gets configured if selected.
2014-12-04Click on an item, no UI but functional.Parménides GV
2014-12-04Renderers and dagger, refactoring CW.Parménides GV
2014-12-04CW loads, but no provider list appears.Parménides GV
2014-12-04Learning to use Butterknife, refactoring small things.Parménides GV
2014-12-03Orientation changes always work.Parménides GV
2014-12-03First orientation change doesn't crash.Parménides GV
Update gradle to 2.2.1.
2014-11-26Update vpn certificate and store it correctly.Parménides GV
One more onReceiveResult for Dashboard, that method needs a rethink: a statemachine class, and a simple "next()" method? The reality is that the onReceiveResult specifies a linked process, and that should have a better model than a series of if/else cases with strings comparisons hehehe
2014-11-26More refactoring, fixed problems from previous commit.Parménides GV
2014-11-26eip package, EIP constants to interface.Parménides GV
2014-11-22Remove the testing code from debug ProviderAPI.Parménides GV
2014-11-22Ask to log in to update certificate if needed.Parménides GV
ProviderAPI from debug build uses an invalid certificate the first time it tries to download a new cert, just to test this.
2014-11-13Delete all vpn profiles if updating them.Parménides GV
2014-11-12Remove 2 unused methods.Parménides GV
2014-11-12ProviderAPI.getNewCert fixed in release.Parménides GV
Reproduced the refactoring done in debug.
2014-11-04Don't update eip service oncreate eip.Parménides GV
Reuse EipServiceFragment's stopEip and startEipFromScratch in Dashboard.
2014-10-16A bit of refactoring for ConfigurationWizard.Parménides GV
Fix a typo in the debug source of ProviderAPI.