datalogic / scan2deploy-android-schema

JSON schema used by Scan2Deploy Android
1 stars 0 forks source link

Problems on Joya Touch A6 Android 7 and 8 #4

Open acaliaro opened 4 years ago

acaliaro commented 4 years ago

Hi. I am trying DLSTAGER on Joya Touch A6 Android 7 and 8.

I would like to use

            "DISABLE_APP <package-name>",

But It seems it does not work... "script parsing failed"

Also this command does not work

        "SHELL appops set it.aaa.ddd WRITE_SETTINGS allow",

to be clear, DLSTAGER says "DONE" but when I try to change some settings, It seems that it's not allow (If I use this command from command line with ADB, Joya Touch receive it correctly and I am able so write settings).

Thanks Alessandro

codybrookshear commented 4 years ago

Hi Alessandro,

Regarding using DISABLE_APP <package-name> using DL Stager, I'm afraid that command is not supported. It's only available in Scan2Deploy.

Regarding the SHELL appops... command not working, in theory it should work. The arguments are all passed to [ProcessBuilder.start](https://developer.android.com/reference/java/lang/ProcessBuilder#start()). It could be that this command requires special permissions

acaliaro commented 4 years ago

Thanks @codybrookshear for the answer.

So, which is the official staging tool? Should I have to use DLSTAGER or SCAN2DEPLOY?

I have other questions about your staging tools. Can I write my questions here?

Thanks

acaliaro commented 4 years ago

Hi Alessandro,

Regarding using DISABLE_APP <package-name> using DL Stager, I'm afraid that command is not supported. It's only available in Scan2Deploy.

Regarding the SHELL appops... command not working, in theory it should work. The arguments are all passed to [ProcessBuilder.start](https://developer.android.com/reference/java/lang/ProcessBuilder#start()). It could be that this command requires special permissions

Hi @codybrookshear. With SCAN2DEPLOY on Android8,

        "SHELL pm grant it.aaa.bbb android.permission.CHANGE_CONFIGURATION",

throws an error... Other grants work fine:

        "SHELL pm grant it.aaa.bbb android.permission.READ_PHONE_STATE",
        "SHELL pm grant it.aaa.bbb android.permission.WRITE_EXTERNAL_STORAGE",
        "SHELL pm grant it.aaa.bbb android.permission.READ_EXTERNAL_STORAGE",

Which is the difference? What should I use to grant CHANGE_CONFIGURATION?

Thanks Alessandro

codybrookshear commented 4 years ago

Hi again Alessandro,

The recommended place to ask questions is in the Datalogic developer forums or through standard support channels (Datalogic support team).

Using Scan2Deploy on Android 8, it may not be possible to grant CHANGE_CONFIGURATION permission due to security restrictions, but I'm not positive.

Take a look at the GRANT script command and auto-scan flag inside the Global section of the schema. If auto-scan fails to grant a permission, it's likely not possible to be granted ever by Scan2Deploy.

Also, have you seen our Scan2Deploy Studio software? It may be very helpful for you. We just released version 1.4.3.

Cody

codybrookshear commented 4 years ago

And to answer your other question about which is the official staging tool, the tools are both quite similar of course, but DL-Stager is only available on Joya devices, where-as Scan2Deploy is available on both Joya and other Android devices such as the Memor 1, Memor 10 and Memor 20. Customers that are already used to using DL-Stager should continue using that tool. Otherwise, you would likely want to use Scan2Deploy. Hope that helps.

Cody

acaliaro commented 4 years ago

Hi again Alessandro,

The recommended place to ask questions is in the Datalogic developer forums or through standard support channels (Datalogic support team).

Using Scan2Deploy on Android 8, it may not be possible to grant CHANGE_CONFIGURATION permission due to security restrictions, but I'm not positive.

Take a look at the GRANT script command and auto-scan flag inside the Global section of the schema. If auto-scan fails to grant a permission, it's likely not possible to be granted ever by Scan2Deploy.

Also, have you seen our Scan2Deploy Studio software? It may be very helpful for you. We just released version 1.4.3.

Cody

Thanks @codybrookshear for your answer. Yes, I have seen scan2seploy studio, but I think it is not "complete":

image

Here I don't see Joya...

image

and here I see only a subset of script commands...

        "pattern": "^BECOME|^BROADCAST|^CLEAR|^COPY|^DELETE|^DISABLE_APP|^DISOWN|^ENABLE_APP|^GRANT|^INFLATE|^INSTALL|^LAUNCH|^OWN|^SHELL|^START|^UNINSTALL|^UPDATE|^WAIT|^\\[Pre-Install\\]$|^\\[Install\\]$|^\\[Post-Install\\]$",

And the documentation at https://datalogic.github.io/scan2deploy/android-schema#scripting seems to be not very updated (I don't see BECOME, OWN, DISOWN....)

I try to ask questions on the Datalogic Developer forum (like I have already done) but it seems not too much people answer to questions.. (https://discussion.datalogic.com/t/set-display-brightness-programmatically/669)