Skip to content

Commit

Permalink
Google Authenticator v2.15.
Browse files Browse the repository at this point in the history
What's New since v0.91:
* Made the UI look more native, especially on Honeycomb and above.
* Grouped Scan Barcode and Manually Enter Account functionality into a
  separate Add Account screen.
* Changed package name -- this is a new app as far as the Android OS and
  Google Play are concerned. The app securely imports data from the "old"
  app (v0.91).
  • Loading branch information
Alex Klyubin committed Jun 18, 2012
1 parent bf28731 commit 75eead7
Show file tree
Hide file tree
Showing 213 changed files with 7,209 additions and 2,755 deletions.
47 changes: 23 additions & 24 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.apps.authenticator"
android:versionCode="91" android:versionName="0.91">
package="com.google.android.apps.authenticator2"
android:versionCode="15" android:versionName="2.15">

<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="14" />

<uses-permission android:name="android.permission.VIBRATE" />

Expand All @@ -27,16 +27,12 @@
from the device using various backup methods (e.g., adb backup introduced in ICS).
-->
<application android:label="@string/app_name_short"
android:icon="@drawable/authenticator_launcher_icon"
android:icon="@drawable/ic_launcher_authenticator"
android:theme="@style/AuthenticatorTheme"
android:name="com.google.android.apps.authenticator.AuthenticatorApplication"
android:allowBackup="false">

<service android:name=".dataexport.ExportServiceV2"
android:label="@string/dataexport_service_name"
android:exported="true" />

<activity android:name=".AuthenticatorActivity"
<activity android:name="com.google.android.apps.authenticator.AuthenticatorActivity"
android:label="@string/app_name_short"
android:launchMode="singleTask">
<intent-filter>
Expand All @@ -46,30 +42,33 @@
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="otpauth" />
</intent-filter>
</activity>

<receiver android:name=".NewAppInstallListener">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>

<activity android:name=".DeprecationInfoActivity" />

<activity android:name=".SettingsAboutActivity"
<activity android:name="com.google.android.apps.authenticator.SettingsAboutActivity"
android:label="@string/about_preference_screen_title" />

<activity android:name=".EnterKeyActivity"
<activity android:name="com.google.android.apps.authenticator.AddOtherAccountActivity"
android:label="@string/add_account_menu_item" />

<activity android:name="com.google.android.apps.authenticator.EnterKeyActivity"
android:label="@string/enter_key_title" />

<activity android:name=".CheckCodeActivity"
android:label="@string/check_code_title"
android:screenOrientation="portrait" />
<activity android:name="com.google.android.apps.authenticator.CheckCodeActivity"
android:label="@string/check_code_title" />

<activity android:name="com.google.android.apps.authenticator.enroll2sv.wizard.IntroEnterPasswordActivity"
android:theme="@style/AuthenticatorTheme.NoTitleBar"
android:label="@string/enroll2sv_intro_page_enter_password_title" />
<activity android:name="com.google.android.apps.authenticator.enroll2sv.wizard.IntroEnterCodeActivity"
android:theme="@style/AuthenticatorTheme.NoTitleBar"
android:label="@string/enroll2sv_intro_page_enter_code_title" />
<activity android:name="com.google.android.apps.authenticator.enroll2sv.wizard.IntroVerifyDeviceActivity"
android:theme="@style/AuthenticatorTheme.NoTitleBar"
android:label="@string/enroll2sv_intro_page_verify_device_title" />

</application>

</manifest>

19 changes: 19 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
Google Authenticator for Android ChangeLog


v2.15

