text:
Phone is killing important background/sync processes (Wiko Lenny 3) – what to do?
My friend recently bought a Wiko “Lenny 3”, which runs Android 6.0.1
After a short while of using it, it seems that this phone is configured by the manufacturer to very aggressively kill background apps, even ones that should be left running.
For example:

Apps that should be running in the background and syncing/polling for messages, such as K9-Mail (email client) or the Signal messenger, apparently aren’t left running.
Often, when opening K9-Mail or Signal, 10 or more emails/messages/texts will suddenly “arrive” all at once, many of which are hours old by then, so those apps clearly weren’t working in the background like they should’ve been and only got the chance to poll when they were manually (re-)opened by the user.
This means that even basic availability and message reception (part of the whole point of a phone, one would think) is not working reliably!
We put a calendar widget (belonging to Google Calendar) and a news app’s widget (SPIEGEL ONLINE) on the home screen, both of which are just blank after the phone is started and are only “resurrected” by fiddling with them manually (still haven’t figured out a reliable procedure).

If a live wallpaper is set, then after some time of using the phone (filling the RAM with other apps, presumably) or after rebooting, the phone’s wallpaper will be reset to the default, static one (Wiko logo).
This also depends on whether the live wallpaper is set from the home screen (where it already disappears e.g. just from opening the “recent apps” screen) or from the settings (where it lasts longer, but still not permanently).
Curiously, this only seems to affect live wallpapers that aren’t pre-installed (Phase Beam etc.), such as Galactic Core or Pixel Rain.
Videos:
Live wallpaper cleared by “recent apps”
Live wallpaper cleared by opening Firefox

A large part of the marketing/“bonus features” for this phone seems to revolve around battery life and “optimizing” performance.
It includes a pre-installed “Phone Assistant” app (cannot be disabled!) where different levels of battery saving can be set up, background apps can be killed and so on.
This app also puts a “One Clean” icon on the “all apps” screen whose function seems to be killing all currently-running user apps (it plays an animation and announces having freed XXX MB of memory).
Tapping this “One Clean” icon always resets the wallpaper to the static default if a (non-pre-installed) live wallpaper was set, which is why I think all this has to do with an overly aggressive background app policy (even the live wallpaper process gets killed).
Demonstration of “One Clean” (clearing live wallpaper again)
Unfortunately, even whitelisting everything in the “Phone Assistant” and disabling as many battery saving/“optimizing” features as possible didn’t alleviate the problem.
(I haven’t tested this, but I suspect that the built-in email, calendar etc. apps pushed on you by the manufacturer, most of which can’t even be disabled, are spared this violent treatment, so many people owning the phone might not really notice these issues.
Just an idea.)
Because of these issues with the manufacturer-provided setup, I’m very eager to install a custom ROM on the phone.
However, none of the popular ones (e.g. Cyanogenmod or Paranoid Android) seem to support this phone and I certainly don’t want to brick it!
Does anyone have any experience with a phone that behaves like this?
What would be the best course of action?
Is there a (comparatively) risk-free way to try a custom ROM or can I do anything from within the manufacturer-provided installation?

1 Apologies for linking the German page; for some reason the page seems to be available in every language except English.
If you find an English version, do tell me.

Edit (2016-12-27): It seems that these issues with Wiko phones are becoming more well-known and affect an entire line of models (Wiko phones on Android 6 (Marshmallow) with only 1 GB of RAM).
Even those low-tier Wiko models which came with Android 4 on release and were only later updated to Android 6 seem to then exhibit the problems I described (non-functional widgets, background/synchronization issues etc.) due to Wiko’s messed-up implementation – even though there were no issues before the update.
See, for example: http://ludditus.com/2016/08/10/the-verdict-on-wiko-robby-two-weeks-later/

I have no device with MM at hand currently, but have you tried to exclude those apps from "doze mode"? AFAIK there's an item in the power savings settings ("Energiesparmodus" or something like that). Only few apps are excluded by default. Apps that are not excluded the system might decide to "doze" (put to sleep).

@Izzy Hm, so far, I haven’t modified that much within the Android settings themselves and more suspected the pre-installed “Phone Assistant” stuff. I’m not sure I found exactly what you’re talking about, but I have now set the apps I talked about in the question to “not optimized” in the battery performance settings and will try and see if that helps.
https://i.sstatic.net/EeFIf.png

Yepp, that was exactly what I've meant. Fingers crossed – let us know the results!

@Izzy Unfortunately, there seems to be no difference (rebooted and played around for a while). Live wallpapers still get cleared and the widgets still have the same issues. Can’t tell yet if there’s any improvement with the messaging apps.

Strange. Last idea I can come up with would be checking the logs for any clues.

I experience the same issue. The plan was to buy a cheap phone which would process background tasks, I went for a Wiko. I wasted my money. http://stackoverflow.com/questions/37745793/application-is-sleeping-when-one-phone-gets-locked-but-not-on-another-phone

Hi, I had the same problem, and after a lot of googling I found a post on xda that suggested to set ro.tinno.whitelist.set=false in build.prop, but that didn't work for me, maybe because I deeply modified the stock ROM (by removing most of the vendor apps, including the task killer). What actually worked for me was inspired by @Pbordin's solution : set ro.tinno.low_memory=false. Please try one, then the other, then both, and report. If this works for you, I'll turn this comment into an answer.

Does your phone have a (top-level) setting called "DuraSpeed"? This was the case for my Wiko Y81. Adding exceptions for Signal and other apps I'm running allowed me to solve the same issue you described.

I bought a Wiko Lenny 3 in France 3 months ago. I immediately loved the device as I was primarily using it as a development device with Android 6.0. I write code for a living. I noticed OneClean and PhoneAssist and their brutal, rude and unasked for ways. My background services would get killed whether I had powersave mode on, or not, battery optimized settings or not... I tweaked and tweaked but got nowhere.
And then...
I just today installed Engineer Mode from the PlayStore (it has a yellow and black wheel as an icon).
After launching the app, I chose the secret code for OneClean, there's only one in the list and it says OneClean. Clicking it gives you a menu, I unticked "Low Ram enable" and ticked "Background Enable" and raise "Background service limit from 6 to 8".
After doing that I rebooted and launched Orbot which would never stay on, IT STAYS ON. I am able to have background services running. So far so good.
Try it....

Thank you for the hint on Engineer Mode – an interesting angle I didn’t know about before. However, any improvement gained through this method is marginal at best – eventually, the phone still kills important background processes at some point, so this is not a complete solution.

i've just found a working solution for the same issue affecting my Wiko Fever.
Went to "Phone Assistant", "Charge management", "Advanced settings", "App"; then in the gear icon on top right corner, I selected "Background app whitelist" and added the applications that i want to keep alive. Doing this, no more unexpected background tasks kills.

I’ve already done this; all interesting apps are on this whitelist. As stated in the question, “Unfortunately, even whitelisting everything in the ‘Phone Assistant’ and disabling as many battery saving/‘optimizing’ features as possible didn’t alleviate the problem”. So this is not an effective solution, or at least it doesn’t work on the Lenny 3.


text:
Persist changes to /system partition on A/B device (Android 9)
I’m trying to add the F-Droid Privileged Extension using the OTA .zip to a Fairphone 3 on which I’ve installed /e/ OS. I tried modifying the update-binary script because the mount points assumed in the script don’t quite seem to work on this device, but although the files seem to be copied fine to the system partition(s) in recovery mode, when I reboot the phone, all the changes have disappeared.
Is there anything else I need to do so that files copied to /dev/block/by-name/system_a or /dev/block/by-name/system_b in recovery mode stay around?

source: Stack Exchange

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

sort: votes


text:
Odin Flash error: SW REV CHECK FAIL : [lk]Fused 2 > Binary 1
I've been trying to flash stock ROM on my Samsung J7 Max. Briefly, these are the steps I followed :

Enable Developer Options
Disable OEM lock
Reboot phone and open into Download Mode (Power+Home+Down)
Open Odin 3.12 on PC (with latest samsung drivers installed)
Connect phone via original data cable
Load the four *.tar.md5 files into respective slots (BL,AP,CP,CSC taken from here)
Until now the message at top in Download Mode is:
    ODIN MODE (HIGH SPEED)
    PRODUCT NAME: SM-G615F
    CURRENT BINARY: Custom
    SYSTEM STATUS: OFFICIAL
    FRP LOCK: OFF
    OEM LOCK: OFF
    WARRANTY VOID: 0x1 (0x30d)
    MTK SECURE BOOT: ENABLE
    AP SWREV: B2 K0 S0
    SECURE DOWNLOAD: ENABLE

Disable Auto-reboot and Click Start. The process runs for about two minutes and then following two errors occur-
On the phone: this line is printed-
    SW REV CHECK FAIL : [lk]Fused 2 > Binary 1

On Odin: Here's the complete log:
<ID:0/004> Removed!!
<ID:0/004> Added!!
<ID:0/004> Odin engine v(ID:3.1205)..
<ID:0/004> File analysis..
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Get PIT for mapping..
<ID:0/004> Firmware update start..
<ID:0/004> SingleDownload.
<ID:0/004> preloader.img
<ID:0/004> lk.bin
<ID:0/004> trustzone.bin
<ID:0/004> param.bin
<ID:0/004> efuse.img
<ID:0/004> RQT_CLOSE !!
<ID:0/004>
<ID:0/004> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)

Note that this same error happens if I try to upload a random tar file. So it seems an invalid BL file is causing the issue, but I've re-downloaded and verified the md5 hash of the BL file.
Also, I cannot open the recovery mode. Even when FRP Lock is off, the phone is showing a screen similar like this:

The message at the top on this screen says Rollback version is not matched (md1rom). Can anyone explain what this error is?
Before flashing, my phone had Android 8.1 and the firmware was also last updated on 21 Mar 2019 (Android version:  8.1, code: G615FXXU2BSC1).
Edit :
I've also tried to upload individual tar.md5 files to device and found that files other than BL file upload successfully and the above error is generated when I try just the BL file.

any update?....

yes. The update is I changed my phone xD

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


text:
Contact that cant be made a favourite
In my contacts on my Samsung phone I have a contact that I cant "star", other contacts have that star you can click on to make them a favourite but this one contact that just isn't there. I've tried creating a new contact but it just won't let me make her  a favourite.
Any idea why?
Thanks.
Edit:because I can't add comments.  Its a Samsung S10e OS ver G970FXXU9DTJA

