UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. hoh61
    3. Posts
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 19
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Camera working?

      I installed the latest available (stable) image on my old S3Neo. It took a long time until everything was working, except the "camera".
      To be honest, this must be described in more detail.
      First of all, when I switch on the camera it shows a picture and I can switch between front and rear side.
      I can make a picture, store it and display it.
      I can make a video, at the end it starts indicating the recording but then nothing is stored.
      Since I have a running ubuntu touch pad I know the critical situation for the video handling: only a few codecs are installed with limited options.
      So I did some comparison and found the following details:
      apparmor rights: equal on both devices
      access rights : (in saftey and security-> app rights) camera in S3Neo: nothing; camera in tablet: 1
      After making the video, a file name was created in the camera folder with file length 0.

      So I copied a video which was created on my tablet and tried to play it. The log file says: "codec x_h264 not found".

      Is it possible, that the codec is not shipped in the image or that it is blocked by other access restrictions?

      posted in Samsung S3 Neo+
      H
      hoh61
    • RE: App Maintainers Needed !!

      What I need is a comfortable debugger. Using QtCreator is one topic, the SDK is outdated and without that it's still a very good ide but with limited "comfort". I was trying atom for editing, it's nice but it has to grow up. Together with clickable it's not that bad, but a good debugger is missing. I'm actually trying GammaRay. I have installed the latest version a few days ago and I'm now evaluating the capabilites of this package. I will give some feedback on that if it's helpful.

      posted in News
      H
      hoh61
    • RE: App Maintainers Needed !!

      Dear @Lakotaubp ,

      some comments on your request:

      1. there is no functional IDE available for application development. So how should anybody be encouraged to maintains or develop applications?

      2. Even if the music app is still not maintained, it is working very well. And if it shall be maintained, it must be in conjunction with the media-hub and mediascanner. It is relying on these packages.

      3. Actually I'm digging around in the mediascanner code to get some improvements for the music app. In parallel I try to set up some IDE like environments. But without the proper support at several points it is a hard work.

      Since I'm doing this occasionally, it will take some time to progress. I will inform you about some updates.

      posted in News
      H
      hoh61
    • RE: Attention!! Attention!! BIG NEWS !!!!!!!

      From my experience it would be more sane to wipe the device before you switch from 15.04 to 16.04. There can be too much old settings or cached data which may impact the behavior of the device. For my M10FHD it was necessary to have the device fully running. But then it's amazing.

      posted in News
      H
      hoh61
    • RE: Confinement / Sandboxes

      @doniks : I would stop this discussion here unless we find someone who has a M10 FDH with the lates canonical image in short access. A list of the mountpoints (/etc/mtab) via adb should provide some clarification on this topic. I will not do it, because I would like to get my fireza running, which is still as hard work. In the actual environment I found still a lot of weaknesses and open issues, which I would like to solve step by step. first for myself, hopefully with the help of the community, finally in the hope that I can provide some solutions which will improve some little steps.

      So if you know somebody who is familiar with atom add-on packages there will be some interesting tasks to work on.

      posted in OS
      H
      hoh61
    • RE: Confinement / Sandboxes

      Just to make it clear: I'm talking from the original ububtu touch version shipped with the M10 FHD by BQ. This was based on ubuntu 15.10.
      And you can bite me to hell, there was an LXC container running, separating the system processes from the user area, where all apps were located (no desktop apps, only apps from the ubuntu store!). It drove me crazy that I couldn't add a network access for my samba network. A lot of mountpoints were installed in order to make the container accessible to the root system, for the network access a bridge was installed, ... All these stuff is missing in the actual image for xenial.

      @doniks : which process is not confined? Have a look at the apparmor settings (sudo aa-status). On my M10fhd there are now 43 profiles found in enforcement mode (before r92 it was 62). All running applications so far are in enforcement mode, except LXC!

      posted in OS
      H
      hoh61
    • RE: IDEs for ubuntu touch development

      I launched an issue to the provider of the package for this enhancement yesterday, but there is still no feedback.

      In the meantime I checked other packages and found the package "terminal tab". This is providing you a terminal within the atom surface, where you can launch clickable like in a desktop shell. So you need not to change between windows/applications. This may help in the meantime.

      Any other supporter is welcome too (and required for my impression). It would be great if we can find a specialist for atom extension packages who is willing to prepare some improved tools for development.

      @advocatux : Yes I have seen it, and there are some interesting options still to evaluate. I already tested the log command, which is quite helpful and a first step to see roughly what is going on. It still cannot replace a good debugger.

      posted in App Development
      H
      hoh61
    • RE: Confinement / Sandboxes

      It's in the open store yet.

      And some comments on the confinement/sandbox topic itself.
      On my M10 FHD with the original ubuntu image the system was running having an LXC container for all applications. By this approach the system tasks were separated from the user tasks, but unfortunately a very excessive access environment deeded to build up. I was not able to install network access to my home network using samba.

      The actual UBport implementation is completely different. On the device the apps are running as normal user apps, only restricted by the rules implemented with apparmor. This is not much different to desktop computers except that on my Desktop computer I have 22 rules while on the touch device I count 64. Without a good UI this can be an easy source of errors .

      Docker (in clickable) and LXC (in ubuntu sdk) are used for development purposes only to encapulate the target environment from the development host. Actually I found nothing comparable on the touch device (except a fragment for an LXC android container).

      An yes, the most irritating issue is the media hub server. I started to understand the concept, but I'm still at the beginning.

      posted in OS
      H
      hoh61
    • RE: IDEs for ubuntu touch development

      So let me follow up with atom and clickable. Maybe you misunderstood me. It is clear, for code hacking I can use even vi. I need a running ide (integrated development environment), where the emphasis is put on integrated!

      So to overcome the "weakness" of the IDE, who can tell me

      • how to set up atom to run different frameworks (like clickable -k 16.04 , including the option --desktop for testing) using the build menu entry.

      • how to set up atom for debugging the applications.

      Furthermore, since I have to provide additional libraries, how must I extend the cmake setting in order to provide additional libraries not provided in the standard image?

      Furthermore the docker images have no Qt support for serial devices. The relevant libraries are missing.

      So who can clean up these weknesses or help me to do it by myself?

      posted in App Development
      H
      hoh61
    • RE: Confinement / Sandboxes

      @Pulsar33 : I would not consider this app as a core app yet. For my impression it would be primarily a little support tool for developers to check the proper implementation of the apparmor settings and highlight multiple versions of their apps, or help impacted users to find it out. Since I observe this on my tablet too, I would rise the question for a combined uninstall/install procedure for updates installed via clickable.
      One can think about an extension which allows the user to remove (only) right gained for the application (e.g. network access gained for an application without network access from the user), but here some specialties of apparmor has to be taken into account. Removal of access right can only be activated after a restart of the apparmor daemon (root access necessary) or after a reboot of the device. This capability would provide a major benefit to the user and make the for me app a candidate for a core app.

      posted in OS
      H
      hoh61
    • IDEs for ubuntu touch development

      I don't know if anybody else has the same feeling, but for my impression we are lacking a good IDE for application development.

      My understanding for a good IDE is quite simple:

      1. having a handsome editor
      2. having selectable programming environments
      3. having sufficient feedback from the building process to the error locations
      4. having a test environment (not only running tests on the program code but also run the program)
      5. having a state of the art debugging tool

      These are only a few qualities which I expect, but for my experience there is actually no IDE which can fulfil them. And according to my experience programming can be a nightmare without this complete set of capabilites. So if more programmers shall be encouraged to support ubports, for my impression this is a main topic to resolve

      In the past I was using Eclipse and QtCreator for my different projects. Both could fulfil the above topics so far, but for Ubuntu touch this is different.

      I haven't checked if there is any plugin in eclipse for Ubuntu touch development. At lease within the community discussion nothing was mentioned.

      For QtCreator there is an old development kit referred in the ubports documentation, which is outdated and no longer supported. So programming could be fine, but the issue 2) is outdated. This makes the finalization of the projects hard. The preferred building tool "clickable" is not supported. The framework reference is ending with 14.10! The ubport community is switching to cmake base projects, which is supported formally by the CtCreator, but at a first glance I found major differences in project setup which makes it hard for me to transfer projects from qmake to cmake tool.
      I have seen some new repositories in the UBports area with new source files for the QtCreator. If there are some activities running to set up a proper up to date IDE for ubuntu touch with this tool, I will support these activities as much as I can. CtCreator is for me still one of the best IDEs for Qt based applications.

      I started to use the ATOM editor and did some trials for app development. After the first trials it looks like a concept similar to Eclipse: based on a highly configurable editor the functionality can be expanded by plugins. I installed several plugins in order to program my application. In the configuration I achieved up to now I could write the code and run clickable for compiling and installing. However, I found several issues which makes coding hard:

      • capability 2) is missing. Build-in clickable is preset for 15.05 environment. For the development of apps for 16.04 I have to run the build process outside the editor. Therefore application testing has to be done outside the IDE too.
      • There is no feedback from the build error code to the source code (at lease for the QML application I didn't notices anything).
      • Finally there is no debug environment. The debug plugin I found is a template which has to be filled in properly. Since the setup of a debugger is always a little bit tricky, this tasks should be done for a standard programming environment to unburden any programmer to do it for himself.

      These are my observations and impressions so far, which makes me really sad. So I would like to get some feedback on actual trends and (for me yet ) unknown activities to install a proper IDE for ubuntu touch. If there is actually a mainstream, I would like share it. Otherwise I would like to start the discussion how to establish one. The actual situation is , at lest for me, unsatisfactory.

      posted in App Development
      H
      hoh61
    • RE: Confinement / Sandboxes

      Hello to everybody,

      I was struggeling with permissions and permission system on ubuntu touch for several days. When I found this discussion I decided it would be worth to have the permy software running on my device. After some struggeling with the atom environment and the clickable tool I have now a running permy clone(90% of the original source), which, according to this discussion: would be of interest for other people too.
      I tried to upload it to the open store, but it was rejected. The click-review process gave a red flag, because this app will read the apparmor profiles (the intention of this app).
      Which way do I have (without excessive environment installation) to make this tool available for a larger group?

      posted in OS
      H
      hoh61
    • RE: Move from Github to Gitlab?

      Both, microsoft and google , are large companies which have to make money for their shareholders. And they do it the american style. Everybody shall be able to read about the odd actings in the past (or have a look in their terms and conditions!). So unless the target of both companies is still unchanged, the methods will be the same. So why trust any of them?
      On the other side, which could be reliable alternatives?

      posted in General
      H
      hoh61
    • RE: Howto setup framework "ubuntu-sdk 16.04"

      @hummelbach:

      thank you for your proposal. I tried it already for test purposes on my desktop. After resolving the network issue I could install the necessary image. However, when testing I get an error message related to missing graphics drivers, which are installed according to apt.

      Nevertheless, for the small tests I actually run it is still working.

      posted in App Development
      H
      hoh61
    • RE: Howto setup framework "ubuntu-sdk 16.04"

      dear bhdouglas,

      thank you for your hint. This failed too.

      Finally Docker needs a specific setup for the proxy server to use. Having done this in the right way docker can load the images.

      There is still the issue with the revision mix.

      posted in App Development
      H
      hoh61
    • RE: Howto setup framework "ubuntu-sdk 16.04"

      Yes.

      deb package from ppa repository says version 4.2.1
      installed clickable -v says version 4.2.0

      So what!

      4.2.1 shall have support for 16.04, 4.2.0 not. What do I have????
      And with the installed version I initiated the docker usage (clickable setup-docker) and get the above listed error messages.

      Hmmm.

      posted in App Development
      H
      hoh61
    • Howto setup framework "ubuntu-sdk 16.04"

      The more I read the more I get irritated:

      with "clickable init" I can generate atemplate for a ubuntu-sdk:15.04 framework. Running "clickable" gives the following error message.:
      "Unable to find image 'clickable/ubuntu-sdk:15.04-armhf' locally"
      I would like to test the app on my desktop, but even this fails:
      "Unable to find image 'clickable/ubuntu-sdk:15.04-amd64' locally"
      Since I run ubuntu 16.04 on my desktop, I tried to update the revision to 16.04, but without success:
      "Unable to find image 'clickable/ubuntu-sdk:16.04-amd64' locally"

      In any case the subsequent docker command filed.
      Command '['docker', 'run', '-v', '/virtual/UBports/streamtest/ddd:/virtual/UBports/streamtest/ddd', '-w', '/virtual/UBports/streamtest/ddd/build', '-u', '1000', '--rm', '-i', 'clickable/ubuntu-sdk:16.04-amd64', 'bash', '-c', 'cmake /virtual/UBports/streamtest/ddd']' returned non-zero exit status 125

      Even with the updated manifest entry nothing changes.

      I have build an initial docker image according to the docker documentation. Unfortunately I cannot use this image with clickable. Furthermore I have lxc images for ubuntu 16.04 amd64 and armhf from the original ubuntu sdk ide. At the moment I cannot see any way to use them too.

      I would strongly recommend to generate a howto for the 16.04 environment since the actual documentation (so far I could find ) is useless. For any developers which has installed a running build environment the switch may be small. But to set up a fresh build environment is described only in fragments and finally (from my point of view) incomplete.

      So I would like to ask for some guide to set up a fresh environment for Clickable for ubuntu 16.04.

      Thank you in advance.

      posted in App Development
      H
      hoh61
    • RE: references for file access requested

      Dear Fulvio,

      thank you for your feedback. I will carefully go through these examples.

      However, I'm a litte bit concerned about the way UBtouch is going. You are leaving the QT creator IDE for new IDE with as little support for installing toolchains as possible (at the first glance).
      You are switching to cmake, which is new for me, too. So porting my QT based applications (using qmake) becomes more and more heavier.
      At the first glance I'm missing debug capabilities in ATOM. This is a major drawback for me. Please correct me if I'm wrong.

      So far I have reviewed the tedit code, where the c++ plugin is getting the filename from the qml part, so far nothing special on the c++side. By this configuration you are restricted to the directory space which are allowed in the qml environment. And quite this environment is the open point for my.

      So the next step would be to install a working toolchain under ATOM.

      posted in App Development
      H
      hoh61
    • references for file access requested

      Hi everybody,

      I'm new within this forum and would like to ask a little bit support for developing/porting applications to ubuntu touch.

      I have developed over the time some small applications which are running on my several linux devices (without Ubuntu touch) using Qt. Therefore it seemed not too hard to port these programs to the latest UBtouch version. Unfortunately I failed on the whole front.
      I cannot create a folder in my home directory. I cannot play a video file using the QML mediaplayer. The most easy examples are running on my SKD but are failing on the device (BQ M10 FHD frieza).
      A part of these problems are the access restriction of apparmor. But even if I put the app into complain mode there is no real improvement.
      At the moment my impression is that the encapsulation by the LXC environment needs some special coding for proper access. Thanks to the great documentation of the API there are no references which I can use to solve my problems. Therefore I would like to ask this community for some code snipplets which

      1. can create and modify hidden files in a home directory (from Qt plugins)
      2. can access media files as reference (!!!!, not copying them) for playing with the QML mediaplayer.

      Thank you in advance.

      posted in App Development
      H
      hoh61