diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index f183a94f079202298275a4f2cf5e79dc3e2d0324..35d497aedbc533e9046de663d2b709ccda1f9871 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -295,6 +295,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/raw/lineage_wizard_script.xml b/res/raw/lineage_wizard_script.xml
index 793177f8f431ce71c83bf02c14a3a292965e9626..137e03e005436ac35b3e527eb99cf2cbbec0b335 100644
--- a/res/raw/lineage_wizard_script.xml
+++ b/res/raw/lineage_wizard_script.xml
@@ -29,6 +29,10 @@
+
+
+
+
diff --git a/res/values/e_strings.xml b/res/values/e_strings.xml
index c3aacd8e1d861e6a662ef7940de021e5df6038fb..a86e11b1f7a57577ca5649e05d8dde1885d2a8ab 100644
--- a/res/values/e_strings.xml
+++ b/res/values/e_strings.xml
@@ -27,4 +27,8 @@
Update RecoveryUpdates Recovery on first boot subsequent to every update.Update Recovery alongside the OS
+
+ Activate parental control
+ Setup parental control
+ This app offers protection against inappropriate content for your children and teenagers. You can activate this feature when lending your phone to your kid or if this is their device.
\ No newline at end of file
diff --git a/src/org/lineageos/setupwizard/ParentalControlActivity.java b/src/org/lineageos/setupwizard/ParentalControlActivity.java
new file mode 100644
index 0000000000000000000000000000000000000000..e57226cbea8a6c67326d86501c93c8431b36d58f
--- /dev/null
+++ b/src/org/lineageos/setupwizard/ParentalControlActivity.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright (C) 2024 MURENA SAS
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.lineageos.setupwizard;
+
+import static org.lineageos.setupwizard.SetupWizardApp.PARENTAL_COMPONENTNAME;
+import static org.lineageos.setupwizard.SetupWizardApp.REQUEST_CODE_PARENTAL_CONTROL;
+
+import android.content.Intent;
+import android.view.View;
+import android.os.Bundle;
+
+public class ParentalControlActivity extends SubBaseActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setNextText(R.string.skip);
+ }
+
+ @Override
+ protected void onStartSubactivity() {
+ setNextAllowed(true);
+ findViewById(R.id.activate_parental_control).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ launchParentalControl();
+ }
+ });
+ }
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+ super.onActivityResult(requestCode, resultCode, data);
+ if(resultCode == RESULT_OK) {
+ onNavigateNext();
+ }
+ }
+
+ @Override
+ protected int getLayoutResId() {
+ return R.layout.setup_parental_control;
+ }
+
+ @Override
+ protected int getTitleResId() {
+ return R.string.parental_control_setup_title;
+ }
+
+ @Override
+ protected int getIconResId() {
+ return R.drawable.ic_account_manager_screen;
+ }
+
+ private void launchParentalControl() {
+ Intent intent = new Intent();
+ intent.setComponent(PARENTAL_COMPONENTNAME);
+ startActivityForResult(intent, REQUEST_CODE_PARENTAL_CONTROL);
+ }
+}
diff --git a/src/org/lineageos/setupwizard/SetupWizardApp.java b/src/org/lineageos/setupwizard/SetupWizardApp.java
index 9534d29cb5e1949ff5c6ffaef4bcee50d4054fb2..ade5b3226678067078cc5800aa952dd3b19dc4ad 100644
--- a/src/org/lineageos/setupwizard/SetupWizardApp.java
+++ b/src/org/lineageos/setupwizard/SetupWizardApp.java
@@ -20,6 +20,7 @@ package org.lineageos.setupwizard;
import android.app.Application;
import android.app.StatusBarManager;
+import android.content.ComponentName;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
@@ -80,9 +81,12 @@ public class SetupWizardApp extends Application {
public static final int REQUEST_CODE_RESTORE = 10;
public static final int REQUEST_CODE_SETUP_ACCOUNT_TYPE_E = 11;
public static final int REQUEST_CODE_CREATE_E_ACCOUNT = 1;
+ public static final int REQUEST_CODE_PARENTAL_CONTROL = 12;
public static final int RADIO_READY_TIMEOUT = 10 * 1000;
+ public static final ComponentName PARENTAL_COMPONENTNAME = new ComponentName("foundation.e.parentalcontrol", "foundation.e.parentalcontrol.MainActivity");
+
private static StatusBarManager sStatusBarManager;
private boolean mIsRadioReady = false;