text:
How to Unbrick Android Phone Which has No OS, No Recovery? and How to Repair IMEI in MTK Devices?

I think i bricked my phone, my phones model number is "Micromax Canvas
  Spark Q380".
I've no OS installed, No Recovery Mode Installed.
Also fastboot and adb can't recognise my device on PC.
I've tried this :
  http://forum.xda-developers.com/gene...k-rom-t3131362 but it also
  didn't worked.
What to do?? any help please

Can you hear a sound when you connect the phone to computer?

yes i do but when do process of fastboot, then it says mp device found.

I don't get you there! You said no OS, no recovery, so the phone is not powering on, or if so, it is stuck in the splash screen, right?

it also not displaying splash screen. :(

its just blank, or dead.

Ok since you can hear a sound, this means there is a chance to revive your phone

ok so, what should i do??

Your phone's specs say it is powered by Mediatek chip (MT6582M). We need to find if the preloader is still present.

so how to find that??

check my answer and let me know if something goes wrong.

For IMEI repairing on MTK devices, you'll need a tool called MAUI META 3G and BPLGU modem file
This tutorial explains it better.

Unbricking MTK devices is quite simple. You need the stock firmware and the flashtool.

Download the firmware here
SP Flashtool (the tool needed to flash the files)
Extract firmware zip file (I think the flashtool may be inside. If not, download it from here
Install USB Drivers. (VCOM or META drivers needed, get them here)
Open SP Flash Tool and click the Download tab button, select “Firmware upgrade” .
Click Scatter-Loading button & browse to the extracted firmware folder and select MT6582M_Android_scatter.txt file (It is a map file that tells the computer where each files can be sent in the phone)
Now hit the Download button.
Connect your phone to the PC with battery inside by USB cable (Drivers shall be installed)
After the flashing process succeed, a green tick will appear. Disconnect your phone and power it up.

Done.

Ahhh !!! I was skipped to install mediatek drivers, now i installed it and my phone is working like a charm. Thanks :)

Glad that I helped :)

hey wait, all is working fine but my sim is not showing its network. Its in a emergency call only mode.

Check if IMEI is present *#06#

No its not, It says "invalid".

Ok, you need to repair it.

Guide Me Bro !!

As the phone is alive now, edit your question by adding the issue so that I can add another answer with the IMEI repair process

Done, Go Ahead.

First, tell me what is the contents of the unzipped folder, the one containing thr flash files? There should be some files witj another folder

there are only flash files there.

there is not another folder amongst those files?


text:
Android VPN service's policy based routing relative to iptables (specific behavior question, android 5.0, 5.1)
Background:
Several phones, different firmwares
Elephone p7000, Android 5.0 based rom
Xiaomi redmi note 2, three different roms (5.1 based Cyaonogen, 5.0 based AOSP derivative)
Rooted.
Installed a VPN app (Shadowsocks, OpenVPN, reproduces on both)
Now added an iptables rule like that
iptables -t filter -A OUTPUT ! -o tun0 -p all -m owner --uid-owner [uid of an app] -j REJECT
1)
On elephone p7000 (android 5.0) and Redmi Note 2 (Cyanogen, A 5.1) the app now works only if VPN is connected
2)
On Redmi Note 2 (AOSP 5.0 based ROM) app no longer works whether VPN connected or not.
Questions:
a)
where does android VPN service's policy based routing stuff "normally" happen relative to netfilter packet flow ?
b)
Which one of the aforementioned behaviors is the "normal" android behavior?
c)
Is there a way (a clever ip rule trick, perhaps) to re-implement behavior 1 on systems exhibiting behavior 2?
Hope I was clear (not native speaker)
Thank you

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/

sort: votes


text:
Google Play Music downloaded music not storing on SD card
I have a Motorola Moto G3 with a measly 4GB of storage, so I bought a 32GB SD card. I installed it as internal storage. I have a subscription to Google Play Music and spend a lot of time without an internet connection, so I download a lot of music. I set GPM's storage location to the SD card, but when I try to install apps, it says I'm out of storage even though there's plenty of space left on the SD card. I took a look at the storage and GPM is using practically all the internal storage.

I'm also confused because the SD card shows different amounts used in different menus. I need to either get GPM to store on the SD card like it should or get apps to install anyway.
I guess apps can't install if you don't have internal storage free?

I guess you are on Andorid Marshmallow (6.0.x).
When you put that SD card to your device it should have prompted how want you use the new SD card: as a portable device or internal storage.
So I think you have choosed the portable device option.
In this case to use your SD card as internal storage follow these steps:

Make sure you have made a backup from your SD card before the formating.
Go to Settings -> Storage
Select your SD Card -> tap the three-dot menu -> Settings
Select Format as internal -> Erase & Format
Your SD Card will be formatted as internal storage
Reboot the phone *

*: This is very important, otherwise you may end up frustrated with issues like MTP not showing SD card, some apps not working properly, etc.
P.S.: If you are on Android Lollipop (5.1.x) you have to root your decvice and use 3rd party apps to move app data from internal storage to external storage (SD card).

I definitely set it up as internal. I put a screenshot to show.

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
How can you tell if a notification is expandable or not?
I've been loving the new expandable notifications ever since I discovered them by accident. However, I've just found out that according to the comments on this question: "Is there any way (as a user) to force all notifications to be expandable?", that whether a notification can be expanded or not varies by application.
Since expanding doesn't always work first time, but usually works depending on where your finger lands, how can I tell without trying to expand a notification 10 times if it's even possible to expand it in the first place?


text:
Google's android products are still going to phone storage
I have changed my android device's default app storage as memory card using adb shell command. It is working fine for most android apps. But when download and install apps that google such as Hangouts, Gmail, etc. They go to phone storage. How to fix this?

Many apps require to be stored in internal storage. This is by design and it cannot be changed. Most of the Google apps such as Hangouts and GMail cannot be stored to external storage (i.e. SD Card). So whenever you download an app that requires internal storage it will be stored in internal storage regardless of your app storage setting.
P.S. Developers prefer internal storage as external storage is generally slow to read and affects the performance negatively.


text:
Delete one of my google account from marshmallow
I have 3 linked acccount on my phone for gmail,
I want to access one of the account from destkop only and don't want to link that account on my phone,
How do i completely remove that account from my phone? what are the steps?
When i click on remove account, it goes to browser login, will it completely remove my account or it will remove from phone only?
I dont want to completely remove it.

Once, you click on remove account, it will lead you to a browser page where you have to log in with your account password. It will warm you that the following information pertaining to that account will be deleted from your device. Follow the steps to delete

Deleting the account affects only your device and you can still access it from desktop

The only way to sign out of the Gmail app is to remove your entire account from your phone or tablet.

See "Remove your Google account from your device" section, which says

Removing the account from your phone or tablet won't delete the account itself, so you'll still be able to use it on a computer or other devices.

(Emphasis supplied)

Please follow the below steps to delete extra account you added into your Gmail app on Andriod phone :

Go to setting
Search the tab named : "accounts" there look for
"others accounts" and click on it
there look for "others accounts" and click on it
you will see the "other" tab
then search for "Google" click on it for more into setting of it
there you will see the "more" option click it
you will have 2 options "Sync now" and " Remove account"
Please do select the remove account which ever you want to remove.

Hope this will help.


text:
How to use Network Time Protocol (NTP) on Android?
Is there any way to sync time using NTP with a time server such as NIST Internet Time Servers on Android?

ClockSync accepts any given NTP server you input and syncs your device time with it. The app itself is not new but works fairly well to this day.

FYI: the app is not available on the Play Store anymore, future readers won't be able to download and use it (you may still be able to see the entry on the Play Store if you have installed it before).


text:
List of domains used by Google Maps API Family (Firewall Config)
our corporate config firewall to allow Android Phone use
App to Map Location , our programmer use fused location provider API (GPS, Network etc) to Map , but the Phont is in the internal network,and deny access the internet , except for a few allowed sites (white list, *.google.com) and internal network,
we need the IP addresses/Domain List or range of IPs that Google uses for this domain. Is this information provided anywhere ?
we check on https://developers.google.com/, but can not found any thing we need. we search some forum , get some ip & domain but not sure its work,
◦mt0.google.com
◦mt0.googleapis.com
◦mt1.google.com
◦mt1.googleapis.com
◦khm0.google.com
◦khm0.googleapis.com
◦khm1.google.com
◦khm1.googleapis.com
please help and thank you.
by Lain
drupal2018@gmail.com

Did you find answer for your question?


text:
Unable to flash TWRP recovery on nvidia shield tablet 6.0.1
I have TWRP Recovery file in the same folder as Minimal adb anf fastboot. The '.img' file is not flashing and i'm shown the options as attached in the screenshot of the command prompt. What to do?
P.S. - I'm a beginner.

What does fastboot boot <filename> do?

It flashes the TWRP file


text:
OnePlus 3 - 2G (GSM) network not working - Selected network (o2 - cz) unavailable
I have a weird Issue with my brand new Oneplus 3. It's not connecting to 2G network, or it connects, but calling/data does not work.

when switching from 3G to 2G, it registers to network, even shows Edge sign, but calling and data is not working
when switching from 4G to 2G, it even does not connect
It can be seen on a video I made - https://www.youtube.com/watch?v=CPlk8EEQsPE

What I have tried:

5 SIM cards from 3 different operators. All have the same problem, except T-Mobile, which was able to make a call once in +-10 attempts
flashing various versions of Oxygen OS (3.1.x, latest 3.2.7); flashing CyanogenMod latest; eflashed whole phone by Oneplus support using MSMDownloadTool
hard resets, ##4626## menu settings etc...

Nothing works. Could not find anywhere on the internet much more solutions to this.
Guess it's hardware issue fro RMA?
Anyone else encountered this issue?

This has all the symptoms of a hardware issue. I would get in contact with OnePlus customer support and ask what they can do for you. Since the device is new, they will likely replace it.

did exactly that... but kind of don't want to be 2 weeks without my phone, so still looking for some other solutions, till they send me some delivery pickup label or smth...


text:
How to get back if rooting or loading Cyanogenmod fails?
I have an Mi Pad. I hate the UI & also hate the amount of memory it uses.
I am planning to root it & load CM on to it. However, it's a fairly new tablet & still under warranty. Also I have never used CM before. So I want to be able to easily get back to the original OS without having to download stuff & try to install it again. This is my first time ever trying to root or try custom ROMs ever.
So what do I need to do to get back to my original OS/ROM easily?

You should be aware that the first step involves unlocking the bootloader will likely void the warranty and will automatically run a factory reset on the device, so you can't get it back to the original state, per say, but you can recover the original OS.

@EthanZ - ok - then I should probably wait till the warranty period is done. But even then, is there an easy way to get back the original OS?

Yup. Go and Google nandroid backup. You'll find much more info than I can stick in a comment.

And to note @EthanZ (who is right, btw) Always make nandroid backups, unless a better solution is in use. saves a lot of time.

@EthanZ - it seems that Mi Pad comes with an unlocked bootloader - so what does that mean - is it easy to get back to the original state?


text:
How do I export all contacts (names and phone numbers) to a text file on SD card offline?
How do I export all contacts (phone, SIM) with phone numbers to a text file on SD card? Without Google, without connected computer, without network. Just save everything to a text file.

It is function integrated into build-in Contacts app.

Open Contacts
Switch to "Contacts" tab
Press the tree-dots button at the bottom
"Import/Export"
Export to storage
Check all checkboxes
Check file like 00002.vcf

This is a vCard file. One can manually open it in a text editor and search for contact names and phone numbers even if no special program for vCard is installed.

If you're looking to export all contacts to a single file, I recommend Red Rock Backup Contacts, which exports to Google CSV, Outlook CSV, or a custom CSV. It has no builtin restore feature, so you might need to connect to a network to restore them again with Google Contacts.
If you don't mind multiple files, I also recommend OBSS MCBackup, which exports to vCard (one file per contact) and does have builtin restore.
Both of these are easy to use and are free, and both of these apps export files that can be imported into most contact managers (not just Android ones).
Note that files created by these apps, like all Android files, are subject to a bug where you may need to restart android before they are visible over MTP to transfer to your computer.


text:
How to encrypt full device on Android Nougat?
I have an LG V20 but I can't find the setting for full device encryption. There is a setting to encrypt the SD card. However, I'd like to also encrypt any memory on the phone itself.
Is this possible in Nougat?

Nougat doesn't offer that feature anymore. It offers direct boot which is  covered here

The encryption was never "full" - only user data and cache partition. The system itself was never encrypted.

Head to Settings > Security > Screen Lock and tap your current screen lock. If “require PIN to start device” is an option, you’re running full-disk encryption.
If you’d like to convert to file-based encryption, you can do so by enabling Developer Options, then heading into Developer Options and tapping the “Covert to file encryption” option. Keep in mind that this will erase all of your data, effectively factory resetting the device!
Here is the full tutorial from howToGeek.

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Otherwise, your answer becomes useless in case the link dies. For further hints, please see: How do I write a good answer.

I updated the answer.

There's more information about Nougat's encryption in the security section of this Ars Technica article.


text:
Link headphone volume to master volume
I have already asked this question on Stack Overflow without much luck so far, but I figured it might fair better here.

