text:
How to set default alarm ringtone in Android 6.0?
With my new Moto E3, every time I open Clock application (to enable some alarm) I see a message:

Default alarm ringtone is silent [Change]

When I tap on Change I'm redirected to Sounds & notification section of Settings, where I can only see Phone ringtone and Default notification ringtone. Both set (not silent). As for alarm I can only see alarm volume (not ringtone) which is also around half (50%) and thus not silent as well.
When I open settings of Clock application itself, I can see a cool set of nice settings, but -- again -- nothing around default (or not default) alarm ringtone.
How can I set default alarm ringtone or otherwise get rid if this a bit annoying reminder?
I've been out of "Android world" for around two years or so. Last version I've used was 4.3.5, but I can hardly recall something like default alarm ringtone. If I'm not mistaken, there was default tone for notifications and default ringtone, but alarm tone was always set per each alarm separately.
BTW: Since this is a system-level notification, I assume that using 3rd party app won't solve this.

This may help http://android.stackexchange.com/q/168749/131553

@beeshyams I am aware of this answer and even linked it in the question. It answers how to setup own alarm tone. I'm able to do this myself. I'm asking how to setup a default alarm tone or get rid to an annoying message that keeps poping and keeps claiming that my alarm ringtone is silenced.

Thank you, all, for your answers. It seems it was some kind of weird bug. After one of recent system updates problem no longer exists, event though I did nothing to prevent it. I think this question should stay there, because it includes a valuable suggestions when the very same problem would appear in future based on some other problem.

Answer is - use  "ES Explorer"
Very strange, but "System settings" have only Ringtone and Notification, and no Alarm-clock sound. I think it is a bug. Maybe that setting should be in Clock app, but it also no.
Steps:

Play any music file you would like to set as default ringtone for the alarm in ES Media Player
Click three dot button [:] in top right corner
Select Set ringtone
Now set ringtone dialogue will open. Choose Set alarm
Now open Clock app. You should not see the warning

Go through all of your alarms, including inactive ones, and see if you have "Default Ringtone (Unknown)" set for any. If so, change the ringtone to your custom one or a preset, or delete the alarm entirely.
When making any new alarms, it should default to the last one you used... but just make sure to avoid "Default Alarm Sound."  (For some reason it calls it the Default Alarm Sound in the drop down menu, but the Default Ringtone after it is selected).
I am not sure of the root cause, but this is what removed the same message for me (it was hiding on an inactive alarm). Hope it works for you too!

Assuming Moto is using a near-AOSP clock app... When you have an alarm in the list (enabled or not), you should be able to set its ringtone individually. Setting one will make alarms created in the future use that ringtone by default.

Unfortunately this is not a solution. I've followed these steps even before posting here. I made my first alarm with custom ringtone and -- as I wrote -- each newly added one already had the same one preselected. Thus, I thought that this is my "default alarm ringtone". Unfortunately, this annoying message keeps appearing every time I open Clock application.

So are you sure the alarm volume is not silent? The only occasion I see the alarm app complain about silence is about the volume, not the ringtone.

I'm 99.99% sure (I never say that I'm 100% sure) that it is not. If it would be silent I may have some troubles past week around not getting up to work! :> However, I can share a screen shot, if you need to be more certain. The only thing that comes to my mind is that A6.0 somehow analyses volume of MP3 file used as ringtone and that check fails resulting in Android claiming that may default / the only used ringtone is silent. But, this sounds a little bit like a conspiracy theory, right?

I also use external media files as my alarm tone, but it never complained to me even when I deleted the file (resulting in empty ringtone) - weird indeed. I'll leave this here for whoever deem this meaningful, but still, sorry for not being able to truly answer your question.

Copy your ringtone file to the Alarms folder in your internal storage using a file manager. Now you will see that ringtone file in the Default alarm ringtone list in Settings -> Sounds.

You mean to copy any alarm from "Alarms" folder to the root folder of SD Card / storage? Why would Clock app look for default alarm in a root folder, if it has "Alarms" folder designated for this feature?

@trejder I think he means copy your ringtone file to the Alarms folder


text:
i have a SPICE COOLPAD MI 515 AND I CANT ACCESS TO MY STORAGE
i had not rooted my phone yet but i tried storage swaping intern to ex. but after editing vold.fstab sdcard0 to sdcard1 and restarted my phone. I loss access to my storage after the said restart So how can i get back my storage external as well as phone storage because both does not shown give me suggestion for unrooted phone.

You could try editing the file over an ADB interface.
You can install the appropriate drivers and the ADB Interface, and then use a program called PuTTYTray: https://puttytray.goeswhere.com . There, you can use the built-in Linux text editor using the command called vi to edit the vold.fstab file to return your device to its original configuration.

source: Stack Exchange

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

sort: votes


text:
how does share it application use our information?
I would like to know, does share it application store our photos and videos on its server since it has access to phone's gallery

http://w.ushareit.com/w/privacy/a/

I read their privacy policy. But by personal information, do they mean photos and videos aswell?

That's really a question for them, or a lawyer.

But it's said in their TOS. Please refer it here.

No, when you share files, the two devices work by creating a hotspot on one device, and connecting to it on the other. This way, the data is transmitted from one phone to another using the Wi-Fi network, and no data is sent to any servers. This is why they make it clear that no mobile data is needed.

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

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


text:
How can you verify titanium backup is encrypting backups?
In Titanium Backup Pro it has the option to encrypt backups. How can this be verified that it's working? It normally outputs a gz file with an apk inside. When I try to open the apk with a text editor it doesn't have any human readable text, so does that mean it's encrypted??

As per this post titanium does not encrypt apps binaries(apk). It just encrypts apps data.

Then how can I verify it is encrypting the data?

Try to open gz files for data with any unzip tool - it will give you an error. For more details including binary analysis see that link I have provided


text:
Does Wiping Data/Internal SD in TWRP Remove files Permanently?
I am selling my Moto X Play and want to make sure all my personal files were permanently removed from the device.
I did a Factory Reset from within the OS twice and noticed that my photos would still appear after the reset was completed.
So then I booted into TWRP recovery mode and went to wipe and wiped the internal SD and Data on the device, booted back into the system and the pictures were all gone. I then flashed a completely different rom and pictures are still gone now.
I just want to confirm that at this point that my files are completely erased and could never be recovered.

Can user data be recovered after formatting and flashing stock ROM?

Of course. If you see the process of working twrp, you'll see that it erase sdcard without wiping data/media that is sdcard0, in some cases. It contains all of your saved files like music etc


text:
Repair blocks in android ARMv7
Hi would check the badblocks in my android with the badblocks tool, but I cant found the binary for my:
armv7 with mt6582 - lollipop 5.1, and TWRP 3.0.1.

How could compile or get it (the badblocks for execute from /sbin/)?

Note: I want not use e2fsck neither fsck.... I would like check it through of badblocks

Get a Linux Desktop (Debian, Ubuntu, Suse) edition and install it on your PC
Get ARM (el, hf) compiler and binutils etc-
Get Android NDK and SDK (Large files...)
Get the kernel source for your smartphone/tablet too
Get badblock source files for linux, and cross compile it
BTW the smartphone should be rooted and be aware about the using (!) of badblocks...

Or find a developer here or at https://forum.xda-developers.com who has already compiled it

Thanks dude, I've downloaded the SDK and SDK, could be it my source https://github.com/mmeeks/ext2tools/blob/master/ext2fs/badblocks.c ?... I dont understant.. can you guide me to compile it?

Yep, it that file Did you get all other stuff? Android NDK is the most important  Please follow everything on the sites for com(google, xda-developers). It is too complex, to descirbe everything here. (DL the Kernel for your Device too)

Which device you own? Which partition of your device you want to use on badblocks? (If you use badblocks, maybe it will lock the partition and therefore the device)

I have mmblk0 (8gb) > with 9 partitions... But I dont know about of port the badblocks for armv7 of my device.... My device is azumi a50c+ (mtk 6582)


text:
Recovery is rewritten
I am using a Lenovo p70 which I flashed with AOSP 6.0 ported from Lenovo k3.
The ROM keeps overwriting the TWRP custom recovery with stock recovery (which doesn't even boot).
As far as I know this problem is caused by the fact that /system is mounted as read-only. In most cases twrp must promp you and take care about that but that is not my case.
Also I tried editing "fstab.mt6752" but it gets overwritten on boot/reboot and the default values are returned.
So the question is how do I stop the ROM (AOSP) from overwriting the TWRP?
And in case I am right, how do I make system to be mounted as read-write by default?

After flashing custom recovery, try rebooting from recovery itself to system rather than rebooting normally ( to bypass inbuilt protection of  restoring with stock)

In the most time, this what I did. The process of overwriting is done by the recovery.

Delete /system/boot-from-recovery.p if it exists. Are you able to write to /system after all? I can't seem to make that out from your post.

I will try. And yes, I can write system, but I need to do mount -o remount,rw /system.

@beeshyams I meant that the process of overwriting is done by the kernel. But I can't edit the comment anymore.

Understood... afraid I can't help you there

Don't know if you already done. But, most customs like CM, have an option in developer settings to not overwrite recovery.

AOSP is more or less a stock rather than custom rom. It is almost unmodified and there is no such option.


text:
Terminal app launch and subordinate intents
I'm using Tasker to open an app at certain time and state. I wanna open the Run log menu of Tasker at the end of the app launching task.
I know that's no need to flash on screen this log but when I tried, I haven't found a way. I
can only open tasker but not launch a subordinate intent of this app.
Any help about this basic programming question will be appreciated.
Tnx in advance!
This is the description of the Tasker Manifest.xml:

Provided that you have root access, you can use this command to launch the Run Log window:
am start -n net.dinglisch.android.tasker/.RunLog

RunLog activity, without root access however, fails to launch and throws the error:
Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL

Perhaps the following attribute, as mentioned in the manifest, is the cause of the issue.
android:exported="false"

Hi Firelord! Tnx. I tried lot of commands. First using always --user 0 permission to access all users. The RunLog intent doesn't have the dot in its name so I didn't get the result of open it. I'll try your solution. Tnx again

Unknown command

If you're using a terminal app, then the correct command is: su -c 'am start -n net.dinglisch.android.tasker/.RunLog' (note that root access is needed). If you're using Tasker and want to run this command from inside it for automation, then try Run Shell -> Command: am start -n net.dinglisch.android.tasker/.RunLog, check Root.

I solved the problem. The package is the name of the activity. In this case .taskerm instead of .tasker


text:
Where to compare flash memory (internal memory) performance?
I used some apps from Google Play ("Disk Speed / Performance Test" and "A1 SD Bench") to get some metrics for the internal storage (NAND flash memory) of my tablet.
I got +/- 25 MB/s reading, +/- 9 MB/s writing. This a tablet from 2012.
Is there a site where I can compare this results with similar devices to get a feel if this is normal or not?

You have a lists of devices and their r/w speeds in those apps

@ЈеднорукиКрстивоје  True for "A1 SD Bench", but it only shows recent tested hardware. How can I check how my tablet compares to similar price-level/date-of-release devices?

I don't know how but I managed somehow to find list, I don't know exact process but it was list opened in browser. Try googling.

I did. If you find it again, do post it. Thanks

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


text:
Wi-Fi hotspot traffic while connected to PIA VPN
Background
Android 7.1.1 Nexus 6P uses VPN app from Private Internet Access.  The app has a "Per App Setting" that allows certain apps to bypass the VPN connection (some games like Pokemon Go don't operate if behind a VPN, you get an 'unable to authenticate' error until you disable VPN or turn off PG in the per app settings).
My son has my old Moto X phone (no SIM card) and needs to be tethered to my phone to have Wi-Fi when we're out and about. He does not have the PIA app installed on his phone.
PROBLEM
When he plays his Pokemon Go game, and we are tethered while my VPN app is operating, he cannot log in or authenticate with his game on his phone. I'll need to turn off my VPN completely before his app will allow him to log and play.
QUESTION
Is there an Android System Process that I can allow to bypass the VPN so that his tethered Wi-Fi connection isn't blocked?

I have exactly the same setup as you by the sounds of things. However I've never had the requirement you have so I've never noticed. I know this doesn't exactly answer your question, but one option you do have is to use a third party hotspot app then I guess you will be able to bypass using the per app settings. Additionally, I'd get on the PIA forums. The devs seem pretty open to suggestions and recommendation from what I've experienced

Nope. Use of VPN/GPS spoofing is prohibited while using Pokémon Go. Also, your virtual location may coincide with your actual location, making Niantic think your phone is spoofed. That's why it may not allow access till you disable VPN.
You can allow Tethering and portable hotspot app from PIA setting , that will do the job.

If his son downloads the VPN app it will make no difference as he is connected to a hotspot with a VPN IP. You have asked the OP to check if you can bypass the hotspot process in the PIA app... that was the OPs question, you have just repeated it.

There is a workaround to use if you are rooted:
Since your son is connecting to tethering through VPN traffic, you can forward all data traffic through the VPN to allow connectivity.
You need to type the following in terminal as su:
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -A FORWARD -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE

This will allow  fowarding of traffic through VPN and you son will be able to authenticate. Otherwise you could try a 3rd party app to tether and see if it resolves

no, i am not rooted and dont plan on rooting.


text:
Pushing wpa_supplicant.conf through adb breaks wifi even with no changes to the file
So I have an issue with very high packet loss on M and above so I know it's something to do with android and not the physical phone. I'm trying to modify wpa_supplicantl.conf but even if I pull it from my phone then push the unmodified file, wifi won't work after the next reboot until I delete the file and it's regenerated, anyone know why this is happening?
Note: I forgot to say, I've checked permissions and it's not an issue with them, it's 0660 before and 0660 after.

Looking at this with some interest, as I've experienced it myself. Have you checked ownership as well (see Restoring wpa_supplicant.conf)? Check the original ownership of the system created file before; the answer linked uses chown wifi:wifi, other places mention system:wifi. Not tried myself (no time to play with that currently), so please report if it works for you and I make it an answer if it does.

Yeah, that work

Glad to read, thanks for the feedback! Made this an answer that so you can "accept" it – and I know what to take care of next time I want to use this approach :)

Make sure you've checked ownership as well (see Restoring wpa_supplicant.conf)? Check the original ownership of the system created file before; the answer linked uses chown wifi:wifi, other places mention system:wifi.


text:
Allow S7 to draw >500mA
I have a MacBook Pro - as we know, a USB 3 port can output at least 900mA at 5V for 4.5 Watts.
However, when I plug in my S7, it only draws 500mA. What is the trick to allowing a device to draw 1A? Is it shorting the data pins, or is it a move by Apple to only provide extra current to their own products?
Many Thanks.

You could try using a no data or charge only cable.  Mixed results -YMMV

Maybe if you build custom kernel with module "usb fast charging" enabled/added.

Unfortunately the S7 itself comes with USB 2.0 as of official specs, which allows 0.5A max current.

The extra pins are solely for data - there are five extra pins; two for data in, two for data out, and one for ground. The power pins remain the same between the USB generations. The amount of power drawn is regulated by the phone as well as the computer, which regulates the maximum power provided along the bus :)

My bad, edited. I'm not actually knowledgable in USB and stuff, just speaking out of what I knew. The 1st part remains valid then, I reckon?

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


text:
Any option to get notification on new mail from Gmail delegate?
Recently I got access to a Gmail account as a delegate.
How can I get a notification when new mail arrives in this inbox of the delegated mail address?
This was asked in 2015, so I'm asking here to see if any changes have been made to make it possible.

I have no idea if this solution of using Mozilla helps http://android.stackexchange.com/a/154942/131553, since I haven't used a delegated email

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


text:
can i get lost images/ videos from broken phone if i had a google account
I lost all the pictures and videos on my last phone because it got wet and wouldn't come back on. On this new phone (same exact phone as broken one) under settings> backup & recover its was already set to automatically back up files so I'm assuming the old one was too. But I don't know what I need to do to find them or get them back. I have the info for my old google account but I also set up a new account when I got this phone

If you enabled sync with Google Photos, you would find it here: https://photos.google.com/


text:
Why does rooting void warranty?
What is the reasoning behind Samsung being against rooting?
Why does rooting cause your warranty to be voided?
Isn't rooting a good thing for the user, since you have added functionality?
I understand that there comes security risks with rooting, but I'm sure if Samsung gave their full support to users that want to root their phone by making it an option, that they could avoid/fix security problems that come with rooting

How would Samsung be held responsible if you, say, 1) accidentally tampered with files under /system and phone no longer boots, 2) were somehow hacked by someone into Samsung Pay (rooted, theoretically possible) and caused financial loss?

Also, "Isn't rooting a good thing for the user, since you have added functionality?" - why would manufacturers care? It's not a good thing for them.

Should Glock be responsible if I modify one of their handguns for fully automatic fire and then break my hand trying to play Rambo?

What is the reasoning behind Samsung being against rooting? Why does rooting cause your warranty to be voided?

It is not a Samsung-specific case. Almost all manufacturers demand you to use the device as is. It is mostly about risk management. The risk of user damaging the phone is increased significantly when the phone is rooted and it would create a very big burden on manufacturers both as work force and economically. When they manufacture a series, they do it hundreds of thousands in numbers. They expect a number of problems with certain percentage of phones manufactured. If rooting is allowed, it would add greater risk and make the number of expected faulty phones unpredictable.

Isn't rooting a good thing for the user, since you have added functionality?

Yes, as long as the users know what they are doing, but you obviously fail to see how unrelated this fact is to the question you ask. All computers have their own security-usability ratio. The reason you need rooting in the first place is because Android deliberately restricts the access of the user to certain properties. Not many people cares about getting to set CPU frequencies of the phone but many people cares about having a phone that is malware-free.
When you use a phone as is, the odds of creating bootloops, hard-bricks, security problems, usage of unauthorized software etc. is minimal and that is the way warranty-providers want to keep it. And that is not even the whole story. Manufacturers get paid to install bloatware. They don't want you to be able to delete them that easily.

I understand that there comes security risks with rooting, but I'm
  sure if Samsung gave their full support to users that want to root
  their phone by making it an option, that they could avoid/fix security
  problems that come with rooting.

You are sure but you are wrong. You don't understand the root user concept of Unix-like operating systems. It is risky, period. You are free to use your device the way you want but you can't ask manufacturer to cover the expenses you might create by using the phone the way you are not told to do.

Rooting an Android means unlocking the operating system, it gives user the privilege to control unauthorized parts of Android subsystem.
Although this might sound good, this increases system vulnerability, which means your Android is at a higher risk of being hijacked by malware or the user himself may do something that isn't supported (e.g. overclocking the CPU) which is a potential threat.
Manufacturers basically disable access to such parts of operating system which may cause harm and decrease the life of your phone.
Rooting provides access to these parts, hence you are responsible for your own cause.
Although unrooting a phone bring backs your warranty, Samsung has come up with a security feature called Knox which trips up as soon as you mess up with your phone. Bad news.
Rooting is no harm unless you start tinkering with unsafe areas.
P.S. - it is like doing things your parents (manufacturer) warned you not to do but you are your own boss. You do the same things and mess up, so who's responsible?

Not only samsung. Most of newer phones have a ways to detect if you messed with something forbiden (rooting, bootloader unlock). On my phone there is some signature in recovery that is required, so I can't flash twrp just boot it from fastboot.

"unrooting a phone bring backs your Warranty" - This is not actually true. The warranty is a contract between you and the manufacturer. Even if you think you can trick the manufacturer by stopping them detecting that you have broken the contract, you've still broken it, and you're not entitled to their support.

@DanHulme This is FUD. In the EU, you have a statutory warranty and the contract between you and the manufacturer can't go against that. See https://www.piana.eu/root/

@Centril That only applies to defects that were present in the device at the time you bought it. It doesn't apply to damage you inflict yourself. And if the device is older than six months, the onus is on you to prove that the defect was already present, and not a result of your tampering. How are you going to prove that?

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


text:
How can I transfer the whole contact to iphone?
I want to buy upcoming iphone 8. Now I am using samsung galaxy s4. So how can I can transfer my contacts to iphone 8 ?

I haven't used it, but have you tried this app?

