Commit Graph

19 Commits

Author SHA1 Message Date
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
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
Nick O'Neill 94e347174d Added android icons.
Change-Id: I3535aac02d7f693ed1631e4451a54ce81b109b64
2014-01-30 17:42:26 -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
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
Brad Fitzpatrick 8128b51bb7 android: add Version menu option
Change-Id: I64aeacf18421edd51517c92ec8782b4bb62ca1b1
2013-02-03 10:39:20 -08:00
Brad Fitzpatrick e8ef81c626 android/camput: more stats
Change-Id: I668b8ee0b7c32d33075e421445af2973be1f576a
2013-01-30 17:22:53 -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 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 8e9f7d332d android: more blob -> file UI changes
Change-Id: Ie3d81d837462bd41c572f42b0447c8428415da0d
2013-01-27 15:31:41 -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
Brad Fitzpatrick 1b8006abcd android: remove browse / download service for now. bit rot, or never finished?
Change-Id: I2323aeded34eb3fd0b176273d67a215264f9fb11
2013-01-27 10:17:25 -08:00
Brad Fitzpatrick 91cf37edb6 android: start of using the Go camput binary as a child process.
For now it just smartly copies it from the APK zip to the filesystem and chmods it.

For testing:

(in an adb shell)

CAMLI_AUTH=userpass:USER:PASS /data/data/org.camlistore/files/camput.bin --server=https://server.example.com file -vivify /sdcard/DCIM/Camera/IMG_20130126_143719.jpg

... which now works, as of commit 51e88c7434 (camput: run in an Android linux non-cgo environment)

Change-Id: I32a7e1e28fdf781bec5156271a4b33f5bd3b8b83
2013-01-26 16:54:03 -08:00
Daniel Erat 58c678e94e android: add icons for files and directories
trying to get the hang of making stuff in inkscape that
doesn't look awful
2011-03-27 12:07:06 -07:00
Daniel Erat 46870bdbdc android: use a custom adapter in BrowseActivity
no user-visible changes
2011-03-20 13:03:16 -07:00
Daniel Erat 85a7f38a87 android: limit cache growth
this is lightly-tested but seems to work.
the non-new stuff in res/ is just whitespace cleanup.
2011-03-19 12:15:19 -07:00
Daniel Erat 509bd14bf5 android: add custom browse row layout 2011-03-15 07:11:51 -07:00
Daniel Erat c7b9393699 android: browsing support 2011-03-13 20:30:35 -07:00
Daniel Erat 43f113183c rename clients/android/uploader to clients/android
also change package from com.danga.camli to org.camlistore
2011-03-13 13:09:56 -07:00