# Question
Title: Why can't music players find my audio files?
On my Nexus 4, there's a folder called `/sdcard/Music/` (or just `/Music` when browsing the phone's storage; Windows 7 calls it `Computer\Nexus 4\Internal storage\Music`) and I've put a lot of songs in there but **the music player doesn't see any of my songs.** Why can one app (the file manager, and e.g. Dropbox) see the files, but not another app (Play Music, Apollo, Jukefox)?

**Notes:**

* LG Nexus 4 16GB, unlocked, with CyanogenMod 10.1
(nightly build 20130212 because nothing *more stable* is available but there are no crashes.)
* The songs are stored in the path format `/sdcard/Music/Artist/Album/Song title.mp3` (simply because that's how they're stored on my media drive).
    + `Computer\Nexus 4\Internal storage\Music\Eagles\On the Border\1 Already Gone.mp3`
    + `Computer\Nexus 4\Internal storage\Music\Kashmir\The Good Life\10 Kiss me goodbye.mp3`
    + `Computer\Nexus 4\Internal storage\Music\Christina St眉rmer\Freier Fall\1 Geh nicht wenn du kommst.mp3`
    (yes there's a Chinese character in there and I don't know why; it's a German ü *(umlaut u)* on my original Windows media drive)
* I know that the songs are present and that they work because the CyanogenMod File Manager shows them and I can play them individually. *They do exist!*
* Running Rescan SD as suggested below didn't make the files appear in any of the player apps.
* I'm fairly certain there are no `.nomedia` files: The CyanogenMod File Manager doesn't display files that begin with a `.` (I renamed an existing TXT file and it promptly disappeared :)) but I used the Root Browser Lite to look through `/Music` and subfolders -- the only match I found was the one I had renamed, and I have deleted that now.
* My Windows pc at work couldn't see the files either, but after unplugging/replugging the USB it now can see+open+play the files. (I've now revised this question to remove the Windows part.)
* I'm still mystified by the fact that file-browser apps see the files but music-player apps don't.

# Answer
> 9 votes
Seeing a file name like `Computer\Nexus 4\Internal storage\Music\Christina St眉rmer\Freier Fall\1 Geh nicht wenn du kommst.mp3` points to a special problem with "special characters" (such as German Umlauts) which got messed up on data transfer: While Windoze uses its own character set (MS-ANSI or wone of the WIN-12xx, depending on configuration), Android expects UTF-8 -- which is why it's a good custom to use only 7-bit ASCII characters in file names.

Due to this mismatch and the "unidentifyable character", the media scanner most likely has crashed. Which resulted in the media database not being populated, from which follows: The players think "no media files there".

## Proposed actions

I'd suggest to either temporarily delete or at least rename all affected files, so that no file with "special characters" in its name remains. Then have the media scanner run again (e.g. triggering it with Rescan SD). Once that's finished, I'm pretty sure your media player(s) will find something to play (with).

That being approved, you know what to look for in the future. As said before, I strongly recommend to restict characters in file names to 7-bit ASCII -- that avoids a lot of problems, though some names might look a little strange ;)

# Answer
> 3 votes
In the stock ROM the Nexus 4 default music player should be "Play Music" with an icon that looks like yellow headphones, never heard of Apollo but it's possible this is something your custom ROM's changed.

Most music players on Android get their "media library" from the built-in media scanner service, this should pick up MP3 files stored in any user-accessible storage location on your phone and add them to the scanner's library. Sometimes the media scanner doesn't "notice" new files you've just added and needs to be told to do a rescan, there are apps on the store that can do this, such as Rescan SD, you can find a selection of them with a search of the Play Store if you run one of those and wait a couple of minutes all of your media should be picked up.

It's unlikely from what you're saying, but it's also possible that a hidden `.nomedia` file may be sitting in your Music folder, or one of it's parent/child folders. The presence of this file tells the media scanner to ignore the contents of that folder and it's child-folders. If you find that file somewhere in your Music folder's hierarchy, delete it.

# Answer
> 1 votes
Neither the pre-installed android music app nor Apollo music player could see the files I side-loaded until I flattened the directory hierarchy to one-level. For example, Music/Band/song.ogg works, Music/Band/Album/song.ogg does not. If only music players could see through those shallow id3 tags and get back to basics!

# Answer
> 1 votes
Had the same problem on Android 4.4.2. My solution:

1. move sdcard/Music to sdcard/media/Music
2. reboot to recovery mode
3. wipe cache (system cache, not the dalvik one)
4. reboot system

enjoy with Google Play Music! ^\_^

# Answer
> 1 votes
move sdcard/Music to sdcard/Media/Music reboot opo. All files showed up on players.

# Answer
> 0 votes
Delete the .nomedia found on your music folder. Internal and external sd card music folder. Install player pro media player. Go to settings and point it to where your music folder at on your external sd card. Once your songs showed up, it will show on your stock music player too. Good luck

# Answer
> 0 votes
Your music library might not be set up to scan even the `/sdcard0/Music/` folder.

Connect your android phone the your computer and active "USB Mode"

On your computer access the SD card on your phone over the USB cable. So on windows it might look like "`F:\Music\`" as a drive letter.

So, in this instance my issue looked like this "`F:\Music\Music_aa\`" I renamed it to "`F:\Music\Music_ab\`"

The Android USB helper service on the phone automatically starts a new scan for all media inside `/sdcard/Music/Music_ab` on the phone once you disconnect from USB mode.

Hope this helps.

# Answer
> 0 votes
Ok guys.... Last night out of the blue my stock android media apps album and music player could not find any of the photos or songs that were actually in my sd card. After escaping a stroke by a little....and four hours letter after readind a lot of forums I found a solution:

For the music player I used an app called "Next music" which could actually see the songs. I went to an option called scan by hitting the refresh button, did a full scan and magically my songs were readable by every other app including the stock player. Without any rebooting

For the photos I used quickpick. It was the only one that could actually see the photos. I opened each folder in my album then by pressing the hard menu key there was an option called" Fix Date". Did that for every folder and tbey appeared on my stock album app. Without rebooting

Ps :deleting every .nomedia I found did absolutely nothing...

# Answer
> 0 votes
I had this problem and I found the solution, when you go to your phones "file manager", disable "show hidden files". Then the installed players will not recognize your mp3 files. So make sure the hidden files are hidden in the file manager.

# Answer
> 0 votes
I experienced the same thing on my Samsung Galaxy S3 mini.
I just used *Rescan SD/Rescan* (used them both because I wasn't sure where my music was SD card/Internal SD)
After that - it just worked and my Samsung stock music player worked!!

# Answer
> 0 votes
I had the same problem with the Samsung Galaxy s5 running cyanogenmod. Here is what i did. I put the music into my internal storage and it was working fine. Then i copyed the files over to sd\media\Music, if you dont have these folders, create them. Then test and see if the file shows up by deleting one of the songs in the internal storage. if it doesnt pop up, then unmount and remount the sd card.

# Answer
> 0 votes
Rename the folder or move your files to Some new folder like (Music/). It will automatically fetch your mp3 files.

# Answer
> 0 votes
Create folder media/Music. Put all your media folders and files. Make readdressing and rescanning in your player (I use VLC) Problem should be resolved.(LinageOS 15.1 on Nexus 5X)

# Answer
> -1 votes
.nomedia - I had 2 of them files on phone and one on sd - deleted all three and Hay Presto Music player now sees all songs on SD card and phone - all good thanks - using Samsung Galaxy Ace 4 lite - had tried reformatting SD - reboots of phone - different media players - but by deleting all .nomedia files was the only solution that worked - worked a treat - didn't even have to reboot phone - just a quick rescan from media player

# Answer
> -2 votes
I mounted and un mounted my sd card and all apps recognized the files again

---
Tags: cyanogenmod, internal-storage, music-player, nexus-4, mp3
---


# Question
Title: Can't chown or chmod files on android phone
Hi there i got some files on my android phone and want to make them executable. Permissions are root:sdcard\_rw. I cant remove tha sdcard\_rw with chown, and cant make the files executable with chmod.

# Answer
I have managed to change the permissions and make things executable by booting into twrp and using its console. Before that i have tried it with termux su and tsu where both had root permissions. Maybe its not a solution but a workaround.
> 0 votes

---
Tags: linux, command-line
---


title: Titanium Backup stuck during backup

text:
# Question
Title: Titanium Backup stuck during backup
On my phone, a OnePlus 3 running Marshmallow, I have Titanium Backup configured to run automatic backups twice a week. When it runs, it gets stuck. The notification displays "Skipping 96% - Wi-Fi access points." This notification sticks around until I force quit Titanium Backup or reboot the phone, and I presume that the backup never completes.

Google searches have revealed nothing that appears relevant. Any ideas what's wrong?

# Answer
> 2 votes
You need to create a filter to exclude the 2 WiFi Access Points. In Titanium Backup, Goto Menu \> Filters (under General) \> Create Label (At the bottom right) \> Add/Remove elements \> Select all and then Uncheck the 2 WiFi Access Points at the bottom of list and Save (check mark at top right) Click Load/Save filter to save it as a filter In scheduled backups, edit and select the Filter name and save

# Answer
> 1 votes
Had the same problem (on CM13 after an upgrade from CM12), exactly as you wrote.

When I first ran TB, I refused it the right to turn Wi-Fi on/off (in Privacy Guard). When I granted TB this right again, backup of the Wi-Fi access point data worked fine.

# Answer
> 0 votes
Just had this issue... Opening the shade menu (or the notification drawer, or the pull-down settings page, or some other name...) and disabling WiFi forced Titanium Backup to re-ask about permission to disable/enable WiFi. Granting it seems to of permanently solved the issue.

---
Tags: titanium-backup, oneplus-3
---


# Question
Title: Official Facebook Hello contacts/dialer app login only says "104"
The Facebook Hello app https://newsroom.fb.com/news/2015/04/introducing-hello (released April 22, 2015 according to their post) is giving an **error only saying "incorrect signature" and "104".**

I am a good/loyal Facebook user so I installed the apps they suggested, grew to love using Facebook Hello the officially advocated contacts program, and now after searching several times over a year for news and not finding any clear Help article (I found a lot of still-posted promotional pieces about how great "Hello" is as the first, second, and third, result!) I am wondering what do you do?

Customer reviews at https://play.google.com/store/apps/details?id=com.facebook.phone&rdid=com.facebook.phone&reviewId=gp%3AAOqpTOHZWFKjSnnjN5CrK5pmMl558\_uC7NiCPu9pWIWcATy8WwuYkGe9IRmfOisfZN2fS3dlIh2cGaGO-2I&showAllReviews=true show *many* people also just reported a "104".

# Answer
"We're moving on" is all Facebook has said since then, adding "We will be deprecating Hello in a few weeks." minus a reason, from an unknown anonymous Facebook employee author.

For some reason Facebook did not tell users who installed the HEAVILY advertised "Hello Dialer" application about (maybe with another ad equally) that they're forgetting the idea now: https://newsroom.fb.com/news/2018/07/hello-tbh-moving-on/.

The reason you did not find information, is that recent news suggests the application in question has been deprecated officially in a quiet press release, in their news article I archived to report at http://web.archive.org/web/20190522194837/https://newsroom.fb.com/news/2018/07/hello-tbh-moving-on because of the secrecy, as that is fairly well hidden for a large organization, and had not been given good meta-data information, to be indexed in searches with priority.
> 1 votes

---
Tags: facebook
---


# Question
Title: How can I configure a WiFi proxy that requires a username and password?
I have an Android 4.1.2 phone, and I need to set a WiFi proxy that requires me to authenticate with a username and password. Where can I setup the user and password for the proxy?

# Answer
For some one Google may bring you to this post On Android 9, Just do as Harshil mentioned (just provide proxy host name and port, then save), when you using Chrome to access internet, there will be a popup to ask for proxy credential, now you can provide your proxy credential
> 0 votes

# Answer
Long press on that wifi connection, tap on show advanced settings. Fill in your details.

The Google Play store, and Whatsapp won't work. For that you'll have to root your phone, and install Proxy Droid or some such proxy app.
> -1 votes

---
Tags: wi-fi, password, proxy
---


# Question
Title: How do I copy a link from Google search results to clipboard on Android Chrome?
On Chrome for Android, when I do a Google search and some of the results are non-HTML documents, like PDFs. How do I copy a clean URL to the clipboard?

Example search: https://www.google.com/search?q=sodium+polyacrylate+msds

Tapping the result just opens the document for viewing, so there is no address bar to copy the URL from:

Long-press then copy link gets Google's indirect links instead, like:

```
https://www.google.com/url?sa=t&source=web&rct=j&url=http://www.hmsmedical.com/images/44-oc%2520msds.pdf&ved=0ahUKEwj2msqg3tDOAhXKox4KHdRoAMYQFggeMAA&usg=AFQjCNGEptV-_ZvoTUjoL68GOAAyrYtP0A&sig2=4XRpaDAeBjkQZlxEUXWH9A

```

Manually deleting all that other stuff then hand decoding the URL parameter is a massive pain on a phone.

How do I just copy the link?

# Answer
You will need to look for a script or add on that takes care of it.

MakeUseOf has a link for a script to use with desktop firefox and chrome, its possible the script has an Android Chrome variant, or the script is fine for android and that its the engine that you need, to be specific to Android's Chrome browser.

http://www.makeuseof.com/tag/copy-crapfree-urls-googles-search-results/

eg: look for scriptish or greasemonkey on android, also note since the script provided at MakeUseOf is outside the store, you will most likely have to do the manual-add they mention.

Good luck!
> 3 votes

# Answer
I know this is really an old thread but none of the options here worked for me. What did work is to drag the link to an input field. For example, while visiting the page if you first clear out the URL address field in the browser, then tap and hold on the desired link then drag it up to the address field and release there it will paste the PDF's address there, then you can highlight and copy it in the normal way you would for an address (depending on the browser you're using)
> 2 votes

# Answer
Instead of using the google search bar, open chrome for google and type what you want to search for in the address field. Now when you click and hold on the link you'll get the menu that lets tou copy the link address
> 2 votes

# Answer
I think you are using slow internet connection because I searched the link you provided on my android google chrome and when I long press the search results I got actual link not google redirect. Actually when we have a slow connection so the google automatically compress the results upto 80% so we not go through original links instead it redirects to googleweblight
> 0 votes

# Answer
As an alternative option that should work on any browser, I wrote a little web page to clean up links copied from Google search results: https://urlclean.com
> 0 votes

---
Tags: chrome-for-android, google-search, copy-paste
---


# Question
Title: Do Android devices make active or passive scan when looking for WiFi AP
I would like to know if Android devices make active or passive scan when looking for the AP to connect. I've already made a test using Wireshark and wifi sniffer and it seems that while an iPhone sends Probe Request frames to discover available APs (active scan), my Android device sometimes sends Probe Request frame, but most of the times it does not send Probe Request frames at all, but waits for the AP to send a Beacon frame (passive scan).

I've been looking for some official info/documentation concerning this topic, but haven't found anything useful yet. I would be very grateful if someone could provide me with the answer to this question.

# Answer
The only "official" explanation I found is in this comment (dated July 2009) in the Git repositories on android:

> wifi: **WifiManager.startScan() will now do passive scans by default**.
>
> Active scans will only happen if an hidden AP is in use, or if the new method *WifiManager.startScanActive()* is called.

The existence of an hidden function to start an active scan (reported here) suggests that the normal scanning function is indeed passive. This is to be taken with a grain of salt, though, as the Android documentation doesn't explicitly tell if the function *WifiManager.startScan()* is passive or not.

Also related: this two posts on SO (post 1, post 2) report that the scanning activity is passive (post 1) and that since android 4.3 it not even possible to call the active scan method (post 2) - but there is no link to official sources.
> 7 votes

# Answer
I have been searching for the official document for an exact answer too. But I couldn't find any. Hence I'm writing this base my own assumption. I believe a client device(mobile in this case) does both the active and passive scan. My reasons are as below:

1. When a mobile activates the WiFi interface, it needs to scan for the beacons by nearby AP so that the available SSIDs will be listed for connection. This is a passive scanning mode.
2. A mobile which has been connected to several SSIDs before will bust the probe request frames(with all the SSIDs) to nearby AP and if the SSID match, the AP will respond to the probe request and the connection/authentication process will begin. This is an active scanning mode.
3. Special case for the AP with hidden SSID. When the user manually connecting to the hidden SSID, the mobile device will generate a probe request and broadcast it to the nearby AP. When the SSID matched any of the AP, it will follow by connection/authentication process. This is an active scanning mode too.
> 1 votes

---
Tags: wi-fi, hardware, networking, system
---


title: Google Verify account

text:
# Question
Title: Google Verify account
I have tried to reset my phone as was given by elder whom the owner is past of which the owner details are not know and I stacked on How to bypass “Verify your account” (Factory Reset Protection) on Nokia 5

# Answer
The quickest way is directly flash your android phone. You can get more detail from XDA. You might need to unlock bootloader first. Than go to download and flash Recovery Image from TWRP. (This is kind of like BIOS on PC) After that, you can flash a new Android OS without any issue or verify anything.

Or try this: \[This may not work\]
1. Go to Android Website and download Android Platform Tools
2. Unzip it and put it in to C:\x
3. Open CMD from windows (while the phone is connected to your pc) 4. Type:

```
cd c:\x

```

5. Type:
`adb shell settings put secure user_setup_complete 1`
`adb shell settings put global device_provisioned 1`

6. Reboot your phone. (or type adb reboot)
> 0 votes

---
Tags: frp
---


title: Can't charge/power on Nook HD+

text:
# Question
Title: Can't charge/power on Nook HD+
The device won't power on. The screen and status light show no indication of activity when pressing or holding the power button (or any button / pairwise combination of buttons for that matter).

The Nook HD+ (model BNTV600) has been unused for at least six months. It would not power on, so I presumed that the battery was simply dead and left it plugged in overnight to charge but would still not power on the next day. I suspect that it is not charging. When initially connected to a charger the light shows green for three seconds and shows orange/amber for three seconds and then remains off (there is a brief flicker orange/amber -\> green at the transition between colors).

The device was functioning normally before storage. I've tried charging with two different Nook HD+ -\> USB cables and two different USB AC adapters and the behavior is all the same.

Is this device completely dead? Are there any tricks to get this thing to charge / power on?

# Answer
Since the device showed brief activity (the six seconds which the status LED was illuminated) I set the owner of the Nook on a mission to force a trickle charge to the device. Using the factory cable and USB power adapter plugged Belkin Conserve Power Switch to easily interrupt the power (a surge protector could work as well) they found that it was possible to give the device a minimal charge so that it would permit normal "unattended" charging.

The procedure that worked for them was:

1. Apply power
2. Interrupt power at the point the status LED would transition to amber
3. Wait some seconds before re-applying power and repeating (we don't recall how long it was exactly only that it was the minimum amount of time before the same illumination pattern could again be elicited; somewhere around 5 seconds)

After 15-20 minutes of this the device finally displayed the charging icon on the screen and has been functioning and charging as expected since.
> 2 votes

# Answer
I had similar symptoms with my Nook HD+ : when plugged into charger the indicator light turned green, then orange, but only for a second, then went dark. When left on charger for many hours, the indicator would start blinking red. Nothing worked, until I read technical details in this post:

https://forum.xda-developers.com/showthread.php?t=2796915

The bottom line: *if the battery voltage drops below 1.8 V, the stupid control chip assumes the battery is "bad" and refuses to pass the charging current; consistent with the observed symptom*s. This gave me an idea on how to fix this:

**Step 1**: Open the Nook by prying the front panel to get access to mounting screws, then unscrew the back panel.

**Step 2**: Locate the battery cable composed of three red, three black, one blue, and one yellow wires.

**Step 3**: Locate the gold test points on circuit board *under* the wires: "VBAT" under the red wires, "BAT-" under the black wires.

**Step 4**: You have to trick the control chip into "thinking" that the battery is still "good". For this, you'll need an external voltage source. I used my homemade adjustable DC power supply setting it to 2.5 V. I guess, any voltage between 1.8 - 3.7 should work.

**Step 5**: Connect the *positive* lead from the external power source to the "VBAT" test point, connect *negative* (or ground) lead to the "BAT-" test point.

**Step 6**: Plug your Nook into charger and wait a few seconds: the indicator light will now stay solid orange meaning the charging current is passing through. Yay! You should disconnect the external DC source; it's no longer needed.

Here are helpful pictures:

https://www.dropbox.com/sh/mmr2gdfpalaw4w4/AAA7leNYExGbPunGciLDP8Vna?dl=0
> 2 votes

# Answer
Li Ion batteries have a protection circuit that kicks in when the discharge falls below a certain level. The device may have been kept in storage for long, with a low battery level. Batteries **"self-discharge"**, at a slow rate but in your case, it drained out faster , since the initial charge current may have been low (guessing).

Whatever be the actual reason, the Battery refuses to charge, since the protection circuit has kicked in. This hypothesis is corroborated by the attempt to charge but failing as indicated by transition of coloured lights. It requires certain current to be applied to it before charging can happen. This is called **"Boosting"**. How to awaken sleeping Li-ion explains it and suggests ways

In case you don't have access to such chargers (I haven't found one where I stay), the best bet would be to visit a service center to see if they have and in all probability replace the battery

