# Question
Title: How to recover data from adaptive storage while rooted phone stuck at boot?
So , i'm using Galaxy Mega (i9152) with a CM13 ROM which i flashed through TWRP. For the sake of running PoGO , i had disabled root through the settings of the SuperSu app in CM13 (the game still didn't run , kept tripping safety net). The phone was running fine up till 2 days ago , after which it started going into bootloop.

so , i googled on how to resolve boot loop and saw that fixing file permissions through TWRP might resolve the issue. i did that BUT i also rooted the phone when TWRP prompted me to install SuperSU , citing that the phone was not rooted. After that , the phone was stuck at Boot Animation (the CM android face) , possibly because i rooted the phone through TWRP.

I had formatted my SD card as internal which meant that it would not work on any other device. All my pics and stuff is on that SD card now. I researched extensively on google to find out a way to decrypt the encrypted SD card and found out that i can decrypt it through linux. i have also recovered the .key file from /data/misc/vold folder and have converted the code into the appropriate 16 byte format through terminal commands.

I have a linux system and i have tried to decrypt it. here's what happens when i run parted -l. (i also wanted to post output of fdisk -l , but my reputation score won't let me post more than 2 links)

since the names "android\_expand" and "android\_meta" are still showing , i have hope and good reason to believe that my data's still intact !

but when i try to mount it ...

i don't know what to do now , since this is all i knew , all i had :/ , i have no idea what filesystem the encrypted card is. i tried ext4 as described in the guide. maybe if there was some way i could make the fstab file cycle through ALL possible filesystems , hitting the right one and finally mounting my SD card. maybe the mount feature has such an 'auto' feature to auto detect the filesystems ?

I have tried to reflash the SAME ROM without factory resetting , but it gave me an error saying : "error executing updater binary" and also "cannot install on top of incompatible data"

i have cleared the Cache and Dalvik Cache SEVERAL times.

i have backed up the DATA portion , through TWRP , by using ANOTHER SD card in the phone . Also i have backed up SYSTEM portion in the internal storage of the phone. I am just worried about my pics and stuff on SD card. I can't see my encrypted SD card in TWRP , it just shows me O MB in the SD card option in TWRP , possibly because the SD card is encrypted. i have no idea how to access my files in the encrypted SD card through the TWRP file manager. i don't want to lose my data. just please help me recover data from this SD card that has been encrypted by Android Marshmallow. i don't know if my SD card will be detected in the OS as before if i am able to somehow reflash the EXACT SAME rom i was using prior to this disaster.

Just to clarify , i am using my Laptop's internal SD card reader for reading card with Linux (i have ubuntu 16.04 LTS), with an sd card adapter supplied with the card (it's a Kingston 16 GB , SDHC class 4)

if i can somehow access my SD card and retrieve all my data from it , my problem will be solved. please help me out.

P.S : also , at the VERY beginning of this ordeal , by mistake , i MIGHT have created partitions on the SD card , while using the fdisk. i hope that did not wipe the data off the sd card or corrupt it. i CTRL+C'ed out of the utility without saving changes ... so that might be of some hope.

EDIT (1-Dec-2019): This is NOT a duplicate, as can be seen by the solution i provided below. This question represents a much more serious case with adopted storage, where your phone is having problems booting or your OS is corrupted. Kindly let this question remain as it is, as it will prove helpful to advanced users and others who have their files stuck in adopted storage while facing difficulties in accessing their phone's Operating System.

# Answer
before starting , i'd recommend making a FULL backup of your SD card , through a raw image ( google the 'dd' command in linux)

i followed the guide here ; Corrupt SD card formatted as internal storage

BUT with some IMPORTANT MODIFICATIONS of my own !

1. Phone was stuck in BOOTLOOP and later stuck at BOOT Animation, no access to any usual file manager utility. Mind you , this is a VERY Grievous situation , since there's no trivial method of gaining access to your sd card (it shows as 0mb in TWRP file manager) for backing up your precious data , pics and memories. Also , this is the only part which is a bit shaky since i am not completely sure if my phone was rooted or not (since my problem changed from bootloop to boot animation when i tried to install to SuperSu through TWRP) and retrieving the encryption key is central to solving this. I had to get the .key file , since that was pivotal to breaking the SD card's encryption. So amidst all the panic , i was able to browse , through TWRP file manager , to the /data/misc/vold folder and found the .key file. This was a MAJOR breakthrough !
2. Next , to extract the file. i used another , UNENCRYPTED SD card and transferred the .key file to that card , through TWRP file manager , read that SD card into the laptop and got the .key file onto Ubuntu (16.04) . Decoded the .key file and got the 16 byte key. there's 2 ways to do this ... either open the file through a hex editor (i used BLESS) and copy off the 16 pairs of hex digits you see OR use this command ;

> hexdump -e '1/1 "%.2x"' expand\_8838e738a18746b6e435bb0d04c15ccd.key

make sure you're in the SAME directory as the .key file when executing this command (advanced linux users will work their way around this but i want it to be as beginner friendly as possible)

so , i got the 32 digit / 16 byte key.

3. NEXT , decrypting the SD card AND making Linux recognise it. when i read it in , through the card reader , it wouldn't show in Nautilus (the Ubuntu filemanager) but upon running fdisk-l and parted -l , i saw

"parted -l output"

http://pasteboard.co/5klviklR8.jpg

"fdisk -l output"

http://pasteboard.co/POGvyBOxO.png

notice the android\_meta and android\_expand , those names gave me hope , that my data was still intact. ESPECIALLY , since at the beginning of the problem , i had created partitions and partition tables in the sd card through the fdisk utility (but i ctrl+c'ed out so it's possible that the changed were not written , PHEW! )

the unknown filesystem was the biggest pain in this whole fiasco ... since according to the few guides and discussions regarding this issue , SD cards formatted as internal by marshmallow were supposed to be ext4 filesystem. but that was not the case , at least not here.

4. So , to decrypt the card , i used

```
dmsetup create crypt1 --table "0 `blockdev --getsize /dev/mmcblk0p2` crypt aes-cbc-essiv:sha256 "insert your 16-byte key here w/out double quotes" 0 /dev/mmcblk0p2 0"

```

if you get some ioctl related error use this format instead (this is the EXACT format i used today , with my key and everything)

```
dmsetup create crypt7 --table "0 `blockdev --getsize /dev/mmcblk0p2` crypt aes-cbc-essiv:sha256 07147CFFB77F249A5DBD2AD204610E7D  0 /dev/mmcblk0p2 0"

```

please note that the dmsetup utility should be installed in linux. (google it ) . also , note that i went for the parition 'mmcblk0p2' , since that was the bigger one in size and had the obvious inference of containing all the data !

this went well , completed without error. the next bit , though , ABSOLUTELY drove me crazy and took around 20 hours (including my sleep time ) to be properly resolved.

5. the GADDAMN file system ! it was written EVERYWHERE that adoptive storage is formatted as ext4 , so when i ran the command

> \# mount -t ext4 /dev/mapper/crypt1 /mnt/1/

(please note that mnt/1/ should exist as directory in your root folder , if not , use mkdir to create it)

it yielded the damn error

> wrong fs or bad option.

and this got me thinking ... if the sd card is NOT ext4 type , then HOW ON EARTH am i supposed to know what file system it is out of all the possible ones !

i searched and searched for a command that could force cycling through ALL possibilities in a brute-force method or any entry i could make in the /etc/fstab file that could AUTOMATICALLY detect the filesystem somehow, but to no avail...

5 . In the end , i recalled ... that maybe , just MAYBE the filesystem was f2fs (flash-friendly file system). And that proved to be a telling recall ...

for this code ;

> mount -t f2fs /dev/mapper/crypt1 /mnt/1

proved to be the WINNING GOAL !

i was then able to cd into /mnt/1 and saw some very familiar android-esque files and from there on , it was Eternal BLISS !
> 3 votes

---
Tags: 6.0-marshmallow, linux, encryption, internal-sd, adoptable-storage
---


# Question
Title: Device stuck in bootloop after enabling ART
I activated the Android Runtime (ART) instead of Dalvik and after that my phone rebooted but it seems that it's stuck in a bootloop.

Will the first bot after choosing ART take some extra time? How can I tell if it's stuck in a bootloop rather than just booting slowly?

My device is an HTC Explorer running CM 11 beta 4 build.

# Answer
The first boot after swapping to ART generally takes a little longer to boot. After that it then recompiles every app using the new runtime before you can actually use the device. During this stage the device actually displays a message with it's current progress. If it never gets to that stage then there is a decent chance that Android is stuck trying to boot.

If it's stuck in a bootloop, you should see your phone continually swap from the HTC boot logo to the CM boot logo and back again. If it's stuck on just the CM boot logo then there is a chance that it is actually booting and just taking a long time.
> 1 votes

# Answer
Follow the steps below:

1. `adb pull /data/property/persist.sys.dalvik.vm.lib`
2. Open the file and replace the `libart.so` with `libdvm.so`.
3. `adb push persist.sys.dalvik.vm.lib /data/property/`.
4. Reboot your device.

Source: Phone in boot loop after turning on ART (didn't completely uninstall XPosed).
> 1 votes

# Answer
I'm not using your device but doing a quick search i found this:

> Before using ART, you have to enable expanding memory in Settings -\> Extras!

You might want to do that before enabling ART next time. You can get more infos on here
> 0 votes

# Answer
Try draining the battery, then put it on a charger and try to boot. The same thing happened here on a Motorola Moto G 2nd generation.
> 0 votes

# Answer
I did the same thing. As the memory space was less in my Moto e, it went to boot loop. First it showed around 169 apps installation figure but after completing that it showed lower nos. in successive boots. After a while when I rebooted it forcefully many times, it started but now with lesser space remaining than Dalvik.
> 0 votes

# Answer
I know that this thread is old, but this may help others in the same situation. My mobile is a LG G2 Mini (D618) rooted with Kingo. After I changed it from Dalvik to ART, it took a long time to reboot, while optimizing all the apps. But then, when the UI showed up, I couldn't do anything because several error messages appeared in sequence. After a while touching OK for each message, the mobile would reboot and start it all over again. In fact it rebooted even if left alone.

I re-flashed it with the stock ROM (with the no-data-loss option) but nothing changed other than it becoming unrooted again. Also tried to access it with an ADB Shell but I kept getting an authorization error. Then, after rebooting it around 30 times, it reverted back to Dalvik by itself, and everything was fine again!
> 0 votes

---
Tags: dalvik, htc-explorer, art
---


# Question
Title: Moto E Not Starting Properly After Changing runtime to ART
I have recently bought a *MOTO E* and it's working cool. Then I have enabled *Developer options* and changed my runtime from *Dalvik* to *ART.* Afterwards I restarted my device. I got the message saying *Android is upgraging.* After completeing the process I got exceptions like

```
unfortunately the process com.android.phone has stopped

```

Please help me how to get out of this problem. I am getting that message for around 10 times and mobile restarting once again.

# Answer
> 6 votes
`/data/property/persist.sys.dalvik.vm.lib` contains the name of the runtime library you wish to use - `libart.so` or `libdvm.so`. So, you can switch back to Dalvik like so:

`adb shell 'echo libdvm.so >/data/property/persist.sys.dalvik.vm.lib'`

Source

# Answer
> 1 votes
My friend had the exact same problem after switching to ART on his Moto E (`unfortunately the process com.android.phone has stopped`), and this worked for him:

1. Power the phone off, then power it back on.
2. If it gets stuck in a boot loop where it keeps going to the `Android is upgrading...` screen (possibly showing the wrong number of apps--for my friend it was showing 19 apps), hold down the power button until it turns off, then turn it back on.
3. At this point it should go back to the `Android is upgrading...` screen, but this time it should show the correct number of apps, finish successfully, and the phone should work normally.

# Answer
> 1 votes
**Erase userdata and reboot using fastboot.**  Resort to this method if you are ok loosing your data.

## Installing Fastboot on your Desktop/Laptop .

Fastboot comes with android-sdk for windows. (make sure fastboot is installed)

## Boot your phone in fastboot mode

Its generally done this way, press down volume key then power on button and hold them for 6-7 secs. You will see the notification light after which release the power on button and then the volume down key. wait for 3-4 secs. Fastboot screen will appear on the phone. Connect it to your host (via usb) and install the drivers.

## Install fastboot drivers for your phone.

Open device manager in windows , you ll see something like 'fastboot condor'. rightclick-\>properties-\>(select Hardware Ids in details tab) you ll see something like

* USB\VID\_22B8&PID\_2E80&REV\_0100
* USB\VID\_22B8&PID\_2E80

add the following lines in your android\_winusb.inf based on the hardware IDs (android-sdk-windows\usb\_driver\_r03-windows\android\_winusb.inf)

* %SingleAdbInterface% = USB\_Install, USB\VID\_22B8&PID\_2E80
* %CompositeAdbInterface% = USB\_Install, USB\VID\_22B8&PID\_2E80&REV\_0100

update your drivers from android-sdk-windows\usb\_driver\_r03-windows\

check if your device is detected using the command

**fastboot devices**

in windows cmd

## Erase user data

type

**fastboot erase userdata**

## Reboot your phone

**fastboot reboot**

PS: I had a far worse problem. The phone just got stuck (in an infinite loop) with a dialog.

# Answer
> 0 votes
This will erase all data but if you had a Google account linked to your device, it will allow you to reinstall all Play Store apps you originally had.

You may also hold volume up and power button together and scroll to `recovery mode` using the volume buttons and then select it with the power button.

After getting in there scroll to `wipe data / factory reset`.

After it has completed, select `Reboot now`.

This should help.

# Answer
> -1 votes
I know that this thread is old, but this may help others in the same situation. My mobile is a LG G2 Mini (D618) rooted with Kingo. After I changed it from Dalvik to ART, it took a long time to reboot, while optimizing all the apps. But then, when the UI showed up, I couldn't do anything because several error messages appeared in sequence. After a while touching OK for each message, the mobile would reboot and start it all over again. In fact it rebooted even if left alone.

I re-flashed it with the stock ROM (with the no-data-loss option) but nothing changed other than it becoming unrooted again. Also tried to access it with an ADB Shell but I kept getting an authorization error. Then, after rebooting it around 30 times, it reverted back to Dalvik by itself, and everything was fine again!

---
Tags: 4.4-kitkat, boot-loop, dalvik, art, motorola-moto-e
---


# Question
Title: ADB/fastboot stopped working in recovery mode
Something went wrong when I updated my Nexus 4 (Mako) with Paranoid Android 6 via TWRP 2.8.

I formated the phone in Recovery Mode but now I unable to connect to adb to transfer new OS image in the internal memory. So, I'm stuck with a phone without operating system.

The battery loads well when connected to my debian but I can't see anything related to the phone with `lsusb`.

I'm definetly not an expert with TWRP, but I noticed an error when I try to start `adb sideload` : `E:Unable to mount /usb-otg`.

I'm also considering to open the device but from informations I found there is no way to extract the internal memory to flash it from my debian.

How can I debug that ? Alternatively, what are my options to send a new image to my phone ?

*UPDATE 1*: When I enter in fastboot mode (the screen with the android picture) I see:

> FASTBOOT MODE
> VARIANT - mako 8GB
> HW VERSION - rev 11
> BOOTLOADER VERSION - MAKOZ10o
> BASEBAND VERSION - M9615A-CEFWMAZM-2.0.1700.48
> CARRIER INFO - None
> SIGNING - production
> SECURE BOOT - enabled
> LOCK STATE - unlocked

In this mode I still have nothing on `lsusb` or `fastboot devices -l`.

*UPDATE 2*: Here is what I see in `dmesg -w | grep usb` when I connect the phone :

> \[3416.043914\] usb 3-2: new full-speed USB device number 22 using xhci\_hcd
> \[3416.155984\] usb 3-2: device descriptor read/64, error -71
> \[3416.371985\] usb 3-2: device descriptor read/64, error -71
> \[3416.587946\] usb 3-2: new full-speed USB device number 23 using hci\_hcd
> \[3416.700008\] usb 3-2: device descriptor read/64, error -71
> \[3416.915999\] usb 3-2: device descriptor read/64, error -71
> \[3417.131964\] usb 3-2: new full-speed USB device number 24 using xhci\_hcd
> \[3417.132235\] usb 3-2: Device not responding to setup address.
> \[3417.336256\] usb 3-2: Device not responding to setup address.
> \[3417.539975\] usb 3-2: device not accepting address 24, error -71
> \[3417.651994\] usb 3-2: new full-speed USB device number 25 using xhci\_hcd
> \[3417.652222\] usb 3-2: Device not responding to setup address.
> \[3417.856035\] usb 3-2: Device not responding to setup address.
> \[3418.060047\] usb 3-2: device not accepting address 25, error -71
> \[3418.060149\] usb usb3-port2: unable to enumerate USB device

# Answer
> 1 votes
It turned out that the communication problem on the USB bus came from a "loose" connection of in the micro USB. I succeeded to reset a factory image just leaving the phone and the connector in a particular position to keep the contact.

---
Tags: adb, usb, recovery-mode, nexus-4, twrp
---


# Question
Title: How can I open /data/data/com.termux/files?
I am unable to access the `/com.termux/files` folder. I want to access it because I want to do a change in `writer.js` files.

I tried `cd..` and `cd -` codes to go back to files folder from home folder.

# Answer
In order to get to the Termux files folder, you have to CD to the entire path name like this.

```
cd /data/data/com.termux/files

```

From there, you can `cd` into the `usr` folder and wherever you want to go. Once you find `writer.js`, you can edit it using nano which comes with Termux. Enter `nano writer.js`, make your edits, and then use CTRL+O to save it and CTRL+X to exit nano.

Then you can get back to your home directory with:

```
cd ~

```
> 1 votes

---
Tags: file-management, termux
---


title: Open app on device startup

text:
# Question
Title: Open app on device startup
I have a cheap android tablet that I want to use behind some 2 way glass. So I want it to display a webpage on startup. If possible it would be better if it also could run a webserver with PHP, msql and similar. As the tablet would be behind glass there would be no need for it to do anything else. I guess I could have it using some sort of camera activity on face recognition, or movement detection. These would be extra features.for a later date

# Answer
If I understand what you're actually asking - "Open an app on startup" - then Tasker should be able to handle this pretty easily.

Get Tasker from here (it does cost £2.99 for the app. For me, it was well worth it as its a very powerful tool. I guess it depends if you would get any other use out of it). You then need to create a *Profile* (the context of the device at a particular time) and a *Task* (what you want the device to do).

**Create a profile to run the task on device boot;**

`Profiles tab > Add new profile (+ button) > Event > System > Device Boot`

**Create a new task (it should prompt you to do this);**

`Add a new action (+ button) > Net > Browse URL > enter the URL`
> 0 votes

---
Tags: automation, auto-start, web-server
---


# Question
Title: My Phone Time-Travelled Again. How? and Why?
I have a **Moto G XT1033 with ResurrectionRemix-M-5.6.8-20160502**-falcon ROM.

Yesterday night after a low battery alert I had a Whatsapp unread notification from my friend. I opened the message and found that I had a unread message from him which I remembered reading in morning.

Then I observed that I was missing my conversation with him from that time onwards till I noticed this. I also observed that that **all Personal/Group Chats were also missing the entire duration's chats**.

I **thought maybe Whatsapp had reverted to an Old Message backup**. But then I found that **Firefox was missing 12-15 hours worth of browsing** history.

I had also observed that the **SMS which I received from the bank in the evening had disappeared**. As well **Google Play Store re-updated two applications which it had already updated** in the evening. I had also **lost some Photographs** which I took with my phone in the evening. **Call History is also missing** for the day.

Google **Now showed it was last updated 20 Hours ago**.

From all this it looks like **my phone Time-Travelled from morning to night**.

**QUESTION:** Aside from Time-Travelling. How is this even **technically possible for the Entire phone to rollback its memory/state/data to some previous time.**

I think I had noticed this behavior few months back also, when I lost some Whatsapp chats but that time I thought it must be a Whatsapp bug and did not investigate.

**UPDATE1 (16th Jan 2017, 10:35PM IST)**: It happened again today (Now around 10:30 PM IST).

**My phone automatically restarted**. (As if **it just time-travelled** and entered current time).

Restart Vibration made me alert for expecting this scenario. As soon as the phone started, **I switched the phone to Airplane Mode** to prevent Time-Line contamination

This Time I am observing the following:

* Google Now Updated **8 hours ago**.
* Battery **Graph is missing some time**. (Time Jump?) But **battery has decreased.**
* Outlook is **missing the Mails** it received at around 9PM
* Inbox is also **missing Mails**.
* Call History looks good. Last call 8 Hours ago (2:10PM). Time Jump started around 4PM.
* Whatsapp is **missing chats** which I received at around 6:30PM.
* Sync Timings
* Llama Event Logs

If additional Info is required please inform. I will try to get it before I turn off Airplane Mode

**Update2 (17th Jan 2017, 8:33PM IST)**: It Looks now phone has become a Serial Time Traveller.

It restarted just now and the battery graph is missing two blocks of time. Whatsapp messages are missing as well.

# Answer
> 3 votes
I thought I was the only one facing this issue, and I didn't even know how to describe my problem back then. Looks like we're on the same boat. Even I'm using the Moto G (XT1033), but on NXROM 10.2, and I started facing this issue around a year ago until last December. The phone randomly reboots when I'm using it, and as you had described, it went back in time, and all the messages, downloaded files, statictics for a period of time and other stuff just vanished. I tried to Google this up, and here is my understanding (I may be wrong, so please correct me if so):

It turns out that this happens due to a kernel panic, and when the fsync function is not executed. fsync is responsible for writing the data from the buffers (all changes you make to data, like new messages, photos etc. is stored temporarily here) to the internal storage. When a kernel panic occurs, all the data in the buffer is not moved to the internal storage, but just vanishes. So all those changes you made just vanishes into thin air.

I was pretty frustrated about this, and then I stumbled upon LSpeed (available on Play Store). There was a battery profile which emphasises on conserving battery life. It disables kernel panic, and modifies a whole lot of other settings. Since I installed that, I've not faced this issue again. Try this out and do let me know how it works out for you.

# Answer
> 0 votes
However, all applications rely on system clock. In the case system clock go backward by some reason (some application feature or bug, malware, virus, something else), you will get "travel in past" in all of your applications. It is normal in the case your clock was setting back by some application.

There is a reason to worry 'cause I see no reasons for normal good-willing applications to do so. Try to check your phone using some anti-virus program and clean up all applications you don't obviously installed.

---
Tags: 6.0-marshmallow, internal-storage, motorola-moto-g, ram
---


title: turn off opera news stories

text:
# Question
Title: turn off opera news stories
I have never used Opera. Still, once a day or so I get a notification of some news headline. I don't have to open opera for this, it appears on my phone "dashboard" that lists all my apps and I can also see the notification from the screen that just shows the clock and text message notifications, etc. (Sorry I don't really know much mobile terminology).

