Merge branch 'master' of github.com:open-keychain/open-keychain

This commit is contained in:
Vincent Breitmoser 2014-09-30 00:51:58 +02:00
commit de5dd482e1
13 changed files with 28 additions and 82 deletions

View File

@ -1,23 +0,0 @@
THIS IS EXPERIMENTAL SOFTWARE.
Use OpenPGP Keychain at your own risk!
Description:
OpenPGP Keychain is an OpenPGP implementation for Android. The development began as a fork of Android Privacy Guard (APG).
Features:
• OpenPGP Keychain is Open Source and Free Software (GPLv3+) (-> verifiable cryptography)
• All basic OpenPGP operations: encrypt/decrypt/sign/verify
• NFC/QR code key exchange
• Key management (import/export/sign/upload)
• Import/export of GPG key rings and exported keys from/to the SD card
• Basic keyserver support
• Easy API
License:
GPLv3+
Permissions:
• Full network access: Internet access is ONLY used for keyserver queries
• Control Near Field Communication: To exchange keys via NFC
• Modify or delete the contents of your USB storage: To export keys to the sd card
• Read the contents of your USB storage: To import keys from the sd card

View File

@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="org.sufficientlysecure.keychain" package="org.sufficientlysecure.keychain"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="29201" android:versionCode="29202"
android:versionName="3.0 beta1"> android:versionName="3.0 beta2">
<!-- <!--
General remarks General remarks
@ -633,16 +633,16 @@
android:taskAffinity=":Nfc" android:taskAffinity=":Nfc"
android:allowTaskReparenting="true" /> android:allowTaskReparenting="true" />
<activity <!--<activity-->
android:name=".ui.NfcIntentActivity" <!--android:name=".ui.NfcIntentActivity"-->
android:launchMode="singleTop"> <!--android:launchMode="singleTop">-->
<intent-filter> <!--<intent-filter>-->
<action android:name="android.nfc.action.NDEF_DISCOVERED" /> <!--<action android:name="android.nfc.action.NDEF_DISCOVERED" />-->
<category android:name="android.intent.category.DEFAULT" /> <!--<category android:name="android.intent.category.DEFAULT" />-->
<data android:host="my.yubico.com" android:scheme="https"/> <!--<data android:host="my.yubico.com" android:scheme="https"/>-->
</intent-filter> <!--</intent-filter>-->
</activity> <!--</activity>-->
<activity <activity
android:name=".ui.HelpActivity" android:name=".ui.HelpActivity"

View File

@ -79,7 +79,7 @@ public class DecryptActivity extends DrawerActivity {
final String clipboardText = final String clipboardText =
ClipboardReflection.getClipboardText(DecryptActivity.this).toString(); ClipboardReflection.getClipboardText(DecryptActivity.this).toString();
new AsyncTask<Void,Void,Boolean>() { AsyncTask<Void, Void, Boolean> tadaTask = new AsyncTask<Void, Void, Boolean>() {
@Override @Override
protected Boolean doInBackground(Void... params) { protected Boolean doInBackground(Void... params) {
@ -104,7 +104,11 @@ public class DecryptActivity extends DrawerActivity {
SubtleAttentionSeeker.tada(findViewById(R.id.clipboard_icon), 1.5f).start(); SubtleAttentionSeeker.tada(findViewById(R.id.clipboard_icon), 1.5f).start();
} }
} }
}.execute(); };
if (clipboardText != null) {
tadaTask.execute();
}
} }
} }

View File

@ -112,11 +112,11 @@ public class DecryptTextActivity extends ActionBarActivity {
} }
if (Intent.ACTION_SEND.equals(action) && type != null) { if (Intent.ACTION_SEND.equals(action) && type != null) {
// Android action Log.logDebugBundle(extras, "extras");
// When sending to Keychain Decrypt via share menu // When sending to Keychain Decrypt via share menu
if ("text/plain".equals(type)) { if ("text/plain".equals(type)) {
String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT); String sharedText = extras.getString(Intent.EXTRA_TEXT);
sharedText = getPgpContent(sharedText); sharedText = getPgpContent(sharedText);
if (sharedText != null) { if (sharedText != null) {

View File

@ -309,7 +309,7 @@ public class EncryptFilesActivity extends EncryptActivity implements EncryptActi
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.encrypt_file_activity); setContentView(R.layout.encrypt_files_activity);
// if called with an intent action, do not init drawer navigation // if called with an intent action, do not init drawer navigation
if (ACTION_ENCRYPT_DATA.equals(getIntent().getAction())) { if (ACTION_ENCRYPT_DATA.equals(getIntent().getAction())) {

View File

@ -76,7 +76,7 @@ public class EncryptFilesFragment extends Fragment implements EncryptActivityInt
*/ */
@Override @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.encrypt_file_fragment, container, false); View view = inflater.inflate(R.layout.encrypt_files_fragment, container, false);
View vEncryptFile = view.findViewById(R.id.action_encrypt_file); View vEncryptFile = view.findViewById(R.id.action_encrypt_file);
vEncryptFile.setOnClickListener(new View.OnClickListener() { vEncryptFile.setOnClickListener(new View.OnClickListener() {

View File

@ -302,7 +302,6 @@ public class EncryptTextActivity extends EncryptActivity implements EncryptActiv
// Handle intent actions // Handle intent actions
handleActions(getIntent()); handleActions(getIntent());
updateModeFragment(); updateModeFragment();
} }
@Override @Override
@ -359,9 +358,11 @@ public class EncryptTextActivity extends EncryptActivity implements EncryptActiv
// When sending to OpenKeychain Encrypt via share menu // When sending to OpenKeychain Encrypt via share menu
if (Intent.ACTION_SEND.equals(action) && type != null) { if (Intent.ACTION_SEND.equals(action) && type != null) {
Log.logDebugBundle(extras, "extras");
// When sending to OpenKeychain Encrypt via share menu // When sending to OpenKeychain Encrypt via share menu
if ("text/plain".equals(type)) { if ("text/plain".equals(type)) {
String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT); String sharedText = extras.getString(Intent.EXTRA_TEXT);
if (sharedText != null) { if (sharedText != null) {
// handle like normal text encryption, override action and extras to later // handle like normal text encryption, override action and extras to later
// executeServiceMethod ACTION_ENCRYPT_TEXT in main actions // executeServiceMethod ACTION_ENCRYPT_TEXT in main actions

View File

@ -13,6 +13,5 @@
</android.support.v4.widget.FixedDrawerLayout> </android.support.v4.widget.FixedDrawerLayout>
<include layout="@layout/decrypt_content_old" /> <include layout="@layout/encrypt_files_content" />
</FrameLayout> </FrameLayout>

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.FixedDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/decrypt_content_old"/>
<include layout="@layout/drawer_list" />
</android.support.v4.widget.FixedDrawerLayout>

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content_frame"
android:layout_marginLeft="@dimen/drawer_content_padding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/notify_area" />
<android.support.v4.view.ViewPager
android:id="@+id/decrypt_pager"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.PagerTabStrip
android:id="@+id/decrypt_pager_tab_strip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:textColor="@color/emphasis" />
</android.support.v4.view.ViewPager>
</LinearLayout>

View File

@ -7,7 +7,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".ui.EncryptFileActivity"> tools:context=".ui.EncryptFileActivity">
<include layout="@layout/encrypt_file_content"/> <include layout="@layout/encrypt_files_content"/>
<include layout="@layout/drawer_list" /> <include layout="@layout/drawer_list" />