Add the option to check Internet privilege in dotnettool for the FOTA
[platform/core/dotnet/launcher.git] / NativeLauncher / tool / dotnettool.cc
index 749ad36..99bc00c 100644 (file)
@@ -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();