1. Are you ready for the Galaxy S20? Here is everything we know so far!

Running an app AS system

Discussion in 'Android Devices' started by ProxDroid, Dec 6, 2013.

  1. ProxDroid

    ProxDroid Lurker
    Thread Starter

    Hi all,
    I am back with another question. I am writing an android app that requires the privilege:

    Code (Text):
    1.  
    2. <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
    3.  
    I read that to get this, I needed to run as the root user. I installed the app, then ran a Play Store app called /system/appmover that seems to interact with SuperSU to move an application into "system app". However, even after doing so, I get this error:

    Code (Text):
    1.  
    2. 12-06 09:55:18.751: E/NFCUtil(1508): java.lang.reflect.InvocationTargetException
    3. 12-06 09:55:18.751: E/NFCUtil(1508):    at java.lang.reflect.Method.invokeNative(Native Method)
    4. 12-06 09:55:18.751: E/NFCUtil(1508):    at java.lang.reflect.Method.invoke(Method.java:515)
    5. 12-06 09:55:18.751: E/NFCUtil(1508):    at util.NFCUtil$1.run(NFCUtil.java:72)
    6. 12-06 09:55:18.751: E/NFCUtil(1508): Caused by: java.lang.SecurityException: WRITE_SECURE_SETTINGS permission required: Neither user 10085 nor current process has android.permission.WRITE_SECURE_SETTINGS.
    7.  
    Clearly I am not successfully running this app as root. How do I go about doing that? Thanks for any help.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. ProxDroid

    ProxDroid Lurker
    Thread Starter

    FYI I got a response from a developer from Secure Settings. He said that this is a known issue with Android 4.4. I will try with a rooted Android 4.3 with the app placed inside /system/apps and see if the result is different.
     
  3. ProxDroid

    ProxDroid Lurker
    Thread Starter

    Just a follow up.

    Turns out that Android 4.4 doesn't work with this, but 4.3 works great.
     

Nexus 7 (2013) Forum

The Nexus 7 (2013) release date was July 2013. Features and Specs include a 7.0" inch screen, 5MP camera, 2GB RAM, Snapdragon S4 Pro processor, and 3950mAh battery.

July 2013
Release Date
0
Reviews
Loading...
Similar Threads - Running app system
  1. Cataster
    Replies:
    0
    Views:
    341
  2. 11235ismofoog
    Replies:
    2
    Views:
    666
  3. Irfan Latif
    Replies:
    1
    Views:
    824
  4. App Update
    Replies:
    0
    Views:
    733
  5. tinker123
    Replies:
    0
    Views:
    1,337
  6. Tracy Dryden
    Replies:
    10
    Views:
    3,663
  7. EtayCrash
    Replies:
    1
    Views:
    1,383
  8. tinker123
    Replies:
    1
    Views:
    1,680
  9. tinker123
    Replies:
    0
    Views:
    1,501
  10. John Klug
    Replies:
    2
    Views:
    1,142

Share This Page

Loading...