Is this the same issue described here? How to turn off Opera Mini "discover"/"top stories" news feed? The person who posted that question seems to have a problem with the browser home page showing news stories.

I'm using Android 6.0.1, Security Patch Level Oct 1, 2016. My phone is a Blu Life One X2.

This feature is extremely irritating and I wonder who thought such an intrusive app was a good design decision.

# Answer
You can try this:

1. **Turn off notifications**

Menu \> Settings \> Advanced \> Notifications \> Turn Off Opera notifications

See screenshot:

Screenshot (click image for larger variant)

Opera will display a message when

* New email, feed, or news items arrive
* Downloads are completed

So turning off these notificaions will help you get rid of annoying news, and I been pretty using this settings and no news items appear on notification bar.

2. **Patching the application**

There is also a patch developed by namok o95 which "disables recommended stories" but works at system level so you may need another application to apply the patch.

It may depend on your current opera mini versions but I use method 1.

Hope this helps
> 0 votes

---
Tags: opera-browser
---


# Question
Title: How do I get my Samsung Note 3 to be recognized by my PC?
When I plug my phone into my PC (which is running Windows 7 OS) only charging takes place. When I view my phone in Device Manager, it says that Samsung Android files are not installed. But I installed those and also tried with Samsung Kies 3 but it's still not getting connected.

# Answer
> 1 votes
First, what you want to do ? Transfer files to the phone or make something with ADB and stuff.

Good that you have Kies 3 installed. If transfer files. Check this: when you connect the phone there is a popup on the upper bar, sometimes you need to click it and change it to 'transfer files' - then the phone will go into MTP mode which allows you to view it in "My computer"

If make something with ADB: first try to install maybe Naked Drivers (it worked for me note 1 on win7): http://forum.xda-developers.com/google-nexus-5/development/adb-fb-apx-driver-universal-naked-t2513339 , then enable debug in settings. When debug is enabled when u connect the phone it should ask for driver. Also in bootloader and fastboot there is another driver needed but it sgould be in Naked or Kies drivers, also Android SDK have drivers.

# Answer
> 0 votes
Trying turning phone off, take battery out. Wait 15 seconds. Reinsert battery, turn on. Then try connecting to PC again. Hopefully it'll recognise the device when you do this.

# Answer
> 0 votes
You have to install the drivers for your phone. Go to the Samsung support site, which should let you download a driver for your PC that will recognize your phone.

If that does not work, scroll down your menu bar on your phone then click USB (phone should recognize it, if plugged in) then click media transfer. You can choose USB 3.0 I believe.

# Answer
> 0 votes
My Windows10 Toshiba Kira notebook had ignored my USB connected Samsung Note3 for a long time. After many attempts I solved this as follows.

I noticed my phone was recognised in "Printers and Devices" but had an error because of a metered (wireless) connection (because I needed to control usage when hotspotting), and one of the properties suggested it was looking for Bluetooth. I may have deleted this device (as I recall I didnt), but I removed and inserted the USB cable a couple of times before/during/after this whole process.

I also enabled Developer mode several times with USB debugging finally toggled OFF, then turned OFF the wireless hotsopt on the Note3. At this point, after reconnecting the USB cable I got half of an audio connection acknowledgement.

I disconnected/reconnected again and finally finally finally got the full audio connection sound!!!

I then coerced the network connection in Windows Explorer by typing in the already configured \PhoneNetworkName into the location. I made the network private and discoverable when I got the pop-up, then it all worked.

The Phone also appeared in Device Manager under Portable Devices and I had a notification "Connected as a media device" on the phone. Pressing this took me to the "USB PC connection" App offering to connect as Media device(MTP) and/or Camera(PTP) - of course MTP was already checked. This App is not found by a search in phone "Settings". I think if you could find out how to bring this App up manually it would probably solve the issue, because this setting (MTP) is all I ever had to do before with my Galaxy S2, and Ericsson M750.

Had all of the symptoms described by others, nothing else worked.

Turned on hotspotting and the connection still works, but turning it off while USB connected might have triggered something????

So, good luck. I hope this helps.

---
Tags: usb, usb-connection-mode, samsung-galaxy-note-3
---


title: How can I make my lockout time stack?

text:
# Question
Title: How can I make my lockout time stack?
If anyone has ever used an IPhone (Or tried to mess with someone else's - yes, I'm looking at you) you may be aware the the lockout timer scales with each fail after 5 attempts.

I want to do this on android, preferably Without root. anyone know how?

**Edit** On IPhone, after 5 failed passcode attempts, you are locked out for a minute. If you keep failing, it escalates (it will go up to 5 mins, then 15, then 60) I basically want to replicate that behaviour on android, where its 30 seconds lockout (and does not go up in time)

# Answer
> 1 votes
This feature is *rate limiting* and is done to prevent *Brute Force Attack*

This being a *core security feature* , it can be changed at OS level ( if at all ) and certainly would not be possible without root

While I could not find reference to PIN / password rate limiting, you can see the Compatibility Definition Document (CSD ) mandating that for finger print recognition, specifying the number of attempts and duration. See How can I limit the number of fingerprint attempts before fallback to other login type?

---
Tags: security, lock-screens, locked-out
---


# Question
Title: Is it possible to make Google Drive folders available offline?
Can I create folders that can sync with Google Drive similar to Windows?

Actually I have to store some files offline in multiple phones, tablets, and computers. I'm fine with the Windows version of Google Drive: it stores files offline too.

Is there any way to do the same for Android?

# Answer
To a certain degree, yes it can be done. It's easy if you are only concerned about a limited number of files.

For a single file, while connected to Google Drive on your phone, browse to your intended file, then click the right menu and choose the option "**Available offline**"

In general, you can also change the caching on your Google Drive app by going to "**Settings \> Cache Size**" and increase it to the maximum available. I believe it's 1000MB at the moment.
> 1 votes

---
Tags: file-management, google-drive, offline
---


# Question
Title: How to move apps on SD-card to bigger SD-card without PC
I need simple steps to switch full `sd card` that have some apps on that sd card larger memory I need to switch from full`sd card` to my new 128GB `sd card` but i have no computer at all, no laptop as well.

I only have 1 tablet Samsung Galaxy Tablet model SM-T580??!! Can I just uninstall those apps before switch and insert new 128Gb `sd card`, but what happens to all my downloaded music, podcasts, etc. If I switch cards can I still listen to them if I was to later insert into another media player?

I'm beyond a newbie to using any computer (only have SM-T580 Tablet) If I uninstall my apps would I lose all my saved music& podcasts (there's a lot).

I need to know exactly step by step info & exactly what to be aware of I'm so new to my device, new to files and even how to identify them system/mine.

# Answer
> 0 votes
There are a couple of ways to do it:

For simplicity I prefer to split into categories:

* Backup of files (music, documents, videos, any other media files and miscellaneous files)
* Backup of installed applications
* Other (e.g SMS/MMS attachments etc)

**Method to back up Categoty 1 Data**

Prerequisites:

* Unlimited/suitable data plan
* Must have signed to a cloud storage (or have one Google drive will do just fine)

You can easily upload the data to google drive or other similar cloud solutions. To retrieve it you need to redownload it again.

**Method to back up Category 2 data**

To preserve the intergrity of all your apps (with thier data), you need additional app, capable of doing this. (Install in internal memory).

A good example is Helium - App Sync and Backup (doesnt require root). Other similar app is Utimate backup, alternatively browse around playstore to pick one there.

It allows you to choose the apps you want to backup. Again if there is no enough space on internal memory use the cloud solution e.g dropbox or similar.

**Method to back up category 3 data**

This requires much less space than the 2 above. You can just back up in internal memory as well.

**Retreiving data after installing new sd card**

* All the data that have been backup up can then be downloaded again, using the cloud solution previously used and from internal memory.

---
Tags: samsung, external-sd, tablet, app2sd
---


title: Rooting Samsung Galaxy S4

text:
# Question
Title: Rooting Samsung Galaxy S4
I'm trying to root my Samsung Galaxy S4 GT-I9500 and I'm wondering that is there any way to root it without using PC and without losing any of my data. Currently I am running on Android 4.4.2 and have no custom ROM.

Thanks in advance!

# Answer
Errr.. For this rooting problem, I have checked so many informations before. "Rooting" seems a little complicated and technical. However, it's really simple. The most important thing is to find a secure and easy tool for free rooting. Then, find a way to backup the file and data on Samsung Galaxy S4. Actually rooting won't cause data loss, but processes like unlocking bootloader will. So it's still important to backup the data before rooting.

Luckily, Samsung Galaxy S4 doesn't need to unlock bootloader like HTC or Nexus phones. You need focus on one thing: not bricking your device.

You can follow the steps on how to root Samsung Galaxy S4 here. Ensure you have working ADB before continuing. Preferably, install Samsung Kies and the drivers that come with it, and some ADB/fastboot package or the Android SDK from Google.

1. Download iRoot on your Windows PC.
2. Connect your phone to your PC.
3. Detect the device and click on "Root Now".
4. Done!

Hope you have succeeded now.
> 2 votes

# Answer
I rooted my SCH-i545 using Towelroot and it worked fine. Towelroot only works if the S4 is still on KitKat with the NC5 kernel (or earlier). If you're on a later kernel, refer to this XDA tutorial to flash the compatible kernel.
> 0 votes

# Answer
I've just rooted via following the instructions here http://www.android.gs/root-xxufnb8-android-4-4-2-official-rom-for-galaxy-s4-lte-i9505/

I'd strongly recommend that you search for and download Odin and Chainfire from the original sources and not via the links though as they look suspicious. Took about 10 mins in total. Good luck
> -1 votes

---
Tags: rooting, 4.4-kitkat, samsung-galaxy-s-4
---


# Question
Title: Choose to Forget internal storage, how to recover
I'm using Moto G 2nd Gen with Android version 6.0.

I was using external SD Card as Internal storage and I guess it has encrypted the card.

Recently, my phone started to work abnormally. It randomly fails to recognize the storage. After a device reboot, it would work for sometime and fail again.

In the "Storage & USB" settings menu, I clicked "Forget" on the external SD card.

Then I realize I cannot access the data from my computer using SD card reader.

How can I re-plug the SD card back as Internal Storage without formatting again?

# Answer
I can't help really, but I sympathize. One commenter said "It's your fault". No it's not! Some stupid moronic programmer decided some idiotic protocol was required and the Moto G 2nd Gen quit reading any Micro SD card regularly, that is, encrypted for Andoid. I had the exact same problem. After upgrading to Marshmallow the damn thing quit reading my 64Gb high speed card. So I dropped down to a 32Gb thinking it was compliant with manufactures specs. Nope the 32 Gig failed just as much. It would read the card for about 2 minutes and then stop. I couldn't make a backup of the card, so you did the right thing. Just start all over, format and get the BS encryption off your storage device. If you ever format it again with Google encryption, well, then it's your fault. :)

Now root your Android roll it back to the previous build and you'll be able to shove a 128Gb Micro and it'll read it just fine. Then you give Google a big FU for wrecking a perfectly functional phone.
> 1 votes

