title: Nexus 5x media sound issue

text:
# Question
Title: Nexus 5x media sound issue
I have an issue with my brand new Nexus 5x. Ring sound, such as notifications or calls, or alarm sound works great. But there's no sound for media, such as games, Google play music, playing a video. However, if I plug an earset then I can hear any of these sounds.

Since speakers work great for notifications and alarm then it supposed to be the software issues.

I've also tried to boot in safe mode, hard reset, reset through recovery mode and all of it without success.

# Answer
> 0 votes
Issue is resolved, by it's own, in one day, media sounds just start working. I've done a lot of hard resets and firmware downgrades. Simply just doing nothing and waiting resolved this.

---
Tags: 6.0-marshmallow, audio, nexus-5x
---


# Question
Title: How to unlock phone using ADM application?
I'm using Asus Zenfone and I'm not able to unlock it. I've tried ADM but without success. Utility says that password wont be used when there is a lock pattern. How to use this application?

# Answer
> 0 votes
here: https://www.ifixit.com/Guide/Android+Device+Manager+-+Bypass+Screen+Lock+on+any+Android+Device/34600

remotely unlock your phone

# Answer
> 0 votes
Basing on Google's support site, it doesn't say that the Android Device Manager could be used to unlock a device that's already locked. Remotely ring, lock, or erase a lost device. It mainly depends on what is asked from your phone, usually, it's the PIN code, Passcode, or Pattern lock that was added on your device. If this doesn't work, I suggest Factory Device Reset.

---
Tags: applications
---


# Question
Title: Stop Samsung Galaxy S3 from auto-completing numbers
I have a Samsung Galaxy S3. I like predictive text generally, but whenever I am texting a number (e.g. address, phone number, or whatever reason to use numbers), it auto-completes from something normal, such as 123-456-7890, to something completely ridiculous, 12th0132.

Is there a way to turn off predictive text/autocomplete/autocorrect just for numbers? Or is there a better predictive text keyboard I don't know about?

# Answer
> 0 votes
It's a limitation of the Keyboard app on your phone. If it has that feature, then you can.

I suggest downloading another keyboard app, for example, Google Keyboard.

---
Tags: sms, auto-correct, text-prediction
---


# Question
Title: fastboot flash recovery img never completes
My Nexus 10 stopped booting. It shows an open padlock on startup and the Google text in the middle. So I figured my son unlocked the bootloader somehow after creatively following instructions he found on youtube. I then tried to proceed to installing a fresh rom. Saw that CM has the "Manta" roms. I have handy the main rom: cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta.zip. I found two recovery roms: twrp-2.8.7.0-manta.img and cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta-recovery.img. I'm able to get fastboot to see my device, after doing the vol up+down / power thing. But then the command fastboot -w flash recovery cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta-recovery.img never completes.

```
Creating filesystem with parameters:
    Size: 29783752704
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 7271424
    Block groups: 222
    Reserved block group size: 1024
Created filesystem with 11/1818624 inodes and 158176/7271424 blocks
Creating filesystem with parameters:
    Size: 553648128
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6768
    Inode size: 256
    Journal blocks: 2112
    Label:
    Blocks: 135168
    Block groups: 5
    Reserved block group size: 39
Created filesystem with 11/33840 inodes and 4363/135168 blocks
sending 'recovery' (7860 KB)...
OKAY [  0.932s]
writing 'recovery'...

```

That never finishes. The tablet shows, aside from the laying down Android picture and the info, a blue line: "FASTBOOT STATUS - flash:recovery". It never gets past this. I tried this with both the recovery img files I found. Anyone have any idea why my Nexus 10 can't seem to complete this fastboot recovery installation? I'm doing this using Xubuntu 15.04 btw, and I don't have Windows handy. I seriously hope it isn't a Linux limitation thing. adb has always worked great. Fastboot sees and interacts with the device, so, that part should be good I hope.

# Answer
> 0 votes
**Don't** use CM recovery. Get latest TWRP here. Report back if this doesn't work either.

Also, you're supposed to get other partitions up-to-date to ensure compatibility with new ROMs. If you're not sure, flash a factory image.

---
Tags: recovery-mode, samsung-nexus-10
---


title: WiFi doesn't automatically connect

text:
# Question
Title: WiFi doesn't automatically connect
I have a Nexus 5 running Android 6.0.1, not rooted.

When I travel from one known WiFi network to another (possibly even am inactive at home), the phone does not automatically connect to WiFi. When I check the settings, WiFi is turned off. When I turn WiFi on, it connects happily. The WiFi signals are strong.

In the settings menu for this phone, I have gone to Settings -\> WiFi -\> (top right menu) -\> Advanced -\> "Keep WiFi on during sleep", and turned this on. It has been on for weeks, and still the phone turns WiFi off.

Question: How can I prevent Android turning WiFi off?

Due diligence: I have checked the forums, and nothing seems to solve this exact problem. (The setting above is mentioned as a solution. I wish it worked.) Also, few posts are recent.

# Answer
Is there any battery saver/hibernator or such applications installed?

There is a possibility of these apps turning wifi off, while you are not accessing any data(ie, if there are no active foreground apps using the wifi).

The next case i'm not sure about is Android Marshmallow's Doze feature. I have seen people complaining about wifi being turned off, while doze kicks in.

As a solution, you can install any device automation tools like Macrodroid as mentioned in the comments above to tweak/bypass your problem.
> 1 votes

# Answer
I've coded and uploaded an app specifically for this. It's called WiFi No Doze. It's pretty rough, but it seems to do the job.

https://play.google.com/store/apps/details?id=com.gingerdroids.apps.wifinodoze
> 0 votes

---
Tags: wi-fi, 6.0-marshmallow, nexus-5
---


title: Cannot mount /system rewritable

text:
# Question
Title: Cannot mount /system rewritable
I have rooted my phone and changed `/system/etc/hosts` file to block Facebook(just for test).

However, since I did it, I am not able to edit the `hosts` file again. As a result, I cannot visit Facebook from my phone! I've tried some hosts editors in Google Play but without a result. I've also tried to mount system rewriteable but it returns error ("Mount: Operation not permitted").

I've already rebooted the device, didn't help. I have no custom recovery installed. I've used Playstore apps that promised doing the remount, but `mount -o remount,rw system` has the same issue. The superuser app in place is the one from KingoRoot.

# Answer
> 0 votes
@David "I tried unrooting, but this cannot be done as it cannot access /system where KingoRoot apk is stored."

-Did you try to Unroot going on their "Superuser" app?

Superuser -\> settings -\> Remove Root.

That should do the job of uninstalling Superuser/Unrooting. It would still leave Kingo, but you can uninstall it from normal android settings -\> Apps panel.

If you lost the root but their Superuser app is still installed, i would open kingo and re-root, then "Remove Root" after :-p

If the above fails and i could not remove it, i believe a factory hard-reset from the stock recovery options should fix it - have you done it ? you said "reboot" i dont know if thats what you meant.

(back up your data first, make sure you remember your credentials).

I would do one, and If it still did not solve the problem i would flash the SAME stock firmware i was using, then move my data back/reinstall apps.

And yes, like people say on the comments here - and also from personal experience - these "one click root" apps have the advantage of being really easy to use (maybe not the ones in chinese language lol) and work GOOD for lots of different brands/models... the disadvantage is these "half-rooted" cases (devices with Android 5+ ?) when the SU binary is not fully functional and will not work right for many apps that need SU permitions.

I had many similar mounting issues and some others with yet another chinese 1click app called "360 super root". UNfortunately, it was the only one that worked for my device so far. Kingo, king, iroot, wmroot all failed. This "360root" (aka permroot) was the only one to work, but its SU was buggy like yours seem. Fortunately now i managed to install a good root via custom recovery... root now works 100% for the stuff i need.

There IS a way of replacing Kingo's Supersu by a different/better SU app without losing the root Kingo did. There is a paid app that does this trick that is called "Super-SU-me" and also a manual/free way to do it, but dont ask me how :-/

By the way, what is your device brand/model and android version ?

---
Tags: rooting, adb, root-access, system, hosts
---


title: How to restore my deleted songs?

text:
# Question
Title: How to restore my deleted songs?
I have cut all my songs from my pc and transferred them to my tab via USB cable. They were stored under a file named 'File Manager'. I saw that I didn't need to copy them to the tab's 'Music' folder (or I couldn't) because they were already in there.

Then I deleted a song from the file manager and it automatically got deleted from the music folder. Then I thought, how about adding the songs to a playlist? Maybe then I can clear my file manager,get more space to get other files in there(right?) and my songs will be saved too. But when I deleted most of my songs from the file manager,they got deleted from the playlist too.

I couldn't find any recycle bin in my tab. Some of them were left in the manager and I tried to delete them but now it shows that 'no permission to delete' and they aren't getting removed from there and the music folder.

Why did it happen before then? And how am I gonna restore my songs back? Please help me and correct me if I did any mistakes mentioned above.

# Answer
> 1 votes
There are multiple misconceptions in your "workflow", so let me try to explain them one by one:

* You've copied the ***files*** to your device and placed them into a ***directory***.
* Once that was done, Android's *MediaScanner* found them and added them to its "library"
* I've never heard they are added to the Music *folder*, so that might be something specific here. They were obviously not *duplicated* (that wouldn't make sense), so what you see as "Music folder" (you didn't specify where you checked that) is most likely rather a "***virtual*** folder" / "Library" / "***View***".
* As the second place was not a copy but rather a pointer, that pointer disappeared as well as soon as you deleted the file.
* A "playlist" can be compared to a text-file listing up available music files, it doesn't contain the files themselves. So as you removed the files, their "pointers" were removed here as well.

So much for what has happened. Next point is that Android is not Windows (but rather based on Linux). By default, there is no "recycle bin" (though there are apps available to emulate that). Gone is gone.

For recovery (and recycle bin) you might wish to take a look at:

I recommend following these links bottom-up ;)

# Answer
> 0 votes
Since Android tab also uses FAT32 or NTFS file system, I think the deleted one just like the file on PC. It is still there.
Therefore, pull out the SD card, scan it with some recovery tools. Things should be done as you lost a file on PC.

---
Tags: file-management
---


# Question
Title: Cant enter recovery mode Galaxy Tab S 8.4
I have an issue on my device (Galaxy Tab S 8.4). I´m either stuck on boot loop (flashed with TWRP that worked fine for months until recently after a restart) or I can enter download mode and get stuck at the "Download... Do not turn off target!"-screen. Cant ever enter recovery no matter how I try... If I let the battery die it boots up into the boot loop as soon as I plug in the power chord. Is my device bricked or whats going on?

# Answer
> 1 votes
I had the same exact problem. I flashed a Marshmallow ROM from KitKat, not realizing I had to update the bootloader to Lollipop. I got stuck and couldn't get past the boot screen and when I used pwr+vol dwn+home I got the Download...Do not turn off target msg. What worked for me was to plug in my Tab to my pc, start up Odin 3.09 (not sure if the version matters, I didn't try 3.12) and I was able to flash the Lollipop boot loader. The Tab restarted and I was good to go. Hope that helps

# Answer
> 0 votes
Not enough data in question - and not enough rep to ask with comment, do you try to enter recovery by holding `volume up + home + power`? (You mentioned just letting battery die, which is not going to help any good). You mentioned You can enter download (`vol down + home + power`) so I'm guessing you know about recovery too.

If You cannot enter recovery even holding proper combination You need to flash just recovery.img, preferably checked and working with your model.

# Answer
> 0 votes
I have exactly the same problem Jakob has described. The Tab S is stuck in in a boot loop. The power off button has no affect. Vol Up + Home + Power has no affect, Vol Down + Home+ Power reboots straight into the boot loop. The hope was that letting the battery drain to power off, then charge to try Vol Up + Home + Power ( as this should be done when the device is already power off). The action of charging sends the device back into the TWRP boot loop. The Tab S had been working great with CM12.1 for many months. But after a factory reset, which I did in order to be able to gift this to someone else, has resulted in this situation.

---
Tags: samsung-galaxy-s
---


title: Android shuts down when unplugged

text:
# Question
Title: Android shuts down when unplugged
I have an HTC One m8. It's running android 6.0.

If I attempt to boot up the phone it instantly shuts down when reaching the Google Logo. If I plug it in to a power source (AC/usb), it lets me boot, but once I unplug the power source it instantly shuts down.

The battery is indicated to be close to 100%.

This really does sound like a hardware issue with the battery, **but I can still enter the bios** (Power + Vol Down) and leave it open for a few hours without it dying (probably longer, didn't test it for longer). It only shuts down when I attempt to either boot or enter recovery.

I've already re-flashed the OS to stock with:

```
fastboot oem rebootRUU
fastboot flash zip rom.zip
fastboot reboot

```

So my question is: **is this a hardware issue or software issue**?

Is it because entering the bios requires such a minimal amount of energy, my device will allow me to enter it even when it's on extremely low battery? Or is it because the software is somehow incorrectly detecting the battery level and shutting down?

# Answer
> 1 votes
It seems like your battery is broken or something. I suggest bringing it back to HTC and have them fix it for you. Please **don't** do it(replacing battery/open then phone case) by yourself as it will **void your phone warranty**.

*PS*: HTC will have their way to replace the battery for you, but I am not sure whether it will cost you some money or not.

Hope it helps =)

# Answer
> 0 votes
Perhaps hardware issue. Android has a battery checker that shuts down your phone when out of energy. It does not always shut down right when your battery level reaches 0%; sometimes it shuts down when battery level is 5%, sometimes it doesn't even shut down after 1 hour of excessive use when battery level is 1%. So it is checking the battery not by battery level, but by something else, perhaps voltage.

Anyways, you should contact HTC for maintainence.

---
Tags: battery
---


# Question
Title: Using old Android phones as multi channel dash cam
Now a days the Android phones are having quite a good computing power and good optics. I have heard and used my daily driver Android phone as my dash cam.

I have also heard about dedicated dual channel dash cams which can record from two cameras (ideally one placed to record what is happening at car's front and another on rear and combine those to into one single video).

With few spare Android phones lying around I thought of building myself a dual channel dash cam purely using old Android phones.

The challenges I have:

1. The separate feeds from both phones should be merged to show side by side.
2. Can the phones be kept on and recording 24x7 even when the car is parked?
    * Advantages:
        + It also acts as a CCTV for my garage area recording all activities.
        + Android phones take considerable time to start up. And in this mode the recording will be available continuously. Also the dash cam app need not be auto started during boot.
    * Disadvantages:
        + Not sure about its impact on battery life.
        + Not sure about its impact on phone's and camera's life.
3. Overlaying the latitude, longitude, speed, date and time information on video.
4. Retain videos for later use on tap of the screen. Usually these kind of dash cam apps will run in loop erasing the previously recorded video so that it will not run out space. On tapping the screen during some moments to preserve it copies the current recording block as a new file so that it is available for future use. In front only dash cam scenario this works well. How can i do this in front and back dash cam so that the rear dash cam also preserves on tapping the front cam?

**Question:** Is there any solution that addresses this need? If not any partial solutions to the challenges?

I know this sounds like a good question for a project on Instructables, but this involves considerable Android software and power user's experience. In case if this sounds a bit of out of topic, please let me know in comments.

# Answer
Most of your requirements can be met by either a custom software or some apps on the Play Store.

May be not merging video. You will need to upload chunks of video periodically, be it hourly, daily or weekly, to some central location that knows about all devices. (Some server in the cloud? your home PC? May be you can set the save location of the apps to a OneDrive/Google Drive folder)

I don't think there's any harm to the camera on devices on atleast most devices. I've seen people use droids for home surveillance for a while.

Although you'll have to make sure the device isn't placed in direct sunlight and not exposed to extreme summer heat. Most devices can shut down automatically when the heat is more than it can handle, though it is mostly to prevent heat damage from an overloaded/misbehaving CPU, not the heat from the environment.

**Battery Life**

Main issue would be the battery life. Even when simply recording by using a charger from the car (usually 1A. May be 2.4A if you're really lucky to get one of those charger adapters.)

Your camera won't last more than a hour or two under it's own power. (Even the latest devices can only last 5-6 hours with screen on) You can may be attach a battery pack which uses solar panels to charge.

I don't know the effect on the battery when its connected to a constant power supply. Many new units can handle a good amount of abuse, but older ones may have issues. Although this isn't an issue for you as long as you have a way to constantly power the device.

Things may become a bit simpler if you only need to record when the car is running. This will reduce the battery issues significantly.

Due to the openness of the question, you may have better luck posting this on a discussion group/forum or something like Reddit.
> 2 votes

---
Tags: camera
---


# Question
Title: App updation- Google Play Store wants to update an older version of app when latest version is already installed?
I manually update apps and on selective basis. Recently, I noticed that apps that have been manually updated continue to be shown in *awaiting updates* list, **despite** manually updating them

* Example of Macrodroid. On the left is the Play Store showing an *earlier version* and on the right is *app version* , which is much later

* Few other apps show the same version - on the device and awaiting updating on play store.
* Some apps get removed from Play Store once updated.

This *inconsistent* behaviour foxes me

**Why does this happen and how to fix it?**

**Details:** Android 6.0.1 on Moto X Play- Play Store `6.8.24. F- all 3085398`

# Answer
> 3 votes
Isn't v3.14 newer than v3.13? It's quite common to have a {x}.{y}.{z} versioning system where a bug fix increments {z} and a new feature increments {y} or maybe {x}.

Also, the developer doesn't actually have to change the 'Version' number that shows in the Play Store, they only need to increment a build version (which is not visible anywhere in the Play Store) so the version that is shown may not change. This allows for quick fixes to be pushed out without incrementing the actual version number.

Although the information isn't visible in the Play Store it can be seen in the `AndroidManifest.xml` within the apk. I use Solid Explorer which can display this information without needing to extract the apk manually. In the screenshot below you can see the 'Version code' which is the build version that must be increased when uploading a new version of an apk to the Play Store.

---
Tags: google-play-store, updates
---


# Question
Title: How to block other apps to Open .Only My app will be open when android is strated
1) When My app is running disable buttons like home,minimize.

2) only admin can Unlock this feature.

# Answer
You may be looking for LockTask Mode. For more info, see corporate-owned, single-use setup

https://developer.android.com/work/cosu.html
> 1 votes

---
Tags: applications, development
---


# Question
Title: How to locate a phone without user knowing
I have a daughter that goes to a secondary school and has a S5 phone. I want to be able to locate her without her knowing, as in receiving any pop ups or notifications. Can you help me please?

# Answer
> 3 votes
I think the best option is to tell her you are going to track her. She will find out, unless you deploy some borderline illegal methods.

Life360 is a few app. It will notify you where she is. No pop ups on her phone.

Don't be a prick and spy on your kid. Just be honest if you want you kid to respect you.

# Answer
> 0 votes
The best thing you can do is get her Google password whichever account is active for that device and use Google device manger for the same. But she will be aware because whenever we locate device popup will be shown on her phone, well we can disable notifications for Google Play Services and she won't get the popup. This way you can get her location with existing methods.

Cons using this method :

1. GPS and Internet should remain active
2. Getting her password is hassle

# Answer
> 0 votes
While I'm completely agree with the rest of the answers, You CAN use carbonite app which can locate the device without showing any UI.

There are multiple apps on play store which can do the same. Or if you're capable, you can even install your own app.

Having said that, as @Rthomas529 noted, this will ruin any trust your daughter has on you irreversibly. And frankly, she is entitled to her privacy. Most apps on play store for this type of function are designed for theft prevention rather than invading privacy. If this is noted by any authorities, you may be looking at legal prosecution depending on the law where you live and your daughter's age.

You can also simply ask her permission and install Google Device Manager (which does pop a notification when remotely located).

**I VERY STRONGLY suggest you reconsider your options.**

# Answer
> -3 votes
When she Gets Home, Go on her Phone and Go to settings, about Phone, More info and write down her Phones *IP ADRESS*

Then when she is out, go to IP Tracker, type her IP address in and lookup where she is on the map..

Hope it helps!

---
Tags: settings, geolocation, parental-control
---


# Question
Title: Force Sony Music app to refresh album art from MP3 files
I have a Sony M4 Aqua, running Android version 5.0.

I copied some MP3 files from my computer to the SD card in the phone. Then, some weeks later, on my computer, I updated the album art in the ID3 tag of some of the MP3s, reconnected the phone and overwrote the MP3 files on the SD card. However, the Music app on the phone (which came preinstalled and I believe is a Sony app) is still showing the old album art. Presumably the app has its own database of album art, which needs to be refreshed from the MP3 files' ID3 tags. How can I force it to do this?

# Answer
> 1 votes
I had the same problem. I solved it by playing a track from the album that showed the 'old' art, went into update music info and deleted the album art. All of a sudden it displayed the 'new' art. This seems to clean up the image cache for that album. Whether this clears the whole cache, I am not sure, but now all albums show updated art.

# Answer
> 1 votes
You could just go into Settings, Apps, Music, Storage and tap clear all data.

