android - Signing an app with system key -


on android 4.3 i'm trying execute system command (specifically wm) way:

        string[] cmd = { "/system/bin/sh", "-c", "wm display 800x600", }; 

(...)

    proc = runtime.getruntime().exec(cmd); 

(...)

i get

java.lang.securityexception: must hold permission android.permission.write_secure_settings 

although compiled app correct android permission. read somewhere can sign apk system key, but... find it? how do it? , what's fallback of choice?

and, of course, fix issue?

thank you.

where find it?

you defined yourself, when built , signed custom firmware rom mod.

if not creating rom mod, not have firmware signing key , cannot use it.

and, of course, fix issue?

presumably. simpler have app installed on system partition rooted user, should allow hold write_secure_settings.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -