A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) How India’s Fishermen Turn Ocean Plastic Into Roads, National : Today Indya

Latest News

Enable YouTube dark theme on Android without root or modified APKs
Wednesday, August 1, 2018 IST
Enable YouTube dark theme on Android without root or modified APKs

Back in March, Google announced that the YouTube mobile app for Android and iOS would get a dark mode. That dark theme rolled out for iOS users almost immediately but has taken months to reach the Android version. In fact, Google only recently started testing the dark theme for a handful of users. For those of you who like to tinker with your device, you probably know that YouTube’s dark theme has been accessible on Android for months—provided you’re willing to root your device or install a modified APK. For those of you who either don’t want to root your device or sideload a modified version of the YouTube app, you’ll have a long wait ahead of you before the feature rolls out for your device. But if you don’t want to wait, we found a way to enable YouTube for Android’s dark mode without root and without modifying the APK.

 
 

If you want your YouTube app on Android to look like this, then read on.
 
 
 
Just like many of our previous tutorials, we’re going to be using a handy tool called “ADB” for this little trick of ours. ADB, or the Android Debug Bridge, is a computer tool that developers use to interface with their device. It offers a bunch of useful debugging tools, one of which allows users to backup and restore their application data. We’re going to be taking advantage of ADB’s backup and restore functionality to forcefully enable YouTube’s dark mode.
 
Enabling it is a piece of cake—the process should take seconds if you already have ADB set up. If you don’t have ADB set up, you’ll have to go through that process before you can proceed. We recommend you do set up ADB access for your smartphone, though, as it opens up a wide range of hidden customization options that normally aren’t available (such as system-wide, rootless custom themes on Android 8.0 Oreo and Android 8.1 Oreo.) If you’re comfortable with that and want to get YouTube for Android’s dark theme, then here’s how. We’ll explain exactly how this works after the step-by-step instructions.
 
How to Enable YouTube’s Dark Theme on Android
 
Many thanks to xfileFIN on our Discord server for sharing this method with us.
 
 
 
Download QR-Code
Developer: Google LLC
Price: Free
 
1. Make sure you’re up to date on the latest version of the app by downloading it from the Google Play Store above.
 
 
3. Download “YouTubeDarkTheme_XDA.zip” from AndroidFileHost.
 
4. Extract “YouTubeDarkTheme_XDA.ab” from the zip file and place it in the platform-tools folder where the ADB binary is located.
 
5. Open up a command prompt or terminal window in the directory where ADB is located and enter the following command depending on your OS:
 
Windows Command Prompt: adb restore YouTubeDarkTheme_XDA.ab
 
Windows Power Shell: .\adb restore YouTubeDarkTheme_XDA.ab
 
macOS Terminal: ./adb restore YouTubeDarkTheme_XDA.ab
 
Linux Terminal: ./adb restore YouTubeDarkTheme_XDA.ab
 
How to Enable YouTube for Android Dark Theme without root or modified apk
 
6. You should see a message telling you to unlock your phone and confirm the restore operation.
 
 
7. On your smartphone, you should see a fullscreen prompt requesting you approve a “full restore of all data.” Accept it without entering a password (the file we made doesn’t need one). Pressing “Restore My Data” will not wipe or replace any of your phone’s data (except YouTube’s settings, which is our goal here), so don’t worry.
 
8. After a few seconds, the fullscreen prompt should disappear. If you are already in the YouTube app, it should reload with the dark theme present. If you weren’t already in the app, just open it up and it should load with the theme. There’s a small chance YouTube might force close, but this can safely be ignored by just re-opening the app.
 
9. Congratulations, you should now have YouTube for Android’s dark theme enabled! You won’t see the toggle in settings, so if you want to turn off the dark mode you’ll have to clear YouTube’s app data.
 
We don’t like showing our readers a cool tweak without explaining how it works, so if you’re wondering what in the world we’re actually doing, the next section of the article is for you.
 
How it works
 
Every Android application stores their data in a location that’s only accessible to that app. For YouTube, that location is in /data/data/com.google.android.youtube. Within this location is the “shared preferences” folder which contains XML files that hold the app’s settings. The youtube.xml file contains the preferences that define whether the app should display the dark theme (among other things). By default, that preference value is false. Manually modifying this value to be true requires root access because all files within /data (excluding /data/media, which requires the appropriate external storage permissions to read/write) are inaccessible to third-party apps without root. But we can take advantage of built-in, first-party tools to work around that restriction.
 
