How to get manifest permissions of any installed Android app

Thanks for the hint,got it running with: final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = getPackageManager().queryIntentActivities(mainIntent, 0); for (Object obj : pkgAppsList) { ResolveInfo resolveInfo = (ResolveInfo) obj; PackageInfo packageInfo = null; try { packageInfo = getPackageManager().getPackageInfo(resolveInfo.activityInfo.packageName, PackageManager.GET_PERMISSIONS); } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } String[] … Read more

Why do my setuid root bash shell scripts not work?

There is a pretty comprehansive answer at https://unix.stackexchange.com/questions/364/allow-setuid-on-shell-scripts Bottom line is that there are two main points against it: A race condition between when the Kernel opens the file to find which interpreter it should execute and when the interpreter opens the file to read the script. Shell scripts which execute many external programs without … Read more

Visual Studio output file permissions?

Wooho I finally figured this one out. It’s a bug in Windows 7 and likely in Windows Server 2008 (possibly 64bit versions only). It surfaces when you disable Application Experience service. Re-enabling this service has fixed this problem for me. You can’t imagine how happy I am, this was making programming so frustrating as it’s … Read more

SQL Server: How to permission schemas?

I fear that either your description or your conception of Ownership Chaining is unclear, so let me start with that: “Ownership Chaining” simply refers to that fact that when executing a Stored Procedure (or View) on SQL Server, the currently executing batch temporarily acquires the rights/permissions of the sProc’s Owner (or the sProc’s schema’s Owner) … Read more

PHP: fopen() Permission denied

This issue can also be a result of having SELinux enabled. This can be solved using: chown -R apache:apache /var/www/html/directory_to_write chcon -R -t httpd_sys_content_t /var/www/html/directory_to_write chcon -R -t httpd_sys_rw_content_t /var/www/html/directory_to_write Edit: You can find the old explanation at https://web.archive.org/web/20150927091100/https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/sect-Managing_Confined_Services-The_Apache_HTTP_Server-Types.html or https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_confined_services/sect-managing_confined_services-the_apache_http_server-types However if you are on anything like Redhat 8 or newer, you might want … Read more