summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-h.choi <j-h.choi@samsung.com>2022-06-14 16:13:45 +0900
committer조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>2022-08-24 09:38:57 +0900
commit1cdab49c2d2a267f43d0ca5a4db2e0efe424cb3a (patch)
tree327acc8bea0fd3a77c8ca09a337d0b221b6ca3b6
parent667e87b9e2fd3879ba6100b7fde9295408f9c337 (diff)
downloadlauncher-1cdab49c2d2a267f43d0ca5a4db2e0efe424cb3a.tar.gz
launcher-1cdab49c2d2a267f43d0ca5a4db2e0efe424cb3a.tar.bz2
launcher-1cdab49c2d2a267f43d0ca5a4db2e0efe424cb3a.zip
Add the option to check Internet privilege in dotnettool for the FOTA
Change-Id: I74604e5145519db06f8a0b6f8bd57ba69707c190
-rw-r--r--NativeLauncher/CMakeLists.txt14
-rw-r--r--NativeLauncher/inc/privilege_common.h35
-rw-r--r--NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc25
-rw-r--r--NativeLauncher/tool/dotnettool.cc7
-rw-r--r--NativeLauncher/tool/privilege_common.cc101
-rw-r--r--packaging/715.dotnet_regen_app_ni.patch.sh1
-rw-r--r--packaging/dotnet-launcher.spec3
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.sln31
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.cs22
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.csproj27
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/shared/res/Launcher_TC_PLUGIN_09.Tizen.pngbin0 -> 10097 bytes
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/tizen-manifest.xml16
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.cs45
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.csproj11
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.sln31
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.cs22
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.csproj27
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/shared/res/Launcher_TC_PLUGIN_10.Tizen.pngbin0 -> 10097 bytes
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/tizen-manifest.xml16
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.cs45
-rw-r--r--tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.csproj11
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.sln31
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.cs22
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.csproj27
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/shared/res/Launcher_TC_TOOL_10.Tizen.pngbin0 -> 10097 bytes
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/tizen-manifest.xml14
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.cs45
-rw-r--r--tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.csproj11
-rwxr-xr-xtests/TCs/2_PLUGIN/PLUGIN.py54
-rw-r--r--tests/TCs/2_PLUGIN/README.md10
-rw-r--r--tests/TCs/6_TOOL/README.md5
-rwxr-xr-xtests/TCs/6_TOOL/TOOL.py39
32 files changed, 715 insertions, 33 deletions
diff --git a/NativeLauncher/CMakeLists.txt b/NativeLauncher/CMakeLists.txt
index 19727fb..28ee598 100644
--- a/NativeLauncher/CMakeLists.txt
+++ b/NativeLauncher/CMakeLists.txt
@@ -206,6 +206,14 @@ ADD_LIBRARY(${PROFILE_COMMON} SHARED ${${PROFILE_COMMON}_SOURCE_FILES})
SET_TARGET_PROPERTIES(${PROFILE_COMMON} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS_LIB})
TARGET_LINK_LIBRARIES(${PROFILE_COMMON} ${${PROJECT_NAME}_LDFLAGS} ${DOTNET_LAUNCHER_UTIL})
+SET(PRIVILEGE_COMMON "privilege_common")
+SET(${PRIVILEGE_COMMON}_SOURCE_FILES
+ tool/privilege_common.cc
+)
+ADD_LIBRARY(${PRIVILEGE_COMMON} SHARED ${${PRIVILEGE_COMMON}_SOURCE_FILES})
+SET_TARGET_PROPERTIES(${PRIVILEGE_COMMON} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS_LIB})
+TARGET_LINK_LIBRARIES(${PRIVILEGE_COMMON} ${${PROJECT_NAME}_LDFLAGS} ${DOTNET_LAUNCHER_UTIL})
+
SET(MULTI_TARGET_RESOLVER "multi_target_resolver")
SET(${MULTI_TARGET_RESOLVER}_SOURCE_FILES
tool/multi_target_resolver.cc
@@ -228,7 +236,7 @@ SET(${DOTNETTOOL}_SOURCE_FILES
)
ADD_EXECUTABLE(${DOTNETTOOL} ${${DOTNETTOOL}_SOURCE_FILES})
SET_TARGET_PROPERTIES(${DOTNETTOOL} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS_EXE})
-TARGET_LINK_LIBRARIES(${DOTNETTOOL} ${${PROJECT_NAME}_LDFLAGS} "-pie" ${DOTNET_LAUNCHER_UTIL} ${NI_COMMON} ${TAC_COMMON} ${PROFILE_COMMON} ${MULTI_TARGET_RESOLVER})
+TARGET_LINK_LIBRARIES(${DOTNETTOOL} ${${PROJECT_NAME}_LDFLAGS} "-pie" ${DOTNET_LAUNCHER_UTIL} ${NI_COMMON} ${TAC_COMMON} ${PROFILE_COMMON} ${PRIVILEGE_COMMON} ${MULTI_TARGET_RESOLVER})
SET(PREFER_DOTNET_AOT_PLUGIN "prefer_dotnet_aot_plugin")
SET(${PREFER_DOTNET_AOT_PLUGIN}_SOURCE_FILES
@@ -252,7 +260,7 @@ SET(${DOTNET_APPTYPE_PLUGIN}_SOURCE_FILES
)
ADD_LIBRARY(${DOTNET_APPTYPE_PLUGIN} SHARED ${${DOTNET_APPTYPE_PLUGIN}_SOURCE_FILES})
SET_TARGET_PROPERTIES(${DOTNET_APPTYPE_PLUGIN} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS_LIB})
-TARGET_LINK_LIBRARIES(${DOTNET_APPTYPE_PLUGIN} ${${PROJECT_NAME}_LDFLAGS} ${DOTNET_LAUNCHER_UTIL} ${MULTI_TARGET_RESOLVER} ${NI_COMMON} ${PROFILE_COMMON})
+TARGET_LINK_LIBRARIES(${DOTNET_APPTYPE_PLUGIN} ${${PROJECT_NAME}_LDFLAGS} ${DOTNET_LAUNCHER_UTIL} ${MULTI_TARGET_RESOLVER} ${NI_COMMON} ${PROFILE_COMMON} ${PRIVILEGE_COMMON})
# Build for test plugin library (libdotnet-plugin.so)
IF(DEFINED BUILD_DOTNET_PLUGIN)
@@ -276,6 +284,7 @@ INSTALL(TARGETS ${DOTNET_HYDRA_LOADER} DESTINATION ${BINDIR})
INSTALL(TARGETS ${TAC_COMMON} DESTINATION ${LIBDIR})
INSTALL(TARGETS ${NI_COMMON} DESTINATION ${LIBDIR})
INSTALL(TARGETS ${PROFILE_COMMON} DESTINATION ${LIBDIR})
+INSTALL(TARGETS ${PRIVILEGE_COMMON} DESTINATION ${LIBDIR})
INSTALL(TARGETS ${MULTI_TARGET_RESOLVER} DESTINATION ${LIBDIR})
INSTALL(TARGETS ${TPATOOL} DESTINATION ${BINDIR})
INSTALL(TARGETS ${DOTNETTOOL} DESTINATION ${BINDIR})
@@ -293,6 +302,7 @@ INSTALL(FILES inc/dotnet_launcher_plugin.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES inc/ni_common.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES inc/tac_common.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES inc/profile_common.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES inc/privilege_common.h DESTINATION ${INCLUDEDIR})
INSTALL(FILES ../dotnet-launcher.pc DESTINATION ${LIBDIR}/pkgconfig)
INSTALL(FILES dotnet-launcher.info DESTINATION /usr/share/parser-plugins)
IF(DEFINED BUILD_DOTNET_PLUGIN)
diff --git a/NativeLauncher/inc/privilege_common.h b/NativeLauncher/inc/privilege_common.h
new file mode 100644
index 0000000..1f4dc74
--- /dev/null
+++ b/NativeLauncher/inc/privilege_common.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd 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.
+ */
+
+#ifndef __PRIVILEGE_COMMON_H__
+#define __PRIVILEGE_COMMON_H__
+
+#include <functional>
+#include <string>
+
+/**
+ * @brief check internet privilege and disable ipv6
+ * @param[in] pkgId package id
+ * @param[in] rootPath root path
+ */
+void checkInternetPrivilegeAndDisableIPv6(const char* pkgId, const std::string& rootPath);
+
+/**
+ * @brief check all app privilege
+ */
+void checkAllAppPrivilege();
+
+#endif /* __PRIVILEGE_COMMON_H__ */
diff --git a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc
index c5c9786..48e0ed3 100644
--- a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc
+++ b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc
@@ -19,11 +19,9 @@
#include "multi_target_resolver.h"
#include "ni_common.h"
#include "profile_common.h"
+#include "privilege_common.h"
#include "launcher_env.h"
-#include <vector>
-#include <app-runtime.h>
-
#ifdef LOG_TAG
#undef LOG_TAG
#endif
@@ -33,25 +31,6 @@ typedef struct _xmlDoc xmlDoc;
typedef xmlDoc* xmlDocPtr;
bool pluginInstalled = false;
-static const char* INTERNET_PRIVILEGE = "http://tizen.org/privilege/internet";
-static int UID_OWNER = 5001;
-
-static void checkPrivilegeAndDisableIPv6(const char* pkgId, const std::string& rootPath)
-{
- int res = 0;
- if (security_manager_app_has_privilege(pkgId, INTERNET_PRIVILEGE, UID_OWNER, &res) == SECURITY_MANAGER_SUCCESS) {
- if (res != 1) {
- std::string filePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
- std::ofstream output(filePath);
- if (exist(filePath)) {
- _INFO("File to disable IPv6 is created successfully");
- } else {
- _ERR("Failed to create file to disable IPv6 [%s]", pkgId);
- }
- output.close();
- }
- }
-}
extern "C" int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId)
{
@@ -86,7 +65,7 @@ extern "C" int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId)
_ERR("Failed to resolve platform specific resources of nuget");
}
- checkPrivilegeAndDisableIPv6(pkgId, rootPath);
+ checkInternetPrivilegeAndDisableIPv6(pkgId, rootPath);
return 0;
}
diff --git a/NativeLauncher/tool/dotnettool.cc b/NativeLauncher/tool/dotnettool.cc
index 749ad36..99bc00c 100644
--- a/NativeLauncher/tool/dotnettool.cc
+++ b/NativeLauncher/tool/dotnettool.cc
@@ -18,6 +18,7 @@
#include "ni_common.h"
#include "tac_common.h"
#include "profile_common.h"
+#include "privilege_common.h"
#include "multi_target_resolver.h"
#include "log.h"
@@ -54,6 +55,8 @@ void DisplayUsage() {
" (this option should be run as root)\n"
" --rm-all-app-profile - Remove application profile of all packages for all users\n"
" (this option should be run as root)\n"
+ " --check-all-app-privilege - Chcek application privilege of all package\n"
+ " (this option should be run as root)\n"
"\n"
"Options:\n"
" --mibc - Specify Mibc files. Sepatated with ':'.\n"
@@ -372,6 +375,10 @@ int main(int argc, char* argv[])
else if (cmd == "--rm-all-app-profile") {
removeAllAppProfileData();
}
+ //sh-3.2# dotnettool --check-all-app-privilege
+ else if (cmd == "--check-all-app-privilege") {
+ checkAllAppPrivilege();
+ }
else {
_SERR("Unknown option [%s]", cmd.c_str());
DisplayUsage();
diff --git a/NativeLauncher/tool/privilege_common.cc b/NativeLauncher/tool/privilege_common.cc
new file mode 100644
index 0000000..8b7ba2d
--- /dev/null
+++ b/NativeLauncher/tool/privilege_common.cc
@@ -0,0 +1,101 @@
+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd 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.
+ */
+
+#include "log.h"
+#include "utils.h"
+#include "privilege_common.h"
+#include "launcher_env.h"
+
+#include <app-runtime.h>
+
+static const char* INTERNET_PRIVILEGE = "http://tizen.org/privilege/internet";
+static int UID_OWNER = 5001;
+
+void checkInternetPrivilegeAndDisableIPv6(const char* pkgId, const std::string& rootPath)
+{
+ int res = 0;
+ if (security_manager_app_has_privilege(pkgId, INTERNET_PRIVILEGE, UID_OWNER, &res) == SECURITY_MANAGER_SUCCESS) {
+ if (res != 1) {
+ std::string filePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
+ std::ofstream output(filePath);
+ if (exist(filePath)) {
+ _INFO("File to disable IPv6 is created successfully");
+ } else {
+ _ERR("Failed to create file to disable IPv6 [%s]", pkgId);
+ }
+ output.close();
+ }
+ }
+}
+
+static int checkAppPrivilegeListCb(pkgmgrinfo_appinfo_h handle, void *user_data)
+{
+ char *pkgId = NULL;
+ int ret = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgId);
+ if (ret != PMINFO_R_OK || pkgId == NULL) {
+ _SERR("Failed to get package id");
+ return 0;
+ }
+
+ char *rootPath = NULL;
+ ret = pkgmgrinfo_appinfo_get_root_path(handle, &rootPath);
+ if (ret != PMINFO_R_OK) {
+ _SERR("Failed to get root path");
+ return 0;
+ }
+
+ checkInternetPrivilegeAndDisableIPv6(pkgId, rootPath);
+
+ return 0;
+}
+
+static void checkAppPrivilegeByAppType(const char* type)
+{
+ pkgmgrinfo_appinfo_filter_h filter;
+
+ int ret = pkgmgrinfo_appinfo_filter_create(&filter);
+ if (ret != PMINFO_R_OK) {
+ _SERR("Failed to create appinfo filter");
+ return;
+ }
+
+ ret = pkgmgrinfo_appinfo_filter_add_string(filter, PMINFO_APPINFO_PROP_APP_TYPE, type);
+ if (ret != PMINFO_R_OK) {
+ pkgmgrinfo_appinfo_filter_destroy(filter);
+ _SERR("Failed to add appinfo filter (%s)", type);
+ return;
+ }
+
+ ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(filter, checkAppPrivilegeListCb, NULL);
+ if (ret != PMINFO_R_OK) {
+ _SERR("Failed to pkgmgrinfo_pkginfo_filter_foreach_pkginfo");
+ pkgmgrinfo_appinfo_filter_destroy(filter);
+ return;
+ }
+
+ pkgmgrinfo_appinfo_filter_destroy(filter);
+
+ return;
+}
+
+void checkAllAppPrivilege()
+{
+ std::vector<const char*> appTypeList = {"dotnet", "dotnet-nui", "dotnet-inhouse"};
+
+ for (auto& type : appTypeList) {
+ checkAppPrivilegeByAppType(type);
+ }
+}
diff --git a/packaging/715.dotnet_regen_app_ni.patch.sh b/packaging/715.dotnet_regen_app_ni.patch.sh
index fe3037c..c877058 100644
--- a/packaging/715.dotnet_regen_app_ni.patch.sh
+++ b/packaging/715.dotnet_regen_app_ni.patch.sh
@@ -8,3 +8,4 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin
/usr/bin/dotnettool --ni-regen-all-app --skip-ro-app
/usr/bin/dotnettool --resolve-all-app
/usr/bin/dotnettool --rm-all-app-profile
+/usr/bin/dotnettool --check-all-app-privilege
diff --git a/packaging/dotnet-launcher.spec b/packaging/dotnet-launcher.spec
index 0282891..88c3e93 100644
--- a/packaging/dotnet-launcher.spec
+++ b/packaging/dotnet-launcher.spec
@@ -218,6 +218,7 @@ chsmack -a User /usr/bin/dotnet-nui-loader
%{_libdir}/libni_common.so
%{_libdir}/libtac_common.so
%{_libdir}/libprofile_common.so
+%{_libdir}/libprivilege_common.so
%{_libdir}/libmulti_target_resolver.so
%{_tmpfilesdir}/%{name}.conf
/usr/share/parser-plugins/dotnet-launcher.info
@@ -236,12 +237,14 @@ chsmack -a User /usr/bin/dotnet-nui-loader
%{_includedir}/ni_common.h
%{_includedir}/tac_common.h
%{_includedir}/profile_common.h
+%{_includedir}/privilege_common.h
%{_includedir}/dotnet_launcher_plugin.h
%{_includedir}/coreclr_host.h
%{_libdir}/libdotnet_launcher_util.so
%{_libdir}/libni_common.so
%{_libdir}/libtac_common.so
%{_libdir}/libprofile_common.so
+%{_libdir}/libprivilege_common.so
%{_libdir}/pkgconfig/dotnet-launcher.pc
%{_framework_dir}/Tizen.Runtime.pdb
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.sln b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.sln
new file mode 100644
index 0000000..025ece1
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31727.386
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_PLUGIN_09", "Launcher_TC_PLUGIN_09\Launcher_TC_PLUGIN_09\Launcher_TC_PLUGIN_09.csproj", "{4E74FF59-5B11-42A8-B5B2-445E351D8002}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_PLUGIN_09.Tizen", "Launcher_TC_PLUGIN_09\Launcher_TC_PLUGIN_09.Tizen\Launcher_TC_PLUGIN_09.Tizen.csproj", "{9229D8E3-0ED9-4E6C-905A-93CF9C749672}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {4E74FF59-5B11-42A8-B5B2-445E351D8002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4E74FF59-5B11-42A8-B5B2-445E351D8002}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4E74FF59-5B11-42A8-B5B2-445E351D8002}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4E74FF59-5B11-42A8-B5B2-445E351D8002}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9229D8E3-0ED9-4E6C-905A-93CF9C749672}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9229D8E3-0ED9-4E6C-905A-93CF9C749672}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9229D8E3-0ED9-4E6C-905A-93CF9C749672}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9229D8E3-0ED9-4E6C-905A-93CF9C749672}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {9AEC76D8-7CD4-40F6-A3A8-E69561DBB25E}
+ EndGlobalSection
+EndGlobal
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.cs b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.cs
new file mode 100644
index 0000000..b6966f0
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.cs
@@ -0,0 +1,22 @@
+using System;
+using Xamarin.Forms;
+
+namespace Launcher_TC_PLUGIN_09
+{
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
+ {
+ protected override void OnCreate()
+ {
+ base.OnCreate();
+
+ LoadApplication(new App());
+ }
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ Forms.Init(app);
+ app.Run(args);
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.csproj b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.csproj
new file mode 100644
index 0000000..a4c9139
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/Launcher_TC_PLUGIN_09.Tizen.csproj
@@ -0,0 +1,27 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>tizen60</TargetFramework>
+ <AssemblyName>Launcher_TC_PLUGIN_09.Tizen</AssemblyName>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugType>portable</DebugType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>None</DebugType>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Folder Include="lib\" />
+ <Folder Include="res\" />
+ </ItemGroup>
+
+
+ <ItemGroup>
+ <ProjectReference Include="..\Launcher_TC_PLUGIN_09\Launcher_TC_PLUGIN_09.csproj" />
+ </ItemGroup>
+
+
+</Project>
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/shared/res/Launcher_TC_PLUGIN_09.Tizen.png b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/shared/res/Launcher_TC_PLUGIN_09.Tizen.png
new file mode 100644
index 0000000..9f3cb98
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/shared/res/Launcher_TC_PLUGIN_09.Tizen.png
Binary files differ
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/tizen-manifest.xml b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..9a61066
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.Tizen/tizen-manifest.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" api-version="5.5" package="org.tizen.example.Launcher_TC_PLUGIN_09.Tizen" version="1.0.0">
+ <profile name="common" />
+ <ui-application appid="org.tizen.example.Launcher_TC_PLUGIN_09.Tizen"
+ exec="Launcher_TC_PLUGIN_09.Tizen.dll"
+ type="dotnet"
+ multiple="false"
+ taskmanage="true"
+ nodisplay="false"
+ launch_mode="single"
+ api-version="6">
+ <label>Launcher_TC_PLUGIN_09.Tizen</label>
+ <icon>Launcher_TC_PLUGIN_09.Tizen.png</icon>
+ <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
+ </ui-application>
+</manifest>
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.cs b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.cs
new file mode 100644
index 0000000..64ca038
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Xamarin.Forms;
+
+namespace Launcher_TC_PLUGIN_09
+{
+ public class App : Application
+ {
+ public App()
+ {
+ // The root page of your application
+ MainPage = new ContentPage
+ {
+ Content = new StackLayout
+ {
+ VerticalOptions = LayoutOptions.Center,
+ Children = {
+ new Label {
+ HorizontalTextAlignment = TextAlignment.Center,
+ Text = "Welcome to Xamarin Forms!"
+ }
+ }
+ }
+ };
+ }
+
+ protected override void OnStart()
+ {
+ // Handle when your app starts
+ }
+
+ protected override void OnSleep()
+ {
+ // Handle when your app sleeps
+ }
+
+ protected override void OnResume()
+ {
+ // Handle when your app resumes
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.csproj b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.csproj
new file mode 100644
index 0000000..be3d00f
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09/Launcher_TC_PLUGIN_09.csproj
@@ -0,0 +1,11 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Xamarin.Forms" Version="4.6.0.967" />
+ </ItemGroup>
+
+</Project>
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.sln b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.sln
new file mode 100644
index 0000000..8568d5f
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31727.386
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_PLUGIN_10", "Launcher_TC_PLUGIN_10\Launcher_TC_PLUGIN_10\Launcher_TC_PLUGIN_10.csproj", "{2606DC60-FB43-4D6E-8B65-FA01CF966D6E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_PLUGIN_10.Tizen", "Launcher_TC_PLUGIN_10\Launcher_TC_PLUGIN_10.Tizen\Launcher_TC_PLUGIN_10.Tizen.csproj", "{47D8D4A8-AEDB-4995-B090-BA218137ADA7}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2606DC60-FB43-4D6E-8B65-FA01CF966D6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2606DC60-FB43-4D6E-8B65-FA01CF966D6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2606DC60-FB43-4D6E-8B65-FA01CF966D6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2606DC60-FB43-4D6E-8B65-FA01CF966D6E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {47D8D4A8-AEDB-4995-B090-BA218137ADA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {47D8D4A8-AEDB-4995-B090-BA218137ADA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {47D8D4A8-AEDB-4995-B090-BA218137ADA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {47D8D4A8-AEDB-4995-B090-BA218137ADA7}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {B74D80B9-A84E-4030-A754-346A1AB54157}
+ EndGlobalSection
+EndGlobal
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.cs b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.cs
new file mode 100644
index 0000000..cc13a68
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.cs
@@ -0,0 +1,22 @@
+using System;
+using Xamarin.Forms;
+
+namespace Launcher_TC_PLUGIN_10
+{
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
+ {
+ protected override void OnCreate()
+ {
+ base.OnCreate();
+
+ LoadApplication(new App());
+ }
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ Forms.Init(app);
+ app.Run(args);
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.csproj b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.csproj
new file mode 100644
index 0000000..98cf686
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/Launcher_TC_PLUGIN_10.Tizen.csproj
@@ -0,0 +1,27 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>tizen60</TargetFramework>
+ <AssemblyName>Launcher_TC_PLUGIN_10.Tizen</AssemblyName>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugType>portable</DebugType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>None</DebugType>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Folder Include="lib\" />
+ <Folder Include="res\" />
+ </ItemGroup>
+
+
+ <ItemGroup>
+ <ProjectReference Include="..\Launcher_TC_PLUGIN_10\Launcher_TC_PLUGIN_10.csproj" />
+ </ItemGroup>
+
+
+</Project>
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/shared/res/Launcher_TC_PLUGIN_10.Tizen.png b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/shared/res/Launcher_TC_PLUGIN_10.Tizen.png
new file mode 100644
index 0000000..9f3cb98
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/shared/res/Launcher_TC_PLUGIN_10.Tizen.png
Binary files differ
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/tizen-manifest.xml b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..814ac29
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.Tizen/tizen-manifest.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="org.tizen.example.Launcher_TC_PLUGIN_10.Tizen" version="1.0.0" api-version="5.5" xmlns="http://tizen.org/ns/packages">
+ <profile name="common" />
+ <ui-application appid="org.tizen.example.Launcher_TC_PLUGIN_10.Tizen" exec="Launcher_TC_PLUGIN_10.Tizen.dll" multiple="false" nodisplay="false" taskmanage="true" api-version="6" type="dotnet" launch_mode="single">
+ <label>Launcher_TC_PLUGIN_10.Tizen</label>
+ <icon>Launcher_TC_PLUGIN_10.Tizen.png</icon>
+ <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
+ <splash-screens />
+ </ui-application>
+ <shortcut-list />
+ <privileges>
+ <privilege>http://tizen.org/privilege/internet</privilege>
+ </privileges>
+ <dependencies />
+ <provides-appdefined-privileges />
+</manifest>
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.cs b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.cs
new file mode 100644
index 0000000..097d4a9
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Xamarin.Forms;
+
+namespace Launcher_TC_PLUGIN_10
+{
+ public class App : Application
+ {
+ public App()
+ {
+ // The root page of your application
+ MainPage = new ContentPage
+ {
+ Content = new StackLayout
+ {
+ VerticalOptions = LayoutOptions.Center,
+ Children = {
+ new Label {
+ HorizontalTextAlignment = TextAlignment.Center,
+ Text = "Welcome to Xamarin Forms!"
+ }
+ }
+ }
+ };
+ }
+
+ protected override void OnStart()
+ {
+ // Handle when your app starts
+ }
+
+ protected override void OnSleep()
+ {
+ // Handle when your app sleeps
+ }
+
+ protected override void OnResume()
+ {
+ // Handle when your app resumes
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.csproj b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.csproj
new file mode 100644
index 0000000..be3d00f
--- /dev/null
+++ b/tests/Apps/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10/Launcher_TC_PLUGIN_10.csproj
@@ -0,0 +1,11 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Xamarin.Forms" Version="4.6.0.967" />
+ </ItemGroup>
+
+</Project>
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.sln b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.sln
new file mode 100644
index 0000000..e7d75d6
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31727.386
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_TOOL_10", "Launcher_TC_TOOL_10\Launcher_TC_TOOL_10\Launcher_TC_TOOL_10.csproj", "{253A4C84-2488-4A71-A07E-B90FF118D7D0}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher_TC_TOOL_10.Tizen", "Launcher_TC_TOOL_10\Launcher_TC_TOOL_10.Tizen\Launcher_TC_TOOL_10.Tizen.csproj", "{C6BDFE5E-5BEE-4170-9E0F-8F198AE30628}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {253A4C84-2488-4A71-A07E-B90FF118D7D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {253A4C84-2488-4A71-A07E-B90FF118D7D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {253A4C84-2488-4A71-A07E-B90FF118D7D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {253A4C84-2488-4A71-A07E-B90FF118D7D0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C6BDFE5E-5BEE-4170-9E0F-8F198AE30628}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C6BDFE5E-5BEE-4170-9E0F-8F198AE30628}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C6BDFE5E-5BEE-4170-9E0F-8F198AE30628}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C6BDFE5E-5BEE-4170-9E0F-8F198AE30628}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C6424644-C8C2-42A2-B35F-B87B9474C8F7}
+ EndGlobalSection
+EndGlobal
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.cs b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.cs
new file mode 100644
index 0000000..590ba0e
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.cs
@@ -0,0 +1,22 @@
+using System;
+using Xamarin.Forms;
+
+namespace Launcher_TC_TOOL_10
+{
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
+ {
+ protected override void OnCreate()
+ {
+ base.OnCreate();
+
+ LoadApplication(new App());
+ }
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ Forms.Init(app);
+ app.Run(args);
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.csproj b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.csproj
new file mode 100644
index 0000000..0781a13
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/Launcher_TC_TOOL_10.Tizen.csproj
@@ -0,0 +1,27 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>tizen60</TargetFramework>
+ <AssemblyName>Launcher_TC_TOOL_10.Tizen</AssemblyName>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugType>portable</DebugType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>None</DebugType>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Folder Include="lib\" />
+ <Folder Include="res\" />
+ </ItemGroup>
+
+
+ <ItemGroup>
+ <ProjectReference Include="..\Launcher_TC_TOOL_10\Launcher_TC_TOOL_10.csproj" />
+ </ItemGroup>
+
+
+</Project>
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/shared/res/Launcher_TC_TOOL_10.Tizen.png b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/shared/res/Launcher_TC_TOOL_10.Tizen.png
new file mode 100644
index 0000000..9f3cb98
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/shared/res/Launcher_TC_TOOL_10.Tizen.png
Binary files differ
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/tizen-manifest.xml b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..8b1fe38
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.Tizen/tizen-manifest.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="org.tizen.example.Launcher_TC_TOOL_10.Tizen" version="1.0.0" api-version="5.5" xmlns="http://tizen.org/ns/packages">
+ <profile name="common" />
+ <ui-application appid="org.tizen.example.Launcher_TC_TOOL_10.Tizen" exec="Launcher_TC_TOOL_10.Tizen.dll" multiple="false" nodisplay="false" taskmanage="true" api-version="6" type="dotnet" launch_mode="single">
+ <label>Launcher_TC_TOOL_10.Tizen</label>
+ <icon>Launcher_TC_TOOL_10.Tizen.png</icon>
+ <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
+ <splash-screens />
+ </ui-application>
+ <shortcut-list />
+ <privileges />
+ <dependencies />
+ <provides-appdefined-privileges />
+</manifest>
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.cs b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.cs
new file mode 100644
index 0000000..e55fb56
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Xamarin.Forms;
+
+namespace Launcher_TC_TOOL_10
+{
+ public class App : Application
+ {
+ public App()
+ {
+ // The root page of your application
+ MainPage = new ContentPage
+ {
+ Content = new StackLayout
+ {
+ VerticalOptions = LayoutOptions.Center,
+ Children = {
+ new Label {
+ HorizontalTextAlignment = TextAlignment.Center,
+ Text = "Welcome to Xamarin Forms!"
+ }
+ }
+ }
+ };
+ }
+
+ protected override void OnStart()
+ {
+ // Handle when your app starts
+ }
+
+ protected override void OnSleep()
+ {
+ // Handle when your app sleeps
+ }
+
+ protected override void OnResume()
+ {
+ // Handle when your app resumes
+ }
+ }
+}
diff --git a/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.csproj b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.csproj
new file mode 100644
index 0000000..be3d00f
--- /dev/null
+++ b/tests/Apps/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10/Launcher_TC_TOOL_10.csproj
@@ -0,0 +1,11 @@
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Xamarin.Forms" Version="4.6.0.967" />
+ </ItemGroup>
+
+</Project>
diff --git a/tests/TCs/2_PLUGIN/PLUGIN.py b/tests/TCs/2_PLUGIN/PLUGIN.py
index 3dfdf39..6d19123 100755
--- a/tests/TCs/2_PLUGIN/PLUGIN.py
+++ b/tests/TCs/2_PLUGIN/PLUGIN.py
@@ -259,6 +259,50 @@ def TC_08():
return "PASS"
+# The Launcher_TC_PLUGIN_09 application must have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file exist.
+def TC_09():
+ sln_name = "Launcher_TC_PLUGIN_09.Tizen"
+
+ tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
+ if tpk_path == None:
+ return f"FAIL : Get the tpk path for {sln_name}"
+
+ if "OK" not in app_install(f"{tpk_path}"):
+ return f"FAIL : Install the application for {tpk_path}"
+
+ pkg_id = f"org.tizen.example.Launcher_TC_PLUGIN_09.Tizen"
+
+ root_path = get_root_path(f"{pkg_id}")
+ if root_path == "None":
+ return f"FAIL : Get the root path for {pkg_id}"
+
+ if not exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"):
+ return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should exist"
+
+ return "PASS"
+
+# The Launcher_TC_PLUGIN_10 application must not have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file.
+def TC_10():
+ sln_name = "Launcher_TC_PLUGIN_10.Tizen"
+
+ tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
+ if tpk_path == None:
+ return f"FAIL : Get the tpk path for {sln_name}"
+
+ if "OK" not in app_install(f"{tpk_path}"):
+ return f"FAIL : Install the application for {tpk_path}"
+
+ pkg_id = f"org.tizen.example.Launcher_TC_PLUGIN_10.Tizen"
+
+ root_path = get_root_path(f"{pkg_id}")
+ if root_path == "None":
+ return f"FAIL : Get the root path for {pkg_id}"
+
+ if exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"):
+ return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should not exist"
+
+ return "PASS"
+
# Run the test
def run():
cmd(f"root on")
@@ -286,6 +330,8 @@ def clean():
cmd(f"uninstall org.tizen.example.Launcher_TC_PLUGIN_06.Tizen")
cmd(f"uninstall org.tizen.example.Launcher_TC_PLUGIN_07.Tizen")
cmd(f"uninstall org.tizen.example.Launcher_TC_PLUGIN_08.Tizen")
+ cmd(f"uninstall org.tizen.example.Launcher_TC_PLUGIN_09.Tizen")
+ cmd(f"uninstall org.tizen.example.Launcher_TC_PLUGIN_10.Tizen")
# Main entry point
def main():
@@ -303,7 +349,7 @@ def main():
else:
tc_array.append(funcMap[tc_num])
else:
- tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_07, TC_08]
+ tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_07, TC_08, TC_09, TC_10]
global serial
if len(sys.argv) >= 2 and "TC_" not in sys.argv[1]:
@@ -323,9 +369,9 @@ def main():
funcMap = {
-'TC_01': TC_01, 'TC_02': TC_02, 'TC_03': TC_03, 'TC_04': TC_04, 'TC_05': TC_05, 'TC_06': TC_06, 'TC_07': TC_07, 'TC_08': TC_08,
-'PLUGIN_TC_01': TC_01, 'PLUGIN_TC_02': TC_02, 'PLUGIN_TC_03': TC_03, 'PLUGIN_TC_04': TC_04,
-'PLUGIN_TC_05': TC_05, 'PLUGIN_TC_06': TC_06, 'PLUGIN_TC_07': TC_07, 'PLUGIN_TC_08': TC_08
+'TC_01': TC_01, 'TC_02': TC_02, 'TC_03': TC_03, 'TC_04': TC_04, 'TC_05': TC_05, 'TC_06': TC_06, 'TC_07': TC_07, 'TC_08': TC_08, 'TC_09': TC_09, 'TC_10': TC_10,
+'PLUGIN_TC_01': TC_01, 'PLUGIN_TC_02': TC_02, 'PLUGIN_TC_03': TC_03, 'PLUGIN_TC_04': TC_04, 'PLUGIN_TC_05': TC_05,
+'PLUGIN_TC_06': TC_06, 'PLUGIN_TC_07': TC_07, 'PLUGIN_TC_08': TC_08, 'PLUGIN_TC_09': TC_09, 'PLUGIN_TC_10': TC_10
}
diff --git a/tests/TCs/2_PLUGIN/README.md b/tests/TCs/2_PLUGIN/README.md
index 29def58..74d9880 100644
--- a/tests/TCs/2_PLUGIN/README.md
+++ b/tests/TCs/2_PLUGIN/README.md
@@ -88,6 +88,16 @@ launcher/tests/TCs/2_PLUGIN$ ./PLUGIN.py TC_01
3. The `library(.so)` with `same SHA` value must exist in the application and TLC.
4. The `library(.so)` should be a symbolic link.
5. The arch of the target and the arch of the library must match.
+* TC_09
+```
+ PASS : The Launcher_TC_PLUGIN_09 application must have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file exist.
+```
+ 1. Applications without Internet privilege must have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file.
+* TC_10
+```
+ PASS : The Launcher_TC_PLUGIN_10 application must not have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file.
+```
+ 1. Applications with Internet privilege must not have a ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file.
----
### Note
diff --git a/tests/TCs/6_TOOL/README.md b/tests/TCs/6_TOOL/README.md
index 2dd0dd8..47d24d8 100644
--- a/tests/TCs/6_TOOL/README.md
+++ b/tests/TCs/6_TOOL/README.md
@@ -151,6 +151,11 @@ launcher/tests/TCs/6_TOOL$ ./TOOL.py TC_01
PASS : Create native image for mscorlib.dll by adding option --no-pipeline.
```
1. sh-3.2# dotnettool --ni-dll --no-pipeline --print-cmd /usr/share/dotnet.tizen/netcoreapp/mscorlib.dll
+* TC_25
+```
+ PASS : Applications that do not have Internet privilege must have ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file created.
+```
+ 1. sh-3.2# dotnettool --check-all-app-privilege
----
### Note
diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py
index d6bcd45..ae53ce5 100755
--- a/tests/TCs/6_TOOL/TOOL.py
+++ b/tests/TCs/6_TOOL/TOOL.py
@@ -611,7 +611,36 @@ def TC_24():
return "PASS"
-#def TC_25():
+# Applications that do not have Internet privilege must have ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file created.
+def TC_25():
+ sln_name = "Launcher_TC_TOOL_10.Tizen"
+
+ tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
+ if tpk_path == None:
+ return f"FAIL : Get the tpk path for {sln_name}"
+
+ if "OK" not in app_install(f"{tpk_path}"):
+ return f"FAIL : Install the application for {tpk_path}"
+
+ pkg_id = f"org.tizen.example.Launcher_TC_TOOL_10.Tizen"
+
+ root_path = get_root_path(f"{pkg_id}")
+ if root_path == "None":
+ return f"FAIL : Get the root path for {pkg_id}"
+
+ if not exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"):
+ return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should exist"
+
+ cmd(f"shell mount -o remount,rw /")
+ cmd(f"shell rm {root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6")
+
+ cmd(f"shell dotnettool --check-all-app-privilege")
+ if not exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"):
+ return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should exist"
+
+ return "PASS"
+
+#def TC_26():
#dotnettool --rm-app-profile
#dotnettool --rm-all-app-profile
@@ -641,6 +670,7 @@ def clean():
cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_05.Tizen")
cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_06.Tizen")
cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_07.Tizen")
+ cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_10.Tizen")
cmd(f"shell rm {FRAMEWORK_DIR}Tizen.ni.dll")
cmd(f"shell rm {FRAMEWORK_DIR}Tizen.Log.ni.dll")
@@ -671,7 +701,7 @@ def main():
tc_array.append(funcMap[tc_num])
else:
# skip TC_07 (--r2r), TC_09 (--ibc-dir)
- tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_08, TC_10, TC_11, TC_12, TC_13, TC_14, TC_15, TC_16, TC_17, TC_18, TC_19, TC_20, TC_21, TC_22, TC_23, TC_24]
+ tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_08, TC_10, TC_11, TC_12, TC_13, TC_14, TC_15, TC_16, TC_17, TC_18, TC_19, TC_20, TC_21, TC_22, TC_23, TC_24, TC_25]
global serial
if len(sys.argv) >= 2 and "TC_" not in sys.argv[1]:
@@ -694,10 +724,11 @@ funcMap = {
'TC_01': TC_01, 'TC_02': TC_02, 'TC_03': TC_03, 'TC_04': TC_04, 'TC_05': TC_05, 'TC_06': TC_06,
'TC_07': TC_07, 'TC_08': TC_08, 'TC_09': TC_09, 'TC_10': TC_10, 'TC_11': TC_11, 'TC_12': TC_12,
'TC_13': TC_13, 'TC_14': TC_14, 'TC_15': TC_15, 'TC_16': TC_16, 'TC_17': TC_17, 'TC_18': TC_17_18,
-'TC_19': TC_19, 'TC_20': TC_20, 'TC_21': TC_21, 'TC_22' : TC_22, 'TC_23' : TC_23, 'TC_24' : TC_24,
+'TC_19': TC_19, 'TC_20': TC_20, 'TC_21': TC_21, 'TC_22' : TC_22, 'TC_23' : TC_23, 'TC_24' : TC_24, 'TC_25' : TC_25,
'TOOL_TC_01': TC_01, 'TOOL_TC_02': TC_02, 'TOOL_TC_03': TC_03, 'TOOL_TC_04': TC_04, 'TOOL_TC_05': TC_05, 'TOOL_TC_06': TC_06,
'TOOL_TC_07': TC_07, 'TOOL_TC_08': TC_08, 'TOOL_TC_09': TC_09, 'TOOL_TC_10': TC_10, 'TOOL_TC_11': TC_11, 'TOOL_TC_12': TC_12,
-'TOOL_TC_13': TC_13, 'TOOL_TC_14': TC_14, 'TOOL_TC_15': TC_15, 'TOOL_TC_16': TC_16, 'TOOL_TC_17': TC_17, 'TOOL_TC_18': TC_17_18, 'TOOL_TC_19': TC_19, 'TOOL_TC_20': TC_20, 'TOOL_TC_21': TC_21, 'TOOL_TC_22' : TC_22, 'TOOL_TC_23' : TC_23, 'TOOL_TC_24' : TC_24
+'TOOL_TC_13': TC_13, 'TOOL_TC_14': TC_14, 'TOOL_TC_15': TC_15, 'TOOL_TC_16': TC_16, 'TOOL_TC_17': TC_17, 'TOOL_TC_18': TC_17_18,
+'TOOL_TC_19': TC_19, 'TOOL_TC_20': TC_20, 'TOOL_TC_21': TC_21, 'TOOL_TC_22' : TC_22, 'TOOL_TC_23' : TC_23, 'TOOL_TC_24' : TC_24, 'TOOL_TC_25' : TC_25
}