Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Custom Android webview ?
Forum Updated to NodeBB v4.3 + New Features

Custom Android webview ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
14 Posts 3 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jhayar

    As i said earlier , QWebView has existing vulnerability when scanned in pentool , this is Javascript Enabled which is rated Medium Risk , disabling javascript in Qt WebView doesn't fix it.

    so i need to create own android webview to remove that medium risk

    TomZT Offline
    TomZT Offline
    TomZ
    wrote on last edited by
    #5

    @jhayar can you share the NIST CVE number of the security vulnerability you are referring to?

    J 1 Reply Last reply
    0
    • TomZT TomZ

      @jhayar can you share the NIST CVE number of the security vulnerability you are referring to?

      J Offline
      J Offline
      jhayar
      wrote on last edited by jhayar
      #6

      @TomZ
      2743305a-9859-4ed2-8deb-919a60c97092-image.png

      I think QWebView by default javascript is enable. so disabling javascript in QWebView doesn't effect the WebView code from android java code .

      so i'm thinking to remove WebView in CMakeLists then create my own webview and add to Qt View . but there's no documentation how to use custom android native view .

      TomZT 1 Reply Last reply
      0
      • J jhayar

        @TomZ
        2743305a-9859-4ed2-8deb-919a60c97092-image.png

        I think QWebView by default javascript is enable. so disabling javascript in QWebView doesn't effect the WebView code from android java code .

        so i'm thinking to remove WebView in CMakeLists then create my own webview and add to Qt View . but there's no documentation how to use custom android native view .

        TomZT Offline
        TomZT Offline
        TomZ
        wrote on last edited by TomZ
        #7

        @jhayar thank you for the post.

        I think you misunderstood that report. The CWE index is not about vulnarabilities.

        additionally, the screenshot is weird. It refers to CWE 749, but the actual one is about something very different.

        https://cwe.mitre.org/data/definitions/749.html

        J 1 Reply Last reply
        0
        • TomZT TomZ

          @jhayar thank you for the post.

          I think you misunderstood that report. The CWE index is not about vulnarabilities.

          additionally, the screenshot is weird. It refers to CWE 749, but the actual one is about something very different.

          https://cwe.mitre.org/data/definitions/749.html

          J Offline
          J Offline
          jhayar
          wrote on last edited by
          #8

          @TomZ , i see thanks for the clarification and the link reference ,

          But , is there a way i can use my own custom android webview so i can remove that CWE report? , our infosec doesn't allow us to publish the app with that medium risk ,

          Thanks

          TomZT 1 Reply Last reply
          0
          • J jhayar

            @TomZ , i see thanks for the clarification and the link reference ,

            But , is there a way i can use my own custom android webview so i can remove that CWE report? , our infosec doesn't allow us to publish the app with that medium risk ,

            Thanks

            TomZT Offline
            TomZT Offline
            TomZ
            wrote on last edited by
            #9

            @jhayar said in Custom Android webview ?:

            is there a way i can use my own custom android webview

            Not using Qt classes.

            @jhayar said in Custom Android webview ?:

            our infosec doesn't allow us to publish the app with that medium risk ,

            that sounds like a problem your organization should fix, as the effect is clearly that you deliver worse code.

            J 1 Reply Last reply
            0
            • TomZT TomZ

              @jhayar said in Custom Android webview ?:

              is there a way i can use my own custom android webview

              Not using Qt classes.

              @jhayar said in Custom Android webview ?:

              our infosec doesn't allow us to publish the app with that medium risk ,

              that sounds like a problem your organization should fix, as the effect is clearly that you deliver worse code.

              J Offline
              J Offline
              jhayar
              wrote on last edited by jhayar
              #10

              @TomZ no , the detected is not from my code but the built in QWebView ,

              Not using Qt classes.

              Yes i know that it can't be done in Qt classes , but i believe QWebView is just extended anroid.webkit.WebView , so i also believe that there is a way we can use our own Webview extending android.webkit.WebView then add it in QT .

              but it is something Qt didnt create a documentation for that or they just simply dont want to disclose it .

              SGaistS 1 Reply Last reply
              0
              • J jhayar

                @TomZ no , the detected is not from my code but the built in QWebView ,

                Not using Qt classes.

                Yes i know that it can't be done in Qt classes , but i believe QWebView is just extended anroid.webkit.WebView , so i also believe that there is a way we can use our own Webview extending android.webkit.WebView then add it in QT .

                but it is something Qt didnt create a documentation for that or they just simply dont want to disclose it .

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #11

                @jhayar not disclose what ? The module is open source and available as the rest of Qt. Just clone it and modify it for your use case.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                J 1 Reply Last reply
                0
                • SGaistS SGaist

                  @jhayar not disclose what ? The module is open source and available as the rest of Qt. Just clone it and modify it for your use case.

                  J Offline
                  J Offline
                  jhayar
                  wrote on last edited by
                  #12

                  @SGaist what i mean for not disclosed is the documentation related on using /embedding native android view in QT , for example android.view.View / android.webkit.WebView

                  SGaistS 1 Reply Last reply
                  0
                  • J jhayar

                    @SGaist what i mean for not disclosed is the documentation related on using /embedding native android view in QT , for example android.view.View / android.webkit.WebView

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    @jhayar did you take a look at the QtWebView sources I linked in my previous answer ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jhayar
                      wrote on last edited by
                      #14

                      hello thank you for all the response trying to help me , will close this now , I already figured out how to use android native View and embed it to QT/QML , using QWindow::findWinId thank you

                      1 Reply Last reply
                      0
                      • J jhayar has marked this topic as solved on

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved