Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
08a70601
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
08a70601
编写于
8月 06, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
8月 06, 2020
浏览文件
操作
浏览文件
下载
差异文件
!76 Anbox:add_or_update:Skip 5 apk's desktop
Merge pull request !76 from 韩雨航/master
上级
33696837
80553abc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
2 deletion
+17
-2
src/anbox/application/launcher_storage.cpp
src/anbox/application/launcher_storage.cpp
+15
-2
src/anbox/application/launcher_storage.h
src/anbox/application/launcher_storage.h
+2
-0
未找到文件。
src/anbox/application/launcher_storage.cpp
浏览文件 @
08a70601
...
...
@@ -34,9 +34,17 @@ constexpr const char *snap_exe_path{"/snap/bin/anbox"};
namespace
anbox
{
namespace
application
{
LauncherStorage
::
LauncherStorage
(
const
fs
::
path
&
path
)
:
path_
(
path
)
{}
path_
(
path
)
{
invisible_pkg_
.
insert
(
"com-android-contacts"
);
invisible_pkg_
.
insert
(
"com-android-calendar"
);
invisible_pkg_
.
insert
(
"com-android-deskclock"
);
invisible_pkg_
.
insert
(
"com-android-email"
);
invisible_pkg_
.
insert
(
"com-android-music"
);
}
LauncherStorage
::~
LauncherStorage
()
{}
LauncherStorage
::~
LauncherStorage
()
{
invisible_pkg_
.
clear
();
}
void
LauncherStorage
::
reset
()
{
if
(
fs
::
exists
(
path_
))
{
...
...
@@ -69,6 +77,11 @@ void LauncherStorage::add_or_update(const Database::Item &item) {
auto
package_name
=
item
.
package
;
std
::
replace
(
package_name
.
begin
(),
package_name
.
end
(),
'.'
,
'-'
);
if
(
invisible_pkg_
.
count
(
package_name
))
{
DEBUG
(
"package_name:%s skip!!!
\n
"
,
package_name
);
return
;
}
auto
exe_path
=
utils
::
process_get_exe_path
(
getpid
());
if
(
utils
::
get_env_value
(
"SNAP"
).
length
()
>
0
)
...
...
src/anbox/application/launcher_storage.h
浏览文件 @
08a70601
...
...
@@ -23,6 +23,7 @@
#include <string>
#include <vector>
#include <set>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/predicate.hpp>
...
...
@@ -44,6 +45,7 @@ class LauncherStorage {
boost
::
filesystem
::
path
path_for_item_icon
(
const
std
::
string
&
package_name
);
boost
::
filesystem
::
path
path_
;
std
::
set
<
std
::
string
>
invisible_pkg_
;
};
}
// namespace application
}
// namespace anbox
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录