Android phone backs up your contact data on Google/Gmail account, On similar hands an iPhone backs up data on it's iCloud server.
Transferring contacts from Android to iPhone this,can be done by transferring data from your Gmail account to iCloud server
Watch this Video for this method -
https://youtu.be/g_5ABwx-yW0
Other method is to use CopyTrans app for iPhone this is shown in the following website
https://googleweblight.com/i?u=https://www.copytrans.net/support/how-to-transfer-android-contacts-to-iphone/&grqid=3UysKgyv&hl=en-IN
Best Of Luck.!


text:
how to disable lock screen wallpaper in mobile phone?
I am using Gionee S6s, my phone shows lock screen wall paper default, when I unlock screen it start showing wall paper .
I want disable Lock screen wallpaper. how do I do that?

No lock app may work. If your device is rooted, other possibilities exist

Not working for me


text:
How to make link of an app data directory to be used in other ROMs?
How to make link of an app directory data to be used in other ROMs using soft or hard links?
Using Dual Boot Patcher to have multiple ROMs on same phone:
https://dbp.noobdev.io/


text:
repacked system image fails to boot
I have a problem where the repacked system.img does not work.
My target device is: DOOGEE X5pro, which uses MT6735M chip.
I am using this custom ROM.
The original files from this custom ROM works fine with the device.
I wanted to change something in the system.img and the following is what I did.
$ simg2img system.img system.raw
$ mkdir tempsys
$ sudo mount -t ext4 -o loop system.raw tempsys
$ cd tempsys

Here I made one change. I didn't like the camera shutter sound so I simply deleted the 'camer_shutter.ogg' file in tempsys/media/audio/ui.
$ cd ..
$ tune2fs -l system.raw

here I check that "Block count : 390111", "Block size: 4096". I multiplied these two values and got "1,597,894,656".
$ sudo make_ext4 -a system -l 1597894656 -s sys3.img tempsys

BTW the permission of the sys3.img is as below:
$ ls -l
-rw-r--r--   1 chadrick chadrick 1327287648  2월 18 16:09 sys3.img

I'm not sure if the permission of the system.img file matters before flashing it to the phone.
I shall proceed just as it is.
After flashing it, it is stuck at the boot logo. I guess while the device succeeded upto loading the 'boot.img' but it failed to properly deal with 'system.img'.
Apparently, could someone point out some things that I may have missed?
BTW, I did the same repack operation WITHOUT modifying any contents in with system.raw file. The repacked system.img still didn't work.

Doubts: permission fault inside the repacked image. Are you able to obtain a logcat, or does it not even proceed to bootanimation?

@Andy Yan It doesn't even proceed to the bootanimation. I haven't tried the logcat method. But I have tried adb device to see if I can get the adb shell. However, it was described as unauthorized and adb shell didn't work.

Yeah that definitely means logcat isn't possible. I don't have more ideas; wait for someone else..

If you wanted to turn off shutter sound you could rename it from file manager if you have root, maybe even don't need root.

Do you have a custom recovery, OP?

@DeathMaskSalesman custom recovery? not exactly sure what you are saying. But I haven't touched anything near the recovery.img in the custom rom files.

@kwagjj Can you check if the flashing procedure did actually write anything in the /system partition?

@DeathMaskSalesman I use the SP Flash tool in order to flash the images to the partitions. Whenever I flash it with the original system.img file, the phone boots up fine. Whenever I flash it with the modfiied system.img file, the boot is stuck on the logo. From this symptom, I thought that the 'flashing' is totally okay.

@ЈеднорукиКрстивоје thanks for the suggestion. But my main quest is trying to find out why my custom packed system.img doesn't work.

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


text:
Setting/app to route audio input to phone's mic while a wired headset is connected to it
I'm a new Android phone user. I'm looking for a setting or an application that can route audio input to phone's microphone while a wired headset is connected to it, but keep the audio output to the headset. I have been searching for this in Setting but I think it is not available there. I have been also searching for the app that can do this, the search results recommend me an app named SoundAbout, but it doesn't do what I want, it's just routing audio output to phone's speaker while a wired headset is connected to it.
So is there any?

There is no system-wide setting for this, unfortunately. And apps that try to control audio routing are usually hacks that cause problems on their own.
But I have a hardware solution for you -- buy one of those splitter adaptors that convert 4-pin TRRS into 2 3-pin TRS, separating for headphones and microphone, and only plug the headphones jack into your phone. Look for something like this: https://www.amazon.com/StarTech-MUYHSFMM-Headset-Splitter-Adapter/dp/B0058DOWH6 (I'm not recommending this particular adapter, just showing how it should look like).

Use an app named Lesser AudioSwitch.

Hi, could you [edit] and expand the answer to explain why and how the app solves the issue? As of current writing, it's unclear why readers should use this app.


text:
Why has the emergency contacts functionality been removed?
According to some users at What is an "Emergency Call," and can I  set number for it? there used to be a feature to add emergency contacts that can be dialed without passing the lock screen.
Does anyone have knowledge of why this was done?

This may differ depending on what brand and model your phone is, but with Nougat an Emergency Information feature was introduced. You'll find it under Users in the settings screen.

If you open it, you'll see two tabs: Info and Contacts.
Under Info you can add information about yourself, such as mediaction, allergies, and of course your name and under Contacts you can add contacts which can then be called without unlocking your phone. However, accessing it is a little involved; you need to bring up the emergency call screen, then hit Emergency information twice.

The screenshots were taken on a Samsung Galaxy S3 running LineageOS 14.1 Nightly as of 13 February 2017. Currently I have no contacts on that phone, so I can't add any to show you, and my primary phone is still on Marshmallow, which doesn't have that option.

Oh ok. I'm still on Android 5 :P Good they've done it in the upcoming versions.


text:
How to install app from command line (terminal)?
How to install app from command line (terminal)?
I would like to start a terminal window and do the apk installation from command line (shell script)
EDIT1: within the phone.
Also is it possible to install from Google Play from URL, instead just a local path?
I didn't get answer, how to install Google Play app from command line.

Given enough privileges (ADB, root, system application) you can use simple terminal commands to install apps:
On a PC:
Run the simple command
adb install <path to .apk file>

and the app will be installed.
This requires adb to be installed and debugging mode enabled.
The file has to be located on the PC.
In adb shell or a terminal on the device:
pm install <path to .apk file>

This is basically the same as the PC method but requires the file to be placed on the phone.
Additionally privileges to install apps are required (ADB shell inherits them from the system, other terminal apps require root)

Sometimes, installing from the device with pm install <package.apk> fails with Failure [INSTALL_FAILED_INVALID_URI]. If on CM12.1 or otherwise having root permissions and the adb client on the phone, it's possible to work around this by making the phone connect to itself. To do so, you need to execute setprop service.adb.tcp.port 5555, then adb start-server, then adb connect 127.0.0.1:5555, then finally adb shell "pm install <apk_path>". All of the commands are to be executed as root.

Lastly, if you use my abovementioned method, there are times when adb will report a dummy emulator-5554 under adb devices. Killing it via adb emu kill doesn't work, but issuing setprop service.adb.tcp.port 5555 once more will make the dummy emulator disappear. The setprop command has to be executed when the adb server is running, or else the dummy emulator won't disappear.

Hi @DeathMaskSalesman, I am on CM13 and i'm getting the INVALID_URI error. Since I'm able to install the apk with adb and my laptop I'd really be interested in getting your solution to work, so I can do it without the need for a pc. Just one question... how do you install adb in the phone?
find / -name 'adb' only gave me three folders... Looking online I couldn't find anything

@GiacomoTecyaPigani You could try your luck with a version of ADB I extracted from my CM12.1 system. After downloading it from here, remount /system in read-write mode, copy the binary to /system/bin, issue chown root.shell /system/bin/adb, chmod 755 /system/bin/adb and chcon u:object_r:system_file:s0 /system/bin/adb and see if it works.

Thanks @DeathMaskSalesman, but sadly it didn't work. I solved it downgrading to a previous CM13 release (since the one I was using was already the latest for my device)


text:
Can't install Android drivers on PC
So I have this 4.4.2 Allview V1 Viper L aka Gionee Pioneer P6, with root (rooted using KingRoot) and I'm trying to install TWRP/CWM recovery (from what I read here I can install whichever I want) on it to flash a custom ROM.
I have another identical device with CWM recovery and the custom ROM fully functional, but I got help from someone with the CWM recovery. I decided to try TWRP on the other device, but I have a problem.
I have USB Debugging activated from Developer Tools menu, but when I connect it to my PC, it doesn't install it properly. Opening Device manager, I can only see a difference when I connect it to my PC in Disk Drives, where there is ALLVIEW V1_Viper_L USB DEVICE and another copy of it, and in Portable Devices 2 things appear upon connection: G:/ and H:/ - that's it. No Android ADB Interface as it should have.
I have the latest version of Android SDK on my PC, with SDK tools installed. When I run the tool from the link above, Easy Magic TWRP installer, I get stuck at "Please plug in your device..." where I get right after: ADB shell not working.
I installed Universal ADB driver, I restarted the device, I restarted the PC, uninstalled and reinstalled the devices created in Device Manager after I connected the android to PC, I tried to update those drivers, I checked and un-checked USB debugging but nothing. I don't know what is wrong. I would gladly appreciate your help.

Try turning from MTP to PTP, should install extra divers then try adb devices from the terminal

