Troubleshooting after disabling Wifi in build.prop on TCL Flip 2

Presumably he added an extra 9

1 Like

@ars18 @ys770 WARNING! When disabling the wifi via build.prop the phone will bootloop after a factory reset due to the setup wizard requiring wifi as a step before setting up the phone.

5 Likes

Oof that’s a bad one.

Better to use a boot script with magisk that will reset when the phone is reset then.

Good point. on the qin you can disable the setupwizard by adding

ro.setupwizard.mode=DISABLED

in the build.prop, That should avoid the issue. Will check if that also works on the TCL

1 Like

Device won’t get provissioned.

What do you mean

Why not use a boot script with resetprop which runs only after setup wizard is complete (settings get global device_provisioned)?

That can be taken care of by manually setting the global settings device_provisioned and user_setup_complete to 1

yup… there are more provisioning properties… global, secure and user - setup complete and provisioned.

more details please

What others? From my research I’ve only ever seen those two. user_setup_complete is secure settings and device_provisioned is global

There are more… Try those 2 and recent apps or settings won’t work…

Yeah I’m just asking which because I honestly don’t know. It sounds like you know and I would like to learn and I would like to learn

“settings put global device_provisioned 1”
“settings put global provisioned 1”
“settings put secure user_setup_complete 1”
“settings put secure device_provisioned 1”

1 Like

That’s weird. Because looking at the Android source code I see only this:

  public static final String SETTINGS_GLOBAL_DEVICE_PROVISIONED = "device_provisioned";
  public static final String SETTINGS_SECURE_USER_SETUP_COMPLETE = "user_setup_complete";
...
  /**
   * Checks whether the current user has completed Setup Wizard. This is true if the current user
   * has gone through Setup Wizard. The current user may or may not be the device owner and the
   * device owner may have already completed setup wizard.
   *
   * @param context The context to retrieve the settings.
   * @return true if the current user has completed Setup Wizard.
   * @see #isDeviceProvisioned(android.content.Context)
   */
  public static boolean isUserSetupComplete(Context context) {
    if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
      return Settings.Secure.getInt(
              context.getContentResolver(), SETTINGS_SECURE_USER_SETUP_COMPLETE, 0)
          == 1;
    } else {
      // For versions below JB MR1, there are no user profiles. Just return the global device
      // provisioned state.
      return Settings.Secure.getInt(
              context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0)
          == 1;
    }
  }
  /**
   * Checks whether the device is provisioned. This means that the device has gone through Setup
   * Wizard at least once. Note that the user can still be in Setup Wizard even if this is true, for
   * a secondary user profile triggered through Settings > Add account.
   *
   * @param context The context to retrieve the settings.
   * @return true if the device is provisioned.
   * @see #isUserSetupComplete(android.content.Context)
   */
  public static boolean isDeviceProvisioned(Context context) {
    if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
      return Settings.Global.getInt(
              context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0)
          == 1;
    } else {
      return Settings.Secure.getInt(
              context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0)
          == 1;
    }
  }

Only Global device_provisioned and Secure user_setup_complete…

Which android version?

It’s the Main branch

You can check the log it does not seem like any other settings have ever been used other than those two

On the tiq it needs those… What should I say…

Does tiq have a setup wizard? Can you pull it and send to me? And services.jar

It’s my own setup wizard…