* Changed package name from com.google.android.apps.authenticator to
com.google.android.apps.authenticator2 and changed the signing key.
This is a new app as far as the Android OS and Google Play are concerned.
The app securely imports data from the "old" app (v0.91).
* Made the app's UI look more native. The blue on black theme has been
replaced with the system default (dark) theme.
* Grouped Scan Barcode and Manually Enter Account functionality into a
separate Add Account screen.
* Switched the Privacy Policy URL to http://www.google.com/policies/privacy/.
* Renamed account deletion to account removal and added more details to the
removal prompt. The prompt is slightly different for Google accounts.
* Made the "Manual account entry" screen scrollable.
* Made the "Integrity check code" screen support the landscape orientation.
* Enabled account provisioning via a click on a hyperlink in the device's web
browser (otpauth://...).


v0.91

* Starting from March 29 2012 7:00 GMT, display a deprecation notice in the
Expand Down
2 changes: 1 addition & 1 deletion default.properties → project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=android-7
target=android-14
Binary file added res/drawable-hdpi/ic_btn_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_btn_next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-hdpi/ic_menu_scan.png
Binary file not shown.
Binary file added res/drawable-ldpi-v11/ic_stat_notify_bt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-ldpi/ic_menu_scan.png
Binary file not shown.
Binary file added res/drawable-mdpi-v11/refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v11/refresh_disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v11/refresh_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v14/refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-mdpi/ic_menu_scan.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/enroll2sv_intro_enter_code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-xhdpi/ic_deprecation_notice.png
Binary file not shown.
22 changes: 22 additions & 0 deletions res/drawable/btn_dir_next_holo_dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/btn_dir_next_normal_holo_dark" />
<item android:state_pressed="true" android:drawable="@drawable/btn_dir_next_pressed_holo_dark" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/btn_dir_next_focused_holo_dark" />
<item android:state_enabled="true" android:drawable="@drawable/btn_dir_next_normal_holo_dark" />
</selector>
23 changes: 23 additions & 0 deletions res/drawable/btn_dir_prev_holo_dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/btn_dir_prev_normal_holo_dark" />
<item android:state_pressed="true" android:drawable="@drawable/btn_dir_prev_pressed_holo_dark" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/btn_dir_prev_focused_holo_dark" />
<item android:state_enabled="true" android:drawable="@drawable/btn_dir_prev_normal_holo_dark" />
</selector>
Binary file removed res/drawable/ic_btn_back.png
Diff not rendered.
Binary file removed res/drawable/ic_btn_next.png
Diff not rendered.
Binary file modified res/drawable/refresh.png
Binary file modified res/drawable/refresh_disabled.png
40 changes: 40 additions & 0 deletions res/layout/add_other_account.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_marginTop="10sp">
<Button android:id="@+id/scan_barcode"
android:text="@string/button_add_account_scan_barcode"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button android:id="@+id/manually_add_account"
android:text="@string/button_add_account_manual_entry"
android:layout_marginTop="10sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
69 changes: 37 additions & 32 deletions res/layout/check_code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,50 @@
limitations under the License.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="5dip">
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView android:id="@+id/check_code" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:layout_marginTop="20dip" android:text="@string/check_code"
style="?android:attr/textAppearanceMedium" android:visibility="invisible" />
<LinearLayout
android:orientation="vertical" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="5dip">

<LinearLayout android:id="@+id/code_area" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="20dip">
<TextView android:id="@+id/check_code" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:layout_marginTop="20dip" android:text="@string/check_code"
style="?android:attr/textAppearanceMedium" android:visibility="invisible" />

<ImageView android:src="@android:drawable/ic_lock_lock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dip" android:layout_gravity="center_vertical" />
<LinearLayout android:id="@+id/code_area" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="20dip">

<TextView android:id="@+id/code_value" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:textSize="16pt" style="?android:attr/textAppearanceLarge" />
</LinearLayout>
<ImageView android:src="@android:drawable/ic_lock_lock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dip" android:layout_gravity="center_vertical" />

<LinearLayout android:id="@+id/counter_area" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="10dip">
<TextView android:id="@+id/code_value" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:textSize="16pt" style="?android:attr/textAppearanceLarge" />
</LinearLayout>

<ImageView android:src="@android:drawable/ic_menu_recent_history"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dip" android:layout_gravity="center_vertical"
android:maxHeight="32px" android:maxWidth="32px"
android:adjustViewBounds="true"/>
<LinearLayout android:id="@+id/counter_area" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="10dip">

<TextView android:id="@+id/counter_value" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:textSize="16pt" style="?android:attr/textAppearanceLarge" />
<ImageView android:src="@android:drawable/ic_menu_recent_history"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dip" android:layout_gravity="center_vertical"
android:maxHeight="32px" android:maxWidth="32px"
android:adjustViewBounds="true"/>

</LinearLayout>
<TextView android:id="@+id/counter_value" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="10dip"
android:textSize="16pt" style="?android:attr/textAppearanceLarge" />

</LinearLayout>

<View android:layout_width="wrap_content" android:layout_height="0dip"
android:layout_weight="1" android:visibility="invisible" />
<View android:layout_width="wrap_content" android:layout_height="0dip"
android:layout_weight="1" android:visibility="invisible" />

</LinearLayout>
</LinearLayout>
</ScrollView>
49 changes: 49 additions & 0 deletions res/layout/enroll2sv_intro_enter_code.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView
android:src="@drawable/enroll2sv_intro_enter_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:adjustViewBounds="true"
/>

<TextView
android:text="@string/enroll2sv_intro_page_enter_code_title"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginTop="20sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>

<TextView
android:id="@+id/details"
android:text="@string/enroll2sv_intro_page_enter_code_details"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginTop="30sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</ScrollView>
49 changes: 49 additions & 0 deletions res/layout/enroll2sv_intro_enter_password.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView
android:src="@drawable/enroll2sv_intro_enter_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:adjustViewBounds="true"
/>

<TextView
android:text="@string/enroll2sv_intro_page_enter_password_title"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginTop="20sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>

<TextView
android:id="@+id/details"
android:text="@string/enroll2sv_intro_page_enter_password_details"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginTop="30sp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</ScrollView>
Loading

0 comments on commit 75eead7

Please sign in to comment.