You need VCOM and CDC drivers to get it detected (as it's a Mediatek device)


text:
How to use in-app payment without Google Play?
I downloaded the apk for the app Contacts Optimizer and had it installed via sideload. I would like to upgrade the app to PRO. This is done using an in-app payment. Trying to use this tells me that "Cannot initialize connection to in-app payment server, please try again later." I guess the reason is, because I have no Google App store on my phone. How can I use in-app payment without Google Play?

I don't think that Google billing is possible without the Google apps installed.
However, there are some apps that offer in-app purchase emulation. In most cases, they work and in addition, you don't have to pay. Lucky Patcher is an app which does in-app billing emulations. However, if you are not rooted, you need to rebuild the APK in which you want to use emulations and reinstall it.

I found http://lucky-patcher.de.uptodown.com/android, but I am not rooted. How do I do this APK rebuild etc.? It sound you have done it before. Could you give a detailed description please?

In the list of apps which appears when you open lucky patcher, select the app you want to patch. In the menu which appears then select create modified apk file and then "APK rebuild for in-app and lvl emulations" and then just apply. When the process is finished you will be informed where the modified apk is saved. Then you install it and just try the in-app purchase. *NOTE: when you install the modified apk file you will probably need to uninstall the existing installation of the app, because the package installer may refuse to install it because of a signature mismatch.


text:
Disable IPV6, what could happen
Because of wifi connection issue, I have disabled completely IPV6 on my phone.
What bad could possibly happen ? Could some functionality/app be broken ?

If you need more excuses: http://ipv6bingo.com/

If there is any way to solve your problem other than disabling IPv6 on your device, you should do that instead. For instance, if the problem is an old home router that doesn't support IPv6 properly, update its firmware (if that fixes the problem) or replace it.
It might not have much of a noticeable impact on you today, but these are the things you should expect:

Accessing web sites which have already deployed IPv6 (and are using both IPv4 and IPv6, which is known as "dual stack") will usually be slower, because IPv4 has to go through network address translation, which adds latency to the connection. The difference may be barely noticeable or extremely aggravating. When large scale NAT is in use (this is sometimes given the ridiculous name "carrier grade NAT") as it is on almost all mobile networks and many cable/*DSL ISPs, your IPv4 connections may also be unreliable. IPv6 connections do not need to pass through any sort of NAT, and do not suffer from the latency and reliability problems associated with NAT and large scale NAT. This issue will also affect Android apps which connect to IPv6 enabled web sites.
The sites (and apps) where you may have problems are small and large, starting with Google, Facebook, Wikipedia...
There is a very tiny (but growing) number of sites which use only IPv6, because there aren't any IPv4 addresses left for them to use. You won't be able to access these sites at all. You will only receive an error message.

Here is my problem, http://android.stackexchange.com/questions/169466/android-ipv6-problem-wifi-instability-disconnection
for the moment I don't have any other solution


text:
Can't install applications (not enough memory) but Storage shows there is free memory
I'm trying to install an application from Play Store and after downloading it (about 25 MB) I'm gettin an error "not enough memory". My phone is Sony Xeria Tipo (ST21i) 4.0.4.
But in phone Settings I see that there is enough free memory:

Why it happens so?

Android upto version 4.0, has different partitions for application storage and storing normal user files, for imparting security on the apps.
As you can see even though  your internal Storage is 2.15GB, the total available memory for apps is only 754MB, of which your there is only 134MB available,
even though your downloaded app is about 25MB, it is in compressed state and will be extracted on install. So, you should either 'uninstall some of your unused apps' or 'delete appdata of already installed apps'.
If your phone is rooted! checkout some apps on playstore to move apps to external SD card.


text:
How to redirect local hotspot traffic to webserver
I want to redirect all incoming traffic in my android shared hotspot to my local webserver (192.168.43.1:8080), so if anybody connected to me put any url like "www.google.com" will automatically be redirect to "192.168.43.1:8080", I do have root access, what should I do to accomplish this?

What you are talking about is called session hijacking.
There is a penetration testing suite called D-sploit that can do the feature you are requesting about. You can search dsploit apk files on the internet as they are no longer updated.
Recently, Dsploit has merged with Zanti, you can try any of these.

Keep in mind that these are just for analysing security issues of your network, but involving in a fraudulent activity with other users will make you liable for your actions, so use wisely.

What you are talking about is called captive portal. On android this can be done by loading our own configuration file for dnsmasq. I made an a minimal UI app for this purpose. You can find it on XDA : https://forum.xda-developers.com/android/general/guide-setup-fake-captive-portal-android-t4011689
If you are android developer, please help us to improve the app.
And also this app requires root permission.


text:
How to decrypt files from SD card on android phone?
sorry if this is a repost. I am using a  Gionee P5L with Android 5.1. This system allows files on the SD card (mounted in the phone) to be encrypted. The whole SD card is not encrypted. And it does not ask for password to encrypt a file. If I hold my finger on a file name in the explorer, some menu appears at the bottom of the screen. The last one is "more".  Under the "more" option there are other options,  and the first one being "encrypt". If I select that, no password is asked,  and the file disappears from the explorer. My question is, is there any way I can get it back?

Their should be an option to open the secure storage directory... sorry I'm not sure what explorer you are using !


text:
Date and Time when my App was Updated
In relation to this question, How to list my recently updated apps, how can i know the exact time and date my app was actually updated? I was browsing Facebook earlier today, then after a couple hours, I re-opened the app and found that my account was logged out. I suspect that my app auto-updated for some reason and caused my account to be logged off.

adb shell "dumpsys package" will include those details. My little tool Adebar uses that when generating a device documentation.

@Izzy, I don't have access to the adb command-line because i unrooted my phone, any other method that you know? thanks!

You don't need root for ADB. Though it helps for additional information, it's not required to obtain those details. Please see our adb tag-wiki for some background.


text:
Identify when a file was Deleted
Some files suddenly went missing from my Android Device. Is there a way for me to Identify when a file was Deleted? I don't need to recover them (for now), but I just want to have a clue when it was deleted/removed so i can further investigate.

No, I don't believe so. Android does not log file deletion.

If you have root acess you can try app like Undeleter Restores File And Data.
You can search for the deleted file and as well as recover it.


text:
Whatsapp: Do NOT keep images for certain groups / contacts
Is there any way in Whatsapp on Android to exclude saving pictures of certain groups / contacts into the "Whatsapp Images" folder?
I know I could delete them manually by going into the Group -> "Media" and select all images manually, but rather I'd love to have the opposite behaviour so that I need to specify which images I want to keep / save.
This is also the way it works on iOS: You can specify for every group / contact separately whether images/videos should be kept or not...
Is there any way of asking for this feature officially on whatsapp?
Thanks


text:
How to flash ROM on Moto E2 XT1524
How would I flash this ROM:
XT1524_RETEUALL_MOTOE2(4G-LTE)_5.0.2_LXI22.50-13_cid7_subsidy-DEFAULT_CFC.xml.zip

From
https://firmware.center/firmware/Motorola/Moto%20E%20%282nd%20gen-2015%29/Stock/XT1524/XT1524_RETEUALL_MOTOE2%284G-LTE%29_5.0.2_LXI22.50-13_cid7_subsidy-DEFAULT_CFC.xml.zip

On A Moto E2 XT1524

Moto factory firmware images are flashed with fastboot, not recovery, so you need to do some homework/setup first. Be aware that downgrading a Moto device, while sometimes possible, is NOT supported and can result in a bricked device. You must use a factory image that is the same or newer version than you have installed already.
** BACKUP ANY IMPORTANT DATA - EVERYTHING WILL BE LOST **
** Enable OEM Unlocking in Developer Settings PRIOR to starting **
Backup is self explanatory. By enabling OEM Unlocking you are giving yourself an out, if something goes really wrong you have the option of unlocking the bootloader to correct it which is not possible if this switch is not set prior to starting.
If you are using Windows, you will need to install the proper drivers (Google can help you with this, I use Linux so drivers for Android devices are not relevant). Then you will need fastboot on your computer, you can get it from Google as part of the Android Studio package, Minimal ADB and Fastboot package, or if using Linux it is part of most distrobution's repositories.
Next extract the ZIP you linked above to your fastboot directory and shut down your phone. Startup your phone while holding the VOL DOWN button, you should get to the bootloader screen (if not, try again), then connect the USB cable and open a terminal or command window and enter the command:
fastboot devices
If you get a response similar to "List of devices: SomeLongString fastboot" you are ready to begin the flashing process. Enter each command individually ONE AT A TIME and verify each step results in a result of "Okay", if any step fails repeat it up to 2 additional times (modems frequently do not take the first time)
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase carrier
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
(Every recent Moto Android device uses this same process, it is derived from the contents of flashfile.xml that is contained within the factory firmware image itself and used by Moto's factory flashing tool)
The first boot may take a significant amount of time, 10-20 minutes even, just let it work and do not interrupt it.
Be aware that there additional resources for this on XDA in their Moto E 2015 General Discussion area, including threads specifically for firmware images and flashing instructions.


text:
Permissions conflict with screen overlays
I installed Marshmallow on my Galaxy Note 4 like 2 months ago. Everything was nice and peaceful, and I was happy to be able to select custom permissions per app.
A few days ago, out of the blue, I started getting this very irritating and well known problem, where every time I want to grant an app permissions, I have to get a message that asks me to turn off screen overlays.
The most annoying part, is that it doesn't tell me what overlaying app I have to disable. I just get this generic annoying message, PLUS, there's no master switch for overlays on my Note 4! Am I gonna have to spend the next two years being unable to give any app any permissions? Every time this happens, I spend an hour digging... This is crazy and very impractical!
What are my options here? How can I get rid of this problem once and for all?
PS: My phone is rooted, so please, whatever it takes!
Thanks!

Related: http://android.stackexchange.com/q/127769/96277

The solution for me is: turn off all Accessibility settings in the Settings of the phone. (now I feel bad for people who need them).
Also the program Twilight was another reason contributing to the problem.


text:
How to run a firewall and an AdBlocker on a non-rooted phone at the same time?
I have a non-rooted Android phone and would like to use both a Firewall and an Adblocker at the same time. How can I do this?
I could only find Firewalls and Adblockers for non-rooted phones that use use VPN with only one VPN connection being allowed.

You can use adguard for this purpose which has the capability of both a firewall and an adblocker. It sets up a local vpn for non rooted phones. It also has a proxy mode. ( maybe inorder to use with other vpns)

@NikhilAlexGeorge Why not make that an answer? Perfectly fits the issue. From the app description: It not only removes ads from browsers and applications on your smartphone/tablet, but also features such tools as firewall and phishing protection. Sounds like exactly what OP wants.

You can use adguard for this purpose which has the capability of both a firewall and an adblocker. It sets up a local vpn for non rooted phones. It also has a proxy mode. ( inorder to use with other vpns).

This sounds great. I knew about it but didn't know that it's also a firewall. Going to check it out. So theoretically I could use it as my firewall and my AdBlocker AND use a VPN? I guess the only issue would be that it's not free but maybe it's worth it.

Yes you can use it along with another VPN by changing the mode to HTTP Proxy mode. It creates a local http proxy server to filter traffic then. But in this case it requires root access. If not , you have to configure the proxy manually in the wifi proxy settings.

Yes, it is paid- suggest first take an yearly licence and wait for Easter / Black Friday / other sales - I got lifetime licence for the cost of about two year licence

You can install a firewall for non-rooted phones that uses VPN like the open source NetGuard and then use the browser Firefox for Android and install an Adblock AddOn to it (like uBlock Origin) or simply use the Firefox Klar browser.
Sadly I couldn't figure out a way to also use an additional non-root Adblocker that also blocks ads in apps but maybe there are some other alternatives. Pi-hole isn't really a solution in my and most cases.


text:
How to block incoming advertisement sms from senders with no visible phone number?
I get spam ad messages from a few companies regularly on my phone. And when I try to block them using the option given on the messaging application a custom message says that the number is invalid and cannot be blocked. So, how to stop such messages sent by unknown numbers?

This may work for you- it does for me. 1. create a contact for this purpose with spurious number 2.Use Textra messaging app and from People in Conversation>add contact add to the contact created in 1 3. Blacklist it

"create a contact for this purpose with spurious number". The problem is that the sender has no visible number! @beeshyams

Just give it any number- like 999999, which isn't valid. Then you add this sms contact as pager/ home or any other option

@beeshyams Textra doesn't work (isn't compatible) on my Samsung tab 4. Any other option?

Sorry, but I do remember that this question was asked before and answered- suggest you search this site thoroughly

Does turning off ( Wap Push Message's ) in the default messaging app work  ?

@NoobFood What does that do? And how to turn off Wap Push Message? I have a Samsung device (Tab 4).

Wap Push messages allow websites to send messages through the internet or PUSH them through, I think Facebook has a push notifications feature like this ! ... You can turn it off by going into the default messaging applications settings and unselecting Allow Wap Push messages

Try this SMS Organizer app.
Apart from a host of other features, this app lets you set 'rules'. For example, you can set a rule to auto delete any message when the sender's phone number/contact name contains a certain sequence.

If you are unsure about deleting, you can also set the rule to move the sms to a folder (This app also lets you create folders for sms), say a spam folder


text:
Failed to map file - TWRP on KLTE
I am trying to update my su binary. I previously used SuperSU, but switched to CWM SuperUser and now it is telling me to update my su binary. It tells me to reboot to recovery mode which works and tries automaticaly to flash the zip. But when viewing the log, an error message shows:
Failed to map file: /cache/superuser.zip
Flashing zip failed.

I have tried manually copying the su binary but SuperUser still prompts me to update it. I have tried moving the zip file and flashing it from a different location, but I still get Failed to map file.... I am using TWRP 3.0.2-2 on SM-G900F (Samsung Galaxy S5 [klte] International) with stock Android 6.0.1.


text:
Direct to voicemail turns off on its own
I have a "spam" contact which is set to "route to voicemail" right away. (See How to gracefully block calls for an example)
This setting frequently turns off on its own, so calls go through anyway.
Why would that be the case? What can I do about it? I'm using my carriers (Three/Hutchison 3G) normal voicemail service.
Nexus 5X, stock android 7.1.2.

@xavier_fakerat Are you suggesting that the carrier can arbitrarily flip settings on my phone? (The was has not been provided to me by the carrier), or are you saying that the contact setting is expected to be respected by the carrier, and they don't? I'm not sure what I'd be asking the carrier?

@xavier_fakerat I've added a link that contains detailed instructions of pictures showing how this works. I'm not sure if that helps to clear anything up. My comment above was supposed to say "The phone was not provided to me by the carrier". The voicemail service is not custmized in any way, sorry if my previous comment gave that impression. I'm using only what's already in android for this, no third party software installed.

Just another question...I understand the Google phone app (a.k.a dialer) has this voicemail functionality, but which voicemail service does it use? Is it Google voice or carrier e.g T-Mobile?. Its a bit difficult to reproduce a similar scenario if these details are missing. Probably I would say an issue with the dialer app, of which I suggest clearing its cache and see if there is difference and perhaps checking in battery optimisation settings.

@xavier_fakerat Sorry, I didn't realize that was important information, but I've added it now. I've also tried to clear the cache for the dialer to see if it helps. Couldn't find anything related to battery saving that might be relevant. Are you thinking that a low battery mode prevents the phone from rejecting the call on time, so that the call goes through?

Not really but from Android point of view, certain applications which use a lot of resources tend to get killed in low memory conditions, do it may be a possibility that at times it may be killed, (thus non functional) but restored when resources are okay....its just a possibility. So I think its better not to overlook these petty issues. Secondly pertaining to our situation I suspect if we the voicemail service provider is known, we may exclude guesses as what it is the problem cause, I have'd many users xomplain of disruption of their voicemail service through their carriers, or

Its issue with the device itself as Nexus has ability to block calls at sustem level, but I am not too sure how the calls are later retrieved, so perhaps congestion with already saved calls? These are just scenarios Im imagining in troubleshooting the issue, but now I do not have conclusive evidence on cause. I have escalated the question with an upvote perhaps other users may join to help

Using this app,  see if you can create a shortcut to route to voicemail. If you can, then you can think of automating enabling the setting everytime you get a call from that number

Did you manage to solve this matter?


text:
What does a check mark on a site thumbnail means? And how does one remove it?
I'm using Chrome canary and this check mark has appeared. I don't know why it appeared and what it means? Page is bookmarked but others from here are too but no mark; page isn't saved for offline reading. Any thoughts?
Also how do I remove it?!
(Click image to enlarge)

It means the site is downloaded for offline viewing. You may have done it by accident but that is what the icon means (unless Google changed the meaning in your Canary build which I find very unlikely).

I just saved some page for ofline reading and it have same mark, but it's showed in downloads from chrome, but this page isn't there. It must be that chrome went crazy since this is experimental build. And I'm 100% sure that I'm not saved this page. However do you know in which folder/place chrome stores pages for ofline reading it's not Downloads folder..?

I'm pretty sure it's in the apps data folder so isn't accessible (without root). You could try going into flight mode and try to access to site (to see if it is available offline). It could well be a glitch with Chrome as you are running a Canary build.

Shame phone isn't rooted so I can'd dig there. Well it seems it's saved, but kind of, because only one picture and one title from that page without css is loaded when im not connected to internet. I tried saving it and then deleting saved page, but mark is still here, so it must be up to chrome.

After unsuccessfully trying rather complex fixes suggested on google forums, I ended up clicking on the three dots next to the search bar, going to downloads and searching the site with the checkmark (using the magnifying glass at the top of the pg.) Clicked the three dots next to the site download listing and clicked delete, and the annoying tick was gone.

Thank you!! I finally got rid of the annoying icon decorator using this answer

Chrome thinks the webpage is downloaded for offline viewing.

This also happened to me today.  I fixed it (removed the check marks) by doing the following:

In the Chrome settings:

Click "Privacy and security"
Click "Clear browsing data"
Make sure that only "Cached images and files" is checked
Set the "Time range" to "Last 24 hours" (longer if necessary)
Click "Clear data"
If you can, make sure that the sites that have the downloaded check mark icon next to them on the home page are selected, and deselect all of the other sites
Click "Clear"
Wait a bit while it is busy "Clearing browsing data"
Go back to the home page and refresh it
Be happy that the check marks are now finally gone

Pray. Clear Chrome's data.
Go to App Info or Application Manager or whatever it is → Chrome → Storage & memory → Manage space → Clear all data.
This is worked for me.

The OP wanted to know what the checkmark is, not how to remove it.

@Zackary the title says differently: "And how does one remove it" :)

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


text:
Turn Screen Upside Down Horizontal
I need to turn my android phone horizontal, but have the "up" side be the side that is closer to the ground. How does one do this?

I assume you mean 180° rotation - lots of screen rotation apps, like Ultimate Rotation Control, can be set up to do that.
The bonus point of the one I linked to is that, after setting up properly, it will seamlessly integrate with the built-in rotation switch of the OS.

This app does exactly what you are asking for
https://play.google.com/store/apps/details?id=com.pranavpandey.rotation
StackExchange will not approve my answer unless I add more information, so here's a 1:1 citation of what the app author writes:
Rotation is a tool to manage the device orientation. It offers all the modes that Android supports and can be configured according to the apps or various events like call, lock, headset, charging and dock. Let's give it a try to explore its other features.

FEATURES

Orientations
• Auto-rotate on • Auto-rotate off
• Forced auto-rotate • Forced portrait • Forced landscape
• Reverse portrait • Reverse landscape • Sensor portrait • Sensor landscape
• Forced full sensor • Lock Current – Lock current orientation

Conditions
• Call orientation • Lock orientation • Headset orientation
• Charging orientation • Dock orientation • App orientation
• Events priority - Customizable events preference in case of two or more events occur simultaneously.

On demand
# Change orientation of the foreground app or events with a fully customizable floating head (or notification or tile) available on the top of supported tasks.

Themes
• A dynamic theme engine with background-aware functionality to avoid any visibility issues.

Others
• Start on boot • Notification • Vibration and more.
• Widgets, shortcuts and notification tiles to perform various operations.
# Rotation extension to automate over 40 actions via Locale / Tasker plugin.

Support
• Quick setup to configure major features at once.
• Dedicated support section to troubleshoot general issues.
# Perform backup and restore operations to save and load the app settings.

Features marked with # are paid and Rotation Key is required to use them.

LANGUAGES
English, Deutsch, Español, Indonesia, Italiano, Português, Русский, Türkçe, 中文 (简体), 中文 (繁體)

PERMISSIONS
Internet access – To display ads in free version.
Retrieve running apps – To detect foreground app.
Usage statistics (Android 5.0+) – To detect foreground app.
Modify system settings – To change display orientation settings.
Draw over other apps – To change foreground orientation.
Read device state and identity – To change the phone call orientation.
Run at startup – To start service when device boots up.
Control vibration – To vibrate device when orientation changes.
Modify USB storage (Android 4.3 and below) – To create and restore backup.

ACCESSIBILITY
It uses an accessibility service to provide a better experience and to force the lock screen orientation on Android 8.0+ devices. It will not access window content or any other sensitive data.
Rotation > Conditions > Events > Accessibility.

------------------------------

- Buy Rotation Key for more features and to support the development.
- In case of bugs/issues, please contact me via email before making any review.
- Some apps might not work properly when forced to work in certain orientations. Use Auto-rotate on/off from conditions to use system settings for those apps.
- Reverse portrait is disabled on some Xiaomi (MIUI) devices with default launcher. Please try any other launcher (home screen) to make it work.

Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.


text:
Why does the Samsung S60 draw so much power?
I've been recording the current draw from my s6 using ampere- the absolute lowest i can get is 100mah (screen at minimum brightness and airplane mode). The highest is around an amp with the screen on.
This means that my phone would be flat in two hours of use, and likely sooner. I typically get 5 hours of battery life out of my phone- which to me is ridiculous: just listening to Spotify for an hour in the gym and a 40 minute commute, and I am down to 50% from a full battery (screen isn't on all this time). I have tried factory resets and it is not significantly better with even the stock apps.
I know that power management comes into play when it comes to battery life, (especially during idle times), but what makes modern smartphones so power hungry? Is the screen the main culprit? or just crappy unoptimised apps that keep the device awake?

Most of the power consumed on a mobile device is by the display. I'm not sure how you are getting these current measurements, but 100mAh is good. 1 amp seems high if you're not running an app. I found by uninstalling apps like Snapchat and Facebook I was able to get extra battery life. Companies like Symantec publish annual reports of apps that consume extra battery and network data. Check those out.


text:
Is my device's acceleromoter working as it should?
I recently installed Asphalt Nitro, a racing app that supports using the device's "gyroscope" for steering. My device being as cheap as it is, it doesn't have a gyroscope, so I assume Asphalt is using the accelerometer. However, it seems to use the wrong axis. (I have to tilt it back and forth to steer.)
My question is, is it the app's fault or my tablet's fault?
Here's some test data (assuming horizontal is right-side up, data given in m/s²):
Right-side up:      X=0    Y=9.8  Z=0
Left:               X=9.8  Y=0    Z=0
Right:              X=-9.8 Y=0    Z=0
Upside down:        X=0    Y=-9.8 Z=0
Flat on the ground: X=0    Y=0    Z=9.8

They all look okay to me

What do you mean it uses the wrong axis? Isn't tilting back and forth how you're supposed to steer?

@EvanChen When I said tilting back and forth, I meant if I am facing the device, i.e. the axis around which I would rotate it to turn it upside down so that the back would face me. It should work by steering as I tilt it from side to side.


text:
Android IPV6 problem, wifi instability/disconnection
My lg g4 has wifi instability/random wifi disconnection when using ipv6 with wifi.
The only workaround I have found is to disable IPV6 on my phone.
I have already tried reseting/updating the phone without sucess
Is there anything I could do to keep IPV6 (I have heard it's not a very good thing to disable it)
? Maybe change some router setting ?

This is very hard to answer without more data. What kind of Wi-Fi access points and router do you have, and what are the current settings?

If you need more excuses: http://ipv6bingo.com/


text:
extSDCard as internal Storage - how does Androied manage app & data location
Since Android 6.0 is it possible to use the external SD card as internal storage. If you do so all data on it will be erased and the card will be repartitioned.
I'm quite new to Android > 5.0 but I installed Resurrection Remix OS 3 weeks ago but running again into the storage limitation of my SII (I9100), I used the 1GB/2GB PIT (see Increase system partition size or Lanchon REPIT on xda).
Anyway as far as I understand, depending on your Android version, you can either use any of the apps such as AppMgr Pro III, Link2SD or App2SD what are able to partition and mount your extSD as internal storage, there is a tutorial on classroom.synonym.com (How to Partition Your SD Card in a Droid for APP2SD). I read all in forums.androidcentral.com ([TUTORIAL] Everything you wanted to know about app2sd, ext3, ext4 partitions!!) but they didn't answer all questions.
Besides, the >Android 6.0 in-build feature is a IMHO more handy.
Anyway, can someone answer the question how Android manage the internal /Data and /media_rw partition combined with the external partition before running again in any limitation.
Will I be able to utilise almost all 32 GB or 64 GB of the extSD for apps and their data. I don't take that many pictures with my I9100 due to the poor cam.  I found 2 well explained tutorials (#1 & #2) but both missing this detail.

The adopted SD card is actually mounted at /mnt/expand/$UUID
Instead of forcing the user to pick for EVERY file whether they want it stored in the device's internal storage or the adopted storage, they simply made the internal memory unavailable for storage. That is, /storage/emulated is mounted to point to your adopted SD card and your previous internal storage data that actually lived in /data/media is moved over to its new home on the SD card. This gives the added benefit that there is NO ambiguity where apps are storing user data. It always goes to the adopted SD card.
Go here for more info
reddit: Let's clear up the confusion regarding storage in Android once and for all, including adoptable storage in Marshmallow.

I finally read the entire post. The sticking point is still that developers still control whether their app is movable to SD, in this case the extended internal storage. So you can still run into the limitation of the phones build.in storage.
At at least I can allocate all free space to the /data partition, since I won't need any /media partition since as far as I understand, Android will move all user data, pictures, offline files of streaming services etc to the integrated SD card; please confirm or correct.


text:
Boot only when connected to a Pc
Is possible to set my Android(Asus Zenfone 2) to only boot with it's connected to a specific computer via usb.
No problem if root is needed.

No, there is no trivial way to do this. You would have to write a custom bootloader for your phone.
If your intention is to protect your data, a viable option would be to use full disk encryption, which does not even require root.


text:
Mounting external sd-card on rooted Android 7.1 tablet fails, but only if partition not empty
Edit: I have tried mounting the sd-card with an empty ext4-partition, and it worked just fine, but after I ran debootstrap on the sd-card, the problem reappeared with identical symptoms.

I want to mount an ext4-formatted sd-card, but
 # mount -t ext4 /dev/block/mmcblk1p1 mountpoint
returns
 mount: mounting /dev/block/mmcblk1p1 on mountpoint/ failed: Invalid argument
So far I have:

made sure the sd-card itself is OK (mounts fine on my debian laptop)
made sure the block device is the right one
replaced mount with busybox mount , which is a different binary, but gives the same error

The mountpoint exists, and the kernel supports ext4. My device is a rooted Samsung Galaxy Tab S2 running a Lineage OS 14.1 ROM (Android 7.1), SELinux is set to permissive.

Any pointers are appreciated!

Does sdcard mount Android storage setting?
Run blkid command, see what say about partition.
Also what is mountpoint? I.E. /mnt/sd-ext
If you call mount like this
# mount -t ext4 /dev/block/mmcblk1p1 mountpoint

You have to be in same directory as mountpoint


text:
How to add a custom keymap / keyboard layout to Sony Xperia keyboard?
As far as input methods go, I like the Xperia Keyboard from Sony best.
However, I would like to slightly modify the English keymap. Specifically, I want to add some additional accented characters to the list of long-press alternatives for both "e" and "a".
I don't mind whether I replace some of the existing ones (so that "e" still has five accented alternatives and "a" still has seven) or add new ones; whichever is easier.
Is there any sensible way to do this?
Xperia Keyboard supports many languages which can be downloaded from its Input Method settings, and I presume some of these have several keyboard layouts (as there is an option to choose keyboard layout for your chosen language; I'm not sure as English (UK) only has one keyboard layout (QWERTY) but this option wouldn't make sense if at least some languages didn't have multiple layout options). This suggests that there is a place somewhere on my phone where I should be able to put an input language / keyboard layout file in some format and this would be recognised as one of my keyboard options in Xperia Keyboard settings.
My concern is that this may be in some part which is only accessible by if the device is rooted. I would happily root mine but to my best knowledge there is no known method to root it currently (Sony E2303, Marshmallow 6.0.1, bootloader unlock not allowed).
Ideas?

Try the hacker keyboard maybe it is in the play store

Thanks Liam, but what I'm after is a way to edit the keymap within Xperia Keyboard, or adding a custom one.

Have you tried I'm pretty sure it allowed for custom keyboard layouts?

You can customise the keyboard to a limited extent (move smiley keys around etc) but that's not really what I'm after: I need to add custom accented characters that are not in EN_GB to that layout.

this is slightly a duplicate I am actually trying to do a similar thing http://android.stackexchange.com/questions/54335/how-to-add-a-custom-keyboard-layout I assume you have tried reading the other duplicate/similar questions, but I am not sure.

I have reread your question you seem to be after the specific keyboard you are using this makes it more complicated.

Actually I've just had an epiphany and looked into the Xperia Keyboard apk. The basic character maps are in the "assets" folder, in plain text, so one can edit them there, and probably re-name and re-sign the apk just so that it does not get updated when there's a new version of Xperia Keyboard. This is hardly a solution though, more of a dirty hack. For one, this would have to be repeated every time Xperia Keyboard is updated.


text:
“Cyclic dependency not allowed” error on Android Emulator
I'm currently using an Android emulator KOPLAYER (v1.4.1049) and installed the app Topps KICK on it and have been using it for a month. When a new update for the app came, and I tried logging in the game, this error came up:

Cyclic Dependency not allowed.

I also tried contacting the TOPPS guys but to no use. I have tried the app on MEMU, Nox and BlueStack emulators too, but I get the same error.
It works fine on my Xperia Z and iPhone 6 Plus. The problem is just with Android Emulators on my laptop.
Any help I would get will be much appreciated!

Sounds like a development issue ! .. I immediately thought this question was going to be about developing an application, because that's usually when you see that !

It works Fine on my Xperia Z and iPhone 6 Plus.
The problem is just with Android Emulators on my Laptop.

It seems an 'on the fly' compiling error. If so, nothing you can solve. Probably will soon arrive the update of the update.

User is trying to use the app in a way where its not supported by the developers. TOS of the app strictly states that app should "not" be used with any emulation software.

Just over a month ago topps released an update that killed emulators on all topps apps for good, Now when you isgn up on android devices they ask for the device your signing into, some phone ID... so they know its a real device. Still looking for other ways to get on

Oh. thnx for the info.
Can you please keep me updated if you get any other way to get on?
I'm trying other ways too, we can get to a solution together.

This happens often, since now using an HTC One A9, whether it's a direct download or on parallel space. I have to update my phone's profile in my system updates, the phone reboots, and I can log into the Topps apps again. Even when this happens, I can log in on an old phone with no problem. Topps has no clue why this happens. I've given up working with them on it, and just update profile everytime it happens, sometimes once every few days, and once eight times in one day!


text:
Why phone encryption without screen lock is possible under Marshmallow?
Since phone encryption is irreversible, I'd like to ask before applying it to my phone for the first time.
I have a slide-screen unlock set under my Moto E3 / Android 6.0 Marshmallow. No PIN, no pattern. How it is possible that my phone / Android allows me to encrypt my phone in this situation?
Here are all the warnings I can see.
First screen warns me that:

I need to power up my battery to something around maximum,
I need to connect my phone to charger,
phone encryption takes 1+ hour.

Second screen warns me that:

phone encryption is irreversible,
phone encryption takes 1+ hour.

But, on both screens I can tap Encrypt Phone button without any problems.
What am I missing? Shouldn't I be rather warned that phone encryption is not possible in my case, because I failed to set PIN-lock or pattern-lock for my screen / phone? Shouldn't Android 6.0 rather disallow me to continue with phone encryption in this case?

I have a Galaxy S5 (Android Marshmallow), and when I hit the encrypt phone button, my phone stopped me and forced me to have a password or pin in order to continue. If you use finger print or face recognition, you will need to enter the password or pin on device restart. So the answer is Yes your phone will disallow you from continuing with phone encryption without a password or pin, your phone will just ask you nicely for a password as a part of the encryption process rather than send you back into the settings to make a password.


text:
Recovery Mode on tablet with no volume buttons?

I have a Yarvik TAB10-201. The default launcher is corrupted.

I can get the tablet onto the recovery screen (Dead Android with red
exclamation mark).
I can't bring up the options menu without volume up and down keys.
I can see the device in Android Multi Tool, but when doing wipe data, it just restarts back into recovery mode.
Rockchip does not detect the device for rooting as I can't hold volume up on boot.
I can see the device running ADB devices (shows as recovery status).
ADB reboot bootloader just turns the device off.
fastboot devices returns no devices.
I have the default ROM for the Yarvik tablet, but unsure how to flash if fastboot is not locating the device.

What other options do I have to recover? I am happy to root or recover.
I can't access the OS at all, on boot it just throws errors regarding the launcher.

Let us continue this discussion in chat.

Thanks to esQmo for helping me look for a solution.
Turns out it was a Windows 8 problem, I switched to a different PC using Windows 7 and had no problems with RKBatchTool. For some reason even with correct drivers installed that worked when the tablet was plugged in, when the tablet was in Flash Mode Windows 8 had problems with the USB drivers.
For anyone that comes across this question.
I got the stock Firmware for Yarvik TAB10-201 from here.
I used RKBatchTool 1.7 and the RKB Driver Assistant for the drivers.

You can also use an OTG Keyboard... I had similar problems with my rockchip tablet


text:
Is it possible to make computer temporary storage?
Weird question,
But is it possible to use your computer as a temporary storage via USB charger. I'm thinking I could use this to download files straight onto the computer from my phone.
Edit:
I mean using the PC as a sort of mount point for my android. This will be like having an SD card however I understand it would probably not be as fast as I want to do this with an USB Charger. I was possibly thinking of this to download files bigger that my phone and sd's capacity.
Is this in anyway possible?

USB Charger or USB Cable ? ... Please explain why you would want to do this !...    ...    ...   You could make a simple looping batch script, that just pulls your download folder every 30 seconds or something !

@NoobFood I like that but the download will not be complete on the computer. I want to do this as it could possibly be a cheaper alternative of an SD card.

That's a good idea ! .. You may be able to use OTG ( On the go ) to download on USB memory devices like an external HDD  or USB memory stick  .... ... but that depends on what phone you have !

OTG depends on your phone's kernel. For an adventurous alternative, instead, you need ADB installed on your computer, and a decent curl or wget in your phone. You'll then plug your phone to your computer, open a terminal in the latter and start ADB with adb start-server. After that, you'll need to issue adb shell "curl <url>" > <output_file> if using curl, or adb shell "wget <url> -O -" > <output_file> if using wget. Replace <url> and <output_file> with the appropriate URL and destination file name. The phone will download the file and send it via ADB in real time.

MTP is the protocol in which the phone can transfer files from your phone to your computer (and vice versa). If it is a Windows computer, you should be able to plug your phone in and access and modify the files from the computer section in the file explorer. A pop up on your phone may ask you what protocol to use (for security reasons) and your phone's files can't be accessed until you select MTP. Macs don't support MTP (last I checked). You may also want to use a wifi file transfer app, if that is more convenient.

I don't think this is what OP is asking about...

I'm thinking I could use this to download files straight onto the computer from my phone. MTP and wifi transfer do this. If this doesn't answer his question, the author can not accept my answer, and comment on my answer with a clarification, and I will edit my answer accordingly.

From my understanding of your answer, you meant to just download the file from the PC and transfer it to the phone, wired or wireless. What I see OP attempt to do is sort of "mount" the PC to a mount point available on the phone, and operate the download from the phone itself, and have the download go to that mount point (which stores it onto the PC). Let's see how OP explains his ideas later...

@AndyYan yh that is what I need

MTP won't work for me, downloading and pulling the file out at the same time will mean you won't even have a file at the end.


text:
I want to know what the middle notification symbol means please. the one That looks like a sheild with lines in it
I want to know what the symbol inn the middle means..the one with the lines:

Screenshot (click image to enlarge)

I'm more curious to know where you're seeing this screen...

You could have used google image search.

It's the logo for Lookout .
Found it here.
Hope this helped.

Aw, 5 seconds late :(

That's six :D @AndyYan .

Thank you!!  there is another one but I can't find a picture of it.  It's a white bubble with black in it.  Almost looks like a messenger bubble.

@Lapdn Please accept the answer you deem useful, it completes the process and gives both you and the corresponding author a little renown boost :)

Arghhhh ... Stack needs an auto update  feature to stop the falsely labeled unanswered questions !

@NoobFood They also need a feature to stop bumping such questions to the top, especially some really old ones (I mean, who still cares about Android 2.x problems today?).

True that @AndyYan .

Let's agree to agree

It's the icon of Lookout Security & Antivirus.


text:
Xposed as a system app
And by the course of the days, memory keeps stacking and stacking up on Android, I have the habit of restoring the phone after a while (even with root, SuperSU as system app). But now I have Xposed framework, and it is not a system app (but I can change that easily). Do Xposed framework keeps working when the phone is restored? (Assume that Xposed is a system app)

A factory reset will not touch the system partition/storage ... It specifically wipes the data partition/storage only ! ... Assuming that you have installed Xposed Framework, you will have a custom modified app_process in system/bin and even removing the Xposed application should still keep the framework active !  However you may need to allow the specific permissions with xposed !  Hypothetically you can remove root access and still use Xposed afterwards .. but due to the new Android Pay and Certified Device's change's, it may have difficulty working, as this could be a serious security issue

Xposed Installer is not necessarily a system app; however, Xposed framework itself , mainly /system/bin/app_process, is. If by "restore" you mean factory reset (wiping /data) then it will not go away.

Uh, I didn't know that they were different things. Thanks and btw if I make the Installer a system app, it will not be erased either?

Yup. Why you'd want to do that is beyond me, though.

Just because I don't wanna reinstall it (I even don't know if I still have apk)


text:
Why fastboot devices is empty on Linux?
I'm using Ubuntu Yakkety Yak, 16.10.
According to Android SDK manager:
Android SDK Tools v 25.0.3
Android Build Tools v 25.0.2
Android SDK Tools v 25.2.5
My phone is a OnePlus 3t and I'm developing for it for a while, adb works normally, udev rules are configured. I enabled OEM boot, and manage to reboot in a way which looks like to me fastboot. After rebooting to "fastboot" the device's USB id is exactly the same as in normal boot. That's suspicious because I read in some forums that it might be different after fastboot boot (I checked if I have to adjust udev rules).
fastboot devices

doesn't show any devices. My suspicion is that I don't really boot into fastboot mode. Here is capture when I reboot, I press the power button:

If I don't press the power button, the up/down offers recovery mode. In recovery mode I can wipe all data or the cache and also install from internal storage or ADB. data decrypts successfully. Needless to say I cannot install SuperSU, TWRP img doesn't appear in that install menu.
(My goal is to unlock the bootloader, install TWRP and SuperSU so I can perform the xml file config mod for DayDream.)
Any help is appreciated.

I'm amazed BTW how nicely OnePlus is tinkerable as opposed to my old Galaxy Note for example. I'm sure it's some glitch with my setup we'll overcome soon.

Found someone who did it successfully: https://android.stackexchange.com/questions/166033/how-to-flash-and-root-oneplus-3t-on-linux?noredirect=1&lq=1

I disconnected the device while I was rebooting.

The screenshot is fastboot, you should be able to unlock and then install TWRP image.

I know. But fastboot devices shows nothing so I cannot issue the oem unlock. I'll try to tinker until I succeed.

I don't know what you're doing with your udev conf but I didn't need any of that. It worked out of the box.

The USB device during fastboot BTW is 18d1:d00d Google Inc. and I needed to add udev rule for TWRP flashing. Thanks for your efforts BTW!

I misunderstood what does it mean to boot to fastboot mode. By reading through tutorials I thought when I saw the screen on the screenshot, I still needed to boot (power button) into fastboot mode. Turns out that when I saw that screen above, I was already in fastboot mode and could issue the unlock or flash commands.
Looking at some more detailed Youtube videos made that clear. After tackling a typo I successfully flashed TWRP, installed SuperSU. The OP3 DayDream mod is not working yet though: DayDream apps still displayed as not compatible with my phone in the app store, even after the XML modification and reboot.
One extra advice: a simple adb backup -all won't backup everything, as I learned.
https://forum.xda-developers.com/oneplus-3t/help/oneplus-3t-fastboot-ubuntu-16-10-t3561732?goto=newpost

During 2017 summer I managed to get the DayDream hack working, I used SuperSU. I just transitioned to Magisk, so I can use Android Pay and hardware tokens. The DayDream hack does not work since the last couple of OS updates in the fall.


text:
Disable folder auto-creation in OneDrive under Marshmallow
OneDrive for Android 6.0 Marshmallow keeps adding "Email attachments" and "Documents" folder to my root OneDrive folder each time I open this application under my Moto E3.
Is there any way to block / disable this annoying feature?
Is this something OneDrive-specific or Marshmallow-specific. If I switch to Dropbox, will I be able to fully control what is added to my cloud-folder / block automatic creation of some strange folders?

For desktop version it is not possible according to this and same probably for Android version since they are meant to be compatible?  For preventing or deleting root may be needed. Is your device rooted?

My phone is not rooted. I am aware of forum thread you have linked, but I would be reluctant in calling this compatibility, since OneDrive for Android creates different folders than OneDrive for desktop Windows and since OneDrive for Windows Mobile does not auto-create anything. Paths are root = Both folders mentioned in the question are auto-created in root folder of my OneDrive for Android.


text:
How to disable mobile data for one of the sim
I have a OnePlus 2 and have 2 sims in it. My question is how can I keep Mobile Data for SIM 1 on and off for SIM 2?
I have tried options in SIM and network settings but option to enable/ disable mobile data is in general setting and not in SIM specific settings.

There will be an option in Sim and Network settings mentioning "Default Sim for Internet". Choose the SIM 1

I have already done that but if there is no network for SIM 1, it uses SIM 2 for mobile data. I don't want this.


text:
Device permissions
I rooted HTC Desire 526 5.0 with kingroot Apk and it says that my device is not giving the root permission so what do I do to fix that please help me thank you dee

flash with SuperSU..and grant the application root access


text:
Kali Nethunter Terminal Keep Crashing
Device : OnePlus 2
OS : OOS 3.5.6 on android 6.0.1
I tried to install nethunter many times, unlocked phone, rooted and install    modified super su for oneplus 2, flashed overlay-rom nethunter,    everything is ok except that the nethunter terminal is just crash and    shutdown with no error when i try to start it, i even tried to wipe    system clean and try over, but it still same, also installed    different terminals but chroot can't find it,
Installed using the guide :

git clone --depth 1   https://github.com/offensive-security/kali-nethunter
cd    kali-nethunter/nethunter-installer
./bootstrap.sh ( Type N for    Experimental Devices and Type N again when prompted to download full    Download History)
python build.py -d oneplus2 -m -nosu -fs full    then flashed the zip file created.!

after that flashed the kernel    from the main site "    https://build.nethunter.com/nightly/3.15.4-20170211-0304/"

Make sure you are flashing your phone with oxygenos 4.0.2 as it is the version the nethunter kernel is based on. I had the same issue until I realised. I'm using the 3t and slowly working through small issues I've found but as a whole it works great. Any more questions just ask


text:
Device does not boot to system after flashing boot image
I unpacked the boot image from TWRP backup and repacked it without any modifications. but once i flash this image, it only boots to recovery - it fails to boot to android system.
I used the tools from https://github.com/pbatard/bootimg-tools and the following commands to extract and remake the boot image.
# to extract
unmkbootimg -i ../boot.emmc.win
mkdir ./extracted
cd ./extracted && gunzip -c ../ramdisk.cpio.gz | cpio -i

#to recompress
cd ./extracted && find . | cpio -o -H newc | gzip > ../ramdisk.cpio.gz
mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x10008000 --ramdisk_offset 0x11000000 --second_offset 0x10f00000 --tags_offset 0x10000100 --cmdline 'androidboot.hardware=tn8' --kernel kernel --ramdisk ramdisk.cpio.gz -o ../boot.emmc.win

The one possible issue I am seeing is that the newly created .emmc.win image is much smaller than the original one and has no trailing zeroes.
I am unsure how to avoid this issue and create a correct boot image.
MiscInfo: Device is Nvidia Shield Tablet, initial kernel/rom is cyanogenmod.

I took command sequence from http://www.imajeenyus.com/computer/20130301_android_tablet/android/unpack_repack_recovery_image.html and the mkbootimg command from output of unmkbootimg command

got it! Question is a duplicate of https://stackoverflow.com/questions/15573917/need-help-compiling-mkbootimg-binary-for-android
leaving this answer here for reference.


text:
(SOLVED - partial) Flashing Source Built ROM Fails in TWRP, Invalid File Format
I am new to the development community and have started to learn about building Android from source.  I've successfully built AOSP from source for my Nexus 6P (aosp_angler-userdebug, android-7.1.1_r14).  $make runs fine and I can install system.img and boot.img via fastboot and all is well.
However, the .zip made from $make updatepackage fails when I try to flash it in TWPR, throwing an error Failed to install, invalid zip file format!
After doing some research I noted that $make updatepackage isn't producing a META-INF folder.  When I run $make dist, META-INF is created and I can then $./build/tools/releasetools/ota_from_target_files.zip out/target/dist/ota_update.zip, but that ota_update.zip fails with the same error message in TWRP.

AFAIK AOSP doesn't natively have a way to package it into a functional flashable zip, that part is what 3rd-party ROMs do in their own ways (they should have a script or sth).

Thanks Andy.  That does seem to be the case.  Most have a META-INF and an AnyKernel (or similar) scrip to make things work.  It seems like the ota zips are fore side loading.


text:
Applications are not installed with adb restore
I have non-rooted Android 7.0 device (NVIDIA Shield Tablet) which was previously backed up with
adb backup -apk -shared -all -nosystem -f mybackup.ab

But restoring it with
adb restore mybackup.ab

results in that /Android/data, etc are restored, but the applications are not installed from apk files, no errors.
I've had to extract apk files from mybackup.ab and install them manually in batch with adb install <...>.apk. After that everything was fine.
I'm quite sure that I've previously had similar problem with 6.0. and Helium/Carbon before but thought that it was specific to backup method I've chosen.
What is the problem with adb restore? Is it because the device is non-rooted? Why does adb install work as expected then?

@SkylarMT Not yet. Still have to use adb install in batch. Hope somebody can help on this.

I had partial success using Titanium Backup to restore the adb backup file.  It requires root and didn't get everything, but it restored over half the apps I had installed.

See if this solution helps

I've adapted niels' script a little to fix some issues with it:
#!/bin/bash

set -e

if [ $# -ne 1 ]; then
  echo "Usage: $0 <package-name>"
  exit 1
fi

echo -n "Enter password: "
read -s password
echo

java -jar abe.jar unpack $1 $1.tar "$password"
tar -xf $1.tar --wildcards '*/base.apk'
rm $1.tar
for apk in apps/**/a/base.apk; do
  adb install "$apk" || true
done

adb restore $1

echo "Ready"

Just download the latest abe.jar from https://github.com/nelenkov/android-backup-extractor/releases and run the script with your backup file as an argument.
The script requires java to be installed.

I solved it with the following script
#!/bin/bash
killall adb > /dev/null 2>&1
set -e

if [ $# -ne 1 ]; then
  echo "Usage: $0 <package-name-without-ab>"
  exit 1
fi

export PATH=/opt/jdk1.8.0_152_jce/jre/bin:$PATH
ab=$1.ab
java -jar /opt/android-backup-extractor-20160710-bin/abe.jar unpack $ab $ab.tar apw; tar -xf $ab.tar --wildcards '*.apk' --strip-components=3
mv base.apk $ab.apk
rm $ab.tar
adb install $ab.apk

adb restore $ab

echo "Ready"

You need furthermore the android-backup-extractor. How ever in my experience adb backup is still not really safe. First of all some apps can set a flag, so they won't be backup. And the restore works only sometimes and not sure, for example if you change the device. It's a shame that in 2018 only Titanium Backup make good job, if you have a rooted phone.

Huawei Backup make a good job on Huawei phones too. But far away from Titanium :-(

Command adb restore are not install .apk back. Actually, this command is only write back system and data files.
-Android dev site
If you want automate apps installation process:

Add all extracted .apk to one folder
Type for %f in (C:\_apk folder location_\*.apk) do adb install "%f"
NOTE: If you have .apk files which have "spaces" in their names adb has not recognize spaces rewrite it with _ or whatever else.

Can you please specify the reference for this information if it's correct? Since adb backup backs up everything including apks, I would expect that adb restore does the opposite thing. Because otherwise it appears that apks just waste space in .ab file.

In table 1.> Backup and Restore Commands on android dev site is adb restore command describe as "Restore the device contents from file" it is interpret for me as uncompress files and put in device only, not installation packages.
it make sense, i think, for installation was define command adb install (its not necessarily have install funkcionality in other commands) but i agree it would be nice :)

@MaTTBelis "Restore contents from file" to me means restore everything the file holds (which includes installing the APK if it's there). And until MM it did exactly that (I'm using this since Android 4, when it was introduced). Problems started only with Android 7, where a bug seems to prevent installing the APK. On some devices, you find in logcat that it tries exactly that (but fails without saying so). Actually, for those devices Nils' answer works.


text:
Disabling data limit notifications for disabled SIM?
I have a Motorola G (2nd gen) with dual SIM. Only one SIM at a time can be used for mobile data. I have limited free data on both SIMs. When the first SIM reaches this limit, I switch mobile data over to the second SIM. Everything works as expected, except that the notification about the data limit being reached on the first SIM does not disappear.
How do I disable data limit notifications for the SIM where mobile data is disabled?
I can work around the problem by temporarily setting the limit too high for the disabled SIM and resetting them to the correct amount when I next activate it, but this is inconvenient. It is counterintuitive for a disable SIM to show data notifications.

Is it a sticky notification or can it be swiped? For latter, you can automatically have it swiped through MacroDroid app. For former, and provided the device is rooted and has xposed framework installed, the app NotifyClean should work.

@Firelord It is sticky. I guess NotifyClean couldn't discern between notifications from active SIM (wanted) and disabled SIM (unwanted). Anyway, if there really is no way to handle this without additional apps, I will stick to my manual workaround. It seemed a pretty obvious problem, so I assumed it was a problem of me not knowing how to configure something and not android actually not being able to handle this scenario. I am still hoping.


text:
Kingroot how to uninstall
I downloaded kingroot downloaded the root access and was working properly. I uninstalled it then again instsalled it (3 times). Now I have root access and now I want to remove it. I tried my old way ( uninstall kingroot from the settings in kingroot) but now it is showing error. I tried system cleaner apps. Those didnt work. Now what should I do to unroot. ( while rooting I didnt do anything other than installing kingroot I didnt unlock bootloader)

You should be able to unroot your phone with SuperSU.

I tried to convert into SuperSu using SuperSu me. But they told me that at maximum it will take 5 min. I kept it all night nothing happened

And about unrooting using SuperSu then how to do it