Commit Graph

144 Commits

Author SHA1 Message Date
Fabian Wickborn f369c56a4b Android: Added null-check, fixed duped permissions
- Added a null check I missed in my last commit.
- Fixed duplicated Permission ACCESS_NETWORK_STATE in manifest.

Change-Id: I0da93b3e83ac584cb8fe36b2c3b9f1c711b08a8a
2014-08-24 11:59:37 +02:00
Fabian Wickborn 23975a92cd Option to restrict WiFI SSID for Android client
This is a first shot at
https://code.google.com/p/camlistore/issues/detail?id=496.

A user can enter a SSID and the upload will only run over Wifis with
this SSID. If the SSID option is left empty, everything works as before.

Change-Id: Ief3642c5b9c14d059f42696531fa33d1d780ab1c
2014-08-23 19:49:50 +02:00
Brad Fitzpatrick c9bf045aac Merge "Support more Android camera paths" 2014-08-22 16:49:17 +00:00
Fabian Wickborn 0fc94f3c72 Support more Android camera paths
I scratched my own itch and addressed
https://code.google.com/p/camlistore/issues/detail?id=494
for my HTC One M8 which stores pictures taken with its camera
to /sdcard/DCIM/100MEDIA.

Hardcoding these paths is far from being a good solution. I hope I can
find the time to get deeper into Android coding and come up with some
for https://code.google.com/p/camlistore/issues/detail?id=37 over the
next weeks.

Change-Id: I4e351c1915c5c7f66948d434d72763c826a25a16
2014-08-22 14:44:09 +00:00
Fabian Wickborn b86c0ce475 Android client docker: version bump Go to 1.3.1
Change-Id: Id3cce36343688c05eff220327534f7fa5880af5d
2014-08-22 14:30:17 +02:00
Bill Thiede 12a9f6b1ed android: logging/whitespace cleanup.
Addressing feedback from https://camlistore.org/r/3416

Change-Id: Ied7e86e12861ec27be0e2f3d41aefcd92ec5d1a3
2014-08-12 21:00:44 -07:00
Bill Thiede bec12c5270 android: Add QR code scanning to SettingsActivity.
Import src/com/google/zxing from
https://github.com/zxing/zxing/android-integration/src/ at revision:

    commit 7d35bd0bddbe84185b9f79c5cb07749a8767c952
    Author: Sean Owen <srowen@gmail.com>
    Date:   Wed Aug 6 09:05:22 2014 +0100

Uses zxing dervied barcode scanner apps to do the heavy lifting.  If the
user does not already have the app installed a dialog will open that
directs them to install it from the Google Play store.

Addresses https://camlistore.org/issue/372

Change-Id: Ic398b77cd9795aca533be101b2ebcd5631cc7f20
2014-08-11 10:24:46 -07:00
Brad Fitzpatrick 593682dc2d New Android app uploaded to Play. Version 2 aka '0.6.1'.
Change-Id: I0f655de272e15f854a909b629b68a2dd012e36c2
2014-02-21 18:17:59 -08:00
Brad Fitzpatrick f1a6c8a857 Comment clarification
Change-Id: I3f00050822bf0f05bdce2ca58a2ee22113dfdc09
2014-02-08 17:15:09 -08:00
Brad Fitzpatrick e364a6da4b Remove unneeded stuff from camlistore/android
Change-Id: I397ba4bbd6567b1ce54fcab54162b6b1a1508008
2014-02-08 17:14:02 -08:00
Brad Fitzpatrick 1e56abec90 Android: build in Docker, part 2. Build the Go binary child process too.
Now uploaded to the Google Play App Store Market.

Change-Id: I05f94eaf3ba70d694c593a892c15280364acf4ee
2014-02-08 17:10:02 -08:00
Brad Fitzpatrick c5c6fe1adc android: support for building with Docker
Change-Id: I0da100b62354ca1bda325f47397e4446deb1acec
2014-02-08 13:58:20 -08:00
Nick O'Neill 94e347174d Added android icons.
Change-Id: I3535aac02d7f693ed1631e4451a54ce81b109b64
2014-01-30 17:42:26 -08:00
Nick O'Neill de16d60d20 Added a progress bar to the upload notification.
Change-Id: Ib373142b3ff60fc73fc82a0c3aa236ba53553bab
2014-01-28 11:25:42 -08:00
Brad Fitzpatrick 3e725e2a98 Change self-signed cert fingerprint to 80 bits of SHA-256.
More secondary preimage resistance. Also better docs and less vague and less promoted Android
UI.

Feedback from Adam Langley, but likely misinterpreted.

