# Question
Title: No permissions for Termux to access internal storage - even for reading
Using the **termux** (https://termux.com) terminal-emulation program, I type the following command:

```
ls /sdcard

```

I get the following error:

```
ls: can't open '/sdcard': Permission denied

```

Realizing that the **/sdcard** directory on Android is a symlink, I tried to find the location of the actual directory -- learning that it is not just a symlink, but a symlink to another symlink, and the actual directory is **/storage/emulated/0**

So finally, I typed:

```
ls -ld /storage/emulated/0

```

The result I got was:

```
drwxrwx--x   63 root     sdcard_r      4096 Aug 10 12:04 /storage/emulated/0

```

So in short --- I don't know whether **termux** used to run with the permissions of the **sdcard\_r** group or whether the *o* permissions used to allow read-write -- but I need to know which of the two it used to be and how to fix things - because being able to access the contents of the internal SD card is kinda critical.

No, my device is not rooted, nor do I plan to root it - so I can not give any information that I'd have to root the device to obtain. However, not being rooted never in the past prevented me from having read access to the /sdcard directory - so this is new (and disturbing).

Granted - it's been a few months since previously I tried to do this - but this new limitation from Android seriously hampers the usability of **termux** and who-knows-what-else -- as I need to be able to have access to files that are on my SD Card. (I can still do a lot, even if not everything, even without write permissions -- but am pretty much stuck in the water if I can't get read permissions, as is presently the case.)

# Answer
> 15 votes
Following the Termux wiki to run `termux-setup-storage` fixed it for me, as suggested by fornwall.

then restart Termux.

# Answer
> 5 votes
Newer versions of Android require apps to ask for permission during runtime. You may have noticed this already. One example is Chrome asking for the Storage permission when you try to download something for the first time. For Termux, this is a problem. Permissions default to "not allowed," so when Termux needs a permission for a task, because Termux hasn't been updated to ask for these permissions, it instead tries to perform the task anyway and throws an error as a result. Unfortunately, the developer(s) have to fix this themselves. Thankfully, Android gives you ways to manage app permissions manually. Until the developer(s) update Termux accordingly, this is probably the only way.

# Step 1: Go to Termux's App Info page

There are multiple methods to reach this page. Because different phones can have different behaviors, I included all the ones I know.

## Method 1: Using the multitask menu

1. Open Termux.
2. Press the **multitask button** to open the multitask menu. This should be next to the home button on the left.
3. In the list of applications, Termux should be the first. Tap and hold on its icon.

On some phones, you'll already be at the info page. On other phones, you'll instead see Termux's app-box-thing change at the top, with an info icon (ℹ) appearing somewhere. Other phones may give you a context menu with an "App Info" option. In both cases, tap these.

## Method 2: Using the notification panel

1. Open Termux. You want Termux's notification to appear.
2. Pull down the notification panel and find Termux's notification.
3. Try one of the below:

* Swipe the notification left or right and look for a cog wheel (⛭) or info icon (ℹ) and tap it. You can't dismiss Termux's notification, so don't worry about that.
    * Tap and hold the notification and look for either a gear (⛭), an info icon (ℹ), or a context menu with an "App Info" option and tap it.
    * Look for the app icon and/or name. You may have to swipe down on the notification. Tap and hold on it. A cog wheel (⛭), info icon (ℹ), or context menu may pop up. Tap accordingly.

## Method 3: Using the App Manager

1. Go to settings\>apps.
2. Look for an option labeled "Application Manager" or similar. It seems to depend on your device.
3. Look for Termux's entry and tap it. You may have to change your filter to "installed apps" or "downloaded apps."

# Step 2: Changing permissions

You should now be on a page with Termux's name, icon, and version number with two buttons labeled "Uninstall" and "Force Stop." below it should be various other options.

1. Look for an option labeled "Permissions" (you may need to scroll). Tap on it.
2. There should be an entry for the Storage permission. Turn it on by clicking the switch beside it. If the Storage permission isn't listed, use a storage-related command in Termux to get a permission denied error and come back.

# Testing the change

You've now given Termux access to your storage. You can test this with the command below:
`ls /sdcard/`
If you don't get a permission denied error, it worked! You shouldn't need to do this again unless you reinstall Termux.

# Answer
> 2 votes
it's July of 2017 & I had this same problem, googled for it, & arrived here. Matthew Read 's comment pointed the way to the solution, but there's no answer that spells it out clearly, so here' s the tl;dr of it:

Termux doesn't request file system permission on install, so you have to turn it on thru Settings =\> Applications =\> Termux =\> Permissions

---
Tags: terminal, internal-sd, file-permissions
---


title: How to uninstall app Nimble keyboard

text:
# Question
Title: How to uninstall app Nimble keyboard
I installed this myself. But, the app doesn't appear in list of all apps. Tried to search, but it's nowhere to be found! How can I get rid of this very annoying app?

# Answer
Not sure where you downloaded your file. I just installed this keyboard from Google Play and I'm able to find it on the drawer and in the app list. You probably got it from a third party market which may contains malwares. I can confirm its annoyance due to multiple ads though.

Was also able to delete it.
> 1 votes

---
Tags: applications, keyboard
---


# Question
Title: Can i still locate my samsung phone if it is reformatted?
I lost my samsung phone but i registered it to samsung account? Can i still locate it if the person who got it already reformatted the phone?

# Answer
The answer is **no**. As soon as your phone is formatted or factory reset, no information is left from previous use, and so the Samsung account is not connected to the phone anymore, making it impossible for Samsung to locate your phone.
> 0 votes

---
Tags: security
---


# Question
Title: How to use -net-tap with android sdk emulator?
I am trying to create a bridge between android emulator (from android sdk) and host system using -net-tap. Is there any working manual for that case? I have tried to launch emulator with `-net-tap tap0` \- `tap0` appeared in host system, but no one interfaces appeared in guest android. I also tried `-qemu -net tap,iface=tap1,script=no`, but it also doesn't work. I checked `/proc/kmsg`, there are no anything connected with new interface.

Full cmdline looks like `/opt/android-sdk/emulator -avd test-x86 -accel off -no-audio -net-tap tap0 -qemu -net tap,ifname=tap1,script=no`

Does anyone have an idea?

# Answer
> 3 votes
I think -net tap is the old way, use -netdev tap with new android sdk emulator and -device virtio-net-pci for x86 android emulator. For ARM emulator you must use an other device.

And you must install the emulator package with the sdkmanager as this:

```
sdkmanager emulator

```

Then you can use the emulator located in /opt/android-sdk/emulator/emulator.

Create a network bridge which include a tap interface (tap0) for the emulator and an ethernet interface (enp0s20u1) connected to a lan network.

```
# ip addr flush dev enp0s20u1
# ip link set enp0s20u1 down
# ip tuntap add dev tap0 mode tap user $(whoami)
# ip link add br0 type bridge
# ip link set enp0s20u1 master br0
# ip link set tap0 master br0
# ip link set enp0s20u1 up
# ip link set tap0 up
# ip link set br0 up

```

A quick overview of the bridge.

```
# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0050b609a5d1       no              enp0s20u1
                                                        tap0

```

Start a dhcp client on the bridge:

```
# dhcpcd br0

```

Then you can plug the tap interface (tap0) to the android emulator via -qemu options when you launch the emulator.

```
./opt/android-sdk/emulator/emulator \
  -avd android_25_x86 \
  -verbose -no-window \
  -qemu \
  -device virtio-net-pci,netdev=hn0,mac=52:55:00:d1:55:51 \
  -netdev tap,id=hn0,ifname=tap0,script=no,downscript=no

```

Normaly a new eth1 interface is present in the android emulator. And you can run the dhcpclient binary if it present or configure static route to your network, then it work.

```
generic_x86:/ # ping -c 1 -I eth1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.1.60 eth1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=17.1 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 17.160/17.160/17.160/0.000 ms

```

But I have some issues to ping the emulator from the outside or route all the traffic in the emulator to the host network, see my other post.

Connect android emulator to lan

---
Tags: networking, android-sdk, development
---


# Question
Title: SD card formatted as internal storage Recovery Data
I have a problem. I formatted uin SD-Card with a smartphone with Android 6 and asked me to format it as internal memory, I accepted, with only one clause, if I moved the SD on another device this did not recognize it. Now, I have formatted the smartphone and I reinserted the SD-Card, in the same, only asking me to reformat it so I will lose all the data I have.

How can I recover them?

Through Gparted I noticed that the sd-Card is divided into two partitions.

There is no way to enter the partitions or to recognize the sd at the same smartphone?

---

I do not think I understood the reason. that is, if I had not restored it to the factory settings, I could recover the key and be able to use it to enter the SD card. Can not recover the key from the SD card instead of the smartphone?

PS. sorry if I wrote here, I can not find the button to reply.

# Answer
This question appears to be a duplicate of How to decrypt Adopted Storage? in many regards, but if I understand it correctly, the following things happened and one step makes it unique:

1. You adopted the microSD card as internal storage
2. You removed it from the device (reason isn't relevant)
3. *While the microSD card was removed, you factory reset (formatted) the phone*
4. You re-inserted the microSD card after the reset was complete, and the data is unreadable

If this is the correct summation of your situation, then I am sorry, but your data on the microSD card is lost permanently, and cannot be recovered.

When an SD card is "adopted" as internal storage, it is encrypted with a random encryption token (a digital "key" so to speak) so that data can only be read or written to by that device for security and privacy. Any data recovery attempt of the information on the card requires the encryption token from the device, which is generated randomly when the storage card is adopted, if you formatted the device the token was permanently erased like all other transient device data, and the storage cannot be decrypted or recovered by any known means.

Your only real option now is to reformat the card and start clean, and unless you really need the space as internal, use the card as external (portable) storage.

For more clarity in to why this is impossible, and what is necessary for the data to be recovered, you can reference this question.
> 5 votes

---
Tags: 6.0-marshmallow, sd-card, data-recovery, adoptable-storage
---


# Question
Title: are you able to still us a google account after frp
if I bypasss the frp can I still use a google account or do I have to use the previously synced one?

# Answer
Yes. You can use any Google account after the bypass was successful. Some bypass methods, especially the one with Google account manager, require you put your own account which will allow you to unlock the FRP.
> 0 votes

---
Tags: factory-reset
---


title: ALL Android Apps Randomly Crashing?

text:
# Question
Title: ALL Android Apps Randomly Crashing?
Recently my Galaxy Grand Prime has been acting weird. All of the apps, including settings, facebook, and youtube have been randmly crashing. I haven't done anything to it like rooting or factory resetting it. Any ideas on why?

# Answer
This looks like a faulty RAM or some other hardware component like flash storage or CPU. But it does not seem to matter what part is faulty, as on phone, you usually can't simply replace one of them.
> 0 votes

---
Tags: applications, crashes, troubleshooting
---


# Question
Title: Package verification failed in recovery mode
I have one tablet and I'm installing a `.zip` file from stock recovery, but it gives the following errors:

```
Opening update package...
Verifying update package...
Verification failed
Installation aborted.

```

What causes this type of errors?

# Answer
It sounds like the bootloader on your tablet is still locked. By default, most Android tablets will only boot and run stock recovery images and ROMs, for security. It verifies that the ROM is signed by the original manufacturer (or the carrier, for carrier-branded devices). You need to unlock the bootloader to let it know you want to run an unofficial image.

See the tag for more details, and a starting point to find out how to unlock the bootloader on various devices.
> 1 votes

# Answer
You usually cannot install anything but the official updates using the stock recovery. It checks signatures of the update files, for a good reason. Without that, anyone being able to modify the ZIP file (during download or on the storage, which can be available to ordinary apps) could get a root access and modify anything. It has not been intended for installing custom packages that are not signed by the manufacturer.

You need to use a custom recovery that is free of this restriction. It depends on your phone/tablet.
> 1 votes

---
Tags: updates, recovery-mode
---


# Question
Title: How to zoom in and out using bluetooth mouse?
We zoom in and out using two fingers in an android app such as PDF viewer or map. If I use a bluetooth mouse, how can I do this? The wheel does not seem to work for this purpose.

# Answer
In many apps, if you click with the left button once and then click again and hold it down, you should be able to zoom in and out while dragging the mouse up and down.
> 1 votes

---
Tags: bluetooth, mouse, zooming
---


# Question
Title: Making an app integrated into another app
Can we have an application controlled by another application both working in the same apk ?

# Answer
One APK is one application. It doesn't make sense to talk about two applications in the same APK: they're the same application. But one application doesn't have to be one entry in the launcher, or one activity. App developers can put as many launcher entries in an application as they like, creating the appearance of multiple apps which are actually just different parts of the same package. Because they're in one package, they share the same private data and the same process, so they can control each other and work together however the app developer likes.

One example is Google Maps. Although it doesn't any more, it used to contain a second launcher entry, 'Navigation', which would launch Maps in the driving navigation mode. It was a second entry point into the same app, and both front-ends used the same data (saved places, route preferences, &c.).
> 2 votes

---
Tags: stock-android, chrome-for-android
---


# Question
Title: How can I set an alarm for the first Monday of each month?
I can set an alarm for every Monday, but how can I set one for only the 1st Monday each month?

I can have calendar events set in Google that are for first Monday, is there a way for an alarm to be set on a calendar event?

# Answer
> 2 votes
You didn't mention whether you are willing to buy an app to do this. I recently got an app called Alarm Plus Millenium that I see can do this (and lots more). I mainly got it for its task manager abilities, but I also needed a newer alarm clock app to replace my old unsupported Gentle Alarm, and this app was the best I could find for what I wanted.

Also, FWIW, I've had some email exchanges with the developer, and he was very responsive, quick to reply, and although in Paris, was very proficient in English (my only language).

Just saw your question about setting an alarm for Calendar events. Yes, Google Calendar allows you to set all sorts of alarms for the events. You can set more than one if you want.

---
Tags: calendar, alarm
---


title: Use Laptop keyboard for Android device

text:
# Question
Title: Use Laptop keyboard for Android device
I am running Ubuntu on my notebook and Lineage OS without PlayServices on my phone.

Now I would like to use my Laptop keyboard as a remote keyboard for my phone, how could I achieve that? I guess, the phone is already ready for external bluetooth keyboards, how can I turn my Ubuntu notebook into a external keyboard?

# Answer
You are looking for Bluetooth HID (Human Interface Device).

So instructions for Ubuntu can be found here:

https://askubuntu.com/questions/229287/how-do-i-make-ubuntu-appear-as-a-bluetooth-keyboard

Although its is unclear if anyone has made it work on more recent versions of Ubuntu.
> 0 votes

---
Tags: keyboard, lineageos, external-keyboard
---


title: How can I change default timer ringtone

text:
# Question
Title: How can I change default timer ringtone
I have a samsung galaxy note 4 and I am wondering how can I change my defauly ringtone? Thanks

# Answer
On a note 4, you can call on the menu button by long pressing the recent apps button on the bottom left of your phone.

(source: here, and personal experience)

So just go into the clock app, go to the timer tab, and long press on the recent button. You should now have the menu that you're talking about. If it doesn't come up, it's most probably because Samsung disabled the option.
> 0 votes

---
Tags: stock-android, android-versions, clock
---


# Question
Title: Window animation scale of 0.25 on OxygenOS 5.0.4?
Is it possible to set the window animation scale to 0.25 on OxygenOS 5.0.4? The closest options I see are 0.0 and 0.5, but I'm hoping there would be a way to do this with root access.

# Answer
> 1 votes
If there isn't option in developer settings for that value of animation scale then there is this app. App doesn't require root but you'll have to grant some permissions via ADB, you have guide how to do that when you launch app. Now when you do that under miscellaneous section there are animation speeds where you can set it to any value you want. Keep in mind that when you restart the device in most cases all modifications you made with app and permissions you granted are gone so you'll need to do it again. I say in most cases because to me sometimes happened that everything is fine and sometimes I needed to do it again.

# Answer
> 0 votes
It seems jOnePlus Tools can do this.

---
Tags: user-interface, oxygenos
---


# Question
Title: How to quickly switch between two apps on one half of the split-screen view?
I'm in this scenario a lot:
I'm using split screen opened to App1 taking the first half of the screen and App2 taking the second half of the screen. I frequently need to switch between App2 and App3 on the second half of the screen while keeping App1 on the first half. One way to switch between them is to tab the *recent apps button* then *drag* the app window to the second half of the screen. Unfortunately this process takes from 5 to 15 seconds each time I want to switch between App2 and App3, which is very exhaustive as I need to switch between them in a very frequent manner (About 3 to 10 times within 5 minutes).

How could I switch between App2 and App3 on the second half of the screen quickly just by some gesture and the apps get instantly switched without the need to drag or re-position the apps windows in order to re-fit the split screen each time?
A gesture example could be: swiping from the buttom edge of the screen to upwards on the second half of the screen (if screen is in horizontal mode).

**Important clarification:**
I'm asking about switching apps while being in multi-app split screen view. I'm not asking about single app view. One example of apps which works very well for the single app view is EAS App Switcher. What I need is that when I switch to another app it's opened in the second half of the splitted screen (not the full screen which destroys the split screen view).
Let me clarify more. I have App1 and App2 active (in split screen mode). EAS will do the job if it replaces App2's window with App3's while keeping App1's as is. What it does is that it opens App3 on full screen (single app view) destroying the split-screen view and App1 becomes in the background instead of keeping App1 active and next to it is App3 on the other screen half.
It would be very helpful if exist some app or launcher that achieves this.
I'm on Android 6.0.1 on Samsung Note 4 with root access.

# Answer
Here's a suggestion that works perfectly on a galaxy s5, and I'd assume that it's the same on a note 4.

While in split screen, long press on the back button. You'll now see all available apps on the left side of the screen. Drag the wanted app to the bottom part of the screen.

It's not as fast as you wanted, but it's two steps which would take less than 1.5 sec. when you're used to it.

**Edit:**

Found even a better way. Open app 1 and 2, now long press on the back button, and scroll to the bottom, you'll see an option called "create" press on that, and it will save the two apps as your preference. Now do the same while having app 1 and 3 open. Now to switch between the two, long press on back button, and you'll see the preset opting on the top left of the screen.
> 1 votes

---
Tags: applications, 6.0-marshmallow, recents-screen
---


# Question
Title: fb_temp not appearing on orca/cache folder
I tried to recover my facebook messages that were deleted around a month ago using the ES File Explorer. So I went to Internal Storage \> Android \> data \> com.facebook.orca \> cache. The forums stated that there should be the fb\_temp folder there, but there's none. Version is 5.0 and is not rooted.

Do I have to root my phone first?

Thank you guys.

# Answer
> -1 votes
> Do I have to root my phone first?

Yes, you need to root the phone to see apps' private data files in internal storage.

---
Tags: 5.0-lollipop, facebook-messenger
---


title: Lost Phone, I want to locate my phone

text:
# Question
Title: Lost Phone, I want to locate my phone
Can I get the location of my phone it does have WhatsApp on it, I lost it about 20 hours ago and it was online(life) on WhatsApp 11 hours ago I tried google-locator but it is out of reach because I switched off background data.

# Answer
> 0 votes
You can try locating your phone using Google's *find my device* option. Just go to Android.com/devicemanager log in, and it will show you the location of the device. If it doesn't show your location, in that case your location option is probably off, or your phone is off, or it was factory reset.

WhatsApp doesn't have a function to find your phone. So unless you had a different app that does that, you might be out of luck.

---
Tags: applications, whatsapp-messenger, lost-phone
---


# Question
Title: How can I see which websites use up most of my foreground data?
Every month I use up most of my mobile data in Chrome. This is the foreground data, not background data, so the data saver settings don't do much.

My plan is to avoid those websites that use up most of my data. But to do so I need to find out which websites do so.

My mobile data usage only charts per app, and while I know it's chrome, I have no indication which website is most to blame.

Is there a way of recording this, either in the browser via flags/policy/settings or on a system level (system settings or another application)? I've used VPN apps as a firewall previously but they ended up using a lot of battery.

How can I track website data usage on chrome?

# Answer
As I discussed a similar issue here: Android app to show what apps/processes are currently using data. The same workaround is applicable in this case too.

I will focus on this specific part however:

> How can I track website data usage on chrome?

It is still possible using the mentioned tool: Network Connections

* To get website specific usage just open the app and navigate to *Current Connections* Tab.
* The log is given in two formats i.e IP address or hostaname. If you want the Ip address resolved to hostname simply tap, **Resolve IPs to Hostname option**.

It should appear like this:

*I produced this log, when I was browsing StackExchange website, and from the screenshot you can see it gives the data usage associated with the website an if you open another website it also shows data usage specific to that hostname and sub-hostname associated to that particular website.*

Only part that I am not sure is giving a very finer log on per website basis that can be stored as a seperate log, AFAICT you could periodically start live capture of traffic and see the sites which generate a lot of data usage.
> 3 votes

---
Tags: 7.0-nougat, browser, chrome-for-android, mobile-data
---


title: lan transfer speeds

text:
# Question
Title: lan transfer speeds
I have been trying to figure out what is limiting my lan transfer speeds. I have openwrt/lede on my linksys router, and a samba server running on it with a usb hdd plugged in.

My last device, a M8s Pro was transferring at kilobytes a second across the lan (see post here for more details)

I also have a Nvidia Shield tablet and a newly purchased Leelbox Q3 box. On these the lan transfer speed is about 3.5 to 4.5 mb/s

Which is alot better but my laptop gets around 20 to 40 mb/s

What is the problem here, why cant I reach speeds similar to my laptop on these android devices? Is it hard drive write speeds or the wifi chips in them?

I ask because I want to return this leelbox and get something that is going to be comparable to my laptop.

# Answer
Im not 100% this is my final answer however after further searching I found that there is no SMBv3 support till Oreo and some suggested to try FTP.

So I installed FTP on my openwrt and tried that for transferring files. Now instead of 3.5 to 4.5 mb/s, Im getting 7mb/s which is almost double and better then before but still not the speeds I see on my laptops (using 5ghz wifi).
> 1 votes

---
Tags: performance, lan
---


# Question
Title: How can I re-enable keyboard typing? From voice?
I'm now stuck with Voice Input as the only typing mode because I accidentally chose it.

How can I re-enable keyboard typing?

# Answer
> 1 votes
You should be able to choose a default keyboard (i.e. Google Keyboard instead of Google voice typing) through your settings. Navigate to `Settings -> Language and Input` (titled similarly on most devices), then select an option other than voice input. If necessary, you can deselect the voice typing option to disable it entirely. The screen should look something like this:

---
Tags: keyboard, voice-typing
---


# Question
Title: How to make a restore image / export ISO to restore later?
My Samsung galaxy S6 edge+ from Verizon came along with a lot of bloatware I really do not need.

1. First of all it has many pre-installed apps from google which is sadly the case for every android phone I bought till date. These apps can only be disabled under normal circumstances and cannot be uninstalled.
2. Secondly there are apps from Samsung as Galaxy add-ons which I know I will never use.
3. And lastly there are apps from Verizon like Verizon tones etc.

Saddest part is that most of them are redundant like I have two browsers (Chrome and Samsung Internet), two galleries (Google Photos and Samsung Gallery) and the list goes on. They eats up a lot of storage even when I have cleared all their data and disabled them. I decided to root my phone and uninstalled all unnecessary apps. Now everything is good.

But now I want to reset my phone and I know it will wipe out the whole content thing but will restore my phone to its initial state. Initial state means return of all those useless apps too. All settings, launcher preferences, gestures and automation things gone. Do I need to repeat the whole thing from very beginning to regain current state? So My question is:

**Is'nt there a way that I simply make a restore image or back up my current OS state to somewhere or export an ISO or whatever which I can restore later on to surpass all those steps?**

# Answer
Answering the last paragraph of your question first

Since you have rooted the device, flash a custom recovery meant for your device (Google on XDA for your specific make and model) and take a backup (click on that tag and read the wiki) and restore `/system` to restore the way it is

Next, will not undo the changes you made to the `/system`, it only affects `/data`. Which means apps you uninstalled will not be installed but yes your launcher settings will not survive. That's why it's better to go for Nandroid backup to restore with minimum effort

**Edit** Your device has official TWRP. Make sure you read the *dm-verity* warning
> 1 votes

---
Tags: rooting, factory-reset, system-apps, verizon, samsung-galaxy-s-6-edge+
---


# Question
Title: Cheating KNOX by cracking stock ROM certificate
I had some thoughts about KNOX and the fact that flashing stock ROM doesn't trip my KNOX flag. I did some research about the topic and I learned that KNOX checks ROM file's certificate or something like that. The files within a zip archive have .md5 file extension. Knowing a fact that MD5 is flawed hashing function which is considered broken so I can theoretically crack the password which it used to create md5 file checksum. Having this password I can sign a custom ROM with it and KNOX should be bypassed successfully. Are my thoughts correct and it's feasible or I misunderstanded something?

# Answer
If it was that simple it would have been broken long back. Knox is almost fool proof and prevents any such attempts

> Samsung KNOX addresses security using a comprehensive, hardware-rooted trusted environment:
>
> • Hardware Root of Trust
>
> • Secure Boot and Trusted Boot
>
> • Security Enhancements for Android (SE for Android)
>
> • TrustZone-based Integrity Measurement Architecture (TIMA)
>
> • TrustZone-based Security Services

Source: White paper on Knox by Samsung

You can see the technical details but to summarise *any* changes made trigger a *fuse* that would flag tampering

> (Fuse is)...one-time programmable memory area (colloquially called a fuse) is written to indicate suspected tampering.

Next, *hardware root of trust* is specific to each device and that verification would fail

Even flashing an older version of stock ROM would trigger the fuse

> Rollback prevention fuses are hardware fuses that encode the minimum acceptable version of Samsung-approved executables. These fuses are set at manufacture time in the Samsung factory. Because old images may contain known vulnerabilities that can be exploited, this feature prevents approved-but-old versions of boot executables, from being loaded.

To summarise, you would see that it won't work
> 5 votes

---
Tags: rom-flashing, custom-roms, rom, samsung-knox
---


title: HTC One M9 factory reset problem

text:
# Question
Title: HTC One M9 factory reset problem
I need to do a factory reset on my HTC One M9. Just for clarification, I have not rooted the phone ever. I'm trying to do a factory reset through the phone setting and once I do the reset, it brings me to the bootloader. I'm not sure what to do from there. I try to boot it into recovery mode, but it says "this build is only for development purposes only"

Any help?

# Answer
> 0 votes
You can try this-- (for Hard Factory Reset)

1. Remove SD card and SIM card. Switch of your phone.
2. Press and hold **volume down key** along with **power button**, release the power button when vibrates.
3. Navigate to **reboot to bootloader** with volume keys and select with the power button.
4. Then select **BOOT TO RECOVERY MODE**.
5. Then select **wipe data/factory reset**.
6. Then **Yes – delete all user data**.

But as you mentioned that it says *"this build is only for development purposes only"*. Then you can try resetting from the setting menu.

The detailed process to reset M9 by setting menu and Hard Reset is given here.

If none of the methods works, then you may need to visit the service center.

---
Tags: factory-reset, htc-one-m9
---


# Question
Title: Android 7.1.1 showing insuficient space even with plenty of space in SD card formatted as internal
I have a ZTE Maven 3, it comes with 8GB of internal memory so i bought a 16GB microSD and formatted it as internal storage with the built-in android option to do so.

Problem is, when i try to install new apps the PlayStore refuses because i dont have enough space, but even if the internal storage is at full capacity, the SD card is 90% empty !

What is wrong with this?

# Answer
You have to keep your internal storage empty because all the apps which you download from play store gets into your internal storage not in your external storage, even if you buy a sd card of 128GB or 256 GB you will not be able to install apps if you have full internal storage

Suggestion: Move all your photos ,videos, downloads to your SD Card manually and especially delete that .Thumbnails folder(Hidden Folder) in DCIM in internal storage.
> 0 votes

---
Tags: sd-card, 7.1-nougat, formatting
---


# Question
Title: Is "V10f-FEB-17-2017" update on LG K8 an upgrade to Android Nougat?
I have LG K8 on Android 6.0 Marshmallow. I went to GSMarena to check the specs and I noticed that it says that LG K8 is upgradable to 7.0 Nougat. I went to check for an update on my phone and there is an update available. It is 383.84MB large with version "V10f-FEB-17-2017".

I am not sure if this is the Nougat update because it only says Bug Fixes and Improvements and nothing else. I would install it, but I'm very short on space and don't want to waste 400MB for a bug fix update.

Can someone tell me if this is a Nougat update?

# Answer
> 0 votes
Nope, it's just bug fixes. I'm waiting for Nougat myself, and it should take about 1GB of your space.

---
Tags: updates, 7.0-nougat, ota-update, lg
---


# Question
Title: What are RAM , ROM and their types used in Motorola smartphone?
Well I know some basic information about RAM and ROM.

RAM is Random Access Memory with two main types i.e. SRAM and DRAM.

Whereas ROM is Read only memory. There are five basic ROM types:

1.**ROM** 2.**PROM**. 3.**EPROM**. 4.**EEPROM**. 5.**Flash memory**.

Below is the screenshot taken of Motorola G5S which says smartphone have 4GB RAM and 32GB ROM.

I want to know little bit more about **particular** types of ROM /RAM (from the types given above) used in the smartphone and reason behind using them. Can anybody tell me?

# Answer
Moto G5S uses LPDDR3 DRAM, which is volatile (cleared on power cycle) Random Access Memory which can be confirmed with an app like DevCheck, and a 32GB flash storage chip which is non-volatile high-speed electrically programmable memory that is common to most modern cell phones although sizes can vary widely.

Modern cell phones do not have a "ROM" or Read-Only Memory so to speak, although the term ROM is often used as a misnomer for the operating system... such as "My phone is running the custom ROM called LineageOS." which in this case is referring to a custom operating system residing in the /system partition.

That said, many OEM's use the term "ROM" for the embedded storage in the device. Technically, this is not the correct the term for it at all. The storage, or ROM as the OEM is referring to it here, is the embedded storage flash chip which is usually partitioned with some parts accessible to the user and others protected from normal user access for use exclusively by the system.
> 2 votes

---
Tags: ram, motorola
---


title: Lost Samsung Galaxy S6 help!

text:
# Question
Title: Lost Samsung Galaxy S6 help!
My friend has not been able to find her Galaxy S6 which went missing on Saturday night at a dinner party. Many of us rang the phone on that evening whilst at the house but it was on silent. We thought it would just turn up in the morning and didn't think too much of it. Unfortunately, it has not.

Now things are starting to get a little ugly with airs of suspicions and the possibility that someone has taken it or hidden it etc. This has come about as she has tried to locate it using "my account google" etc and that has shown the phone was last "synched" at 11.22am yesterday morning. The last time she rang it was at 9.30am yesterday morning and it was dead. With it saying the phone was synched this has now led her to think it has been switched on I guess...is this the case or does the phone still synch somehow even if switched off, dead??

It's not a great situation at the moment and any help greatly received.

Thanks in advance.

# Answer
If the device has been taken or lost and is off, there's not much you can do.

If you think it may have been switched on, there is a section on your Google Account that will allow you to track/lock/call/sign out of your phone. More options can be explored on Google's help page for lost devices.

There's also a setting to `Ring the device` when you select `Locate` from the last link, which will ring the device at full volume for five minutes, even if it was set to silent.
> 0 votes

---
Tags: lost-phone
---


# Question
Title: How does Firefox Mobile decide which text to scale up?
Consider this screenshot of regular desktop version of the site Stackoverflow on Firefox Mobile:

As can be seen, some text is larger than other. This odd text scaling only seem to appear in Firefox Mobile. On desktop, or in other Mobile browsers (that I've checked) the site appears normal.

I tried to inspect various CSS and tagnames but couldn't arrive at a conclusion myself. `<p>` and `<span>` tags seem to be larger than others. I also don't think it could be any other CSS property as it would work on other browsers as well.

It seems to be Firefox Mobile that's doing all this, but how does it decide which text to scale up?

# Answer
Possibility `text-size-adjust` which is non standard and that's why not detected using other browsers

Extracts from MDN document

> * Because many web pages have not been developed with mobile in mind, smartphone browsers differ from desktop browsers in the way they display web pages.....
> * Because text that has been scaled down to fit a small screen is very small, many mobile browsers apply a text inflation algorithm to make the text larger and more readable. When an element containing text uses 100% of the screen's width, its text size is increased until it reached a readable size, but without modifying the layout.
> * This property only works on smartphones and some tablets
> 0 votes

---
Tags: firefox-for-android
---


# Question
Title: Where is Samsung's SIM manager in '/system/app'?
My custom ROM's SIM manager is broken, so I have to replace it with the official one but when I install it, it says the package exists by the same name. I need to replace it manually in '/system/app' yet I failed to locate the folder.

# Answer
> 1 votes
It is very likely that this individual app doesn't exist, instead it is embedded within the setting app. However you can still create a SimSettingMgr folder and put your apk in there and push the folder to system/app or system/priv-app and reboot.

---
Tags: samsung
---


# Question
Title: Why do refurbished android phones have 3 months warranty or, no warranty?
I am planning to buy an Android smartphone, but I don't know whether I should buy a refurbished phone or not. I checked many websites and most of them say that their refurbished phones function like "**NEW**", but they give only "**3 month**" warranty. If refurbished phone's performance ***is SAME as the Brand new phones***, then why they do **Not** give **1 year warranty**? I am confused !

# Answer
Refurbished phones are those that have been returned by customer due to hardware or software issues under replacement warranty.

These are then repaired, issues fixed and sold as refurbished phones by EBay etc and they carry less warranty because they are not covered by OEM or carrier warranty but warranty provided by these third parties which are lesser in duration -after all the cost is also significantly lower !

Nobody can guarantee it will or won't be as good as OEM direct sale phone performance - caveat emptor
> 1 votes

---
Tags: warranty
---


# Question
Title: Does clearing Chrome appdata delete all the currently opened tabs?
My phone has a low memory problem, so I have to periodically clear the app data of some apps which makes them act like I just installed it.

Currently I have many open tabs (100+) in my Chrome Browser. If I clear the app data will it delete all the tabs currently opened in my browser? If it does, is there any other way to save all the tabs to my Google Account?

# Answer
Clearing the "App Data" will definitely close all opened tabs. It will also delete the history of the app, so there will be no way to reopen the previously opened tabs. There is no way to save all the tabs, since this is part of the "History".
> 1 votes

# Answer
**Note:** *this is a partial answer meant to address only specific part of the question.*

---

> If I clear the app data will it delete all the tabs currently opened in my browser?

The state and relevant information of tabs such as the list of URLs opened through those tabs are saved inside `/data/data/com.android.chrome/app_tabs`. When you would clear Chrome's data using Settings app, everything under the private data directory of Chrome (`/data/data/com.android.chrome`) would be deleted, so, yes, your opened tabs would be lost and as Victor Ivanov noted, the history would also be deleted.
> 1 votes

# Answer
If you share those websites tabs to email you can launch email after clearing your chrome data and relaunch those websites. You won't lose them.

Notice chrome has three vertical dots on the top right corner of the browser.. Click it. Scroll down until you see share. You have many choices of where to share your chrome tabs. You can share to any or many of the choices.

First, click on the first tab you want to save. Then select the vertical dots. Scroll down until you see share. Click email or note pad, whatever retrieval system works best for you. Select it. The program launches either with the saved URL or information if you've actually selected specific information. I like to use email because I can find the information on all platforms (phone, computer, tablet). Send yourself an e-mail..

Repeat steps for each tab you want to save.

When you are done clearing chrome data, log into your email. Select your emailed tab email. Open it and launch. Save your tabs.
> 0 votes

---
Tags: insufficient-memory, chrome-for-android, cache
---


# Question
Title: Method to block calls on dual SIM and block notifications from some apps (scheduled)
I recently got a Motorola G5S Smartphone with Android 7.1.1 with Dual SIM. One SIM is work-related, the other private. Also, every App on my phone is either work-related or private.

I'm searching for an app (or integrated function) which can do the following:

* block all calls & messages coming into the work-SIM at night & on weekends
* block notifications of the work-related apps at night & on weekends

The tricky thing here is that I do want to use the mobile data from the work-SIM, so disabling it completely is not an option.

I checked out Tasker but the description doesn't say anything about blocking calls coming in to one of the numbers/SIMs. On the other hand, the "Do not disturb"-option also cannot to block only calls to one SIM (at least on my phone).

Is there any other app or even built-in feature that I'm missing? Rooting the device would not be a problem, I guess.

# Answer
**Caveats**

* OP is willing to reject unknown numbers in weekends
* They have their office contacts and private labeled in their address book
* Only office people call on office SIM , they are not aware of private SIM number and vice versa for private contacts
* They can continue to use data from Office SIM
* Not tested on dual SIM but should work

I don't think it is possible using SIM based approach, alternative *non root* approach using which is simple and easy free up to five macros ( App link )

# Blocking calls in off times

Create a macro and name, save it (Add Triggers, actions and constraints by pressing **+**)

**Triggers**

1. Call Incoming → Select Groups → Office (office numbers stored in contacts and grouped by this name)
2. Call Incoming → Select Contacts → Non Contact (additionally select Unknown caller if required)

**Actions**

Call Reject

**Constraints**

Day of the week → Saturday & Sunday

add constraint of AND /OR /XOR/ NOT → OR (ensure the little inverted triangle shows OR)

add constraint Time of day → set start and end time for example 2000 to 0800

what it does is that on weekends OR during specified times calls made by non contacts / unknown numbers and office folks are rejected

Test it by changing triggers and constraints . Use the 3 buttons menu → Test Macro

# Blocking Office app notifications

**Trigger**

Notification → Notification Received → select apps → choose office apps from drop down → Text content → Any

**Actions**

1. Volume change → Notification → Set slider to zero
2. Clear Notifications → select apps → choose office apps from drop down → Text content → Any
3. Volume change → Notification → Set slider to the level desired

**Constraints** As in above macro ( Hint: from 3 dot menu use clone macro to get a copy of macro to save repetitive selection)

What it does

* Action 1 mutes the notification volume to zero ( you don't need to hear the *ding* when you don't want to be notified)
* Clear notifications during the time / day chosen in constraints
* Action 3 restores desired volume level so that you can hear other other notifications that you *want to*
> 1 votes

---
Tags: tasker, dual-sim, do-not-disturb, motorola-moto-g5
---


# Question
Title: Adding account to android device running android version 2.3.6
Had this old phone lying around. I thought I re-purpose it for some IoT stuff. It an old Micromax A50 Ninja (running ginger bread 2.3.6). I want to make an app on this device that communicates with arduino. However, I cannot sign into the device. I re-checked with my credentials else where, and they checkout to be fine. But on this device, the sign-in still fails.

Is this because the OS is outdated? Well, can I do anything on this phone, now that this is the state of the device os?

# Answer
> 0 votes
The best solution seems to be to add an app password: https://myaccount.google.com/apppasswords

---
Tags: 2.3-gingerbread, google-account, accounts
---


# Question
Title: Galaxy S3 GT-I9300 Stuck at Samsung logo with no recovery and no download mode
**Background:**

I was having CWM recovery with custom ROM "CyanogenMod" and recently I flashed "LineageOS" successfully but I noticed that phone internal storage is being occupied by previous ROM files and folders so I tried to delete everything to have a phone in clean condition with only "LineageOS" files. By mistake I format /boot, /system, /data, /cache and /sdcard and after that I reboot to system.

**Weird Stage:** (don't know if its soft brick or hard brick)

:( At this stage, my phone stuck at Samsung logo with no access to recovery mode and download mode. I tried

* Volume up + home + power = No recovery mode and just Samsung logo
* Volume down + home + power = No download mode and stuck at warning screen with a yellow triangle but pressing volume up is not entering to download mode

:( Also, phone is not detected by Odin or ADB in PC with having correct Samsung USB drivers and also tried Kies but phone is not recognized by pc at all.

I tried some solutions like

* flashing debrick.img into SD card and try to boot with it but no success
* pulled off the battery for many hours and after putting it back have no success to access download mode
* Tried with different USB cables and different OS like Windows 8, 7 on different PC

**Update:**

With the help of @esQmo\_

I just found that Volume up button is not working and thats the whole reason why Recovery and Download mode are not accessible. Can I do something directly from SD card to boot into recovery or download etc?

# Answer
> 2 votes
Does your volume up button work? If i'm not wrong, Download mode never fails to boot into. Let's assume it is not working and in this case, you'll need a way to force boot in download mode. There are two methods I could find:

After that, flash stock firmware and everything should work now.

Other solution would be replacing the volume buttons flex cable or making jumpers from the volume contact to the motherboard. Schematic below:

And

Source: gsmhosting.com

---
Tags: samsung, samsung-galaxy-s-3, recovery-mode, downloading
---


# Question
Title: Mount Android encrypted data partition on PC
My Nexus 4 screen met a tragic end due to violent contact with flooring tiles. Everything works except the touchscreen (which displays fine but does not react to touch any more).

I would like to get a full copy of my data partition, but my device uses Full Disk Encryption, with a lock pattern. I can easily get image files of my partitions from CWM recovery through adb:

```
adb pull /dev/block/mmcblk0p23 ./userdata.img

```

which gives me a nice 6GB file, but mounting this image is another story since it is encrypted. My PC uses XUbuntu (I also have Windows at hand if necessary, but I guess a linux system is more useful here). My phone is rooted.

I know my unlock pattern of course, so there should be some way to mount/read my userdata.img file. Any pointers ?

Thanks !

# Answer
> 9 votes
Apparently there is no tool on PC to decrypt Android's encryption at the moment, but the TWRP recovery can be used on the device to decrypt everything... Even with a broken touchscreen, as long as your device is supported by TWRP recovery:

* Download the TWRP image (2.8.7 worked for me)
* Boot into fastboot (power + vol. down on Nexus 4)
* Start the recovery, from your PC:

fastboot boot twrp-2.8.7.0-mako.img
* Once you are in the recovery, you can decrypt your data from the command line:

adb shell twrp decrypt yourpassword

where yourpassword is your encryption password. In case of schema, translate it to numbers:

```
1 2 3
4 5 6
7 8 9

```

if you go through the same point twice, it is ignored after the first time.

Then it will tell you that your decrypted data is available in a block device, I think this was /dev/block/dm-0 for me (not sure). You can back it up to your PC with:

```
adb pull /dev/block/dm-0 ./decrypted-data.img

```

And finally, mount the image as ext4 on your Linux PC ! (or use some program that can read ext4 partitions on Windows).

HUGE thanks to the TWRP folks on IRC who told me about the twrp decrypt command !

# Answer
> 15 votes
I can confirm with 100% certainty that the numbers are indeed 1-9 for the pattern unlock.

My Nexus 4 met the same unfortunate end (except on concrete) and after some Googling, I found this post and was able to follow personne3000's answer in order to mount my pattern-encrypted userdata partition.

I'm running Ubuntu 15.04 x64 and had to `apt-get install android-tools-adb android-tools-fastboot` in order to continue the procedure.

My pattern is this (3x3 in order from 1-6):

```
[_   1   2]
[3   5   6]
[_   4   _]

```

Booted my phone to recovery from bootloader by running `fastboot boot twrp-2.8.7.0-mako.img`, and then when TWRP loaded, ran `adb shell twrp decrypt 234856` and it successfully mounted my encrypted userdata to `/dev/block/dm-0`.

My `234856` decrypt password, ordered from 1-6 starting on the left, correlates to the positions on the above pattern grid, where '2' in the password correlates to '1' in the grid.

@Rhaegar Android sees the pattern as 0-8, because those are the bytes it uses when generating the SHA-1 hash for storing the pattern (http://www.cclgroupltd.com/a-rainbow-table-for-android-pattern-locks/), but TWRP sees the pattern as 1-9 when decrypting the userdata partition from the command line.

Huge +1 to personne3000 as without him providing that highly valuable information straight from TWRP devs I would not have my Android data right now.

I \<3 Stack Exchange :)

# Answer
> 2 votes
A much simpler version: Connect a USB mouse (or keyboard, but that didn’t work in my case), using a standard USB-OTG (OnTheGo) cable, and use the appearing pointer like a finger, to tap in things.

This even worked inside of TWRP for me!

From there on, the whole endeavor should be much easier. :)
(Like just copying the files over, the regular way, and syncing PIM data to your hopefully existing *personal* “cloud”.)

---
Tags: backup, linux, encryption, mount, broken-screen
---


# Question
Title: Enable notifications for some emails in gmail application on Android
I am not sure this is good place for this question, if not, if you could please route me to right page.

So the thing is, I have android phone, and I have GMail account, and application GMail installed on my phone. I get notifications but only for mail that is arriving in Primary Inbox.

Since I am programmer and I have my team on my job and we are using GitHub, and any time someone changes something in the project I get email notifications. But, this email notifications goes into Forum section, and I do not get notification on my phone?

Is there any way I can change settings so that emails from GitHub still get into Forum section but for me to get push notification of GMail application informing me I have new email from GitHub...?

# Answer
> 3 votes
To enable notifications for Forum emails, follow the steps below:

Open Gmail → open the menu on the top left → settings → youraccount@Gmail.com → manage labels → forums → label notifications "on", notify for every message "on".

You should now be getting notifications for those emails.

---
Tags: applications, gmail, push-notifications
---


# Question
Title: Lineage OS 14.1; Missing TWRP and 7GB of storage
Yesterday I installed Lineage OS 14.1 + GApps on my Galaxy S2 using one video from youtube.

Links to necessary files were there, so I just downloaded:

* odin3 v1.85
* lp-kernel-14-03-CWM-for+ODIN.tar
* lineage-14.1-20180301-nightly-i9100-signed.zip
* open\_gapps-arm-7.1-pico-20180306.zip
* PIT1GBsystem3gb4gb6gb8gbDATA.zip (I used I91001GB\_3GB.pit as it was recommended in video)
* recovery-Lanchon-IsoRec-TWRP-2.8.7.0-20160113-i9100-(by-arnab).zip

After installing I went to storage settings and see only one partition of 4GB size available. On the stock ROM there were 11GB of space on sdcard0 (internal storage).

There is no option to format internal storage.

ES File Explorer cannot access the / directory.

How to have 11GB again and access to root partition?

Additionally I looked how to install Root. All the instructions lead to booting in TWRP. But my Lineage OS14.1 has no TWRP recovery, and the standard recovery refuses to install root update (addonsu-14.1-arm-signed.zip). How to root the phone?

# Answer
I got it!

As instructed I flashed lp-kernel-14-03-CWM-for+ODIN.tar and using it's recovery installed then lineage-14.1-20180301-nightly-i9100-signed.zip and open\_gapps-arm-7.1-pico-20180306.zip and that was all.

What I should do else is to install recovery-Lanchon-IsoRec-TWRP-2.8.7.0-20160113-i9100-(by-arnab).zip and addonsu-14.1-arm-signed.zip as long as custom recovery works, because after reboot it will be too late.

Now I have root and TWRP and will check what is up with big internal memory.
> 0 votes

---
Tags: samsung-galaxy-s-2, lineageos
---


# Question
Title: Bought a phone on eBay, want to reinstall Android, but not sure which one to use
I bought a phone on eBay named XGODY 5.5" 3G 5MP 8GB, and I want it to go back to the stock version, but how do I know what is the correct ROM to install on this phone?

Here is what the "About phone" says:

# Answer
There is no such thing as a "generic" phone. ROMs need drivers that are specific for the specific processor, specific memory chip, specific camera module, specific cellular radio, specific Wi-Fi radio, specific Bluetooth radio, specific GPS chip, specific LCD screen, specific digitizer, etc.

From the eBay ad you linked to, the manufacturer of your phone is XGODY and the model is X15S. Here is a link to the manufacturer's website.

Now, you need to find a ROM that was specifically made for the XGODY X15S. You can use your favorite search engines with such keywords as `xgody x15s stock rom`.
> 1 votes

---
Tags: rom-flashing
---


# Question
Title: Revert navbar back to the right side of the screen under 270° rotation
Since Android 8.0 (Oreo), when the device is rotated to 270° rotation, the navbar will go to the left side of the screen instead of staying to the right (as in 90° rotation):

As humanized as this sounds, it conflicts with some of my launcher/wallpaper mods, and also forces me to use the left hand under 270° rotation, so I don't see the change as beneficial and would like it reverted.

The answer could be decompiling and modifying SystemUI, or even modifying the Android source code and building (I have the know-how for that) - one just have to tell me where and how.

Any ideas?

# Answer
As my investigation shows, Google calls it "Seascape Navigation Bar View" and deems it as a feature. This part of the code inside the Android framework determines whether the new left navbar layout should be used if 270° rotation happens. Making it still return `NAV_BAR_RIGHT` in the case effectively reverts the change. Tested side-by-side on a LineageOS compilation done personally.

Unfortunately for end users without access to source code, I don't know of a way to alter the behaviour yet: on older Android versions this change is supposed to be reflected in `/system/framework/services.jar`, but since Oreo it has both been split into a new `/system/framework/services.jar.prof` file and odexed, so currently available tools can't touch it as far as I know.
> 1 votes

---
Tags: 8.0-oreo, auto-rotation
---


# Question
Title: How do I temporarily edit a webpage in Chrome?
I want to temporarily edit the webpage displayed in Chrome on my phone, something similar to Chrome desktop's *Inspect element* feature. I understand this is temporary, but I want to do some tests.

I don't see that option in the application itself, do I need an extension, another app, or is it impossible?

# Answer
> 8 votes
Running the following snippet in the URL bar works in both Chrome for desktop *and* Android:

```
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

```

**One important note:** after copying & pasting the code into the address bar, Chrome automatically strips the `javascript:` part of it out. You must add that back in or it won't work!

It's to prevent malicious code being run by dumb users who think they'll win an iPad or get +1,000 Facebook friends if they copy some dodgy JS into the address bar.

It has the affect that **the whole page becomes editable**.

You could then do **Print \> Save as PDF** if you needed to save the edited webpage.

---

I'm a professional web developer so this definitely has its uses for me. Needless to say, **I am not liable** if you do something underhanded with this, e.g. falsifying a company's '*thanks, your order is confirmed* ' page to defraud products from them with a faked screenshot/print out.

I originally got the code from Stack Overflow, where there are 28 such questions.

# Answer
> 4 votes
You may want to look at this official guide: Remote Debugging on Android with Chrome. It involves connecting your phone to a PC, and debugging the page using Chrome DevTools.

# Answer
> 1 votes
To stop editing the page, you can use this:

`javascript:document.body.contentEditable = 'false'; document.designMode='off'; void 0`

# Answer
> 0 votes
First add "view-source:" before "http://" Then type this in the address bar javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

---
Tags: chrome-for-android
---


# Question
Title: How to Recover Data from internal storage of dead phone?
I'm Using a Intex Aqua Power HD phone with Android 4.4. Its broken and cannot be switched it on... Whatever be the problem with the phone, what I really want is the data in that phone... The data in the phone is important... Is there any way to recover Data from Internal Storage of my Phone When I cannot turn it on ?

# Answer
The only way to access the internal storage from a dead phone that I know of would be to open it and use specialized tools to connect directly to the flash memory chip, which is a complicated process. If your phone does boot but the screen stays black, then you might have a chance to connect it and access internal files using ADB
> 2 votes

---
Tags: 4.4-kitkat, data-recovery
---


title: Where does the term flashing come from?

text:
# Question
Title: Where does the term flashing come from?
The term flashing in Android communities seems to be interchangeable with "Install"

> Because Google's apps are not open source, custom ROMs can't bundle Google's apps -- like Gmail, Hangouts, or the Play Store -- with their ROMs. That means you'll need to download and flash them separately.

From How To Flash A ROM To Your Android Phone

So if this is the case where does the term flashing come from?

# Answer
ROM is a short for read-only memory. Nowadays, it is often a writable memory that is not written in normal operation. In past days, it used to be rather EPROM/EEPROM.

The term flashing probably comes from era of EPROM, which can be erased using a strong UV light. Erasure of whole memory is needed before EPROM is written. This is not the case of current flash memories, but the term “flashing” remains.
> 4 votes

# Answer
> The procedure of **modifying** or **replacing** the contents of such flash memory i.e ROM is known as **flashing**. Thus, in layman’s terms, flashing is essentially the same as installing or modifying the firmware of a device that is stored on its protected flash memory.

Such modification can be perfomed on a special partition of the system called **recovery**.

> In Android, recovery refers to the dedicated, bootable partition that has the recovery console installed

When you perform a factory reset, recovery is what boots up and erases the files and data. Likewise with updates — when restarting to install an official OS update, it's done in recovery. Recovery is also where one goes to manually install official OS updates downloaded from the Internet. (There are two types of recovery; stock recovery and custom recovery, but I'm not going to discuss it here)

**Flashing** is the term originally used to describe the "modifying or replacing the contents of ROM memory, and has been traditionally used to install fresh OS from **custom ROMs**, The term also embraces the operation of mounting various partitions in order to copy files to the SD card without having to remove it or reboot into Android as well as **applications from a zip file** through recovery, has now come to be associated with installing.

While most apps for Android devices are available at the app store for direct download and installation or as .apk files for direct installation, there are certain apps which are only available as zip files installable from recovery. Their **installation procedure** is the same as installing a custom ROM described.

Hence the reason, terms ‘installing’ and ‘flashing’ can be used interchangeably to mean the same thing .

**References**

1. What Is Meant By Firmware, Stock & Custom ROMs And Flashing
2. What is Android recovery?
3. How To Install A ROM Or App From Zip File To Android Device From Recovery
> 2 votes

---
Tags: rom-flashing
---


# Question
Title: Unable to disable password on Android screen lock
I would like to disable the PIN/Password of my Android screen lock but I am unable to do that as the relevant option is greyed out. Please see screenshot:

<sub>(Click image to enlarge)</sub>

# Answer
> 2 votes
Please read the subtitle of every remaining button...

"Because you've turned on an accessibility service, your device won't use your screen lock to enhance data encryption."

You need to turn off accessibility services before you can change any settings here.

Settings-\> System section-\> Accessibility-\> Turn off each process using the accessability services until you are allowed to change your password again.

A second cause may be what Journeyman said, but you seem to be running an older android version that doesn't support that.

# Answer
> 2 votes
It looks like your options for a non-secure lock screen are grayed out due to a security restriction. If you have, say, a work email account on your phone it probably requires to password protect the whole phone for security reasons. If this is the case, a possible solution would be to use a different mobile email client like Touchdown which only locks the app itself instead of the phone.

# Answer
> 1 votes
I have had that happen because I had a second/guest account setup (and that was a pain cause I use a third party lockscreen and I had two lockscreens to contend with). Remove the guest account, and that option should reappear.

# Answer
> 1 votes
This can happen because an app has added a user certificate to the credentials and requires a screen lock as part of it's security policy. MITM proxy apps or VPNs that support https do this. Once the app is removed often the user certificate is left along with the restriction making the option to remove the screen lock appear disabled.

To fix this go to settings-\>security-\>credential storage then select 'clear credentials'. this will remove user certificates and security restrictions which will allow you to remove the screen lock. If you select 'trusted credentials' to display the list, the CA certs from the installed android package should be reloaded.

This worked for me on Android 4.1.2.

# Answer
> -1 votes
Go to settings - fingerprint and password - smart lock - on body detection - turn it off

# Answer
> -1 votes
Go to Settings → General → Security → clear credentials. Now, you should be able to select any of the screen lock options.

---
Tags: lock-screens, password
---


# Question
Title: Nexus 7: Unable to install factory image, stuck in < waiting for any device >
I want to restore factory android on my Nexus 7 2012 WiFi.

I'm following the official guide.

I start the device in fastboot mode by executiong:

```
adb reboot bootloader

```

This works well. But **when I run any command that uses** `fastboot` **the execution gets stuck**, eg:

```
$ fastboot oem unlock
< waiting for any device >

```

The same issue with `flash-all.sh`.

I also noticed that if I run

```
adb devices

```

it doesn't list the tablet. However it gets listed if I run the same command after entering Recovery Mode (I have TWRP recovery).

**More details/preconditions:** I used to have CianogenMod on the device but I smashed it by mistake (I removed Android in recovery mode instead of simply wiping the data). I can't find the CianogenMod image anymore on LinageOS site (there is only Nexus 2013 available) so I'm trying to install at least what is available.

# Answer
The problem was that `fastboot` didn't see the device without `sudo`.

To make `flash-all.sh` work I replaced every `fastboot` call with `sudo $(which fastboot)` like was suggested in this post.
> 1 votes

# Answer
Well, the device is detected in ADB only, you probably haven't installed fastboot drivers. `< waiting for any device >` means that the computer is waiting for a device in fastboot mode.

Download the drivers from this page then install. `fastboot oem unlock` should work now.

Learn the difference between these two protocols (ADB and Fastboot).

This question may also help.
> 0 votes

---
Tags: adb, twrp, fastboot, nexus-7, bootloader
---


# Question
Title: How do I disable individual components of an app's APK?
ROM Toolbox Pro's app manager had this feature but it has been removed in recent versions. Specifically I'm looking at disabling individual components of an APK, `AdActivity` for example.

I have already seen questions on doing this programmatically on Stack Overflow, which involve recompiling it - running into signing problems later.

I'm looking for an easier way to disable activities, services and content providers.

# Answer
MyAndroidTools (and its Pro variant) fits very well - offers control on activities, services, receivers and providers, and if you get Pro you can also conveniently peek into and edit apps' SharedPreferences and databases, so that's what you require and then some more.

Requires root, but that's pretty much a given for this kind of app.
> 2 votes

---
Tags: rooting, system
---


# Question
Title: Custom Boot animation slows, freezes and crashes phone
I've created a custom boot animation:

1. Create animation with Blender, render all the frames 1080 x 1920, PNG.
2. Convert them to JPG.
3. Store frame 0 to 123 to folder `part0`, store frame 124 to folder `part1`.
4. Create `desc.txt` with content (every line ends with `<LF>`):

```
1080 1920 24
p 1 0 part0
p 0 0 part1

```
5. Store all that into `bootanimation.zip` (mode: Store), almost 10 MB.
6. Copy it onto the SD card and copy it to `/system/media/` with TWRP.

When I reboot the phone, it displays the animation okay, but then slows down (still during the first loop), halts, and reboots after a few seconds.

Is there anything I've done wrong? The phone is a Fairphone 2, running Fairphone Open with the newest TWRP and encrypted data partition.

# Answer
> 0 votes
For me, the solution was to shrink the frames by half (540\*960) but leaving the description text as it was – it seems that it just was too much data.

---
Tags: boot, boot-animation
---


title: Gmail Auto Suggest Not Working

text:
# Question
Title: Gmail Auto Suggest Not Working
I installed Lineage 14.1 and then flashed: open\_gapps-arm64-7.1-full-20180303.zip on my rooted ZTE Axon 7.

I let the phone do all the updates and checked the permissions for Gmail, Calendar, and Contacts and they seem set properly; however, in Gmail, the addresses of known contacts don't populate on a new email or forward. Similarly the Calendar won't let me choose invitees for a meeting. Contacts and Calendar are properly synced.

I subsequently deleted my Google account and all its data and reflashed Gapps again. This forced Gmail to ask if I wanted auto suggestion (or auto complete). When I tried to click on the option, it feels like it never allowed me to complete the selection. In the app permissions Gmail has access to contacts, and no amount of selecting or unselecting does anything. I can choose to i"add from contacts," but this is very clunky.

I consider the lack of autocomplete for Gmail (and calendar) enough that I might have to nuke the device and go back to stock.

I have googled to find a solution, to no avail. I've also searched the forums. Any ideas?

# Answer
To fix this, I deleted my Google account from within Lineage OS. I then downloaded the Aroma of Gapps and pushed it to my device. Rebooted into TWRP and wiped cache/dalvik cache and then flashed the new version of Gapps. Aroma allowed me to exclude whichever Gapps I no longer wanted and I then rebooted.

I double checked that both Gmail and Calendar both had permissions to access contacts, but thankfully this process brought back auto suggest.

P.S. there was an issue with contact syncing all the way, whereby I was given the dreaded "Sync Is Currently Experiencing Problems" message. I used the Contacts Sync Fix app in the Play store to remedy this (it worked). It discovered a malformed contact with illegal characters in the notes field (this may ultimately have been the problem in the first place).
> 1 votes

---
Tags: gmail
---


# Question
Title: Live wallpaper has entirely taken over phone
One of my customers says my live wallpaper has completely taken over the screen. They tried restarting the phone, but all they can see is the live wallpaper. No way to unlock the phone.

Are there any steps that can be done to start the phone without the wallpaper started, so they can uninstall it?

It's a Galaxy S6 and I don't think it's rooted.

(I'm in email conversation and will add details as I get them.)

# Answer
With the information available , it is recommended to put Galaxy S6 in safe mode .

In safe mode installed apps are inactive and the wall paper app can be uninstalled . Restarting the phone gets it out of safe mode

> * Turn the device off
> * Press and hold the `Power` key
> * When the Samsung Galaxy S 6 logo appears, release the `Power` key, then immediately press and hold the `Volume Down` key
> * Hold the `Volume Down` key until the device finishes restarting. When 'Safe mode' appears in the bottom left, release the `Volume Down` key
> * Uninstall apps that cause problems. From the Home screen, tap Apps. Tap Settings. Under 'Device,' tap Applications. Tap Application manager. Swipe right to the DOWNLOADED screen. Tap desired app, then tap Uninstall. Tap Uninstall to confirm
> 2 votes

---
Tags: applications, live-wallpaper
---


# Question
Title: ADB pulling files from /data/data fails due to symlinks. How to skip symlinks in ADB pull?
I can run

```
adb pull /data/data/com.xlythe.saolauncher/databases ./

```

or

```
adb pull /data/data/com.xlythe.saolauncher/files ./

```

and it works fine. However, if I try

```
adb pull /data/data/com.xlythe.saolauncher ./

```

It fails with the error:

> adb: error: failed to copy '/data/data/com.xlythe.saolauncher/lib' to './com.xlythe.saolauncher/lib': remote No such file or directory

It happens because the `lib` folder is actually a symlink to `/data/app-lib/com.xlythe.saolauncher`

Now, if I wanted only `com.xlythe.saolauncher` I would just do it by hand copying one folder at time, but I want instead to pull all `/data/data` at once.
So I need a way to tell ADB to just skip symlinks instead of failing the copy.
Any hints?

# Answer
## Method 1:

If you're okay with getting the output file as a `.tar` archive, try this command:

> adb exec-out tar c data/data \> data\_backup.tar

Make sure to omit the leading `/` in your path. (Source)

## Method 2:

If you want to copy file-wise, use the following script written by me:

```
#!/bin/bash
## Run as: ./filename.sh <source_folder> <destination_folder>
## If no <destination_folder> is provided, it's stored in current directory.

location=$1
if [ -z "$2" ]
  then
    destination=.
else
  destination=$2
fi

## Find the full path of all the files in the given directory, and retrieve each file one by one

while read line
do
  ## Create the directory where the file will reside, by removing the filename alone from the fullpath.
  ## Thanks to https://stackoverflow.com/a/9022471/5002496
  mkdir -p $destination"${line%/*}"
  adb pull $line $destination$line
done <<< `adb shell find $location -type f`

## The find binary in Android doesn't seem to show symlinks when '-type f' option is used.
## Source: https://stackoverflow.com/a/16303559/5002496

```

Save it as `adb_pull.sh`, run `chmod 777 adb_pull.sh` and run it like:

> ./adb\_pull.sh /data/data data\_backup

All the contents from `/data/data` from Android device will be stored into `data_backup` folder.
(*Note*: **DON'T** specify the source folder like `/data/data/` with an additional `/` after the folder name)

Tested and working on my Ubuntu 17.04, using an Android 7.1 device.
Note: To access `/data` partition completely via ADB, you need to run `adb root`. (more help..)
> 8 votes

---
Tags: adb, backup
---


# Question
Title: Retrieve my phone contacts lost in previous phone
Please send me _ how to ? I don't want to lose info stored on lost phone

# Answer
> 1 votes
### If you backed up your contacts to Google:

(You have tagged the question with *Google-account* tag, so I'm assuming that you have stored the contacts there.)

First, make sure you actually have saved your contacts to Google. To do so, go to contacts.google.com and log into your Google account. If you see your contacts there, then follow the steps below:

Go into your phone settings → accounts → Google → sync, and make sure that *contacts* sync, is *on*, if it's on, but the last sync date was a long time ago, make sure to refresh sync. Your contacts should now appear in the contacts app.

### If you have not backed up your contacts to Google:

If you checked in contacts.google.com and the contacts are not there, that would mean that you have saved the contacts to the internal memory of your lost phone, and in that case there's not much you can do to get them back.

---
Tags: google-account
---


# Question
Title: I have lost my Panasonic Eluga A3 mobile - Can i do Enable lock and Erase then can i access my phone back?
Hi i have lost my Panasonic Eluga A3 mobile and i could see the last time when it was online was last morning 5:45 AM in chennai. The mobile has been switched off by the guy who has looted it. Now i know that the mobile has location ON but as the phone is OFF it is now showing anything on Android manager and i am not able to Ring it or Lock it. So the only option now i have is Erase Your device option. So if i do it now.. Then will i be able to again login to my Andriod device manager and track this mobile ? Is this the last option ?

# Answer
> 0 votes
Since the phone is off you cant retrieve anything from it, the location that is showing to you is the latest location the phone could retrieve before it was switched off.

Trying to erase all the data will take place after the phone is turned on again and got any 4g - wifi signal on it.

> "Then will i be able to again login to my Andriod device manager and track this mobile"

Answer - No, because of the above.

Hope it helps

---
Tags: lost-phone
---


# Question
Title: How to do ADB over 'wifi' (actually in the same PC) for emulated device
I'm trying to use adb over 'wifi' for my emulated device. I'm emulating a device on my computer and wanted to use Android Studio to send an APK to it but through the network sockets, not through emulated USB. I know in Android Studio everything works out of the box but I need to it in this way

I'm following this tutorial: https://developer.android.com/studio/command-line/adb.html#wireless

I start it with

```
~/Android/Sdk/emulator$ ./emulator -avd Pixel_XL_API_27

```

Then I see that USB debugging is on. I then do

```
./adb tcpip 5555
restarting in TCP mode port: 5555

```

**Note that .`/adb tcpip 5555` is arbitrary. I didn't even specify which device should restart and connect at 5555. What if I had 2 emulators running?**

I should unplug now for a normal USB device, but then I go to developer options in my emulated phone and disable USB debugging.

I also see that the IP address in the emulated phone system settings is `192.168.232.2`

then I end up with:

```
./adb connect 192.168.232.2
unable to connect to 192.168.232.2:5555: Connection timed out

```

I also done this:

```
./adb devices
List of devices attached
emulator-5554   device

./adb connect 192.168.232.2:5554
unable to connect to 192.168.232.2:5554: Connection timed out

```

**UPDATE:**

According to Android Tutorial on ADB, my computer keeps a server running on port 5037. The Android device (my emulator in this case) runs a daemon and my adb script in Sdk/platform-tools is a client. If I want to run a client inside my virtual machine I must have a server running on it. But instead I can just forward the 5037 TCP port from the VM to the 5037 TCP port of the host machine. I did it with tcptunnel by doing the following:

```
./tcptunnel --local-port=5037 --remote-host=192.168.122.1 --remote-port=5037 --stay-alive

```

then if I run adb on my VM, it's going to connect to the adb daemon on my host machine which is going to talk with the adb server of my emulator. When I run `adb devices` in the VM without the tcp forward it tries to start a new server. If I kill this server and open th tcpforwarded and do it again, it doesn't try to create a new server. This is a good signal. However, tcptunnel gives me this:

```
build_tunnel: connect(): Connection refused

```

Something is blocking the connection

**UPDATE 2:**

Turns out tcptunnel isn't necessary, because `adb` has the `H` option that lets me specify the IP where the server runs. However I don't know if it's possible in Android Studio to specify it. Anyways:

```
./adb -H 192.168.122.1 devices
List of devices attached
* cannot start server on remote host
error: cannot connect to daemon at tcp:192.168.122.1:5037: Connection refused

```

# Answer
I forgot that adb daemon binds to `localhost`, and I was trying to access from `192.168.122.x`.

With `socat` I was able to redirect the ADB client from my VM to the ADB daemon on my host machine which made connection with the ADB server (my emulated phone).

My host machine was reachable at `192.168.122.1` from the virtual machine, but the `adb daemon` was binding to `127.0.0.1` or `localhost`. I just did:

```
#on host machine:
socat tcp-listen:5037,bind=192.168.122.1,reuseaddr,fork tcp:localhost:5037

#on virtual machine:
socat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037

```

Make sure you kill the adb server on the virtual machine doing `/path/to/android/sdk/platform-tools/adb kill-server`. ADB server always tries to bind on `5037` if there's nothing there, so if socat is already running on both sides and the `adb server` is running on the `host` machie, when you launch android studio on the VM, it'll automatically connect to the outside adb server, which will connect to your emulated phone.

You don't need Android Studio on the virtual machine to test. You can just do `/path/to/android/sdk/platform-tools/adb devices` on the virtual machine to see if socat will redirect it to the adb daemon on host, which will list the emulated phone.
> 3 votes

---
Tags: wi-fi, adb, android-emulator, emulators
---


# Question
Title: I don't want to see DP of a particular contact on Whatsapp
I don't want to see the DP of a contact on Whatsapp without blocking them.

Can anyone help in getting that done?

Please note. I have an Android phone Samsung S8.

Thanks

# Answer
Try this out. To summarize the steps in the link:

1. Resize the pic you want to use to 561×561.
2. Save it in `/sdcard/WhatsApp/Profile Pictures` on your phone.
3. Then rename it to your friend's phone number, including country code first. (If Jenny lived in Manhattan, her filename would be 12128675309.jpg)
4. Reopen WhatsApp and the picture should be there.
> 2 votes

---
Tags: whatsapp-messenger
---


# Question
Title: My tablet will not turn on. Please Help!
The screen on my tablet just won't turn on, but I was told there is a fix for it. I made sure it was charged but it did nothing.

It didn't turn on when I tried to get on it, and I hadn't got on in 2 weeks.

Please Help!!!

NeuTab N7 Pro is the tablet.

# Answer
The problem was that there was a rip in the connection from the charging port to the battery. The solution is a new battery.
> 0 votes

---
Tags: screen, tablet
---


# Question
Title: My huawei phone is not receiving text messages?
My huawei Y3II was working fine and receiving messages without any problem. But, one day I realized that one or two weeks have been passed and I did not got any text message. Then I checked by sending message from another phone but, I did not received. I have not done anything with my phone then, what could be the problem.

# Answer
**Factory Reset** has solved my problem. This also solved my second problem which was automatically turning off sometimes and then showing 'Starting apps' and taking too much time on it.

-\> First of all I saved all my data to sd card and then switched off the phone and took out my sd card.

-\> Then I reached to options by pressing power button and volume up button and releasing power button when logo is shown while continuing pressing volume up button.

-\> Then I selected **wipe data/factory reset** option. It took just a few seconds to complete factory reset and then I rebooted the phone.

Reference : https://drfone.wondershare.com/reset-android/wipe-data-factory-reset.html
> 0 votes

---
Tags: sms
---


# Question
Title: Your system is heavily damaged by Four virus!
I'm using `Google Pixel XL` / `Android 8.1.0` w/ March 5, 2018 security patch level.

Yet, I've got following pop-up on my screen:

---

Per `Play Protect` \- "Looks good" - No harmful apps found.

I understand one of way to go about it is to do `Factory Reset`, however is there another way which doesn't involve `Factory Reset`?

I'm not really sure, how this virus got on my phone at the first place as I don't install anything outside of Play Store, any ideas what can be done to avoid this in future?

Please advise.

# Answer
It it **absolutely nothing** to worry. Feel at ease and close that shitting tab.

There's a special word, or terminology, for this kind of behavior of a random webpage, "scareware". Scaring pages frighten and threaten you by telling you that you're in danger, and try to make you download their promoted software (or even a *real* virus - though that's rare but that *does* happen from time to time).

Next time whenever you see something like this, close the tab with confidence. You're in no real danger. It's just a fake page.
> 1 votes

# Answer
I've seen these windrows in the past. Not sure if its a virus or just a popup trying to get you to download one.

When it came up on mine, it came up simultaneously with a window I "DID" ask for. I closed the window with those messages, and moved to what I actually clicked on.
> 0 votes

---
Tags: virus
---


# Question
Title: How prevent my phone from hiding the country code?
My Samsung s8+ called id only shows the local phone number without country code. (023455678 instead of +123455678)

How can I fix it?

# Answer
> 0 votes
source Go through this link for more understanding.

**Conclusion:**

* A leading 0 or "(0)" is a way of showing that you have provided the full phone number in the national format. The 0 represents the national dialing prefix; the caller will know to omit the leading 0 if they are placing a local call.
* A leading + is a way of showing that you have provided the full phone number in international E.164 format. The "+" will tell the caller that they need to dial the international dialing prefix such as "00" or "011" if they are calling from outside the country; and that conversely they may need to dial a "0" or "1" if calling from within the country.

---
Tags: caller-id
---


# Question
Title: Termux - Cannot run python file in tasker
I am trying to run a python file in termux for use in tasker. The termux tasker plugin requires an executable (you can't just run a command like "python something.py"). However, running chmod +x results in operation not permitted.

Here is a screenshot of the top of my python file, pointing to the python I installed via "pkg install python".

Any help?

# Answer
You need to grant Tasker root access in order to let it run the script.

The script requires an interpreter, as specified in its shebang line. To run the script "directly", Tasker still needs to execute the interpreter, the `python3` binary. Since it's located in Termux's data directories, other apps can't access it without root access.
> 0 votes

---
Tags: tasker, termux
---


# Question
Title: Cannot connect to Nikon D5300 via WiFi from Android 7.1.2+
I have a Nikon 5300 DSLR and an Android 7.1.2 device (LineageOS).

I want to use Nikon's official WirelessMobileUtility app to browse/transfer pictures and take pictures without touching the camera.

Problem: The connection never works, even after trying dozens of times. In the manual (and YouTube tutorials) the steps are so easy (enable WiFi on the camera, connect to that WiFi from the phone, start app) yet the app never manages to connect. Many recent Play Store reviews mention this problem.

How to make the connection succeed?

**Important: This question is only for Android 7.1.2 and above**

# Answer
This procedure requires root access.

1. Install a terminal such as ConnectBot (F-Droid, Play Store)
2. Type `su`
3. Type this command: `settings put global captive_portal_mode 0`
4. Press Enter
5. That's all, the connection should work immediately.

<sup> *Screenshot* (click image for a larger variant)</sup>

**Explanation**: Since 7.1.2 Android has changed the way captive portals are handled, and the camera's WiFi, which does not give access to the Internet, is considered a captive portal and since it does not reply as expected the connection is gets dropped. Setting the `captive_portal_mode` variable to `0` prevents Android from doing that.

**Details**: https://github.com/LineageOS/android\_frameworks\_base/blob/cm-14.1/core/java/android/provider/Settings.java#L8268

*(By the way, for devices with an Android version earlier than 7.1.2 the command is `settings put global captive_portal_detection_enabled 0`)*
> 0 votes

---
Tags: 7.1-nougat
---


# Question
Title: Unlock the SMS Limit on Android Marshmallow
On Android, there's an SMS Limit that prevents a new message from being sent after a certain amount of messages have been sent in a certain period. Due to a personal need, I need to send more than the limit by unlocking it.

I already tried downloading apps from the Play Store that unlock SMS but no luck, although I completed the required prerequisites, seems like it's not working on Marshmallow. I also tried using ADB command, but the `Settings.db` was not found in provider settings.

How to unlock the SMS limit on Android Marshmallow?

# Answer
> 1 votes
This method work on a non-rooted phone, I use it on Android 7/8:

1. On the phone, install Settings Database Editor and open it
2. On the PC, install the driver for your phone, then connect to the phone using a USB cable
3. Download this zip file containing a folder with minimal ADB and extract it to a folder
4. Open a command prompt and browse to the extracted directory
5. Type `adb devices` to check if the phone has been detected by the PC. If the status is "unauthorized", a pop-up should appear on the phone, accept it to allow ADB to communicate with it
6. Type

```
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

```

to allow the app to overwrite Android settings
7. Restart the phone
8. Open the app and add a new setting in these categories: `system`, `secure`, `global`. Push "+Add new settings" button on the top, then input `sms_outgoing_check_max_count` with value `99999`
9. Restart the phone

And now you can send a lot of messages.

---
Tags: 6.0-marshmallow, sms
---


# Question
Title: Modifying hosts file does not have any effect
Since I spend too much time on websites such as 9gag.com and the like, I decided to try and block them by modifying the hosts file on my rooted Nexus 5.

So I created a new hosts file using notepad++, which looks like this :

```
127.0.0.1 board.4chan.org
127.0.0.1 4chan.org
127.0.0.1 9gag.com
127.0.0.1 www.9gag.com
127.0.0.1 www.4chan.org

```

etc., saved it as a file without extension, and replaced the original "hosts" file found in system/etc with the new file. However, it does not have any effect and I can still access all those websites as easily as before. I'm using Chrome as my browser.

I checked that the new lines are LF and not CR+LF (read somewhere that it could make the hosts file work not properly) and that the file has no extension (File Explorer shows it as a "file", that's all). When I try to edit the hosts file with an app called Hosts Editor, it looks like everything is good and like my device should redirect the websites I'm trying to reach to localhost.

So my question is : why is this not working? What have I done wrong?

Thanks a lot!

# Answer
The answer for anyone interested: after seing that I could not access the blocked websites when in incognito mode, I deleted all of Chrome's data (by going to the Application details and hitting "Clear all data" - I supposed that's how it's said in English but I'm not quite sure). Now, the websites are blocked, so everything is fine. I don't know if I'm supposed to delete this question now that I've solved it but maybe it will be useful to someone if they stumble upon it.
> 1 votes

# Answer
To expand on the update that was made by the OP:

Chrome stores its own DNS cache for sites that you have visited. This cuts down on DNS resolution time when browsing sites that you have recently visited. However, this happens before the *hosts* file is checked for DNS resolution (so your new hosts entries will not be checked if they are in the Chrome DNS).
Therefore, you need to clear out Chrome's DNS cache. You can go to
**chrome://net-internals/#dns** and clear it out from there.

The order in which Chrome checks for DNS (from first to last) is:
local-cache-\>hosts-file-\>DNS-Server
> 1 votes

---
Tags: root-access, nexus-5, hosts
---


# Question
Title: Possible to share Tmobile Internet using my Android (Moto Z2 Play NO ROOT) via a USBC > Ethernet > Laptop?
Looking for a way to bypass my hotspot limit as I keep hitting the 10GB cap on Tmobile. Is there a way to share internet directly from my android phone (moto z2 play NO ROOT) plugged into a usbc \> ethernet adapter then to my laptop's ethernet port? Does android 7.1 even have the ability to route the internet into this ethernet port?

# Answer
I use an app called pdanet+ to share hotspot through WiFi, or usbc cable.

All you have to do, is download the app onto your phone, and also download it onto your laptop from here. You will then be able to open the app, in your phone, and enable usb tethering, it will then give you specific instructions on how to proceed depending on your device.

No root required, and it works for me even though my carrier doesn't allow hotspot at all!

(You should also select "hide tether usage", so that your carrier doesn't know your used hotspot at all)
> 1 votes

---
Tags: wifi-hotspot, tethering, 7.1-nougat, usb-tethering
---


# Question
Title: How is the screen resolution calculated for phones with curved edges and rounded corners?
Consider phones like the pixel 2, Samsung or iPhone X with notches and non rectangular screens. How is the screen resolution calculated? Do they take a rectangular screen with a standard resolution and 'chop off the edges' and use the regular value as the resolution?

# Answer
> 1 votes
Okay I asked ##techsupport on freenode and they answered it. If anyone else is looking for the answer:
The resolution specifies a rectangular screen with the same width and height of the screen. Rounded edges and notches are the rectangular screen with the appropriate bits cut out

---
Tags: screen, screen-resolution
---


# Question
Title: I can't hard reset or install any apps on my android device
I decided to flash my flash my device (Xolo Era 4k) using TWRP. I got little confused after booting in **TWRP** mode. Then I somehow managed to let my device Boot in normal mode. Then I found that I can't install any apps or apks.

Even hard reset didn't work. My Device was restarting normally even when I tried to hard reset (hard reset menu wont appear).

Device Info:

1. Xolo era 4k
2. Android Version 5.0.1
3. Non-rooted device

Xolo era 4k Android Version 5.0.1 Non-rooted device

# Answer
> 0 votes
There are some possible reason, You Can’t Install Apps on Your Android Phone

Your Android phone doesn’t have enough storage left Your phone’s cache could be causing the problem Your Android OS is too old and needs updating A factory reset of your phone may fix the problem You’re using a screen dimming app

---
Tags: twrp, xolo
---


# Question
Title: Split your emails using Gmail priority inbox
I tried to follow: Split your emails using Gmail priority inbox - Android - Gmail Help...

However whenever I open Gmail app; by default, `Inbox` being displayed instead of `Important`, even though my `Inbox type` set `Priority Inbox` (tried `Important first` with same results).

Any advise? Otherwise, I'm getting bombarded with every single email that goes into my inbox (which is a lot)

# Answer
> 0 votes
After playing with the Gmail app, I realized that they missed one detail in the link that you posted. Here's what you're supposed to do:

After switching to *priority inbox* following the instructions in the link, you have to then manually switch from the regular inbox, to the primary one. To do that, open the menu, and press on priority as shown below. After you do that, it will open it by default unless you switch back.

---
Tags: gmail
---