I found a way around the annoying "Error 402" when trying to apply a 3rd party/non theme store theme!
Steps I used for success:
1) Root with Magisk.
2) Download Root Explorer or a root file manager of your choice.
3) With Root Explorer mount system R/W, go to /system/build.prop, open build.prop in text editor, and change ro.build.type=user to ro.build.type=userdebug
4) Now download Miui Theme Editor and import 3rd party theme, save, and install.
5) Open theme app and apply theme with no errors.
Good luck!
Steps I used for success:
1) Root with Magisk.
2) Download Root Explorer or a root file manager of your choice.
3) With Root Explorer mount system R/W, go to /system/build.prop, open build.prop in text editor, and change ro.build.type=user to ro.build.type=userdebug
4) Now download Miui Theme Editor and import 3rd party theme, save, and install.
5) Open theme app and apply theme with no errors.
Good luck!
Last edited: