Skip to content

Convert a android.content.APP_RESTRICTIONS xml file to json

Notifications You must be signed in to change notification settings

ov3rk1ll/app_restrictions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App restrictions to JSON converter

Convert a android.content.APP_RESTRICTIONS xml file to json as returned by https://developers.google.com/android/management/reference/rest/v1/enterprises.applications#managedproperty

Run

deno run --allow-read --allow-write https://raw.githubusercontent.com/ov3rk1ll/app_restrictions/main/run.ts [input res folder] --output [output file]

The input res folder must point to the res folder containing xml/app_restrictions.xml, values/strings.xml, etc
If you only have the APP_RESTRICTIONS xml file, you can directly point to it via -f|--input instead.

You can pass a -f|--file argument if the "APP_RESTRICTIONS" file is not called "app_restrictions.xml"

About

Convert a android.content.APP_RESTRICTIONS xml file to json

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages