GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-25-2014, 11:21   #1 (permalink)
Freak Poster
 
Join Date: May 2013
Location: Russia
Posts: 101
Member: 1940428
Status: Offline
Sonork: 100.1647873
Thanks Meter: 35
Android. Read NVItems from Java. System permissions.


Hi, all! There is one question for android guru ... I have a one android device on Qualcomm and trying to write Android App to read some needed NVItems. I am newbie into Android, and this is my first expirience with Eclipse and Java

I have qcnvitems.jar from firmware of this device, and add it as an external jar in Project. Also i make import com.qualcomm.qcnvitems.QcNvItems and create QcNvItems object, and try to read NVItems as mqcNVItems.getNvItemData(...).

But there is one problem. Permissions. When i try to execute app in logcat i see:

Code:
08-25 02:03:05.644: E/AndroidRuntime(8890): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.deckertest/com.example.deckertest.MainActivity}: java.lang.SecurityException: Not allowed to bind to service Intent { cmp=com.qualcomm.qcrilmsgtunnel/.QcrilMsgTunnelService }
I understand this happens because i wrote user-level app, and to get needed permissions - app must be system.

How can i get this permissions? Any hints? May be exist a way to build update.zip with my app and sign it somehow to install in /system? (there is no CWM, only stock recovery, is any way to sign custom zip to use it with stock recovery?)
  Reply With Quote
Old 08-25-2014, 14:25   #2 (permalink)
Freak Poster
 
Join Date: Apr 2003
Age: 56
Posts: 315
Member: 26596
Status: Offline
Thanks Meter: 30
You wanna sign update.zip... sounds very funny.
  Reply With Quote
The Following User Says Thank You to latigido922 For This Useful Post:
Old 08-27-2014, 00:23   #3 (permalink)
Freak Poster
 
Join Date: May 2013
Location: Russia
Posts: 101
Member: 1940428
Status: Offline
Sonork: 100.1647873
Thanks Meter: 35
I was patch <3e> stock recovery to remove signature checking and get root via my update.zip But there is another question. I still can't use methods from library qcnvitems.jar in my app. I try to add android.permission.ACCESS_SUPERUSER to manifest, also i try to move my app to /system/app. But still get error above - "Not allowed to bind to service Intent".

Why system app haven't this privelegies? May be i miss something? Is anybody here, who use qcnvitems.jar in your own apps?
  Reply With Quote
Old 08-27-2014, 05:29   #4 (permalink)
No Life Poster
 
Join Date: Jun 2004
Location: USA
Age: 39
Posts: 1,142
Member: 67927
Status: Offline
Thanks Meter: 108
You need to check com.qualcomm.qcrilmsgtunnel/.QcrilMsgTunnelService and see why its not allowing. It maybe possible that you need other permissions or that you may need to run as phone user because system user doesn't have those permissions. Which phone model and android version are you trying on?
Also pull file /data/system/packages.xml and post it here.
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 



All times are GMT +1. The time now is 00:10.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.14023 seconds with 8 queries

SEO by vBSEO