**Edit**

Here's an article How to fix a dead Li-Ion battery which suggests a way to "jump start" the Battery (do read the warnings) and if you decide to try this method, please update outcome (method involves stripping a USB cable and connecting it with right polarity to the battery directly for a while)

All the best
> 1 votes

# Answer
I had issue with Nook HD going green for a few seconds then amber for a few seconds then nothing. As stated above its because the battery went flat after sitting for too long w/o charger.

If you only have one charger you can try the plugging in, green to amber then you, un-plug, wait a second or two, replug and repeat cycle, or try another charger. I tried the plug unplug for about 10 times then tried the wall-wart from a Samsung tablet and it stayed amber. Lesson learned: keep the sucker charged up! Even new Samsung tablet will discharge over time if not kept charged.
> 1 votes

# Answer
Don't need to do any of the above, certainly don't open the device. Find a Mac USB port, I've seen MacBook Pro USB port recommended online. I don't have one of those but I do have an old Mac Mini Power PC so I switched that on and plugged the Nook HD+ USB cable into one of its USB ports and bingo! Fired up and the charging symbol appeared on the screen of the Nook and it is now charging. Find yourself a Mac or a friend with a Mac.
> 0 votes

# Answer
Thanks for the tip on using a MAC power connector. My Nook has not been used in a while and the battery was below 10% when I first tried to charge it. It never seem to recover and I could not power it on or perform a hard reset. I ended up plugging it into a multi port (USB) MAC connector for an MAC Book Pro. BAMMMM. It almost immediately came a live and I was able to power it back on under normal procedures.

One last point. While the Nook is still plugged in you should do a reboot; otherwise, it will revert back to a zombie mode when unplugged. This too can be corrected by simply plugging the device back in and again powering it on, then rebooting.

I’m back in business. Thanks again ... great tip and would recommend it to any one with a similar issue.

PS: If you do not have a MAC power supply or the proper USB based connection for one, then try and go to an Apple store to see if they can do you a “solid”. You might want to can ahead and ask and/or make an appointment.
> 0 votes

# Answer
I had the same problem with my nook. I don't have a Mac but that gave me an idea. I have a portable phone charger so I plugged it up and low and behold it came back to life!!
> 0 votes

# Answer
I tried a number of different wall chargers and PC ports to charge mine with no luck. Tried the trickle charge trick by repeatedly connecting/disconnecting and did it for over 30 minutes with no luck there either.

What did work was using a battery backup like people use to charge their cell phones. I happened to have a little one I got for free at a work conference. It outputs 5V/1A. I immediately got the Nook to start recharging when I plugged in this little battery on the first try with no screwing around or disassembly needed.
> 0 votes

# Answer
Another success with MacBook (not pro). 2 ea. Nook HD, 3 ea. cables, multiple power supplies all failed with the green, amber, red, dark LED and no charging symptom. Both charged fully overnight when using the cable in the MacBook USB port.

Unfortunately, after charging successfully from the Mac, they still won't charge from the power supplies directly.

I now have a very large charger (the MacBook) for these very small tablets.
> 0 votes

# Answer
Okay, got it going. Do not open the tablet or get fancy ideas. What I did was simple but took patience. I plugged it in and it turned from green to amber after 5 seconds. Did that several times at 10 second intervals then left it plugged in on amber for 15 minutes to go do something. Came back, it was still amber but charging. Tried doing a few more greens to amber each time it aent amber but was charging. Left it alone 5 minutes and it blinked then went green all by itself. Now charged up and thanks for everyone's ideas.
> 0 votes

---
Tags: battery, charging, hardware, nook-hd, nook
---


# Question
Title: Set device owner app causes "Workspace has been locked" on Android 8.1 Oreo
I've been using my app as a device owner app since Android Lollipop. I have a new device here which I want to be a device owner too. It is a Samsung Galaxy Tab A 10.5(2018) SM-T590. I am currently running this version of the ROM: T590XXU2ASC1.

I am not using the NFC method. I usually create the `/data/system/device_owner.xml` file by myself. But since it is not working, I tried this method:

1. Factory reset the tablet in recovery mode
2. Pass through the annoying startup menus
3. Set lock screen to none
4. Enable USB Debugging
5. Install my app `adb install MyApplicaton.apk`
6. `adb shell dpm set-device-owner com.example.myapplication/.MyApplicationReceiver`. It always says success when I execute the command.
7. Start my app, I can pin/unpin my app without problem.
8. Reboot, and then the famous message appears every time:

> Workspace has been locked
> Unauthorized software has been installed on your device. Workspace has been locked to prevent any unauthorized access. Contact your admin.

Then if I press on the FACTORY DATA RESET button, the workspace app crashes then pops back.

I tried the kioskModeDemo app and the androidDeviceOwner sample app and they all do the same problem.

Does anybody have any hints of why this is not working anymore on Android 8 Oreo?

# Answer
I found the problem: once you OEM unlock (custom OS) your device on a certain Samsung Knox level API, you can't be the device owner anymore on this device.

This is from Samsung Knox page:

> "Cannot create work profile" "The security policy prevents the creation of a managed device because a custom OS is or has been installed on this device".

The device could be vulnerable to potential attacks with custom OS.
> 1 votes

---
Tags: samsung, 8.1-oreo, device-administrator, work-profiles
---


title: Why camera taking 2 copies at a time?

text:
# Question
Title: Why camera taking 2 copies at a time?
I'm using Asus Zenfone Max Pro M2 with Android Pie. So when I take a shot from default camera it does saving two copies at a time. Same for front camera.

# Answer
> 2 votes
Some cameras allow repeated captures if the button is depressed longer. See your manual for settings about the "Continuous Shot" setting, since it may be a form of "burst mode". My Samsung (sorry my experience is not with Zenfone) allows for "burst mode" to allow the camera itself to take a short burst of images, selecting its choice of "best", but keeps the others for any personal preference otherwise. Your phone may do similar.

---
Tags: camera, 9.0-pie
---


title: Unlocked bootloader, not booting

text:
# Question
Title: Unlocked bootloader, not booting
I unlocked the bootloader on my Nexus 5X phone. When I tried to boot into recovery mode, I get the standard message that my device isn't being scanned for corruption. I expected it... but then nothing. It doesn't boot, it doesn't change. I tried relocking the bootloader in an attempt to fix my mistake, but then I get a message that my device is corrupt. Still doesn't let me boot. Tried unlocking and relocking again. Same thing.

If I hold the power button down long enough, I can go back to the broken Android screen. The Start option has the same problem as above. Restart bootloader just shuts the phone off for a split second, then goes back to the broken android screen. Recovery mode doesn't work as described above. I'm afraid to go with "Power off", I'm afraid it might ruin my phone.

I can re-re-unlock the bootloader and go back to the "can't check for corruption" message. Re-re-locking it makes the "your device is corrupt" message again. What do I do? I'm afraid I might have already ruined the phone.

# Answer
It seems that fastboot mode is working and bootloader is already unlocked, so what you can do in such a case is flash the stock firmware in the device. You can either flash it via fastboot itself or via recovery. The one with recovery is a bit safer.

Full OTA image for Nexus and Pixel devices can be found here along with the instructions. If the instructions there do not work for you, here is what to do:

1. Download TWRP (a custom recovery) for your device and follow the instructions there to flash it. You can alternatively directly boot into TWRP by using this command:

```
fastboot boot recovery.img

```

Make sure to rename the downloaded TWRP image to *recovery.img* and provide the full path to wherever you have downloaded it within the command.
2. Download the full OTA image in the PC.
3. In TWRP, go to Advanced → Sideload, and push the slider to begin sideloading. In the PC, issue this command:

```
adb sideload FULL_OTA_IMAGE.zip

```

Replace FULL\_OTA\_IMAGE.zip with the actual name and path of the full OTA image you have downloaded. Once it reaches 100%, your sideloading is finished. You can now issue the command `adb reboot` or reboot from the TWRP.

Your phone should boot fine now. Note that this would remove TWRP if you had installed it earlier. This does not locks the bootloader though.
> 0 votes

---
Tags: nexus-5x
---


# Question
Title: Remove pin lock from an old forgotten phone
I broke my current phone so I thought that I would use my old Samsung j1(2016) but it seems that I forgot the 10 digit pin code (10 because the code used all digits including 0). I searched the net but the phone doesn't have developer option activated, custom rom/recovery and wifi/3g deactivated. Please help me I don't want to delete all my data.

# Answer
> 0 votes
You can Unlock your device using Odin to flash firmware but it can't stop get formatted during flash process. When flashing a firmware it clear the internal storage.

---
Tags: lock-screens
---


# Question
Title: fastboot commands don't do anything mtk device
I have an android device, locked / not rooted. I'm trying to unlock the bootloader on a mac, adb works fine.

> adb devices
>
> adb reboot bootloader

works ok

But then when I try most commands with "fastboot" it won't work,

the only thing working is:

> fastboot devices
>
> fastboot --version

```
fastboot version 28.0.3-5475833

```

when I try:

> fastboot getvar all fastboot oem get-bootinfo

It just goes to a new blank line, then stays there "frozen" until I cancel...

same happens with

> fastboot oem unlock

edit, I see that MTK don't need to unlock? IS this correct?

Thanks!

# Answer
> 1 votes
So you mentioned that

```
fastboot devices

```

is a command that works for you, but you didn't mention whether or not you saw any output from your device. While I don't have a lot of experience with MediaTek processors, I'm aware that most of them share the same set of drivers and as a result, you should be able to download the appropriate "universal" USB drivers for Mac.

You won't be able to run

```
fastboot oem unlock

```

because your computer doesn't currently detect a device that's plugged in, even if your phone or tablet is displaying the bootloader screen and is connected to your computer over USB.

What I would recommend is Googling the name of your device and the words "USB drivers for Mac" in the same search query and installing the drivers from the manufacturer's website that comes up, or if downloads are provided by XDA or Reddit, from those sites as well.

From Googling, this link: https://forum.xda-developers.com/showthread.php?t=1917237 comes up that mentions that macOS doesn't require fastboot drivers, but I don't believe that is true anymore, although if that is the case and you cannot find drivers, I would redownload the Android SDK from Android Studio and use the latest version of fastboot from the platform-tools folder.

---
Tags: fastboot
---


title: Recover manually deleted call history

text:
# Question
Title: Recover manually deleted call history
I was looking for an outdated third party call backup app which does not update instantaneously at the deletion of logs via the default phone app. Would that be necessary or is there any other way I can save the said deleted history? If yes, could anybody suggest such apps? Thanks!

# Answer
there are no apps (as in an android app) to my knowledge but you can look at the binary data because what youve done is a soft delete and you need a hard delete to erase that information off the physical memory..

long to do and could be draining since you have to translate the binary also into higher level form .... you need a compiler for this. thats AFTER you find the location of the binary anomaly youre looking for (you can do this after too, thatll be easier, but youd have to decompile alot more code)

as long as your computer (in this case android) hasnt replaced that unused space (ie you havent downloaded too much information since) then its possible

im sure there are programmes to recover your code as i used to use these kinds of programmes since like 1997.

good luck finding that in 2019

but if you do btw... let me know.. thanks
> 0 votes

# Answer
This is unlikely to be possible. Disk recovery software requires raw disk access which is only possible if your device is rooted.

Moreover, unlike regular desktop computers, your Android device is likely using SSD instead of hard-disk. Data recovery in SSD is a lot trickier than hard-disk due to wear balancing. However, the killer here is that your SSD device is likely TRIM-enabled, unlike with hard-disk where deletion simply marks the space as unused, TRIM will wipe the space moments after deleting the file.
> 0 votes

---
Tags: recovery-mode, data-recovery, calls, history
---


title: How to make full backup?

text:
# Question
Title: How to make full backup?
My phone is a Nokia 6.1. I'd like to do a factory reset, but preserving:

* my personal files
* the settings of all apps
* the data saved by all apps (e.g. the alarms saved by the stock Clock app)
* the collection of apps (I want them to be reinstalled after the reset)

Does the "Settings -\> Advanced -\> Backup" Android feature do all that? If no, then what part does it do?

# Answer
> 0 votes
Found the answer here:

```
If you back up to Google Drive, here's what's backed up:

Google Contacts data
Google Calendar events and settings
Wi-Fi networks and passwords
Wallpapers
Gmail settings
Apps
Display settings (brightness and sleep)
Language and input settings
Date and time
Settings and data for apps not made by Google (varies by app)
Note: Not all apps can back up or restore all settings and data. To find out about an app, learn how to contact its developer.

```

---
Tags: backup, 9.0-pie
---


title: HOWTF do you twerp!

text:
# Question
Title: HOWTF do you twerp!
Samsung Galaxy note 3 sm-n9005 hltexx lollipop 5.0 UK /international open please excuse my stupidity and ignorance. but howtf do i get to use twrp when i bootload to recovery??

every time I try twrp my phone... recovery mode seems to disappear and i get odin mode downloading dont turn off your device

no..volume up OR down with home and power will not do it neither will adb nor any other tutorial i found and a few tutorials later and im fxn exhausted|

been trying to do this since like 3 AM and its 13:21 should it actually be this hard? why couldnt it just work using the official twrk app instructions?

im starting to think forget twrp can anyone recommend a recovery bootloader? or should i not?

ALL I WANT IN LIFE IS STEP FOUR OF THIS GUIDE!!!! Am i over complicating something?Am i asking for too much? have i understood the instructions wrong?

https://forum.xda-developers.com/android/apps-games/app-patched-ad-free-youtube-apks-t3449312

is there some super simple way to never get ads on my phone somewhere else? SPECIALLY YOUTUBE

# Answer
Flash the BTU version for your ROM. Download and full Instructions on fw.updato.com

Flash TWRP (tar) via Odin AP. Download and full instructions on forum.xda-developers.com

Immediately reboot into recovery without ever booting into system. If you boot into system this will brick your phone and you have to flash stock rom again.

Format Data from TWRP recovery (Wipe -\> Format Data -\> type yes). reboot recovery.

Now copy the following files via USB (MTP) to Internal Storage.

Install the no-verity-opt-encrypt.zip or Disable\_Dm-Verity\_ForceEncrypt.zip from TWRP. reboot recovery.

Install Magisk zip. reboot system. wait for the boot about 20 minutes. you are rooted now.

Note: If you see errors in TWRP, goto Advanced -\> Copy Log, get the recovery.log from USB (MTP) and find the more detailed Error Messages
> 0 votes

---
Tags: twrp, samsung-galaxy-note-3, ads
---


# Question
Title: An error has occurred with the fingerprint sensor
Shortly ago, my J7 Prime stopped recognizing my fingerprint.

When I go to *Settings* -\> *Lock screen and security* -\> *Fingerprint Scanner* I get

> An error has occurred with the fingerprint sensor. If this message appears repeatedly, restart your device.

I tried a few options I found, and none worked:

1. Rebooting.
2. Going into Safe Mode. The same error appears. Plus, almost all my widgets in the home screen disappeared, so I had to redo it.
3. *Settings* -\> *Apps* -\> *Three dots* -\> *Show system apps* -\> *Fingerprint* -\> *Clear Data* . The cache was already empty. Rebooting.
4. Logging off and into my Samsung account.
5. *Developer options* (this was already enabled) -\> *OEM unlock* -\> *Enable*. Reboot. *Developer options* -\> *OEM unlock* -\> *Disable*, and *Developer options* -\> *Disable*.

What I did not (and I cannot) try:

1. Rooting my phone (it is a corporate device).
2. Resetting my phone (same).

**What can I do to fix the problem?** (other than taking it to the IT dept.)

# Answer
There was a system update pending. After I updated the fingerprint sensor came back to life.

(Note: Not only that... about 1.5GB were freed, which I very much needed. Unfortunately, Android's gluttony will promptly take care of it.)

I cannot propose this as a general solution as:

1. I am not sure it will always work (although after the update there were a few glitches that got fixed, so I guess there are chances it will work).
2. This depends on the existence of a pending update, which will not always be available.
> 0 votes

# Answer
Most likely the problem is with the fingerprint scanner itself. He was either damaged or moved away from the water, and he burned
> 1 votes

# Answer
I Fixed this issue. I have Note 9 Phone.

You need to Remove and Reconnect your Battery.. I know its not Possible becouse Latest Phones Are Seeltype by itself.

But samsung give option for simmulate pull battry and reconnect. Its not lost any data.

Press Power button + Volume Down Button Same time and keep 30 Second

Then phone will be restart and try again your fingerprints.
> 0 votes

---
Tags: fingerprint
---


title: Prevent a file from being overwritten

text:
# Question
Title: Prevent a file from being overwritten
An app, due to an unfixed glitch, keeps overwriting an important file

How to lock that file so that it cannot be overwritten ?

Have root. Don't have xposed

# Answer
> 1 votes
You can remove write permission on your file. You would need toybox (inbuilt in Android since v5.0) or busybox. Assuming you have toybox already, use these commands in a terminal emulator:

```
su
cd /data/media/0/DIR              # replace DIR with wherever your file is. E.g. if the file is in /sdcard/Download, then DIR should be Download, so that the whole command looks like /data/media/0/Download
toybox chown 444 FILE_NAME        # this would set read-only permission for every user in the system for that file. Change 444 to 666 to revert changes.
chattr +i FILE_NAME               # alternative to above command. This prevents writing as well as deletion of the file. Change +i to -i to revert changes.

```

If you're wondering why the commands are performed on file under `/data/media/0`, read the answer here from Irfan Latif.

# Answer
> 0 votes
Solution 1: Move the file to another folder. Thus, the app won't have access to it and can no longer change it.

Solution 2: If the file can't be moved (maybe because you don't want to move it, or that the app needs to access it from that folder), change its permissions to read-only. Any good file manager should be able to do it. click on the file, select properties then remove the write permissions.

Solution 3: Use a terminal and make the file immutable as stated in the comment using the command:

```
su chattr +i /path/to/your/file

```

Bear in mind that the second and third solutions will work only if the filesystem accepts the change of permissions or flags.

---
Tags: files
---


# Question
Title: Is there a way to enable USB debugging from fastboot?
I have a Nvidia Shield Tablet that froze on me. After powering down it hangs on the nvidia boot up screen when I try to boot it up. Nvidia support says it is a 'soft-brick', as I can't get into recovery mode from fastboot. I am trying to get a recovery image on the tablet. However, the bootloader is locked and I'm pretty sure USB debugging was not enabled ahead of time. Therefore, I can't perform an unlock using adb, and so can't flash a recovery image. When trying to access through a platform-tools terminal, it doesn't show in a list of adb devices.

I'm pretty confident I have the correct drivers installed on my windows PC, which is connected to the tablet via USB.

Nvidia Shield Tablet Wifi (2014 version)

Any help is appreciated at this point, I can't think of anything else to try. Sorry in advance for mixing up terms etc. I've just been researching the past few nights and trying to find a solution. I'm far from an expert.

I've tried these links, here and here but they seem to require USB debugging enabled or ability to access recovery mode from fastboot.

Thanks,

# Answer
adb and fastboot are different modes. you can enter recovery without usb debugging. Press and hold Power + Vol Down. This is the bootloader screen. Now navigate to recovery with Vol Keys, Power to confirm. Wait a Moment. When the android symbol appears, press Vol Up + Power to enter recovery. **Now do Factory reset.**

If device is locked you may not be able to enter recovery. you can unlock it from fastboot and try again. **Unlocking will factory reset your tablet.** Download `platform_tools` from google. Enter fastboot mode from bootloader screen. Connect the usb cable. Install the drivers. Open the `cmd.exe` as administrator. navigate to the folder. check with fastboot if the serialno appears. unlock.

```
fastboot devices
fastboot oem unlock

```

then boot TWRP and see if partitions can be mounted. at least /system and /cache should be mountable, otherwise something is wrong. /data is encrypted but should be mountable too. for more info see here. Do not flash TWRP to recovery partition, first backup stock recovery!

```
fastboot boot twrp-3.3.1-0-shieldtablet.img

```

in twrp, there is a option reboot recovery which should you bring to recovery mode. if not, you still have to option to backup/wipe partitions from twrp. start with wiping cache. if phone is still not booting, reboot into twrp and format data. if any error occurs, you can pull the log from adb at any time. post the log file in the twrp support thread and ask for help. try another twrp version (3.1.1-0) depending on your android version

```
adb pull /tmp/recovery.log C:\Users\Admin\Downloads\platform_tools\recovery.log

```

**if you need to enable usb-debugging from recovery, you may modify /system.**
(but also the other methods you linked above should work)

pull the `/system/build.prop` and edit the following lines with Notepad++ (make a copy for backup)

```
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb

```

mount /system writeable, then push it back to phone. if you don't want to modify /system you can try to push it `/data/local.prop` (but i guess it is not supported on this rom) or do create a file /data/property/persist.sys.usb.config (i don't have exactly read this posts above)

```
adb push "C:\Users\Admin\Downloads\platform_tools\build.prop" /system/build.prop

```

Now place the RSA-Key somewhere on the phone and merge it into `adb_keys`

```
adb push "C:\Users\Admin\.android\adbkey.pub" /tmp/adbkey.pub
adb shell
mkdir -p /data/misc/adb
cat /tmp/adbkey.pub >> /data/misc/adb/adb_keys

```

if root access is required, you can change `ro.secure=0` in build.prop too (but not recommended)
> 3 votes

---
Tags: recovery-mode, fastboot
---


# Question
Title: Rooting again after installing LineageOS?
After following the following steps:

* rooting a motorola g3,
* installing TWRP
* wiping the phone (without micro-sd present) with TWRP
* installing lineageOS
* wiping the phone (without micro-sd present) with TWRP
* Installing SlimOS
* wiping the phone (without micro-sd present) with TWRP
* Installing LineageOS
* Installing Root checker basic
* Finding it does not have proper root acces
* Rebooting to fastboot\>recovery\>TWRP\>Install
* Installing http://forum.xda-developers.com/attachment.php?attachmentid=3655401&d=1456122222 (as linked specifically for the Moto G 3 2015 generation here: https://motog5.net/unlock-bootloader-install-twrp-root-moto-g3/)\*
* Rebooting,
* checking Root checker basic
* Finding it does not have proper root access
* Noticing this explanation: https://duckduckgo.com/?q=root+lineage&atb=v119-6&iax=videos&ia=videos&iai=L8rwPV5ZhhA
* enabling in debugging mode:
* Root access for ADB and All apps
* checking Root checker basic
* Finding it does not have proper root access
* Reboot in fastmode\>TWRP\>Install the supersu file
* Reboot check in Root check basic whether root has been obtained, root has not been obtained.
* Root access for ADB and All apps
* checking Root checker basic
* Finding it does not have proper root access
* Reboot in fastmode\>TWRP\>Install the supersu file
* It does not give a red error bar but it reads:

> Boot image patcher
>
> ---
>
> * Finding boot image --- Boot image:/ /dev/block/mmcblk0p31
> * Extracting ramdisk
> * Decrompressing ramdisk
> * Checking Patch status
> * Creating Backup
> * Patching sepolicy --- Failure, aborting
>
> ---
>
> Important notice
>
> ---
>
> If TWRP offers to install SuperSU do *NOT* Let it!
>
> ---

I thought perhaps the supersu file needs to be changed since now it is for a LineageOS in stead of for the MOTO G3 2015 edition stock android, so I tried the following 3 files as well:

From: https://www.lineageosrom.com/2016/12/how-to-enable-root-in-lineage-os-using.html TO: https://www.lineageosrom.com/2017/01/download-supersuzp-and-su-removalzip.html To: https://download.lineageos.org/extras

1. https://mirrorbits.lineageos.org/su/addonsu-15.1-arm-signed.zip
2. https://mirrorbits.lineageos.org/su/addonsu-15.1-arm64-signed.zip
3. https://mirrorbits.lineageos.org/su/addonsu-15.1-x86-signed.zip

Only the 3d did not give a red error.

So as much of a trivial challenge it may appear to be, I was curious if anyone can point out which mistake I am making in trying to give the device root-access again. Other suggestions are welcome as well!

\*Note, this was also the file that allowed me to root it the first time.

# Answer
As you've already found out, LineageOS has its own, built-in, lightweight SU solution (`addonsu`), which is the only one supported officially (the team does not adore Magisk/SuperSU).

Note that officially LOS only provides 14.1 builds for your device. Assuming that's the version you're running, using the addonsu for 15.1 you will naturally bump into problems. As indicated in the source, your device is an `arm` one, so use addonsu-14.1-arm-signed.zip instead.

Magisk/SuperSU are reported by other users to work well enough, but you will need newer packages that work with higher Android versions, and the one you initially used (SuperSU 2.62) isn't enough.
> 2 votes

# Answer
It seems that you had Lineage (im on 14.1 right now & i love this rom), but you wanted, instead, the excitement, unreliability, the Wonder, of 3rd-party root management.
Yeah, I used to smoke a lotta that, too. JK. CM/LOS's su is way more stable, predictable, user-friendly, and PRIVATE than most other root-solutions. Seems you weren't aware of the add-on at first, but in the future, Google everything about your device before flashing every file that comes in a zip-format. Knowing your architecture is kinda a big deal in the root/modding communities (im curious how the x86 add-on was the least error-throwing on your arm device). You're lucky that root access was the only issue you were fighting. I can laugh at you because I've been there, done that. You did right by asking, though. Live and learn.
> 1 votes

---
Tags: rooting, lineageos, motorola, supersu, motorola-moto-g3
---


# Question
Title: Pixel Launcher crashing due to missing STATUS_BAR and MANAGE_ACTIVITY_STACKS permissions
I'm running LineageOS 16 on a OnePlus 3T. Whenever I try to open the Pixel Launcher, it crashes. In `adb logcat`, I saw the following lines that looked relevant:

```
05-25 16:13:31.293 16356 16356 W TaskStackChangeListeners: java.lang.SecurityException: Permission Denial: registerTaskStackListener() from pid=16356, uid=10003 requires android.permission.MANAGE_ACTIVITY_STACKS
05-25 16:13:31.476 16356 16356 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity}: java.lang.SecurityException: Permission Denial: setShelfHeight() from pid=16356, uid=10003 requires android.permission.STATUS_BAR

```

I tried running these commands to fix the problem:

```
adb shell pm grant com.google.android.apps.nexuslauncher android.permission.MANAGE_ACTIVITY_STACKS
adb shell pm grant com.google.android.apps.nexuslauncher android.permission.STATUS_BAR

```

However, they failed:

```
java.lang.SecurityException: Package com.google.android.apps.nexuslauncher has not requested permission android.permission.MANAGE_ACTIVITY_STACKS
java.lang.SecurityException: Package com.google.android.apps.nexuslauncher has not requested permission android.permission.STATUS_BAR

```

I searched for this and found a post on XDA with someone having the same problem: https://forum.xda-developers.com/android/software/pa-gapps-continuation-t3098071/post77695616#post77695616

Responses weren't very useful though. They basically boiled down to "your ROM is broken; ask your ROM developer to fix it."

So how can I fix this crash?

# Answer
> 8 votes
I rebooted into TWRP and edited `/data/system/packages.xml`. Under `<package name="com.google.android.apps.nexuslauncher"` and `<perms>`, I added the following lines:

```
<item name="android.permission.STATUS_BAR" granted="true" flags="0" />
<item name="android.permission.MANAGE_ACTIVITY_STACKS" granted="true" flags="0" />

```

When I rebooted back into Android, the crash was fixed.

---
Tags: permissions, lineageos, crashes, launcher
---


# Question
Title: How can I put location in "Battery Saving" mode in Android Pie?
In Android Oreo, when location was on, there were 3 choices for how it worked: Device Only, Battery Saving, or High Accuracy. In Pie, it's easy to change to Device Only or High Accuracy by turning "Google Location Accuracy" on or off in Location settings. How can I change to Battery Saving?

# Answer
> 2 votes
Google has removed all of the UI from the OS to change this setting, but it's still changeable in other ways.

If an app has the `WRITE_SECURE_SETTINGS` permission, it can do this by calling `Settings.Secure.putInt(contentResolver, Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING);`. The Tiles app in the Google Play Store includes a Location tile that does exactly this.

Alternatively, if you have ADB or root, you can do this with no third-party apps by running `settings put secure location_providers_allowed +network,-gps` from an ADB shell or a root shell.

---
Tags: battery-life, geolocation, 9.0-pie, location-services
---


# Question
Title: Huawei does not accept password to unlock
I have a Huawei tablet it was reset now when i try to sign in with Google it gives me a message shown on the image.

What can i do? Thanks.

# Answer
> -2 votes
Please sign in using one of the owner's accounts for this device

---
Tags: factory-reset, huawei
---


# Question
Title: Does LineageOS or OpenGApps have a GMS License and GMS Certification?
Some time ago, I have installed LineageOS on my Samsung Galaxy S2, together with the OpenGApps suite. I have registered with Google and enjoy access to the phletora of Google Play apps on this phone.

Now, **is this use of Google Play from an ASOP based Android legal**, or problematic? Since, I really doubt LineageOS, nor the OpenGApps project has properly gone through the GMS License and GMS Certification which seems to be required to obtain proper access to Google's apps?

Note: This question has arisen around the Ban of Huawei from using "Google services" as per this article: https://www.theguardian.com/technology/2019/may/19/google-huawei-trump-blacklist-report

