Can I edit the hosts file on my android without root access? I'd like to block access to websites on my Pixel 3 android device. The parental settings leave much to be desired and apps like BlockSite don't work across all browsers. (In this case - it doesn't work in firefox)   Here's what I tried so far   adb pull /system/etc/hosts ~/Documents/android/hosts   I edited the hosts file and got it ready to be transferred back.  adb push ~/Documents/android/hosts /system/hosts   This gave me error message: adb: error: failed to copy '/Users/[username]/Documents/android/hosts' to '/system/hosts': remote couldn't create file: Read-only file system  Per this  and this , I tried a few other options.  I tried to use these commands   adb root adb disable-verity adb reboot adb root adb remount   This gave me error message: adbd cannot run as root in production builds and when I tried adb disable-verity it said: verity cannot be disabled/enabled - USER build.  I tried to use this command  adp remount   This gave me error: Not running as root. Try "adb root" first.  I downloaded an emulator and tried this command on my device  mount -o rw,remount /system mount -o ro,remount /system   Similarly, this was unsuccessful
How to edit 'etc/hosts' file in non-rooted phone? I'm using LineageOS 14.1 and don't want nor need to root it. How can I remount /system rw and edit /system/etc/hosts?  All answers in "" expect a rooted phone.
Android: fragments overlapping issue Is there a ".bashrc" equivalent file read by all shells? Is ~/.bashrc  the only place to specify user specific environment variables, aliases, modifications to PATH variable, etc?  I ask because it seems that ~/.bashrc seems to be bash-only, but other shells exist too… How many numbers are in the Fibonacci sequence below a given threshold? Assuming I'm asked to generate Fibonacci numbers up to N, how many numbers will I generate? I'm looking for the count of Fibonacci numbers up to N, not the Nth number.  So, as an example, if I generate Fibonacci numbers up to 25, I will generate:   1, 1, 2, 3, 5, 8, 13, 21 that's 8 numbers   How do I calculate this mathematically for an arbitrary "n"? Suppose I installed ubuntu with the user usr1 then I added usr2. I then create a group grp1 where this 2 users are added. A folder is owned by usr1 and has group grp1. But when I login as usr2 I cannot write. The folder has permissions 755...  usr2@kmserver:/media/data/www$ groups usr1 usr1 : grp1 ... usr2@kmserver:/media/data/www$ groups usr2 usr2 : grp1 ... usr2@kmserver:/media/data$ ls -l total 20 drwx------ 2 root root 16384 2011-05-12 10:53 lost+found drwxrwxr-x 2 grp1   grp1    4096 2011-05-12 15:15 www   Whats wrong? Why do some Kree have white skin? This seems bizarre to me.  All the Kree we've seen thus far (MCU based) were blue skinned... Ronan the Accuser being the most famous  What do Kree people look like?  Is there anything concrete with their appearance?  It seems odd that Danvers (Captain Marvel) and Jude Law's character (Yon-Rog?) and the "Supreme Intelligence" are all white skinned. I am working on SharePoint 2010, I have a custom list with columns Start date , End date, Created by, Approval Status. I have created a page where I am looking to filter the list and show the result depending on the approval status which is a column in custom list as shown in figure . Can some one help me out on how to approach for this. I'm trying to generate a secret key to be used for HMAC SHA-256 signature processing. I've seen many sample of keys with variable length from 32 characters to 96 characters.  What is the ironclad rule for this key size? There's a way to safely try KDE on top of an Ubuntu installation, keeping the possibility to revert the changes in case I dislike how it runs? I have a large table that is already partitioned by an identifier (CustomerId). I have created new customers, and want to add new partitions to the table, and want to confirm the correct way to do this. My predecessor set this up and is no longer available so I cannot confirm.  There are currently partitions for 60 distinct CustomerIds (let's say 1-60), and a filegroup and file for each. I have created new filegroups and files for the new customers (61-68) and need to partition the existing data already in this table. So, the data that's already in the table, with customerId 61-68 needs to be moved into separate partitions.   I tried to use the partition wizard, but couldn't find an option for what I wanted. As far as I can tell, I need to run something like:  ALTER PARTITION SCHEME PS_Details  NEXT USED Filegroup61 ALTER PARTITION FUNCTION PF_Details ()  SPLIT RANGE (61)   I'm looking for someone to point me in the right direction as to best practice for this sort of thing. Do I take the data out of the table, into a new table stored in the Filegroup61 then switch the partition in? Not really sure how to approach this. How could I define function with function such as Coefficient? How to find infinite sum How to find infinite sum $$1+\dfrac13+\dfrac{1\cdot3}{3\cdot6}+\dfrac{1\cdot3\cdot5}{3\cdot6\cdot9}+\dfrac{1\cdot3\cdot5\cdot7}{3\cdot6\cdot9\cdot12}+\dots? $$   I can see that 3 cancels out after 1/3, but what next? I can't go further. What does "Meta" mean? I am fairly new to Stack Overflow and just stumbled across Meta Stack Overflow.  I can't seem to figure out what the purpose of the "Meta" site is. Can someone please explain it to me? Declaring Text Decorations such as Underline, Strikethrough in a Style How do I include text decorations such as Underline, Strikethrough etc in a Style definition:  &lt;Style x:Key="UnderlinedLabel"&gt;      &lt;Setter Property="Control.FontFamily" Value="Trebuchet MS" /&gt;      &lt;Setter Property="Control.FontSize" Value="14" /&gt;      &lt;!-- Next line fails --&gt;      &lt;Setter Property="Control.TextDecorations" Value="Underline" /&gt; &lt;/Style&gt;   I'm familiar with using the following XAML to underline text:  &lt;TextBlock&gt;    &lt;Underline&gt;        Underlined text    &lt;/Underline&gt; &lt;/TextBlock&gt;   However text decoration is just another style, I want to be able to define it declaritively like FontWeight, FontSize etc.  [Update]  I was applying this style to a Label control.  This was my main problem.  It appears you can't underline text in a Label.  Change to a TextBlock (thanks gix) and all is well. How general is the Lagrangian quantization approach to field theory? It is an usual practice that any quantum field theory starts with a suitable Lagrangian density. It has been proved enormously successful. I understand, it automatically ensures valuable symmetries of physics to be preserved. But nevertheless the question about the generality of this approach keeps coming to my mind. My question is how one can be sure that this approach has to be always right and fruitful. Isn't it possible, at least from the mathematical point of view that a future theory of physics does not subscribe to this approach? I deleted an answer which had no upvotes or downvotes, but after some time I saw that my reputation was -2 and the reason is linked to my search engine.    I want to know why this happened and what "linked to my serach engine" means? How to determine equality for two JavaScript objects? How to change default user in WSL Ubuntu bash on Windows 10 Remove automatically added keyboard inputs and prevent them from coming back (Windows 10) I have 2 languages installed on my computer, both with a single input method.  I have 2 keyboards: CES-CSQ and ENG-US.    However lately (maybe after the last Win10 update) I started to see 2 additional keyboards in my systray  - namely CES-CS and ENG-CSQ.    Is there there a way to remove those 2 input options (CES-CS, ENG-CSQ) which I do not see in the Control panel's Language options?  Solution described at  question does not apply to my problem because I do not see input options that I want remove in Control panel's Language options. Send an email as an attachment from iPhone Find count of all combination of numbers whose sum is x I want to find the sum of all combination of numbers whose sum is x, for e.g.  when x = 3 f(x) = countOf(111,12,21,3) = 4