UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Problem with permisions debugging newapp

    Scheduled Pinned Locked Moved App Development
    20 Posts 4 Posters 2.1k Views 2 Watching
    Loading More Posts
    • 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 Offline
        Josué
        last edited by

        same error hehe

        advocatuxA 1 Reply Last reply Reply Quote 0
        • advocatuxA Offline
          advocatux @Josué
          last edited by advocatux

          @josué stupid question (probably) but have you checked you have a working internet connection in your device?

          Edit: I've tested logviewer (both vivid & xenial versions) sending to pastebin right now, and it's working fine for me.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Josué
            last edited by advocatux

            whatever, here is the log: https://paste.ubuntu.com/p/KWKhc86H8w/

            advocatuxA 1 Reply Last reply Reply Quote 0
            • advocatuxA Offline
              advocatux @Josué
              last edited by

              @josué I fixed your 402 lines log 😉

              1 Reply Last reply Reply Quote 0
              • advocatuxA Offline
                advocatux
                last edited by

                @Josué did you fix your issue? Have you checked that everything you need for your app is inside the click package? Have you checked the path to the sound files?

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Josué
                  last edited by

                  nope, I tried with the tablet and the phone in 16.04 and with the tablet in 15.04. Same problem.
                  I'll try to convert the files to ogg and check again 😕

                  1 Reply Last reply Reply Quote 0
                  • arubislanderA Offline
                    arubislander
                    last edited by arubislander

                    Are you building your app with clickable? If so, after adding the required policy group, it isn't picked up without first doing clickable clean first.
                    EDIT: Maybe the clickable clean is not necessary, even though it doesn't hurt. What does help though is to manually uninstall the old application from the device before building and deploying the new one.

                    🇦🇼 🇳🇱 🇺🇸 🇪🇸
                    Happily running Ubuntu Touch
                    Google Pixel 3a (20.04 DEV)
                    JingPad (24.04 preview)
                    Meizu Pro 5 (16.04 DEV)

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Josué
                      last edited by advocatux

                      Sorry i was busy last days.

                      No, I made it with ubuntu-sdk.

                      I tried something
                      I converted the wav files to ogg files and i replaced the order SoundEfect to Audio.
                      Now i can see something interesting in the log but I need help with it too, maybe both were related at all.
                      As i Can in the click therre arent the sound files that i puted in the proyect

                      0_1534845835496_e1e80fcf-b7fa-4052-8134-43699a5813bd-image.png

                      I also don't know why it happens 😕

                      advocatuxA arubislanderA 2 Replies Last reply Reply Quote 0
                      • advocatuxA Offline
                        advocatux @Josué
                        last edited by

                        @josué I fixed your image 🙂

                        1 Reply Last reply Reply Quote 0
                        • arubislanderA Offline
                          arubislander @Josué
                          last edited by arubislander

                          @josué said in Problem with permisions debugging newapp:

                          No, I made it with ubuntu-sdk.
                          I tried something
                          I converted the wav files to ogg files and i replaced the order SoundEfect to Audio.
                          Now i can see something interesting in the log but I need help with it too, maybe both were related at all.
                          As i Can in the click therre arent the sound files that i puted in the proyect

                          Right... I had the same problem with my app. I would add some (image in my case) files, and they would not be added to the click package.

                          This is due to the way the SDK sets up its projects. And to get the files included requires editing some CMakeLists.txt files. The SDK makes one for each folder in your project. And if you add a new folder you have to make a corresponding CMakeList.txt too. Buy I never really understood the syntax used in those files.
                          Clickable, on the other hand, sets up the project with just one CMakeList.txt file, in the projects root folder. Every new folder you add under that is automatically included in the click.

                          So what I ended up doing for my project was:

                          • Rename my old project folder
                          • Create a new clickable project with clickable init with the same meta data (project name, maintainer, etc) as the old project.
                          • Copy over all the files from the old folder that I need in my project
                          • Build

                          The added benefit is that you can open the project created by clickable in the SDK too(or at least you should be able to)

                          🇦🇼 🇳🇱 🇺🇸 🇪🇸
                          Happily running Ubuntu Touch
                          Google Pixel 3a (20.04 DEV)
                          JingPad (24.04 preview)
                          Meizu Pro 5 (16.04 DEV)

                          1 Reply Last reply Reply Quote 2
                          • J Offline
                            Josué
                            last edited by

                            wow thanks for the info that will save me a lot of time investigating it. Now i'll try to use clickable in the next days...

                            Thanks a lot.
                            Advocatux, thanks for fixing my posts I didn't wanted to spam the thread just to say thanks xD

                            advocatuxA 1 Reply Last reply Reply Quote 1
                            • advocatuxA Offline
                              advocatux @Josué
                              last edited by

                              @josué no problem & you're welcome 🙂

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post