Change-Id: I3bf1029b6fc07c0b8dab2af44926aa87b0d4cbad
2014-01-04 16:37:33 -08:00
Brad Fitzpatrick de8d644cfb android: work around a TextView.setText efficiency to not stall the event loop
Change-Id: I77dd1da8f691d5b4844a6bb0f9b2392474354998
2014-01-03 18:06:53 -08:00
Brad Fitzpatrick d867233bec android: crap Eclipse decided to do
Change-Id: I989fc27ffa70176909bc9ab34a2326c59a481f90
2013-12-31 18:14:14 -08:00
Brad Fitzpatrick 2f768edb90 android: more work respecting power & wifi settings; add Eye-Fi directory
Change-Id: I1786395394c742b942e85b24090dbaad55bd1cf9
2013-12-31 14:51:59 -08:00
Brad Fitzpatrick 339c46c6c5 android: fix upload all and background auto upload
Change-Id: If1179d7d40472adc7ffcb5b84598e797a465f029
2013-12-31 09:16:35 -08:00
Brad Fitzpatrick dabe4355af Change how the Android camput.arm asset is built to use make.go
Change-Id: I00a6e22ef088a173f78ffca83c984d915670180c
2013-09-03 19:48:32 -07:00
mpl ac431439f3 Allow HTTPS with a self-signed certificate.
A new client configuration parameter, "trustedCerts" (list of strings)
is introduced. A certificate fingerprint is defined as the 10 digits
prefix of the sha1 of the whole certificate (in ASN1. DER form).
trustedCerts should contain the list of fingerprints of the
certificates we trust. If not empty, the server's certificate
is checked against that list, instead of using the full x509 validation
on it.

-added a dial function and tls configuration, which check if we're using
SSL, and if we're in "trustedCerts" mode.
pkg/client/client.go
pkg/client/config.go

-moved android specific hacks from camput to the client layer, so that
the dial and tls config could reuse/access them. Also allows future
reuse for other commands, such as camget.
pkg/client/android.go

-adapted camput to the above changes:
cmd/camput/android.go
cmd/camput/camput.go
cmd/camput/files.go

-server prints a hint when it generates the self-signed:
pkg/misc/misc.go
server/camlistored/camlistored.go

-camliactivity:
clients/android/res/xml/preferences.xml
clients/android/src/org/camlistore/Preferences.java
clients/android/src/org/camlistore/SettingsActivity.java
clients/android/src/org/camlistore/UploadService.java
clients/android/src/org/camlistore/UploadThread.java

http://camlistore.org/issue/131

Change-Id: I6be20161549a69aafc8eb7b9e96e9351dc1c5b09
2013-04-23 17:10:37 +02:00
mpl c67b53465a camliactivity: catch invalid server format
Fixes https://code.google.com/p/camlistore/issues/detail?id=120

Change-Id: I602946b80c5a084242f80992b79503052853a4a4
2013-02-25 19:05:41 +01:00
mpl 3f81be742c android: config changes to build with ant
Change-Id: I6c7030bcc6a2f3bb882af706a8cab2a126faef8c
2013-02-23 00:05:01 +01:00
Brad Fitzpatrick 8128b51bb7 android: add Version menu option
Change-Id: I64aeacf18421edd51517c92ec8782b4bb62ca1b1
2013-02-03 10:39:20 -08:00
Brad Fitzpatrick e398532b4a buildinfo: include dirty + flag in version
Change-Id: Idc4763de41fdfa055fed5c06a36db9e9539f60bc
2013-02-03 10:14:21 -08:00
Brad Fitzpatrick e8ef81c626 android/camput: more stats
Change-Id: I668b8ee0b7c32d33075e421445af2973be1f576a
2013-01-30 17:22:53 -08:00
Brad Fitzpatrick 957c06d46c android: keep armgo build environment separate
Change-Id: Ie55fdd43813beb5f81ba9f8a41be8012932b1cc1
2013-01-30 17:22:45 -08:00
Brad Fitzpatrick 0825772d49 android: show camput's new advertised stats in UI
Change-Id: I864c539ef9bc81096e271115e90288350209ae66
2013-01-30 16:56:22 -08:00
Brad Fitzpatrick 625c618ac6 android: more graceful camput shutdown (close stdin)
Change-Id: Idd0c572a8426549fb2a1b467ab126986cde9edb5
2013-01-30 10:55:53 -08:00
Brad Fitzpatrick 6cd6acfeda android: slightly better progress bar accuracy
Change-Id: I44da03108419d3aa3d46e074fe8417920f2aaa3e
2013-01-29 17:04:48 -08:00
Brad Fitzpatrick 966beef095 android: formatting rule tweaks
Change-Id: Ic8d74c9838212e55e626f18dda4664626bf2c30c
2013-01-29 16:38:33 -08:00
Brad Fitzpatrick 14f038c667 android: working but kinda-sucky progress bars. need camput to broadcast better stats.
Change-Id: I28e6a16eba835116d8e8e205fe71073e0357b9c7
2013-01-28 21:52:23 -08:00
Brad Fitzpatrick 502026bd89 android: UploadThread re-work. use pipe-to-camput-stdin model, and be more Go-like.
Change-Id: I0f598dae28e47036bf713bfde488a7af0884e932
2013-01-28 19:06:37 -08:00
Brad Fitzpatrick 3a29a9bd82 android: cleanup
Change-Id: I1db3c20c68b8c2c69d76d8f1286e3be15091fb20
2013-01-27 20:28:06 -08:00
Brad Fitzpatrick 05fe9477bf android: pref cleanip + add Dev IP setting, to quickly switch between prod and dev server
Change-Id: Ief66dd2faf2cd366ef808a3d65f07be7b3333ef3
2013-01-27 20:26:02 -08:00
Brad Fitzpatrick 851a0c70b8 android: add Eclipse code formatting policy
Change-Id: I93b0367a66519f7858ebfda424406d41c9ef37fa
2013-01-27 20:24:51 -08:00
Brad Fitzpatrick f5a588527b android: untested: more upload / status work
Change-Id: I15dbf861b0bd8684a4e61a09f910315b874db1ed
2013-01-27 17:12:08 -08:00
Brad Fitzpatrick 8e9f7d332d android: more blob -> file UI changes
Change-Id: Ie3d81d837462bd41c572f42b0447c8428415da0d
2013-01-27 15:31:41 -08:00
Brad Fitzpatrick dc49611c53 android: clean-up and start of protocol from camput to android host
Change-Id: Icda33c1d54bdcd0a57f6ac62c09fd3e9cf9cd6f7
2013-01-27 15:27:17 -08:00
Brad Fitzpatrick 9b1affae33 android: reformat UploadApplication.java
Change-Id: Ib1466e2d522b0154ceb10f7519689060cff09acd
2013-01-27 14:06:15 -08:00
Brad Fitzpatrick 3a38081500 android: zero process reference at end
Change-Id: Ia3e9d44631a68bc2303dde90545eb5610a4313d4
2013-01-27 14:06:07 -08:00
Brad Fitzpatrick f6861b71e2 android, osutil: the the child process its Android-specific cache directory
Change-Id: I1161afd4ab30eb02e0e5b41c3d73a0c94f59c200
2013-01-27 13:24:50 -08:00
Brad Fitzpatrick 3910c347cf android: properly notify the service when a file is successfully uploaded; prevents upload loop
Change-Id: Icdc7d5f8e11d22fa1462051ab32005731e5783d6
2013-01-27 13:24:19 -08:00
Brad Fitzpatrick 2e5841b149 android: remove unused imports
Change-Id: Iecd4ed0c467bad17eb7881bb3554b50c415af91d
2013-01-27 13:12:34 -08:00
Brad Fitzpatrick e994b5c461 android: in prefs, show username summary
Change-Id: I46b702afd8e0944b9b2d54f85745c8b8770681c8
2013-01-27 13:04:47 -08:00
Brad Fitzpatrick 9b7bd9c7ae android: remove dead code
Change-Id: I6526020829ac5efc62c2ad0e3cae98a777748780
2013-01-27 13:04:31 -08:00
Brad Fitzpatrick ba9d9f2a88 android: set targetSdkVersion to 17. now JellyBean pretty.
Change-Id: I24fd7ca8ad264d201faf6aa9147a69fe20353add
2013-01-27 13:04:14 -08:00
Brad Fitzpatrick 6dbacee842 android: check in code formatting policy, and fmt some code
Change-Id: I1d277f50e3518893dc1828b74d8c789df0a25943
2013-01-27 12:54:49 -08:00
Brad Fitzpatrick 3fe1536e01 android: update a Java file when the Go child is updated, to force a rebuild in the ADT
Change-Id: I4ffa15332a2af82ed27300d447bc9d0ca1bd6877
2013-01-27 12:50:24 -08:00
Brad Fitzpatrick 31b6ff2c4a android: uploading using the camput Go process.
works, but UI is terrible and unreliable. but it uploaded and vivified a photo shared from the gallery.

Change-Id: I63199a4d25597739920b276ac240efa27c07926c
2013-01-27 11:37:36 -08:00