[Q] Security Exception com.htc.permission.APP_DEFAULT - One (M8) Q&A, Help & Troubleshooting

I'm trying to modify the code of one of HTC stock app (HtcContactsDialer), so to begin with I just resigned the apk and try to install it.
The app crashed immediately with following error on the catlog.
java.lang.SecurityException: Niether user 10216 nor current process has com.htc.permission.APP_DEFAULT.
I try pm grant to grant the permssion, but I get the following error:
Permission com.htc.permission.APP_DEFAULT is not a changeable permission type.
Any ideas?

Related

ADB Port Forward: Permission Denied

Hi guys,
I'm trying to set up a port forwarding on my phone. But it keeps telling me Permission Denied. I am rooted and gave SU access. But regardless it keeps saying Permission Denied.
Any take on this?
Thanks..

[Q] Tools.jar?

Hi all,
Recently, I started building android myself. All went fine, but i could not properly configure graphics in ubuntu 10.04. So yesterday I installed Ubuntu 11.10. Thanks to this thread from Roman (http://rootzwiki.com...on-ubuntu-1110/) I thought I would be able to build with 11.10. However, I keep getting errors regarding tools. jar:
Code:
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
Let me give some more info:
- I have properly setup java 6 jdk u 30
- when I manually run find-jdk-tools-jar.sh it gives the correct output ($JAVA_HOME/lib/tools.jar)
- I tried changing the line in find-...-jar.sh from ANDROID_JAVA_HOME/lib to JAVA_HOME/lib, doesn't change anything
Could anybody help me out with this issue? I have been searching all morning and just cannot find the proper solution. Thanks in advance!!!
Mark

[Q] {troubleshoot] SU permission security exception

Running VZW Galaxy Nexus, stock 4.2.2 Android, rooted with su binary 3.1.1 and superuser elite 3.1.3(46)
When I launch ConnectBot and su to root, I get this message:
Code:
[email protected]:/ $ su
-java.lang.SecurityException: Permission Denial: broadcast asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2158)
at com.android.commands.am.Am.sendBroadcast(Am.java:616)
at com.android.commands.am.Am.run(Am.java:121)
at com.android.commands.am.Am.main(Am.java:82)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
at dalvik.system.NativeStart.main(Native Method)
[email protected]:/ #
This is new. I do get root even though I get an error and some apps that require root still work like Titanium (I can restore) apps, but others done like fstrim.
But I have no idea when this happened or why. Searches have failed to turn up anything useful.
Any tips?
mfratto said:
Running VZW Galaxy Nexus, stock 4.2.2 Android, rooted with su binary 3.1.1 and superuser elite 3.1.3(46)
When I launch ConnectBot and su to root, I get this message:
Code:
[email protected]:/ $ su
-java.lang.SecurityException: Permission Denial: broadcast asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2158)
at com.android.commands.am.Am.sendBroadcast(Am.java:616)
at com.android.commands.am.Am.run(Am.java:121)
at com.android.commands.am.Am.main(Am.java:82)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
at dalvik.system.NativeStart.main(Native Method)
[email protected]:/ #
This is new. I do get root even though I get an error and some apps that require root still work like Titanium (I can restore) apps, but others done like fstrim.
But I have no idea when this happened or why. Searches have failed to turn up anything useful.
Any tips?
Click to expand...
Click to collapse
I got near enough the same thing, I switched to SuperSU and it went away.
Looks to be a problem with the superuser (chainsdd) SU binary (not compatible with 4.2.2?)
Everybody knows Superuser has issues with JB; use SuperSu.
a maguro sent this.
Superuser by chainsdd is died
You can use Superuser by Koush or SuperSu by Chainfire
Inviato dal mio Galaxy Nexus con Tapatalk 2

[Q] SU Binary error upon Execution: No root access

Info: For those of you who need more info on my SU Binary (/system/bin/su), it's NOT out of date. Its the newest version for galaxy s4 m919.
My problem: /system/bin/su (SU binary files) will not execute.
Why?...: Because, access to execute binary files on system is denied (I don't have root access/permission). EEEK.
here's the Logs from root checker Pro: (In no particular order)-
SuperSU application - is NOT installed.
SuperUser - Installed!
System File Properties for Root Access:
Standard Location
Check Command: ls -l /system/bin/su:
Result: -rwsr-sr-x root root 380532 2008-08-01 08:00 su
Analysis: Setuid attribute present and root user ownership present. Root access is correctly configured for this file! Executing this file can grant root access!
Standard Location
Check Command: ls -l /system/xbin/su:
Result: lrwxrwxrwx root root 2013-10-11 02:57 su -> /system/bin/su
Analysis: File: su is a symbolic link pointing to another file: /system/bin/su
Alternative Location
Check Command: ls -l /sbin/su:
Result: /sbin/su: Permission denied
Analysis: File system permissions restricted and denied access.
Alternative Location
Check Command: ls -l /system/xbin
Root User ID and Group ID Status:
SU binary not found or not operating properly.
System Environment PATH: /sbin /vendor/bin /system/sbin /system/bin /system/xbin
more details
Extra info that I didn't include: I originally WAS rooted, running stock Samsung ROM (factory ROM) and I rooted using ODIN. So after rooting, I installed CyanogenMod 10.1.3.1, which does not come with root installed by default.
*SIGH* So... I want to know how to root CyanogenMod... So supposedly following the instructions by Root checker pro Logs,
I need to execute /system/bin/su. (Which won't work, unless a magical "S-Off" appears so I can execute it. But, then executing would be pointless because I would be already rooted with S-Off.
Help please, anyone? Could I root cyanogenmod from the computer terminal? Is there a way to override system permissions and execute su binary?
As per all your other post. Have you enable Root in Developer Options? CM ROM now has root disable by default.
Root options...
Root options in CyanogenMod Developer Options are not displayed in my settings...
What exactly does the toggle panel say for it? I can take a screenie of my settings..?
sorry for my ignorance with CyanogenMod... The last time I flashed CyanogenMod
was with CyanogenMod version 5, lol. And that was 3 years ago (I had an HTC Inspire 4G)
System Settings, About Phone, tap on the build number repeatedly until it enables Developer Options. Press back, tap Developer Options. Change Root Access to 'Allow ADB & Apps.'
Let's hope this is the last thread you start for awhile. Search for these answers, they have been answered already ;]
In reply...
dynospectrum said:
System Settings, About Phone, tap on the build number repeatedly until it enables Developer Options. Press back, tap Developer Options. Change Root Access to 'Allow ADB & Apps.'
Let's hope this is the last thread you start for awhile. Search for these answers, they have been answered already ;]
Click to expand...
Click to collapse
Well then. That was not so loving and friendly. Lol. And I have done so, btw.. My developer options are enabled, but the root access panel is not
In there. infact, there was a new section called "SuperUser", and I had set the root access panel to "Allow ADB and Apps" like you said.
But in return, no cigar. No root rights, even still. :/
Same here I'm using beanstalk 4.3 and most of the root apps work but some don't for example gamekiller, the few times I installed it it denied it before the prompt window popped out then after a few tries it finally granted it but before I pressed grant it said WARNING GAMEKILLER HAS A COMMAND (not sure about that part) android.permission.ACCESS_SUPERUSER not declared so I went into super user settings and I checked that option so I tried searching a value number and as soon as I press search it doesn't do anything then I press help and it tells me it needs root access which has been give
Sent from my SGH-M919 using XDA Premium 4 mobile app
Download and flash in recovery: http://download.chainfire.eu/351/SuperSU/UPDATE-SuperSU-v1.65.zip
Yay.
I've flashed that in CM10 ROM several times, and no root. But no worries, I'm running an awesome, fast, great battery life AOSP Based ROM (Completely AOSP, actually) and it comes rooted
The ROM is actually solely based off of googles open source code from android 4.3, with a few of the major components hand-picked from other Dev sources. The ROM is called-
Google Edition s4
For all who wish to download this as well as I did, here's the link to this epic ROM:
http://forum.xda-developers.com/showthread.php?t=2341026
Thanks
Thank you, this method worked for me. So much misinformation out there, I tried like 20 other bogus remedies before this. I could hug you.
same problem
I rooted my phone before,then I unroot it. But now when I am trying to root it again I'm facing same problem with superuser, it's saying that su binary is outdated and its not updating also, and I don't have root permission so that I can fix it with several methods which I found by google it.

MiMAX3: How can I set do not use internet on package for the non root system?

Hi devs.
How can I set do not use internet on package for the non root system?
Why this adb command doesn't work ?
adb pm revoke com.miui.player android.permission.INTERNET
the error is:
Operation not allowed: java.lang.SecurityException: revokeRuntimePermission: Neither user 2000 nor current process has android.permission.REVOKE_RUNTIME_PERMISSIONS.

Categories

Resources