The files in the “shared preferences” folder can be backed up manually by ADB or automatically to Google Drive if the app allows it. We can take advantage of the former backup method by preparing our own modified “backup” file to restore that contains a modified youtube.xml with the dark theme preference set to value. That’s exactly what was done here—we took a YouTube ADB backup, unpacked it, modified it, and then re-packed it all using this tool. You can unpack the .ab file we made yourself to verify its contents if you like. Restoring this .ab file overwrites the original youtube.xml file, thus forcing the dark mode value to be set to true.
 

 
 

 
 
 
 
 

Related Topics

 
 
 

Trending News & Articles

 Article
Here is the full list of 827 porn websites banned by the DoT

While the Uttarakhand High Court has asked to block 857 websites, the Ministry of Electronics and IT (Meity) found 30 portals without any pornographic content. ...

Recently posted . 64K views . 1 min read
 

 Article
Class XII Boys Raped 16-Year-old in Dehradun School After Watching Porn on Phone: Police

The four boys as well as five school officials, including the director and principal, were arrested after the incident. The minors were presented before the Juvenil...

Recently posted . 9K views . 1 min read
 

 Article
Sept 27,2001 Rahul Gandhi and his girl friend Veronique,was arrested in Logan airport in Boston

Rahul was having an Italian passport and was carrying suitcase full of dollars. Some say it was about was it $2 million. Rahul and his girl friend was th...

Recently posted . 9K views . 7 min read
 

 Article
TOP 10 GYM EQUIPMENT BRANDS IN INDIA 2017

True – Tr...

Recently posted . 8K views . 83 min read
 

 
 

More in Electronics & Gadgets

 Article
Union Budget 2017: Rajya Sabha to take up Motion of Thanks on President 's speech

New Delhi: The Rajya Sabha will on Thursday take up the Motion of thanks on President Pranab Mukherjee`s deliver to the joint sitting of the Parliament. ...

Recently posted. 528 views . 4 min read
 

 Article
Karnataka Congress MLA Siddu Nyamagouda dies in road accident

Newly-elected Congress MLA Siddu Nyamagouda suffered severe injuries and died instantly in an accident in Bagalkote, Karnataka.  

Recently posted. 703 views . 1 min read
 

 Article
Two sisters jump into crocodile-infested waters to save passengers onboard a capsized boat in Odisha

Susmita and Purnima Giri, two sisters from Odisha saved at least 10 people from drowning in a crocodile-infested portion of the Mahanadi river after the boat carr...

Recently posted. 731 views . 1 min read
 

 Reviews
Top 10 Companies to Work For in India



Recently posted . 3K views . 34 min read
 

 Article
Giving Old Indian Saris A New Life, ‘I Was A Sari’ Is Helping Underprivileged Women Design Their Future

“I forever lived in my village in Mumbai. I always wanted to go out on a vacation with my kids and my husband. Earlier, all the money my husband earned was ...

Recently posted. 639 views . 2 min read
 

 Article
Cabinet clears GST Bills to ensure roll out from July 2017

The Cabinet on Monday endorsed five draft laws on Goods and Services Tax (GST) expected to actualize the nation's greatest duty administration from July 2017....

Recently posted. 908 views . 20 min read
 

 
 
 

   Prashnavali

  Thought of the Day

“All of life is peaks and valleys. Don’t let the peaks get too high and the valleys too low.”
Anonymous

Be the first one to comment on this story

Close
Post Comment
Shibu Chandran
2 hours ago

Serving political interests in another person's illness is the lowest form of human value. A 70+ y old lady has cancer.

November 28, 2016 05:00 IST
Shibu Chandran
2 hours ago

Serving political interests in another person's illness is the lowest form of human value. A 70+ y old lady has cancer.

November 28, 2016 05:00 IST
Shibu Chandran
2 hours ago

Serving political interests in another person's illness is the lowest form of human value. A 70+ y old lady has cancer.

November 28, 2016 05:00 IST
Shibu Chandran
2 hours ago

Serving political interests in another person's illness is the lowest form of human value. A 70+ y old lady has cancer.

November 28, 2016 05:00 IST


ads
Back To Top