Permission denied for ttyACM0 Port in nexus 5 - external

I am trying to connect external GSM modem with nexus 5 and send AT command using android RIL layer.I am using android 5.0 AOSP for nexus 5 downloaded from Google source.
Error: Permission denied with trying to open ttyACM0 port.
i have checked this by changing permissions but still permission denied error.
Does there any other permissions do i have to change to open port?

You are getting permission denied because the Android RIL doesn't have the appropriate selinux(Security Enhanced Linux) permissions for that device.
As the RIL already has rw permissions to the files in the radio_device context as shown below and in this link.
allow rild radio_device:chr_file rw_file_perms;
So, just change the context of your device file to radio_device so that the RIL has the appropriate permissions to access it by adding the line below to file YOUR_BUILD_DIRECTORY/external/sepolicy/file_context and hopefully it should work.
/dev/ttyACM0 u:object_r:radio_device:s0

Related

How do you give access permissions to another drive in the local machine on a web browser?

I have an html page where a user can see view their course certificates when they click on "View Certificate", am using PHP for backend. The certificates are stored in the D drive because of more storage capacity. When the link is clicked I get the message "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server."
The URL does show the path to the certificate "site.org/courses/certificate/file:/D:/courses/uploads/5fcffcb32e2201.64085268.pdf" - it just doesn't load the certificate because of the lack of permissions.
So how do I grant permissions for the web server to access that folder on a different drive?

Webpage not available from Apache Server

To give a little background information:
I have a Windows directory (Host OS) that I am sharing to CentOS (Guest OS) that serves as my local web server. For some odd reason, I cannot access any of the files in that share from a web browser. For example, if my address is http://192.168.1.200/home.html it gives me a "Forbidden: You don't have permission to view this page" error. When accessing the shared directory from Linux and try to perform a chmod -R 777 on the parent folder, I receive an access denied even running as root. The Windows side of the house has "Authenticated Users" and "Everyone" with full control. And this is with the assumption that the /etc/httpd/conf/httpd.conf is modified correctly.
Outside of this, if I just SCP the contents to the server and modify the httpd.conf file to reflect the new directory, I am able to access everything. The point of this is to be able to modify the local file on the Host OS and not having to SCP it over. Essentially, everything is updated on the server automatically when I save it on the Host OS side.

How to access phpmyadmin in cloud

I have deployed my xampp server to the Google cloud using bitnami tutorial. The next day when I try to access
127.0.0.1:8888/phpmyadmin/
I can't seem to. I initiated ssh using puTTy and I have the welcome page like so. I am getting the "Unable to connect" generic response from firefox. And I am getting "the remote device or resource cannot accept connection" in IE. Is there any way to debug this?
Update: I added the my.cnf file in mysql folder in the cloud. Are the configurations right?
This is my log file image.
Here serverip/xampp/ shows that mysql is deactivated

phpMyAdmin on IIS7.5 permission not granted

I am trying to get phpMyAdmin working on a server with IIS7.5 installed. We have done the following and cannot get access to phpMyAdmin working:
MySql installed
Windows Server 2008 running IIS7.5
Followed this tutorial: enter link description here
Created a new site and added phpMyAdmin directory beneath it as an application (I can see the subdirectories of the phpMyAdmin root on this application)
Navigating to the subdomain set up for the application indicates we do not have sufficient permissions. I gave users and administrator read/write access for the site and the application:
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
I feel like we are very close, but I am unsure what other permissions need to be set to gain access.
I'm not used to IIS 7.5, but I believe typically you would need to give the IIS user read permission on the phpMyAdmin folder, files, and subdirectory. You mention giving permission to users and administrators, but I don't think the IIS user would fall in to either of those categories.

Permission is only granted to system apps in Android Manifest

While i am inserting this permission in manifest it shows error " Permission is only granted to system apps"
Actually i used this permission for developing application based on Oauth2 token. But i cant enable this permission. Can any Help me?
MODIFY_PHONE_STATE permission is granted to system apps only.
For your information, there are 2 types of Android apps: system & user
User apps are just all your normal app installations through the Google Play Store, Amazon Appstore or sideloading. These go into the
/data partition of your Android phone, which is the part of the
internal memory made available for user data and apps.
System apps are basically the apps that come pre-installed with your ROM. In a standard Android user environment, the user doesn’t
have write access to the /system partition and thus, installing or
uninstalling system apps directly isn’t possible.
In order to install an app as a system app on your Android device,
your device must either be rooted or have a custom recovery installed (or both).
That being said, that error is actually wrong because you have a valid code and compilation should work. It would be better if it gave a warning instead. In Eclipse you can easily fix it. Just go to:
Window -> Preferences -> Android -> Lint Error Checking.
Find ProtectedPermission from the list and set the severity to something other than error(info for example). This way your project will still compile.