Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
cbd43fb7
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,发现更多精彩内容 >>
提交
cbd43fb7
编写于
6月 24, 2016
作者:
S
Simon Fels
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
WIP android JNI ..
上级
327e525b
变更
28
展开全部
隐藏空白更改
内联
并排
Showing
28 changed file
with
469 addition
and
212 deletion
+469
-212
android/.idea/android.iml
android/.idea/android.iml
+11
-8
android/.idea/misc.xml
android/.idea/misc.xml
+4
-1
android/.idea/workspace.xml
android/.idea/workspace.xml
+301
-166
android/Android.mk
android/Android.mk
+17
-12
android/CMakeLists.txt
android/CMakeLists.txt
+3
-9
android/build/production/android/org/anbox/BuildConfig.class
android/build/production/android/org/anbox/BuildConfig.class
+0
-0
android/build/production/android/org/anbox/R$attr.class
android/build/production/android/org/anbox/R$attr.class
+0
-0
android/build/production/android/org/anbox/R$color.class
android/build/production/android/org/anbox/R$color.class
+0
-0
android/build/production/android/org/anbox/R$dimen.class
android/build/production/android/org/anbox/R$dimen.class
+0
-0
android/build/production/android/org/anbox/R$drawable.class
android/build/production/android/org/anbox/R$drawable.class
+0
-0
android/build/production/android/org/anbox/R$fraction.class
android/build/production/android/org/anbox/R$fraction.class
+0
-0
android/build/production/android/org/anbox/R$id.class
android/build/production/android/org/anbox/R$id.class
+0
-0
android/build/production/android/org/anbox/R$integer.class
android/build/production/android/org/anbox/R$integer.class
+0
-0
android/build/production/android/org/anbox/R$layout.class
android/build/production/android/org/anbox/R$layout.class
+0
-0
android/build/production/android/org/anbox/R$menu.class
android/build/production/android/org/anbox/R$menu.class
+0
-0
android/build/production/android/org/anbox/R$mipmap.class
android/build/production/android/org/anbox/R$mipmap.class
+0
-0
android/build/production/android/org/anbox/R$string.class
android/build/production/android/org/anbox/R$string.class
+0
-0
android/build/production/android/org/anbox/R$style.class
android/build/production/android/org/anbox/R$style.class
+0
-0
android/build/production/android/org/anbox/R$styleable.class
android/build/production/android/org/anbox/R$styleable.class
+0
-0
android/build/production/android/org/anbox/R.class
android/build/production/android/org/anbox/R.class
+0
-0
android/java/org/anbox/ApplicationManager.java
android/java/org/anbox/ApplicationManager.java
+8
-12
android/java/org/anbox/BootReceiver.java
android/java/org/anbox/BootReceiver.java
+17
-0
android/java/org/anbox/MainActivity.java
android/java/org/anbox/MainActivity.java
+17
-0
android/java/org/anbox/MainApplication.java
android/java/org/anbox/MainApplication.java
+20
-4
android/java/org/anbox/NavBar.java
android/java/org/anbox/NavBar.java
+17
-0
android/java/org/anbox/NavigationBarView.java
android/java/org/anbox/NavigationBarView.java
+17
-0
android/java/org/anbox/NotificationListener.java
android/java/org/anbox/NotificationListener.java
+17
-0
android/service/main.cpp
android/service/main.cpp
+20
-0
未找到文件。
android/.idea/android.iml
浏览文件 @
cbd43fb7
...
...
@@ -3,13 +3,16 @@
<component
name=
"FacetManager"
>
<facet
type=
"android"
name=
"Android"
>
<configuration>
<option
name=
"GEN_FOLDER_RELATIVE_PATH_APT"
value=
"/../../android/gen"
/>
<option
name=
"GEN_FOLDER_RELATIVE_PATH_AIDL"
value=
"/../../android/gen"
/>
<option
name=
"MANIFEST_FILE_RELATIVE_PATH"
value=
"/../../android/AndroidManifest.xml"
/>
<option
name=
"RES_FOLDER_RELATIVE_PATH"
value=
"/../../android/res"
/>
<option
name=
"ASSETS_FOLDER_RELATIVE_PATH"
value=
"/../../android/assets"
/>
<option
name=
"LIBS_FOLDER_RELATIVE_PATH"
value=
"/../../android/libs"
/>
<option
name=
"PROGUARD_LOGS_FOLDER_RELATIVE_PATH"
value=
"/../../android/proguard_logs"
/>
<option
name=
"GEN_FOLDER_RELATIVE_PATH_APT"
value=
"/../gen"
/>
<option
name=
"GEN_FOLDER_RELATIVE_PATH_AIDL"
value=
"/../gen"
/>
<option
name=
"MANIFEST_FILE_RELATIVE_PATH"
value=
"/../AndroidManifest.xml"
/>
<option
name=
"RES_FOLDER_RELATIVE_PATH"
value=
"/../res"
/>
<option
name=
"ASSETS_FOLDER_RELATIVE_PATH"
value=
"/../assets"
/>
<option
name=
"LIBS_FOLDER_RELATIVE_PATH"
value=
"/../libs"
/>
<option
name=
"PROGUARD_LOGS_FOLDER_RELATIVE_PATH"
value=
"/../proguard_logs"
/>
<proGuardCfgFiles>
<file>
file:///usr/lib/jvm/java-1.7.0-openjdk-amd64/tools/proguard/proguard-android.txt
</file>
</proGuardCfgFiles>
</configuration>
</facet>
</component>
...
...
@@ -20,7 +23,7 @@
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/gen"
isTestSource=
"false"
generated=
"true"
/>
</content>
<orderEntry
type=
"
jdk"
jdkName=
"Android API 24 Platform"
jdkType=
"Android SDK
"
/>
<orderEntry
type=
"
inheritedJdk
"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
android/.idea/misc.xml
浏览文件 @
cbd43fb7
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"EntryPointsManager"
>
<entry_points
version=
"2.0"
/>
</component>
<component
name=
"NullableNotNullManager"
>
<option
name=
"myDefaultNullable"
value=
"android.support.annotation.Nullable"
/>
<option
name=
"myDefaultNotNull"
value=
"android.support.annotation.NonNull"
/>
...
...
@@ -34,5 +37,5 @@
<ConfirmationsSetting
value=
"0"
id=
"Add"
/>
<ConfirmationsSetting
value=
"0"
id=
"Remove"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
6"
default=
"false"
assert-keyword=
"true"
jdk-15=
"true
"
/>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7"
default=
"false"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"Android API 23 Platform"
project-jdk-type=
"Android SDK
"
/>
</project>
\ No newline at end of file
android/.idea/workspace.xml
浏览文件 @
cbd43fb7
此差异已折叠。
点击以展开。
android/Android.mk
浏览文件 @
cbd43fb7
...
...
@@ -3,12 +3,15 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS
:=
optional
LOCAL_SRC_FILES
=
\
jni/anbox_support.cpp
jni/anbox_support.cpp
\
jni/application_manager.cpp
\
jni/jni_helper.cpp
LOCAL_C_INCLUDES
:=
\
$(JNI_H_INCLUDE)
\
libcore/include
LOCAL_SHARED_LIBRARIES
:=
\
liblog
liblog
\
libnativehelper
LOCAL_MODULE
:=
libanbox_support
include
$(BUILD_SHARED_LIBRARY)
...
...
@@ -16,19 +19,21 @@ include $(BUILD_SHARED_LIBRARY)
include
$(CLEAR_VARS)
LOCAL_MODULE_TAGS
:=
optional
LOCAL_AIDL_INCLUDES
:=
$(LOCAL_PATH)
/
src/
java
LOCAL_AIDL_INCLUDES
:=
$(LOCAL_PATH)
/java
LOCAL_SRC_FILES
:=
$(
call
all-java-files-under, java
)
LOCAL_JAVA_LIBRARIES
:=
telephony-common
LOCAL_JNI_SHARED_LIBRARIES
:=
\
libanbox_support
# Block certain packages from being installed
LOCAL_OVERRIDES_PACKAGES
:=
\
SystemUI
\
Home
\
Launcher2
\
Calculator
\
BasicDreams
\
Calendar
\
PrintSpooler
\
WallpaperCropper
#
LOCAL_OVERRIDES_PACKAGES := \
#
SystemUI \
#
Home \
#
Launcher2 \
#
Calculator \
#
BasicDreams \
#
Calendar \
#
PrintSpooler \
#
WallpaperCropper
LOCAL_PACKAGE_NAME
:=
anboxd
LOCAL_CERTIFICATE
:=
platform
LOCAL_PRIVILEGED_MODULE
:=
true
...
...
android/CMakeLists.txt
浏览文件 @
cbd43fb7
set
(
ANBOX
_SUPPORT
_SOURCES
jni/anbox_support
.cpp
)
set
(
ANBOX
D
_SOURCES
service/main
.cpp
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/external/jni
)
# We're not going to ship this, just building here to add proper
# unit tests we can run in a integration system without having
# the Android build system around.
add_library
(
anbox-support
${
ANBOX_SUPPORT_SOURCES
}
)
add_executable
(
anboxd
${
ANBOXD_SOURCES
}
)
android/build/production/android/org/anbox/BuildConfig.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$attr.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$color.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$dimen.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$drawable.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$fraction.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$id.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$integer.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$layout.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$menu.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$mipmap.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$string.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$style.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R$styleable.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/build/production/android/org/anbox/R.class
已删除
100644 → 0
浏览文件 @
327e525b
文件已删除
android/j
ni/anbox_support.cpp
→
android/j
ava/org/anbox/ApplicationManager.java
浏览文件 @
cbd43fb7
...
...
@@ -15,19 +15,15 @@
*
*/
#include <JNIHelp.h>
#include <jni.h>
package
org.anbox
;
#define LOG_TAG "AnboxSupport"
import
android.util.Log
;
import
java.lang.ref.WeakReference
;
#ifdef ANDROID
#include <utils/Log.h>
#else
#define ALOGI(...)
#endif
public
class
ApplicationManager
{
static
final
String
TAG
=
"AnboxApplicationManager"
;
extern
"C"
jint
JNI_OnLoad
(
JavaVM
*
vm
,
void
*
reserved
)
{
ALOGI
(
"Successfully loaded Anbox support library"
);
return
JNI_VERSION_1_4
;
public
ApplicationManager
()
{
Log
.
i
(
TAG
,
"Starting up native part.."
);
}
}
android/java/org/anbox/BootReceiver.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.content.BroadcastReceiver
;
...
...
android/java/org/anbox/MainActivity.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.app.Activity
;
...
...
android/java/org/anbox/MainApplication.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.app.Application
;
public
class
MainApplication
extends
Application
{
private
ApplicationManager
mApplicationManager
;
private
NavBar
mNavBar
;
static
{
// Load our native support library on startup so we get
// access to several things from the Anbox host service.
System
.
loadLibrary
(
"anbox_support"
);
public
MainApplication
()
{
}
public
void
startServices
()
{
mApplicationManager
=
new
ApplicationManager
();
mNavBar
=
new
NavBar
(
this
);
}
}
android/java/org/anbox/NavBar.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.app.ActivityManager
;
...
...
android/java/org/anbox/NavigationBarView.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.content.Context
;
...
...
android/java/org/anbox/NotificationListener.java
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
org.anbox
;
import
android.app.Service
;
...
...
android/service/main.cpp
0 → 100644
浏览文件 @
cbd43fb7
/*
* Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
int
main
(
int
,
char
**
)
{
return
0
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录