magiskpolicy --live "allow * magisk binder call" "allow * magisk binder transfer"
su --context u:r:system_app:s0
su --context u:r:platform_app:s0
su --context u:r:shell:s0
su --context u:r:system_server:s0
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. Všechna práva vyhrazena.
i:\temp\S4>adb -s efd35c1a shell getprop ro.build.version.release
adb server is out of date. killing...
* daemon started successfully *
5.0.1
i:\temp\S4>adb -s efd35c1a shell pm list permissions -f
All Permissions:
+ permission:com.samsung.android.providers.context.permission.WRITE_USE_APP_FEAT
URE_SURVEY
package:com.samsung.android.providers.context
label:Zapsat diagnostick├ę informace
description:Zapsat diagnostick├ę informace
protectionLevel:normal
+ permission:com.sec.pcw.device.contentprovider.permission.WRITE
package:com.sec.pcw.device
label:null
description:null
protectionLevel:signature|system
+ permission:com.touchtype.swiftkey.permission.C2D_MESSAGE
package:com.touchtype.swiftkey
label:null
description:null
protectionLevel:signature
+ permission:com.sec.android.phone.permission.AT_COMMAND
package:com.android.phone
label:null
description:null
protectionLevel:signature|system
+ permission:com.samsung.videohub.permission.CONTENT_READ
package:com.samsung.everglades.video
label:com.samsung.videohub.permission.CONTENT_READ
description:null
protectionLevel:signature|system
+ permission:com.sec.android.app.contacts.permission.RECEIVE_CONTACTS_BROADCAST
package:com.android.providers.contacts
label:com.sec.android.app.contacts.permission.RECEIVE_CONTACTS_BROADCAST
description:null
protectionLevel:normal
+ permission:com.sec.chaton.push.BROADCAST_PUSH_MESSAGE
package:com.sec.chaton
label:null
description:null
protectionLevel:signature
+ permission:com.sec.android.phone.permission.TRANSPORTING_CALLER_NAME
package:com.android.incallui
label:TRANSPORTING_CALLER_NAME
description:null
protectionLevel:normal
+ permission:com.sec.pcw.permission.settings.CHANGE_VIDEO_OPTIMIZATION
package:com.sec.pcw
label:com.sec.pcw.permission.settings.CHANGE_VIDEO_OPTIMIZATION
description:null
protectionLevel:dangerous
+ permission:com.facebook.orca.permission.C2D_MESSAGE
package:com.facebook.orca
label:null
description:null
protectionLevel:signature
+ permission:com.sec.android.mmap.broastcasting.permission
package:com.sec.android.mmapp
label:null
description:null
protectionLevel:signature
+ permission:com.sec.android.app.snsimagecache.permission.WRITE_SNSIMAGECACHE_DB
package:com.sec.android.app.snsimagecache
label:null
description:null
protectionLevel:signature|system
+ permission:com.android.vending.TOS_ACKED
package:com.android.vending
label:null
description:null
protectionLevel:signature|system
+ permission:com.sec.knox.admin.permission.ACTION_MANAGE_SHORTCUT
package:com.sec.knox.knoxsetupwizardclient
label:null
description:null
protectionLevel:signature|system
+ permission:android.permission.MANAGE_MEDIA_PROJECTION
package:android
label:Spr├íva relac├ş prom├şt├ín├ş m├ędi├ş
description:Umo┼ż┼łuje aplikaci spravovat relace prom├şt├ín├ş m├ędi├ş. Tyto re
lace mohou aplikac├şm umo┼żnit zaznamen├ívat obsah obrazu a zvuku. B─Ť┼żn├ę apli
kace by toto opr├ívn─Ťn├ş nem─Ťly nikdy pot┼Öebovat.
protectionLevel:signature
+ permission:com.sec.android.daemonapp.ap.yahoostock.stockclock.permission.YAHOO
_DAEMON_ACCESS_PROVIDER
package:com.sec.android.daemonapp
label:Unified Daemon(EUR)
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.providers.context.permission.WRITE_CAPTURE_CONT
ENT
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:normal
+ permission:com.sec.android.app.snsimagecache.permission.REQUEST_IMAGE
package:com.sec.android.app.snsimagecache
label:null
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.permission.SAMSUNG_PHONESTYLE_COMPONENT
package:android
label:Samsung Phonestyle Component
description:Identifies a theme phonestyle component
protectionLevel:dangerous
+ permission:com.diagmondm.permission.WSSDM
package:com.sec.android.diagmonagent
label:null
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.scloud.backup.lib.read
package:com.samsung.android.scloud.backup
label:null
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.providers.context.permission.READ_USE_WIFI
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.providers.context.permission.READ_PROFILE
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:signature|system
+ permission:com.coolots.chaton.permission.C2D_MESSAGE
package:com.coolots.chaton
label:null
description:null
protectionLevel:signature
+ permission:com.sec.android.fotaclient.permission.C2D_MESSAGE
package:com.sec.android.fotaclient
label:null
description:null
protectionLevel:signature
+ permission:com.system.permission.READ_NOTIFICATIONS
package:android
label:com.system.permission.READ_NOTIFICATIONS
description:null
protectionLevel:signature|system
+ permission:com.sec.factory.permission.KEYSTRING
package:com.sec.factory
label:null
description:null
protectionLevel:signature|system
+ permission:android.permission.ACCESS_BLUETOOTH_SHARE
package:com.android.bluetooth
label:P┼Ö├şstup ke spr├ívci stahov├ín├ş.
description:Umo┼żn├ş aplikaci spustit Spr├ívce sd├şlen├ş Bluetooth a pou┼ż├şt
ho k přenosu souborů.
protectionLevel:signature
+ permission:android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS
package:com.android.providers.downloads
label:Odeslat ozn├ímen├ş o sta┼żen├ş
description:Umo┼żn├ş aplikaci odes├şlat ozn├ímen├ş o dokon─Źen├Żch stahov├ín├ş
ch. ┼ákodliv├ę aplikace to mohou vyu┼ż├şt ke zmaten├ş ostatn├şch aplikac├ş stahu
j├şc├şch soubory
protectionLevel:signature
+ permission:com.google.android.apps.now.OPT_IN_WIZARD
package:com.google.android.googlequicksearchbox
label:null
description:null
protectionLevel:signature|system
+ permission:android.permission.ACCESS_KEYGUARD_SECURE_STORAGE
package:android
label:P┼Ö├şstup k bezpe─Źn├ęmu ├║lo┼żi┼íti keyguard
description:Povol├ş aplikaci pou┼ż├şvat zabezpe─Źen├ę ├║lo┼żi┼ít─Ť Keyguard
protectionLevel:signature
+ permission:com.google.android.gms.permission.AD_ID_NOTIFICATION
package:com.google.android.gms
label:Ozn├ímen├ş o┬áinzertn├şm ID
description:Povolit aplikaci obdr┼żet ozn├ímen├ş o┬áaktualizaci inzertn├şho ID
nebo nastaven├ş omezen├ş sledov├ín├ş pro ├║─Źely inzerce.
protectionLevel:normal
+ permission:android.permission.FILTER_EVENTS
package:android
label:filtrov├ín├ş ud├ílost├ş
description:Umo┼żn├ş aplikaci registrovat vstupn├ş filtr, kter├Ż filtruje stre
am v┼íech u┼żivatelsk├Żch p┼Öenos┼» p┼Öed jejich odvys├şl├ín├şm. ┼ákodliv├ę apli
kace mohou pou┼ż├şvat u┼żivatelsk├ę rozhran├ş syst├ęmu bez z├ísahu u┼żivatele.
protectionLevel:signature
+ permission:com.samsung.android.providers.context.permission.READ_BROWSE_WEB
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:signature|system
+ permission:com.google.android.gms.permission.C2D_MESSAGE
package:com.google.android.gms
label:null
description:null
protectionLevel:signature
+ permission:com.samsung.android.providers.context.permission.READ_APP_USAGE_DB
package:com.samsung.android.providers.context
label:com.samsung.android.providers.context.permission.READ_APP_USAGE_DB
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.scloud.backup.lib.write
package:com.samsung.android.scloud.backup
label:null
description:null
protectionLevel:signature|system
+ permission:com.android.launcher.permission.PRELOAD_WORKSPACE
package:com.sec.android.app.launcher
label:com.android.launcher.permission.PRELOAD_WORKSPACE
description:null
protectionLevel:signature|system
+ permission:com.samsung.android.providers.context.permission.WRITE_USE_APP
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:normal
+ permission:android.permission.CAPTURE_TV_INPUT
package:android
label:null
description:null
protectionLevel:signature|system
+ permission:android.permission.SET_POINTER_SPEED
package:android
label:Zm─Ťnit rychlost ukazatele
description:Umo┼ż┼łuje aplikaci kdykoli zm─Ťnit rychlost ukazatele my┼íi nebo
touchpadu. B─Ť┼żn├ę aplikace by toto opr├ívn─Ťn├ş nem─Ťly nikdy po┼żadovat.
protectionLevel:signature
+ permission:com.sec.android.email.EMAIL_ACCOUNT_SETUP
package:com.android.email
label:Email account setup
description:Inform accountsetup of email to knox
protectionLevel:signature|system
+ permission:com.coolots.chatonv.permission.provider.LIVE_SHARE
package:com.sec.chaton
label:null
description:null
protectionLevel:normal
+ permission:com.samsung.helphub.permission.WRITE_DATA
package:com.samsung.helphub
label:com.samsung.helphub.permission.WRITE_DATA
description:com.samsung.helphub.permission.WRITE_DATA
protectionLevel:normal
+ permission:com.google.android.apps.maps.permission.PREFETCH
package:com.google.android.apps.maps
label:null
description:null
protectionLevel:signature
+ permission:com.facebook.katana.permission.CROSS_PROCESS_BROADCAST_MANAGER
package:com.facebook.katana
label:null
description:null
protectionLevel:signature
+ permission:com.samsung.android.providers.context.permission.READ_MOVE_PLACE
package:com.samsung.android.providers.context
label:null
description:null
protectionLevel:signature|system
+ permission:android.permission.BIND_DEVICE_ADMIN
package:android
label:Interakce se spr├ívcem za┼Ö├şzen├ş
description:Umo┼żn├ş aplikaci zas├şlat z├ím─Ťry spr├ívci za┼Ö├şzen├ş. Nikdy ne
n├ş pot┼Öeba pro norm├íln├ş aplikace.
protectionLevel:signature
+ permission:com.carrieriq.iqagent.ClientAccess
package:android
label:com.carrieriq.iqagent.ClientAccess
description:null
protectionLevel:signature|system
+ permission:com.sec.android.videowall.permission.WRITE
package:com.sec.android.app.videoplayer
label:Videop┼Öehr├íva─Ź
description:null
protectionLevel:signature|system
+ permission:com.sec.factory.permission.ALLOWFTCLIENTCPOBIND
package:com.sec.factory
label:null
description:null
protectionLevel:signature|system
+ permission:com.google.android.portable.permission.READ
package:com.google.earth
label:─Źten├ş p┼Öenosn├ęho poskytovatele platformy Maps Engine
description:Umo┼ż┼łuje aplikac├şm t┼Öet├şch stran ─Ź├şst poskytovatele platfor
my Maps Engine.
protectionLevel:normal
+ permission:com.sec.android.app.calendar.permission.READ_CALENDAR_SETTINGS
package:com.android.calendar
label:null
description:null
protectionLevel:normal
+ permission:com.sec.knox.permission.KEYGUARD_SERVICE
package:com.sec.knox.containeragent2
Error: java.lang.NullPointerException: Attempt to read from field 'java.lang.Str
ing android.content.pm.ApplicationInfo.publicSourceDir' on a null object referen
ce
...
2015-08-25 20:33:52.186 INFO 170@1: Flow beginning
2015-08-25 20:33:52.212 INFO 170@2: Shell command superuser
2015-08-25 20:33:54.264 USER 170@3: STDOUT:
2015-08-25 20:33:54.271 USER 170@4: STDERR: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-08-25 20:33:54.279 INFO 170@5: Shell command
2015-08-25 20:33:54.343 USER 170@6: dev.bootcomplete: 1
2015-08-25 20:33:54.346 INFO 170@8: Shell command
2015-08-25 20:33:54.392 USER 170@7: init.svc.bootanim: stopped
2015-08-25 20:33:54.393 INFO 170@0: Stopped at end
Salutations
2015-09-24 21:44:10.391 INFO 37@1: Flow beginning
2015-09-24 21:44:10.397 INFO 37@15: Shell command superuser
2015-09-24 21:44:12.728 USER 37@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2015-09-24 21:44:12.729 USER 37@17: am err:
2015-09-24 21:44:12.729 INFO 37@2: Shell command superuser
2015-09-24 21:44:13.884 USER 37@3: id out: uid=0(root) gid=0(root) context=u:r:sudaemon:s0
2015-09-24 21:44:13.885 USER 37@4: id err:
2015-09-24 21:44:13.886 INFO 37@5: Shell command
2015-09-24 21:44:13.970 USER 37@6: dev.bootcomplete: 1
2015-09-24 21:44:13.970 INFO 37@8: Shell command
2015-09-24 21:44:14.001 USER 37@7: init.svc.bootanim: stopped
2015-09-24 21:44:14.001 INFO 37@9: Shell command
2015-09-24 21:44:14.020 USER 37@10: ro.build.selinux: 1
2015-09-24 21:44:14.026 INFO 37@11: App installed?
2015-09-24 21:44:14.027 USER 37@12: com.llamalab.automate.ext.storage: INSTALLED
2015-09-24 21:44:14.027 INFO 37@0: Stopped at end
The issue was that i couldn't hide the running notification. The option was greyed out.....
Hello
I do have the root issue with my Nexus 5 running latest SuperSu on Android M preview 3.
The debug flow is not producing anything particular but I do have the SuperSu debug log which I think will provide you with the root cause.
This is happening when using the Set CPU command.
Here is the log :
export CLASSPATH /data/app/com.llamalab.automate-2/base.apk
exec app_process /data/user/0/com.llamalab.automate com.llamalab.automate.SuperuserService 10189
Running as 0
java. lang.NoSuchMethodException: broadcastIntent [interface android.app.IApplicationThread, class android.content.Intent, class java.lang.String, interface android.content.IIntentReceiver, int, class java.lang.String, class android os.Bundle, class java.lang.String, int, boolean, boolean, int]
at java.lang.Class.get.Method(Class java:624)
at java.lang.Class.get.Method(Class java:603)
at com.llamalab.automate.SuperuserService.broadcastIntent(Unknown Source)
at com.llamalab.automate.SuperuserService.oncreate(Unknown Source)
at com.llamalab.automate.SuperuserService.main(Unknown Source)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.Runtimelnit.main(Runtimelnit.java: 251)
Best regards
2015-09-30 17:23:56.280 INFO 18@1: Flow beginning
2015-09-30 17:23:56.285 INFO 18@15: Shell command superuser
2015-09-30 17:23:57.708 USER 18@16: am out:
2015-09-30 17:23:57.710 USER 18@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-09-30 17:23:57.712 INFO 18@2: Shell command superuser
2015-09-30 17:23:58.821 USER 18@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-09-30 17:23:58.822 USER 18@4: id err:
2015-09-30 17:23:58.824 INFO 18@5: Shell command
2015-09-30 17:23:58.903 USER 18@6: dev.bootcomplete: 1
2015-09-30 17:23:58.904 INFO 18@8: Shell command
2015-09-30 17:23:58.948 USER 18@7: init.svc.bootanim: stopped
2015-09-30 17:23:58.948 INFO 18@9: Shell command
2015-09-30 17:23:58.980 USER 18@10: ro.build.selinux: 1
2015-09-30 17:23:58.981 INFO 18@11: App installed?
2015-09-30 17:23:58.983 USER 18@13: com.llamalab.automate.ext.storage: NOT INSTALLED
2015-09-30 17:23:58.983 INFO 18@0: Stopped at end
Some users may encounter issues with blocks that require the superuser permission, i.e root.
This is very difficult for me to investigate without further help, since it varies with Android version, SU app and SELinux build, etc..
If you're having issues with a superuser feature, please download a run the following debug flow and post the flow log with Android version and SU provider in this forum thread:
http://llamalab.com/automate/community/flows/1153
Known issues:
- cf-auto root on Android 5.0.2
- SuperSU 2.46
- ClockworkMod on Android 4.4.4
- SuperSU 2.46 on Android 5.02 (Galaxy s6)
* Device - Nexus 5
* OS - Android Marshmallow
* Superuser app - SuperSU 2.52
* SELinux policy - Testet with both permissive and enforced (using "setenforce" command to switch)
* Automate vers. - 1.1.4a1
* Log (debug flow) -http://pastebin.com/00DNF9RL
Basicaly SuperSU shows permission is granted (and show the notification) but after a few seconds an automate notification says the superuser permissions granting failed.
I noticed all this when i was trying to create a flow that requires superuser permissions (android.permission.WRITE_SECURE_SETTINGS), Automate installed the permissions package just fine but something is wrong because in the flow details is still showing as "install permission" and if you click to install it will continue without issue.
As i said i tried with both selinux permissive and enforced, but the result is the same.Root is working for other apps (Terminal, Titanium Backup, etc) but do miss my favorite automation app,so please let me know if you need more info, logs, etc.
2015-10-14 22:36:08.318 INFO 24@1: Flow beginning
2015-10-14 22:36:08.320 INFO 24@15: Shell command superuser
2015-10-14 22:36:09.795 USER 24@16: am out:
2015-10-14 22:36:09.801 USER 24@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-10-14 22:36:09.803 INFO 24@2: Shell command superuser
2015-10-14 22:36:10.917 USER 24@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-10-14 22:36:10.918 USER 24@4: id err:
2015-10-14 22:36:10.919 INFO 24@5: Shell command
2015-10-14 22:36:10.980 USER 24@6: dev.bootcomplete: 1
2015-10-14 22:36:10.981 INFO 24@8: Shell command
2015-10-14 22:36:11.015 USER 24@7: init.svc.bootanim: stopped
2015-10-14 22:36:11.016 INFO 24@9: Shell command
2015-10-14 22:36:11.082 USER 24@10: ro.build.selinux: 1
2015-10-14 22:36:11.083 INFO 24@11: App installed?
2015-10-14 22:36:11.085 USER 24@12: com.llamalab.automate.ext.storage: INSTALLED
2015-10-14 22:36:11.085 INFO 24@0: Stopped at end
2015-10-14 22:36:37.082 INFO 25@1: Flow beginning
2015-10-14 22:36:37.084 INFO 25@15: Shell command superuser
2015-10-14 22:36:38.480 USER 25@16: am out:
2015-10-14 22:36:38.481 USER 25@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-10-14 22:36:38.481 INFO 25@2: Shell command superuser
2015-10-14 22:36:39.665 USER 25@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-10-14 22:36:39.668 USER 25@4: id err:
2015-10-14 22:36:39.669 INFO 25@5: Shell command
2015-10-14 22:36:39.730 USER 25@6: dev.bootcomplete:
2015-10-14 22:36:39.731 INFO 25@8: Shell command
2015-10-14 22:36:39.772 USER 25@7: init.svc.bootanim: stopped
2015-10-14 22:36:39.772 INFO 25@9: Shell command
2015-10-14 22:36:39.808 USER 25@10: ro.build.selinux: 1
2015-10-14 22:36:39.809 INFO 25@11: App installed?
2015-10-14 22:36:39.810 USER 25@12: com.llamalab.automate.ext.storage: INSTALLED
2015-10-14 22:36:39.811 INFO 25@0: Stopped at end
2015-10-14 22:43:06.791 INFO 26@1: Flow beginning
2015-10-14 22:43:06.792 INFO 26@15: Shell command superuser
2015-10-14 22:43:08.461 USER 26@16: am out:
2015-10-14 22:43:08.464 USER 26@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-10-14 22:43:08.466 INFO 26@2: Shell command superuser
2015-10-14 22:43:09.645 USER 26@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-10-14 22:43:09.648 USER 26@4: id err:
2015-10-14 22:43:09.650 INFO 26@5: Shell command
2015-10-14 22:43:09.740 USER 26@6: dev.bootcomplete: 1
2015-10-14 22:43:09.742 INFO 26@8: Shell command
2015-10-14 22:43:09.822 USER 26@7: init.svc.bootanim: stopped
2015-10-14 22:43:09.823 INFO 26@9: Shell command
2015-10-14 22:43:09.872 USER 26@10: ro.build.selinux: 1
2015-10-14 22:43:09.873 INFO 26@11: App installed?
2015-10-14 22:43:09.875 USER 26@12: com.llamalab.automate.ext.storage: INSTALLED
2015-10-14 22:43:09.876 INFO 26@0: Stopped at end
Using a context seems to fix some issues sometimes, like in this example - > http://forum.xda-developers.com/showthread.php?p=63327796
2015-11-12 08:19:07.677 INFO 10@1: Flow beginning
2015-11-12 08:19:07.679 INFO 10@15: Shell command superuser
2015-11-12 08:19:08.416 USER 10@16: am out:
2015-11-12 08:19:08.419 USER 10@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2015-11-12 08:19:08.422 INFO 10@2: Shell command superuser
2015-11-12 08:19:08.814 USER 10@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-11-12 08:19:08.815 USER 10@4: id err:
2015-11-12 08:19:08.815 INFO 10@5: Shell command
2015-11-12 08:19:08.850 USER 10@6: dev.bootcomplete: 1
2015-11-12 08:19:08.850 INFO 10@8: Shell command
2015-11-12 08:19:08.882 USER 10@7: init.svc.bootanim: stopped
2015-11-12 08:19:08.883 INFO 10@9: Shell command
2015-11-12 08:19:08.914 USER 10@10: ro.build.selinux: 1
2015-11-12 08:19:08.914 INFO 10@11: App installed?
2015-11-12 08:19:08.915 USER 10@12: com.llamalab.automate.ext.storage: INSTALLED
2015-11-12 08:19:08.916 INFO 10@18: Shell command superuser
2015-11-12 08:19:09.233 USER 10@19: getenforce out: Enforcing
2015-11-12 08:19:09.234 USER 10@20: getenforce err:
2015-11-12 08:19:09.234 INFO 10@0: Stopped at end
The current Alpha version 1.1.4a3 has a new "SuperSU SELinux context" option in settings.
Please try the different contexts and report if any of them work!
2015-11-28 01:25:50.749 INFO 1796@1: Flow beginning
2015-11-28 01:25:50.751 INFO 1796@15: Shell command superuser
2015-11-28 01:25:56.131 USER 1796@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2015-11-28 01:25:56.132 USER 1796@17: am err: WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
2015-11-28 01:25:56.135 INFO 1796@2: Shell command superuser
2015-11-28 01:25:56.473 USER 1796@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2015-11-28 01:25:56.474 USER 1796@4: id err:
2015-11-28 01:25:56.476 INFO 1796@5: Shell command
2015-11-28 01:25:56.519 USER 1796@6: dev.bootcomplete: 1
2015-11-28 01:25:56.522 INFO 1796@8: Shell command
2015-11-28 01:25:56.577 USER 1796@7: init.svc.bootanim: stopped
2015-11-28 01:25:56.579 INFO 1796@9: Shell command
2015-11-28 01:25:56.628 USER 1796@10: ro.build.selinux: 1
2015-11-28 01:25:56.631 INFO 1796@11: App installed?
2015-11-28 01:25:56.633 USER 1796@12: com.llamalab.automate.ext.storage: INSTALLED
2015-11-28 01:25:56.635 INFO 1796@18: Shell command superuser
2015-11-28 01:25:56.980 USER 1796@19: getenforce out: Enforcing
2015-11-28 01:25:56.982 USER 1796@20: getenforce err:
2015-11-28 01:25:56.983 INFO 1796@0: Stopped at end
And I also have a problem with root access. I use SuperSU, Android 5.1. Do you know how to fix it? I'm trying to set cpu speed, but getting error eaccess: permission denied.
Also when I'm trying to use export feature file manager opens but it can't save a file for some reason. Mail app can't do that too. What's wrong?
OK, stop all helps.
There is a log from your app:
And there is a log from a terminal:Of course it doesn't helps. Supersu doesn't show a notification that app wanted to get su rights. Even if I choose to allow all apps superuser access. No notification.What now? I use the latest alpha version.I also test the import feature. And it works only when I select "sd card" automate choice from drop down menu. But it doesn't work if I choose file manager or email or any other app except Automate. It's strange.
чт, 4 февр. 2016, 1:43, Henrik "The Developer" Lindqvist:
Henrik, I found an answer. When you want to change CPU frequency you should have permissions to write in a CPU config files. As you can see on the screenshot you should change the permissions on that files (chmod) and write what you want. Before that you can only read. Please, fix your app. I changed permissions via file manager and now everything is work.
чт, 4 февр. 2016, 22:12, Henrik "The Developer" Lindqvist:
2016-02-22 12:10:36.704 INFO 18@1: Flow beginning
2016-02-22 12:10:36.718 INFO 18@15: Shell command superuser
2016-02-22 12:10:38.013 USER 18@16: am out:
2016-02-22 12:10:38.014 USER 18@17: am err: Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:301)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
2016-02-22 12:10:38.014 INFO 18@2: Shell command superuser
2016-02-22 12:10:38.364 USER 18@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2016-02-22 12:10:38.364 USER 18@4: id err:
2016-02-22 12:10:38.365 INFO 18@5: Shell command
2016-02-22 12:10:38.420 USER 18@6: dev.bootcomplete: 1
2016-02-22 12:10:38.421 INFO 18@8: Shell command
2016-02-22 12:10:38.460 USER 18@7: init.svc.bootanim: stopped
2016-02-22 12:10:38.460 INFO 18@9: Shell command
2016-02-22 12:10:38.494 USER 18@10: ro.build.selinux: 1
2016-02-22 12:10:38.495 INFO 18@11: App installed?
2016-02-22 12:10:38.496 USER 18@12: com.llamalab.automate.ext.storage: INSTALLED
2016-02-22 12:10:38.496 INFO 18@18: Shell command superuser
2016-02-22 12:10:38.857 USER 18@19: getenforce out: Enforcing
2016-02-22 12:10:38.858 USER 18@20: getenforce err:
2016-02-22 12:10:38.858 INFO 18@0: Stopped at end
Automate @ 22/02 12:25cd '/storage/emulated/legacy'echo PWMxtOXGSEqwo054$?echo PWMxtOXGSEquoS4>&2PWMxtOXGSEqwo054OPWMxtOXGSEqwo054getenforce
echo jOMhSdL9FnGZcEXb$?echo jOMhSdL9FnGZcEXb>&2EnforcingjOMhSdL9FnGZcEXbOjOMhSdL9FnGZcEXb
Automate @ 22/02 12:24cd '/storage/emulated/legacy'echo SD9KmXc55ny6oUJz$?
echo SD9KmXc55ny6oUJz>&28D9KmXc55ny6oUJzO8D9KmXc55ny6oUJz
id
echo DTY1brKoG5RnCwa$?
echo DTY1brKoG5RnCwa>&2uid=0(root) gid=0(root) context=u r initstDTY1brKoGSRnCwaODTY1brKoGSRnCwa
Automate @ 22/02 12:24cd '/storage/emulated/legacy'echo xC1NFKZP835fmguJ$?echo xC1NFKZP83sfmguJ>&2xC1NFKZP83$fmguJOxC1NFKZP83sfmguJam broadcasta com.example.foobar.intent.action.TESTecho c46Kfj1QxXUMkrzh$?echo c46Kfj1QxXUMkrzh>&2
Error type 2android.util.AndroidException: Can't connect to activity manager; is the system running?at com.android.commands.am.Am.onRun(Am.java 301)at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)at com.android.commands.am.Am.main(Am.java 102)at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)
c46Kfj1QxXUMkrzh1c46Kfj1QxXUMkrzh
2016-02-22 13:11:00.056 INFO 29@1: Flow beginning2016-02-22 13:11:00.062 INFO 29@15: Shell command superuser2016-02-22 13:11:01.651 USER 29@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }Broadcast completed: result=0
2016-02-22 13:11:01.652 USER 29@17: am err: 2016-02-22 13:11:01.652 INFO 29@2: Shell command superuser2016-02-22 13:11:02.078 USER 29@3: id out: uid=0(root) gid=0(root) context=u:r:init:s0
2016-02-22 13:11:02.079 USER 29@4: id err: 2016-02-22 13:11:02.079 INFO 29@5: Shell command2016-02-22 13:11:02.144 USER 29@6: dev.bootcomplete: 1
2016-02-22 13:11:02.144 INFO 29@8: Shell command2016-02-22 13:11:02.199 USER 29@7: init.svc.bootanim: stopped
2016-02-22 13:11:02.199 INFO 29@9: Shell command2016-02-22 13:11:02.249 USER 29@10: ro.build.selinux: 1
2016-02-22 13:11:02.250 INFO 29@11: App installed?2016-02-22 13:11:02.251 USER 29@12: com.llamalab.automate.ext.storage: INSTALLED2016-02-22 13:11:02.251 INFO 29@18: Shell command superuser2016-02-22 13:11:02.587 USER 29@19: getenforce out: Enforcing
2016-02-22 13:11:02.588 USER 29@20: getenforce err: 2016-02-22 13:11:02.588 INFO 29@0: Stopped at end
export CLASSPATH=/data/app/com.llamalab.automate-1/base.apk
exec app_process /data/data/
com.llamalab.automate com.llamalab.automate.SuperuserService 10374
Running as 0
Started
End of STDIN
So I've switched to systemless root from SuperSU to Magisk + phh's superuser (http://forum.xda-developers.com/android/software/mod-magisk-v1-universal-systemless-t3432382) and airplane mode set isn't working. Debug superuser flow log:
2016-09-13 21:17:27.401 INFO 755@1: Flow beginning
2016-09-13 21:17:27.415 INFO 755@15: Shell command superuser
2016-09-13 21:17:28.889 USER 755@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2016-09-13 21:17:28.891 USER 755@17: am err:
2016-09-13 21:17:28.893 INFO 755@2: Shell command superuser
2016-09-13 21:17:29.472 USER 755@3: id out: uid=0(root) gid=0(root) groups=0(root) context=u:r:su:s0
2016-09-13 21:17:29.473 USER 755@4: id err:
2016-09-13 21:17:29.475 INFO 755@5: Shell command
2016-09-13 21:17:29.517 USER 755@6: dev.bootcomplete: 1
2016-09-13 21:17:29.517 INFO 755@8: Shell command
2016-09-13 21:17:29.549 USER 755@7: init.svc.bootanim: stopped
2016-09-13 21:17:29.549 INFO 755@9: Shell command
2016-09-13 21:17:29.579 USER 755@10: ro.build.selinux: 1
2016-09-13 21:17:29.580 INFO 755@11: App installed?
2016-09-13 21:17:29.581 USER 755@12: com.llamalab.automate.ext.storage: INSTALLED
2016-09-13 21:17:29.581 INFO 755@18: Shell command superuser
2016-09-13 21:17:30.020 USER 755@19: getenforce out: Enforcing
2016-09-13 21:17:30.021 USER 755@20: getenforce err:
2016-09-13 21:17:30.021 INFO 755@0: Stopped at end
Here's the log from just a basic flow setting airplane mode.
2016-09-13 21:14:06.761 INFO 754@1: Flow beginning
2016-09-13 21:14:06.764 INFO 754@2: Airplane mode set state
2016-09-13 21:14:08.190 FAIL 754@2: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
2016-09-13 21:14:08.198 INFO 754@2: Stopped by failure
2016-09-13 21:22:20.324 INFO 756@1: Flow beginning
2016-09-13 21:22:20.325 INFO 756@2: Airplane mode set state
2016-09-13 21:22:21.353 INFO 756@0: Stopped at end
2016-09-13 21:22:32.539 INFO 757@1: Flow beginning
2016-09-13 21:22:32.540 INFO 757@2: Airplane mode set state
2016-09-13 21:22:32.636 INFO 757@0: Stopped at end
2016-09-13 21:22:40.109 INFO 758@1: Flow beginning
2016-09-13 21:22:40.111 INFO 758@2: Airplane mode set state
2016-09-13 21:22:40.158 FAIL 758@2: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
2016-09-13 21:22:40.170 INFO 758@2: Stopped by failure
However interestingly I was able to get it working by disabling the SELinux switch in the Magisk Manager, which switches it to Permissive from Enforcing - as soon as I turned it back it stopped working again, as reflected in the log above.
I just changed it then ran my test flow, don't know if I needed to reboot the app/phone to apply it properly?
Some users may encounter issues with blocks that require the superuser permission, i.e root.
This is very difficult for me to investigate without further help, since it varies with Android version, SU app and SELinux build, etc..
If you're using SuperSU, please try the different "SuperSU SELinux context" options in settings and report if any of them work.
Make sure the Storage permission is installed:
https://play.google.com/store/apps/details?id=com.llamalab.automate.ext.storage
If you're still having issues with a superuser feature, please download a run the following debug flow and post the flow log with Android version and SU provider in this forum thread:
http://llamalab.com/automate/community/flows/1153
Known issues:
- cf-auto root on Android 5.0.2
- SuperSU 2.46
- ClockworkMod on Android 4.4.4
- SuperSU 2.46 on Android 5.02 (Galaxy s6)
SuperSU SELinux context working:
- "Shell" on stock Android M
2016-12-25 11:21:27.128 INFO 1622@1: Flow beginning
2016-12-25 11:21:27.132 INFO 1622@15: Shell command superuser
2016-12-25 11:21:28.453 USER 1622@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
Broadcast completed: result=0
2016-12-25 11:21:28.455 USER 1622@17: am err:
2016-12-25 11:21:28.457 INFO 1622@2: Shell command superuser
2016-12-25 11:21:29.213 USER 1622@3: id out: uid=0(root) gid=0(root) groups=0(root) context=u:r:su:s0
2016-12-25 11:21:29.215 USER 1622@4: id err:
2016-12-25 11:21:29.217 INFO 1622@5: Shell command
2016-12-25 11:21:29.251 USER 1622@6: dev.bootcomplete: 1
2016-12-25 11:21:29.253 INFO 1622@8: Shell command
2016-12-25 11:21:29.279 USER 1622@7: init.svc.bootanim: stopped
2016-12-25 11:21:29.280 INFO 1622@9: Shell command
2016-12-25 11:21:29.304 USER 1622@10: ro.build.selinux: 1
2016-12-25 11:21:29.305 INFO 1622@11: App installed?
2016-12-25 11:21:29.308 USER 1622@12: com.llamalab.automate.ext.storage: INSTALLED
2016-12-25 11:21:29.309 INFO 1622@18: Shell command superuser
2016-12-25 11:21:29.841 USER 1622@19: getenforce out: Enforcing
2016-12-25 11:21:29.843 USER 1622@20: getenforce err:
2016-12-25 11:21:29.844 INFO 1622@0: Stopped at end
2017-04-07 16:45:41.642 INFO 61@1: Flow beginning 2017-04-07 16:45:41.643 INFO 61@15: Shell command superuser 2017-04-07 16:45:42.712 USER 61@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST } Broadcast completed: result=0 2017-04-07 16:45:42.714 USER 61@17: am err: 2017-04-07 16:45:42.718 INFO 61@2: Shell command superuser 2017-04-07 16:45:43.085 USER 61@3: id out: uid=0(root) gid=0(root) groups=0(root) context=u:r:su:s0 2017-04-07 16:45:43.088 USER 61@4: id err: 2017-04-07 16:45:43.090 INFO 61@5: Shell command 2017-04-07 16:45:43.143 USER 61@6: dev.bootcomplete: 1 2017-04-07 16:45:43.144 INFO 61@8: Shell command 2017-04-07 16:45:43.184 USER 61@7: init.svc.bootanim: stopped 2017-04-07 16:45:43.185 INFO 61@9: Shell command 2017-04-07 16:45:43.230 USER 61@10: ro.build.selinux: 2017-04-07 16:45:43.232 INFO 61@11: App installed? 2017-04-07 16:45:43.234 USER 61@12: com.llamalab.automate.ext.storage: INSTALLED 2017-04-07 16:45:43.235 INFO 61@18: Shell command superuser 2017-04-07 16:45:43.559 USER 61@19: getenforce out: Enforcing 2017-04-07 16:45:43.561 USER 61@20: getenforce err: 2017-04-07 16:45:43.562 INFO 61@0: Stopped at end
The shell command stated it require a rooted device....
Log
2017-05-22 13:53:03.027 INFO 522@1: Flow beginning
2017-05-22 13:53:03.039 INFO 522@15: Shell command superuser
2017-05-22 13:53:03.069 FAIL 522@15: java.io.IOException: Permission denied
2017-05-22 13:53:03.094 INFO 522@15: Stopped by failure
2017-05-22 13:55:02.151 INFO 523@1: Flow beginning
2017-05-22 13:55:02.160 INFO 523@15: Shell command superuser
2017-05-22 13:55:02.189 FAIL 523@15: java.io.IOException: Permission denied
2017-05-22 13:55:02.192 INFO 523@15: Stopped by failure
Supersu 2.79
Android MM
I tried all selinux contexts
I always get the following error:
2017-06-04 06:07:01.527 INFO 90@4: Bluetooth tethering enabled?
2017-06-04 06:07:01.554 INFO 90@3: Bluetooth tethering set state
2017-06-04 06:07:01.582 FAIL 90@3: java.lang.SecurityException: com.llamalab.automate.ext.location was not granted this permission: android.permission.WRITE_SETTINGS.
2017-06-04 06:07:01.592 INFO 90@3: Stopped by failure
Here is the output of the debug flow:
2017-06-04 06:25:34.295 INFO 103@1: Flow beginning
2017-06-04 06:25:34.297 INFO 103@15: Shell command superuser
2017-06-04 06:25:35.288 USER 103@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2017-06-04 06:25:35.289 USER 103@17: am err:
2017-06-04 06:25:35.289 INFO 103@2: Shell command superuser
2017-06-04 06:25:35.630 USER 103@3: id out: uid=0(root) gid=0(root) groups=0(root) context=u:r:init:s0
2017-06-04 06:25:35.632 USER 103@4: id err:
2017-06-04 06:25:35.633 INFO 103@5: Shell command
2017-06-04 06:25:35.686 USER 103@6: dev.bootcomplete: 1
2017-06-04 06:25:35.687 INFO 103@8: Shell command
2017-06-04 06:25:35.726 USER 103@7: init.svc.bootanim: stopped
2017-06-04 06:25:35.728 INFO 103@9: Shell command
2017-06-04 06:25:35.764 USER 103@10: ro.build.selinux: 1
2017-06-04 06:25:35.765 INFO 103@11: App installed?
2017-06-04 06:25:35.767 USER 103@12: com.llamalab.automate.ext.storage: INSTALLED
2017-06-04 06:25:35.767 INFO 103@18: Shell command superuser
2017-06-04 06:25:36.108 USER 103@19: getenforce out: Permissive
2017-06-04 06:25:36.109 USER 103@20: getenforce err:
2017-06-04 06:25:36.112 INFO 103@0: Stopped at end
2017-07-12 08:33:04.140 INFO 40@1: Flow beginning
2017-07-12 08:33:04.142 INFO 40@15: Shell command superuser
2017-07-12 08:33:05.726 USER 40@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2017-07-12 08:33:05.729 USER 40@17: am err:
2017-07-12 08:33:05.738 INFO 40@2: Shell command superuser
2017-07-12 08:33:06.213 USER 40@3: id out: uid=0(root) gid=0(root) groups=0(root) context=u:r:su:s0
2017-07-12 08:33:06.217 USER 40@4: id err:
2017-07-12 08:33:06.222 INFO 40@5: Shell command
2017-07-12 08:33:06.313 USER 40@6: dev.bootcomplete: 1
2017-07-12 08:33:06.317 INFO 40@8: Shell command
2017-07-12 08:33:06.365 USER 40@7: init.svc.bootanim: stopped
2017-07-12 08:33:06.366 INFO 40@9: Shell command
2017-07-12 08:33:06.432 USER 40@10: ro.build.selinux: 0
2017-07-12 08:33:06.436 INFO 40@11: App installed?
2017-07-12 08:33:06.439 USER 40@12: com.llamalab.automate.ext.storage: INSTALLED
2017-07-12 08:33:06.441 INFO 40@18: Shell command superuser
2017-07-12 08:33:06.867 USER 40@19: getenforce out: Enforcing
2017-07-12 08:33:06.871 USER 40@20: getenforce err:
2017-07-12 08:33:06.874 INFO 40@0: Stopped at end
This is the log from a different flow that is attempting to set GPS when Maps is in foreground:
2017-07-12 08:34:01.618 INFO 41@1: Flow beginning
2017-07-12 08:34:01.619 INFO 41@2: App in foreground?
2017-07-12 08:34:10.089 INFO 41@3: Location provider set state
2017-07-12 08:34:10.134 FAIL 41@3: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
2017-07-12 08:34:10.135 INFO 41@3: Stopped by failure
Secure Settings permission says "Install" on the button, but is already installed and has an entry in Settings>Apps.
Any ideas?
Several reboots, uninstalled/reinstalled the flow, the permissions, and the app itself, including a full app data wipe from titanium backup. Same results.
pm grant com.llamalab.automate.ext.superuser android.permission.WRITE_SECURE_SETTINGS
Using Magisk 13.2
Debug script output below. Any tips?
2017-07-25 01:32:07.677 INFO 1575@1: Flow beginning
2017-07-25 01:32:07.689 INFO 1575@15: Shell command superuser
2017-07-25 01:32:11.337 USER 1575@16: am out: Broadcasting: Intent { act=com.example.foobar.intent.action.TEST }
Broadcast completed: result=0
2017-07-25 01:32:11.343 USER 1575@17: am err:
2017-07-25 01:32:11.349 INFO 1575@2: Shell command superuser
2017-07-25 01:32:13.535 USER 1575@3: id out: uid=0(root) gid=0(root) groups=1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),9997(everybody),50126(all_a126) context=u:r:untrusted_app:s0
2017-07-25 01:32:13.540 USER 1575@4: id err:
2017-07-25 01:32:13.547 INFO 1575@5: Shell command
2017-07-25 01:32:13.579 USER 1575@6: dev.bootcomplete: 1
2017-07-25 01:32:13.584 INFO 1575@8: Shell command
2017-07-25 01:32:13.616 USER 1575@7: init.svc.bootanim: stopped
2017-07-25 01:32:13.621 INFO 1575@9: Shell command
2017-07-25 01:32:13.655 USER 1575@10: ro.build.selinux:
2017-07-25 01:32:13.661 INFO 1575@11: App installed?
2017-07-25 01:32:13.668 USER 1575@12: com.llamalab.automate.ext.storage: INSTALLED
2017-07-25 01:32:13.673 INFO 1575@18: Shell command superuser
2017-07-25 01:32:15.732 USER 1575@19: getenforce out: Permissive
2017-07-25 01:32:15.737 USER 1575@20: getenforce err:
2017-07-25 01:32:15.738 INFO 1575@0: Stopped at end