I have an Android TV (Philips 49PUS6401). I want to connect a surround sound system to it which is much better quality than the built-in speakers even when only being used in stereo.
However, this TV separates the volume control for the master output and the headphone output, the result being that even with the in-TV speakers turned off, the volume keys on the remote do not adjust the headphone volume (which I'm using as a line out).
I am planning to write a simple app to adjust the headphone volume whenever the master volume is changed, but I can't seem to figure out how to get or set the headphone volume, as the audio manager deals with streams rather than outputs, so the only value I can get from it is the master.
How do I go about finding a way to get/set the headphone volume? I have got shell access through ADB, but I cannot get root.
For reference, the TV is running the latest firmware, which is Android 5.1.1.
I know that normally Android doesn't allow control over individual audio devices but instead uses streams, and Android's hardware abstraction layer (HAL) takes care of the routing, but somehow the manufacturer of this TV has been able to split the audio and feed it out of the headphone socket and a second output simultaneously. This issue has been quite heavily commented on in forums.
For the time being, I'm just looking for a way to access it over ADB, but long term I'm planning to write a simple app to link the volume of the main output to the volume of the headphones so I don't have to delve into a submenu (which upsets Kodi media player) in order to change the volume.
So, either ADB commands or the relevant section of the Android API would be welcome, I've already looked at:

AudioManager
AudioSystem
libaudio

and gone digging in the filesystem, I'm guessing that what I want will be hidden in the /dev part of the filesystem which I can't get at without root, but I would be glad to be wrong.

We can't help you with the Android API, as this isn't a site for programmers, but if there's a way to do it with ADB I'm sure other users will be interested in that.

if i ever figure it out and make an app to do it i was going to release it on github.... no sense going to the effort if i'm the only one to benefit, so far i've been able to side load apps on my TV (which all the forum posts i found said couldn't be done?) with two lines using adb... FWIW I can get and set the main speaker volume using ADB, but not the headphones...

You may try the app Smart Volume Control. I'm sorry if this doesn't make sense, since I don't know if we have to use a different sdk to compile app for TVs.. Just thought of telling this

I am trying to follow your question but I am having difficulty imagining the problem. Are you saying that when the TV is off the volume of the Android phone can't be increased for your surround sound speakers?

it is an android smart tv, which plays the audio through the tv speakers and the headphone socket simultaneously, with a separate volume control for each, i want a way to link the volume controls together so when i use the buttons on the remote(which only controls the speaker volume) the headphone volume changes with it

Damn, I'm having the same TV, is there anyway to fix this?
It's really annoying, i can't control my speakers, and the TV's default speakers are horrifically bad.

Sorry but not that i ever found, i did work out how to get the main volume level, but i never figured out how to manipulate the headphone volume level progamatically, my guess is you need something that can communicate with the bits of ALSA that are present, but i never got that far

You can look at things like ARC recievers or hdmi switches that implement the ARC function to break out the audio, this will then change volume with the main volume

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
How to get adoptable storage back after factory reset?
Hi I've done a factory reset on phone, accidentally, don't ask how :D
So i had 50% of sd card adopted now after reset there is only 50% with media files adopted partition is gone, how to get it back?

After SD card format it appeared in full size, so I can split it up again. Sorry for hasty question..


text:
Cannot root HTC One
I am following this tutorial to root my HTC One M7:
I fill the form htcdev.com as described to get the file Unlock_code.bin sent by mail.
However, when entering in FASTBOOT mode
# fastboot flash unlocktoken Unlock_code.bin

I have a positive output on my terminal (see below) but nothing happens on my phone: I am still in the boot menu:

whereas I should get a screen with a message "Unlock bootloader?" directly after entering the command:

Where am I wrong and how to access this menu?
Terminal output
# fastboot flash unlocktoken Unlock_code.bin
target reported max download size of 1514139648 bytes
sending ‘unlocktoken’ (0 KB)…
OKAY [ 0.141s]
writing ‘unlocktoken’…
(bootloader) unlock token check successfully
OKAY [ 0.004s]
finished. total time: 0.145s

Fastboot Version
# fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.61.0000
(bootloader) version-baseband: 4T.35.3218.16
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: ##########
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: ############
(bootloader) imei: #############
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: #########
(bootloader) cidnum: #########
(bootloader) battery-status: good
(bootloader) battery-voltage: 4254mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: ##########
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.041s

This menu appears when you hit enter, I have no idea why nothing is happening to you.... Dumb question: Do you have the unlock token within the Fastboot folder?

Thank you for your help! No, the unlock token is in ~/Downloads and I am using fastboot installed with apt-get install fastboot on Linux. I should definelty try Windows.


text:
"Device located,Android Device Manager located this device" How to turn this off
Whenever I access Android Device Manager page I get a notification prompt on my phone saying:
"Device located, Android Device Manager located this device"
I really don't want this to show up. In case someone steals my phone, I don't want them to know I know where they are located.
I just want to be able to mute this notification on my phone.
I went through the steps to turn this notification off in the app manager. The "Show notifications" is turned off, however, this notification still pops up on my phone every time.

It cannot be turned off, you would have to use something like Where's My Droid to not receive a notification.

In Settings app, go to Sounds and Notifications, then  scroll to App notifications, click on it, then go to Google Play Service, click on it, then click on Block all.

I've tried this on Nougat (Android 7) and it works if you change the "Importance" of the Google Play services notifications to Level 1. On my OnePlus 3, I swipe the notification a little bit to the left or right until the "settings" cog appears and then I click on this.
To make this ("Importance") available, I think you have to go into System UI Tuner in Settings, tap Other, tap Power notification controls and then turn it on.
I'm assuming that the Google Play services notifications include more than just this notification so I'll keep an eye out for notifications that don't appear on the lock screen or the status bar but do appear at the bottom of the notification list. I tried setting the importance of the "Device Manager" notifications (instead of the "Google Play services" notifications) in Notifications in Settings but it had no effect.
It'll be a right pain if important notifications are generated by the same notification service because then I won't be able to suppress only the "Device located" notifications.
Alternatively, tap on "More Settings" in the notification settings and select "Don't show notifications at all" for the "On the lock screen" setting. This doesn't need Power notification controls to be on.


text:
SD Card installed and still saying insuffisient storage
trying to update apps and it tells me i have insufficient storage. We bought a 64 SD Card and tried again and it's still saying no storage.  Does this SD card not work for apps??

The answer to this question varies a lot based on your Android version and device, in some cases you must manually move apps and data there, in others you must adopt the card as internal storage. Please update your question to include your make, model, and Android version.

Have you gone into Settings then Apps and then clicked on the Apps you want on the SD card and moved them to the SD card? Some Apps can't be moved.

If you really want to place apps on sd card you should use apps2sd or link2sd app. Moving apps to sd car from app manager in settings doesn't actually move apps it moves just some files of them.
If your phone is running android marhsmallow (6.0) than you can 'adopt' an sd card so you can really move apps to sd card but beware if you have some slower sd card you will most likely have performance issues for obvious reasons.
Also did you tried clearing per app cache, that can free-up some memory.

Download a Trashhandler like Clean Master lite and let it run, then you should save a lot of Storage space also you can move Files like photos and Downloads to your SD card


text:
access device thow adb with USB debug off
I have an acer iconia tab 7 and the touch screen is dead.
It as no custom recovery, root or custom rom.
I was able to factory reset him throw the factory recovery but now im just stuck on the "select language" menu.
I know that by default stock roms bring usb debug off.
Im running debian 8.6. How can i turn it on so i can use adb?

As far as I know there is no way to turn adb on in this case.
But if your device support OTG you can try to use mouse to select all necessary things (may be on your device it will work before final settings of Android system will be accepted (language and other))

doesnt support OTG


text:
Duplicate Notifications for Multiple Apps
For some reason I have been receiving duplicate notifications for many apps that offer push notifications (Amazon, Xbox)
How can I find out the cause of this issue?
Here is an example of the problem

The first one, with the Amazon "smile" is clearly from your shopping app. The second may also be from Amazon, at a different phase of the fulfillment process. If you long-click on the "duplicate - which is clearly a different message", the AppInfo may lead you to the source of the message.

They are both the same message. The first one is just expanded. I only have 1 amazon app. The same thing happens with the Xbox app and a few others

You can try the app mentioned here. By looking at the source / time stamp you can get an insight. It could well be that the Amazon app is sending twice- time stamp should clarify. If the source of different, this app may also help

@Bijan did you ever get this solved?  I've had the same problem with a handful of apps.  I used a notification logger/inspector and the only difference between the notifications is a very slight change in the timestamp.  Every other detail is identical.

No, I believe it resolved itself for me


text:
WiFi doesn't work when SuperSU 2.72 binaries are installed on Android 7
Since a few days I have Cyanogenmod 14 for my Samsung SM-G900f. I want to use some apps by Chainfire but they all require his su binaries so I tried to install it via the SuperSU app, which always fails, and via TWRP, which then worked.
After flashing it I noticed that I when I turn on WiFi that it just scans but nothing appears; even the already saved networks won't show up. I also tried connecting via WPS pin and WPS push, but it just gives me an error message.
Does somebody have any idea what the cause might be?

Try the latest SuperSu Beta: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

It didn't work. Same results.

Better you uninstall SuperSu app and binaries and use CM's Default Root Access (from Developer Settings) till the issue is fixed..

On 30 Nov, 2016, Chainfire Releases SuperSU v2.78 SR5, Fixing Some Nougat Bugs

Today, he has released yet another update to SuperSU, and this one focuses on some Nougat related bugs again. In a Google+ post, Chainfire tells us that some scripts and services weren’t able to be executed thanks to some modifications SuperSU makes to SELinux and the stricter service execution rules in Nougat. This didn’t happen on all firmwares, but this did lead to Wi-Fi, cellular, and other modem-related features not working on some of them (like the Samsung Nougat beta and CyanogenMod 14.1).
[...]
You can download the new version of SuperSU here, [...]


text:
Lost time and weather app
Lost my weather app and absolutely want that version back. Have scrolled through 500! versions in play store and others but can't find. Is there a history of what I had and deleted so that I might reinstall exact version? Thank you.

Yes, there is a list of all apps that you have installed from Google Play.
Go to Google Play app → Apps & Games → My apps & games → ALL.
Note, that you will not find there the apps that were pre-installed on your smartphone by the manufacture and that are not available in the Google Play store.


text:
Error 497 in Play Store when trying to download specific apps?
I got my new Oneplus 3 today, but as I was trying to download certain apps (PvZ: Heroes, Whatsapp, and I'm assuming some more that I haven't tried yet), I would get the error "'App Name' can't be downloaded. Try again, and if the problem continues, get help troubleshooting. (Error code: 497)." For some apps (PvZ) the error pops up before it even starts loading the download. For others (Whatsapp), the download is mid-finished when it suddenly pops up and stops it from completing.
I tried downloading the same apps on my old phone (Samsung Galaxy Grand Prime), and even though I already had some of them installed, I couldn't update them. I tried on my friend's phone (Sony something), and it worked just fine.
I've tried looking online, but the only answers that I can find are "Uninstall updates for Play Store" or "Reset your phone to factory settings". I've done both of those things. My phone was in its factory settings literally half a day ago. What is happening, and how do I fix it ASAP? Also, why did it suddenly start happening on my old phone too? Any help is appreciated.


text:
Samsung galaxy J1 dialing pad shortcut
Is there a way to go straight from the home screen using a shortcut, directly to the dialing pad/phone keypad, without first going through phone > keypad ?
Ideally I'd like this shortcut to be in the shortcut bar at the bottom of the home screen rather than one of the home 'pages'.

You can try Quick short cut maker. Scroll through the system app activities and of you find the activity that launches keypad, simply create a shortcut and place wherever you want. Let me know if it works to post as an answer


text:
Firefox Android adding random strings to attached file names
Firefox Android is adding 'tmp_random number-' in prefix and '-random number' in suffix of the file name I attached to any website. I have tried Gmail and a number of website but it's changing my attached file name on all websites from 'Alam Resume.pdf' to 'tmp_123456-Alam Resume-1234567.pdf'.
I have double checked the file name of the file in question and found it correct. I even tried attaching different files but the issue is still there but when I use desktop browser to send same files it didn't add any number to the attached file name.
My Firefox Android version is 49.0.2
Android version is 5.1.1
Attaching files from ext SD Card

You are asking an off-topic question. Please read On-Topic, How do I ask a good question? and What types of questions should I avoid asking?

Please read the android tag you included ...

Since it was about Firefox, I thought it would be better suited in SU but I was wrong. Thank you for pointing out the issue!


text:
Command error by running "fastboot oem unlock"
I am unable to use the following command on an HTC One M7
# fastboot oem unlock
...
(bootloader) [ERR] Command error !!!
OKAY [  0.001s]
finished. total time: 0.001s

Why do I get this error and how to unlock my bootloader?
In addition
# fastboot flashing unlock
...
FAILED (remote: not allowed)
finished. total time: 0.000s

What device (and Android version) do you have? Without further information we can't know for sure why you're getting that message. It's possible that you need to use fastboot flashing unlock instead as this is the new version of the command.

You don't unlock an HTC phone like this - in fact most phones can't.
Provided yours is unlockable (i.e. not an AT&T/Verizon variant), you need to sign up and apply for unlock here and use the token you acquired to complete the unlock process. The site itself will walk you through thoroughly.


text:
Can an app with root permission access another app data?
I have an rooted android phone and use root apps like greenify regularly.
Recently i have installed my Bank application on my phone and the bank application is not allowing me to login as my phone is rooted. Even in last pass also it gives an warning that it is vulnerable as my phone is rooted.
I wanted to know whether one app with root permission can access other apps data.
For Example:
I have given complete root permission to greenify and can greenify access the stored files on some other application just like lastpass(I haven't given root permission to lastpass. I knew lastpass encrypts data on client side too. But i wanted whether it can access the data irrelevant of its encryption ) .

Yes, ofcourse. Basically, the root user has complete access to the /data partition, where all app data is stored..

Yes -  if you grant it root privileges, it can Theoretically access any other apps data ( granting / denying is by "Superuser or Su" which is used to manage applications which are allowed to gain root access). That is a con of rooting. But if the data is encrypted it shouldn't be able to unless it is a rogue app which is capable of doing so
Aside, if you want to bypass bank app restrictions, you can try measures suggested here Get around an app that won't work on rooted device. Also see other Root Hider apps thanks to Izzy for pointing that out
Detection of root is done on the app as explained here Root detection by server or app ( do read the comment of acejavelin in case you are planning to hide root)
Also see How do I protect my phone from malicious apps once it is rooted?


text:
How /system/xbin/su works?
I used TWRP for installing the su command, and I installed SuperSU app from Google Play. It works.
The question - how su command works? It hasn't s-bit, so it can not change eUID. In what way it gets root's permissions?
shell@mako:/ $ id
uid=2000(shell) gid=2000(shell)
groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

shell@mako:/ $ su

root@mako:/ # id
uid=0(root) gid=0(root) context=u:r:init:s0

root@mako:/ # which su
/system/xbin/su

root@mako:/ # ls -l /system/xbin/su
-rwxr-xr-x root     root        75348 2016-10-29 22:31 su

root@mako:/ #

What exactly are you asking or what problem are you trying to resolve? su is the Substitute User (sometimes switch user) utility that lets you change the active session's owner to root. If you want to see how the executable itself works, why not look at the sample How-To code? https://github.com/Chainfire/libsuperuser

I know, how to use it. I do not know, why it works. On linux eUID could be changed only by programs with 's' bit. On my Android device 'su' command doesn't have 's' bit, but it works. How?

Chainfires explanations: https://su.chainfire.eu


text:
I forgot my phone PIN plz help?
i forgot my Huawei g6 u10 PIN and i try too much time to open it but i'm not success to open it and i search about forgot-ting password on internet they said press volume up and power button in the same time and thing a logo will ...the logo is come for me and the option is not come me i think there is 4 or 5 option there is saying me(check sd update pkg is exist...make sure USB cable has been inserted!usb update starting...)plz help

Welcome to the Android Enthusiasts! Please check our locked-out tag-wiki for some first aid.

If you have root access and TWRP on your device it's quite simple:

You have to boot up into TWRP than start the (TWRP's) built-in file manager, navigate to /data/system and delete password.key and/or gesture.key and reboot.

If you have root access but TWRP not installed and you can access to FastBoot mode you can boot up into TWRP recovery with this:

fastboot boot twrprecovery.img

But it is just a temporary method.
Or if your device isn't rooted or there is no way to install TWRP on it, you have to hard reset (HR) your phone from the original recovery mode* or if you have an active internet access on your device and you activated ADM (Android Device Manager) you can add a new password to your lockscreen:

On a computer or other mobile phone, visit: google.com/android/devicemanager
Sign in using your Google login details that you also used on your locked phone.
In the ADM interface, select the device you need to unlock (if it isn’t already selected).
Select ‘Lock’
In the appearing window, enter a temporary password. You don’t have to enter a recovery message. Now click ‘Lock’ again.
If it was successful, you should see a confirmation below the box with the buttons Ring, Lock and Erase.
On your phone you should now see a password field in which you should enter the temporary password. This should unlock your phone.
Now, before you go on with your life, go to your phone’s lock screen settings and disable the temporary password.

*: If you do this all of your data will be purged, of course security reasons. So it must be your decision.

Have you tried a hard reset? If not, I would recommend trying that via the recovery. If you cannot, try using adb to reset it.

I think he can't even boot into recovery mode to do a HR. But if his phone is rooted there's another way too.


text:
Random Crashes On Nextbook Ares 8
I need help. My Nextbook Ares 8 (NXA8QC116 5.1.1 Lollipop) keeps randomly crashing when I am on it, although when it is plugged in, it doesn't crash. HELP PLEASE!
NOTE: Now it does crash when it's plugged in.

What do you exactly mean by randomly crashing? please explain the crashing

I mean that after a while of it being on, it turns off unexpectedly even though it's not dead.

May be your battery is dead as this doesn't happen when it is plugged in.

When I turn it back on, it still has charge. So that can't be the problem.

Did you try resetting it? (you'll lose your data though)

I refuse to reset it. Although, maybe downgrading it to 5.0 might work. Do you think it might work?

I don't think so since the problem may be on hardware side... Or try clearing the cache. But I'd recommend you reset it. Just backup your data.


text:
Moto 360 won't vibrate with oneplus 3
I have a 1st gen Moto 360 and recently switched from a nexus 5 to a oneplus 3. My watch won't vibrate for new notifications or calls since then.
I did a factory reset and paired them again, didn't help. It buzzes when switch it off or on, so the hardware seems to be okay. I can't find any setting on the phone or in the android wear app that can affect this.
Versions:

Nexus 5: Android 6.0.1 with up-to-date security pathes, I no longer have access to this phone
Oneplus 3: OxygenOS 3.2.7
Moto 360:

android wear: 1.4.0.2580363
google play services: 9.8.77 (560-135396225)
adroid os: 6.0.1

Update, after a few system updates and restarts it's back, but very weak compared to the time it was paired with the nexus5. OP3's vibrate is weak too, so that may be the cause.

Something to do with Alert slider??

@beeshyams I'm afraid not, it's in the lowest position (normal mode)


text:
Rear microphone not detected
I purchased a few lapel microphones to test out for recording my talks at conferences using my android device. These mics are all mic-only devices, not headphone or head-set units.
The issue is that the microphone, when plugged in, will be detected by the OS as ear-phones/headset on some older devices like an S4, while on newer devices like the G4, it will be seen as 'Microphone'.
The issue is that in the app I'm using, the only microphone that gets picked up is the front mic (the mic on the phone) and never my plugged-in microphone. There is a setting in the app to choose which mic to use, I select Rear Mic, but it says it will only be used, "when detected".
This is my problem, it doesn't seem to be detecting anything. If I plug in headset (ear-buds with a mic), I can record from that mic no problem.
How do I configure the OS to recognize the lapel microphones so I can use them?
I have tried a few adapters that came with the mics, nothing worked. On the G4 the only difference I saw was that using an adapter would make it see a headset or microphone, but the result of not picking up audio from the mic was the same.
I've tried 6 different microphones and yes, they were all intended to be used on android/ios devices

From the following article, it could be due to need for an impedance (a resistor) between the Mic and the Ground wires. As per

The trick in detecting the external microphone on the smart phone is
  to have right impedance between the mic pins. Samsung phones seem to
  require a microphone with impedance of around 1.0k – 1.5k Ohm. Some
  other devices might also work with somewhat higher resistance values
  (1 kohm to few kilo-ohms).

I don't think it's a matter of altering the OS as detection is probably reliant upon the physical/electronic components used.
The article explains that there are two standards used for 4 pin OMTP and AHJ. It also has links to some articles about how to connect (aka DIY wiring/rewiring).
Here's a link to the article.
Android device external mic wiring
I don't think that it's a matter of changing the OS, rather catering for the specific components used.


text:
Problem with usb connection (MTP)
Hi I have very weird problem, when I connect to PC via USB I get two partitions Internal storage (or adopted depending which one is primary) and external storage, when I open external storage there is nothing not even the folders but when open internal storage there is a files from external partition and internal merged there is folder from internal and external memory, also there is folder called 'storage' with sub-folder 'emulated' with sub-folder '0' I don't get it what gone wrong? One more thing when I paste something in internal partition it goes there the same happens with external partition? I tried clearing cache, clearing data and cache for Media storage an External storage, please help!
This marked as duplicate doesn't help me I've have written that I tried that and it didn't help, I've tried everythimg from answers of question but still nothing.

Possible duplicate of http://android.stackexchange.com/questions/134230/sd-card-not-showing-files-when-connected-to-pc/134235

@acejavelin It's not I've allready tried that and I wrote it in question, read the question before marking it as duplicate and in my case on one partition is showed all files form internal and external.

Please update your question with make, model, Android version and if storage is internal or portable (look in Settings - Storage, is the SD card listed under Device Storage or Portable Storage). Note in the other question referenced, there are additional things mentioned besides just clearing Media & External storage.

@acejavelin you don't understand me, all storages are showed in internal partition (when connected to pc via usb) both device + portable or adopted + portable.

And without knowing more, there isn't much anyone can do to help you. Your statements are confusing and conflicting, you cannot have adopted and portable storage. I requested information that is critical to assisting you and to determine if more information is needed, but you are not providing it.

authors: Једноруки Крстивоје


text:
How to share internet via Wifi hotspot/USB tethering on Xperia SP?
I am unable to share my mobile internet connection via Wifi hotspot or USB tethering to a laptop. When enabling the Wifi hotspot, the laptop connects to the Wifi just fine, but whenever I try to access a website on the laptop it ends in an error; on the phone it works fine. Same issue with USB tethering: The laptop connects just fine, but internet itself isn't shared.
Now I've isolated the issue as coming from the phone itself:

internet works fine on the Sony Xperia SP
same SIM card on a different phone: sharing internet connection works fine (the type from the phone company was adamant they can't block this from their side)
connecting phone to home Wifi and sharing that internet connection via USB tethering to a laptop works fine
using a different SIM card on the Xperia SP and I still can't share the mobile internet connection

The only thing that comes out of it is that for some reason the Xperia SP somehow is incorrectly configured and doesn't share mobile internet access via Wifi/USB.
Which settings should I check on the Xperia SP to ensure that sharing mobile internet connection works?

Please check whether `Android System'  is permitted to use Mobile Data or wifi.(goto settings > app check in system apps)

@RahulGopi The permissions that I see for Android System and that seem relevant are: change network connectivity, connect and disconnect from Wi-Fi, full network access, view network connections, view Wi-Fi connections. Seems to me like it is permitted to use Mobile Data or Wi-Fi...


text:
Kedacom USB Device doesnt work with fastboot Nexus 5x
Trying to flash TWRP and root my Nexus 5X.
I'm running the N 7.1.1 preview.
I've got the adb and fastboot files downloaded and allegedly working
adb devices

and
adb reboot bootloader

work as they should.
The Android bootloader info shows that I'm in FASTBOOT MODE, SECURE BOOT is enabled, and DEVICE STATE is unlocked.
But
fastboot devices

doesn't list anything at all.
I'm running windows 10, and when viewing Device Manager, it shows my bootloader-ed nexus 5x as a "Kedacom USB Device" and "Android Bootloader Interface" in the sub list.
But, it won't allow me to replace the drivers with the Google USB Driver, it doesn't even recognize the driver files in the extracted google driver files I downloaded from the Android Studio software.
Not sure what the issue is, but I'm thinking it's an issue with the driver on my end, but then why did the adb half of this work by default?

As for my phone (Xiaomi Mi5) the cause of this problem was driver. I couldn't delete driver and istall another one because Win10 install driver faster.
The decision was a changing OS on to Ubuntu or Windows (7, 8.1) than device was not recognized. And install drivers from Android SDK.

I've got a Debian laptop I can use, I'll see if that works. Thanks.

Yup, this solved it completely, linux saves the day again.

after many attempts of uninstalling and reinstalling blah blah I managed to get it working by going device manager > right click kadeacom interface > update > browse my computer > let me pick
then I noticed there was nearly 5 different options (probably from previous installs and such) so saw one listed as 2014 so thought let's give that one a go and it worked! it replaced the Kaedacom with just a general "Andriod device".
So my suggestion to you or anyone coming along this in the future is do the above to load a previous driver you have installed or if you haven't had one before see if you can find one online.
Made an account just to say this so hope it helps someone haha


text:
Device goes into bootloop
My device goes into bootloop, and I don't know, why this is happening?.
Device Details:

PHONE:  Samsung Galaxy Core Prime SM-G360HU
Recovery:  TWRP
ROM:  CM12.1
Android Version:  Android 5.1.1 Lollipop

I think, this happened, when I changed the theme of the device. After that, the device powered off due to low battery. Then, I charged the device, and powered it on, and it goes into boot-loop.

go to recovery mode and try cleaning cache

Nope.  This doesn't work for me.

I accidentally found the solution
Since, doing a Factory Reset (wiping Data, Cache, and Dalvik) does not solve the problem, I also wiped the System partition of the device.
So, that would be, wiping Data, Cache, Dalvik, and System.
After wiping, download your stock ROM (in this case, CyanogenMod), and place it on your SD Card, using another device.
Then, go into Recovery Mode, and flash that stock ROM on your device.
Reboot, and everything should be fine now.
You might, as well, want to install GApps for your device.


text:
Lollipop plays call notification ringtone instead of notification ringtone when a text is received
Device: Motorola Moto G4 Plus
First of all, I set a custom ringtone for the calls. That works as intended. Now the issue is that custom ringtone is played whenever I receive a text as well. I expect the notification ringtone to be played whenever a text is received.
How can I fix it?

Turns out the Messenger app has its own notification setting. Google has an article where to access the setting(s).
https://support.google.com/nexus/answer/6080337?hl=en


text:
access xperia z1 compact with broken screen?
My Xperia Z1 compact runs CM12. Unfortunately it has fallen on its bottom left corner and the touch screen is completely unresponsive. The cost of a replacement screen is more than a new phone with similar specs so I bought a new phone.
Now I am trying to get access to some files that are on the internal SD card (loads of contacts that I don't want to re-type, but also the latest photos).
The phone has Cyanogen recovery on it so I booted into that, and on my computer ran adb:
# adb version
Android Debug Bridge version 1.0.31

but then
# adb devices
List of devices attached
CB5A24NPRD      offline

which I cannot seem to change. Because I cannot use the touch screen, the only way to control the phone is in recovery mode with the volume and on/off keys. Is the best thing to do just to dismantle it and get the internal SD card? If it is a physical card then that may be the best way to go?

Only the touchscreen is dead or is the display dead too?

The display works -- I still see the keypad for unlocking my SIM; the problem is the touch screen. I think the crack from left to right makes localisation impossible.

You should try connecting a mouse via OTG. Once you enable USB debugging, photos and files can be pulled via adb. For contacts you will have to export to Sdcard before pulling.

You should try connecting a mouse via OTG. Once you enable USB debugging, photos and files can be pulled via adb. For contacts you will have to export to Sdcard before pulling.

Finally had time to try out the OTG solution which worked straight away! After setting up the phone I could pull it all to the computer with ADB.


text:
How do I hide or lock Android's Internal Memory when connected to PC?
When connecting any Android Device to PC it will show both internal memory and external memory (SD Card), is it possible to hide or lock the internal memory to avoid deleting or messing with apps files?
The device we're using is a Chinese Android Tablet:
Name & Model: Eken E902
Build Number: astar_m900-eng 4.4.2 KVT49L 20160322 test-keys
Kernel Version: 3.4.39
Firmware is exdroid4.4.2_r2-a33-v2.1
O/S version is Kitkat 4.4..2

Can't you just change it so that the default on connection is USB Charge instead of MTP? The exact process would vary based on make, model, and android versions, which you did not state... please update your original question with the necessary information.

I still wanna keep SD Card connective so students can print their researches  or pics while the internal memory has the apps' files and info which I don't anyone to mess with. I've update the question with the device info.

Hmm... I understand now, but I don't think this is possible even if you are rooted.

Sounds no luck to do that so better to disable USB completely and keep it for charging only right? Another quick question and thanks for your support. I've installed a Kiosk Mode App and locked almost all critical system apps I just wanna allow Screen Lock so each Student can protect his tablet. I managed to install a WiFi Manager but now remains the Screen Lock and I can't find any suitable on playstore.


text:
Firefox: keyboard freezes several seconds when typing into forms
I open Duckduckgo and Google in Firefox on my Android 5.1 phone. Usually I have multiple tabs open, but not that many. I start typing, and after two or three characters, the typing freezes. I can continue to type, but nothing is displayed. Then after a while, it catches up and then I can continue to work normally. Then, if I do another search, this doesn't happen anymore. It seems to happen mostly after not using Firefox for a while.
What is causing this behaviour? Is it the keyboard or Firefox? In other apps I don't have problems with the keyboard. The keyboard is Xperia from Sony.

try clearing cache of both apps. if you're not interested in data, clear data also but it will wipe your personal records from that app so be careful.


text:
Prevent app from knowing about root access (sandbox)
I'm running CyanogenMod 12.1 on a Motorola Moto G3. When I tried setting up some app, it failed on me with the message that it won't run on rooted devices, even though I disabled root access.
Now I'm looking for a way to sandbox said app, to prevent it from knowing about the ROM.

Due to changes in the SafetyNet API, which is a mandatory part of Google Play Services, most apps cannot have the fact you are rooted, or modified in anyway (such as running CM), hidden from them. Most financial apps, Android Pay, Pokemon Go and others use this API to check and there is no known work around at the moment, and according to some developers this may never be possible anymore IF the app is using the SafetyNet API to check for modifications.
Until recently (early October 2016), it was fairly easy to get around this check, but today it is almost impossible due to changes over the last month. The only known work around is to go back to stock. Be aware than starting with Android 7, even having an unlocked bootloader with no other modifications will cause a SafetyNet API check to fail.
If the app is just checking for su or standard root calls, then RootCloak or Suhide should work, but most apps are switching to SafetyNet now that Google is actively updating and enforcing it.
http://phandroid.com/2016/10/06/safetynet-update-no-longer-hides-root/
http://www.androidpolice.com/2016/10/19/safetynet-api-fails-unlocked-android-phones-android-pay-affected/
There are multiple other sources, but to see why this is nearly a foolproof method, or will be soon, see how SafetyNet works here.

+1 . You may like to add this if found appropriate

Coming back to check and found I forgot about the existence of SafetyNet (cuz we don't have Google here). +1, OP should just refer to yours for a more complete vision.

@beeshyams Nice find, I was unaware of that, but I think your comment is sufficient, since this seems to only bypass the bootloader unlock check on a specific device and Android 7, so it doesn't really apply to the situation of the original question.

Based on what you have right now, combining Xposed framework and RootCloak should work just fine.
Since you already have a custom recovery (for flashing CM), transitioning to Xposed should be painless, but still, be sure you download the correct framework version, and do a nandroid backup in case anything goes wrong.


text:
OnePlus One (CM 13.1.2) persisting boot loop
My OnePlus One phone got stuck in a boot loop over night without, as far as I know, a specific reason to do so (no new update was installed). Before this it was running perfectly fine. The phone was running the stock CM.
The phone boots and shows the Cyanogen Mod Ready logo and then restarts (Android version 6.0.1, Cyanogen version 13.1.2).
I tried numerous things so far
Booting in safe mode, wiping the caches and a factory reset (as suggested on the boot loop info page) all did not solve the problem.
Using ADB sideload to push and flash a zip of the ROM from the computer did not work. Yet no error was returned.
Furthermore, flashing the ROM with fastboot, as described here:
http://forum.xda-developers.com/oneplus-one/general/guides-bacon-timmaaas-how-to-guides-t2839471 did not resolve the boot loop. Also here, no errors were returned when flashing the individual files.
I'm not sure what other options I could still explore.

The phone was plugged in when it happened?

The phone was at the moment charging through the power outlet.

So this leads me to think that there is something with the eMMC. I think it might be a hardware problem due to short-circuit

I was already suspecting a hardware issue, but afaik there is no way to check it. Also, if it would be the eMMC shouldn't the flashing return an error when I overwrite a file?
Thank you for your help so far

You're welcome. Since I'm not good in hardwares, I can't tell you exactly what is causing the issue. But let's return on software side, did you flash the Cyanogen OS Fastboot Images as described in the link you provided?

Yes, I did it in the same order and for all of the files they mention.

After contacting OnePlus they set up a remote session.
During this session they also flashed the phone using their own files.
This, however, did not solve the problem.
The phone was still under waranty so they arranged it to be send for repair.
They found the motherboard to be faulty, which has been replaced and the phone works perfectly fine again.


text:
deleted camera app on rooted htc m8 kitkat
my htc one m8 was is rooted nd i accidently deleted my camera app using device control app nd now when i downloaded it's apk from internet it does not get installed showing message 'there was a problem in parsing the package' now how could i get back the original htc corporation camera app for kitkat in my phone.....,play store is having the app but supports lollipop nd above versions....... nd i also tried getting it from share it from other htc m8 (kitkat) showing the same message

Just flash the stock RUU. Depending on your CID (Carrier ID), go here to find the RUU  appropriate for your phone's CID.
To check your CID, boot in bootloader (Fastboot) and tape fastboot getvar cid or fastboot oem readcid. You'll get something like HTC_044 then go here to find from which carrier it belongs.
Flashing the RUU will clear your phone storage, you'll lose all data (photos, apps, videos, etc).

You can try LuckyPatcher with the Android patch to disable signature checks on Apps, hope that works


text:
PAC file with dnsDomainIs on cellular network?
My country started blocking access to some sites, so I'm trying to setup my devices to bypass it. I decided to use proxy via PAC file, because I don't want to reroute all my traffic just to access couple of sites. Following *.pac is working on Windows but I'm not able to find a way to use it on Android (or to at least to use proxy/vpn only for specific sites). I heard that Firefox on Android supports PAC files, but it's super slow compared to Chromium based browsers (at least on my not super fast device).
Autoproxy and ProxyDroid apps don't accept this PAC file and Drony (if I understood correctly) requires input of it's proxy address in APN settings which causes disappearance of mobile internet on my operator.
my PAC file:
function FindProxyForURL(url, host) {
 if (dnsDomainIs(host, "somesite.com")) {
    return "HTTPS someproxy.com:9050; PROXY someproxy.com:9050; DIRECT";
  }
  return "DIRECT";
}

I have root, busybox, xposed.

No need for change anything in APN. Drony uses vpn mode to intercept all traffic. Give it a try.

@SandroProxysupport Oh, I was kinda hesitant to bother you because of that 8) I've tried Drony but wasn't able to access any site after enabling it's VPN. Do you have any idea of what can it be? I took some screenshots of Drony configuration https://someimage.com/RFHF

Maybe uses ipv6 that is not supported. Try to switch to ipv4 in APN settings.

@SandroProxysupport ipv4 is already set by default..

Then no idea what's going on. Maybe vpn mode is not working okey. Send mail to help you more


text:
Very weird issues with android
So I have an interesting case with android... Before I start, yes I have done factory resets, I have even tried installing a new ROM. I have replaced hardware. I have replaced the SIM card. But I still have my issue with my phone and only with this specific phone. My Samsung Galaxy note 3 has connection problems connecting with my carrier. My carrier is Family Mobile which is a T-Mobile reseller. I also own four other phones between me and my family who are with the same carrier as me and I do not have the connection issue when I put my Sim in their phones. My issue goes as follows:
My phone will randomly disconnect from data. I cannot send texts/call etc. And my phone is basically not longer registered on my carriers network. My APN setting are correct. Although sometimes but not every time when my phone disconnects, I'll see that its then registered on AT&T. Once I re-register on T-Mobile, the phone works for a short while. Sometimes when the last issue does not happen, I'll see a notification that says sign into T-Mobile and I'll click on it and push 'use-network-as-is' and the connection would work again for a short while. There's been a few times where the last two cases don't happen so I'll go into my APN setting and switch between two APNs that are registered to the same servers. Once I switch to the other APN, the networks works again for a short while, I have replace parts inside my phone and the phone still has the issue. This is the only connectivity issue that I have on my phone so that means, NFC and WIFI works just fine.

Have you tried flashing whole new system? not installing rom from recovery, but using flash files from pc.

I'm not sure entirely sure on what you mean. What I did was I first rooted the stock ROM using Odin on my PC. Then I installed TWRP recovery to install a different ROM of an older verson of Android from Samsung. I have also reinstalled my ROM I think through Odin. But I do know that I used TWRP to install Cyanogen mod.

installing rom through twrp i.e. recovery is different than installing from a flash tool from pc. i know it doesn't make any sense at first but i had few issues with my moto G that i couldn't solve by flashing through twrp but solved by flashing through a flashtool. like spflash tool something. i don't have much experience with Samsung devices but try to learn on xda forums they help a lot in such cases

Well I tried my best at that. I upgraded CM from 12.1 to 13 and installed a new kenel. The phone still behaves the same but with the new ROM before I tried the new kernel, the phone wouldn't even see T-Mobile when I tried to register on the network, it would show AT&T and Version witch is weird because its a GSM phone. Would upgrading the modem work?


text:
Using Android Emulator's Root Shell via Command Line
I want to get a root shell since my adbd crashes. But the -shell option does not work. Meanwhile, I found out, that you can get a shell by using -show-kernel. But I would like to communicate with the root shell by TCP. There's also an open issue at google: https://code.google.com/p/android/issues/detail?id=202760
When starting an Android emulator (SDK 24.4.1) on Linux by command line, you should be able to get a root shell by using the -shell command-line option. At least that's what the manual says

Create a root shell console on the current terminal. You can use this command even if the adb daemon in the emulated system is broken. Pressing Ctrl-C from the shell stops the emulator, instead of the shell

But when starting the emulator like
emulator -netdelay none -netspeed full -avd nougat-x86_64 -gpu off -no-window -shell

I do see the shell output of the Android emulator booting, but I cannot send any commands to it, i.e. ls.
Also, opening a TCP port for the shell and communicating via telnet shows the same behavior.
emulator -netdelay none -netspeed full -avd nougat-x86_64 -gpu off -no-window -shell-serial tcp::4444,server,nowait
telnet localhost 4444

There's not much information about this topic on the internet, but perhaps someone already dealt with this topic.

This seems to have also been the topic at http://stackoverflow.com/questions/39374975/android-emulator-shell-redirection

Use adb shell of course.  If I recall an emulator would typically give you that shell as root by default.  If not, for a configuration which supports offering a root shell, do adb root first (rather obviously, that is not something that works on a consumer device configured in the way that Android was designed for consumer devices to be configured)

From Android source line 698, seems the -shell option is as same as -logcat option, thus I think the documentation is not described well and of course the -shell option won't bring you an interactive root shell from the virtual serial. Maybe I'm wrong, I only tested this on macOS.
With a further test, as same as this guy's post, the -show-kernel will actually get you the kernel log and an interactive rootable console.


text:
__bionic_open_tzdata_path: ANDROID_DATA not set!
When running commands like date or ls -l I always get a multiple repetition of the following lines to the standard error:
__bionic_open_tzdata_path: ANDROID_DATA not set!
__bionic_open_tzdata_path: ANDROID_ROOT not set!

I used to consider it acceptable, until I created a script running date in a loop, causing an awful endless stream of the same repeated lines.
I couldn't find any documentation about it, yet the problem seems to be common.
Any idea how to fix this?
Thanks in advance

Well, it seems that your terminal environment lacks two variables: ANDROID_DATA (usually /data) and ANDROID_ROOT (/system). Try to assign these values to said variables and run the commands again.

Thank you @DeathMaskSalesman, I've just realised that the problem occurs only in ssh shell, not in AndroidTerminalEmulator.  I was looking for an answer far away while the answer was just in front of my eyes.

For ssh users, following up on @Death Mask Salesman's comment. sshd allows setting up ENV via proper config (from man --pager='less -p ^ENVIRONMENT' ssh):

[...] Additionally, ssh reads ~/.ssh/environment, and adds lines of the format “VARNAME=value” to the environment if the
       file exists and users are allowed to change their environment.  For more information, see the PermitUserEnvironment
       option in sshd_config(5).

However I couldn't succeed to set it up on my phone (Sony Xperia "Tsubasa" / LineageOS 14.1). Thus I resorted to adding in /etc/bash/bashrc:
export ANDROID_DATA=/data ANDROID_ROOT=/system

then logging in...
$ ssh root@... -t bash
tsubasa / # env | grep ANDROID_
ANDROID_DATA=/data
ANDROID_ROOT=/system

:-)

I had the same problem and found a solution, fixing the issues that sphakka had in his answer.
Create these 2 files:
/data/ssh/root/.ssh/environment
/data/ssh/shell/.ssh/environment

With the following content:
LD_LIBRARY_PATH=.:/vendor/lib:/system/lib
PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/system/bin:/system/xbin:/system/sbin:/sbin/.magisk/modules/ssh/usr/bin
ANDROID_DATA=/data
ANDROID_ROOT=/system

You might need to set permissions for these 2 files chmod 755 environment
Very important: Enable PermitUserEnvironment yes in /data/ssh/sshd_config
Restart the sshd with /sbin/.magisk/modules/ssh/opensshd.init restart


text:
Are all the 2 amp Chargers are "Quick Chargers"?
According to Qualcomm's website they use some modern technology which will result in quick charging and according to a blog on android police if you want to check a charger is a quick charger then check its ampere rating if it is 2 amp or not...So according to that all quick chargers are 2 amp chargers but is vice versa true?
Now why i am asking this? I have a xiaomi redmi 3s prime and i takes 3 hours to charge with a 2 amp charger(which came in the box) so is it because its battery is 4000 mah or is it because it doesn't support quick charging

no, quick charging, turbo charging are different technologies. check mi forums to learn about their new techniques. but it is true that a charger with 2 amp o/p will charge your phone more quickly. i have a Xiaomi RedMi Note 3 and i have tested different charger and phone combinations. it's true.

All 2A chargers are not quick chargers and all quick chargers are not necessarily 2A (Qualcomm Quick Charge 3.0 is 3.2 V)

USB standard 3.0 in   lays down standards of 10 W: 5 V, 2 A  for smartphones and tablets
Power = Voltage multiplied by Current and this equation determines charging speed. When you use a 2A charger instead of 1A charger, charging speed increases . You can
calculate the charging time required using the Battery Charge Time Calculator ( choose efficiency of charging at 90 % if your battery is not too old ). Your device is probably supplied 2A charger since the battery is big and charging with 1A would take long. You can plug in the values in the calculator and see for yourself
Quick charging / fast charging of entirely different.  Basic principle is to increase the power supplied in charging by increasing power, either by increasing voltage or current or both. See this for more details How does fast-charge work?

Isn't QC 1.0 5V/2A? That's about the only 2A standard and it's out of date, though.

@AndyYan: it is. That is what I meant by  all quick chargers are not 2A. Will add necessarily to make it more clear. Thanks

@AndyYan : even QC 2.0 can be . See table at end of answer http://android.stackexchange.com/a/138678/131553

Yeah but I thought that's just for downwards compatibility with 1.0...

Nope functionally also. Backward compatibility is a must for brand specific fast charging- there are so many kinds


text:
Push notifications are being sent only from 5 apps
I have bought yesterday a Xiaomi Redmi 3S. For some reason I get push notifications only from 5 apps: Whatsapp, Facebook, Allo, Gmail and Outlook. I don't get push notifications from any other apps.
What can I do?

Turn on auto start for apps.
Go to Security  - > Permissions - > Autostart.
And select apps that you want to get notifications.


text:
Save shared content to local filesystem
The droidentify program allows to save a report of the information it gathers by using the send action intent. Source code extract:
    public static void shareReport(Context ctx) {
            Intent intent = new Intent(Intent.ACTION_SEND);
            intent.setType("text/html");
            ...

On my device this results in Android presenting four possible recipients, all of which I do not want because I just want to save it to the local file system (/mnt/sdcard or wherever).
Are there any system configuration to enable file system as share target? Or do I have to install some program to do this? I am looking for a free one, with source code available if so.

Are you developing an app that works in conjunction? Depending on your answer this might be closed as off-topic.

No, I would like to avoid having to write something myself...

Alright, flag retracted. It's surprising you went as far as looking into the source code of an app - upvoted for effort.

have you tried this app: https://play.google.com/store/apps/details?id=com.boxhead.android.sharetofilesystem&hl=en_US&gl=US

I found! There is an excellent program called Send to SD card which does exactly what I was looking for. Free program with source available, GPLv3.

This was a much more elegant solution than the way I solved it initially: Send via bluetooth to an older phone, switch it into usb mass storage mode, copy from it to my pc and then push to the tablet with adb...


text:
Why is there no Java compiler on Android?
I'm not an Android developer but I do other stuff.
I just rooted my phone so I was playing around with a shell and I was trying to compile some C packages and realized there is no C compiler, OK.
Surely there must be Java right? Tried it and I can't get a java or javac command to work either.
How is that possible when Android apps are written in Java?

First, because Android devices are intended for end-users (sure also for developers, but they are in a minority ;) Second, your PC didn't ship with a compiler either, right? So third, you might have to install one. There are several IDEs available which run on Android – but this site here isn't for software recommendations :)

I get that part....but how do the apps run with no Java?

Running already compiled apps doesn't need a compiler being installed, right? We don't run them from source :) Depending on the Android version, there's some bytecode optimization done by either the Dalvik (< 5.0) or the ART (5.0+) engine, though, but that's something different. To give you a hint: To run a Java app on a PC, you need the JRE (Java Runtime Environment) – to compile a Java app from its source you need the JDK (Java Development Kit). Two different pairs of shoes, though the latter contains the former :)

OK I guess I thought the java command i tried to run was part of the jre? No?

You might wish to check our chat room – comments are not for discussion :) Short answer: for compiling, definitely no. And while Android apps are mostly written in Java, things are a bit different here. Goes to deep for this site, which is for end-users.

Apps are launched by the Application Manager, which is a part of am.jar. To start an Android app, you need to use the am command, which calls a script, which sets the am.jar as CLASSPATH and then executes exec app_process $base/bin com.android.commands.am.Am "$@" (base being /system). Look inside /system/bin/am for details.

Android doesn't run Java bytecode because it uses Dalvik VM. And developers distribute apk packages, not Java/C#/kotlin source code

If you have Android 5.0 (lollipop) or later, use termux. (Terminal IDE is great but only works up to android 4.*). It's on the google play store, and the source is on github.
It has an apt repository with several compilers, including ecj, the
Eclipse Compiler for Java, and is much faster than javac.
There's also golang, clang, gcc, node, python and a whole bunch of other stuff (tmux, vim, ctags, cscope, emacs, latexetc etc etc).
NB: this doesn't actually answer your "why" question, but might be helpful...

Yes you can install a Java compiler but don't expect to be able to create your own applications for Android on Android.
I asked a similar question here.

ECJ (Eclipse Compiler for Java) can be ported very easily on Android. I've done it - but no support for Java 8 though.
Also, it is possible to build Android apps on Android, there are apps that already exist for that, JavaIDEdroid is one.


text:
Fastboot doesn't recognize OnePlus3 although adb does
When trying to root my OnePlus3 I ran into the issue that when running fastboot devices my output is blank. Some people said that even while it returns a blank output other commands should still work but fastboot oem unlock just says it's waiting for my device without ever proceeding. Also in my device manager I can see ´Kedacom USB device > Android Bootloader Interface´ and I think that might be the problem which I also found in "Kedacom USB Device doesnt work with fastboot Nexus 5x". However no solution is provided here.
When I'm using adb devices after a normal boot it returns List of devices attached 2a04cf0c        device and in my device manager I can also see USB devices > ADB interface

How do you get to the bootloader mode?

I had same problem with my OnePlus One. Since, I was already on a Linux system, USB drivers weren't the issue. All I had to do is to use prefix the fastboot command with a sudo as sudo fastboot oem unlock.

I had the same problem with a OnePlus One. The problem is that Windows 10 does not let you install the right driver, assuming you are using Windows 10.
I was able to solve it by using a Windows 7 machine instead.
Another solution I found, but haven't tried, is to disable driver verification.
This should allow you to install the right drivers, even if the verification fails. However, I do not recommend this as it makes your computer vulnerable to bogus drivers.

Fastboot and ADB requires different drivers. The driver that oneplus provides with the phone doesn't include the Fastboot one. Try to find the fastboot driver, or, if you can't find it, perform your operations on Linux or macOS. These two OSes doesn't require any drivers for using fastboot and adb.


text:
Why isn't ~/.profile sourced when I start the terminal app?
I have created some busybox aliases in the ~/.profile file, but when I open the terminal app, that script isn't sourced and the aliases aren't available. However, when I manually run source ~/.profile, it is run and then aliases are available. What should I do to source this script automatically each time the terminal app is started.

What term app are you using? Jackpal's Terminal Emulator does allow you to set what commands are executed at startup, so it could be a workaround.

Yes, I'm using the Jackpal's terminal emulator! Where exactly should I place the commands that can be executed at startup?

Jackpal's Terminal Emulator has an option that allows you to set what commands are executed at startup. Go to Preferences - Initial command and put the source command there.
Extra tip: you can't execute more than one line of command from there, but if your command requires su, shortening it with su -c should work.


text:
Notification light when turning on phone
currently I'm running 6.01 on a 2013 Nexus 5, with Xposed installed.
This is purely for aesthetic purposes; however, is it possible to have the notification LED flash when I turn the phone on (some newer LG phones do this).
Is there a way to call a script when you press the power button?

I think that requires modification at kernel level...

Try Macrodroid .Trigger Screen on,; Action Notification LED enable. My device didn't have notification light to test

What do you mean by turning the phone on? Do you mean restarting/powering on the phone or simply waking up the device? For the former, you would need a kernel with support for init scripts.

@beeshyams Tried MacroDroid. Unfortunately, it simply enables the notification light.

@Firelord Is there a trigger for the screen backlight on/power button, and is there a way I can power on the notification light, preferably via an .sh script? My phone is rooted with the latest EX kernel.


text:
Cyanogenmod Unofficial and custom kernel
I am new to cyanogen OS and using cyanogenmod unofficial from xda for my xiaomi. Why, it is said unofficial and is there any official release available for xiaomi from cyanogen. Also, I am trying to use a different kernel(camera is not working with built-in kernel ). Whether I get updates, as the kernel is different? What are the specifications for a good kernel, And about security? Please give me, suggestions.

Availability of official CM builds for MI devices isn't guaranteed (see note at the end) because the individual maintainers usually put bug fixing at priority and keep other factors (e.g. enforcing SELinux) hanging, some of which are required by CM. This is the same for almost all devices - who doesn't want a fully functional ROM before anything else?
As long as the build itself works fine, the only things you need to worry about it are 1) what extras are added in the build (e.g. themes, apps favored by the developer) and 2) how often it's updated (again, largely depends on the developer).
As for the kernel... When the issue isn't resolved in the original build, it's rare that a custom kernel can remedy that (or why wouldn't the developer of the original build merge it?). You will get kernel updates separately from the kernel developer - flash every update manually. Also, every time the ROM itself gets updated, the custom kernel will be overwritten, so you need to flash the kernel at that point, too. Talking about security, if you could trust the dev of your CM build, there's no reason you can't trust the dev of the kernel - they're on the same tier and are equally likely to compromise your security.
For the last part, IMO, a good kernel combines stability, performance (e.g. overclocking and opt flags) and battery life (e.g. underclocking, undervolting). All other features are just icing on the cake.
To others: feel free to comment and point out missing/faulty contents!
Note: Official Lineage OS 14.1 Nougat ROM is available for some MI devices.(Redmi 1s, Mi3,Mi4,Mi5,MIMAX,Redmi3/Prime, Redmi Note3)


text:
Easy switching languages?
A tablet will be used by someone who reads (only) Chinese (PRC). I only read English. In order to help her accomplish things, install apps, and generally maintain the tablet, I need to switch language settings.
Since I can’t read the settings menu, dialog boxes, etc. and she is a non-technical user, I want some icon on the Home screen that will toggle settings. It doesn’t matter if it’s an app or a widget, but the idea is that once situated on the Launcher screen then anyone can easily toggle languages without having to understand the currently set language.
Can someone point me to something like that?

I found this app to be very easy to use and basically works with just two taps. It's called Change Lanuage and can be found officially from the play store. Then only setback is that you'll only be able to change languages based on languages installed on the phone. Which means if you don't have chinese dictionary and language pack on your phone you'll have to download it through the phone settings page first. Add the app widget to the home screen and you'll be able to change in less than 5 seconds.

That’s no drawback… I assumed the languages would be available.

It appears to be just a shortcut to the language setting. That helps with finding the settings when in a different language, assuming you can still figure out that page.  I’d still like to find a toggle that knows the two I’ve configured.


text:
Dismiss messages on lock screen on cyanogen
When your phone is locked and you receive an update which you don't want to unlock your phone for. Is there a setting to make it possible to dismiss it without unlocking the screen? Would even be better to only make certain apps dismissable without unlocking.
using android 6.0.1 cyanogenmod 13.1.2

You can slide down when you get a type of message, press it for 2 seconds and press the info icon, and than you can disable persistent notification on lock screen.
When looking at this question(Why are some lollipop notifications able to be swiped away on lockscreen?) Doesn't seem like you can change the type of notification.

The way I see it, it doesn't exactly answer your question ("dismiss without unlocking"), rather it's a workaround that simply disables all notifications for what you don't want. Still, as long as it works fine for you...

Indeed it doesn't actually does what I want but I don't think 'make persistent notification swipeable' is a feature. Too bad though. It should be up to the user and not the app whether or not you can swipe away a notification on the lock screen


text:
Disable cursor and automatic zoom into textbox in Firefox
I have Firefox installed in my Android devices (phone and tablet). Everytime I open a new site (say bookzz.org ), the cursor is automatically in the textbox, the page is zoomed in and the on-screen keyboard pops open. This is extremely annoying and though it seems simple, I have no idea how to fix it.
Any ideas?

There's an answer here that doesn't work on Firefox 49.0

Can you provide URL of a site exhibiting same behavior? On bookzz.org disabling jquery.com gets rid of the issue.

https://watchseriesfree.to/


text:
Re-lock and unlock bootloader on the Nexus 5X for Android Pay
A very recent change in Android Pay means I can no longer use it on my Nexus 5X that has an unlocked bootloader (http://www.androidcentral.com/android-pay-no-longer-works-if-you-unlock-your-bootloader-and-thats-good-thing).
I don't have root, and I don't actually use my unlocked bootloader at the moment, but I like that it's unlocked, because it gives me the option to get root later without wiping the device.
Is there any way to re-lock the bootloader, and then unlock it again without wiping?  Or is that impossible by design?

Currently, No.
Locking the bootloader actually requires a wipe as well now so you would have to back up your device and then restore after locking.
I was in the same scenario with my Nexus 6P and as I didn't need the bootloader unlocked any more i have locked it. I used a combination of adb backup, copying files manually off my device and the built in backup/restore functionality.


text:
Users who install and uninstall immediately are counted in Google Play app's downloads?
When a user downloads an app from Google Play, app's download counter is increased no matter if the user uninstalls the app immediately?
Is there a minimum of time the app must be on the device?
or a minimum of use (e.g. it must be opened at least once)?

When a user downloads an app from Google Play, app's download counter is increased no matter if the user uninstalls the app immediately? - Yes
Is there a minimum of time the app must be on the device?
or a minimum of use? - No

From Google developer console help , it appears that both are unrelated and counted as discrete events. For instance, Daily Statistics on the console are defined as below . There is no mention of time it stays installed or use

Daily installs by user: Unique users who installed the app on one or more of their devices for the first time in the past day
Daily uninstalls by user: Unique users who uninstalled the app from all of their devices in the past day

From Quora - How does the downloads count for an app in the Google Play Store work, developer Sophia Wang clarifies that installing and uninstalling will not change the number of downloads, which further supports that these two events are not connected in any way for statistics

Billions: How exactly do Apple and Google count app downloads? says "
Both Apple and Google tabulate unique downloads of apps per user account. This means that they count only one download of an app no matter how many devices that you install that app on after you purchase it"

Would welcome additions / corrections from developers

Quora shouldn't be used as a definitive source. It's just people providing their own answers which are often only best guesses. If you look, you'll notice there's another answer on the same Quora question that says each individual device is counted, which contradicts your thenextweb source.

@Patrick: I am aware and normally avoid. Quoted here as a developer claiming this . As you observed, other sources support


text:
"Unfortunately, Setup Wizard has stopped" after factory resetting Yu Yuphoria
Getting the error message "Unfortunately, Setup Wizard has stopped" repeatedly once after I factory reset my Yu Yuphoria mobile.
Tried it many times and sometimes I could able to set up and proceed, but could not find the settings icon in my menu.
Can someone help me out of this?

You would need to flash the whole ROM.

clear temporary memory of your phone and then restart it. It will work for you.

@RichiRich Doesn't a factory-reset include that? So what would it help then?

Please try to clear cache and dalvik

Welcome to the Android Enthusiasts! OP writes this happens "after i factory reset". A factory-reset includes clearing cache and dalvik (see the comments on the question itself) – so this doesn't answer the question. Apart from that, your post lacks details on how to do that: especially consider the device being stock and not-rooted, clearing Dalvik might prove difficult :)


text:
Incorrect touch resolution
I have a Teclast X80h and I flashed the Android 5.0 v7 mirek's ROM to it. It's original stock ROM was 4.4 Jellybean. With the new firmware the display resolution and the touchscreen resolution is not the same. If I move my finger on the screen then the contact indicator moving only on a pretty smaller area, maybe 20% of the display size.

See the attached picture. (If I touch at the big dots, it reacts at the small dots inside the yellow marked area.) It is almost useless. At the moment I navigate with a mouse on the OTG.
What I tried:

Download a calibration software. Failed it. I can not found any. Only sensitiveness calibrators exists for Android. On Windows You can calibrate coordinates, but on Android... Somewhere I read that the calibration data is hardcoded in the kernel.
Compare the stock ROM with the newly installed one, search for differences on drivers or config files. The .idc files are the same in /system/usr/idc, and the .drvb files are the same in /system/vendor/firmware.
Modify the .idc file in /system/usr/idc I found some content at Android's site about the Input Device Configuration files. I tried the following parameters:

touch.scale (but it is corresponds to contact area size)
raw.x.max (the maximum of the raw value received from the touchscreen)
output.width (the displqy coordinate to associate to the max raw value)

Anyway I tried almost all touch.* raw*. and output.*

Nothing helps. BTW the uploaded firmware was created for another but very similar model X98 Air. This firmware must work on this model as shown in a Youtube video "X80h Android 5".
Note: I have the skills to extract a ROM or decompile an .apk!
Should I replace a driver? Or is there a handy software?
Should I modify another config file? Or the kernel?
Thanks guys

have you tried resetting your api limit rate?


text:
Lenovo Vibe K5 is not turning on anymore
I have rooted Lenovo Vibe K5 and I had installed CM 13 (Marshmallow). It was working well, but because of some need, I had to install CM 12.1 (Lollipop) and I tried installing through TWRP recovery CM 12.1. I wiped Dalvik, Cache, and System and installed CM 12.1 successfully and was asked to reboot the system and I clicked on reboot. After that, it didn't turn on, not even in recovery mode by pressing and holding the Volume + and Power buttons.
Then I tried to flash it again with PC but it's not showing in CMD as well. It shows the error "Device not found" in CMD and in Windows notification, it shows "USB Device not recognized".

In this state, flashing the stock firmware still the solution. You need drivers for the PC to detect the phone.

Click here to get the USB drivers and the flash tool.
Click here to get the flash file (firmware).

Alternative download links:

Firmware
Flash tool
Drivers

FLASHING STEPS:

First download firmware, flash tool and/or drivers from above links.
Extract zipped files to desktop or anywhere you'd like (You'll need winrar or 7zip software to Extract).
Open Driver folder and choose  Qualcomm_USB_Driver_Setup.exe file and wait until finish installation.
Open QPST.WIN.2.7_Installer-00430.1 folder and chose setup.exe file, open and install it.
Now open QFIL from the "C:\Program Files\Qualcomm\QPST\bin" path, Select Programmer option and click on Browse button and Select prog_emmc_firehose_8929.mbn from SW Folder file.
Click on Load XML button and choose
rawprogram0.xml file and then choose  patch0.xml file from the SW Folder folder.
Press and hold Volume Up + Volume Down and insert USB cable and wait until driver install are installed.
Click on Download button and wait until flashing process finishes.

Oh, and you may need a video tutorial to make it easier, find it here:
Flashing process

Thanks @esQmo, i installed the driver but its still not detecting my phone in ADB mode, not even in windows , it shows USB Device not recognized :( but yeah it shows the Notification LED indicator light.

You can't connect in ADB mode since your phone is off. You have to flash it in this state. Open the flash tool, load the firmware and click on the flashing button then connect your switched off phone with the USB cable to the computer, the flashing process should start.

If it's showing "Device not recognized" it is probably the cable is damaged, or the USB connector could be damaged too, or has some dirt

in QFIL there's two Build type, Flat and meta build , which one to choose? by default its clicked on meta build, and it does not let me browse programmer path and i'm also unable to find "rog_emmc_firehose_8929.mbn" this file.

Can you upload a screenshot?

https://drive.google.com/open?id=0B4att8Gy0BHUX3FVQ1pSdTNXbFU

https://drive.google.com/open?id=0B4att8Gy0BHURWRSeEw3eUJaRDA                       can i get you on google plus  or whatsapp ?

Leave it in flat build and in "PROGRAMMER PATH" field, click Browse and go to the folder named Images and select the one file it displays (something like prog_emmc....mbn).

i am doing exactly the way you told, i have installed both lenovo and Qualcomm usb drivers , i am pressing Volume up + Down keys, but  its still not showing my phone, No Port Available. Whenever i plug the phone in pc it shows device not recognized then littile later it installs this . check the link https://drive.google.com/open?id=0B4att8Gy0BHURWRSeEw3eUJaRDA

I don't get you, what is been installed? I see nothing on the screenshot.

I also told you that of the PC still showing device not received, your cable is probably damaged or the phone USB connector.

We can connect on WhatsApp or Twitter, or Google+ .

i found a little progress. check the link                               https://drive.google.com/open?id=0B4att8Gy0BHUVVFvUjRGUFEyN0E                                                                  and found this new problem as well Swtich to EDL Fail .

Is the phone detected in Fastboot mode? if so, run fastboot oem reboot-edl

error : device is not found in CMD     https://drive.google.com/open?id=0B4att8Gy0BHUOUViVzNnajJ2b2s

The phone is not in fastboot mode. Put it in fastboot mode first then tape the comand


text:
How to fix Android file system error
There's a corrupt file on my (rooted) Android device
at /data/anr/traces.txt
when I cd to this directory with adb shell, or try to do cat or rm on this file I get I/O error
Most importantly it prevents me from having a TWRP backup, as it fails at reading this file,
How can I either delete it or fix it?
Deleting anr folder with ES File Explorer or Cyanogen Built In File Manager results in error, also these file explorers don't actually show any files inside anr folder
update on comment:
running fsck.f2fs outputs
```
~ # fsck.f2fs -f /dev/block/mmcblk0p48
Info: Force to fix corruption
Info: sector size = 512
Info: total sectors = 50454272 (24635 MB)
Info: MKFS version
  "Linux version 3.10.84-perf-g329ac5f (hudsoncm@ilclbld30) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Apr 20 17:03:52 CDT 2016"
Info: FSCK version
  from "Linux version 3.10.84-perf-g0ec7138 (hudsoncm@ilclbld87) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Nov 3 05:01:11 CST 2015"
    to "Linux version 3.10.84-perf-g0ec7138 (hudsoncm@ilclbld87) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Nov 3 05:01:11 CST 2015"
Info: superblock features = 1 :  encrypt
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 50454272 (24635 MB)
Info: CKPT version = 10de4e
Info: checkpoint state = 5 :  compacted_summary unmount

[FSCK] Unreachable nat entries                        [Ok..] [0x0]
[FSCK] SIT valid block bitmap checking                [Ok..]
[FSCK] Hard link checking for regular file            [Ok..] [0x0]
[FSCK] valid_block_count matching with CP             [Ok..] [0x2beeaa]
[FSCK] valid_node_count matcing with CP (de lookup)   [Ok..] [0x723f]
[FSCK] valid_node_count matcing with CP (nat lookup)  [Ok..] [0x723f]
[FSCK] valid_inode_count matched with CP              [Ok..] [0x69ed]
[FSCK] free segment_count matched with CP             [Ok..] [0x12ca]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FSCK] other corrupted bugs                           [Ok..]

but next ls -l /data/anr/ reveals that file is still corrupted
i know exact inode of the offender
|-- anr <ino = 0x476b>, <encrypted (0)>
|   |-- traces.txt <ino = 0x3c19>, <encrypted (0)>

Any ideas? I dont want to format /data i have stuff on it I want to backup with TWRP

Did you try fsck ?

@GokulNC please see update

You wrote cat gives you an error as well – but didn't specify which way you've used cat. I assume you've already tried something like echo foo > traces.txt? Not that I give it much hope, but worth a try I'd say. Apart from that, this answer on our sister-site might be helpful – if debugfs is available on your device.

@Izzy no, echo gives same error, debugfs is not available on my system :(

OK, sorry for that – but was worth a try. I'm out of ideas then. The only thing I rawly can think of is finding out what block the iNode belongs to, and mark that as "bad". But I've got no idea how to do that.


text:
My Samsung J5 fell and the touchscreen, as well as the LED-screen are completely broken. Hwo can I make a backup?
As the title says, the screen is completely broken. Apart from a few pixels lighting up when I turn it on. How can I make a backup without enabling USB-Debugging and unlocking the screen?

That sounds like a difficult issue. You can have the screen repaired at your expense unless its under warranty. You could try booting into recovery and using reference images and luck to do back up while you can't see it.