Skip to content

Commit

Permalink
去除联网权限, 去除自动更新检查功能, 从根本上解决安全性问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstJavaMaster committed Mar 9, 2022
1 parent f36175f commit 01e25b4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 130 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
一个密码管理软件. 使用flutter开发. 相较于其他同类产品有以下特点:

+ [:heavy_check_mark:] 高级索引列表, 支持汉语拼音索引, 内容再多也能快速定位
+ [:heavy_check_mark:] 支持账号关联, 记录各个网站的第三方登陆方式
+ [:heavy_check_mark:] 支持账号间关联, 记录各个网站的第三方登陆方式
+ [:heavy_check_mark:] 自动记录历史密码, 快速找到以前的你
+ [:heavy_check_mark:] 用户数据始终保存在应用私有空间, 不会被其他应用读取(非ROOT手机)
+ [:heavy_check_mark:] 自动检测应用升级
+ [:x:] 自动备份至其他平台
+ [:heavy_check_mark:] 用户数据始终保存在应用私有空间, 不会被其他应用读取
+ [:x:] 软件主密码加密

**注意: 尚未加入自动同步功能, 使用者请手动导出文件并分享至其他平台进行备份, 如私人邮箱/QQ/微信/云存储等.**
**注意: 为保证数据安全性, 不提供给在线同步功能! 数据备份请手动导出文件并分享至其他平台, 如私人邮箱/QQ/微信/云存储等.**

## 获取APP

Expand Down
3 changes: 0 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,4 @@
android:name="flutterEmbedding"
android:value="2" />
</application>

<!-- 联网权限 -->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
3 changes: 0 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:my_password_flutter/page/account/account_list.dart';
import 'package:my_password_flutter/utils/version_check_utils.dart';

void main() {
runApp(new MyApp());
Expand All @@ -20,8 +19,6 @@ void main() {
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// 检查新版本
Future.delayed(Duration(seconds: 10), () => VersionCheckUtils.checkQuiet(context));
return new MaterialApp(
title: 'my_password',
home: new AccountListPage(),
Expand Down
18 changes: 8 additions & 10 deletions lib/page/account/main_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:my_password_flutter/utils/import_export_utils.dart';
import 'package:my_password_flutter/utils/version_check_utils.dart';
import 'package:package_info/package_info.dart';
import 'package:path_provider/path_provider.dart';
import 'package:share_plus/share_plus.dart';
Expand Down Expand Up @@ -74,11 +73,6 @@ class MainDrawer extends StatelessWidget {
title: Text('导出数据'),
onTap: () => exportFile(mainContext),
),
ListTile(
leading: Icon(Icons.sync),
title: Text('检查更新'),
onTap: () => VersionCheckUtils.check(mainContext),
),
ListTile(
leading: Icon(Icons.help_outline),
title: Text('关于'),
Expand Down Expand Up @@ -188,7 +182,10 @@ class MainDrawer extends StatelessWidget {
child: Column(
children: [
Text(packageInfo.appName),
Text(packageInfo.version),
Text(
packageInfo.version,
style: TextStyle(fontSize: 14),
),
],
),
),
Expand All @@ -197,15 +194,16 @@ class MainDrawer extends StatelessWidget {
children: [
Text('本软件提供密码记录功能, 操作简单便捷. 主要有以下特性:'),
SizedBox(height: 10),
Text(' • 代码开源, 软件发布由GithubAction自动编译, 安全有保证'),
Text(' • 代码开源, 软件发布由GithubAction自动编译'),
Text(' • 软件不需要网络权限, 所有的数据都在你的掌控之下'),
Text(' • 高级索引列表, 支持汉语拼音索引, 内容再多也能快速定位'),
Text(' • 支持账号间关联, 记录各个网站的第三方登陆方式'),
Text(' • 自动记录历史密码, 快速找到以前的你'),
Text(' • 提供历史密码记录功能, 快速找到以前的你'),
SizedBox(height: 10),
Text('数据安全说明', style: TextStyle(fontWeight: FontWeight.bold)),
Text('用户数据始终保存在应用私有空间, 其他应用无法访问; 因此建议定期导出文件并分享至私人邮箱/QQ/微信/云存储等其他平台进行备份.', textScaleFactor: 0.8),
SizedBox(height: 10),
Text('开源地址'),
Text('开源/更新地址'),
TextButton(
onPressed: () {
String urlString = 'https://github.com/FirstJavaMaster/my_password_flutter';
Expand Down
100 changes: 0 additions & 100 deletions lib/utils/version_check_utils.dart

This file was deleted.

7 changes: 0 additions & 7 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,6 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.2.1"
dio:
dependency: "direct main"
description:
name: dio
url: "https://pub.flutter-io.cn"
source: hosted
version: "4.0.4"
fake_async:
dependency: transitive
description:
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.2.1+20220308
version: 2.3.0+20220309

environment:
sdk: ">=2.12.0 <3.0.0"
Expand All @@ -32,7 +32,6 @@ dependencies:
share_plus: ^3.0.4
url_launcher: ^6.0.12
package_info: ^2.0.2
dio: ^4.0.1

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down

0 comments on commit 01e25b4

Please sign in to comment.