I think, Huawei should be no different than LineageOS, when it comes to using ASOP and installing the play store via OpenGApps.

# Answer
Google's stance is that GMS is granted to a device, which then stays with it regardless of any custom ROM the consumer may install. In other words, if you get a stock device that has GMS, then you're allowed to install OpenGApps on any third-party ROM you put on it. However, you're not allowed to install OpenGApps on a device that never had GMS.
> 1 votes

---
Tags: google-play-store, lineageos, google-apps
---


# Question
Title: Cannot flash Moto X Style - Due to "Pre-flash validation failed" error
I have bricked my device (The Motorola Moto X Style (UK)) after trying to install SuperSU on my device running the latest MM build.

Through hours and hours of research, I am trying to flash a stock build to my device, downloaded from this website https://firmware.center/firmware/Motorola/Moto%20X%20Style/Stock/XT1572/

I am following the instructions in this thread: https://forum.xda-developers.com/moto-x-style/development/firmware-moto-x-style-pure-stock-t3272486

These are the commands you are told to enter into command prompt:

```
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem lock
fastboot reboot

```

I have tried 2 different builds, both of them failing when reaching the same commands. This is my console window at the moment after reaching the sparsechunk.2 file

```
    D:\platform-tools-latest-windows\platform-tools>fastboot devices
TA391006KH      fastboot

D:\platform-tools-latest-windows\platform-tools>fastboot flash partition D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [  0.016s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.393s

D:\platform-tools-latest-windows\platform-tools>fastboot flash bootloader D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\bootloader.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:bootloader: not found
target reported max download size of 536870912 bytes
sending 'bootloader' (2699 KB)...
OKAY [  0.155s]
writing 'bootloader'...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
(bootloader) flashing pmic ...
(bootloader) flashing rpm ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing sdi ...
OKAY [  1.637s]
finished. total time: 1.805s

D:\platform-tools-latest-windows\platform-tools>fastboot flash logo D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\logo.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:logo: not found
target reported max download size of 536870912 bytes
sending 'logo' (3687 KB)...
OKAY [  0.081s]
writing 'logo'...
OKAY [  0.116s]
finished. total time: 0.204s

D:\platform-tools-latest-windows\platform-tools>fastboot flash boot D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\boot.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:boot: not found
target reported max download size of 536870912 bytes
sending 'boot' (40960 KB)...
OKAY [  0.985s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.702s

D:\platform-tools-latest-windows\platform-tools>fastboot flash recovery D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\recovery.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (41040 KB)...
OKAY [  0.961s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.728s

D:\platform-tools-latest-windows\platform-tools>fastboot flash system D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\system.img_sparsechunk.0
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (257199 KB)...
OKAY [  5.813s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.232s

D:\platform-tools-latest-windows\platform-tools>fastboot flash system D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\system.img_sparsechunk.1
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (255632 KB)...
OKAY [  5.848s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.917s

D:\platform-tools-latest-windows\platform-tools>fastboot flash system D:\XT1572_CLARK_RETEU_6.0.1_MPHS24.107-58-5_cid7_subsidy-DEFAULT_CFC.xml\system.img_sparsechunk.2
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (255866 KB)...
OKAY [  5.851s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.920s

```

What am I doing wrong? Do these errors mean that I am trying to flash the wrong firmware?

Thanks for any help in advance!

# Answer
> 10 votes
To answer your question specifically: In Moto devices, Preflash Validation Error means the factory image you are attempting to flash is older than the one you have currently installed and Moto devices **do not** support downgrading of the bootloader or partition table (gpt.bin) regardless if the bootloader is locked or unlocked.

There is also a second issue here with the system sparsechunks failing, but that is more related to having other "stuff" in the system folder that is remaining from other ROMs or flashed patches, typically a format (different from a wipe) of /system and /data in TWRP before starting the flash process clears this up.

You are also not beginning or ending your flash process correctly for the image you are using...You should begin with "fastboot oem fb\_mode\_set" and end with "fastboot oem fb\_mode\_clear" prior to the reboot, more on this in a second...

There are really 2 options here, you can skip the partition table (gpt.bin), and possibly the bootloader.img file if it fails, and continue the flash process. It should complete and operate normally and you can accept OTA updates. Or you can wait until a newer factory image becomes available.

Performing a "relock" of the bootloader is not possible when downgrading, meaning you got a preflash validation error, because you are not flashing a complete image. Performing an `oem lock begin` and `oem lock` requires ALL pieces of the factory image be flashed successfully, which is not possible if you are downgrading.

To answer the obvious next question, we do not have the latest factory images for this device, we are one to two versions behind depending on the variant, and Moto/Lenovo is less than forthcoming with providing them so we tend to get them by "other" means.

I have written a complete tutorial on XDA on returning this device to it's factory state, it is available here. All of these issue have been discussed and answered in this thread in great detail, most are recoverable issues but not all without a current factory image.

# Answer
> 1 votes
find flashfile.bat then run it instead run manual or you should start to run 2 command:

> fastboot getvar max-sparse-size
>
> fastboot oem fb\_mode\_set

full example of :

Motorola\_Moto\_X\_Style\_XT1572\_CLARK\_RETLA\_DS\_7.0\_NPHS25.200-15-8\_CID12

```
echo off
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash bluetooth BTFM.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot flash fsg fsg.mbn
fastboot flash bluetooth BTFM.bin
fastboot oem fb_mode_clear
echo -------------------------------------------------------------------------
echo please scroll up and check your flash for any errors
echo -------------------------------------------------------------------------
pause
fastboot reboot
exit

```

---
Tags: 6.0-marshmallow, fastboot
---


title: Migrating to a custom rom

text:
# Question
Title: Migrating to a custom rom
I'd like to ask if there is a way to backup all my apps and data to transfer from miui to a custom rom. I've switched before, on another device but had to reinstall everything, which was pretty annoying, thus losing all my app data. I was wondering if there is an app which just backups everything, including contacts, messages, apps and app data, etc and then restoring everything back to normal. PS. I have gained root rights.

# Answer
> 1 votes
After I tried using the migrate app, which force closed everytime I tried to enter system apps, I went on with an app I had lying on my phone, called app2sd. I've backup up everything and I'm good to go. Thanks everyone. **Case closed**

---
Tags: applications, backup, custom-roms
---


# Question
Title: Best way to transfer photos from Android 4.4.4 to Windows 7
I just upgraded to a Samsung Galaxy s5 running android 4.4.4. On my old phone running gingerbread, I was able to use the USB Mass Storage Device (MSD) feature to browse, delete, and copy photos (to a Windows 7 PC) very quickly since that phone basically acted as a standard USB drive.

On the Galaxy s5, it uses MTP, and trying to perform these same functions is painfully slow. I have over 1,000 photos on the phone, and it takes several minutes for them to be all listed in the DCIM/Camera folder. And even longer for thumbnails to appear. Nothing appears to be cached for quick access.

Considering that MSD is no longer available, and MTP is excruciatingly slow, is there a better way to handle accessing photos on the phone and transferring them to a PC? I would prefer to avoid cloud services/features.

# Answer
I know it's been a while since I asked this, but I think I finally came up with a decent solution that doens't involve the cloud, doesn't involve waiting eons for images to load via USB, and doesn't involve taking the phone apart to get at the SD card.

I created a file share on a computer, and installed ES File Explorer app on the phone. Using ES File Explorer, I access the file share, then go back to the home screen.

Then, in the android gallery, I select the photos I want to move to the computer, tap the "share" icon, and select the "ES save to" option. Then, go to the root direction, select the computer's name/IP, log in, select the appropriate folder on the computer, then tap "select" to upload the photos.
> 0 votes

# Answer
1) Use Air Droid Copy to comp, copy to phone \[too long\]

2) Switch on dropbox lan sync and transfer the photos by installing dropbox on your new phone too.

Both the methods will be a bit slow, but at least you can start the process and let things be taken care of.

\[EDIT\] OP did not want cloud solutions, you can try out Dukto No intermediate required :) There you go
> 1 votes

# Answer
I have the same problems and many more with 4.4.4.

I found the fastest way to transfer pics and files is with a free app from Google Play that is called SEND ANYWHERE. It works a whole lot better than anything else I've tried.

I sure do miss being able to just plug in the OTG to my Moto G XT1034 2298 and a flash drive to dump most any file I wanted into the flash drive. It was so very quick and easy. One of my biggest regrets was the moment I "upgraded" to the Android 4.4.4.
> 0 votes

# Answer
As my own solution does not work for you on Windows (my windows are just for light and fresh air), I can only give you a pointer to some apps I didn't try myself.

On my server, you will find a list of apps to Remotely manage media and files. I'm no big cloud fan either, so in most of my lists I explicitely marked "cloud stuff" as such (so you can avoid it). None of the apps listed behind the link should use the cloud; they rather use your local WiFi network.

Scrolling to the end of that page, you will also find some "cable based" solutions, utilizing ADB – just in case you have no WiFi available.

As we always say to provide more than a link only (in case the page behind it dies – which I hope will not happen that soon to mine), let me name two of the solutions explicitly: WebSharing is pretty popular, and DavDrive should be a decent solution as well.

Feel free to follow up the other links there for more information – it might well be you find something you'd like more, as it provides additional features (e.g. full remote device management ;)
> 0 votes

# Answer
Total Commander for android with LAN (Windows shares) works the best for me.. You can access the whole disk structure of your pc from the phone, copy move delete, if you just login via the phone.
> 0 votes

# Answer
None of the above worked for me. Android 4.4.4 on kid's older phone, needed the videos for his school project. Finally got the files over by sending as attachments via gmail.
> 0 votes

---
Tags: 4.4-kitkat, samsung, mtp, samsung-galaxy-s-5
---


# Question
Title: Share option: How to append into text file?
If I go to share in any app or from selected text (icon with three connected dots), I get some sharing options such as SMS, Bluetooth, WiFi direct, etc.

