Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

rifting/Honeycomb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

An android device policy editor!

Usage: ./honeycomb [OPTIONS]

Options:
  -p, --policy-name <POLICY_NAME>    Name of policy you want to enable/disable
      --profile-path <PROFILE_PATH>  Input file. For the primary user on android devices, this is typically /data/system/users/0.xml [default: /data/system/users/0.xml]
  -o, --out <OUT>                    Output file name
      --list-policies                List available policies and exit
      --overwrite                    Pass this argument to overwrite the original file
  -h, --help                         Print help
  -V, --version                      Print version

Warning: Honeycomb is still in development. It may fail to correctly modify the device policy files. Always take backups if you're using the --overwrite argument

Example Usage

Listing Enabled Policies

> ./honeycomb --list-policies

no_install_unknown_sources
no_factory_reset
no_config_location
no_add_clone_profile
no_safe_boot
no_config_credentials
no_config_date_time

Removing Policies

> ./honeycomb --policy-name no_install_unknown_sources --out out.xml

REMOVING the no_install_unknown_sources policy

Found no_install_unknown_sources with start offset 336 and end offset 367
Successfully disabled the no_install_unknown_sources policy
Wrote XML without policy to out.xml!

Creating Policies

> ./honeycomb --policy-name no_install_unknown_sources --out out.xml

CREATING the no_install_unknown_sources policy
Successfully added the no_install_unknown_sources policy

Wrote XML with the new policy to out.xml!

Compilation

Follow the guide for cross compiling Rust to Android here.

Honeycomb also works on Windows, Linux, and MacOS if you'd like to locally modify policies on a user profile file you already have.

Credits

rhythmcache for their awesome ABX converter & parser!

TODO

  • Overwrite argument
  • Add more safety checks

About

Android device policy editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages