From 7a338b1b43e2def3d29c08ebc779d7265a58ef09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B1=E5=B4=8E=E9=BB=91=E6=9D=BF?= <94628337+YuzakiKokuban@users.noreply.github.com> Date: Sun, 26 Oct 2025 22:22:11 +0800 Subject: [PATCH] Revert "Disable Samsung Activation Verify to solve -45(2000) error during activation on China Mainland Samsung devices (#446)" (#492) This reverts commit 7ef9230d66060c48f077fd4a6c2abc29a5764480. --- userspace/ksud/src/init_event.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/userspace/ksud/src/init_event.rs b/userspace/ksud/src/init_event.rs index eee0fcef..096c9b28 100644 --- a/userspace/ksud/src/init_event.rs +++ b/userspace/ksud/src/init_event.rs @@ -137,26 +137,6 @@ pub fn on_post_data_fs() -> Result<()> { 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); Ok(())