Permission Failure

Put your problem here if it does not fit any of the other categories.

Permission Failure

Postby ksp » Mon Mar 10, 2008 7:40 am

I'm gettting the following message in the LogCat when i'm trying to access the SIM

WARN/ServiceManager(497): Permission failure: adding service isms from pid=935 uid=10016 without permission android.permission.ADD_SYSTEM_SERVICE

Can anyone help me out in this?

Thanks in advance.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Top

Postby kiran » Mon Mar 10, 2008 7:58 am

Hi,
have you added permission in AndroiManifest.xml file. You can add permission like this
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE"/>
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
:) smile it is the key that fits the lock of everybody's heart
User avatar
kiran
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Thu Nov 22, 2007 11:36 am
Location: India

Postby ksp » Mon Mar 10, 2008 9:55 am

kiran wrote:Hi,
have you added permission in AndroiManifest.xml file. You can add permission like this
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE"/>
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Permission Failure

Postby ksp » Mon Mar 10, 2008 9:59 am

Yes I've added it, but still its showing that error.
Because of that i'm not able to access the methods defined under the interface android.telephony.gsm.ISms.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Permission Failure

Postby ksp » Tue Mar 11, 2008 12:10 pm

It worked atlast...
i tried placing the .apk file under /system/app.
Hence the permission was granted.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Postby manmath » Wed Mar 19, 2008 9:50 am

Hi All,

I am working in IPC on Android. I want to invoke the service via IPC running in one application from the client running in other application.For this I need to make the my service as System service like Gtalk Service.

I guess to make the System service the following are the options:

1. storing service.apk in to system/app
2. installing the application
3.mainifest for service must have :arrow: android.permission.ADD_SYSTEM_SERVICE

I am able to push my service application into system/app and running it.
But on restarting emulator the file is vanishing from system/app.
I think i need to install the application in to system/app instead of pushing it.
How can we do that ?
Any idea how to make system service and acess the interface outside ?
manmath
Junior Developer
Junior Developer
 
Posts: 18
Joined: Fri Feb 15, 2008 1:30 pm
Location: India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 22 guests