Hello. Which Android version and Samsung device are you using? Can you post (in a manner hiding the identity of your contact) the details that you have added into this contact?

Hello @CletusVanDamme. It seems that you have lost access to your account with username Tim. You can get your current account merged with that one and get ownership of this question. Please use the contact form to have this sorted out for you. Good luck.


text:
How to get rid of spying app (rooted)
My android phone is installed with spyware (spying app). This can be a breach for my business leaking out passwords.
How to clean wipe android OS and freshly install Android OS again cleanly.
My system is rooted.
Phone Model : Samsung A7 2018.

Android phones are embedded device which work totally different that a regular PC. Therefore there is not "the one solution", instead it depends on your phone manufacturer and phone model. Please edit your question and add more details on your phone.

Is the 'spyware' pre installed or someone installed it??

@Aayush Hi, Someone installed it.

I am not familiar with Samsung phones, you can perform a factory reset or if you want to re-install the OS to make sure install a factory image via Odin software.

The model names of Samsung are not unique, there are three device variants for you model name:  SM-A750F/DS (EMEA); SM-A750G (Hong Kong); SM-A750FN/DS (Europe). For finding the correct firmware you have to identify your device exactly.

@Robert Can I expect the model mention somewhere on my device?? or on box?

@Robert I mean where can I find the model variant on my device/box ??

@Robert Hi, I just found my model variant online... below are the details of my Samsung A7 2018   ....     Model SM-A750F
Model name Galaxy A7 2018
Country
India (INS)
Version Android 9
Changelist 16070901
Build date Wed, 19 Jun 2019 09:53:33 +0000
Security Patch Level 2019-06-01
Product code INS
PDA A750FXXU1BSF4
CSC A750FODM1BSF4

@Robert Firmware details are clear at this link    https://www.sammobile.com/samsung/galaxy-a7-2018/firmware/SM-A750F/INS/download/A750FXXU1BSF4/278069/

@Robert Hi. Good Evening! Any help in finding the exact firmware and  working on it will be appreciated. I'm stuck not using my phone. I'm not willing to give the phone to a service center to do this job! I want to clean install everything with right process all by my myself. Thanks in advance!

You can try to download the firmware using Samloader and then install it using "Odin".

It's called "flashing the stock ROM".  Look for the firmware for your particular model (N, FD, etc.) at https://www.sammobile.com/  There are pretty good instructions at https://www.getdroidtips.com/samsung-galaxy-a7-2018-stock-firmware/
(If you still want the phone to be rooted, you'll have to root it again - the stock ROM isn't rooted, it's what you got when you first got the phone.)

Hi @Rukbat. Thanks for the comment. will one be able to get firmware directly from Samsung or Google (google being android developer)?? Sammobile.com is some unknown site which even I provided the links too. How can one get all that is required from original manufacturer or android os developer (google)?

No, but there are sites you can get the firmware from.  Just google flash stock rom and the model number of your phone.  Or check on SamMobile.


text:
My Pixel C tablet doesn't respond to the unlock pattern and the recommend action to debrick it doesn't work
I have had this Pixel C for about 3 years, possibly more.
Two days ago it stopped responding to the unlock pattern.  This seems to be a fairly irregular thing on Google devices and never fixed.  The recommended course of action is to do a factory reset.
However when I start the device with volume down and power the only options I see are:

Restart this device

Does as expected.

Switch to fastboot mode

Goes to a screen stating "Waiting for fastboot command...."

Reboot in Android Recovery

Reboots and shows the dead android with "No command" below it.

Turn off this device

Does as expected

Switch to USB recovery

Shows a page stating "For more information on USB recovery, please visit: g.co/c-recovery.  That page tells you to open up Settings - I can't unlock the device so I can't do that. If I could unlock the device I wouldn't need to do this!

The additional information is:
PRODUCT NAME: GOOGLE Smaug
HW VERSION: 5
BOOTLOADER VERSION: Google_Smaug.7900.139.0
LOCK STATE: Locked
How do I debrick my tablet?

Just in case anyone else comes this way searching for an answer, I did get one on the XDA forums.
The solution is to start the device with volume down and power pressed.  This brings you to the menu I described in my original post.
Select the Reboot in Android recovery option.  Once you get the dead android logo hold power then press and release volume up, then release power.
That will bring up another menu which allows you to do a factory reset.
Once that is done you can restore your tablet.


text:
Process com.android.systemui has stopped
So my phone (Samsung Galaxy Avant) was working just fine until last night where I keep getting this error. I can use my phone just fine for maybe,2 minutes,but after that,it crashes. I already tried looking around for a solution,and have tried clearing the cache partition,but no luck there. A factory reset of everything is my last resort option,so want to try as much as I can first.
I can use my phone in Ultra Power Saving Mode with no issues, so it has to be a third party app during that's causing the issue. Only thing I installed yesterday was just a battery monitoring app (Go Power or something to those likes). I already tried uninstalling that and my 3rd party launcher (Nova). Still no luck.
My phone was rooted (Or at least should of been or be) using the Kingo Root program. I did also uninstall that as well, so am not 100% certain if that is also the cause. Cant seem to reinstall it as the installation hangs and then the UI crashes. Also,did uninstall some stock apps I had no need for,but that was a long tome ago.I feel that it should continue to install,even without the UI,and have given it a few minutes,but when I restarted my phone to check,nothing. Maybe I didnt give it enough time or it just didnt install. Cant get into safe mode either (The method using Power Button and Volume Up),as all I get is a prompt for a custom OS installation with Odin,nor does it show up when I long press the power button.
EDIT: Also have tried resetting all App Preferences and also Uninstalling Malewarebytes which I just remembered I reinstalled yesterday too. I did last month also get the charger port replaced,or rather,the entire motherboard,but doubt that is the issue.
EDIT2: Found out I was getting to safe mode wrong. Still crashed.

Power+VolUp isn't safe-mode (follow the link for details) but bootloader. Though I never used it, I've read several times that people who uninstalled Kongoroot experienced instabilities. To me it looks like even a factory-reset might not fully solve your issue; depending on what chaos kingo left, you might need to flash a clean ROM, e.g. via odin.

I think I figured it out. It was that Kingo Superuser app that was causing  it. Was trying to think what else could it be and noticed it was still around. Disabled it and now everything is normal so far.

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


text:
Use mobile internet though connected to WLAN
On  an Linux based system I created a WLAN Hotspot. I want to provide a single webpage via a webserver on this system. When I connect my Android devices to it they expect to get internet over this connection. But since the Linux host is offline the Android devices are able to see only the webpage and can't reach the internet any longer. I don't want the connected Smartphones to lose their normal connectivity.
Is it technically possible (for example by using any special WLAN settings or Hotspot configuration) to tell Android devices anyhow to use the WLAN connection only for accessing the single hosted webpage and to use their own mobile Internet (cell net) for any other internet access?
This question implies the question if it is possible to use mobile internet via cell network while beeing  connected to a WLAN network on Android devices.
The Linux system currently is a Ubuntu Desktop machine and will be a Raspbian (Debian) on a Pi later on.

AFAIK, mobile data and WLAN cannot be simultaneously connected - except for a few (Samsung?) devices with what they call Download Booster or some such. It pools active connections into one connection? I suppose it's a hardware limitation in other devices and requires special modem/radio tech. It's not at the level of hotspot settings :P

The solution was to let the Android device create a tethering Hotspot and make the PC/Pi connect to it instead. Then the Android device is able to connected to the Webserver on the PC/Pi while still beeing able to talk to the internet. Additionally the PC/Pi is able, too.

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


text:
How to determine which app is causing vibration?
I have a Moto G6 Play that vibrates like it is getting notifications but it's not. The vibration is inconsistent and seems random so I would like to know if there is a logcat or something I can run to log which app is calling the vibration so that I can shut it off? The same thing happens on my wife's phone, same model, and it does my head in. The device is running Android 9.

In addition to the dumpsys method explained in the other answer, you can use Android's hidden (kind of) permission manager appops to get recently allowed vibrator requests, e.g. in last minute. From adb shell:
for pkg in $(pm list packages | sed 's/package://')
do
    echo "$pkg $(appops get $pkg VIBRATE)" | grep 'time=+[0-9]*s'
done

pm is the package manager which lists all installed packages. appops determines when last time each package made a vibration request and if it was allowed or rejected.
Result can be further filtered by piping output through awk '{printf "%-12s%-20s%s\n",$3,$4,$1}':
allow;      time=+15s659ms      com.termux
allow;      time=+6s458ms       com.google.android.inputmethod.latin

Termux made a vibration 15 seconds back. Also the request can be denied:
~$ appops set com.termux VIBRATE deny

Now the output will be like this:
deny;       time=+9s500ms       com.termux
allow;      time=+6s392ms       com.google.android.inputmethod.latin

And a shameless self-promotion. If not comfortable with CLI, you can use my open-source app Permission Manager X to get and set AppOps:

To clarify, will I need root access to run that command or will an up to date adb installation suffice? Thanks again.

@Badger all commands work without root on adb shell, but not on a terminal emulator app.

The next time your device vibrates, connect it to a PC with adb already setup, and issue this command:
adb shell dumpsys vibrator

In the output, along with the pattern of vibration  you would be able to see the UID and package name of the app that caused the vibration in the device recently. For example, in my OnePlus 6 (Android 8.1.0) device it showed this output:

Previous vibrations:
  , startTime: 95325556, effect: Waveform{mTimings=[0, 250], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 5, uid: 10122, opPkg: com.textra
  , startTime: 95346005, effect: Waveform{mTimings=[0, 250], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 5, uid: 10122, opPkg: com.textra
  , startTime: 95428005, effect: Waveform{mTimings=[0, 250], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 5, uid: 10122, opPkg: com.textra
  , startTime: 95516412, effect: OneShot{mTiming=50, mAmplitude=-1}, usageHint: 0, uid: 1001, opPkg: com.android.incallui
  , startTime: 95572994, effect: Waveform{mTimings=[0, 250], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 5, uid: 10122, opPkg: com.textra
  , startTime: 96868723, effect: Waveform{mTimings=[0, 250], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 0, uid: 1000, opPkg: android
  , startTime: 97144598, effect: OneShot{mTiming=200, mAmplitude=-1}, usageHint: 0, uid: 10130, opPkg: com.phonepe.app
  , startTime: 97187986, effect: OneShot{mTiming=200, mAmplitude=-1}, usageHint: 0, uid: 10130, opPkg: com.phonepe.app
  , startTime: 98229901, effect: Waveform{mTimings=[0, 300], mAmplitudes=[0, -1], mRepeat=-1}, usageHint: 0, uid: 10133, opPkg: com.arlosoft.macrodroid

The string next to opPkg: is the package name of the app that caused the vibration at a certain time. The list is in chronological order with the most recent entry at the bottom. To get the app's name out of the package name, see my answer here.

On Pie I get human readable time: startTime: Aug 10, 2019, 2:05:20 AM, effect: Prebaked{mEffectId=0, mEffectStrength=1, mFallback=true}, originalEffect: null, usageHint: 13, uid: 10151, opPkg: com.google.android.inputmethod.latin


text:
Is there any options to Boot Android device on connecting to power supply without root?
I wish to know if there is any options to boot android device automatically on connecting to power supply. i am not considering rooting options as i was planning for production application.
I have tried to enter into fastbood mode without much success .. trying on samsung galaxy tab A.

Boot from powered off state? Not possible without root. Except if hardware/ROM/bootloader already support the feature. My answer explains what's the minimum requirement to achieve this: Automatically power on Android when the charger is connected

@IrfanLatif  I have tried to enter fastboot mode without success .. updated image from my tablet as well .. any help would be highly appreciated ..  its not detecting in fastboot mode

Samsung devices have odin mode, not fastboot. You can search about it. I don't have any personal experience with Samsung devices.


text:
Apps automatically start at bootup
Up until recently whenever I started Android up on my phone, no apps were started with it. Now, since an update I assume, whenever I turn my phone back on, any apps that were on when I turned it off get automatically restarted.  This drives me crazy. Is there some setting to turn this off? This is on a Moto G Power phone Android 10, patched Sept. 1.  I have gone through all the settings I can find with no luck.

People are still misunderstood about the notion of Recent apps functionality. It has always been the same! This is very similar to an OCD of pressing F5 on a Windows based system to boost up the system.
Recent apps is more of a utility feature in android and not a task killer. There is however no relation to the apps actually running in the background.
When you reboot your phone the RAM does start with a clean slate and this is no different for Android L release too. Some apps will always start after a boot and that is how it works. The system makes some apps ready for use in that way.
Recent apps is just a list of apps that you have recently used and not those which are necessarily sucking up on your RAM. For a real RAM usage, look up the list of running applications and not recent apps. No new way of handling RAM has been introduced in Android L as well and it is just an idea of keeping the list of recent apps persistent now. For an analogy think of recent apps like a web browser history and not the open tabs that you can switch to anytime. Apps are loaded/stored into the RAM as and when needed.
On the contrary a better notion would be to use RAM to its optimum use. Linux based systems are designed to work that way. Say you have 100 of the apps installed but use 6-10 apps very frequently and on daily basis. Eventually these apps are automatically managed and stored by RAM for quick access and loading. Loading an app when RAM is in clean state consumes more battery and resources than rather loading it from cached state. The more you use the system the better it gets.
Android manages the memory itself pretty well. The least you can do is close some of the apps yourself when not needed. We need to stop worrying about the number of applications running in background and just let Android be Android.
Source


text:
What is the way to debug multiple android device ie more than number of ports in PC in parallel?
I need to connect 10 device via usb at once. Does adb detect multiple android devices connected via usb hub?
I have explored connecting via tcpip one by one using the existing ports, but the problem is if the LAN is not very stable , it gets disconnected and I have to connect all over again. If I could connect all my devices via usb hub I wont have that issue.
I have gone through this issue: Using USB peripherals with hardware debug

ADB should detect multiple devices (check using adb devices) on USB, have you tried it? However, it depends on the USB hub and ports whether they provide enough power for multiple devices to be detected.

afaik all devices must set to same port (5037 or 5555) and connected via -s

A related post on Stackoverflow says that by default adb can handle up to 15 devices. If you need more you have to start separate instances of adb.

@AndrewT. That's what the question is for, if you can check adb devices and update the answer, I can place an order for a USB hub on amazon.

@Robert Yes I have gone through that answer, but doesn't answer whether the devices connected via hub are automatically detected or do we need some sort of driver to get it going.

@Boladin The USB standard defines that USB hubs are transparent for the the PC and the devices. Therefore it does not make any difference if you connect a device directly or with 6 USB hubs in between.

@Robert Thanks for confirming, even my understanding was hinting so. Before placing an order for a USB hub, I just wanted to confirm from someone who have tried debugging multiple devices in parallel connecting via USB hub.

@Boladin FWIW, I've debugged more than 1 Android devices connected to a hub on Macbook. All of them were detected, but Mac disabled them soon afterward because they used too much power. That's why I mentioned the "provide enough power" remark on my previous comment.


text:
How can I enable usb debugging on a broken phone?
My android mobile is accidentally broken. And the usb debugging is set to off. If I can enable it I could use it through visor in PC. But can't do it now. :( I don't have OTG supported too. My android version is 7.0 Nougat. The manufacturer is Symphony LiteTel. Model: Symphony LiteTel - LT4502 Is there any way? :(

The Android version is important, therefore thanks for including this info. However every Android device can be seen as unique, therefore you should additionally name the manufacturer and the exact model name of your device. Otherwise the answer is just "may be".

@Robert, I've added those information. Could you please check?

I thought may be your device has an MTP chip which allows to flash a custom firmware with pre-enabled adb. But your phone seems to be very special not even find some detailed tech specs. Hence this won't work - sorry.

:sob: @Robert thank you.

Related: Can I enable USB debugging using adb? // Broken screen while debug mode was disabled. How can I re-enable adb? // Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen and probably more in the resp. "related" sections, as this is a question coming up frequently.

you can't do much because device has locked bootloader
well. so spoken, you can't do much wrong and can try something stupid ;) basically adb can be enabled by modifying boot or system partition. but locked bootloader means no modifications allowed.
some older devices have no protection for flashing modified partitions, only avb/dm-verity will deny boot in such case.
however, Magisk is able to by-pass dm-verity in some cases. most likely you will brick your device with this method, but give it a try (you can repair it by restoring official partitions)

download latest platform-tools

get a flash tool for your device. for Spreadtrum/Unisoc chipset it's SPD Upgrade Tool (make sure you download latest version)

install Spreadtrum USB drivers

download stock ROM according to your current android version / build number (you can check from fastboot)
fastboot devices
fastboot getvar all

in UpgradeDownload.ini (SPD_Upgrade_Tool) change the following flags
Repartition = 0
ShowOtherPage = 1
CanEdit = 1
CanSelect = 1

extract the stock ROM and find the boot.img (you will patch) and the userdata.img (you must delete) in SPD ImageFiles/_DownloadFiles

1. Magisk root + enable usb-debugging + by-pass dm-verity

unpack the boot.img with any ramdisk tool
(i recommend AIK unpackimg.bat)

modify default.prop to enable adb
(use Notepad++ for correct line ending LF)
ro.secure=0
ro.adb.secure=0
ro.debuggable=1
persist.sys.usb.config=mtp,adb

repack ramdisk/kernel and copy image-new.img to any android device (android 7.0 recommended)

install Magisk Manager and patch the image file with settings "keep AVB/dm-verity" and "keep force encryption"

goto settings - about device - tap build number 7x (seven) times and enable usb-debugging in developer options

open cmd.exe, navigate to platform-tools folder and copy magisk_patched.img back to PC
adb devices
adb pull /sdcard/Download/magisk_patched.img

2. now comes the tricky part. you must flash that file to your broken device (boot partition). that is untested and may fail

open SPD Upgrade Tool - Settings - Main Page. uncheck all entries that do not apply to boot partition

especially make sure all entries related to "Erase" or "UserData" are removed. you only want to flash boot (not to confuse with uboot)

select magisk_patched.img from platform-tools folder and replace the original boot.img in the proper entry

Power off your device. connect your device. start the flashing process

finally, reboot your device and check adb connection
adb devices
scrcpy

if no adb connection that means the bootloader does not allow modified partitions and your device is bricked now
unbrick by flashing the original boot.img (see step 2)
make sure never flash userdata you will lose all data

https://www.xda-developers.com/scrcpy-control-android-on-pc

thank you so much for your contribution. I don't know if I could do this or not. But I'll try.

can confirm this method works 100% for Lenovo Tab 7 Essential (TB-7304F) and Cubot King Kong B-1 (X511) both with MTK SP Flash Tool


text:
No spell checker is showing (English)
I'm using this phone: https://www.infinixmobility.com/smartphone/smart-5/specs
But I don't see any spell checker in it.
In Settings > System > Languages & input > Spell checker,
It should show Google Spell Checker here I guess.

That's why, it's not showing red underline with the misspelled word.

The blue underline is from Gboard I think. But why there is no spell checker?
Is it a bug? Looking for help. Thanks in advance.


text:
How to have an App Factory wait for 30 minutes before performing the next action?
I learned that app factory apps should run in the background no problem, but if that's the case, I'm wondering why the simple app I created randomly restarts when it includes a 30 minute waiting action. When I take it out, it works (starts does its job and stops in a matter of a few seconds). But I'd like it to do another action after 30 minutes and that's when it keeps restarting several times during that 30 minute period. (And by restarting I mean that it re-executes the actions listed before the 30 min wait.)
Any suggestions how to stop it from doing this (or an explanation why it is doing this)?
Here is the XML of a MWE. (Remember that you need to export this as an app in order to reproduce the issue. Running it in Tasker seems to work fine.)
<TaskerData sr="" dvi="1" tv="4.8u4">
<Project sr="proj0" ve="2">
    <cdate>1463986944702</cdate>
    <name>MWE</name>
    <tids>7</tids>

        <nme>cust_warning</nme>

</Project>
<Task sr="task7">
    <cdate>1463986956333</cdate>
    <edate>1463987117854</edate>
    <id>7</id>
    <nme>MWE</nme>
    <Action sr="act0" ve="7">
        523
        <Str sr="arg0" ve="3">Start</Str>
        <Str sr="arg1" ve="3"/>

        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
        <Int sr="arg5" val="3"/>
    </Action>
    <Action sr="act1" ve="7">
        30
        <Int sr="arg0" val="0"/>
        <Int sr="arg1" val="0"/>
        <Int sr="arg2" val="30"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act2" ve="7">
        523
        <Str sr="arg0" ve="3">End</Str>
        <Str sr="arg1" ve="3"/>

        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
        <Int sr="arg5" val="3"/>
    </Action>
    <Action sr="act3" ve="7">
        137
        <Int sr="arg0" val="0"/>
        <Str sr="arg1" ve="3"/>
    </Action>
</Task>

I'm not sure if the entire XML is necessary. To reproduce the issue try the following MWE: set up a single task consisting of 4 simple actions of which the second one is "Wait 30 minutes". Let's say, the first one issues a notification saying "start"  and the third one does a notification "end". The last action is stop. Now export the task as an app and start it. What does it do? In my case, I get multiple "start"  notifications before the end notification shows up.


text:
Google Photos deletes copy and original on device
I'm facing a very strange issue with the Google Photos app. Every time I copy an image with "copy to folder" (specifically not "move to folder") and then delete either the copy or the original image, both are gone.
In the trash only one image appears after that. If restored both images are back.
This is not the behavior that I natively expect. When I delete one image, I want the other one to still remain untouched in its folder.
I have searched for a solution myself, but was unsuccessful. (I only found unanswered threads like this one.)
My question is: Why is this happening and is there a way to change this behavior?

Google Photos version: 5.23.3.348108244 (newest to date)
Android version: 10

After a while of trying around, I found a solution.
This behavior of the Google Photos app seems to be intended, because it is more an interface for the network service to synchronize images, and less of a gallery app. It keeps track of exact copies and synchronizes them as one. Therefore they are deleted as one instance, even though they are stored multiple times on the device.
Nevertheless, there is a (rather hidden) function implemented that does exactly what I wanted instead.
Instead of using the trash icon...

                            Screenshot of a device folder opened with Google Photos. Trash icon highlighted.
... under the available options, when an image is selected, there is a "Delete from device" option doing the trick:

        Screenshot of a device folder opened with Google Photos. Option menu open. "Delete from device" highlighted.
Note: With this method the image remains in the cloud even if it's removed from all synced folders.
I hope I could help someone who has encountered the same problem.


text:
Microphone not working properly during call (LG G2)
I have an LG G2 (d802) with a rooted Lollipop rom installed. During any call the person I'm speaking with has difficulties hearing my voice due to stuttering and distorted sound. Sometimes they stop hearing me altogether and I found out that if I mute and unmute the microphone it starts working again for a very brief period of time. Before dispatching it to the repair shop, is there anything I can do to try and fix the problem? To rule out any (possible?) software bugs. Thanks

Give Microphone Guard app a try.
My Mobile was working only on Loud-speaker (software issue) and it helped me.

Could you please explain in which way it did help you? Were you able to fix the microphone issue? Looks like this app prevents eavesdropping, not what I need.


text:
Fastboot commands hangs
I have an LG G2 and Windows 7 operating system, I've been having this problem on Linux too. Basically Any command I issue to the phone with fastboot gets stuck at some point. If I try to flash recovery fastboot hangs at writing 'recovery'
fastboot devices returns a question mark.
I have usb driver installed, Adb sees phone during normal operation (I'm on on Windows-7), fastboot doesn't see it when in fastboot mode. If I try to use Android SDK latest usb drivers Windows 7 says it has already the latest drivers for my phone.
This is what happens when I send fastboot flash recovery recovery.img
target reported max download size of 1862270976 bytes
sending 'recovery' (11056 KB)... OKAY [ 0.406s]
writing 'recovery'...

And then the process hangs there. There was a time when doing the same operation yielded the error message "too many links" or something similar I cannot remember exactly or reproduce it again.

Adb sees phone during normal operation, fastboot doesn't see it when in fastboot mode. I read on another question that the device while in fastboot mode has a different id than when operating normally. I'm going to reinstall the drivers and see what happens.

did you find a solution for this?


text:
Device is not finding a new software update
I want to update my galaxy tab 4 to Marshmallow or at least Android 5.0.0. I currently have android 4.4, but when I use Kies3, or from the device, it cannot detect that version. Help?
Edit: This is not a duplicate; that question is something and this is something else. I am asking why I'm not getting the update, that post is an unofficial claim of devices that will get the update. The post doesn't even include my device.

Exact model number of your device please? Or atleast the screen size and if it is a 3G/LTE/Wifi only model :)

@benjaminS SM-T230NU. I want at least Android 5.0

Quote from the linked question/answer: "Just because a new version has been announced doesn't mean it's immediately available for your device. Even when a particular OS update is announced for your device, it is almost always a phased rollout, meaning that it could be days or weeks from the official release for it to be available for you."


text:
Hidden alarm at everyday 12AM
I have the Lenovo Moto Z Unlocked with sadly still Android M.
There's a hidden alarm everyday at 12 midnight, and it doesn't show it in the original clock app, which I haven't used an app other than that for alarms.
How can I diagnose this problem?

I found the problem. It turns out TimeTune was doing this (even though it is only a reminder app). I uninstalled and it disappeared.

It turned out to be TimeTune for me too. The 12am alarm was showing on my lock screen. Uninstalling the app removed the hidden alarm from bring displayed on my lock screen.

What was your way of discovering it?

Check for Google Calendar or any other task app that you have installed. Possibly you might have setup notification as daily and time might have be automatically selected as 12 PM.
Do remember that Factory Reset is the final resort to solve your issues, including this one as well.

I haven't used another app for alarms.

I did everything that anyone in any sites suggested but it didn't solve, then I uninstalled clock app updates,restart the phone,and the hidden alarm disappeared!


text:
Spam alerts in notification bar

Possible Duplicate:
Is this red star icon malware? How to get rid of it?

I get spam alerts about free ipads and typical junk like that on my notification bar when I start my droid. This also happens when I first connect to WIFI on my home router (secured). I use a DROID X.

Sounds like you might have installed an app that's using Airpush.

Get this Air Push Detector app to find out what is creating those notifications.
Then uninstall the app(s) that are creating them.

What if Air Push Detector doesn't find anything, but you're still getting the ads?

The AirPush Detector App is way to go (+1 Bryan).
It very nicely also lets you quickly uninstall the offending app.
Just in case people are looking, there is also an Airpush Permanent Opt out from AirPush.com;
they also suggest entering your IMEI at their site...
I have not done either and suggest you do not do such things too.
In a way this seems like an anti-answer; I suggest you use Bryan's way over AirPush's one to opt out. Hope the Irony is not wasted.

Agree with the Airpush suggestions. One way to find the offending app is to look at the list of running apps and kill them one by one until the notification disappears. Note, when this happened to me, it was from a First Aid app that I've since uninstalled.

This Problem solved in Android 4.1.
its about hold on the notification and you will get the application information.
you can disable the Application notification.

Adding the option that you can manually opt out of airpush notification by going to http://m.airpush.com/optout and click the "manual opt-out" button.
You enter your IMEI (found in the "About Phone" info screen).


text:
Bootloader is unlocked, fastboot returns ''FAILED (Remote: Verify state locked)
I am trying to root my Vivo V11 with Android 10. The bootloader is unlocked. It says so in the dev settings, and I have to go through the warning prompt every time I reboot my device. When I run the fastboot command to flash the patched_boot.img file, it returns:
C:\Program Files\Minimal ADB and Fastboot>fastboot getvar unlocked
unlocked: yes
finished. total time: 0.002s

C:\Program Files\Minimal ADB and Fastboot>fastboot flash boot patched_boot.img
target reported max download size of 134217728 bytes
sending 'boot' (38579 KB)...
OKAY [  1.269s]
writing 'boot'...
FAILED (remote: Verify state locked)
finished. total time: 1.276s

Things I've tried to troubleshoot:
Running cmd as Administrator (im using win10)
Confirmed OEM unlocking is turned on in the dev settings (it is, it says "bootloader is already unlocked"
Confirmed USB debugging is on
Disabled "Verify apps over USB" and "Verify bytecode of debuggable
apps" in the dev settings.
Confirmed file transfer is enabled from my PC and my Phone (it is, I can transfer files back and forth between them)
Tried a different USB cable
[EDIT]
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\adb devices
List of devices attached
ZDIBLVIRY5DIJBEI        device

PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\adb reboot-bootloader
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\fastboot devices
ZDIBLVIRY5DIJBEI        fastboot
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\fastboot flash boot patched_boot.img
Sending 'boot' (38579 KB)                          OKAY [  1.272s]
Writing 'boot'                                     FAILED (remote: 'Verify state locked')
fastboot: error: Command failed
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\fastboot flash vbmeta vbmeta.img
Sending 'vbmeta' (4 KB)                            OKAY [  0.009s]
Writing 'vbmeta'                                   FAILED (remote: 'Verify state locked')
fastboot: error: Command failed
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\fastboot --disable-verity flash vbmeta vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB)                            OKAY [  0.010s]
Writing 'vbmeta'                                   FAILED (remote: 'Verify state locked')
fastboot: error: Command failed
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools> .\fastboot --disable-verification flash vbmeta vbmeta.i
mg
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB)                            OKAY [  0.009s]
Writing 'vbmeta'                                   FAILED (remote: 'Verify state locked')
fastboot: error: Command failed
PS C:\Users\Himanshus\Downloads\platform-tools_r30.0.5-windows\platform-tools>

Does this answer your question? Android Verified Boot and generation of vbmeta image

@alecxs I tried flashing a empty vbmeta.img but while flashing it the result is still same. While writing 'vbmeta' it says failed verify state locked

use official platform-tools and fastboot with proper flags

@alecxs i have edited the post for results it still can't verify

try fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img and don't use Powershell btw, run C:\Windows\System32\cmd.exe as Administrator

@alecxs still same error. Does it has something to do with device. I have Vivo V11 with android 10

readback boot + vbmeta from SP Flash Tool. open the dumped files with hex editor and double check the dumps are identical with stock ROM (to confirm the scatter file fits your phone) - then - and only then - flash vbmeta_disabled.img from SP Flash Tool. always make sure to flash in "Download only" mode only. always uncheck preloader. try to boot. finally patch the dumped boot with magisk manager and flash magisk_patched.img


text:
Google Play Services High Internet Consumption
I've been using CyanogenMod (version 12.1-20150901) on my Nexus 5 for around a year and things were running perfectly until last month, when my data plan had been completely used up after a couple days.
At the beginning I blamed it on activating my phone's wi-fi hotspot and downloading some files. So I waited the rest of the month for the plan to reset. Once it reseted, I decided to activate the 3G and while I left my phone unattended, in less than 12 hours, my phone had consumed +400MB!!!
Taking a closer look the Android OS had been used more than 10GB of wi-fi over the last month (I don't have any games, web browser nor audio/video application for this to be possible!). Looking back, this behaviour seems to have started between the 7th and 14th of May.

So as some android forums suggested, I decided to install "Onavo Count" to find the culprit. It turned out to be Google Apps/Google Play Services:

Onavo registered that Google Play Services had consumed 189MB of my data plan just a couple of hours I had it installed! I turned off the 3G immediately, but still after 3 days, Onavo registered it consumed 1.8 GB of Wi-Fi...
I've looked through many forums, yet none has been able to provide a solution that works for me.

Some suggest one should restrict the app's background data, but that doesn't solve the high Wi-Fi consumption problem...
Others suggest upgrading CyanogenMod to the lastest stable build (v 13.0-20160418), but that broke completely the functionality of all Google Apps (constant crashes that make the phone unusable... luckily I did make a backup... backups are good).
There are suggestions of removing permissions and functionality, but I've played with every setting and removing all Google Play services functionality to no avail...

Has anybody encountered this problem and has been able to solve it?

TL;DR:

Install Autorun Manager (you must have root access)
Go into the settings and enable "Show System Entries" and "Enable system app disable"
Disable permissions for "com.android.gsf.update.SystemUpdateService$Receive" and "com.android.gms.update.SystemUpdateServiceReceiver"
Sigh in relief as your mobile plan is freed from Google Play's insatiable hunger for data.

After a long afternoon of googling, I ended up finding some old but interesting thread on reddit from 2013 that detailed a problem very similar to mine. Although they talk about the Nexus 4, what they discussed seemed to apply for my Nexus 5.
Caseyls, the original poster, seemed to have concluded that the problem is that Google Play services is constantly downloading an update:

[...] Your phone is trying to update to [a newer version of Android]. It downloads the update files, but then when it goes to try to tell you to update, [some] of the files are [missing]. [... Then] your phone deletes the update files, and tries [to download them] again. And again. And again.

The poster suggested solutions were pretty much the same ones I found all over the internet, but an user named Dourel suggested something useful they found on XDA:

Install Autorun Manager from the Play store. Then enter its recommended advanced mode. Go into the settings and enable the following : system entries and system app disable. Disable com.android.gsf.update.SystemUpdateService$Reciever under Google Service Framework

So as it was suggested, I installed the app and enabled the options "Show System Entries" and "Enable system app disable" in the settings, like in the picture below:

Then looked for Google Play Services in the list of apps, expanded its contents, and looked for "com.android.gsf.update.SystemUpdateService$Receive". Sadly, as the first picture below shows, that permission had already been disabled in my case (don't know how that happened though). So I thought I was back at square one.

But I wasn't going to give up just yet. Searching more thoroughly I found out there was another service called "com.android.gms.update.SystemUpdateServiceReceiver" that was checked on. So naturally I checked it off. To test it whether it worked or no, I left the Wi-Fi on all night and crossed my fingers for it to work.
The next morning, Onavo Count (the app I mention in the question) reported that no substantial amount of Wi-Fi data had been consumed, so I proceeded to test leaving the phone's 3G data plan for the rest of the day (Wi-Fi off of course). To my rejoice, as of tonight (12 hours later), my data plan has barely even been used. Less than 1MB was consumed all day! Yay =)
So that's it! The most effective solution I could find to stop this madness. I hope it works for anybody else.

Take a look at MY ANDROID TOOLS by WangQi. It allows you more freedom than Autorun (from personal experience). Sorry I couldn't include a link at this time, it's on Play Store and XDA forums.

I don't know about the freedom, but it certainly has a better UI. Looks like a good alternative to me =)

Restrict your data usage for application which are using data too much , You can also set data limit for a day so that if in a single day if it crosses the usage limit, it automatically turn off mobile data or wifi .

That's the first suggestion I found, but it isn't a solution, it is just a quick patch. I don't want to put an usage limit just so that Google Play Services reaches it (because it will reach it in less than a couple hours) and I end up being unable to access the internet.

authors: Альбіна Драпкіна


text:
How to switch Google Japanese keyboard to romaji input instead of hiragana?
I just got a new phone so I had to reinstall my Japanese IME and it has a kana layout kinda like a flip phone too. I heard that the Google IME will let you use romaji input like a regular keyboard, but how do I switch it?

Google Japanese Input currently supports 3 layouts:

12 keys: Mobile phone layout
QWERTY: PC keyboard layout
Godan keyboard: Romaji-dedicated layout

You can change it from Settings - Language & input - Google Japanese Input - Keyboard layout.

I hear you. It is super simple to switch from Hiragana to Romaji.

Go into Settings
Go into Language and input
Go into Google Japanese Input
Go into Keyboard Layout.
Use these settings to switch the keyboard.

May I assume that you know how to read the 5x10 kana array?
If so, leave the 22-key layout as is (for Japanese anyway) and learn how to use "flick input." The keys are bigger, and there's less motion than using all those CV and CCV combinations.
Taking the 2 key, for example:

Tap the key for か
Flick left for き
Flick up for く
Flick right for け
Flick down for こ

Converting the hiragana into kanji whatever is as before.
When switching to English, there are two buttons for returning to your QWERTY layout: the globe and ABC.
https://files.tofugu.com/articles/japanese/2016-04-18-how-to-install-japanese-keyboard/android-typing-ku.jpg


text:
Using Hound/Cortana hands-free in the background like "OK Google"
On my Nexus 6P, I can (obviously) say "OK Google" to summon Google's voice assistant hands-free, without unlocking my phone or opening an app. I really want to use this with an alternate voice assistant as well. Is there a way to launch a voice assistant app (like Cortana or Hound) on my phone with a summon command, as I can do while in the app (at least with Hound)? Is there an app that will let me do this, or is there a setting in one of those voice assistant apps that I overlooked that would enable me to launch Cortana/Hound with "Hey Cortana" or "OK Hound" from my lock screen?
I really used to think that there was a setting on Android to change your default voice assistant, but I now can't find anything like that.
Thanks in advance!


text:
Error deleting Google account from Samsung Galaxy S4
I recently upgraded my Samsung Galaxy S4 to Android Lollipop (5.0.01).
I created a new Google account and then added it to the device; when I triee to delete the old Google Account from the device I didn’t succeed to access to the google account. I went into settings>accounts>google account, and an error popped up: "Unfortunately, Settings has stopped." Is there any other way to delete the Google account from my phone?
Thanks in advance.

In case nothing else helps, you can always factory reset the device, that's gonna do the trick for sure. Keep in mind that this will delete all of your data and everything else, too, so just use this as a last resort.
The only other thing you could try to do is to delete the data of the settings/account related apps, but that's also potentially risky, so make a backup of everything first.


text:
Stop Android Wear Time to Leave Notifications
On my Moto 360, I get time to leave notifications repeatedly. Anytime I have an event on my calendar with a location, I'll get multiple alerts from the Google app about when to leave for it.
So, if I have a dinner at 6pm at a certain restaurant, it'll buzz at least 5 times earlier in the day (often much earlier, like at 1pm that day) telling me the estimated time I need to leave at to arrive on time for the dinner. This is incredibly annoying and I can't figure out how to get it to turn off save for blocking the Google app from sending me notifications at all (something I'd rather not do).
I have time to leave notifications off in the Google app on my phone (Google app -> Settings -> Notifications -> Time to leave -> off) and thus don't get such notifications on my phone (but they do show up on my watch).
Here's what the notifications are like on my watch:

How can I stop these notifications from appearing and buzzing my wrist?

No answer yet!! Really looking for anything.

Maybe this app can help? I don't own a smartwatch to try

@beeshyams I don't think so :/. It doesn't appear to be able to block notifications, the system vibration for it still vibrates (I can filter out an extra vibration for it though).

Thanks. I was hoping it coul. Vibration can be controlled through automation app but I don't know how to kill it since it shows up on smartwatch only and not on device

I haven't seen similar issue yet. So, I am not sure of the answer but you can:
Make sure you are on the latest Android Wear app update
Make sure you are on the latest Android Wear watch update
Make sure your watch is paired with your phone or tablet
Check that your phone is connected to the Internet
Make sure your watch isn’t in Theater mode
Make sure that you’re getting notifications on your phone (vibrate mode is on)
Make sure that you’re getting notifications on your phone
Make sure app notifications and system notifications on your phone are turned on
Try restarting your watch
If none of this works, then try  unpairing and pairing again
Another tip that some users experiencing this recommended:

Go to the watch -> Settings -> Permissions -> System Permissions -> Google Services Framework -> read instant messages ENABLED.
Restart phone and watch.

If Nothing works at all, wait for future updates!
Hope it helps.

What does allowing Google Services Framework to read instant messages do? Why would I want to enable that?

Well, I enabled it and I'm still getting Time To Leave notifications, so this doesn't work.


text:
Bluetooth Headphone & Phone BT Media Volume Controls Now Separate
I have a pair of Bluetooth earbuds and a pair of Bluetooth headphones I use with my Nexus 6P running Android Nougat (7.1.1).
Two weeks into using the earbuds with my phone back when I first got them, the audio volumes separated: during the first two weeks of use, changing the volume with the buttons on the earbuds would directly change the volume of my phone and there was only one volume control (directly changed by both phone and earbuds). Unexplainably, while I was listening one day, the audio volumes separated: my phone's bluetooth audio volume has a range and the earbuds have their own (the buttons on the earbuds now control an imaginary volume slider that changes their volume but not the volume on my phone). Then the same thing happened two weeks into using my headphones: the buttons on the headphones used to control my phone's BT audio slider, but now change the volume without changing the BT audio slider (each has to be at 100% to get maximum sound now).
How can I stop the audio volumes from being separated between my BT earbuds/headphones and my Nexus 6P and why would they have separated in the first place? Basically, how can I make the volume controls on my Bluetooth devices control my phone's BT volume again?

Also see: https://android.stackexchange.com/questions/146323/unsync-bluetooth-audio-volume-control

@Nick I have the exact opposite! 1 -> 2 instead of 2 -> 1. And does not correspond to a software update.


text:
Should I transfer my photos via Samsung Smart Switch, when I sync them via Google Photos anyway?
I sync my photos (and videos) via Google Photos on my old Android device (Sony Xperia) and I plan to continue using Google Photos with the same Google account on my new Samsung Galaxy phone.
When I set up my new Samsung Galaxy phone I want to transfer all my data from my old Sony phone to the new Samsung phone.
Will I get duplicates if I simply transfer all data including images (and videos) via Samsung Smart Switch from the old to the new phone, once I sync my new phone with my Google account?
(Also for WhatsApp I want to restore my chat history including photos from my Google Drive Backup, while the WhatsApp photos are also synced via Google Photos. Will this result in duplicates?)
Are these duplicates resolved automatically or what is the best solution to avoid duplicates?


text:
FAILED (remote: Partition should be flashed in fastbootd) PIXEL 3XL Android 11 FAILED (remote: 'Operation not permitted')
Could someone help me with the following problem:
I want to flash my pixel 3XL with AOSP precompiled images in android 11, but it gives me this error:

I have fastboot version 1: 8.1.0 + r23-5 ~ 18.04
and adb version:
Android Debug Bridge version 1.0.39
Version 1: 8.1.0 + r23-5 ~ 18.04
I have a problem when executing fastboot flash on my pixel 3xl, it returns the following error:
Writing sparse 'system_a' 4/6                      FAILED (remote: 'Operation not permitted')

someone help me with this error.


text:
Block "Mobile Data Turned Off" Notification
I keep getting this one notification from Call Services on an AT&T LG G5 that says "Mobile Data Turned Off." Indeed, mobile data is turned off when I switch from cellular data to a wi-fi connection, but I don't need this notification. How can I stop this notification from appearing?
My one thought would be to have an app that blocks notifications that contain that certain text, but I haven't been able to find an app that does this. Notifications from Call Services can't be blocked in Notifications settings.

If the device is rooted, then you can try Xposed module NotifyClean.

@Firelord Thanks, but not rooted! Any other ideas?

Is it a sticky/permanent notification or can you swipe it out when it occurs? In the latter case, you can setup MacroDroid to detect the notification and automatically and immediately swipe/cancel it out for you.

@Firelord I can't swipe it away, sadly. It never happened on phones with Lollipop, only now on Marshmallow.


text:
How to block specific notifications from an app?
A certain app I use gives me crucial notifications that I need, but also notifies me almost daily that over 80% of my RAM is used. I would like to allow this app to send me all notifications except those that contain the string "80% of your RAM" in the text of the notification.
Obviously, there is no way to filter a certain app's notifications in stock Android (other than blocking all of a certain app's notifications, but that's not what I want!), but is there a way that I can block notifications if they contain a certain string of text?
Nexus 6P running Android Marshmallow 6.0.1, if you're curious the app in question is CM Security.

I suggest you use MacroDroid or a similar app, such as Automate.
MacroDroid defines a set of trigger(s), action(s) and constraint(s) as a macro. You must enable Notification access permission and Usage Access permission in it.
You would be needing the following macro.

Trigger:  Notification → Notification Received:

From: choose your app
Text Content: here's where you can play. Choose Contains or Matches to filter your text specific notification.

Action:

Clear Notifications → Select Application(s) → select your app → provide the filtering details again

Constraints: none

Save the macro and you're good to go.
Note: MacroDroid can remove sticky/persistent notifications only in Android Oreo and above.

Update in 2022: this solution reportedly worked on Galaxy S10+ (presumably running Android 12) too.


text:
Stuck in bootloop after flashing ROM
I was flashing a custom ROM on my Samsung Galaxy Star Pro and now it is stuck in boot loop.

I don't have a backup of my previous ROM.
I can not boot into recovery as one of the volume buttons is damaged yet I can boot into odin mode.
I tried flashing stock ROM with Odin but it didn't work.
Inspite of all that, the phone charges when I connect charger when and it is off.

Can someone help me fixing it? Thanks in advance.

You've gotten yourself in a pretty bad state. Always, always, ALWAYS do a full backup if you plan to change anything at the phones system!
Which ROM have you tried to flash? Re-check, if it is specifically for your device and a stable build. If it's not, flash the latest stable build for your device instead. If that doesn't work, you could try to flash a different ROM - but without Backup and Recovery I don't know much more you could do.


text:
Import Photos from Iphone to Android
I've been trying to access the wedding pictures I stored 5 years ago. I was an iPhone user, but now I'm using an LG K10 Android.
I know the photos were store on either iCloud Photos OR Photostream in my old iPhone. I don't know if I can import them to my Android phone. I do not have access to a PC with internet access. Can anyone help me?

We know you fell distress, but please don't spam caps.
To be able to help import the pictures we would need to know with certainty where are your photos stored, otherwise we would be be just making wild guesses...

The easiest way to get all your pictures from you iPhone to your LG is to use Google Photos. This does requires a gmail account. If you don't have one, its free to set up.
On your iPhone:

Download Google photos (if not installed already)
In the Google photos app, tap Menu (3 horizontal lines)
Select Settings then Backup and Sync
Switch it on
Allow permissions, if required

On your LG:

Download Google photos (if not installed already)
Repeat steps 2, 3 and 4 for iPhone
Your pictures should be on your LG

Hope this helps!


text:
Samsung Galaxy Core Prime wont turn on
My Samsung Galaxy Core Prime wont turn on. It goes past the Samsung logo and then goes to the metro pcs sign, but it stays there vibrating until it dies.
It charges but wont go past the metro pcs sign. I tried to restart it, and did a few hard resets. I even took the battery out. I really need help with this.

Try flashing the os again.

Did you try to flash something or root it. sounds like your caught in a boot loop. if your boot loader is unlocked download the firmware for your device at http://www.sammobile.com/ and use odin for windows to flash it

authors: Александр Рудольфович


text:
Restore Whatsapp data
I have formatted my mobile and have backed up my Whatsapp Messenger,  but unfortunately my pics and videos were not backed up in the process. I do not have old backup file of Whatsapp messenger in my mobile memory as I had it formatted.
I tried to restore from Whatsapp messenger backup from google drive but its restoring only few of the images
Kindly help me to recover all my lost video and images.

WhatsApp lists only 2 ways to restore previously backed up WhatsApp data.

Google Drive
Local Backup
The following is an excerpt from a chat with WhatsApp customer support team with regards to chat restoration.

You may only restore your local backup by using the same mobile telephone number as stored in your previous backup. If you are trying to restore from Google Drive, please make sure you are using the same mobile telephone number and Google account used to create the backup.
    Please make sure your WhatsApp backup files are stored in WhatsApp/Databases folder. The location of WhatsApp folder is determined by your device. It is normally located in your “Internal Storage”, or if you have an older device it may be located in your “SD card”. Please note, when changing to a newer handset, you may have to move the folder from your SD card to your internal storage.
    We are unable to merge your backup files, you may only restore from one file at a time.
    Backup files are only readable by restoring them in WhatsApp.
    If your device is plugged into your computer at night, low on storage space or is set to sleep with no background data; WhatsApp will not be able to backup your chat history.
    If your restoration is successful but you are missing some chats, it is possible that your database backup was corrupted and these are the only messages we can restore for you.
    If you cannot uninstall WhatsApp on your device, you may go into your phone's [Settings] > [Applications] > [WhatsApp] > [Clear Data]. Once you open WhatsApp again, it will prompt you to set up as if it were a fresh install.
    Please note, if you are unable to restore your chats, we can not restore your chats, contacts, call history, or multimedia files for you.

Note If your restoration is successful but you are missing some chats, it is possible that your database backup was corrupted and these are the only messages we can restore for you.
If your backup was successful but not all images were restored then likely your phone did not fully backup your images or the backup itself was corrupted.There's really no reprieve for this. I'd advice you to store your internal backup in an external storage device when you're about to format your phone.


text:
Do I have to install a custom ROM if I root?

Possible Duplicate:
Does rooting require a custom ROM?

I have an HTC Desire S with the stock ROM.
Can I root the phone but keep my stock ROM, that is the one provided by HTC ?
Or do I HAVE to install a custom ROM if I root?
And what is ClockworkMod. Is it a custom ROM ?

You don't have to install a custom ROM, you can use a stock one. There's usually rooted versions of stock ROMs readily available for most devices, with the only difference between them and a completely stock ROM being the addition of Superuser and the su binary (and often busybox). If your device is supported by a simple software rooting method (HTC stuff often is) then you can simply root and be done.
ClockworkMod is not a custom ROM, it is a custom recovery image. The recovery system is basically a minimal environment and GUI that exists on a separate partition and can be used to backup or restore your device's state, install new ROMs, and perform some other functions that can help you fix your system if it gets into a bad state. The differences between these and other things is covered pretty well in What is the difference between: Rooting, Jailbreak, ROM, Mod, etc.? and What is ClockworkMod Recovery and what is it for?


text:
How do I back up (and restore) my phone before installing a custom ROM?

Possible Duplicate:
How to backup an Android device?

I am thinking of installing a custom ROM such as CM7 on my AT&T Galaxy S2 (SGH-i777). I have already rooted it.
What is the best practice for backing-up (and potentially restoring) my phone?
Notes for answerers:

I'm interested in step-by-step instructions to obtain a canonical answer rather than links into forum threads.
Will the method described be able to recover the phone if the ROM install process fails and "bricks" the phone?
Can the backup be moved to external storage (such as a computer) or is it only resident on the phone's internal memory. If it can be preserved off-device please describe this process as well.

This is going to vary a bit by device and recovery system, but in general if you want to perform a full, 1-to-1 backup of your phone's internal memory you would need to:

Root your device and install a custom recovery. The most popular recovery is probably ClockworkMod. How you install it will vary widely by device, but ROM Manager can do it for you on most popular devices. You simply launch ROM Manager and select "Flash ClockworkMod Recovery" from the main menu.
If using ClockworkMod, open ROM Manager and select "Backup current ROM". This should do all of the work for you.
If not using ROM Manager or if you use a recovery other than ClockworkMod:

Reboot your device into recovery mode. This again varies by device, but ROM Manager has a "Reboot into recovery" option that works regardless of what recovery you have installed. Another option is to issue adb reboot recovery from a connected PC with ADB configured and set up. There may be other requirements for getting into recovery depending on your device (e.g. the Kindle Fire is very different from others).
Navigate to the "Backup/Restore" or "Nandroid" menu (or similar).
Select "Backup" and (if needed) select which partitions you would like to back up. Some recoveries will also give you the option to compress the backup.
Select "Perform backup" (or similar) and wait for the process to finish.

Once the backup has been performed you should be able to use it to recover from many "soft" bricks. However, the two situations you would not be able to recover from with a backup alone would be:

Your bootloader is invalid/corrupted/etc
Your recovery partition is invalid/corrupted/etc

In both of thse scenarios, you would first need to fix the offending partition (bootloader or recovery) before being able to restore the backup. Basically, anything that prevents you from accessing your recovery partition will also prevent you from using your recovery to restore your backup. Such situations are, I would say, fairly rare. You can use a backup to recover a bad /boot or /system partition, so flashing a kernel or ROM should have an extremely small likelyhood of permanently bricking your device (unless it modifies your recovery or bootloader, as noted above).
You may be able to flash an uncompressed backup from fastboot but this would depend on what recovery you are using and how it performs its backups. As I recall, ClockworkMod simply uses dd to create the image and they actually will flash correctly on some devices. However, I would strongly advise researching this before trying as a bad fastboot write could soft brick you as well. Of course, as long as you don't try to overwite your bootloader you won't lose access to fastboot, so in some ways this could be a "nothing ventured, nothing gained" situation.
To actually restore a backup you can:

In ROM Manager select "Manage and Restore Backups", then select the backup you wish to restore from.
If not using ROM Manager or not using ClockworkMod:

Reboot into recovery
Select "Backup/Restore" or "Nandroid" (or similar)
Select "Restore"
Pick the backup you would like to restore from (if more than one)
Select the partitions you would like to restore (if givent the option)
Select "Restore" and wait for the process to finish

Nandroid backups are, by default, stored on your external storage device in pretty much every situation. Some exceptions may be devices with no separate external storage (e.g. devices like the Galaxy Nexus) where the /sdcard directory is actually on the physical internal storage. In any case, though, it will save to your /sdcard directory, which is readable from a PC as USB mass storage or adb. You can copy a nandroid backup off of your phone and onto a computer for safe-keeping, then copy it back over later if you need to restore.
To do this you can simply plug in your device and look for a path like /sdcard/nandroid (or /sdcard/TWRP for TeamWin recovery, possibly elsewhere for others). Then you can copy the contents of the folder over to your computer. Alternatively, you can pull it with adb by plugging in the device and issuing something akin to:
adb pull /path/to/backups

...from a PC shell.

Clockwork Mod Recovery will work on the AT&T Samsung Galaxy S II.

@Broam: I never said it wouldn't, I was simply trying to phrase this as generally as possible since there are other recovery options out there (f.e. I don't use ClockworkMod myself).

I know - but I figured the OP would want a specific response to your very detailed & general answer.

The dupe I added doesn't have a good description of Nandroid (specifically CWM), you may want to consider adding this answer there.

@MatthewRead: Hm, so it does not. Delicious copypasta has been served.


text:
How to set home launcher in Android 7.0 Nougat and 8.0 Oreo
I could not find the way to set/change the default launcher in Android N (Nexus 6P). I think it is not there. Any help?

Changing the default launcher in Android O (as of 8.0 DP 1)

Go into the Settings app
Go to "Apps & Notifications"
Go to "Default apps"
Press "Home app"

Alternatively, you can just search inside the settings app for "Home."

Changing the default launcher in Android Nougat

Go into the Settings app
Go to "Apps"
Press the settings gear in the top-right (not the triple-dot)
Scroll down and press "Home app"

Alternatively, you can just search inside the settings app for "Home."
source: https://www.youtube.com/watch?v=HpXBDnSIeiM

Changing the default launcher in Android Marshmallow

Go into the Settings app
Scroll down, and under the "Device" header you'll see "Home"
Go into that and you'll be able to change your home launcher

Changing the default launcher in Android Lollipop

Go into the Settings app
Scroll down, and under the "Device" header you'll see "Home"
Go into that and you'll be able to change your home launcher

Changing the default launcher in Android KitKat

Go into the Settings app
Scroll down, and under the "Device" header you'll see "Home"
Go into that and you'll be able to change your home launcher

Changing the default launcher in Android (pre-KitKat 4.4)
You'll need a third-party app to change between home screens. One of the best ("Home Switch") is available here: https://play.google.com/store/apps/details?id=co.uk.captainstu72.homeswitch

@TungD.Nguyen I realized my answer was incorrect and I remade the answer with the actual information. Sorry about that :|. So look at my answer again, it's right now.

Thanks! I found that the search function in my settings does not work. But your answer helps.

@TungD.Nguyen Glad it helped!

@MarkYisri On the bottom of the  left image here: http://beebom.redkapmedia.netdna-cdn.com/wp-content/uploads/2016/03/Android-N-vs-Android-Marshmallow-Settings.jpg . There you can see Marshmallow has a setting for home while Nougat does not.

No settings gear in latest version of Android Nougat for the answer below......... And searching for "home" in settings don't find the home app either. Changing the default launcher in Android Nougat Go into the Settings appGo to "Apps"Press the settings gear in the top-right (not the triple-dot)Scroll down and press "Home app" Alternatively, you can just search inside the settings app for "Home."

@Nickum that might already have switched to "Oreo style".


text:
Manually switch carriers Project Fi
I have heard that you can manually switch carriers when using Project Fi. How do I go about this? What is the easiest way?
Edit: Is there an app that does this too?

You can easily manually switch carriers in Project Fi:
Head into the Phone Dialer app that came with your Nexus phone, then type in these dialer codes to manually switch carrier:

Sprint = *#*#FISPR#*#*
T-Mobile = *#*#FITMO#*#*
US Cellular = *#*#FIDAN#*#*
Auto = *#*#FIAUTO#*#*

You can also download the Fi Info app, which automates the process a bit with a widget (I use it all the time).
Source and more info.

Singal Spy is the app that I use to do this.
It also shows you at a glance what network you are currently connected to:

Thanks! This works too, just as well as Fi Info (which also has that notification thing).


text:
How to remove DuckDuckGo browser from ArrowOS?
I recently installed ArrowOS on my phone but it comes with the duckduckgo browser which really annoys me with constant notifications and overall I hate it.
How do I remove it safely from the system so that I don't get stuck in a bootloop?
I had already tried what @Firelord suggested in the comments before opening this thread but got stuck in bootloop. I have encountered similar situations with other devices too and will appreciate any help I get, whether they be step by step tutorials or general advice on how to approach this kind of problem.
Needlessly to say I have root access and have Magisk installed.

Why don't you just install a different web browser make it the default web browser and WebView (the latter in the developer options). Then the default browser is just ignored.

That way I don't learn anything, hence I want to mess around with the apps that startup at boot to really understand how android works. I have, in fact, already downloaded brave and made it the default browser on my system.

Have you also made it the default WebView app? Otherwise DuckDuckGo my be still used by apps which display web sites via WebView.

There is only 1 option called Android System Webview and then the version number of the webview implementation with a blue chromium logo before all the text. I installed amaze file manager and apparently I can uninstall system level apps with it. Do you think I should do it?


text:
Redmi 4X (santoni): Abruptly shuts down just before booting into OS
Here's a TL;DR -
I can't boot into my OS,phone shuts down after being in boot screen for some time but I can boot into fastboot and recovery. I flashed another custom ROM after formatting my device but it won't change the state of affairs.

I have a rooted Redmi 4X(santoni) in which I have flashed TWRP 3.5.x I had flashed Havoc OS vanilla as the OS in it with OpenGapps ver 10.
Up until today morning it worked perfectly fine, I noticed the battery was at 3% so I plugged it in. When I tried to turn it on later, it got past the "Mi Unlocked" screen, Havoc OS startup animation was working but then the phone abruptly shut down.
However I was able to boot into fastboot with Power + volume down. I was also able to boot into recovery with Power + Both volume buttons.

First I though it was a battery issue, but the battery percentage shown in the screen when the phone is shut down showed 86%. When I boot into TWRP it also shows 86%, after some time it dropped to 85%, so nothing unusual there. I generally get 1+ days of backup.

Next I thought it was an issue with Havoc OS so I booted into TWRP, wiped the device (I selected every partition manually to wipe them) and then I formatted the phone. Then I powered off the phone and booted into recovery.
I then transferred the zip files of latest crDroid 6.x vanilla, OpenGapps ver 10 and the latest apk of Magisk to install later. I selected install from TWRP's menu and clicked on crDroid's ZIP, it completed successfully without errors (as far as I could tell). I tried to boot into crDroid, but the phone again shut down after showing boot animation for sometime.

Then I booted into recovery and connected my santoni device to my Arch Linux laptop. I opened up my terminal and ran "adb shell" which opened up a root prompt. Then I ran "dmesg > log". I then exited out of there and ran "adb pull log" on my laptop.

This is the output of dmesg.

I looked at this answer which led me down a huge rabbit hole none of which I understood. Upon running "adb shell" and "logcat" in it, I get

/sbin/sh: logcat: not found

with error code 127 in terminal ( which I get in Linux if command not found). I also get this same error when I run only adb logcat from my terminal as non-root user while booted into TWRP.
I can't figure out how to boot into my system. I can't figure out how to give better logs either. For now I will shut down my phone, any assistance appreciated.
Despite following the link given in the comments, my issue still persists exactly as it did before. Hence the link wasn't of much help in this case.
PS: I would appreciate it if you could also give me feedback on the quality of my question and how I may improve it.

did you disable dm-verity? dmesg from recovery isn't of any use. logcat is adb command/argument and works only when usb-debugging is enabled (local.prop)

Like every option that appears when you boot into TWRP and select Wipe and Advnaced WIpe - dalvik/art cache, system,data,internal storage,cache. Further, what is dm-verity and how do I disable it?

Does this answer your question? Install Magisk in TWRP, with "Keep DM-Verity/AVB 2.0" option?

Formatting data has worked every time. In fact the first time I'd tried to boot without formatting data the system wouldn't boot but after formatting it worked fine. Also how would I go about creating the file where you say I should? I can't access the / partition when connected via MTP. Further, How will I install Magisk if I can't even boot into my OS far less install the app and patch the file?

So I made a file in internal storage of phone called .magisk and appended those two line. Renamed magisk.apk to magisk.zip and installed with TWRP no errors. Then booted into crDroid and setup worked fine. Suddenly phone shut down. Boot back into TWRP, battery is 77%, it was 77% in crDroid too.This behaviour continues even if I start up phone while plugged in

I did everything you said @alecxs but problem still persists

Let us continue this discussion in chat.


text:
Does "fastboot flash recovery <recovery-file.img>" command work with any android device?
The command is used to flash a recovery. Do you have to use odin like tools to flash it or you can just use adb?
Thank you

This is no duplicate. You just don't understand

Andykl, Please explain to @keepclam or to all of us why it is not a duplicate. Your question is of low-quality as well. Add your search and research to show that you did put efforts to find answer. See [ask].

This question is about flashing a recovery which has nothing to do with flashing  a system, which is what another question is about. One requires unlocked bootloader, another does not. So one can depend on fastboot protocol, while another not.

Please explain what is low quality question? Theses are weird terms that the portal is using. My question does include everything needed to understand it, but no, i have to include redundant info.

I recommend  you read more about what fastboot mode does. Fastboot is not discriminatory. If you can flash system partition using it, then you can flash any other partition too, including recovery.

First, to clear the confusion, fastboot and adb are two different modes/states. Now to answer your question, it depends whether your phone supports the fastboot protocol (all Android phones support adb, this is not the case for fastboot).
If it so happens that your smartphone is fastboot capable, then the fastboot flash recovery file.img command will work.


text:
S7 Edge second sim disappears randomly
I've got a dual-sim Galaxy S7 Edge (SM-G935FD) this spring and everything was fine until a week ago my second SIM started to disappear randomly. Basically I wake up the phone after a while and I see no indications of the second SIM: no signal bars and "No SIM card in slot 2" message in settings. Rebooting the phone sometimes solves it for a while -- the second SIM becomes visible and works as expected but after a few hours it disappears again.
Things that I have tried so far:

wiping out cache partition
forcibly setting second sim to "2G only"
manually choosing mobile operators for both sim cards
swapping sim cards -- problematic sim card would still disappear after a while,
now from slot 1.
putting the problematic sim card into another phone -- it works just fine, not disappearing at all
factory reset

The issue still persists. Currently my first sim (the one which works well) is set to "auto (4g/3g/2g)", also mobile data goes through that card. My second sim (the problematic one) is set to "2g only", although setting to "auto (3g/2g)" gives same result.
Inspecting phone logs with adb logcat while the second sim is invisible hasn't revealed anything suspicious..
My software:
Android 7.0
ROM: G935FXXU1DQEJ
Build: NRD90M.G935FXXU1DQGN

Try to put some other sim instead of problematic one and see what happens

It appeared to be a bizarre SIM issue: after replacing the SIM I haven't seen such behavior for more than a month. It's weird that the SIM would fail sporadically and a reboot would fix it, also that it would happily work on other devices. Anyway, this is hopefully solved now.

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


text:
Private communication over wifi but internet over 3G
I have a raspberry pi which creates an WiFi hotspot and I want my android app to communicate with the pi over that connection. The big problem now is that the pi has no internet access so I would like to use the wifi connection only for my app and the phone should still be able to use 3G.
Is there any way to achieve this?

Take a look at Super Download (needs root). It seems to be capable of using both WiFi and mobile-data simultaneously.

If I am understanding you correctly, you want to make the raspberry pi a wifi hotspot with no internet access and then have a phone connected to the raspberry pi's wifi. Then the raspberry pi would access the internet through the phone's  4g connection. Is that correct?
If not...
If you are attempting to have the two devices communicate over wifi and leave the phone with access to the internet over 4g, I suggest using Web.py. It is very simple python script to make a webpage on the pi's ip address. Then, any apps you make will read the page. It is nice because only the values that you return in the script are what shows up on the website. If you use a program to read the text/code from the page, it won't show masses of HTML! It just shows your returned data.
If you are attempting to have the pi communicate with the phone AND the internet, use the phone as a mobile hotspot and connect the pi to that hotspot. Then, the pi should connect to the phone through 192.168.1.1.
If I'm not answering your question please let me know!


text:
LineageOS : upgrade nightly to unofficial, switching keys not working
referring to: LineageOS : upgrade nightly to unofficial
@Taknok:
Did this work for you? I tried to follow the instructions on the Wiki page you mentioned, but it did not work. I always ended up with the error described above.
I tried to run "migration.sh unofficial" from recovery which resulted in an error message:

CANNOT LINK EXECUTABLE "/system/bin/sh": cannot locate symbol "__aeabi_memset" referenced by "/system/bin/sh"...

I run the same script while LineageOS was running:
$ adb shell sh /data/local/tmp/migration.sh unofficial
Official to unofficial migration
Saving backup as /data/system/packages.xml.bak
Done

But when I go to recovery to flash my own build it still says:

Can't install this package on top of incompatible data. Please try
  another package or run a factory reset

How did you manage to do it?

so, today it worked fine! Here is what I did:
# changing to unofficial, unsigned builds:
adb root # This requires an userdebug/eng build and ADB root access to be enabled
adb shell stop
adb push migration.sh /data/local/tmp/migration.sh
adb shell chmod +x /data/local/tmp/migration.sh
adb shell sh /data/local/tmp/migration.sh unofficial
adb reboot recovery
# Now install the official LineageOS install zip

Then I modified migration.sh replacing the release_keys with my own ones and switched back to official.


text:
How to unlock device when I forgot my password?
I've read Recovering from forgotten lock pattern which states that there is an option to disable the lock using my Google account information. However I did not noticed such an option when I entered my password five times wrong. (Although there was also a 20s or 30s delay to complicate brute force attacks.) I use Android 4.0.3 on a Asus Transformer Prime TF201.
Would factory reset work?

Why do you think, factory reset may not work? It wipes out every custom configurations..

As the device is locked I did not know if I could employ a factory reset. I just guess that there is a key-combination like: volume down + power button or something similar.. I was not sure.

Yes.. you can factory reset from recovery mode. How to enter this mode varies as per devices.

If you're just trying to remove the lock pattern then a factory reset would work, recovery mode is usually accessible by powering off the device and then pressing power+volume down until it boots into bootloader mode, from there up/down volume keys will get you to recovery where you can factory reset. but if you need access to the data that is behind the lock screen and you don't have root then you're practically out of luck unfortunately.

Factory reset will work. You can unlock the device remotely if you have some app installed for that, like the MIUI unlock service.
https://www.devicesfaq.com/en/reset/asus-transformer-prime-tf201

You can always factory reset your device. Factory reset wipes out all custom configurations including PIN/Security Lock.

Yes, a factory reset will work.
First, you will need to boot into recovery mode, this is device-specific, so you will need to google how it's done on your phone. But on mine for example: hold power and volume up until a menu opens up, select recovery with volume up, press volume down, and when the "no command" screen opens up, press power and volume up.
Once you're inside recovery mode, select "factory reset" or "perform factory reset" with the volume buttons, and press the power button. Then select yes, and press the power button.
After the factory reset is completed, it will ask for your Google account credentials. If it asks for the previous password, tap "use Google account instead". If your device doesn't have a Google account or you don't know the password for it, look up your phone on hardreset.info and select "bypass frp" or "bypass factory reset protection".

That depends. If you do not want to lose your previous data, I suggest using the Android bypass tools available, but it needs a subscription though. Or if you are thorough in your monthly backup, I suggest factory resetting your mobile which differs with each phone model.
I can give an example for the Samsung model.

Press the power button and lower part of the volume button simultaneously
When the screen blanks out, immediately stop pressing the lower volume button and press the upper half button with the power button.
It shows you the settings like reboot, restore, etc etc
For navigation, use volume buttons. For selecting, use the power button
Select the factory reset
Then select reboot

Tada! Then it asks for the password, just sign in with Google account instead.


text:
number in the top right corner of the camera app?

Possible Duplicate:
What does the blue 0 mean in the top right hand corner of my camera?

What is the number shown in the top right corner of the camera app that comes installed with Android 2.3.5? It shows 905 right now but I don't know what it means. Does it have anything to do with the zoom or the light level or the space in the SD card for more pictures to be taken?

This number represents the approximate amount of pictures left you'll be able to take, according to the free space on the media portion of the phone (e.g. SD Card) and the currently chosen settings, such as resolution.

An artifact from the days when you had to worry about the amount of film you had left in your camera.

You'd be surprised how much this artifact helps on SD Card-less devices like Galaxy Nexus.


text:
My Sensation is running 2.3.4, why hasn't this updated?
I've got a HTC Sensation 3G, and I'm waiting for the Android 4 Update.
I understand this update might not be available for my handset yet, but I checked my Android Version and I'm currently running 2.3.4.
Shouldn't this be 3.x at the moment?
I've checked for updates, but my device can't find any.

Android 3.x is reserved for Tablets, and so would never be running on an actual phone. As for 4.x, it's basically a waiting game. If there have been assurances from HTC that the update will eventually be available for your phone, you'll just have to wait until your phone tells you it's available.  The only way to speed things up would be to monitor the forums and see when others have gotten the same update.  Then you'll have a chance to download it yourself and tell your recovery to install it.  Even then its still a waiting game.

Thanks for your response. So 2.3.4 isn't a really outdated version then? I was just concerned I wouldn't get 4.x because I haven't even been prompted for 2.9 etc..

No problems.  I hate to say it but you are a bit out of date.  For example, the latest version of Android 2.3 is 2.3.7, however you can rest assured.  The newer versions were to resolve specific issues on certain phones. Although it doesn't list release dates on specific phones, a quick site to use to track version history is http://en.m.wikipedia.org/wiki/Android_version_history .

Cheers for that, and don't worry I don't forget :)

@Curt As a UK user on T-Mobile I received my Sensation 4.0 update last night :)