But I would also like to dump it directly into a chosen text file destination such as /*(the default Android user directory path, different by each version*)/Documents/Shared.txt

I need this for easily storing URLs into a file **without needing to fumble and fiddle around with copying the URL bar and pasting it into a text editor,** which costs a lot of time. The browser usually has a *Share* option.

Additionally, I would like it to be **appended** to the text file, not overwritten. I am also fine if a new file is created each time, because some desktop PC commands can easily put 1000 tiny text files into 1 file, and Notepad++ and some Linux commands also support searching all files in a directory for text, even with regular expressions.

# Answer
> 1 votes
Simpletask does what you ask for. It creates a new line in a todo.txt file.

Personally, I use Simpletask Cloudless and sync with syncthing. There is also Simpletask Nextcloud and Simpletask Dropbox. And if you like it, we should donate to the author (just found this amazing solution two days ago, so I didn't do it yet).

---
Tags: file-management, share-menu, text-editor
---


# Question
Title: Where do I find the minimum requirements for an app?
I was trying to install a new app from Google Play on my computer, but a message told me that the app wasn't compatible with my device. No more information was given.

Can someone please tell me where I can find the minimum requirements for any given app? I want to check what's missing on my phone. Maybe I can fix the problem, assuming it isn't a hardware problem.

# Answer
> 11 votes
The theory is that you should not need to know. When the developer publishes an app there is a manifest.xml file that describes the required capabilities. These can be both hardware and firmware related. e.g. you need a minimum Android version or you need a specific hardware feature like GPS. Google Play then automatically filters which apps you can see and install based on these requirements. The developer can also impose geographic requirements and potentially carrier requirements as well as disallowing specific devices if they want to.

In your case the obvious thing to do is to first check if the developer has a website with any more information. If that's of no help try emailing them the filtering can be tricky and catches developers out. If the developer is at all responsive they should come back to you. It is in their interest to have the app work on as many devices as possible normally, so if there is no good reason for it to be incompatible with your device they should appreciate the opportunity to work out the issue. If there is a valid issue then your question may help prompt them to make the information available on a website or in the description.

# Answer
> 4 votes
As the other answers already state, requirements are stored in the `.apk`'s `Manifest`. There are several tools available to help you analyze this file, as e.g. is described in Stack Overflow's question How to view AndroidManifest .xml from APK file?. Examples given in the answers include:

Then there also are...

...and probably many more.

# Answer
> 4 votes
Look up on APKPure. They list this data at the bottom of the screen. No need to download tools.

As a consumer, I needed to know the version because I wanted to know if my older Kindle tablet could run some software or not.

# Answer
> 2 votes
The simple answer: You cannot.

The expanded answer: You cannot, unless the Developer has specified this on their site. You could also email them to ask them.

The developer uses the manifest file of their app to specify certain hardware or software version requirements for their app - Google Play then uses this info so that it doesn't install an app on an incompatible device.

Some examples of what they could put are:

* Minimum Android version
* Maximum Android version
* Hardware requirements
    + GPS required
    + You need to have an accelerometer
    + You need to be able to use portrait/landscape mode
* Geographic location or Google Account country (which can't be changed afaik)
* Cellular Network Provider/Telecommunication Carrier company

If the app uses the NDK and it is built for armv7, you will need an armv7 device.

# Answer
> 0 votes
The simplest answer to your question would be that the developer has excluded your device from the list of supported devices.

This could due to the following reasons:

* Your phone might be causing some problems with the app. This can lead to the developer excluding your device.
* The developer has excluded devices of certain form factors.
* The developer may be targeting only particular handsets.

You might be able to get details of supported devices from the developer's website.

---
Tags: applications, compatibility, system-info
---


# Question
Title: ADB commands to get the adb version of mobile phone
This might sound stupid, but after reading this post (which seem complete) I still dont see how to get the "abd version" of my android, the output I expect is something like this `Android Debug Bridge version 1.0.31`. I tried (based on this answer)`adb shell` and then `adb version` and I get `/system/bin/sh: version: not found`.

The reason I want to know it is to see if it is compatible with the adb version I have in my desk. Thanks!

UPDATE: Although I could not see the `adbd` version of my android. At the end I did not matter as I could command my phone from my desk using the last release of `adb` here. So thanks all anyway for their contributions, cuz although I did not get exactly what I wanted it help me to reach the a solution to my problem.

# Answer
> 14 votes
First of all, Android since Marshmallow doesn't come with adb binary (client) anymore, but only with adbd (server), for communication with an adb client on Desktop.

In a nutshell, this is how the communication takes place:

* your Android device has *adbd*, a daemon, which is started during boot process, and listens on USB by-default for communication from desktop clients;
* your *adb* tool in your desktop acts as a client and sends request to adbd on your Android, and you get to run adb commands successfully subjected to fulfilment of certain conditions.

If there are compatibility concerns, they would arise if adbd is depreciated or adb client on your desktop is. To see the versions, run:

```
adb version                 // to check adb client version in your desktop
adb shell adbd --version    // to check adbd's version in your Android. Please note that some users reported error with this if executed without root access.

```

You shouldn't be worried about adbd's version but only with adb client version in your Desktop since official adb client is backward compatible.

Now to the localized issues you ended up with.

You incorrectly executed the commands. Nowhere the linked answer instructed to execute `adb shell version`. The correct procedure is:

```
adb version // adb version (client) on your Desktop
adb shell   // launches shell on your Android device through adb client on Desktop
adb version // the version of adb (client) binary that used to come with Android prior to Marshmallow.

```

The last two commands have no relevancy to your question since they intend to ascertain the version of the adb client in your Android. As I explained in the beginning, it is adbd (server) alone which communicates from Android device's end, not the adb binary in the Android. That binary in Android can be used, if available, to talk to other Android devices (USB-OTG, WiFi, etc.) or to the same device if adbd (server) is listening on network too.

Also, when you ran `adb shell version`, it meant: launch a shell on Android and execute the command `version`. There is nothing named `version` which is to be executed, hence, you got the error.

# Answer
> 2 votes
Correct syntax for checking ADB version of Android SDK is

```
adb version
```

When in shell, issuing command

```
adb
```

or

```
adb help
```

will give output of both version and available combinations of options && parameters.

You can not get ADB version of your device, but only properties for which answers in thread you already found is appropriate.

# Answer
> 0 votes
There's often no need to check the `adbd` client version on your phone as it's tied to the Android version. I.e. you can safely assume you get `adbd` version 5.1 on an Android 5.1 device. There hasn't been great new feature introduction since very long ago so different versions of ADB client should make little difference.

# Answer
> -1 votes
here the script that works for me in both cases regardless if adbd on the phone is default (non-root) or insecure (root):

```
#!/bin/bash
clear
echo
echo "if adb runs in user (non-root) mode:"
adb shell "su -c adbd --version"
echo
echo "if adb runs in root mode:"
adb shell "adbd --version"
echo

```

This does NOT work with Chainfire's old & discontinued adb insecure app installed and active on the phone:

```
adbd: unrecognized option `--version'
cannot bind 'tcp:5037'

```

most likely because it applies a very outdated insecure adbd (latest in his package is from api/sdk 21 = Android 5) which does not fully communicate with current Desktop adb binaries.

---
Tags: adb
---


# Question
Title: I can't permanently delete or download files
Whenever I try to permanently delete a photo in my photo gallery, I get a message saying "Can't delete from device." I've tried deleting files by plugging my phone up to my computer, but the files keep coming back sometime later after they're deleted. Not only that, but I'm also unable to download images or apps. Whenever I try to download an image or app it says "Download Pending" even though I have 114 MB of space free. Is there a way to fix this?

# Answer
> 0 votes
I got a similar issue. When I delete photos from the gallery I get a message saying it deleted but when I check the gallery again those are still there. And also When I get new photos those are not saving in the gallery.it's a Samsung J1. finally, I did a factory reset and the problem was solved.

---
Tags: sd-card, photos, downloading, files, motorola-moto-e4
---


# Question
Title: Carrier apps still appear after stock android installation
So I have been trying to install stock android on my phone, but not having the desired result. Before I try on my current phone (Galaxy S9), I've been practicing on an old S6 edge. The phone was bought in Canada, and has the Telus build on it from the factory.

* Downloaded Odin (version 3.13)
* Downloaded the firmware from Sam mobile (specifically, I have picked the XAC, carrier agnostic product code)
* Flash with Odin
* Reboot and wipe cache partition
* Factory reset

But when I restart the phone - BAM! Telus bloatware remains installed.

Any idea what I am doing wrong, and how to do it correctly?

Edit: clarified question

# Answer
Samsung have its own partition `/preload` for its bloatware which is usually not wiped on factory reset
> 1 votes

# Answer
If you really want to remove them, get root access on the phone and install Titanium Backup form the Google play store. Make sure you have unknown sources turned on. Open Titanium Backup, wait for it to set up, then select Backup/Restore at the top. Find the app you want to remove, and select it. On the menu that appears, tap Backup at the top of the menu, so if anything goes wrong you can try to restore it. Then press "Un-install !". After it's done, reboot your phone. If all goes well, you can go back to the list of apps, find the backup you made, and delete it.

!!WARNING!! IF YOU DELETE AN APP REQUIRED BY THE SYSTEM, YOU COULD SCREW UP YOUR ROM AND HAVE TO REFLASH IT! YOU HAVE BEEN WARNED!!

Edit: this probably isn't a good idea
> 0 votes

---
Tags: device-firmware, samsung-galaxy-s-6
---


title: Force 720p Resolution on InForce 6540

text:
# Question
Title: Force 720p Resolution on InForce 6540
I'm working with an InForce 6540 board that has 5.0.2 Lollipop installed.

I am trying to connect a display device that has a max resolution of 720p at 60hz. I am using a micro HDMI connection.

The 6540 detects the display as a 1080p dislplay and uses that resolution.

I tried to change the resolution with adb root.

---

```
adb shell cat /sys/devices/virtual/graphics/fb1/edid_modes
( to check which modes the display device supports)

adb shell setprop hw.hdmi.resolution 13
(or other supported number, checked the .cpp file to see what each number means for resolution.)

adb shell stop

adb shell start

```

---

This did not work, and I tried it on a different display device that supports more resolutions, and it did not work either.

I have also tried the command `wm`, but that only resizes the amount of screen it is currently using. (It scales versus changing actual display resolution)

My display shows static on the bottom half, and on the top, it shows the whole display but cut. The right side of the display is cut and displayed on the left with everything shifted to the right.

Any help would be appreciated. I know this is not a normal problem.

# Answer
I'm running an older version, 4.1.1, on a cheap tablet. On this unit, it's Settings--\>HDMI--\>HDMI Resolution.

HTH
> 0 votes

# Answer
I ran into the same issue on the 6640, the problem I had is that in order for the change to take effect you must unplug the HDMI and plug it back in.

After you call setprop hw.hdmi.resolution try physically unplugging the HDMI display and plugging it back in.
> 0 votes

---
Tags: 5.0-lollipop, adb, hdmi, screen-resolution
---


# Question
Title: ADB does not recognize device (LG X Charge)
I am not able to get adb to recognize my device. Here is my setup:

* USB debugging is enabled under Developer Options
* Use USB Connection for File Transfer (Transfer Documents and media files to the connected device)
* In device manager on Windows 10, under Portable Devices I see LG-M322. I have tried right-clicking on it -\> update driver -\> browse my computer for driver software -\> C:\android-sdk\extras\google\usb\_driver -\> Next. It says the best drivers for your device are already installed. screenshot below

But when I run `adb devices` I don't see my device:

```
C:\Users\me>adb devices -l
List of devices attached

```

I have tried killing the server many times as well as unplug the device and connect it again. I am able to transfer files to the device using windows explorer.

My phone is running Android version 7.0. Build number NRD90U. Software Version M322V10n.

How can I fix this please? I have tried similar posts and tried all the things they mention (the bullet points above).

# Answer
> 0 votes
changing the USB Mode to **Photo Transfer** worked

```
C:\Users\Downloads>adb devices
List of devices attached
LGM322c17168b6  device

```

---
Tags: adb
---


# Question
Title: Does deleting your Android apps data delete your personal files?
I use Redmi Note 3 with Android 6.0.1. Out of 10 GB internal storage, 4.5 GB is occupied only by apps. I see that app data and app cache eat up a lot of free space. I safely delete app cache data.But since that's not enough so I want to delete my app data also. But all my files in my phone are important to me so I want to be sure that deleting my apps data won't delete my personal files. Some of the apps whose app data I intend to delete are Google play services, Google drive, Mi Browser and Google chrome. I am not sure what files does this 'app data' contain and I don't know if there's any method to know that.

# Answer
Clearing an app data DO delete files from your phone. Becuase those files are associated directly with the apps that you are deleting. Any other files which are not AUTOMATICALLY created by the app being deleted will not be deleted when you clear an app's data.

So, go ahead and feel free to delete an app's data. But be careful deleting an app's data actually resets that app into a freshly installed app state. And if you delete the Google app's data chances are that you might lose some bookmarks, history or any preferences you have set previously.
> 1 votes

---
Tags: system-apps, google-apps
---


# Question
Title: No one can hear me on my Galaxy Note 8 Edge! How do I fix?
No one can hear me on my Samsung Galaxy Note 8 Edge when they call me or I call them. I hear them clearly, but I have to race to turn the speaker on before they hang up. How do I fix this problem when it seems my mic works fine when I use an app to record myself

# Answer
Most apps use secondary source to capture audio when the primary source is down. The source switching is automatically done and, in a phone with good memory, might be seamless.

It is highly probable that your Mic (primary audio source) is down. When recording, the app might actually be switching over to secondary source for audio (which might be the loudspeaker). My advice is that you change the Mic of your phone.
> 0 votes

---
Tags: audio, calls, physical-damage
---


# Question
Title: Mac Fails to recognize my Android phone through USB
I installed ADB via homebrew but running `adb devices` returns an empty list. I also tried `system_profiler SPUSBDataType` but I still fail to find my device here. I don't have EasyUSBTethering issues on my system. After connecting to my iMac, my cell phone starts charging, but fails to start USB debugging even though I have turned both "Develop Mode" and "USB Debugging" on. The version of my MacOS is 10.14.4.

There is no problem with the cable because I can USB Debug with it on my PC.

I know this situation seems awkward. Any possibility is welcomed and please feel free for requesting more relevant information about my devices. Thank you in advance!

# Answer
Finally it turns out to be a cable issue - but very weird! On Windows both USB 3.0 and 2.0 Cables are supported. On Mac, however, only USB 2.0 cables are supported. Initially I was using a 3.0 cable and thus by confirming that everything runs smoothly on PC, I directly denied the possibility of cable issues. I wish my sorrowful experience could help prevent some valueless efforts.
> 1 votes

---
Tags: adb, usb, connection-issues, macos
---


# Question
Title: Power empty android (Samsung) - cannot charge
Samsung SM-T580 power became empty and stopped. Connection with charger result in flickering (black) screen with the charge icon showing. I used several cables and adapter. After many hours the tablet still does not power up.

# Answer
> 1 votes
Disconnect it from the charger. Press the power button for 60 seconds and let go. Now connect the charger. Again press the power button for 30 seconds. This way usually works with tabs.

---
Tags: samsung, charging
---


# Question
Title: Will Android be able to install OS updates without Google account?
I am working with android phones at work, we want to remove all google accounts from the phones before we give it to our customers.

I know that the phones are not able to receive app updates, but what about os update from android?

# Answer
> 3 votes
OS updates are provided by the device manufacturer. They are retrieved directly by the device and don't require any user account.

The only requirement for an OS update is a working Internet connection and enough free space on the device.

# Answer
> 0 votes
Adding to the answer Android plans to provide security patch updates through play store in future called project "Mainline", so with advent of android Q you will probably need to have a Google account to install at least security updates. Also Google has been trying hard to streamline the OS update procedure across vendors so you never know. Hope my answer added some value.

---
Tags: updates, google-account, operating-system
---


# Question
Title: what is the meaning of the output of the users list command
I'm using the `cmd user list` command and this is the output I'm getting from the shell.

> UserInfo{0:Owner:13}
>
> UserInfo{23:shalevM:20}

what does the last variable means? the first one is clearly the user's id and the second is the user's name, but the last one is changing from time to time and I don't know what does it mean.

# Answer
The structure of the output is as follows:

> UserInfo{**id**:**name**:**flags**}

Flags are basically bits of information describing the data model's level of access and/or permissions.

You can read some of the code comments on the flags defined in the `UserInfo` class here:

https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/content/pm/UserInfo.java
> 0 votes

---
Tags: adb, command-line
---


title: Error -504 on appliation installation

text:
# Question
Title: Error -504 on appliation installation
Yes. I've read all other questions regarding this problem. Like this one:
Error 504 when downloading apps from Play Store?
It's the same problem as this one but with more background information and an other app:
How to fix installation error -504?

The details:
My device is an Ulefone Be Touch 2 running Android 5.0.

My connection is perfect. To be sure I tried different networks, among them are 3G, 4G and wifi on ADSL, VDSL, cable and fiber. I've also used Tor and 3 different VPN providers in 3 countries on 2 continents. Let's say I ruled the network out.

* A single app does not install: OpenKeychain.
* Currently I have 126 apps installed.
* It does not install via desktop browser \> play store \> install button.
* I have enough free space (40GB). The app is 7MB.
* Re-adding Google account and clearing caches did not work.
* Even a complete device wipe and re-install didn't work.
* Downloaded the apk and tried manual installation, same error.

I also own a Nexus 7 (2013 wifi) and the app installs fine on that device.

# Answer
> 1 votes
I think this is a bug in Lollipop, I found this on another app forum:

> I’m getting the Error Code -504 (INSTALL\_FAILED\_UID\_CHANGED) when installing App from Google Play
>
> Try to erase the “/data/data/appnamespace” directory on your device and try again. This is a “bug” Android 5.0 Lollipop developer preview which was fixed in the final release version.

That (plus a reboot, remove + reinstall of the app and remove + replace of my google account) fixed this issue for me.

It definitely isn't a connectivity issue, and it's nothing to do with a 504 HTTP error.

# Answer
> 0 votes
This is what worked for me:

1) Clear data/cache for for the following apps:

* Google Play Store
* Google Play Services
* Download Manager
* Google Services Framework
* Google app
* Chrome

2) Restart the device

3) Change time and date, then back to the actual time and date.

Source: https://www.asus.com/zentalk/thread-50875-5-1.html

---
Tags: applications, google-play-store, 5.0-lollipop, installation, system-error
---


# Question
Title: I think I broke my phone while trying to root it
I tried rooting my phone a few minutes ago and it ended up erasing my data but now it keeps trying to reboot but it never makes it past the "Samsung galaxy j5 prime" screen. help? is there anything I can do to fix this?

# Answer
> 1 votes
Samsung's are notoriously hard to gain root access on, and many people that own a Samsung prefer to use a separate device with root access.

The main reson is that Samsung's main goal ( in my opinion ) was to create a device that is secure enough to be used by law enforcement agencies.

The main selling point in that direction was a security feature called Knox, .. Knox is supposed to stop any modifications that could expose the devices sensitive data, if you do gain root access, it is usually by removing knox or disabling it somehow.

Usually to do this is to exploit the system and a specific vulnerability that will allow root access.

Gaining root access on a Samsung will disable many features that require a secure device, like payment methods for example.

You need to use a program called Odin to restore your Stock Firmware and then consider either using a different device or using a custom firmware that has root access already.

---
Tags: rooting, samsung, root-access
---


# Question
Title: Fastest way to transfer small files to PC
I am looking for the fastest solution to transfer many small files really fast to my PC from my Android powered phone. For example I would like to transfer 100x5KB data in a second. Is there a way if I use SSD and I have min. 50MB/s internet with 10-40ms ping (I know ping is very important). Also, no cables can be used. So it must be wireless.

I already thought of

* Network file sharing but I think it is not that fast (via WiFi)
* Bluetooth (very very slow)
* Pipe/Socket (don't really know how fast it is)

I will possibly need to transfer XML files and there will be about max. 5 meters between the PC and the mobile device.

Is there a fast way that can be handled with Java?

Thank you!

# Answer
> 0 votes
I use BitTorrent Sync a cross platform sync program using the P2P protocol. The files will only exist on your devices unless you set up a cloud based service to watch your file(s)/folder(s). Send & receive files of any size on any network, encrypted & visible to anyone whom you share the private key(s).

# Answer
> 0 votes
if you are looking for the fastest way to transfer files to your PC, try to use AirMore. With just three steps, your files will be transferred from your phone to your PC. This tool is a big help for me since I started using it.

---
Tags: file-transfer, files
---