---
Tags: 5.0-lollipop, sony-xperia, music-player, album-art
---


# Question
Title: Can I Change My Device Info For Reach Another Version of an App On Play Store?
For example, I have a snapdragon phone. But I want to reach an app's intel version too. Because tablet of my litte cousin can not reach to WiFi. And he want to download a free game. When I download and give it to my cousin, game won't work cause different proccessor(intel thing). So I want to get this app's intel version. How can I do this?

I think its possible with edit my device info but I dont know which info and to what.

Edit: And if I edit my build prop's ro.product.cpu.api, will my device get hard brick?

# Answer
As I've already pointed out in my comments on the question, modifying your device's `build.prop` to appear as a different architecture is a very bad idea. It won't "hard-brick" your device, but certainly will have side-effects you won't like (e.g. the device might refuse to boot up at all – not sure what *exactly* will happen, as I was not yet bold enough to try; if you really want to know that, either try (not recommended if you don't know a way out then) or ask that as a separate question).

---

Concerning your real goal: As pointed out in my answer here, you can use Raccoon on your computer for that.

While the other question focuses on apps you've bought, *Raccoon* of course also works for free apps. For different device architectures, you will need to create different profiles: DummyDroid can create the required "GSF IDs for mock up devices" if you don't know the one of yours, based on the given device's `build.prop`. If that doesn't work out, or you want to use the "real ID", please see my answer here on how to obtain it from your device (or from that of your cousin).
> 0 votes

---
Tags: google-play-store
---


title: Flash Android Nougat On Rooted S7

text:
# Question
Title: Flash Android Nougat On Rooted S7
I am wanting to flash nouget onto my device, and at the time this has no documentation about doing so. What should I do to make sure I don't screw my phone and root status up? (I am not near an expert, obviously, but I like learning :P)

# Answer
ROMs are not universal - you can't just flash one from another device and call it a day.

No one has ported N for S7 yet, and due to the locked-down bootloader on the Snapdragon version / development difficulty for the Exynos version, there likely won't be any until the official one drops.
> 1 votes

---
Tags: rom-flashing, samsung-galaxy-s7, 7.0-nougat
---


title: Password protected video

text:
# Question
Title: Password protected video
I want to protect my instructional video with a password. There is a use case.

When a user wants to play an encrypted file (*update: file located on user's android device*), the encrypted file will pop up a dialog box to request the user to enter a Playback Password. This dialog box will display the machine ID of the user's android device. The user can send his/her own machine ID to you, and you can create a Playback Password based on the user's machine ID. After that the user can use this Playback Password to play your file on his/her device. Since the Playback Password is created based on the user's machine ID, the user will not be able to share the Playback Password with other users. Since the Playback Password is bond to the user's device, the user will not be able to re-distribute your files.

Is there some software that helps me to obtain this purpose?

---

I seem to have secured the streaming video from the web site well enough, but a lot of the members want video files on their devices because they don't want to have to deal with wi-fi to play the video while they conduct the class. (*update: I'm not good in English. I meant file need to be located on user's android device. No streaming*)

---

There is no doubt someone can just shoot the video from the screen, but I want to slow down the proliferation of my video.

# Answer
What about an app like Android Video Protector? It is advertised as being exactly what you're looking for:

> **How to protect video files on Android Platform?**
>
> Android Video Protector Solution contains two software, there are Android Video Protector and PPVM Video Player. Android Video Protector is a video encryption software running on Microsoft Windows Operating System, it uses a password to encrypt the video you hope to protect, and supports 4 types encryption modes:
>
> 1. Device Binding, One Device, One Password
> 2. Non Device Binding, All Device, One Device ID, One Password
> 3. Non Device Binding, All Device, One Password
> 4. Encrypt video only
>
> **How to playback the encryption video on Android Platform?**
>
> Because the video is encrypted, the general video player can't playback this video, PPVM Video Player is the player running on Android Platform and supports playback the encryption video. it firstly check the playback password, which can be generate using Android Video Protector, after complete the password authentication, it will playback the encryption video.

I have no idea if these programs are reputable or if they work. The Android app is a direct download from their website (not the Google Play store) - proceed with caution at your own risk.
> 2 votes

# Answer
Encrypting a video, this sounds fascinating. I would like to share an approach that I think can be used here:

1. Get the byte-array of the video in your test project.
2. Copy this(byte-array) into your target-project as a variable
3. Now your target-project has the video, in form of a byte-array.
4. To add password, convert the password-string to a byte array.
5. Now to save the password in the video, add step-4 byte array to the top of step-3 byte array.
6. Now your video is encrypted! Any other player trying to play this file will throw an error. However we are not concerned with the file thing. Actually we have no video file, we just have a static variable that was created in step-3 and modified in step-5
7. To play this byte-array variable, first we will need to extract the password from it.
8. We always use a buffer to read such type of files. A buffer is basically a byte array of any required size. Let we want to choose a buffer\[128\]. This makes our step-5 varible look like a set of 128-sized byte arrays, like:\[0100101011010....\],\[01010100010110..\],\[001010101010110....\].....
9. So the first buffer created while reading step-5 variable. Contains the password!. but where?.its some thing like :\[XXXXXX\]+\[010101011.....128\] where \[XXXXXX\] is the password we set in step-5 and the other part is actually the part of the video. We now have to filter our password from this buffer, not an easy task!
10. So we will go for another approach here! We will make our password (Step-5) take the entire size of the buffer(here 128). Which means, the first 128 positions of the step 5 variable will entirely be used to recognize the password! So now the first buffer will look like:\[XXXXXXXXXXXXX....XXX\] (only password)
11. To do this, the step-5 will convert the password string into byte array and if it is less than buffer size(128 here), the it will append dummy values to it so that its size becomes equal to 128.
12. In step-11 we have created an encrypted password!
13. So finally, when the video is to be played, we will get step-5 variable that was modified as per step-11.
14. Ask for the user password.
15. Convert this password to a byte-arr and append values to it to make it 128 in size(similar to what we did in step 11)
16. Now we will compare the first buffer-sized(128) part of step-13 variable, compare it to step-15 input-Password-byte array.
17. If they do not match, show a dialog box with the appropriate message.
18. Or if it matches, remove the first buffer sized part. Rest contains the video that is to be played.

Wow! Cheers!
> 1 votes

# Answer
You can create an encrypted zip file of that video and set it to automatically unzip and play the video upon entering the correct password. Zip4j is an open-source Java library that supports encrypting/decrypting zip files, since default Android Java libraries don't have it.

This is more of a workaround because it will not directly encrypt the video, but create an encrypted folder from which the video may be extracted.
> 0 votes

# Answer
Password protected videos can be recorded on Android with Secure Video Recorder
> 0 votes

---
Tags: video, encryption, drm, password-protection
---


# Question
Title: How do I play videos in a loop in the Samsung stock player?
I want to play a video repeatedly in the Samsung stock video player. Is there a way?

Samsung Galaxy S3 OS: 4.1.1

# Answer
The stock video player on the S3 doesn't have this functionality. You can achieve it by installing another video app such as VLC for Android.
> 2 votes

# Answer
You should be able to do this by going to `Settings` =\> `Repeat` while the video is playing and enable it. (source)
> 0 votes

# Answer
Try IVideo Player , compatible for Android 3.0+, looping, child lock, brightness control, plays mov, flv, rmvb, mpg, mpeg and etc.
> 0 votes

---
Tags: video
---


# Question
Title: What is the lightest custom Android ROM (Android 4.0 or higher)?
I need a minimalistic custom Android ROM which has a lot of RAM free for use because the app that I need to use needs a lot of RAM. I want to only use my phone for one thing and only have one application installed on it. I will install the app after I install Android on my phone. The app is using GPS and needs Android 4.0 or higher. The name of the app is Map My Tracks. What is a custom Android ROM that is the lightest of all? My phone is HTC Wildfire S.

# Answer
> 1 votes
There is no definite answer for this but here is my point of view -

**The Simple Solution - SlimRom:**
SlimRoms \- On-Click away,free, HTC compatible ROM.
With SlimRom you can configure how much of google services you wish to use which have significant effect on device performance.

**The Hard Solution - Create One:**
You can create your custom Android OS and build clean version of it (without any google app like `chrome` or `youtube`).
If you really want to get wild you can delete all unnecessary apps under `platform/packages/apps` (e.g calculator,camera).
If you choose this option bear in mind that HTC specific features won't work.

**More data:**
If you're still not sure and need more data about specific features that you'll need in your app check the Custom ROM Comparison Database.

---
Tags: custom-roms, htc-wildfire-s
---


# Question
Title: Can I make a flashable ZIP containing one or more APKs
Is it possible to make a ZIP that can be flashed onto a device to add a bundle of applications (`.apk` files) to the `/system/app` directory such that it can be flashed after the OS (e.g. CyanogenMod) in a similar way to other bundles such as OpenGApps ?

I've seen things like the ZipMe app but I'd really like to do this on Linux where I have the desired apk files in a directory. I'd like to do this by hand if possible to that I can understand the ZIP's contents.

# Answer
This simplified example is inspired by this xda-developers thread.

It is handy to use `adb` but you don't need to.

## Get a Java signing tool and keys

Your packaged ZIP needs to be signed. If you have a Java signing tool, great. If not, then you can consult the Google sources for signapk or download a ready-made `signapk.jar` from here, or here.

The latter also contains sample signing keys that you can use but you can make your own with OpenSSL:

```
$ openssl genrsa -out key.pem 1024
$ openssl req -new -key key.pem -out request.pem
$ openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
$ openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt

```

The following discussion assumes that you have a `signapk` directory containing `signapk.jar`, private key `key.pk8` and certificate `certificate.pem`(which contains the corresponding public key).

### Prepare the ZIP contents

Create a working directory (the name is irrelevant):

```
$ mkdir apkzip
$ cd apkzip

```

Create the required structure

```
$ mkdir -p META-INF/com/google/android system/app

```

The next step is to create a file called `updater-script` that contains a script written in something called edify. A simple script that serves the requirement is shown below:

```
# META-INF/com/google/android/updater-script
mount("MTD", "system", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system");
package_extract_dir("system", "/system");
unmount("/system");

```

The third parameter to `mount` is the block device path for the `system` partition. You can (optionally) verify this with:

```
$ adb shell grep system /proc/mounts
/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 ...

```

You can embellish the `updater-script` with comments and progress bars, as illistrated by may examples on the web but it isn't necessary.

You also need to provide the interpreter for the script which is a file called `update-binary` that you can obtain from whatever rom you're using, such as CyanogenMod or ResurrectionRemix. Find it in the ROM's Zip file at the location `META-INF/com/google/android/update-binary` and copy it into the working directory tree at a similar location and alongside the `updater-script` created in the previous step.

Finally copy in the `.apk` files that you want in your ZIP. They need to go in individual directories like `system/app/<app-name>/<apk-file>` where `<appName>` is a directory named after the app (I don't think the name is relevant) and `<apk-file>` is the `.apk` file. There should be one `.apk` file per directory.

Your file hierarchy should now look similar to this:

```
./META-INF/com/google/android/updater-script
./META-INF/com/google/android/update-binary
./system/app/SomeApp/com.some.app.apk
./system/app/SomeOtherApp/com.some.other.app.apk

```

### Create and sign the ZIP

Now create the signed ZIP (the `-r` recurses subdirectories):

```
$ zip -r /tmp/apps.zip *
$ cd ../signapk
$ java -jar signapk.jar certificate.pem key.pk8 /tmp/apps.zip apps.zip

```

### Apply the ZIP to your device

Push the signed ZIP (the `apps.zip` created in the current (`signapk`) directory) to the device, choose a location that your recovery can see:

```
$ adb push apps.zip /mnt/media_rw/sdcard1/

```

(You don't have to use `adb` \- you can use another method such as placing the SD card in your computer, etc).

Now reboot to recovery and flash or, in the case of a locked bootloader, use FlashFire or whatever method is prefferred for your device.

### Other notes

You can read more about Edify:

It may be possible to replace `update-binary` with a shell script. An example of this can be seen in the OpenGApps ZIP files but I have not tried this.

The above works provided that the apps have no native libraries in them. If they do, then they must be be manually extracted from the `.apk` package (which is itself a ZIP file) `/lib` directory and placed under `/system/vendor/lib` in addition to placing the package in `/system/app/...`.

As commented by @DeathMaskSalesman, signing is not required by TWRP, CWM or FlashFire so you can skip the signing steps if you prefer.

I have produced a utility that works on Linux or Android. Get *apkzip* here.
> 7 votes

---
Tags: apk, zip
---


# Question
Title: Can't remount /system as rw because "read only filesystem" (SELinux problem)
I tried to replace Kingroot with SuperSU since in the newer versions of Kingroot you can't block all of its connections. I had some problems, SuperSU always failed to install the newer binaries, Kingroot didn't fully uninstall and sometimes I lost root.

After being unable to install SuperSU, since it always failed to install the binaries not even as a system app, I gave up and decided to keep using an old version of Kingroot (4.85). But since then, I can't write on `/system`. I tried to remount `/system` as `rw` but it always get `Mount: Read only file system`.

I tried `mount -o rw,remount /system`, `adb remount` and also through Root Explorer, Total Commander, and with `mount system RO/RW`, but none of them worked.

I think it is because SELinux mode somehow changed to enforcing while I was trying to install SuperSU. I tried with SELinuxModeChanger to change it back to permissive, but I still cant remount. I can't even uninstall Kingroot either.

What can I do? I'm using a rooted 4.4.4 Huawei phone with Kingroot, it has root but it can't write to `/system`.

# Answer
> 1 votes
I fixed it by unlocking the bootloader since doing a factory reset did not solve the problem of the read-only filesystem.

---
Tags: root-access, 4.4-kitkat, huawei, selinux, supersu
---


# Question
Title: is nexus 6 still a good purchase? is nexus 6 at its end of life?
I wonder how much time will nexus 6 get updates. is it a good purchase? will there be an update for android 7? is it an end-of-life product?

thank you

lowley

# Answer
> 1 votes
Quoted from the link in @Firelord 's comment above:

> Nexus devices get Android version updates for at least 2 years from when the device became available on the Google Store.

Be it the release date or the Store date, N6 still hasn't reached 2 years yet, so rest assured it will receive N, though not with priority, since Google takes care of their latest devices first.

Also, although Google makes the promise stating 2 years, that usually expands longer. Nexus 4 received 5.1 and Nexus 5 received 6.0 officially, making them ~3 years, and both keep getting security patches up till today. Nexus 7 (2013) got N Developer Preview which also counts to ~3 years.

Finally, there's always custom ROMs to get you covered. Not guaranteed to work 100% perfect as Google's stock, but as time goes and bugs get squashed, they approach 90%~99% if you ask me.

# Answer
> 0 votes
According to the image site for nexus it doesnt have 7.0 id say the N6 is done. but if you bought it and put cyanogenmod on it you'd get 7.0 and probably 8.0 , its still a good phone but after 2 years companys just stop updating

---
Tags: nexus-6, 7.0-nougat
---


title: OEM driver not available for Galaxy S5?

text:
# Question
Title: OEM driver not available for Galaxy S5?
I followed this document and it gave me this link to Samsung's website to download the OEM driver for my Samsung Galaxy S5.

However, I couldn't find its model in the list. My phone's model is SM-G900F as shown here:

The list contains many similar models such as SM-G900A but not exactly my model.

Where can I find the OEM USB drivers for my phone? My goal is to debug using a physical device in Android Studio.

# Answer
Drivers are usually *not* device-specific - manufacturers package drivers for most if not all their devices in one package for installation. In Samsung's case, it's called **Samsung USB Drivers for Mobile Phones**. It's up to you to Google and find the latest version, although someone has some hosted at OdinDrivers (external site - safety not guaranteed).
> 0 votes

---
Tags: usb-debugging, usb-drivers, developer-options
---


# Question
Title: how to work around "Your device does not qualify for bootloader unlocking
I've followed the guides but stupid Motorola is telling me that I can't unlock the bootloader so I'm blocked with

```
sudo ./fastboot flash recovery twrp-3.0.2-0-surnia.img
(bootloader) has-slot:recovery: not found
target reported max download size of 268435456 bytes
sending 'recovery' (16152 KB)...
OKAY [  0.509s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.921s

```

I'm working from an Ubuntu box.

# Answer
> 2 votes
You need to get the "cid" of the device by doing

```
./adb reboot bootloader
sudo ./fastboot getvar all

```

In my case it gives

```
(bootloader) cid: 0x0001

```

and as you can see at the official website, Lenovo/Motorola says "Your device is NOT eligible for bootloader unlock". You *buy* their phone and they still control it. Wait, what?

---
Tags: recovery-mode, bootloader, bootloader-lock
---


title: What is Android 3DTourViewer?

text:
# Question
Title: What is Android 3DTourViewer?
I'm removing or disabling all non-necessary apps since I had a malware scare this morning. I'm using a Note 3 with Android Lollipop.

In the Application Manager "All" tab I see 3DTourViewer. Can I disable this app without ill effect?

# Answer
It is Samsung bloatware not malware nor part of regular Android

It is safe to be disabled or removed, if your device is rooted, as per this reddit post and this XDA thread
> 1 votes

---
Tags: applications
---


# Question
Title: How do I make an expandable skype popup?
I was switching between skype, as a person replied, and twitch on my phone and wasn't paying particularly close attention to the switch at one point and magically there was a little skype icon on my twitch app I could move around and expand into the skype convo I was going to and then collapse again without ever causing the stream I was watching to go away.

Problem is I'm not entirely sure what I did to do that and I would really like to be able to have that open anytime I'm doing something in particular on my phone and chatting in skype at the same time.

# Answer
> 0 votes
Found out that with some apps, Skype included, if you swipe down and to the left in the app from the corner it'll make the app into a little popup that just sits on your phone till you do something with it.

---
Tags: skype
---


# Question
Title: How do I install DropBear SSH on Android?
I would like to install DropBear SSH on my 64 bit Android 5.1 device, but it seems that all the installation tutorials and how-tos have disappeared or contain links to broken files/downloads.

Could someone please explain the proper way to accomplish this?

FURTHER DETAILS:

* This question comes from this other: an attempt to install some SSH Server on a modern (September 2015 at least) Android device that has (nearly) failed with many tested apps. Command line installation of Dropbear is a different approach to the problem.

# Answer
First as a side-note for other readers: We're not talking about "an app" here (those have already been tried and didn't work on that architecture), but about a command-line binary. *DropBear* sometimes is part of Busybox, or it comes as separate binary.

---

Now for the installation part. Binaries you install yourself best go to `/system/xbin`, which is in the `$PATH` but usually "initially empty" (Android's own stuff is in `/system/bin` and `/system/sbin`), so we run a very low risk of "collisions". So either `adb shell` or terminal to your device and make sure you're root. I further assume you've already transferred the `dropbear`/`busybox` binary to your SD card.

```
mount -o remount,rw /system        # make sure we can write to system
cp /sdcard/busybox /system/xbin    # copy the binaries to /system/xbin
cp /sdcard/dropbear /system/xbin
cd /system/xbin                    # switch to our target directory
chmod 755 busybox dropbear         # make sure we've set the correct permissions
busybox --install /system/xbin     # advice busybox to create all its symlinks here

```

Installation part done (skip the `dropbear` parts here if your `dropbear` comes with `busybox` – and vice versa, skip the `busybox` part if not needed.

Now, we need to make `dropbear` fly. I've never tried this myself, so I refer to an external script at Github for that. In short (and in case that link dies), again assuming the required files are already copied to your SD card:

```
# Creating a home-dir for DropBear
mkdir /data/dropbear
chmod 755 /data/dropbear
mkdir /data/dropbear/.ssh
chmod 700 /data/dropbear/.ssh
# Copy over our files
mv /sdcard/authorized_keys /data/dropbear/.ssh/
chown root: /data/dropbear/.ssh/authorized_keys
chmod 600 /data/dropbear/.ssh/authorized_keys
# Generate a hostkey, so we can use DropBear
dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key
dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key

```

An additional part if you want *DropBear* to auto-start at boot:

```
cat << EOF >> /etc/init.local.rc

# start Dropbear (ssh server) service on boot
service sshd /system/xbin/dropbear -s
   user  root
   group root
   oneshot

EOF

```

Note that this assumes your device supports `init.d` scripts. First check for the availability of that file to make sure.

Finally, don't forget to make `/system` read-only again. Either reboot at this point (so you also can check that *DropBear* starts as intended), or at least execute

```
mount -o remount,ro /system

```

for now, postponing the reboot. To start the service manually, it should be possible executing that block via some shell script (so you could e.g. have a task for starting and another one for stopping the daemon, and even make shortcuts to those tasks on your homescreen for manual control). Again, I have not tested this part, so it's "pure theory".

Good luck with DropBear and BusyBox!
> 6 votes

# Answer
Install Termux (Google Play, *F-Droid*, *Fossdroid*)

```
apt update
apt ugpgrade
apt install dropbear

```

I personally chose OpenSSH toover Dropbear

```
apt install openssh

```

To run the server

```
sshd

```

Unless your device is rooted you won't be able to run `sshd` as root. Note that running as non-root implies that ports below 1024 cannot be bound to. In Termux any packages have been configured to have compatible default values - the ftpd, httpd, and sshd servers default to 8021, 8080 and 8022, respectively.

If you want to run `sshd` as root try this script: https://gist.github.com/cycojesus/57409ffed9066ce7f4d4

At that point you will be able to bind `sshd` to port 22.
> 5 votes

---
Tags: ssh
---


# Question
Title: Probably blowed up batery or smartphone with multimeter
First, I turned off my LG-D280N and removed battery. Set the multimeter into 20VDC (next is 2VDC) and correctly checked battery pins and checked the voltage.

Next, I checked pins on case, set "diode test mode" and touched two case diode pins (NOT touched battery!).

Then on phone I did the same, but I was scared and after second or less stopped touching this with multimeter cables. When I turned on, I saw on notification bar a symbol like this ( this is not the exact symbol but looks similar with this difference - yellow was transparent, red was white and black was also white)

**Did I damaged my battery or the phone?**

# Answer
> .... display the voltage drop measured across the diode under test, as a small current is passed through it.

* Diodes in battery circuits are used to prevent accidental reverse polarity of battery
* I suspect in your case, you had reversed the polarity while measuring it causing the Diode to blow up ( and saved the internal circuitry).
* This has caused the *system alert* ( see lg-icons, symbol looks very similar to what you have described in words ) to be flashed as the circuitry is damaged and battery / mains cannot be used to power the device

I am not an expert in these matters but have tinkered with circuits way back

In any case, since you see the system alert and probably can't use the phone, only option is to service center for repair and if possible oversee the repair to see the actual damage. Remember, mobile battery circuits have tons of safety features built in so it shouldn't be a major damage. If it is only a Diode, normally it isn't a challenge to replace it

All the best
> 0 votes

---
Tags: battery, lg
---


# Question
Title: Question on How to see my mobile's contact numbers in PC
I want to see my all contact numbers in my mobile on my PC.

# Answer
> 1 votes
Your question is lacking multiple details – e.g. what device you're using, what Android version it is running, whether or not you use Google Services to backup/synchronize your data. Let me sum up some possibilities for a "generic answer":

* If your contacts are synchronized with Google Services: Take your browser to Google Contacts (or to Gmail and switch to Contacts from there), so your contacts are displayed in your web browser. You even can edit them there.
* Alternatively, open your *Contacts* app on your Android device, use *Menu › Import/Export › Export to SD card* to have all your contacts exported into a file using the VCard format. Transfer that file to your PC, and you can open it in almost all apps dealing with contacts (e.g. Outlook on Windows, or Evolution on Linux, or Thunderbird on any OS).
* Alternatively, if your PC is running Windows, you can install MyPhoneExplorer to it (and the MyPhoneExplorer Client on your Android device). This not only allows you to see your contacts, but also to synchronize them (and your calendars) with your Windows PC, and much more.
* Alternatively, use some remote management app which can be accessed via Web browser.

---
Tags: contacts
---


# Question
Title: Will factory-reset delete custom downloaded app's folders?
I need to know something. For example an app like Telegram that is a custom downloaded app uses two ways of keeping the data,

1. in the cache folder and since it is stored in /data
    * it will be removed
2. internal storage\>Telegram\>Telegram Images/audio/...
    * will this folders be deleted too?

btw I'm using an Android Tablet, I don't know if it makes any difference.

# Answer
Yes it would delete.

Although if you have a Google account signed in to the device, and the app is written in a way, the app data may be backed up to your Google Drive and can be restored the next time it is installed (given this feature isn't turned off in settings.)

*some older devices/android versions may give you the option not to clear internal storage.*
> 1 votes

---
Tags: factory-reset, tablet
---


title: Android Studio doesn't see device

text:
# Question
Title: Android Studio doesn't see device
I know that this question was asked for several times, but I tried almost every solution that was suggested and Android Studio still doesn't see my device.
**My configuiration:**

* Windows 7 Professional 64-bit
* ASUS ZenFone Go ZC451TG. Andrdoid ver. 5.1

**What I have already tried:**

1. check usb3 or usb2. Lollipop doesn't work with usb3
2. check the orginal cabel
3. try reboot Windows, ASUS
4. try drivers from Google, ASUS
5. Install drivers from ASUS, only 2014 works on my device. Last Update from 2015 doesnt' work because of 64-bit system.
6. Turn on developer's mode on device
7. try MTP and PTP modes
8. Try PC Link standard utility form ASUS. It doesn't work properly on my PC

On this screen you can see how Windows detected my phone.
Is it right? I worry that Winodws see my ASUS as memory device not AVD.
Can you suggest any ideas how to fix it?
Thanks in advance.

# Answer
> 1 votes
Don't have enough reputation to comment but are you certain you've installed the USB driver? If not, start at: https://developer.android.com/studio/run/win-usb.html

Then go to this link b/c you may need an OEM driver: https://developer.android.com/studio/run/oem-usb.html#InstallingDriver

Your above point 8. Try PC Link... doesn't work properly on my PC may be the place to start. Make sure you can connect, transfer files, etc. before moving on the the Android Studio drivers though. I use Motorola phones & always had to make sure their connection worked first.

# Answer
> 0 votes
The problem was solved. After detecting my phone as videoadapter not as a storage **error:code 10** appeared, but then I switch to PTP mode on my ASUS and finally Android Studio saw my device

---
Tags: 5.0-lollipop, usb-debugging, usb-drivers
---


# Question
Title: Verifying device integrity. Galaxy Tab S2 9.7"
I wanted to root my Galaxy Tab S2 9.7" LTE (SM-T815Y) and I have spent the better part of my night doing the following. (I have never rooted anything before)

* Got a img of autoroot from *some site* and flashed it via ODIN.
* ODIN application showed success, but the tablet refused to boot after that with red text at the top of the screen at boot logo `RECOVERY NOT SEANDROID ENFORCING`
* Download mode shows KNOX flag has been set to 1 and the warranty is void.
* After a few hours of trying things, I managed to install TWRP 3.0
* While the error stayed, I could now boot to TWRP
* Scoured the internet for stock or samsung images that can work.
* Found the cyanogenmod for my device (Nighty 2016-08-31 05:00:43 version as there nothing on the release channel)
* Attempted flashing it using TWRP.
* It noted that the image fully supports SE ANDROID (or SELinux, or device supports one of those.. Can't remember, the text scrolled so fast)
* Then it failed to install.
* I rebooted the device and it looks fine and the SE ANDROID error is gone.
* Seems like everything is where I left them. Data was not gone, even my homescreen shortcuts are there.
* (Took a full backup using TWRP. Coz... lessons learned.)
* Ran a few apps to check root status, and they all show the device isn't rooted.

---

So, since I barely understand what I did, my question is,

* Can I go back to the factory recovery? (remove TWRP and put back samsung one. Also, where to look to find the factory recovery? Samsung doesn't seem to publish it)
* Is the device still using the Samsung OS image? Or is it a combination of the factory image + whatever my CM flash attempt did?
* I Assume SEANDROID issue is part of KNOX? If so, should I disable KNOX (how?) before attempting to root again?

# Answer
1. Custom recoveries and ROMs don't enforce SEAndroid, so the error pops out. Ignore it.
2. Get stock Samsung images from SamMobile. This is also the surefire way to return to factory recovery (along with everything else).
3. Please get a screenshot (camera capture) of the failed CM installation, so that we can diagnose what's the issue.
4. Assuming the flashing process failed at its start, it doesn't even wipe anything, so it's stock Samsung system + TWRP, nothing more.
> 0 votes

---
Tags: rooting, twrp, samsung-knox, selinux
---


# Question
Title: Is kernel mode of operating system and root permissions in android same thing?
As written in book of Peter Baer Galvin's Operating System Concepts , there are **two modes of operation** -

> 1.user mode
> 2.kernel mode

So, my question is when we root our android do we alter the linux kernel to get permissions of kernel mode ?

# Answer
Root permissions and kernel mode are not the same thing. Programs with root access can access part of the kernel, but root is not the kernel itself.

The Android (and Linux) user model has a set of users, each part of a set of groups. These groups are used to manage which users are allowed access to what. For example, in Linux you could set up all printer devices to be owned by the printing group, so only users that are part of the printing group can access printers.

In Android every app gets its own user account to prevent apps from accessing each others data.

Amongst all of these users, there's one special user: root. This is the user with the highest set of permissions, also called the "super user". Basically, all permission checks are disabled for this user. Root can do things like change ownership of files, add users to groups, manage system components and more.

Kernel mode is slightly different. When a Linux-based system boots, the kernel is the first thing loaded by the bootloader. The kernel takes care of processing system commands ("write byte x to file y", "list all devices attached to the USB bus"). It's also where many drivers reside, which help the system understand how to communicate to a device.

After initializing the kernel starts a program in user mode. Programs running in this mode are not allowed direct memory access to devices, they can't modify page tables, basically they can't do anything the kernel is supposed to do. The only way to execute a system command is to go though the kernel, and the kernel decides whether or not a program is allowed to do so.

In Android, the kernel starts an initialization program that in turn starts some background processes and the Android system you can interact with.

The kernel decides what user is allowed to execute certain system functions. Many system functions, such as mounting a partition to make it writable, are only accessible to programs running as root. Root can contact and control the kernel, but in the end the kernel decides what root can and can not do.

So: generally kernel mode refers to code running inside the kernel, while root refers to the permissions a program has.

For the sake of clarity I'm ignoring tools like SELinux which is designed to limit the files programs running as root can access. This is a security measure so that even if a system program running as root gets exploited and starts executing code from hackers, it can't compromise the system. This is done using a special module in the kernel.
> 14 votes

# Answer
When you root, your granting full permissions to the device. You already utilize the kernel(drivers, commands) so root is allowing for you to modify the entire system(add users, modify system files). My answer is extremely simple, other answer explores the same thing.
> 0 votes

---
Tags: root-access, kernel, superuser
---


title: Increase size of ext2 beyond 1.5GB

text:
# Question
Title: Increase size of ext2 beyond 1.5GB
I have a rooted LG-D520 (Optimus F3Q) running Android 4.1.2. The internal memory that came with the phone was so small that I installed an 8GB SD card. I formatted it using MiniTool Partition Wizard with 1.5GB of ext2 (the rest is FAT32). Using Link2SD I've moved many of my apps over to the ext2 partition.

I do *not* have a ton of apps (they just seem to keep getting bigger), yet I only have 5% space left on the ext2. My internal memory has 27% left (355MB), but I've had to delete a lot of stuff to make room. I'm only using a small portion of the 5.9GB FAT32 partition, so I'm wondering if...

1. I can increase the size of the ext2 beyond 1.5GB. Is there a maximum size and, if so, what is it? Can I repartition without losing my apps & data or do I need to backup, format and start over?
2. I can add another ext2 partition to my SD card and load apps into there. Can you have multiple ext2 partitions and, if so, would that work with Link2SD?
3. Are there any other options ?

This has been a frustrating endeavor and it's unbelievable the lengths you have to go to in order to do basic stuff on an Android phone, so I'd appreciate any advice.

# Answer
Here's how I did it when I needed to increase the size of my second (ext2) partition that Link2SD used for applications from 2GB to 6GB:

1. Use free version of Mini Partition (v9.1) to

* a. shrink the first partition (FAT32) by 6GB
    * b. ensure the existing 2GB ext2 partition is at the end (so that the second space after the first partition is the now unallocated 6GB space)
    * c. create a new 6GB primary ext2 partition in the unallocated space
2. Use the free version of Paragon ext2fs to mount the 2 ext2 partitions in Windows and allocate each a driver letter
3. Use Windows explorer to copy the contents of the old 2GB ext2 partition to the new 6GB partition
4. Put the card back into your phone and have Link2SD recreate the mount scripts for the 'second partion' (just to make sure the 6GB one works)
5. Use Mini Partition to:

* a. delete the old 2GB ext2 partition
    * b. move the 6GB ext2 partition to the end of the card/drive
    * c. extend the FAT32 partition to fill the 2GB unallocated space.
> 2 votes

# Answer
You can expand the ext2 partition easily as most partitioning tools such as the one you used to create the partition can handle this.

**Edit**: turns out resizing ext2 can not be done easily using Minitools or any other popular partitioning tool for Windows. If you really want to resize, you should probably use a Linux live disk or a Linux virtual machine to use the native Linux programs for resizing, like GParted.

Increasing the partition size for your ext2 partition basically means moving files on the FAT32 partition around to make a continuous free space, then shrinking the FAT32 partition then extending the ext2 partition to fill the empty space, and finally expanding the filesystem. Many tools will do all this for you if you just select "shrink" on the FAT32 partition and then "extend" on the ext2 partition.

This process **should** not cause you to lose any files or data, but you should probably back up the contents of your partitions before changing the partition size, just to be sure.

You should not be worried about size limits, a standard partition can be up to 4TB using ext2. Recent versions of ext2 can handle up to 32TB (see wikipedia for details). Every phone I have ever heard of can handle 64GB easily, but your phone seems to be limited to 32GB (according to the lg website).

Theoretically, you can make add as many partitions as you want to your SD-card, a quick scan through the Link2SD screenshots on Google Play show a selection for the partition to link data to.

1.5GB is not much today, as most phones ship with 8GB or 16GB by default. You can try doing some cleaning on your secondary partition, like clearing the cache and removing the data of apps that are no longer installed.
> 1 votes

# Answer
I had an issue with mini tool but used Aparted on the phone and it worked like a charm https://play.google.com/store/apps/details?id=com.sylkat.AParted
> 1 votes

---
Tags: external-sd, sd-card, link2sd, ext2
---


# Question
Title: How can an app access Android Pay data on a rooted phone?
According to an Android Pay engineer on the XDA forums, Android Pay is not compatible with rooted devices because of security concerns: on unrooted devices apps run in a sandbox and can only obtain limited information.

How is this different on an unrooted device as apps must request permission from SU?

Could an app trick SU into giving it more permissions than possible?

I am interesting in getting Android Pay working on my phone but have concerns about the security of my data as my device is rooted.

# Answer
By default, only the application itself (and, under some circumstances, the applications written by the same company) can access to its (private) data. So Google Pay can store securely banking-related information.

If you root your phone, however, any application with root access can access to *any* folder on your file system. Including applications private data. And Google Pay's banking-related information.

I have no idea what Google Pay stores. But there is at least a way to authenticate as yourself. From there, an application with root access could probably do nasty things. Not nasty for Google, but for you: make payments on your behalf.

If you find a way to hide the root from Google Pay (I don't know if it's achievable, but I wouldn't be surprised if it was), and are entirely trusting the applications you give root access to, sure, go ahead. Personally, I would not.
> 0 votes

# Answer
This is a problem with Knox. Google is liable if Google Pay is cracked on a device and maleficence was done i.e. rooted user steals or gets stolen from BY using the application etc. The only way to protect themselves is to eliminate access with modified OS. I don't see a way,other than going into the application and finding out if you could change what the application sees. My thinking is if the application can't get root, or isn't shown the device is rooted then it should work.
> -1 votes

---
Tags: root-access, security, google-pay
---


# Question
Title: Reading NFC tags from the front of the phone
I'm creating an app reading NFC tags.

Currently all works well expect that the NFC tag can only be scanned when it touch the back of the phone.

Is there anyway to allow NFC to be read through the screen?

I'm testing on a Nexus 4.

# Answer
> 5 votes
With the backing of dotVezz, summing up from the comments:

Considering the specifications, this is quite unlikely:

* range of the NFC signal is limited to a max of 10 cm on "clear view" (see Wikipedia)
* material with a greater density will reduce this even more: air ~ 0.001 g/cm3 versus Lithium ~ 0.53 g/cm3 makes rawly a 500-times-density difference, so a factor of 10 (as I mentioned in my comment) probably is a huge under-estimation
* even calculating with a factor of ~10, this would reduce the range to below 1 cm. And you will rather have to more than double that factor.

With few devices being thinner than .8 mm, your wish is close to impossible of being fulfilled.

# Answer
> 1 votes
It *is* possible. Apple has filed a patent on a clever new use of antenna real estate on a smartphone.

Apple patents NFC antenna that works on all sides of a mobile device

---
Tags: nexus-4, nfc
---


title: Can I skip CynanogenMod updates

text:
# Question
Title: Can I skip CynanogenMod updates
When I install the nightly updates for CyanogenMod, do I need to install every single update or just the last one?

# Answer
Just the last one. Simple as that.

However, if you do cross-Android-version updates (e.g. CM13 (6.0) to CM14 (7.0, coming soon)), it is *strongly recommended* to wipe and start over.
> 0 votes

---
Tags: cyanogenmod, updates, custom-roms
---


title: Retrieve my contact list

text:
# Question
Title: Retrieve my contact list
I am unable to retrieve my contact list,I had originally put in on my Google account and only bits a d pieces of my list are showing up.have tried resetting my preferences to no avail.

# Answer
1. Select the “Settings” of the device.
2. Scroll to “Accounts”
3. Select “Google”
4. Under the Accounts should be your Gmail address. Select it and verify that “Sync Contacts” is checked.
> 0 votes

---
Tags: contacts
---


title: Delete system app using zip file

text:
# Question
Title: Delete system app using zip file
I have rooted my **Huawei P8-Lite ALE-L21** with `superuser.zip`. After successful root I tried to change superuser app. So, I have installed *KingoUser.apk* and after that I have clicked on `superSu app -> settings -> switch superuser app`. It didn't work. So, I installed *Link2SD* app and converted KingoUser as a system app. Now, when I launching SuperSu or KingoUser, some warning message pops up and says that the su binary needs to be updated.

There is no way to flash my phone cause Huawei haven't released my build version as a stand-alone flash file.

How can I unroot my phone now ?

# Answer
> 1 votes
**Part 1 Unrooting Your Device**

You can unroot your phone from SuperSu itselef

*Go to SuperSu \> Setting \> Fullunroot.*

**Part 2: Replacing KingUser**

You can download the ready to use script for replacing it with SuperSu Here

1. Download Zip file from site
2. Extract it in External Sdcard
3. Launch Terminal Emulator
4. Type `su` and give the superuser acess
5. Type `sh /sdcard/mrw/root.sh`
6. Script will automatically delete all Kinguser files amd will make SuperSu as system app
7. Update SuperSu binary

# Answer
> 0 votes
I don't think the question matches its title. However, this answer is for people who might arrive here in search for an answer to the question asked in the title...

how to **delete system app using zip file**.

First, see this answer where I explain how to create a ZIP file for flashing `.apk` files. Follow that explanation but use an `updater-script` like this:

```
mount("MTD", "system", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system");
delete_recursive("/system/app/SomeApp");
unmount("/system");

```

Where `SomeApp` is the directory containing the `.apk` for the app that you want to delete (use an `adb shell` to acertain this path).

One could, however, just use `adb shell` to do it (but this doesn't answer the question asked):

```
$ adb shell
shell:/ $ su
root:/ # mount -o remount,rw /system
root:/ # rm -r /system/app/SomeApp
rppt:/ # reboot

```

# Answer
> 0 votes
Be careful! If you rashly attempt to install SuperSU after rooting with KingoRoot, your device would be bricked even if you uninstalled KingoRoot. KingoRoot will NOT completely remove itself when you uninstall it. The ONLY way to remove KingoRoot completely is to flash the stock ROM.

So, no, don't.

---
Tags: zip, root-access
---


# Question
Title: Will I loose manufacturer updates if I root my phone
I have ASUS Zenfone 2 Laser with Marshmallow but I want to root my phone fot certain reasons but don't want to loose OTA updates from manufacturer. Please let me know if any work around is possible.

# Answer
In most phones, especially the newer ones, you cannot receive OTA updates, since `/system` is modified by rooting and it fails the verification for OTA updates. To better understand details about verification see answers to this question What specifically prevents OTAs from being taken on modified /systems, and why can't it be shut off?

*Systemless Root* is an option to prevent this. In this method of rooting only the `boot` partition is modified, keeping `/system` intact. Prior to flashing OTA one needs to flash stock boot and recovery images to allow OTA updates . You can read more about systemless root in the answers here Systemless Root

Do ensure you research the linked XDA thread in answers and choose the right version for your device, based on user feedback
> 3 votes

---
Tags: rooting, updates
---


# Question
Title: how can I get Instagram photos to save to my SD card?
I have Instagram and I like saving the pictures that I take, but they're taking up tons of space in my internal storage. I have a nice big SD card for storage, and have my phone set up to save all the regular pictures I take with the camera to the SD card, but I can't figure out how to get the Instagram pictures to save there as well. Anybody have any luck with this?

# Answer
Have you tried moving the app itself to the SD card? Maybe it's not the photos, but the internal cache that's taking up all your storage.

Anyway, according to Instagram Help:

> The Android app may take up more internal memory than other apps on your device because we cache photos, which makes the Instagram experience faster for you and conserves bandwidth (which means you don't have to re-download photos over your carrier's network). Note that as of v1.0.3, you can install the app on your device's SD card.
>
> On Android, you can find out how much space Instagram takes up on your device by following these steps:
>
> 1. Exit Instagram
> 2. Open the Settings application on your device \> Applications \> Manage applications \> Instagram
> 3. Total Storage is listed on the Instagram screen.
>
> If you choose Clear data, your download cache will be cleared. Clear cache will reset memory for the app.

There is not, otherwise, a way to tell Instagram to store your photos directly to your SD card.
> 3 votes

# Answer
If you go into Storage --\> Navigate to Instagram -----\> click on "Change" next to "stored in" and you can switch where instagram stores data, I switched mine from internal to SD card, on my galaxy s5.
> 0 votes

---
Tags: external-sd, instagram
---


# Question
Title: Why does Android OS consume my network transfer?
The app data usage section of the Settings mentions that "Android OS" has taken transferred 1.73 MB of data in the background.

What is that caused by? I have disabled captive portal detection on my device. I'm running CM 13.0 without Play Services.

# Answer
> 0 votes
I've noticed on my CM13 phone, I will periodically get notifications when there are new nightlies out. Have you tried disabling the automatic checks for updates? Simply go to Settings-\>About phone-\>CyanogenMod updates-\>Check for updates-\> Set to 'manual'.

---
Tags: networking, system
---


title: ADB command to dial Code *#06#

text:
# Question
Title: ADB command to dial Code *#06#
I am wondering if there is any way to run \*# codes on android using adb command

I have tried this:

```
**service call phone 2 s16 "*#06#"**

```

tried with % instead of # as well.

Any help will be much appreciated.

# Answer
Here's the command to type in ADB mode to show IMEI info:

```
adb shell am start -n com.android.settings/com.android.settings.deviceinfo.ImeiInformation

```

For Terminal Emulator from device:

```
am start -n com.android.settings/com.android.settings.deviceinfo.ImeiInformation

```
> 3 votes

---
Tags: adb
---


title: Google Playbooks is too huge - 1.4GB

text:
# Question
Title: Google Playbooks is too huge - 1.4GB
I am seeing that Google play books consumes 1.4 GB. I use Play Books only to view my PDF books and at most use 50MB of content. But I don't understand how it can consume so much space... Even a graphic game takes only 800MB. So can anyone point me out to why this happens??

# Answer
> 3 votes
I can't tell you why it's using this much on **your** phone in particular. I just looked at Google Play Books on my phone, which is using 224 MB, of which only 32 MB is the app itself, and the rest is data (downloaded books).

Some PDFs and e-books can be very big, because they can include large pictures. Some e-books are high-quality scans of every page of a paper book, which can be much larger than 50 MB.

# Answer
> 1 votes
Google Play Books can also store cache and your data (includes your books). Try clearing the application's cache by going to the application's app info.

---
Tags: internal-storage, google-play-books
---


title: Helium won't restore SMS

text:
# Question
Title: Helium won't restore SMS
**EDIT: I found a solution, and I made an answer below! ;D**

Hello everyone :) (fisrt, I apologize for my English, I'm french... :/)

Before doing a factory reset to upgrade my android version (Alcatel one touch idol 3 under Android 6.0.1 now, and 5.0.2 before the factory reset), I backed up all my apps with Helium.

Then, I managed to get evrything back. Except sms.

I don't know why, but when I try to restore them, I get the following message :

For those who want to know, I'm now rooted (so I don't use the desktop version, even if I tried and it doesn't work neither)

Thanks, I'm reaaaally desperate...

# Answer
Ok. I eventually got my SMS back. But if someone is searching for an answer, here is my solution that, I hope, will help.

I guessed the problem came from the android version. So, basically, I did the following:

**1**. Grap your old phone under Android 4.0.4 (you can use someone else's phone, just make sure to backup their messages before you do anything. To be (almost) sure THIS backup will work, I recommand "sms backup +" or "sms backup and restore")

**2.** Now, install Helium and backup their SMS with it. It will create a backup file. (it should be inside a folder called "carbon" and sould be named "com.android.providers.telephony")

**3.** Then, take your old backup (same name under same folder in your new phone), and replace the one you just created at step 2 with it.

**4.** Click restore, and all your sms should be back (if you've taken someone else's phone, you should delete all their sms, otherwise yours and theirs will be mixed. Again, make sure to backup everything before)

**5.** Then, backup these sms freshly restored with the app downloaded at step 1. I recommand to use the Gmail backup, so you don't have to travel your backup file from one phone to the other with your PC, etc... but that's your choice.

**6.** Finally, install the same app as step 1 on your new device, restore your sms with the backup file you just created, and that's it!

I hope this little explanation is clear enough, it is waaay simpler than it seems (because I tried to cover most cases). If you encounter problems, leave a comment below, and I'll see if I'm able to answer (I don't promise anything okay? :p).

Thanks

PS:Again, I hope my English isn't too bad, but I tried my best, if you see mistakes, just tell them me in the comments section :)
> 1 votes

---
Tags: sms, 6.0-marshmallow, backup, restore, helium
---


title: Custom keyboard shortcuts for Android

text:
# Question
Title: Custom keyboard shortcuts for Android
I am trying to create some custom shortcuts for often-used words/phrases using the built in dictionary, but have run into a roadblock.

I'm trying to follow the instructions in this blog post, specifically:

> * Tap Settings, Language & Input, then “Personal dictionary.” (Note: the exact settings may differ depending on the make and model of your Android phone.)
> * Tap the “+” sign in the top-right corner of the screen, then enter the word or phrase (like “on my way”) you’d like to make a shortcut for.
> * Next, type a brief shortcut that’s easy to remember; for example, “omw” for “on my way.”
> * Tap the Back key, and you’ll see an entry for the shortcut you just added. Want to add more shortcuts? Tap the “+” sign again.
> * Now, go to the Messaging app, compose a new message, and tap one of your new shortcuts—and when you do, the phrase you entered will appear in the row of auto-correct options just above the keyboard. Tap the phrase to add it to your message.

However, I'm not able to find these settings on my Galaxy Note 2. How can I do this?

In the first step itself I am stuck. Didn't find any option for 'Personal Dictionary' sort of thing.

Tap Settings, Language & Input, then “Personal dictionary.”

# Answer
Not every device has this feature. I tested on my , and it doesn't have this option either, but the and do. I'm not sure whether the feature was only added in , or if it's just missing from Samsung ROMs. Either way, you probably want a third-party text expander app as others have suggested.
> 1 votes

# Answer
For what its worth... On my galaxy note 2, I found the "Personal Dictionary" option by tapping the gear icon next to "Google Keyboard". I didn't find "Personal Dictionary" under any other keyboard option though, so it may be limited to the Google Keyboard.
> 1 votes

# Answer
On my Galaxy S4, I discovered that when you hold your finger down to bring up the menu ("copy, paste, select all, ..."), one of the items is "clipboard" and it contains the last up-to-20 things you copied to the clipboard. While your clipboard is open, you can delete stuff that you no longer want on the clipboard.

You can also "lock" stuff to the clipboard, which stops it from "scrolling off" once you copy twenty more items. When you lock an item to the clipboard, it gets a little overlay icon of a lock. However, when I was testing this and copied twenty more items, the content displayed in the 20th item was incorrect. I thought I had lost the text I locked, but when I exited and got back in later, the correct text was there. That's a very minor bug and probably only happens when you open the clipboard and mess with it until an item you locked would otherwise scroll off - not something that would ever normally happen.

Unfortunately, overloading clipboard functionality with memorized-phrases functionality is NOT sufficient when there are only 20 slots (only ten can be locked at one time). However, it will serve me almost as well at least until I have 10 items locked in there. Then I'll look for the "text-expander" app that @Al E. mentioned.
> 0 votes

---
Tags: samsung-galaxy-note-2, dictionary, text-prediction
---


# Question
Title: How to tweak tablet settings to install TextSecure?
I would like to install TextSecure on an Android tablet. TextSecure is not currently supported for tablets, and Google Play Store refuses to install it.

How can I tweak the (build.prop?) settings to make Play Store perform the install? I guess I have to make the Play Store believe my tablet is a phone. I know that TextSecure may not work after the install, but I do want to try.

# Answer
## It seems possible if you have (another) phone number

According to Wikipedia on Signal (the new name: "In November 2015, the TextSecure and RedPhone applications on Android were merged to become Signal for Android."):

> Signal requires that the user has a phone number for verification. The number does not have to be the same as on the device's SIM card \[...\]. A number can only be registered to one device at a time.

## How to register

Basically the FAQ states you can register with a different number:

> Request a call for the verification number after the two minute timeout.

(Which phone number is shown as sender is also explained in the FAQ.)

## How to build from source (& install)

According to an old issue on their site, it was only three commands build and install from source:

```
git pull
ant release
adb install -r bin/TextSecure-release.apk

```

## How to download APK (& install) - this maybe risky(!!)

According to this Github-issue:

> multi-device support is on the roadmap

But in the meantime, one can try downloading the APK from other websites, e.g. (same issue):

> You can try sideloading the app via https://apps.evozi.com/apk-downloader/.

This is a user response, I do *not* know if/how trustworthy this site is!!! But, based on the present Playstore-link for Signal that link would be: https://apps.evozi.com/apk-downloader/?id=org.thoughtcrime.securesms .

### Why no APK-download or ...store

I do not know, why Signal does not allow installing to a device without SIM (yet), and they may (see quote above). I do know, why they did (do?) not distribute their APK-s for 'wild' installation, see this issue:

1. No upgrade channel for effective security
2. No app scanning (possible malware problems)
3. No crash reporting
4. No stats to prioritize development and platforms
5. Not a privacy win
6. To not encourage "allow 3rd party APK-s" by 'naive users'
7. It is still possible to install by building from source for 'power users' (only)
> 0 votes

---
Tags: textsecure
---


# Question
Title: Getting text to speech to write a . (period)
I have just started to use Googles speech to text on my Sony Xperia Z3+ and it is very precise, both in English and Danish. But I cannot get it to write any punctuation in either language.

A period would be just fine, but if I dictate in English and say "period", it writes the word "period". I have also tried "dot" and in Danish "punktum". There is a settings button, but no option to fix this.

The funny thing is, that if I pause, it will capitalize correctly, like there were a . but I still have to add them afterwards.

The most frustrating part is, that when I search for solutions, the solution is to say "period" or replies to people who want to have the literal word written.

# Answer
Maybe it is your inflection, that is, the rise and fall of tonal character. Saying the word "period" works for me.

I say "PEER-Ee-uhd", falling in tone as I say the word.
> 0 votes

---
Tags: voice-recognition
---


# Question
Title: Turning on hotspot automatically turns off my Wi-fi in my Moto g4 plus
With android kitkat (in my Moto g1), i could share my wi-fi via mobile hotspot. After upgrading to lollipop, turning on hotspot would turn off the Wi-fi which i thought was a bug. Now to my surprise, it is happening in my new Moto G4 plus (marshmallow). If this is a feature, then i do not understand why it behaves like that. Is there a way i can share my wi-fi via mobile hotspot ? Sharing the 3G data does not make any sense to me.

# Answer
> 1 votes
The device has to support 2 WiFi frequencies, *and* the OS has to implement the feature (e.g. Huawei D2 and Samsung S7/Edge), or else you will only get either WiFi in or WiFi out. I've never seen any mention of the original G supporting the feature either, and since I've owned an original G myself, I can say that it can't do it in my experience.

The only way that was able to do it on non-OS-level was FQRouter2, but it's now obsolete and might not work.

---
Tags: 6.0-marshmallow, motorola-moto-g
---


# Question
Title: Galaxy S6 Edge unresponsive Download Mode Screen
Worth noting my home button doesn't work (although the fingerprint scanner does). I'm able to access the 'Warning: A custom os can cause critical problems..' screen by holding down my power button and either of the volume buttons, but once on the screen I can't continue or cancel using the volume buttons, the phone simply doesn't respond. To turn the phone off again I have to hold both volume buttons and the power button for an extended time.

If anyone has any ideas, that'd be much appreciated.

# Answer
I found a way around this by using a utility called 'Samsung 300K Tool', it allowed me to put the phone in download mode without rebooting.

EDIT: After recommendation by beeshyams. Googling 'Samsung 300K Tool' after seeing it in a video I was able to find it very quick, however it seems Mediafire has deemed the program dangerous, I scanned with Malwarebytes but proceed at your own risk. I also can't guarantee this will work for your phone but it worked for my S6 Edge. I've uploaded the executable to TinyUpload, it can be found here: http://s000.tinyupload.com/?file\_id=06981153934260620870

First make sure your phone is on as normal, plug in the phone and open the utility, after given the go ahead by the dialogue on the right, click the image of a connector on the left, wait a moment and your phone should be in download mode, run Odin as normal. Hope this helps someone.
> 0 votes

---
Tags: custom-roms, buttons
---


# Question
Title: Is there no way to get scripts to run in Android?
Since Android is Linux at its base, I logically think it should be possible to run a script on Android, like a Python script or PHP script (with executable bit obviously).

If not conventionally, is there any way to do so?

# Answer
> 12 votes
### Python/PHP specific

If you are asking specifically for Python and PHP scripts, SL4A probably is your best choice (though there are other Python supporting apps in the playstore, like e.g. QPython Lite). And if you want to automate things, you might want to take a look at the SL4A Script Launcher (in connection with TaskBomb task scheduler) as well.

### Shell Scripts

But talking about "Linux" and "scripts in general", the first coming to my mind are Shell Scripts. These can be run directly from the command line using any terminal emulator (e.g. Android Terminal Emulator, Terminal IDE) -- or, if you prefer some "graphical help", using specific launcher apps like SH Script Runner, ScriptMe, or Script Manager.

# Answer
> 4 votes
You want SL4A. From the website:

> Scripting Layer for Android (SL4A) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done.

# Answer
> 0 votes
To run python scripts on android download "QPython" / "Qpython3" app from google play store. To run PHP scripts don't use SL4A because you can only run php scripts but can't develop php sites,Instead download **Server for PHP** app from google playstore. Watch the below video to learn how to run php scripts on Server for PHP app : https://youtu.be/VG6IdIi7m8k

---
Tags: scripts
---


# Question
Title: Data does not work when Bluetooth tethering is on
When I cannect another phone to my phone by bluetooth tethering, to use my phone's data internet, the data internet icon (4G) disappears and no longer is connected (while data is on).

What is wrong with my phone?

# Answer
> 1 votes
I just encountered this same problem. I fixed it by following this blogpost, basically at the bottom he describes that you need an extra APN setup just for the tethering. iOS has a dedicated tethering APN setting, but for android, you need to add one for yourself.

I had to add an extra APN where the APN-type was "dun". After I added this one, tethering worked for me and the 4G icon stopped disappearing.

# Answer
> 0 votes
id just recommend setting up a wifi hotspot. http://www.pcadvisor.co.uk/how-to/mobile-phone/how-tether-google-android-phone-image-3279408/

---
Tags: mobile-data, bluetooth-tethering
---


title: Can Factory Reset delete a virus?

text:
# Question
Title: Can Factory Reset delete a virus?
In my **Lenovo A536** phone a malicious app that is alarm controller and calendar service is unknowingly installed and it is creating a problem.

I am not able to uninstall the app as it is automatically stored in in-built app.

So can `Factory Reset` remove it?

# Answer
> 1 votes
If the app has installed itself as a system app, then no, factory reset will not remove it. It will just wipe it's data, but it will start installing again, after you boot your phone up.

You will need to flash your device with a stock firmware file, which does not have the virus installed.

You can follow this tutorial:

http://forum.xda-developers.com/android/general/tutorial-how-to-flash-lenovo-a536-stock-t3300818

# Answer
> 0 votes
These **are not** viruses. These are *false positives*.

**AlarmController** is a system app that allows your alarms to play, even when the main alarms app is not running.

**CalenderService** does a number of things. It notifies you of calendar events, ensures the system date is (relatively) accurate, and manages the synchronisation of Calendar data with the cloud.

---
Tags: malware, antivirus
---


# Question
Title: Odin BcmCP.img fail when trying to flash gt-s5830i (galaxy ace)
So I have a bricked gt-s5830i (galaxy ace) and when I try to flash it using odin I get this error:

```
<ID:0/003> Added!!
<OSM> Enter CS for MD5..
<OSM> Binary Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/003> Odin engine v(ID:3.1100)..
<ID:0/003> File analysis..
<ID:0/003> SetupConnection..
<ID:0/003> Initialzation..
<ID:0/003> Get PIT for mapping..
<ID:0/003> Firmware update start..
<ID:0/003> SingleDownload.
<ID:0/003> sbl.bin
<ID:0/003> NAND Write Start!!
<ID:0/003> BcmCP.img
<ID:0/003> FAIL!
<ID:0/003>
<ID:0/003> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/003> Removed!!

```

It started boot looping after it randomly got stuck and I took out the battery since I couldn't do anything at all. This is the firmware I tried: http://www.sammobile.com/firmwares/download/37194/S5830IXXLK3\_S5830IDBTLK1\_DBT/ http://www.sammobile.com/firmwares/download/14913/S5830ZXXLK3\_S5830ZDBTLK2\_DBT/

Does anyone know what's causing this? This is also the first time I'm flashing a phone. The rom was downloaded from sammobile because the ones from samsung-updates seem to have broken downloads.

# Answer
Use Odin 3.07. Also, make sure that you start odin as administrator. I had the same problem, and it worked for me. And prior to that, if it gets stuck in Setup Connection, just boot into "download mode" once again by pulling off the battery and re-inserting it.
> 1 votes

---
Tags: rom-flashing, boot-loop, samsung-galaxy-ace, odin
---


# Question
Title: Why `fastboot devices` fails in USB debugging mode and Downloading... -mode?
I enable developer mode in the phone, usb debugging and smart bootloader. I do where successfully boot to bootloader such that I see Android mascot with the text *Downloading... target Do not turn off!!* but I cannot get any ID from `fastboot devices`

```
root@masi:/home/masi# fastboot devices
root@masi:/home/masi# adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
root@masi:/home/masi# fastboot devices
root@masi:/home/masi# fastboot devices

```

I have successfully completed the stages before in Windows 10, but Ubuntu 16.04 and Debian 8.x cause problems.

Phone: Samsung Galaxy S4 gt-i9506
OS: CyanogenMod Temasek february/2016
Recovery: TWRP 2.8.x

PC: Asus Zenbook UX303UA
OS: Debian 8.5

# Answer
> 3 votes
The part of the Android bootloader that usually features the **fastboot** server is called **aboot**.

As explained in this article, the standard aboot derives from the Little Kernel (LK) project. Almost any phone manufacturer then customized it and created its own bootloader. Follows an excerpt from the abovementioned article:

> All Bootloaders I've checked (including Samsung's and Amazon's) seem to derive from LK (in fact printing out the "welcome to lk\n\n" from its kmain), though Amazon's take steps to disable fastboot, as does Samsung, which then uses their own custom App, called Odin.

In short, there's no way to use fastboot with Samsung devices. Only Odin is recognized (by the Loke component).

# Answer
> 0 votes
I could not find an answer for this. However, I found a differential solution. Boot to recevory mode (mine TWRP 2.8.x), and flash the new recovery mode (TWRP 3.0.2) in Odin/Heimdall. This way, I could complete my target.

---
Tags: cyanogenmod, adb, samsung-galaxy-s-4, fastboot
---


# Question
Title: How to Play Pokémon Go in High Accuracy GPS -mode with Oneplus 2 of CM13?
It is possible to play Pokémon Go in *GPS only* mode in Oneplus 2 of CM13 as described in the thread Can you play Pokémon Go on Oneplus 2 with CM13? However, the application does not work in the high accuracy mode with the device. I would like to understand which technology Wifi/Bluetooth/... is disturbing the game and GPS, in order to understand how to play the game in the high accuracy mode. I have not seen the same problem with Samsung Galaxy Phones of CM13. Fig. 1 Output in High Accuracy Mode

Test configurations tested in High Accuracy Mode

1. Fresh installation of the OS - no difference
2. Clean memory before starting Pokemon or not - no difference
3. Bluetooth on and off - no difference
4. Power saving mode on and off - no difference
5. Google Wear installed but no devices connected to the application; tested also as uninstalled - no difference
6. All internet gadgets (Pebble, Xiaomi Mi Band 2) disconnected from the phone - no difference
7. Using own local wifi network or not - no difference
8. ...

System: CM13
Phone: Oneplus 2
Pokémon Go: 0.33.0

# Answer
> 0 votes
This is Pokemon's server side problem. You cannot do anything here but wait that the company improves. Now, the situation is better.

---
Tags: cyanogenmod, gps, oneplus-two, pokemon-go
---