[Guide] Force to disable dark mode in your app!

Hello guys my name is Avijit,
And today i am showing you. how to you can force to disable dark mode in your app.
Dark mode is a very major problem for light UI/UX. So lets start our today tutorial.

Step 1

Open your app in APK Editor Studio

Step 2

Go to res/values/ Folder

Step 3

Open styles.xml File

Step 4

Copy all data and paste in notepad

Step 5

Click Ctrl+f To find text in notepad
Find <style name="AppTheme" parent=" Tag

Step 6

Copy <item name="android:forceDarkAllowed">false</item> This code and paste it in Style tag

Now copy all data from notepad and come apk editor studio and paste all data.
Now save it and save your apk file and install it in your phone

Useful Links
Sign apk from @bodymindpower
Use apk editor from @consoleheretohelp
Apk to Aab from @Shreya.ig

If this guide can help you then click “Like” button :heart:


Well-done @Avijit:+1::+1::+1: :ok_hand::ok_hand::ok_hand:

Keep writing.


Nice tutorial @Avijit :+1:

Keep it up


Nice :clap: :+1:


Nice tutorial @Avijit :heart_eyes:


/data/user/0/com.gmail.heagoo.apkeditor/files/decoded/res/values/styles.xml:141: error: Error: No resource found that matches the given name: attr ‘android:forceDarkAllowed’.

I’m getting this error while trying to build the apk.

Are you read this guide carefully?