Revert "Disable Samsung Activation Verify to solve -45(2000) error during activation on China Mainland Samsung devices (#446)" (#492)

This reverts commit 7ef9230d66.
This commit is contained in:
由崎黑板
2025-10-26 22:22:11 +08:00
committed by GitHub
parent 324dc0844f
commit 7a338b1b43

View File

@@ -137,26 +137,6 @@ pub fn on_post_data_fs() -> Result<()> {
info!("no mount requested"); info!("no mount requested");
} }
// Disable Samsung Activation Verify
if let Some(model) = utils::getprop("ro.product.model")
&& model.starts_with("SM-")
{
info!("Disable Samsung Activation for model {}", model);
if Path::new("/system/app/ActivationDevice_V2").exists() {
if let Err(e) = std::fs::create_dir_all("/data/local/tmp/ActivationDevice_V2") {
warn!("Failed to create directory: {}", e);
} else if let Err(e) = mount(
"/data/local/tmp/ActivationDevice_V2",
"/system/app/ActivationDevice_V2",
"none",
MountFlags::BIND,
"",
) {
warn!("Failed to mount ActivationDevice_V2: {}", e);
}
}
}
run_stage("post-mount", true); run_stage("post-mount", true);
Ok(()) Ok(())