# Answer
I got the instability described above.
With patience, retrying really *many* times, I was able to backup the files in the card, by copying them to my notebook using a file manager "FK".
The adopted storage option was not well implemented, letting the user down as soon as the SD had errors. It should be more resilient, as good software is made,
> 0 votes

---
Tags: 6.0-marshmallow, internal-storage, external-sd
---


title: Huawei Nova CAN -Lxx?

text:
# Question
Title: Huawei Nova CAN -Lxx?
I am asked to buy the Huawei Nova CAN-L12...it has to be above CAN-L12C635B140......

But merchants of the Huawei Nova do not specify if it is CAN-L12, or L02, or L(other)..What is the CAN-xxxx coding? -\> is it a software version that I don't really have to worry about and can be achieved through updates?

Thank you for your help!

# Answer
The sub-model (CAN-Lxx) indicates the network band it supports and therefore the region it best suits. A specs listing of CAN-L02 can be seen on PDAdb (you could search for other sub-models, too - just search "Huawei Nova CAN").

Inspect the "Supported Cellular Network" section and see how it matches up to your local carrier. It's unlikely that you won't be able to use the phone at all if you buy the wrong model (that doesn't match), but it's likely you'll lose LTE support if you do - all you get will be GSM/WCDMA/HSDPA.

The long trailing digits are the software revision for this particular sub-model, and can be updated to the latest one once you get your hands on the device.
> 0 votes

---
Tags: huawei, android-versions
---


title: Moto G4 only boots into fastboot

text:
# Question
Title: Moto G4 only boots into fastboot
I got the Moto G4 from Amazon and tried to use ADB and fastboot to unlock it, before realizing Amazon has oem-locked their version. In any case, now every time I turn on the phone it goes straight to AP Fastboot Flash Mode. I can then boot into the phone as usual, but it's really annoying to have to go through fastboot mode. Now I think it's interfering with an Android update. Any suggestions?

# Answer
In the bootloader enter:

fastboot oem fb\_mode\_clear

Then reboot, it should start normally from now on.
> 1 votes

---
Tags: adb, fastboot
---


title: How do I browser folders in Lollipop?

text:
# Question
Title: How do I browser folders in Lollipop?
How do I browse my Downloads folder on my Nexus 6? Or Pictures or Audio or any folder?

Right now, I do so by opening Gmail, and browsing possible attachments, which is silly but works.

# Answer
Simplest of all, by downloading one of the many filemanagers from the Google Play Store or from your favorite Android app store. These would allow you to show files there. For files downloaded via Android´s built-in download tool, you can access the ´Downloads´ app on your Nexus as well. However, that will limit you only to starting an associated app for the download (if one is available).
> 1 votes

# Answer
Android Lollipop has a basic media file manager (USB Storage)

1. Open your Settings app.
2. Tap on Storage
3. Tap on Audio, Vids, Pics or Download

or download Total Commander (this app does NOT contain any ads!!!)
> 1 votes

---
Tags: 5.0-lollipop
---


title: How can I find app name by UID?

text:
# Question
Title: How can I find app name by UID?
In "battery history" I have found that the app with UID 10058 is using a lot of battery.

How can I find the name of the app with UID equal to 10058?

# Answer
> 34 votes
Android assigns each application a UID (User ID) at install time; unlike PID (Process ID) which is transient and keeps changing all the time, UID stays constant as long as the application is not reinstalled. The UID should be unique to each application, except when the application explicitly requests to share a User ID with another application (there are security restrictions around this, the two applications must be signed with the same private key, i.e. comes from the same developer).

Try looking at `/data/system/packages.xml` (you need root to view this file), each installed application should have an entry there. Say, I have Adobe Reader installed on my phone:

```
<package name="com.adobe.reader" codePath="/mnt/asec/com.adobe.reader-1/pkg.apk" flags="262144" ts="1300539048000" version="37149" userId="10034" installer="com.google.android.feedback">
<sigs count="1">
<cert index="21" key="... very long random string ..." />
</sigs>
<perms />
</package>

```

My phone has assigned `userId="10034"` to Adobe Reader.

For applications that have requested to share a User ID with another application, say Handcent:

```
<package name="com.handcent.nextsms" codePath="/system/app/HandcentSMS.apk" flags="1" ts="1217592000000" version="373" sharedUserId="10064">
<sigs count="1">
<cert index="17" key="... very long random string ..." />
</sigs>
</package>

```

then the attribute you're looking for is `sharedUserId="10064"`

# Answer
> 35 votes
**Prerequisites**: set up in a PC, connect the device to the PC, launch a shell on the PC to enter adb commands.

**Note**:

* Replace `UID` wherever it occurs in the following commands with the UID you're searching for.
* The commands below would only provide the package name of the app corresponding to your UID. To get the app label/name after obtaining the package name, you can use my answer here, or of GAThrawn's or of Izzy's.

---

### For Android 8.x and above

Enter the command:

```
adb shell cmd package list packages --uid **UID**
adb shell pm list packages --uid **UID**                 # alternative command

```

Example:

```
$ adb shell pm list packages --uid **10250**
package:**com.adobe.scan.android** uid:**10250**

```

---

### For Android 7.x and above

Enter the command:

```
adb shell "cmd package list packages -U | grep **UID**"
adb shell "pm list packages -U | grep **UID**"           # alternative command

**IF above cmds don't work you can try these below giving you the exact name**
adb shell "cmd package list packages uid **UID**"
adb shell "pm list packages uid **UID**"           # alternative command

```

Example:

```
$ adb shell "cmd package list packages -U | grep **10247**"
package:**dev.ukanth.ufirewall** uid:**10247**

```

---

### For any Android version (tested from Android 4.2.1 to 10.0)

Enter the command:

```
adb shell "dumpsys package | grep -A1 'userId=**UID**'"

```

It might take a few seconds to print the desired output.

Example:

```
$ adb shell "dumpsys package | grep -A1 'userId=**10102**'"
   userId=**10102**
   pkg=Package{46171ce **com.android.chrome**}

```

The line containing `Package{` would show the package name of the app in between whitespace and `}`. You can do `adb shell dumpsys package PKG_NAME` (`PKG_NAME` → package name of an app) to know more details about that package/app.

---

### For rooted Android versions

If the Android is rooted, than using *adb shell* or a terminal emulator app you can do:

```
su
cat /data/system/packages.list | grep **UID**

```

In the output, anything before the UID would be the package name.

Example:

```
shell@shamu:/ $ su
root@shamu:/ # cat /data/system/packages.list | grep **10102**
**com.android.chrome** 10102 0 /data/data/com.android.chrome default 3002,3003,3001

```

**Alternatively**, if you've Busybox or Toybox installed and available under PATH variable, than from a terminal emulator or *adb shell* do:

```
su
find /data/data/ -type d -group **UID** -maxdepth 1 | xargs basename

```

Example:

```
shell@shamu:/ $ su
root@shamu:/ # find /data/data/ -group **10102** -type d -maxdepth 1 | xargs basename
**com.android.chrome**

```

---

# Answer
> 5 votes
Install a terminal emulator, launch it and run:

```
ps | grep 10058

```

`ps` lists the processes and `grep` filters for the ID you want.

But this only works if the application is running when you run the command.

# Answer
> 5 votes
In ADB shell (or terminal emulator) use the following command:

```
cat /proc/<your_process_id_here>/status

```

and look in the "Name" field. This should be the name of the process. So in your case it would be "**cat /proc/10058/status**"

# Answer
> 1 votes
I had a similar issue with Android 6.0, Moto G 2nd Gen from 2014. I happened to have upgraded the ES File Explorer application and I noticed it was bloated as hell and sucking up a lot of battery. I removed the application from the system, but the application let a zombie process taking up CPU. The UID was similar to yours 10118, and it listed in the battery statistics as the most hungry resource process.

Then I installed an app named "OS Monitor" and noticed that a .esfm file was actually the only process taking up 60% of CPU. I immediately had known that it had to do with ES File Explorer, but wait... I HAD uninstalled ES File Explorer. Yes. The only thing I didn't do was to RESTART the smartphone. Believe me, I was thinking about crazy things, like going root and beat the crap out of that process, throw the phone against the wall, and even started to believe that my battery reached end of life. To my surprise, I simply restarted the phone and the process was gone.

So before taking any drastic measures, try to figure out which app is giving you a bad time, uninstall it and then restart the phone. Check on OS Monitor the CPU usage list, and you should be fine.

# Answer
> 0 votes
To find "everything" by UID (or GroupID) on a **rooted** phone, including running processes, system apps and hardware sensors:

```
# ID=3011; find / -group $ID -o -user $ID   2>/dev/null

```

## Example 1:

```
# ID=3011; find / -group $ID -o -user $ID   2>/dev/null
/proc/208
/proc/208/task
/proc/208/task/208
/proc/208/task/208/attr
[...]

# ls -la /proc/208/exe
lrwxrwxrwx 1 root root 0 2017-04-04 22:14 /proc/208/exe -> /system/bin/sensors.qcom

```

## Example 2

```
# ID=10009; find / -group $ID -o -user $ID   2>/dev/null
/data/misc/profiles/cur/0/com.android.cellbroadcastreceiver
/data/misc/profiles/cur/0/com.android.cellbroadcastreceiver/primary.prof
/data/data/com.android.cellbroadcastreceiver
/data/data/com.android.cellbroadcastreceiver/cache
/data/data/com.android.cellbroadcastreceiver/code_cache
/data/user_de/0/com.android.cellbroadcastreceiver
/data/user_de/0/com.android.cellbroadcastreceiver/cache
/data/user_de/0/com.android.cellbroadcastreceiver/code_cache
/data/user_de/0/com.android.cellbroadcastreceiver/code_cache/com.android.opengl.shaders_cache
/data/user_de/0/com.android.cellbroadcastreceiver/shared_prefs
/data/user_de/0/com.android.cellbroadcastreceiver/shared_prefs/com.android.cellbroadcastreceiver_preferences.xml
/data/user_de/0/com.android.cellbroadcastreceiver/shared_prefs/_has_set_default_values.xml
/data/user_de/0/com.android.cellbroadcastreceiver/databases
/data/user_de/0/com.android.cellbroadcastreceiver/databases/cell_broadcasts.db
/data/user_de/0/com.android.cellbroadcastreceiver/databases/cell_broadcasts.db-journal

```

---
Tags: applications, battery
---


# Question
Title: Why is the play store displaying same app twice under the My apps section
Under the All apps the true caller is shown twice by the play store / Under the settings there is only one app not two. (click images for larger variants)

Android Version:4.1.2 Jellybean

Device: Samsung Trend Duos.

In the above image the True Caller application is shown twice and both are of the same no extra app on(or plugin for that particular app). I have force closed the application ,later switched the device waited for some time and restarted the device and still the application duplicate is displayed under My apps.

There are not two apps as you can see in the downloads section.(The applications list is sorted name wise so there's no chance of missing a second true caller app)

# Answer
The publisher of this app may have changed their package name when updating the app. Usually, apps have the same package name for its entire lifetime, which is how the phone knows to update a current app instead of installing a new one. If this is the case, you should uninstall the old app. The quickest (and easiest) fix is to uninstall both and reinstall the latest version. Provided the app's package name doesn't change again during the next update, this should solve your issue.
> 1 votes

# Answer
i encountered the same problem yesterday but then today when i checked google play to check the rankings of my app, the issue was sorted out. As the google is doing massive changes so i reckon it was a fault from google side.

i have read the above conversation and just for record to clear for others in desktop there is no such scenario of free and paid. it only occurs in cellphones :)
> 0 votes

---
Tags: google-play-store, bugs
---


title: Bootloop after System Restore

text:
# Question
Title: Bootloop after System Restore
My device just got into bootloop after restoring a backup of the system partition.

This bootloop is just a soft bootloop. I mean, I could get into the Operating System, but it keeps playing the Boot Animation.

# Answer
> 0 votes
I just solved the problem by installing a ROM (in this case, CM13), and the problem is gone.

I still need to wipe and do a Factory Reset, because it came from another ROM.

After wiping, the ROM should install, and you could now get to the Operating System.

---
Tags: boot-loop, samsung-galaxy-core-prime
---


# Question
Title: Sharing decryption keys from OpenKeychain
I want to create keys that I can use to sign & encrypt files, and share the decryption keys so people can read the encrypted files and see my signature.

I've successfully created an encryption/signing key in Alice device, and I'm able to encrypt messages and files with it that I can decrypt in Alice device.

However when I try to share the keys I get an *.asc* file that when imported on Bob's device, has a orange ? icon, and when try to decrypt the encrypted file, I get "No encrypted data with known secret key found in stream!"

Any idea what I might be doing wrong?

Screenshots (click images for larger variants)

# Answer
> 1 votes
With *OpenKeyChain* as with any PGP app, you always generate **key pairs:** one private and one public key. The private key can be used to decrypt data which was encrypted with its public counter-part.

Now, when you *share* a key, you always share the *public* part – which can be used for *encryption*, but not for *decryption*. Hence, the message encrypted using Bob's key cannot be decrypted with Alice's key: on that device, only Alice's key pair and Bob's public key are present, so only Alice's private key is tried for decryption. Hence you get that error message.

# Answer
> 0 votes
See RSA Cryptography on Wikipedia.
You can simply share the encryption key and **force decrypt unencrypted data** with your decryption key. This works exactly the same as Digital Signature \- anyone can verify but only you can sign.

---
Tags: encryption
---


# Question
Title: Does 4G consume more battery than 3G if I don't use it for data?
Each generation of **G** consumes more battery \[( 4G compared to 3G or 2G) or ( 3G compared to 2G) \] than the previous one when used for data, since more complex algorithms are required to process higher data speeds

My question is if I don't use mobile data at all ( instead use Wi-Fi), but leave the mobile on 4G, will the battery consumption be the same or more as compared to 3G ( and on similar lines 3G Vs 2G), given identical usage and signal strength?

(I haven't found anything that talks of this, but I suspect power consumption would be higher)

# Answer
One important consideration is the strength of signal, if you have a stronger 4g signal in your area, 4g may consume less battery... But fallback to 3g in non volte networks is really irksome... Sometimes I miss calls when I am on 4g and using data. 2g definitely has significantly less battery drain.. so I keep my phone on 2g and switch to 4g when needed. I use power toggle widget on home screen to quickly reach network change screen.
> 6 votes

# Answer
> ... The LTE radio states drain slightly more power than their counterparts in 3G, because the tail states (Short DRX and Long DRX) stay at the higher base power, while much of the 3G tail is in the FACH state which uses half power. ...

So basically 4G modules consume more energy compared with 3G modules **BUT**

> ... the IC/chip technology is improving, batteries are becoming better, 4G coverage is improving, technology is maturing, networks are getting optimized, etc. All this will lead to your 4G devices performing much better than 3G soon. The difference will not be noticeable anymore. ...

So actually you can't feel any difference between 3G-4G energy usage.

Source: here.
> 5 votes

# Answer
Actual modem power consumption values are closely guarded and not made available publicly. Although I can’t share exact numbers, I can tell you that 3G and 4G standby power consumption is almost identical. 4G data does consume more power than 3G data, however this shouldn’t come as a surprise because the data speeds are so much higher. However, not all 4G use cases consume more power. VOLTE actually consumes less power than WCDMA, CDMA or GSM talk. Power consumption also varies by chipset, for example, iPhone 7s with Intel modem have less than half of the 3G talk time of phones with a Qualcomm modem. Source: http://nordic.businessinsider.com/iphone-7-battery-life-2016-10/ Here's more info on the differences between the two: https://www.theguardian.com/technology/2016/oct/21/32gb-iphone-7-slower-than-more-expensive-versions-tests-show
> 3 votes

---
Tags: battery-life
---


# Question
Title: Turn off aeroplane mode to make a call on Moto g2
I have installed Marshmallow on my Moto G2 using adb. It was a successful installation and everything was working good. Then I realized that none of my SIM was working.
My SIM card shows operator name but it can't get network.

Whenever I try to make a call, It shows me error

> Turn off aeroplane mode to make a call

I have checked and found that Aeroplane mode is already off on my device, I tried

1. Turn on/off aeroplane mode
2. Reboot my device (Multiple times)
3. Do factory reset
4. Wipe Cache and Dalvik cache
5. Do hard reset
6. Restore old Kitkat version from backup
7. Re-installation of ROM (Multiple times)
8. Insert another SIM to my device (Did not work)
9. Insert my current SIM to other device (Worked)

But nothing seems to be working for my case. I have read each and everything related to this on internet but was not able to find any solution.

**EDIT**

I have also tried below command

```
adb shell settings put global airplane_mode_on 0

```

to disable aeroplane mode from adb, and checked with below

```
adb shell settings get global airplane_mode_on

```

It returns `0` that means Aeroplane mode is off but issue is still there. I still see the error message and can't use my SIM.

**EDIT 2**

I run below commands with OKAY response.

```
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

```

Used `*#*#4636#*#*` and changed network type to `WCDMA preferred`

Checked `IMEI` using `*#06#` and its valid.

**EDIT 3**

I found that there is no "Cellular Network" option available on my device. Could this be the issue for not reaching out network?

Below is output for getvar all

```
(bootloader) version: 0.5
(bootloader) version-bootloader: 4887
(bootloader) product: titan
(bootloader) secure: yes
(bootloader) hwrev: 0x8400
(bootloader) radio: 0x5
(bootloader) emmc: 16GB ID=15 REV=07 PRV=0B TYPE=57
(bootloader) ram: 1024MB Hynix S4 SDRAM DIE=4Gb
(bootloader) cpu: MSM8226 CS
(bootloader) serialno: ZX1DXXXXXX
(bootloader) cid: 0x0007
(bootloader) channelid: 0xc0
(bootloader) uid: 2B8DXXXXXX000000000000000000
(bootloader) unlocked: yes
(bootloader) securestate: unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) mot_sst: 3
(bootloader) max-download-size: 536870912
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: 3533210XXXXXXXX
(bootloader) meid:
(bootloader) date: 09-11-2014
(bootloader) sku: XT1068
(bootloader) battid: (null)
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Tue Apr  4 23:50:50 UTC 2017"
(bootloader) ro.build.fingerprint[0]: motorola/titan_retla_ds/titan_umts
(bootloader) ro.build.fingerprint[1]: ds:6.0/MPB24.65-34-3/3:user/releas
(bootloader) ro.build.fingerprint[2]: e-keys
(bootloader) ro.build.version.full[0]: Blur_Version.24.81.3.titan_retla_
(bootloader) ro.build.version.full[1]: ds.retla.en.01
(bootloader) ro.build.version.qcom[0]: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1
(bootloader) ro.build.version.qcom[1]: .04.04.02.048.045
(bootloader) version-baseband: MSM8626BP_1032.3116.99.00B DFLT_FSG
(bootloader) kernel.version[0]: Linux version 3.4.42-g0a0ded4 (hudsoncm@
(bootloader) kernel.version[1]: ilclbld86) (gcc version 4.8 (GCC) ) #1 S
(bootloader) kernel.version[2]: MP PREEMPT Mon Aug 22 14:30:22 CDT 2016
(bootloader) sdi.git: git=MBM-NG-V48.87-0-gdc5aeaf
(bootloader) sbl1.git: git=MBM-NG-V48.87-0-gbffe41a
(bootloader) rpm.git: git=MBM-NG-V48.87-0-gbe53f43
(bootloader) tz.git: git=MBM-NG-V48.87-0-g31cba28
(bootloader) aboot.git: git=MBM-NG-V48.87-0-g1b80345
(bootloader) partition-type: raw
(bootloader) partition-size:
(bootloader) qe: qe 1/1
(bootloader) productid: ZX1D62FVGF
(bootloader) sutinfo:
(bootloader) ro.carrier: retin
all: listed above
finished. total time: 0.340s

```

I am using **XT1068\_TITAN\_RETLA\_DS\_6.0\_MPB24.65-34-3\_cid12\_CFC.xml.zip** dated **2017-02-05 19:29** from this source

I used **EasyInstaller.bat** to install on my mobile.

Is there any other thing I can try?

# Answer
It appears you are using the incorrect firmware for your device... Your device is Retail India (RETIN), but the firmware image you are using is Retail Latin America (RETLA). The correct firmware for Retail India is RETAILDSDS (don't ask me why, I have no idea what it stands for other than Dual SIM something). A mismatch of radio firmware to the hardware in your device can cause the operating system to think you are in airplane (aeroplane) mode.

Assuming you have the proper drivers and fastboot installed, use this file and extract it to your fastboot directory, or any known directory if fastboot is in your path. Open a elevated privilege command window, in Windows click Start and type `cmd` and then right-click on cmd.exe and select Run as Administrator or in Linux open a terminal window and enter `sudo -i` and your password, and navigate to the folder where you extracted the firmware file's contents.

Then enter these commands manually, one at a time (it's OK to copy/paste them individually, just don't do the whole thing at once):

`fastboot oem fb_mode_set`
`fastboot flash partition gpt.bin`
`fastboot flash motoboot motoboot.img`
`fastboot reboot-bootloader`
`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 modem NON-HLOS.bin`
`fastboot erase modemst1`
`fastboot erase modemst2`
`fastboot flash fsg fsg.mbn`
`fastboot erase cache`
`fastboot erase userdata`
`fastboot oem fb_mode_clear`
`fastboot reboot`

If ANY step fails, or gives any response other than OKAY, check the command and try again. In some cases the modems will need to be done be done 2-3 times. If you get a "Preflash validation error" on the partition table (gpt.bin) it is OK to skip that file (ONLY if you get that error), but you must do each step after that.

The first boot on Marshmallow can take a long time, give it at least 20 minutes after the final reboot to come up to the setup wizard.

This should bring the modem/radio firmware in line with the boot image and the hardware radio and allow you to get normal service again.

Good luck!
> 2 votes

---
Tags: 6.0-marshmallow, adb, rom-flashing, custom-roms, sim-card
---


# Question
Title: Automatically Extract Text from any app using Tasker
I've recently started playing with automation of simple routines in my Android device, and I've encountered an issue I cannot seem to solve.

What I need is a way to detect if a change to the **Clipboard** has been made (preferably after I copy a piece of text from anywhere), and automatically paste that text to any app of my choice (either **Evernote** or **Keep**, doesn't really matter).

Is there any way to open an app using **Tasker** ONLY when a copy event was fired?

# Answer
> 1 votes
After doing some thorough reading of the Tasker Documentation I believe I have found an elegant way to accomplish this:

Basically this is a recursive task, constantly checking against a variable called %CLIPTEXT that it is equal to %CLIP (which is a predefined variable containing the contents of the Clipboard) and acting upon accordingly if it is not equal (aka changed) by opening the desired app.

---
Tags: tasker, automation, copy-paste
---


title: How to cancel file download on Chrome?

text:
# Question
Title: How to cancel file download on Chrome?
I accidentally clicked the download button of a 1.2 GB (my WiFi speed is slow so it's a problem) file from the Chrome browser on Android 4.4.4 KitKat. Now I want to cancel this download package, but it seems impossible to me.

I googled and found this similar question but none of those answers helped me.

* My device download manager doesn't show Chrome's current downloading.
* When I close my WiFi, the download pause, but when I turn on WiFi, then the download resumes.
* When I force-stop the Chrome app, the download stops, but when I open it again, the download starts again.

My device is Xiaomi Mi Pad 1 (China version) running on MIUI. My device is not rooted.

# Answer
> 1 votes
You can press on the file name which is downloading. After clicking it, you will get 2 options below that file: Cancel or Pause. Click on Cancel.

# Answer
> 0 votes
Go to Settings - Apps - Download, and force stop the Download application and clear data.

---
Tags: chrome-for-android, downloading, xiaomi
---


title: Find a stolen Samsung Galaxy Tab E

text:
# Question
Title: Find a stolen Samsung Galaxy Tab E
I gotten involved in an incident that i got my tab stolen. I have not used the device for so long and i have some personal details on the device.

The problem I have now in trying to recover this devices is that I am not sure I have enabled GPS tracking on the device.

The only lead I have on this device now is that my G-mail account is logged unto it and also my Google play store is logged unto it. Please is it still possible for either locate this device or remotely wipe it? Thanks in anticipation.

# Answer
By logging into your Google Account, you can select "GET STARTED" under "Find your phone".

As long as the missing device is still logged into your Google account, it should show on the list on the next screen where you can tap on it for additional steps. From there, you can attempt to locate, lock or wipe the device.
> 1 votes

---
Tags: google-account, location-services
---


title: How to remove wifi hotspots from list

text:
# Question
Title: How to remove wifi hotspots from list
I know the general procedure - hold the wifi network icon and select forget - but the icon still stays there! How can I remove it? (Using Android 6-0-1 on a Samsung Tab)

# Answer
Can't get rid of icon, move out of range or switch the hotspot off. Can tell my tab to ignore them and not connect. Went to: https://android.gadgethacks.com/how-to/make-your-android-automatically-switch-strongest-wifi-network-0172651 Get the Cloudie WiFi Switcher and select the access points you want to use.
> 0 votes

---
Tags: tablet, wifi-hotspot
---


title: Restore app data from 4.x in 6.x

text:
# Question
Title: Restore app data from 4.x in 6.x
I have an old phone which I used for a few month when my S4 was broken. I managed to backup and restore the app data from S4 to this phone by just copying `/data/data/appname` \- however both devices were 4.x .

Now I have a new phone with 6.0 Marshmallow and I intended to do the same thing - and failed.

Example whatsapp: I copied the old apk, installed it to 6.0 and then (in twrp) replaced `/data/data/com.whatsapp` with the old one.

For testing I also set it to `chmod 777`. Whatsapp shows a notification (A problem with chat history) and if I start whatsapp it closes (crashes?) immediately.

Any idea how to copy the old app data to marshmallow? thanks.

# Answer
Assuming that you still have the old device and it works properly, I'd advise that you use Titanium Backup to migrate your apps. Check out this answer for more details about it.

Honestly, I have never tried to restore app data between different Android OS major versions (such as 4.X to 6.X in your case), but it's worth a shot. By the way, WhatsApp has its own built-in feature to backup and restore data, in case you were wondering. And please let me know how this turned out, I'm curious to know the outcome for myself.
> 0 votes

---
Tags: 6.0-marshmallow, restore
---


title: Copy a single gmail contact to phone

text:
# Question
Title: Copy a single gmail contact to phone
In my contacts, I generally display only contacts stored on my phone.

(My gmail contacts include practically everyone I've ever sent an email to. They're nice for auto-completing the recipient when I compose mail, but I don't want to see them when trying to find someone in the contacts list on my phone.)

However, here and there I find a gmail contact I'd like to be on my phone. How do I copy a single contact to my phone? I've seen ways to export them all, but I don't want to do that.

# Answer
> 0 votes
You can do this by moving your contact to the SIM-card and then to the phone.

On android 7 the workflow is like this:

1. Make sure your Google contacts are synced to the phone.
2. In Contacts settings display contacts from all accounts.
3. Find the contact you want to copy.
4. Copy it to your SIM-card.
5. Select the new contact on the SIM-card.
6. Copy it to phone memory.
7. (optional) Select the new contact on the SIM-card and delete.
8. In Contacts settings display only contacts stored in phone memory (or phone memory and SIM if you prefer that).

I think I remember that on older phones you could just move the contact around without going through the copy-and-delete madness -- not sure if that's the case for Kitkat.

There are some contact attributes that can't be stored on the SIM-card. Not sure which these are but that probably includes photos and the like. Anyways, phone numbers and e-mail addresses will always be copied.

---
Tags: 4.4-kitkat, contacts, google-contacts
---


title: How to install jdk for offline compile?

text:
# Question
Title: How to install jdk for offline compile?
I want to compile java offline.

I have project on PC, will just copy and make small changes to it, and test it, when I am away from home.

Doesnt need to be an IDE. Not even code editor. Just a working compiler.

No need to be an app apk, a method to install it thru usb adb would suffice.

I am looking for a 100% free option too.

# Answer
If your project only uses Command Line Interface, and only uses sub-packages from `java.lang` , then you can try "TERMUX" android app, it's a terminal emulator, so you should be familiar with linux terminals.

As of now , it doesn't have the entire JDK, but I can provide you a package that has basic tools like `javac` and `jar`, that you could use with termux. **BUT** if your project uses AWT classes, this method won't help.
> 0 votes

---
Tags: java
---


title: Is wireless adb encrypted?

text:
# Question
Title: Is wireless adb encrypted?
When I connect my phone to a new computer's adbd - whether via USB or wireless - it prompts me to confirm the computer's RSA fingerprint. This seems to imply that there is, in some form, cryptography involved in adb communication.

Exactly what does that crypto look like? Is adb traffic encrypted? If I wirelessly pull data via adb from my phone, will someone be able to sample that traffic? Or is it unencrypted, and merely signed?

I searched around, but didn't find any meaningful results (mostly just people talking about disk encryption).

# Answer
Interesting question, let's just try it out in a practical test. I connected to my device (running Android 5.1.1 Lollipop) through ADB over Wi-Fi using `adb connect 10.0.0.10` and ran some tests. What you are seeing is the output of the packets that I captured using Wireshark.

*Starting a shell in ADB by sending `adb shell`:*

```
2290    127.822126  192.168.0.41    10.0.0.10   TCP 85  14804 → 5555 [PSH, ACK] Seq=60 Ack=106 Win=65536 Len=31

0000   90 ef 68 cc f4 48 54 04 a6 a1 a4 3f 08 00 45 00  ..h..HT....?..E.
0010   00 47 63 e1 40 00 80 06 00 00 c0 a8 00 29 0a 00  .Gc.@........)..
0020   00 0a 39 d4 15 b3 57 0e 4a de 41 6b 58 7c 50 18  ..9...W.J.AkX|P.
0030   01 00 cb 14 00 00 4f 50 45 4e 06 00 00 00 00 00  ......OPEN......
0040   00 00 07 00 00 00 52 02 00 00 b0 af ba b1 73 68  ......R.......sh
0050   65 6c 6c 3a 00                                   ell:.

```

*Response received:*

```
2295    127.928185  10.0.0.10   192.168.0.41    TCP 94  5555 → 14804 [PSH, ACK] Seq=130 Ack=91 Win=64256 Len=40

0000   54 04 a6 a1 a4 3f 90 ef 68 cc f4 48 08 00 45 00  T....?..h..H..E.
0010   00 50 2a 73 40 00 3f 06 46 5a 0a 00 00 0a c0 a8  .P*s@.?.FZ......
0020   00 29 15 b3 39 d4 41 6b 58 94 57 0e 4a fd 50 18  .)..9.AkX.W.J.P.
0030   03 ec 74 0a 00 00 57 52 54 45 01 00 00 00 06 00  ..t...WRTE......
0040   00 00 10 00 00 00 81 04 00 00 a8 ad ab ba 72 6f  ..............ro
0050   6f 74 40 72 6b 33 31 38 38 3a 2f 20 23 20        ot@rk3188:/ #

```

*Writing some text to a file:*

```
816 61.121728   10.0.0.10   192.168.0.41    TCP 190 5555 → 14804 [PSH, ACK] Seq=122 Ack=102 Win=1004 Len=136

0000   54 04 a6 a1 a4 3f 90 ef 68 cc f4 48 08 00 45 00  T....?..h..H..E.
0010   00 b0 2e 7f 40 00 3f 06 41 ee 0a 00 00 0a c0 a8  ....@.?.A.......
0020   00 29 15 b3 39 d4 41 6b 9e 27 57 0e 70 8a 50 18  .)..9.Ak.'W.p.P.
0030   03 ec 69 a3 00 00 57 52 54 45 01 00 00 00 06 00  ..i...WRTE......
0040   00 00 70 00 00 00 04 14 00 00 a8 ad ab ba 0d 72  ..p............r
0050   6f 6f 74 40 72 6b 33 31 38 38 3a 2f 73 64 63 61  oot@rk3188:/sdca
0060   72 64 20 23 20 65 63 68 6f 20 22 54 65 73 74 31  rd # echo "Test1
0070   32 33 22 20 3e 20 74 65 73 74 2e 74 78 74 20 20  23" > test.txt
0080   20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0090   20 20 20 20 20 20 20 20 20 20 20 20 20 20 08 08                ..
00a0   08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08  ................
00b0   08 08 08 08 08 08 08 08 08 08 08 08 08 08        ..............

```

*Sending the command for reading out that same file:*

```
1130    71.683380   10.0.0.10   192.168.0.41    TCP 204 5555 → 14804 [PSH, ACK] Seq=2782 Ack=1546 Win=1004 Len=150

0000   54 04 a6 a1 a4 3f 90 ef 68 cc f4 48 08 00 45 00  T....?..h..H..E.
0010   00 be 2e f2 40 00 3f 06 41 6d 0a 00 00 0a c0 a8  ....@.?.Am......
0020   00 29 15 b3 39 d4 41 6b a8 8b 57 0e 76 2e 50 18  .)..9.Ak..W.v.P.
0030   03 ec 35 14 00 00 57 52 54 45 01 00 00 00 06 00  ..5...WRTE......
0040   00 00 7e 00 00 00 cd 12 00 00 a8 ad ab ba 0d 72  ..~............r
0050   6f 6f 74 40 72 6b 33 31 38 38 3a 2f 73 64 63 61  oot@rk3188:/sdca
0060   72 64 20 23 20 63 61 74 20 74 65 73 74 2e 74 78  rd # cat test.tx
0070   74 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  t
0080   20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0090   20 20 20 20 20 20 20 20 20 20 20 20 20 20 08 08                ..
00a0   08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08  ................
00b0   08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08  ................
00c0   08 08 08 08 08 08 08 08 08 08 08 20              ...........

```

*Received response containing the file's contents (which was written to the console):*

```
1144    72.085985   10.0.0.10   192.168.0.41    TCP 109 5555 → 14804 [PSH, ACK] Seq=2983 Ack=1619 Win=1004 Len=55

0000   54 04 a6 a1 a4 3f 90 ef 68 cc f4 48 08 00 45 00  T....?..h..H..E.
0010   00 5f 2e f7 40 00 3f 06 41 c7 0a 00 00 0a c0 a8  ._..@.?.A.......
0020   00 29 15 b3 39 d4 41 6b a9 54 57 0e 76 77 50 18  .)..9.Ak.TW.vwP.
0030   03 ec b8 6b 00 00 57 52 54 45 01 00 00 00 06 00  ...k..WRTE......
0040   00 00 1f 00 00 00 3f 09 00 00 a8 ad ab ba 54 65  ......?.......Te
0050   73 74 31 32 33 0d 0a 72 6f 6f 74 40 72 6b 33 31  st123..root@rk31
0060   38 38 3a 2f 73 64 63 61 72 64 20 23 20           88:/sdcard #

```

*Retrieving the file by sending `adb pull /sdcard/test.txt`:*

```
3711    236.234344  192.168.0.41    10.0.0.10   TCP 102 14804 → 5555 [PSH, ACK] Seq=2776 Ack=4435 Win=255 Len=48

0000   90 ef 68 cc f4 48 54 04 a6 a1 a4 3f 08 00 45 00  ..h..HT....?..E.
0010   00 58 6b 17 40 00 80 06 00 00 c0 a8 00 29 0a 00  .Xk.@........)..
0020   00 0a 39 d4 15 b3 57 0e 7a fc 41 6b af 00 50 18  ..9...W.z.Ak..P.
0030   00 ff cb 25 00 00 57 52 54 45 0a 00 00 00 02 00  ...%..WRTE......
0040   00 00 18 00 00 00 5d 07 00 00 a8 ad ab ba 52 45  ......].......RE
0050   43 56 10 00 00 00 2f 73 64 63 61 72 64 2f 74 65  CV..../sdcard/te
0060   73 74 2e 74 78 74                                st.txt

```

*Received response containing the file's contents:*

```
3717    236.242351  10.0.0.10   192.168.0.41    TCP 94  5555 → 14804 [PSH, ACK] Seq=4491 Ack=2848 Win=1004 Len=40

0000   54 04 a6 a1 a4 3f 90 ef 68 cc f4 48 08 00 45 00  T....?..h..H..E.
0010   00 50 2f e9 40 00 3f 06 40 e4 0a 00 00 0a c0 a8  .P/.@.?.@.......
0020   00 29 15 b3 39 d4 41 6b af 38 57 0e 7b 44 50 18  .)..9.Ak.8W.{DP.
0030   03 ec 8d b1 00 00 57 52 54 45 02 00 00 00 0a 00  ......WRTE......
0040   00 00 10 00 00 00 66 03 00 00 a8 ad ab ba 54 65  ......f.......Te
0050   73 74 31 32 33 0a 44 4f 4e 45 00 00 00 00        st123.DONE....

```

**Conclusion:** ADB over Wi-Fi is not encrypted (at least not by default).
> 11 votes

---
Tags: adb, encryption
---


title: I have lost my Phone - Please help

text:
# Question
Title: I have lost my Phone - Please help
I lost my phone somewhere and I know it is not in my house; it is ethier in my car or at the place where I got out of the car (which is by my school).

I do not know if my phone is dead by now and if not, then it is on silent mode. My question is:

**How can I find where my phone is?**

I got no apps and I tried the Google android device manager and it is saying no location found.

So, how do I find out where it is? I searched EVERYWHERE in the car. I need to know as soon as possible, and if there is no way you can help me, then is there anyway I can get my photos and videos etc from my LOST phone and transfer it to my NEW phone?

# Answer
> -2 votes
There is a solution: Since Device Manager (follow the link https://www.google.com/android/devicemanager? ) does not seem to help you and since you do not have another security application for tracking your device, I am sad to having your told that your mobile phone is lost.

This means that your old phone has not been turned on since it was lost. Another option was that it had a reset after that was "lost", which means it was stolen.

I hope someone else have a good idea to help you, bui it seems you cannnot do anything to recover it unless you physically find it.

---
Tags: lost-phone
---


title: Tablet does not connect to the hotspot

text:
# Question
Title: Tablet does not connect to the hotspot
My Samsung tablet was working just fine. Now it does not connect to the Internet via our hotspot. It does not even scan and see the available connections. When I try to turn WiFi on, it turns ON momentarily and then again turns back OFF saying **To see available networks, turn on wi-fi**

# Answer
> -2 votes
This happened to me once and I just made a factory reset. However this did not work for a friend.

---
Tags: wifi-hotspot, wifi-tethering
---


title: ADVENT Vega tablet - USB Drivers

text:
# Question
Title: ADVENT Vega tablet - USB Drivers
I just got my hands on an old ADVENT Vega tablet. All the download links in its official website are broken. I the file named USB System Driver. I can't find it anywhere else either. Every link I came across turns out to be broken.

Can anyone provide a healthy link to it?

The device seems to be forgotten. Any other files related to this device are welcome.

Thanks.

# Answer
> 1 votes
I really don't wanna lie, your device support accessories are outdated. Its really difficult to find the official softwares for your device.

However after a bit of digging I found out its a bit of proceedure to get the instalation of your device drivers. Based on the following thread: ADVENT VEGA USB DRIVER PROBLEM

You might need to find the two tools :

1. AUDI - Automated USB Driver Installer
2. VegaTools

You need to download the 97MB file (which include the tools, custom rom and **drivers**) Ignore the ROM files, we just need the USB drivers (containing `NvidiaUsb.inf" and the other has: androidwinusb86.cat, androidwinusba64.cat, android_winusb.inf` ) here: r8-vega-update-modacocustomrom

Read full instructions here: ADVENT VEGA USB DRIVER PROBLEM

Credits:

Vega clone USB drivers problem (and bootloop)

Hope this works

---
Tags: tablet, usb-drivers
---


title: adb backup not working for certain app

text:
# Question
Title: adb backup not working for certain app
I need to get all files of a certain app (com.valvesoftware.android.steam.community), but adb backup only gives me a 1KB AES encrypted file. upon decrypting it there is nothing inside the tar archive

I tried: `adb backup -f steam.ab -noapk com.valvesoftware.android.steam.community`

Upon entering my backup password (not the encryption password!) the `steam.ab` package is made. My problem is that there is just about 1KB of AES encrypted information in it.

However, it seems I can back up other apps just fine.

What is the cause of this?

# Answer
> 8 votes
Developers can decide to have their apps opt-out of backups (`ALLOW_BACKUP=FALSE`). If you try to backup such an app via `adb backup`, the resulting file will contain nothing but the backup header (usually a 41 byte file). Working around that limitation is only possible on rooted devices, e.g. using the XPosed module Backup All Apps.

---
Tags: adb, backup
---


# Question
Title: Samsung J5 : Use SD card as internal memory
I'm actually trying to use my SD card as internal memory on my Samsung Galaxy J5 with 6.0.1 android version. I saw some post on google and i follow this tutotial :

http://www.phonandroid.com/galaxy-s7-s7-edge-fusionner-memoire-interne-carte-sd-sans-root.html (It's in french because i'm french)

but when i try to use sm partition in adb shell nothing is happening... and my internal memory still the same. As you can see on the tutorial other people got the same bug on Samsung J5.

If someone have a solution or a way to solve it.

# Answer
> 8 votes
This is how I achieved this on a Samsung Galaxy J5 with Marshmallow 6.0.1. It requires a computer running Windows vista/7/8/10:

1. Install the official Samsung drivers on your computer - some other driver variants can cause this process not to work: http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
2. Install Odin on your computer: https://odindownload.com/download/
3. Enable Developer Options on your phone.
4. In settings-\>Developer Options, turn on 'Oem Unlock' and 'USB Debugging'.
5. Download this zip package: https://download.chainfire.eu/1021/SuperSU/SR3-SuperSU-v2.79-SR3-20170114223742.zip -- and save it to a known location on your phone eg. downloads.
6. Install TWRP -- this particular one -- others do not work on Marshmallow: https://forum.xda-developers.com/galaxy-j5/development/recovery-samsung-galaxy-j500f-t3416960 . Follow the instructions on the page to install, however be aware that for this to work, the *First Time* the phone resets after the flashing process, you must hold `Vol Up` \+ `Home` \+ `Power key` to boot into TWRP. The timing on this is reasonably quick, so keep an eye and your hands on your phone during the flashing process. If you don't do it the first time, you will need to repeat this step, as on subsequent reboots you will not be able to get it to boot into TWRP if you didn't do it the first time.
7. Now download and install Root Essentials from Google Play Store. Run it, go to Adoptable Storage and follow the instructions. Root Essentials will ask you to download a specific zip package (do so). Then go through the process again, and follow the prompts to reboot into TWRP mode and install the package from the Install menu. Once you've done this, and the phone reboots (it will reboot loop several times, don't worry) it should boot up properly, and may go through an 'App optimizing' process.
8. Once booted, you should go into settings-\>storage, and you should see that your overall storage has increased. Click on the SD card, click on the '...' button in the top left and click on 'Migrate Data'. This should move existing app data (that can be moved) and photos/music to the SD card, and change the default photo storage location to the SD card.
9. Lastly, go into settings-\>Apps-\>Application Manager. Some existing Apps can be moved entirely to the SD card eg. messenger. To do so, click on the app, then storage. If an option to move it is available for that App, the 'Change' button should be available. Click on it and follow the process.

Voila! Enjoy!

Do not mess with adb's, Link2SD's or anything else -- I have wasted too much time on those before I figured out a way that works!

# Answer
> 0 votes
Work on Samsung J5 SM 500G From Official marshmallow Install TWRP with Odin ( TWRP\_J500G\_MM) Root using \[6.0\] UPDATE-SuperSU-v2.76 volume up+home+power Install Root Essential Storage - Adoptable storage - adopt Turn off Enter TWRP Install ASPlugin Root Essential Storage - Adoptable storage - adopt - reboot Setting - storage - sd card - migrate data - export Finish

# Answer
> -1 votes
Another easy way is there.
I tried it on my J5 with success:

First you need to root the device and install Root Essentials from the Play Store. Follow the instructions on the screen (you need to use a very good SD class 10 with high write speed).

# Answer
> -1 votes
You should root your phone first, use a class 10 memory card and re partition your SDcard in ext4 file system. Then you can use some application to make it as internal memory. I found some custom OS like cyanogenmod has this feature already. Do it at your own risk

---
Tags: adb, 6.0-marshmallow, internal-sd, adoptable-storage, samsung-galaxy-j5
---


# Question
Title: What's /system/vendor/lib/liboemcrypto.so?
and where does it come from? I'm on lineage os and I have an app that crashes because this file doesn't exist on my sytem. When I do an internet search for the file, I see that there are plenty of people getting things working by removing it, or renaming it to `liboemcrypto.so.bak` or something, but no one seems to be missing this file. Can I get it from anywhere?

# Answer
That's (part of the) implementation of Android's "modular DRM", which came into being in Android 4.3 (API level 18) -- see MediaDrm. Essentially it's the component that allows media player apps, under certain conditions, to play back DRM-protected contents.

If you are running on Android 4.2 or lower, however, you're probably out of luck. To confirm, you can install an app like DRM Info, which will tell you whether any DRM library is installed on your system. If not, am afraid there's nothing you can do on this specific device.
> 0 votes

---
Tags: lineageos, drm
---


title: Ok Google Go to "Blank"

text:
# Question
Title: Ok Google Go to "Blank"
Is there a way to navigate to locations using Ok Google?

Similar functionality on the iPhone would be "Go Home."

# Answer
> 8 votes
Make sure you have the latest **supported language pack**. (You can get in-app updates)

Assuming you already have Google maps installed;

**Set your custom address (e.g school)**

1. On your Android phone or tablet, open the Google Maps.
2. Tap Menu Menu and then Your places and then Labeled.
3. Choose Home or Work (school).
4. Enter the address.

**Note: You must be signed in to set, edit, and see your home and work on the map**

Use voice search and navigation commands

1. Open the Google Maps app
2. Say “Ok Google” or tap Speak.
3. Ask a question or tell Maps to do something e.g **"Ok, Google. "Get directions** to \[school\]." Alternatively, **"Navigate to school."**

# Edit

If someone's address is in your Google Contacts, you can find their address on the map by searching for their name. If you search for an address, you can see any contacts matching that address.

If you wish to add or manage your google contacts, navigate to Google contacts.

**Adding an address to a Google contact**

1. Open the Google Maps app .
2. Search for an address.
3. At the bottom, tap the address.
4. Tap Label.
5. Enter the name of someone in your Google Contacts. To create a new contact, tap Create contact.
6. Choose an option:

* Add home: Add the address as your contact's home address.
    * Add work: Add the address as your contact's work address.
    * Add custom label: Make a new label for your contact's address, like "Friend's house."

**Note: Only people stored in your Google Contacts will show up as suggestions. You won't see contact info for people who are stored on your phone or tablet.**

Credits

1. Find, add, or hide your Google Contacts on the map

# Answer
> 1 votes
Indeed there is. One of the key phrases you may be searching for is:

> "Ok, Google. Show me a map of \[place name\]."

You may need to press the microphone (voice search) button from Google Search or Maps if Google Now is not activated.

For some reason this seems to do a poorer job of identifying contact addresses than

> "Show me a map of \[name of place\]." / "Get directions to \[name of place\]."

Many maps / navigation phrases are documented here.

---
Tags: maps
---


title: How to enable double-click

text:
# Question
Title: How to enable double-click
Is it possible to do double-click on Android like you do on a regular computer? Some websites require double-click to operate, and I was hoping I could do the same on Android and get a computer double-click behavior instead of Android double tap zoom.

# Answer
> 1 votes
Just created this account just to share this priceless information... Try and instal "**Puffin browser**" on googleplay.. It has the virtual mouse that works like a charm! Thank me later and the developer!

# Answer
> 0 votes
You can try using Firefox for Android with the plugin NoDoubleTap that lets you disable double tap zooming.

Hopefully that will let Android pass both taps through to the website so it can register a double click.

# Answer
> 0 votes
I had the same issue and the only browser I've found that works is Puffin. I have to use the virtual mouse and a BT mouse together but it does work.

---
Tags: applications
---


# Question
Title: Google App & Google Play Services Draining Battery in Cyanogenmod
I have an old Sony Xperia Z I want to use in my car to use Spotify/ Google Maps/ Google Navigation/ Android Auto.

The phone is running Cyanogenmod 13.0-20161219-NIGHTLY-yuga / Android 6.0.1 (Marshmallow).

There are hardly any apps installed and I've got pretty much every single power saving feature switched on but the battery is still draining in a little under 24 hours. Google App & Google Play Services make up the bulk of the battery usage.

I've setup the phone to only wakeup when it's charging and go to sleep when it's not - so this battery usage is happening when the phone is (theoretically) asleep.

To complicate things Cyanogenmod is defunct and LineageOS doesn't have support for the Sony Xperia Z.

Is there a known issue with/ fix for this battery drain?

Or should I install another custom ROM (and if so, which one?)

# Answer
that's common in any custom roms... i have used Cyanogenmod and its normal because they all are not that optimised .... or may be you could try flashing some other kernel.. but i think you will never get better battery backup than stock rom.
> 0 votes

---
Tags: cyanogenmod, battery, battery-life, google-play-services, sony-xperia-z
---


title: my Xperia l not starting

text:
# Question
Title: my Xperia l not starting
I tried to install a custom rom on my Xperia L,but it aborted. Now my handset isn't booting up, when powered on it just shows SONY logo. What should I do now ?

# Answer
Try to flash the custom ROM again, starting with flashing the `boot` partition from `fastboot`. Before doing that re-download the whole ROM and if you can, check it for defects. The fact that the phone draws the SONY logo proves that the bootloader is still working, so you should be able to do this. Pulling out the battery and powering up the phone while keeping the volume up key pressed will put the phone in fastboot mode (the blue LED will light up), from which you can continue.
> 0 votes

# Answer
you need to complete the flash.. download xperial l generic rom and flash it again..
> -2 votes

---
Tags: boot, rom
---


title: Cant install OpenGApps on Lineage OS

text:
# Question
Title: Cant install OpenGApps on Lineage OS
I recently installed Lineage OS on a Nexus 6, using TWRP, followed by OpenGApps installation which crashed at 4%. So I started phone, switched off went to TWRP again, tried installation same problem. I used aroma for arm 32-bit. Any idea whats happening?

**Lineage OS** : `lineage-14.1-20170331-nightly-shamu-signed`

**OpenGApps** : `open_gapps-arm-7.1-aroma-20170405`

There are no Google Apps on the phone, the Lineage is working fine (or I say brilliant) but sigh, no Play Services no other apps.

# Answer
> 1 votes
`open_gapps-arm-7.1-aroma-20170405` is broken, I repeat this build is broken. I used stock version and it worked. Also this build of Lineage OS has connectivity issues, you may face extremely slow downloads on WiFi (tested on Nexus 6 shamu).

---
Tags: lineageos
---


title: Turbo charger, charges slow,why?

text:
# Question
Title: Turbo charger, charges slow,why?
My Motorola g4 plus has turbo charger when I charge in that it takes to charge full about 4 to 6 hours.But in Moto specification it was given that it will charge to 80% in 30 minutes.

# Answer
Are you using the same cable that came in box? if so then it should charge fast not that fast 80% in 30 min... that's test lab results... in real life application those figures may differ... its pretty much normal.
> 0 votes

# Answer
Can be a problem either in phone or charger or cable. It takes almost 40 minutes to charge upto 75% on turbo charge. I know it because I own it.
If this is a new device you can claim warranty and get replacement. FYI turbo charging will work until battery reaches 80% or so and after that it charges slowly. So total time to charge whole battery is 1hr 20 min in my case.
Are you using the cable supplied with the charger?
Ps. Moto Turbo charger supports 3 modes of charging. Please read what's printed on it.
> 0 votes

---
Tags: 7.0-nougat
---


# Question
Title: Remove Most Frequently Used Apps Container from Apps menu
In Android 6.0.1 I got this unnecessary feature which displays most frequently used apps on top of all other applications.
I don't need it (You can see on the pic the top 4 apps underlined). Is it possible to disable this feature at all?

Screenshot (click to enlarge)

# Answer
To remove the most used app bar follow the steps :

1. Open Google Now ;
2. Open the sidebar (hamburger menu or slide from the left) ;
3. Click the "Settings" button ;
4. Scroll down to the **Home screen** section
5. Toggle the option "App Suggestions".

Source : Reddit.
> 9 votes

# Answer
There was recently an update (Android 7.1.2) that makes the previous answer incorrect, the new directions are as follows:

1. Press and hold on the home screen until this dialogue appears:
    2. Then simply press the settings icon and change the one that says app suggestions.

Source: experimenting
> 7 votes

---
Tags: applications, 6.0-marshmallow, menu
---


# Question
Title: Android 6.0 x86_64 bit boot stuck at root@x86_64:/ on Windows Hyper-V
I have been trying to start up and Android x86 (64-bit) on Hyper-V using the latest edition available from http://www.android-x86.org/releases/releasenote-6-0-r2http

I have installed it with GRUB and created a bootable Partition during installation. Format drive to ext4.

Every time I try to run the VM I am presented with the following image

and it doesn't proceed to boot to the android screen. Anyone have an idea how to fix? I would greatly appreciate it.

# Answer
> 2 votes
The default screen resolution /color depth is not work. Need to be changed. A guide could be find here:

How to Install Android x86 4.4 R2 on Hyper-V – Part 2: Configuration, Screen resolution and Network (Jan 2015)

# Answer
> 1 votes
> I have extracted the guide below from the article which made reference to remixos on hyper-v, however the procedure is the same for any android x86 installation:

**Install Android x86 on Hyper-V virtual machine**

Installation to Hyper-V virtual machine is a bit tricky, but achievable.

* First of all, create Generation 1 VM with at least 6 Gb HDD.
* After creation of VM do not power on it.
* Connect created VHD disk to any windows machine (**Disk Management -\> Right Click -\> Attach VHD**)
* **Initialize it as MBR disk**.
* Format it in FAT32 file system.
* Detach VHD.
* Boot VM with Legacy ISO. **Do not choose Resident or Guest mode**

**During boot up;**

* Press TAB button. Edit your boot string to:

`/kernel initrd=initrd.img root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive quiet INSTALL=1 nomodeset vga=785`

* You can replace 785 with any 16bit (or 24bit) color depth code. More codes can be found at http://pierre.baudu.in/other/grub.vga.modes.html
* Chose sda1 partition (`vfat system`)
* Do not format it.
* Chose yes for GRUB installation.
* Skip EFI GRUB2 installation.
* Choose yes for making system directory read-write.
* Choose yes for creating user data image.
* Enter size of `data.img`. Maximum is 2047 because we formatted our dist to FAT32 file system. You can run you Android-x86. It’ll take a while, do not panic.
* Configure it as you wish.

**After completion;**

* The last thing you need to do is eject ISO from VM and edit created GRUB entries.

+ Shutdown your VM and eject ISO.
    + Once again attach VHD to Windows machine.
    + Edit `\grub\menu.lst`

You need to delete extra digits after kernel path, for example if you used `vga=785` previously you need to replace `kernel785` with `kernel` . Also you need to add desired vga mode again. So your menu.lst should look like:

```
default=0
timeout=6
splashimage=/grub/android-x86.xpm.gz
root (hd0,0)
title Android-x86
kernel /android-2016-01-14/kernel vga=785 quiet root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive nomodeset SRC=/android-2016-01-14
initrd /android-2016-01-14/initrd.img
title Android-x86 (Debug mode)
kernel /android-2016-01-14/kernelvga=785 root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive nomodeset DEBUG=2 SRC=/android-2016-01-14
initrd /android-2016-01-14/initrd.img
title Android-x86 (Debug nomodeset)
kernel /android-2016-01-14/kernel vga=785 nomodeset root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive nomodeset DEBUG=2 SRC=/android-2016-01-14
initrd /android-2016-01-14/initrd.img
title Android-x86 (Debug video=LVDS-1:d)
kernel /android-2016-01-14/kernel vga=785 video=LVDS-1:d root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive nomodeset DEBUG=2 SRC=/android-2016-01-14
initrd /android-2016-01-14/initrd.img

```
* Detach VHD and boot your VM.

**You should now get past the screen android x86**

(*Unfortunately couldn't upload images since I used RemixOS instead of androidx86*)

Sincerest acknowledgements go to:

Install RemixOS on Hyper-V virtual machine

---
Tags: 6.0-marshmallow, android-x86, vm
---