date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2016/04/10 | 805 | 2,756 | <issue_start>username_0: In Marshmallow (and consequently in CM13), the external SD card is mounted at a path that contains its serial number. I have a bunch of Tasker tasks, the occasional script, and lots and lots of apps configured with a specific path to the external SD card (in my case, /external\_sd because that's where it was in CM12).
Is there anything sensible I can do about this change in Marshmallow? Fixing paths everywhere just because I've upgraded to a faster/larger SD card (which has a different serial number) is not going to be fun.
How would I go about making the external SD card available under "/external\_sd" on CM13/Marshmallow?<issue_comment>username_1: I've found a reasonably easy way to do something close enough: just set the volume serial number to something fixed. This is easy enough for FAT32-formatted SD cards: just use [Sysinternals VolumeID](https://technet.microsoft.com/en-gb/sysinternals/bb897436.aspx):
```
D:\>vol D:
Volume in drive D has no label.
Volume Serial Number is 07F5-432C
D:\>volumeid D: ECAD-ECAD
VolumeID V2.01 - Set disk volume id
Copyright (C) 1997-1999 <NAME>
Sysinternals - www.sysinternals.com
Volume ID for drive D: updated to ecad-ecad
```
("ecad" for "external card" but there are [other possibilities](http://www.nsftools.com/tips/HexWords.htm), of course)
Now my external SD card is mounted at `/storage/ECAD-ECAD`, which is easy to remember for typing in those apps which don't let me pick a path, and more importantly, can stay the same when I upgrade to a faster card, for example (if I repeat this procedure).
The only complication is SD cards larger than 32 GB, which Windows refuses to format into FAT32. The best tool to work around this is [Rufus](https://rufus.ie/), an open-source tool with a focus on bootable drives, but it can also just format a large FAT32 drive.
Upvotes: 2 <issue_comment>username_2: Another option would be to use a init.d script to re-create the sdcard link.
```
#!/system/bin/sh
SERIAL=`ls /mnt/media_rw/ | head -n 1`
FULL_PATH="/mnt/media_rw/$SERIAL"
SERIAL_LENGTH=${#SERIAL}
LINK_NAME="/external_sd"
if [ -e $LINK_NAME ] ; then
echo "Link already exists!"
elif [[ $SERIAL_LENGTH -lt 1 ]] ; then
echo "Badly formed path!"
elif [ ! -d "$FULL_PATH" ] ; then
echo "SdCard path not found!"
else
mount -o rw,remount /
ln -s $FULL_PATH $LINK_NAME
mount -o ro,remount /
fi
```
This script assumes:
* that init.d scripts aren't being blocked by SEAndroid,
* that your device needs to be turned off to change the sdcard, and
* that it only has space for one sdcard.
I assume the reason for the introduction of serial numbers in the sdcard path is for devices with space for more than one sdcard.
Upvotes: 1 |
2016/04/11 | 259 | 1,173 | <issue_start>username_0: My company have set up all of their shared work via Google apps. They are now insisting on everyone setting up two-step verification. I am a freelance and although they want me to share via Google, I have other Google accounts that are personal and for college that I can't risk losing access to. The main issue is with emails on my phone, but I'm worried about the whole safety of these personal accounts should I leave my firm/lose my phone. I understand they can just block accounts. Is there any way of separating the accounts out?<issue_comment>username_1: You should be able to create new account, only to use with the company and set two-step verification only for that account. They wouldn't be having any access or rights over any account other than that one whatsoever.
Having a quick look trough the app, it gives me the option to add an account and not automatically do it for my primary android gmail account ...
Upvotes: 0 <issue_comment>username_2: The 2 step verification process does not affect all the accounts in the mobile. It would only ask for the account which is registered with the 2 step verification process.
Upvotes: 1 |
2016/04/11 | 253 | 1,151 | <issue_start>username_0: I am a Gionee M5 user. Recently I have encountered a problem with my play store. Whenever I start downloading any apps, the download pauses automatically and doesn't resume. So I am unable to download or update any apps. I have already tried factory resetting my android. I have also cleared the data and uninstalled updates of play store and download manager. I couldn't figure out it is the problem of playstore or the download manager. None of these above techniques worked. So, I am hoping for someone's help.<issue_comment>username_1: You should be able to create new account, only to use with the company and set two-step verification only for that account. They wouldn't be having any access or rights over any account other than that one whatsoever.
Having a quick look trough the app, it gives me the option to add an account and not automatically do it for my primary android gmail account ...
Upvotes: 0 <issue_comment>username_2: The 2 step verification process does not affect all the accounts in the mobile. It would only ask for the account which is registered with the 2 step verification process.
Upvotes: 1 |
2016/04/11 | 330 | 1,296 | <issue_start>username_0: I am not sure this is the right place to ask this question.? I have enabled pattern lock in my android device. Just for curiosity I am trying to disable and keep only swipe to unlock option but I can't do that. Is there a way I can disable these patter/pin lock in device?
Thanks<issue_comment>username_1: This is the right place, but it seams easier for people to help if they know your device as pretty much every settings screen is different for every device manufacturer.
For instance in my G4 I can:
1. Go to Settings
2. Go to Display
3. Go to Lock screen
4. Select from (None, Swipe, Pattern, Pin, Password)
As it seams None is disabled for you, I'm guessing you had an app installed that required an Administrative rights.
Go to settings -> General -> Security -> Phone administrators -> Remove the app that made you set the screen lock from the administrators list
(Or if it was a certificate from an app, go to Certificate Management and clear credentials)
Upvotes: 4 [selected_answer]<issue_comment>username_2: I have rooted device. Device is connected to computer with USB cable. And those commands helped me out:
```
adb devices
adb shell
cd /data/system
su
rm *.key
reboot
```
Credit to: <https://appuals.com/delete-android-security-pin/>
Upvotes: 1 |
2016/04/11 | 385 | 1,631 | <issue_start>username_0: I have an android with an app installed. The app was installed with one account that I have no access to. I removed the account but now I can't uninstall the app. Does that make sense? What can be done?<issue_comment>username_1: I had the problem today and I found a solution that worked for me. All I did was remove the account under which the app was installed, reinstalled the app and then re-added the account the I removed.
I hope this will help you and others with the same problem.
Cheerio!
Upvotes: 0 <issue_comment>username_2: I just ran into a very similar issue, where I was trying to update an app owned by a different account. The fix was simple: I logged into the play store with the desired account on the web from my desktop, then installed the app from there. The app updated successfully and its ownership switched to the desired account
Upvotes: 2 <issue_comment>username_3: I had a similar problem
**When we have a problem we can remove the application with adb**
```
# find your package
pm list packages -f | grep [package_name]
# uninstall your package
adb uninstall [package_name]
```
But in my case it did not work. **This was due that I have a Samsung (Galaxy S10) with the application "Security Folder"**, And I forgot that I added this app in the security folder.
*If you have an application of this type, which clone an application in a container in your Android, you must also delete it in the contents of this application because it is installed a second time via another user, used by the application to secure, to be installed a second time on your phone*
Upvotes: 0 |
2016/04/11 | 536 | 2,110 | <issue_start>username_0: Every now and then, some Google "Listening..." screen pops up , like this:
[](https://i.stack.imgur.com/BAfPx.jpg) [full resolution](https://i.stack.imgur.com/7jpJj.jpg)
FYI: my device is a Nexus 5X with the latest stock Android 6
I have no idea what this is, and worse: I don't know how to get rid of this. It seems to occur when my earphones (not headset or mic, just earphones) are plugged in. But not consistently, I can't deliberately reproduce this.
Upon searching around I found some suggestions this may be related to Google Now or OK Google, but both are disabled already.
**How do I prevent this from ever showing up again?**<issue_comment>username_1: I had the problem today and I found a solution that worked for me. All I did was remove the account under which the app was installed, reinstalled the app and then re-added the account the I removed.
I hope this will help you and others with the same problem.
Cheerio!
Upvotes: 0 <issue_comment>username_2: I just ran into a very similar issue, where I was trying to update an app owned by a different account. The fix was simple: I logged into the play store with the desired account on the web from my desktop, then installed the app from there. The app updated successfully and its ownership switched to the desired account
Upvotes: 2 <issue_comment>username_3: I had a similar problem
**When we have a problem we can remove the application with adb**
```
# find your package
pm list packages -f | grep [package_name]
# uninstall your package
adb uninstall [package_name]
```
But in my case it did not work. **This was due that I have a Samsung (Galaxy S10) with the application "Security Folder"**, And I forgot that I added this app in the security folder.
*If you have an application of this type, which clone an application in a container in your Android, you must also delete it in the contents of this application because it is installed a second time via another user, used by the application to secure, to be installed a second time on your phone*
Upvotes: 0 |
2016/04/11 | 403 | 1,668 | <issue_start>username_0: I have a problem with my device while pairing my ipega 9037 Bluetooth gamepad controller. The joysticks are working and also the D-pad, but I have thought that can I use this controller over USB OTG.
Does it damage the smartphone battery?<issue_comment>username_1: I had the problem today and I found a solution that worked for me. All I did was remove the account under which the app was installed, reinstalled the app and then re-added the account the I removed.
I hope this will help you and others with the same problem.
Cheerio!
Upvotes: 0 <issue_comment>username_2: I just ran into a very similar issue, where I was trying to update an app owned by a different account. The fix was simple: I logged into the play store with the desired account on the web from my desktop, then installed the app from there. The app updated successfully and its ownership switched to the desired account
Upvotes: 2 <issue_comment>username_3: I had a similar problem
**When we have a problem we can remove the application with adb**
```
# find your package
pm list packages -f | grep [package_name]
# uninstall your package
adb uninstall [package_name]
```
But in my case it did not work. **This was due that I have a Samsung (Galaxy S10) with the application "Security Folder"**, And I forgot that I added this app in the security folder.
*If you have an application of this type, which clone an application in a container in your Android, you must also delete it in the contents of this application because it is installed a second time via another user, used by the application to secure, to be installed a second time on your phone*
Upvotes: 0 |
2016/04/11 | 647 | 2,260 | <issue_start>username_0: I have a pattern screen lock set on Samsung Galaxy S6, and with the Android 6.0 Marshmallow upgrade, I must swipe before I get the pattern.
Can I disable the required swipe, and just open the pattern unlock screen?<issue_comment>username_1: This is by design and cannot be changed without installing a different launcher. Personally, I like the swipe as the lock screen looks neater without the numbers on it all the time.
I think the reason this was done was to accommodate for the new Lollipop lockscreen notifications - instead of displaying in the status bar, they display on the lockscreen. There would be no room for them with a keypad in the way.
Upvotes: -1 <issue_comment>username_2: I cannot confirm whether this feature would work on your particular ROM but it definitely works for stock Android 5.x and 6.x. You would need a rooted Android, **compatible Xposed Framework installed** and [GravityBox [MM]](http://repo.xposed.info/module/com.ceco.marshmallow.gravitybox) installed and activated.
In GravityBox, under *Lockscreen tweaks* go to *Direct unlock* and choose *Standard* or *See through*. Select *Default* under *Direct unlock policy*.
(Click image to enlarge)
[](https://i.stack.imgur.com/LkLQJ.png)
This would make sure to show the unlock phase of lock screen whenever the device is *securely* locked and screen is turned on.
---
1 Xposed Framework *for stock Android [based] ROMs*: [Android 4.x](http://repo.xposed.info/module/de.robv.android.xposed.installer), [Android 5.x and 6.x](http://forum.xda-developers.com/showthread.php?t=3034811)
Upvotes: 0 <issue_comment>username_3: [myLock utilities (Lockscreen improvements)](https://f-droid.org/app/i4nc4mp.myLock)
------------------------------------------------------------------------------------
Does the job for me on my Nexus, Samsung Galaxy, and YotaPhone with Marshmallow and Lollipop. Work without root permission.
Screenshots:
------------
[](https://i.stack.imgur.com/T39Dw.png) [](https://i.stack.imgur.com/66ldS.png) [](https://i.stack.imgur.com/zvQmw.jpg)
Upvotes: 1 |
2016/04/11 | 963 | 3,400 | <issue_start>username_0: is it possible to create a contacts group in my Android that wouldn't be visible even to whatsapp "show inivisible contacts" ?
I mean, I don't want that group to appears in whatsapp what-so-ever
If not, is there any app that can easily hide (ie, remove a group from Android contacts) and unhide whenever you want?<issue_comment>username_1: >
> I mean, I don't want that group to appears in whatsapp what-so-ever
>
>
>
If this is made possible by WhatsApp, how are you suppose to send message to that group? If you cannot send the message, then what is point of having that group?
You may want to check the [WhatsApp FAQ](https://www.whatsapp.com/faq/en/android/23776567) but AFAIK there is **no mention of Hiding** the group in Whatsapp.
If you do not want to send the messages from that group, you can simply exit the group
Another option is to [mute the group](https://www.whatsapp.com/faq/en/android/23776567#mute). You will still receive messages sent to the group, but your phone will not vibrate or make noise when they are received.
If your only intention is to avoid "other people" from knowing which WhatsApp group you belong to, then you can use [Locking apps](https://play.google.com/store/search?q=lock%20apps) to achieve it.
>
> If not, is there any app that can easily hide (ie, remove a group from
> Android contacts) and unhide whenever you want?
>
>
>
That group is specific to WhatsApp and is not known to other parts of Android system as well as to other apps.
It is very unlikely that WhatsApp will allow other app to operate(hide/unhide) on the User data belonging to WhatsApp. Not possible AFAIK.
Upvotes: 0 <issue_comment>username_2: The question is not specific hope so. Do you want to hid yourself from certain friends who are in your contact list?
If so, then you can add them to block them in the block list. (But you will be still receiving the messages from them).
Or change your privacy settings in whatsapp according to your convince.
Upvotes: 1 <issue_comment>username_3: This idea might be helpful:
1.Backup the contacts which you have hide it.
2.Delete those contacts from your people.
3.Now Synchronize the contacts and do refresh in Whatsapp. Now you got to see no contacts, I mean the contacts which you try to hide.
4.Available Possible ways : (A) Go to Settings > General > Accounts > Whatsapp > Untick the option. (B) In Whatsapp, Go to Menu Button > Settings > Contacts > Untick Show all contacts. (C) People > Menu > Accounts > Untick Auto-sync app data
(Click image to enlarge)
Phone Settings >[](https://i.stack.imgur.com/fdURk.png) Whatsapp > [](https://i.stack.imgur.com/AYy5k.jpg) People > [](https://i.stack.imgur.com/mtDqq.jpg)
5.Reboot your Phone.
6.Now restore those contacts.
Upvotes: 1 <issue_comment>username_4: I think [Hide Contacts](https://play.google.com/store/apps/details?id=nothingapps.com.secondarycontacts) could be what you are looking for. It can't be read by other apps and you can call or send message to a hidden contact, import contacts from the default app and it also has caller ID.
I was also looking for a similar app, didn't find it so I decided to develop one myself.
Upvotes: 0 |
2016/04/12 | 935 | 3,289 | <issue_start>username_0: I am new to Whatsapp Messenger.
I have contacts in my address book.
I have been added as a member into a GROUP, why doesn't the group appear in my contacts please the same as my contacts do?
Many thanks<issue_comment>username_1: >
> I mean, I don't want that group to appears in whatsapp what-so-ever
>
>
>
If this is made possible by WhatsApp, how are you suppose to send message to that group? If you cannot send the message, then what is point of having that group?
You may want to check the [WhatsApp FAQ](https://www.whatsapp.com/faq/en/android/23776567) but AFAIK there is **no mention of Hiding** the group in Whatsapp.
If you do not want to send the messages from that group, you can simply exit the group
Another option is to [mute the group](https://www.whatsapp.com/faq/en/android/23776567#mute). You will still receive messages sent to the group, but your phone will not vibrate or make noise when they are received.
If your only intention is to avoid "other people" from knowing which WhatsApp group you belong to, then you can use [Locking apps](https://play.google.com/store/search?q=lock%20apps) to achieve it.
>
> If not, is there any app that can easily hide (ie, remove a group from
> Android contacts) and unhide whenever you want?
>
>
>
That group is specific to WhatsApp and is not known to other parts of Android system as well as to other apps.
It is very unlikely that WhatsApp will allow other app to operate(hide/unhide) on the User data belonging to WhatsApp. Not possible AFAIK.
Upvotes: 0 <issue_comment>username_2: The question is not specific hope so. Do you want to hid yourself from certain friends who are in your contact list?
If so, then you can add them to block them in the block list. (But you will be still receiving the messages from them).
Or change your privacy settings in whatsapp according to your convince.
Upvotes: 1 <issue_comment>username_3: This idea might be helpful:
1.Backup the contacts which you have hide it.
2.Delete those contacts from your people.
3.Now Synchronize the contacts and do refresh in Whatsapp. Now you got to see no contacts, I mean the contacts which you try to hide.
4.Available Possible ways : (A) Go to Settings > General > Accounts > Whatsapp > Untick the option. (B) In Whatsapp, Go to Menu Button > Settings > Contacts > Untick Show all contacts. (C) People > Menu > Accounts > Untick Auto-sync app data
(Click image to enlarge)
Phone Settings >[](https://i.stack.imgur.com/fdURk.png) Whatsapp > [](https://i.stack.imgur.com/AYy5k.jpg) People > [](https://i.stack.imgur.com/mtDqq.jpg)
5.Reboot your Phone.
6.Now restore those contacts.
Upvotes: 1 <issue_comment>username_4: I think [Hide Contacts](https://play.google.com/store/apps/details?id=nothingapps.com.secondarycontacts) could be what you are looking for. It can't be read by other apps and you can call or send message to a hidden contact, import contacts from the default app and it also has caller ID.
I was also looking for a similar app, didn't find it so I decided to develop one myself.
Upvotes: 0 |
2016/04/12 | 583 | 2,224 | <issue_start>username_0: I'm using HTC Desire 626. I have more than 2 GB space left on Phone Storage. But I can't install any more apps or games. It's saying that my phone is out of space.
[](https://i.stack.imgur.com/TkAPn.jpg)
I've tried cleaning up all kind of cache files. But no luck!
Please help me out! This problem is driving me mad.<issue_comment>username_1: I had faced same issue with my micromax mobile.
Issue in my case was only 890 mb was available for installing apps. Even though there was around 4.5 Gb free space in phone memory. Your issue seems to be same as mine. What you have to do is to reparation the phone memory so as to allocate more space for installing the apps. Downside is whatever memory allocated for apps can only be used for installing apps. You cannot store photos or music in it . further your phone should be routed. Repartitioning procedure for your phone may be available in net.
Check if your phone has separate internal SD card.
I had repartitioned to increase app memory to 2.5 GB.
I am attaching link with similar issue.
[Micromax Unite 2 A106, app installation error](https://android.stackexchange.com/questions/84190/micromax-unite-2-a106-app-installation-error)
Upvotes: 0 <issue_comment>username_2: (from an Android 4.4.4 user on a Nexus 7 2013)
I began to have this problem after installing the Xposed module "XInstaller". I uninstalled that module and everything went back to normal.
Important: It can get easy to confuse all of these X words. It wasn't "Xposed Installer" that was the issue. The issue was the module for Xposed called "XInstaller". This module lets you change some of Android's default app installation/uninstallation behaviors. For now, I'm leaving that module alone.
Upvotes: 1 <issue_comment>username_3: Maybe the problem is not the lack of space but the google Play app that doesn't work properly. If you really have free space in your phone, try to download any APK and install it (You might need to activate the option "Unknown Sources" from security settings)....if that doesn't work either.....Try to clear Cache/Data for Google Play app and see if that works.
Upvotes: -1 |
2016/04/12 | 213 | 800 | <issue_start>username_0: I want to run a continuous logcat in the background to capture everything happening on my phone.
This needs to be written to disk line by line without delay. I want to capture the cause of random reboots.<issue_comment>username_1: You need root for this (where I was making mistakes).
So, in a terminal:
`su`
`logcat V > /sdcard/logcat.txt`
then, without killing the command, just press home to keep the terminal running in the background.
* V means verbose (the highest level of detail)
* D means debug
and there are other less detailed levels.
Exercise caution when sharing D and V level logs; they contain highly sensitive information.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Run this command:
```
adb -e logcat > log_file_name.txt
```
Upvotes: 0 |
2016/04/12 | 790 | 2,891 | <issue_start>username_0: This notification keeps popping up on my phone and I don't know if it's real or not, it reads:
"Battery has been infected by 6 serious problem! Install DU Battery and all problems will be wiped out."
[](https://i.stack.imgur.com/wMRJM.png)<issue_comment>username_1: **It's a virus/maleware.**
Sources that describe very similar situations:
<http://forums.androidcentral.com/ask-question/658156-apus-du-battery-saver-virus.html>
<https://productforums.google.com/forum/#!topic/nexus/7XbiK-frhVA>
It sounds like it's actually a really old scam (this may be a newer variant of it) Here's a story from 2011 that sounds like the same issue:
<http://www.pcworld.com/article/241967/sleazy_ads_on_android_devices_push_bogus_battery_upgrade_warnings.html>
Upvotes: 2 <issue_comment>username_2: To give a view of why it is impossible for an app to diagnose much less than fix battery problems, a little background is in order
* Battery houses a sensor/chip that is responsible for monitoring vital parameters like *temperature, voltage, NFC etc*. This information is conveyed to the OS through one of the pins that makes contact when the battery is in place (normally three pins, one being for this and other two for charging / discharging)
* This information is conveyed to the battery driver portion of the ROM. These drivers cannot be modified permanently, even if your device is rooted, since these are initialised during boot up
Hence to identify state of the battery (other than the vital parameters) discussed above, you require a *physical* way of interacting with the battery. This should convince you that the claims made by the app are nonsense , aimed at attracting revenue
* Android doesn't need anti virus - see [Is an antivirus really needed for Android?](https://android.stackexchange.com/q/341/131553). So that only leaves *malware* as the cause. Have a look at our [malware](/questions/tagged/malware "show questions tagged 'malware'") tag for solutions to fix. [This](http://thedroidguy.com/2015/12/galaxy-s5-getting-pop-ups-about-virus-infection-1052833) suggests factory reset can fix, in which case you are lucky or you may need to flash stock ROM again- in any case make a back up of your data
Upvotes: 2 <issue_comment>username_3: This is very annoying situation.
First thing to try is remove all cache files of those apps which has internet connectivity. On net there are many sites, those try to inject some malicious codes. This is first step to identify.
If first is not helpful, try to check the background running apps. Any suspicious app that you think, force stop that. See if it helps. If you find out any app which is on play store, you must contact and report this to developer.
You may also try to check all downloaded apps. May be something there.
Upvotes: 0 |
2016/04/13 | 893 | 3,299 | <issue_start>username_0: I was having Marshmallow stock ROM rooted with TWRP installed. The way I had installed TWRP recoery made the monthly security updates uninstallable.
After learning the mistake, I decided to download the MOB30D build and flashed as I said in [my answer](https://android.stackexchange.com/questions/125210/boot-loop-after-flashing-android-6-0-marshmallow-on-nexus-5-follow-up/125214#125214).
After installing the phone was working normally. I tried to install TWRP through ADB command line and there was no error messages. When I rebooted the phone in recovery mode I find a red triangle. After some fiddling with power and volume buttons I saw the following recovery screen and used it for rebooting only:
[](https://i.stack.imgur.com/MrAHf.jpg)
I tried to flash the latest TWRP version, downloading again thinking the download might be corrupted. I then tried several old version of TWRP and same result. I tried flashing stock recovery, doing all these again with erasing the recovery partition first - all results in red triangle.
I then tried Nexus RootKit flashing stock and TWRP image (downloading again); still no use. I tried Nexus Rootkit's "Boot into temp recovery image" which did not work well but suddenly worked. I flashed latest TWRP image through the temp TWRP and it too says all okay, but no joy:
[](https://i.stack.imgur.com/OHEkM.jpg)
**Question:**
I am not sure what else I can do to install TWRP. I want TWRP basically to root and for emergency purposes. What I can do further to install TWRP and if not at least root without a recovery partition.
**Update**
I tried CWM recovery as well and same result. I tried to lock the bootloader and unlock again there by resetting everything. Still no use.<issue_comment>username_1: I am still puzzled about how the recovery issue is so stubborn. However, after reading through a blog post on [root-your-android-device-without-flashing-custom-recovery](http://codecorner.galanter.net/2015/02/15/root-your-android-device-without-flashing-custom-recovery/), I understood that you can boot your phone temporarily on a custom recovery and install root binary.
Being lazy and already downloaded the [Nexus Root Kit](http://www.wugfresh.com/nrt/), I just clicked `Root` which exactly did this and voila, the device is rooted.
I am still hunting for a solution for my recovery issue though. Thought this new approach could help some one.
Upvotes: 0 <issue_comment>username_2: The problem is your not flashing SuperSU or deleting /system/bin/install-recovery.sh. Android has safeguards which revert to the stock recovery thru the install-recovery.sh, SuperSU by default disables this function so I'd recommend flashing it after you install TWRP.
Steps
1. fastboot flash recovery twrp.img or fastboot boot twrp.img
2. flash twrp.img inside of recovery if you just booted it instead of using fastboot flash
3. flash SuperSU-2.79-SR3.zip
OR
3. tap the mount tab
4. tap System
5. go back to main screen and tap advanced then file manager
6. navigate to /system/bin and delete install-recovery.sh
I recommend using the SuperSU route but whatever floats your boat.
Upvotes: 1 |
2016/04/13 | 561 | 1,986 | <issue_start>username_0: A few days ago, my phone ran an automatic update of Titanium backup, which used to work fine.
Now when I launch it, I am stuck on its home screen. I've tried restarting my phone, nothing changed :
[](https://i.stack.imgur.com/Q9cwh.jpg)
There is no backup/restore tab, no schedule tab...
What can I do to remedy this ? Will reinstalling TB be useful ? Will doing so delete its data (like the back uped apps) ?
The phone : Asus Zenfone 2 Laser (ze500kl) rooted with SuperSU, using Android 5.0.2<issue_comment>username_1: I am still puzzled about how the recovery issue is so stubborn. However, after reading through a blog post on [root-your-android-device-without-flashing-custom-recovery](http://codecorner.galanter.net/2015/02/15/root-your-android-device-without-flashing-custom-recovery/), I understood that you can boot your phone temporarily on a custom recovery and install root binary.
Being lazy and already downloaded the [Nexus Root Kit](http://www.wugfresh.com/nrt/), I just clicked `Root` which exactly did this and voila, the device is rooted.
I am still hunting for a solution for my recovery issue though. Thought this new approach could help some one.
Upvotes: 0 <issue_comment>username_2: The problem is your not flashing SuperSU or deleting /system/bin/install-recovery.sh. Android has safeguards which revert to the stock recovery thru the install-recovery.sh, SuperSU by default disables this function so I'd recommend flashing it after you install TWRP.
Steps
1. fastboot flash recovery twrp.img or fastboot boot twrp.img
2. flash twrp.img inside of recovery if you just booted it instead of using fastboot flash
3. flash SuperSU-2.79-SR3.zip
OR
3. tap the mount tab
4. tap System
5. go back to main screen and tap advanced then file manager
6. navigate to /system/bin and delete install-recovery.sh
I recommend using the SuperSU route but whatever floats your boat.
Upvotes: 1 |
2016/04/14 | 4,690 | 11,410 | <issue_start>username_0: I am trying to encrypt my rooted Nexus 5 *(running CyanogenMod 13/Marshmallow)*.
Here is how I am doing:
1. With the phone running and connected to USB, make sure that `/mnt/asec/` is empty
2. Long-press the power physical button, this makes the Power off dialog pop up
3. Long-press the "Power off" option of the pop up, confirm that you want to reboot in Safe Mode
4. Without starting any app, run `adb shell` on the computer then `su` to get root then `pkill -KILL daemonsu` to kill the SuperSU daemon
5. Settings > Security > Encrypt phone, confirm
6. The phone reboots, from the computer type `adb logcat`
Here is what I see:
```
I ServiceManager: service 'drm.drmManager' died
D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so
D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
I Adreno-EGL: : QUALCOMM Build: 09/02/15, 76f806e, Ibddc658e36
E BootAnimation: couldn't find audio\_conf.txt
W BootAnimation: Audio service is not initiated.
D BootAnimation: Use save memory method, maybe small fps in actual.
D BootAnimation: Use save memory method, maybe small fps in actual.
E Cryptfs : unmounting /data failed: Device or resource busy
E Cryptfs : Bad magic for real block device /dev/block/platform/msm\_sdcc.1/by-name/metadata
W vold : type=1400 audit(0.0:19): avc: granted { read } for name="mmcblk0p28" dev="tmpfs" ino=6735 scontext=u:r:vold:s0 tcontext=u:object\_r:userdata\_block\_device:s0 tclass=blk\_file
W vold : type=1400 audit(0.0:20): avc: granted { read open } for name="mmcblk0p28" dev="tmpfs" ino=6735 scontext=u:r:vold:s0 tcontext=u:object\_r:userdata\_block\_device:s0 tclass=blk\_file
W vold : type=1400 audit(0.0:21): avc: granted { ioctl } for path="/dev/block/mmcblk0p28" dev="tmpfs" ino=6735 ioctlcmd=1260 scontext=u:r:vold:s0 tcontext=u:object\_r:userdata\_block\_device:s0 tclass=blk\_file
D Cryptfs : Just asked init to shut down class main
W vold : emulated unmount requires state mounted
E Cryptfs : unmounting /data failed: Device or resource busy
W SocketClient: write error (Broken pipe)
W SocketClient: Unable to send msg '200 8 -
```
At that point the CyanogenMod loading screen keeps animating for 10+ hours and probably forever if I don't stop it. Pressing the Power physical button for 5 seconds makes it reboot and start normally this time. Obviously encryption has not been performed.
I tried the whole procedure twice.
What could be causing this `Cryptfs : unmounting /data failed: Device or resource busy` problem?<issue_comment>username_1: As I've found in [this bug report](https://code.google.com/p/android/issues/detail?id=58073#c29), you can watch the current open files by running this command in a second shell:
```
while true; do lsof | grep /data; sleep 0.2; done
```
This checks every 0.2s which files are still in use on /data. In my case it was chainfire's SuperSU, which had a logfile opened.
Additionally, I've found out that a 2nd SDCard partition was mounted to /data/sdext2:
```
mount | grep "/data"
```
This was due to an app "Link2SD". With this command I was able to figure out, where the mounting happens:
```
adb shell
# make system partition writable
mount -o remount,rw /system
grep -R "/data/sdext2" /system
```
I've commented the "mount" commands out and restartet my phone. Now encryption works fine.
Upvotes: 2 <issue_comment>username_2: I've spend all day with the issue of the never ending encryption (LG Nexus 5, Cyanogenmod 13) and somehow figured out to check the logs and eventually came across this question here on Stack Exchange. @username_1s hint is a good one, but a little bit complicated. **TL;DR I was able to fix this by simply booting into safe mode.**
For the record, this is the log of the error I had (same as OP):
```
01-24 00:15:05.132 871 1170 D CryptdConnector: SND -> {1 cryptfs getfield SystemLocale}
01-24 00:17:05.077 871 910 D CryptdConnector: SND -> {2 cryptfs setfield SystemLocale de-DE}
05-26 20:33:36.401 871 910 D CryptdConnector: SND -> {3 cryptfs setfield SystemLocale en-US}
05-26 20:35:05.696 871 1760 D CryptdConnector: SND -> {4 cryptfs setfield PatternVisible 0}
05-26 20:35:05.697 871 1760 D CryptdConnector: SND -> {5 cryptfs setfield PasswordVisible 1}
05-26 20:35:05.706 871 3096 D CryptdConnector: SND -> {6 cryptfs setfield SystemLocale en-US}
05-26 20:35:06.491 871 3095 D CryptdConnector: SND -> {7 cryptfs enablecrypto inplace default}
05-26 20:35:06.495 150 162 E Cryptfs : Bad magic for real block device /dev/block/platform/msm_sdcc.1/by-name/metadata
05-26 20:35:06.498 150 162 D Cryptfs : Just asked init to shut down class main
05-26 20:35:37.010 150 162 E Cryptfs : unmounting /data failed: Device or resource busy
05-26 20:35:37.140 150 162 E Cryptfs : Bad magic for real block device /dev/block/platform/msm_sdcc.1/by-name/metadata
05-26 20:35:37.145 150 162 D Cryptfs : Just asked init to shut down class main
05-26 20:35:57.212 150 162 E Cryptfs : unmounting /data failed: Device or resource busy
```
What I did, was the following. Since I tried a lot and wiped/flashed the device around a hundred times, I assume it only works on a clean install of cyanogenmod. Also, I read something about issues with Team Win Recovery Mode (TWRP) and how it formats the partitions. So here is what I did:
1. Flashed the **Cyanogenmod recovery image**
```
sudo fastboot flash recovery /path/to/cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NM-hammerhead-recovery.img
```
2. Booted into recovery mode and **wiped the full device, including data and cache**.
3. Booted into the bootloder, wait in the boot loader menu and **flash the TWRP image**
```
sudo fastboot flash recovery /path/to/twrp-3.0.2-0-hammerhead.img
```
4. Still in the bootloader, go into the recovery mode, twrp this time.
5. Push the cyanogenmod zip to the phone.
```
adb push /path/to/cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NM-hammerhead.zip /sdcard
```
6. Use twrp to install cyanogenmod from the zip. **Do not wipe cache or format data**! It's tempting since a button pops up, but I read that there might be issues with malformed partitions. Also, **do not reboot yet!** Just go back.
7. Reboot into the bootloader. **Don't boot cyanogenmod yet**. Make sure you are in the boot loader.
8. Flash the **Cyanogenmod recovery image** again.
```
sudo fastboot flash recovery /path/to/cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NM-hammerhead-recovery.img
```
9. Now, boot cyanogenmod, set language, date, time, timezone. **Don't change any settings yet**, don't connect to wifi.
10. Press the power button until the **Shutdown dialog** pops up.
11. **Long press the shut down option** until a confirmation dialog comes, which askes you to confirm rebooting into **safe mode**.
12. Confirm and **reboot into safe mode**.
13. Go to settings and security, **hit encrypt phone and confirm encryption**, again.
14. Wait a few minutes. On a clean install, it should not take more than 5-10 minutes on a Nexus 5.
15. It will reboot into normal mode as soon as it finished. Confirm in security settings the phone is encrypted.
Here's the `adb logcat` to confirm it worked out:
```
05-26 21:17:20.694 799 897 D CryptdConnector: SND -> {1 cryptfs getfield SystemLocale}
05-26 21:17:33.095 799 1055 D CryptdConnector: SND -> {2 cryptfs getpw}
05-26 21:17:33.096 149 160 D VoldCryptCmdListener: cryptfs getpw
05-26 21:17:33.097 799 1055 D CryptdConnector: SND -> {3 cryptfs clearpw}
05-26 21:17:33.098 149 160 D VoldCryptCmdListener: cryptfs clearpw
05-26 21:18:42.691 799 981 D CryptdConnector: SND -> {4 cryptfs setfield PatternVisible 0}
05-26 21:18:42.692 799 1637 D CryptdConnector: SND -> {5 cryptfs setfield PasswordVisible 1}
05-26 21:18:42.701 799 1055 D CryptdConnector: SND -> {6 cryptfs setfield SystemLocale en-US}
05-26 21:18:43.476 799 981 D CryptdConnector: SND -> {7 cryptfs enablecrypto inplace default}
05-26 21:18:43.480 149 160 E Cryptfs : Bad magic for real block device /dev/block/platform/msm_sdcc.1/by-name/metadata
05-26 21:18:43.484 149 160 D Cryptfs : Just asked init to shut down class main
05-26 21:18:44.950 149 160 D Cryptfs : unmounting /data succeeded
05-26 21:18:44.951 149 160 I Cryptfs : keymaster module name is Keymaster QCOM HAL
05-26 21:18:44.951 149 160 I Cryptfs : keymaster version is 3
05-26 21:18:44.951 149 160 I Cryptfs : Found keymaster0 module, using keymaster0 API.
05-26 21:18:44.954 149 160 I Cryptfs : keymaster module name is Keymaster QCOM HAL
05-26 21:18:44.954 149 160 I Cryptfs : keymaster version is 3
05-26 21:18:44.954 149 160 I Cryptfs : Found keymaster0 module, using keymaster0 API.
05-26 21:18:45.553 149 160 I Cryptfs : Using scrypt with keymaster for cryptfs KDF
05-26 21:18:46.034 149 160 I Cryptfs : keymaster module name is Keymaster QCOM HAL
05-26 21:18:46.034 149 160 I Cryptfs : keymaster version is 3
05-26 21:18:46.034 149 160 I Cryptfs : Found keymaster0 module, using keymaster0 API.
05-26 21:18:46.035 149 160 I Cryptfs : Signing safely-padded object
05-26 21:18:47.040 149 160 D Cryptfs : Just triggered post_fs_data
05-26 21:18:47.090 149 160 D Cryptfs : post_fs_data done
05-26 21:18:49.091 149 160 D Cryptfs : Just triggered restart_min_framework
05-26 21:18:49.091 149 160 I Cryptfs : Using scrypt with keymaster for cryptfs KDF
05-26 21:18:49.676 149 160 I Cryptfs : keymaster module name is Keymaster QCOM HAL
05-26 21:18:49.676 149 160 I Cryptfs : keymaster version is 3
05-26 21:18:49.676 149 160 I Cryptfs : Found keymaster0 module, using keymaster0 API.
05-26 21:18:49.685 149 160 I Cryptfs : Signing safely-padded object
05-26 21:18:50.297 149 160 I Cryptfs : Enabling support for allow_discards in dmcrypt.
05-26 21:18:50.297 149 160 I Cryptfs : target_type = crypt
05-26 21:18:50.297 149 160 I Cryptfs : real_blk_name = /dev/block/platform/msm_sdcc.1/by-name/userdata, extra_params = 1 allow_discards
05-26 21:18:50.300 149 160 I Cryptfs : Encrypting ext4 filesystem in place...
05-26 21:18:50.300 149 160 I Cryptfs : Encrypting group 0
05-26 21:18:50.301 149 160 I Cryptfs : Encrypting from sector 0
05-26 21:18:50.371 149 160 I Cryptfs : Encrypted to sector 790016
05-26 21:18:50.371 149 160 I Cryptfs : Encrypting from sector 802816
05-26 21:18:50.378 149 160 I Cryptfs : Encrypted to sector 813568
05-26 21:18:50.378 149 160 I Cryptfs : Encrypting from sector 819200
05-26 21:18:50.388 149 160 I Cryptfs : Encrypted to sector 840704
[...]
05-26 21:19:43.819 149 160 I Cryptfs : Encrypting group 215
05-26 21:19:43.821 149 160 I Cryptfs : Encrypted to sector 3590587392
05-26 21:19:43.821 149 160 I Cryptfs : Encrypting from sector 3607101440
05-26 21:19:43.896 149 160 I Cryptfs : Encrypting group 216
05-26 21:19:43.898 149 160 I Cryptfs : Encrypted to sector 3607364608
05-26 21:19:43.898 149 160 I Cryptfs : Encrypting from sector 3623878656
05-26 21:19:43.971 149 160 I Cryptfs : Encrypting group 217
05-26 21:19:43.974 149 160 I Cryptfs : Encrypted to sector 3624141824
05-26 21:19:43.974 149 160 I Cryptfs : Encrypting from sector 3640655872
05-26 21:19:44.108 149 160 I Cryptfs : Encrypted to sector 3641183744
```
Good luck encrypting your phone in **safe mode**!
Upvotes: 1 |
2016/04/14 | 469 | 1,596 | <issue_start>username_0: I want to modify a file under /system. The problem is that is read-only, and even with root I cannot set it as read-write.
I've tried the following:
* Root Explorer (the automatic button)
* A one click app (<https://play.google.com/store/apps/details?id=com.blogspot.superthomaslab.mountsystemrorw>)
* The following commands, on Terminal Emulator: `su` and after that `mount -o rw,remount /system`. Along with that some variants (specifiying `-t`, using `-rw`, `mount -o rw,remount /system /system`)
---
Some useful informations:
* The device is a Redmi 3
* Using android 5.1.1, on MIUI 6.4.7 (china developer version)
* I have root access, and enabled it for the apps mentioned above
* Bootloader is unlocked
* No SD card
* Output of `mount | grep system`: `/dev/block/dm-0 /system ext4 ro,seclabel,relatime,discard,data=ordered 0 0`
---
I would like to manage the /system folder directly from the phone. I'm pretty hopeless, I've tried googling 2 hours for a working solution. Thanks in advance.<issue_comment>username_1: I've found the source of the problem asking in the MIUI forums, the boot image will not accept a modified /system.
You have to use the adb interface: `adb devices` then `adb disable-verity`.
Disclaimer: I'm not responsible for any damage caused by these operations.
Upvotes: 3 [selected_answer]<issue_comment>username_2: As suggested by user aalaap [here](https://android.stackexchange.com/a/136101/96277), disabling **Mount Namespace Separation** setting in **SuperSU** solved this issue for me on ZP999 and SuperSU 2.82 SR5.
Upvotes: 0 |
2016/04/14 | 365 | 1,402 | <issue_start>username_0: I'm looking for a solution to getting storage back on my phone because, as of yesterday, I seemed to lose almost 10GB of space. I have a Galaxy s6 and I frequently connect it to my computer via the charger and transfer video files to and from both. After I'm done with the files, I delete them, getting my space back. But, yesterday a problem arose when I transferred video files TO my computer and deleted them from my phone. The space never cleared up and now I have (after much cleaning up with many apps) only a little over 1GB of space left. I need to get my 7-9 GB of space back and have done much research.
The \*#9900# trick doesn't bring me to any options of deleting possible SysDump files and I'm not looking to root my phone. If there are any other ideas, please let me know. Thank you in advance!<issue_comment>username_1: I've found the source of the problem asking in the MIUI forums, the boot image will not accept a modified /system.
You have to use the adb interface: `adb devices` then `adb disable-verity`.
Disclaimer: I'm not responsible for any damage caused by these operations.
Upvotes: 3 [selected_answer]<issue_comment>username_2: As suggested by user aalaap [here](https://android.stackexchange.com/a/136101/96277), disabling **Mount Namespace Separation** setting in **SuperSU** solved this issue for me on ZP999 and SuperSU 2.82 SR5.
Upvotes: 0 |
2016/04/14 | 1,326 | 4,647 | <issue_start>username_0: I own an Samsung Galaxy Tab Pro 10.1 wifi (picassowifi). I flashed the recovery with TWRP and installed CyanogenMod 10 on it. After a couple of months I tried installing a nightly update for CyanogenMod but after that I couldn't boot the tablet anymore. It just crashed after displaying the bootanimation. Now I want to reinstall the old version of CM.
But there are a couple of problems that occured:
* I can't connect to the tab via adb
* When I tried installing CM from a zip, installation fails with "E:
Unable to mount /system"
* /system can't be mounted in the Mount-Menu of TWRP
I tried formatting the internal space, but it had no effect.
I read that "E: Unable to mount /system" could be solved by flashing a new recovery or switching to ClockworkMod. But flashing with heimdall also fails:
root@Ubuntu:~# heimdall flash --RECOVERY twrp-2.8.7.0-picassowifi.img --no-reboot
```
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
ERROR: Failed to send data!Releasing device interface...
```
root@Ubuntu:~# heimdall detect --verbose --usb-log-level debug
```
[timestamp] [threadID] facility level [function call]
--------------------------------------------------------------------------------
[ 0.002649] [00000af8] libusbx: debug [libusb\_get\_device\_list]
[ 0.002746] [00000af8] libusbx: debug [libusb\_get\_device\_descriptor]
Device detected
[ 0.002799] [00000af8] libusbx: debug [libusb\_exit]
[ 0.002818] [00000af8] libusbx: debug [libusb\_exit] destroying default context
```
root@Ubuntu:~# heimdall print-pit --verbose
```
Initialising connection...
Detecting device...
length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 021B
iMan:iProd:iSer: 1:2:0
nb confs: 1
interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 83
max packet size: 0010
polling interval: 09
interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 02
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...
libusbx: error [op_set_interface] setintf failed error -1 errno 71
ERROR: Setting up interface failed!
Releasing device interface...
```
So my question are:
* (How) can I fix this?
* Is there any other way to flash the recovery in this kind of environment?
Maybe manually with the Terminal from TWRP?<issue_comment>username_1: Fix is not too much tough.
* You need to download [Odin](http://odindownload.com/) ( It is tool like Heimdall , but has good control. It is Windows software. ) and drivers for your device.
* Now need to open download mode. Place the tablet into Download Mode by pressing and holding Volume Down, Home and Power buttons together until a construction Android robot icon with a warning triangle appears on screen. Now press the Volume Up button to enter into Download Mode.
* Launch Odin on the computer as an Administrator. Connect the Galaxy tablet to the computer using USB cable while it is in Download Mode. Wait for some time until Odin detects the device. When the phone is connected successfully, an Added message will appear under Odin message box. You should also see the ID: COM box in Odin will turn blue with the COM port number indicating successful connection.
* Now click on PDA button and choose your recovery. Click start and wait to show **pass**.
* Now you have TWRP as you asked.
Here is more suggestion, if this even fails to flash or something you feel going more worse. Then you will be needing stock rom to flash by using Odin in download mode. You can search for that on net. After that you can flash again your CyanogenMod rom.
**NOTE:** It is never recommended to flash any nightly build rom. So, please be careful before going to do like this in future. The reason behind this that nightly builds are not matured and may be some major bugs that has to be fixed.
Upvotes: 0 <issue_comment>username_2: I fixed the libusbx error
`libusbx: error [op_set_interface] setintf failed error -1 errno 71` by following [these](https://github.com/Benjamin-Dobell/Heimdall/issues/318#issuecomment-168389060) instructions:
```
echo "blacklist cdc_acm" >/etc/modprobe.d/cdc_acm-blacklist.conf
rmmod cdc_acm # ignore ERROR is not currently loaded
```
After that the "Setting up interface..." step passed well for me.
Upvotes: 1 |
2016/04/15 | 582 | 2,353 | <issue_start>username_0: Does the Android OS allow for screen recording with audio? Is there an app that can do this?
I have been using android debug bridge to capture video of the screen, but that comes without audio.
I have tried a couple apps , but have not found any that do audio. I found one that uses the mic to record the speaker, which is obviously pretty crappy.<issue_comment>username_1: Fix is not too much tough.
* You need to download [Odin](http://odindownload.com/) ( It is tool like Heimdall , but has good control. It is Windows software. ) and drivers for your device.
* Now need to open download mode. Place the tablet into Download Mode by pressing and holding Volume Down, Home and Power buttons together until a construction Android robot icon with a warning triangle appears on screen. Now press the Volume Up button to enter into Download Mode.
* Launch Odin on the computer as an Administrator. Connect the Galaxy tablet to the computer using USB cable while it is in Download Mode. Wait for some time until Odin detects the device. When the phone is connected successfully, an Added message will appear under Odin message box. You should also see the ID: COM box in Odin will turn blue with the COM port number indicating successful connection.
* Now click on PDA button and choose your recovery. Click start and wait to show **pass**.
* Now you have TWRP as you asked.
Here is more suggestion, if this even fails to flash or something you feel going more worse. Then you will be needing stock rom to flash by using Odin in download mode. You can search for that on net. After that you can flash again your CyanogenMod rom.
**NOTE:** It is never recommended to flash any nightly build rom. So, please be careful before going to do like this in future. The reason behind this that nightly builds are not matured and may be some major bugs that has to be fixed.
Upvotes: 0 <issue_comment>username_2: I fixed the libusbx error
`libusbx: error [op_set_interface] setintf failed error -1 errno 71` by following [these](https://github.com/Benjamin-Dobell/Heimdall/issues/318#issuecomment-168389060) instructions:
```
echo "blacklist cdc_acm" >/etc/modprobe.d/cdc_acm-blacklist.conf
rmmod cdc_acm # ignore ERROR is not currently loaded
```
After that the "Setting up interface..." step passed well for me.
Upvotes: 1 |
2016/04/15 | 270 | 1,006 | <issue_start>username_0: i'm new to android. I recently bought a xperia l phone from my friend in which he had Cm11 installed i decided to upgrade to cm13 and it really messed up the phone.. the sim card was not detected and play store didn't work!!! so i came back to cm11 which then entered boot loop. So i decided to go with cm12.1. Now the pay services work like charm... BUTTTT sim not detected problem still persists!!! so can some one here gimme the link of the radio or modem files of xperia l c2104 or help me with any other solution for this problem... thanks in advance<issue_comment>username_1: Your baseband was messed up. Try to flash the stock ROM and don't flash CM13.
This happened on my Samsung Galaxy A3, when its baseband was messed up when I try to install it.
Upvotes: 1 <issue_comment>username_2: Yea flash stock rom of xperia...(model)..via download mode...
You need PC
Qpst installed on it&
And to go in download mode press volume+&volume- then connect the USB cable
Upvotes: -1 |
2016/04/15 | 831 | 3,472 | <issue_start>username_0: I'm trying to find a way to set up and manage multiple address books on my phone, and to keep them distinct.
I want to do that to separate my personal contacts from the work ones.
The default behaviour is to collect all contacts from my various accounts in a single big list (two google accounts and some other social networking apps), but it is a bit of a mess to have everything together. I know that the default app have a built-in group manager, but it has a bit of a clunky interface that's not very handy (whenever you open it, you are several clicks away from the desired grouping).
Ideally I'd like to have a solution that let me manage my contacts in a powerful and customizable way, i.e. with tags, custom groupings, and so on, and that let me switch easily between said groups without too much clicking around.
How can I do that? I'm also willing to consider a third party app, but right now everything I've tried still collects every contact from all accounts together.<issue_comment>username_1: One app that works to create different groups of contacts is [contacts plus](https://play.google.com/store/apps/details?id=com.ahnchan.ContactsPlus). It is a bit of a crummy interface but works. The only way I found of doing via the native Google app is by creating different Google accounts and saving the contacts to each specific account, then signing in to an account and signing out of the other when you need to use another set of contacts.
Upvotes: 1 <issue_comment>username_2: Yes you can have multiple address books. You could just use google account for this purpose. You can put different people in different groups and do a custom view in settings to show the items you like.
Upvotes: -1 <issue_comment>username_3: [This might work.](http://www.dejaoffice.com/) It's an app called DejaOffice. It allows you to separate your contacts, calendars, etc into different sections. I've used it before and it's a great app. Or an alternative is to create a different Google account for each "Profile."
Upvotes: 1 <issue_comment>username_4: I've found an app called [FullContact](https://play.google.com/store/apps/details?id=com.fullcontact.ledene) that pretty much solved my problem. It can be connected to a Google account (not necessarily the one used for the Android phone). Its address book is completely separated from the main phone contacts app (not like, I.E. Contacts+).
So now I have my personal contacts (linked to my main Google account) in the default contact app, and my work ones (linked to another Google account) in FullContact
Upvotes: 1 <issue_comment>username_5: [Contacts VCF](https://play.google.com/store/apps/details?id=by.androld.contactsvcf&hl=en) allows you to have multiple address books. You can open and edit vCard files (.vcf). Each vCard file is its own separate address book.
Contacts VCF does not usually access the main address book on the phone but you can import your contacts from there.
Since this app works with the standard file format for address books, it's compatible with other apps and PC applications.
Upvotes: 1 <issue_comment>username_6: I managed to do it with Android for work profiles. It is convoluted and pain in the ass to set up but you get 2 completely separate contacts, gmail, calendar, etc
Upvotes: 1 <issue_comment>username_7: OpenContacts works well as separate private addtessbook
<https://f-droid.org/en/packages/opencontacts.open.com.opencontacts/>
Upvotes: 1 |
2016/04/15 | 858 | 3,561 | <issue_start>username_0: A little while back, I passed on my **Samsung Galaxy S6** to my mom. She used the fingerprint scanner to get into the device. Today, her battery died for the first time and because you can't use her fingerprint the first time after a restart **and** she forgot the backup password, we cannot access the phone.
I thought there was an option to reset the device using her Google account after entering the wrong code a few times, but that option doesn't appear unfortunately. I read about Samsung's Find my Mobile, and while I was using the S6 I activated it and I can find it in my list of phones when I login with my Samsung Account, but I am unable to unlock the phone with it because it says it's offline at the moment (it's online, but I assume it says that because it isn't activated anymore, I reset the phone before I gave it to my mom).
I know that I can enter recovery mode to factory reset the device. The thing is that she really wants the pictures on it. Is there **any way at all** for me to get the pictures from the device? If I'm correct, it was fully stock.<issue_comment>username_1: One app that works to create different groups of contacts is [contacts plus](https://play.google.com/store/apps/details?id=com.ahnchan.ContactsPlus). It is a bit of a crummy interface but works. The only way I found of doing via the native Google app is by creating different Google accounts and saving the contacts to each specific account, then signing in to an account and signing out of the other when you need to use another set of contacts.
Upvotes: 1 <issue_comment>username_2: Yes you can have multiple address books. You could just use google account for this purpose. You can put different people in different groups and do a custom view in settings to show the items you like.
Upvotes: -1 <issue_comment>username_3: [This might work.](http://www.dejaoffice.com/) It's an app called DejaOffice. It allows you to separate your contacts, calendars, etc into different sections. I've used it before and it's a great app. Or an alternative is to create a different Google account for each "Profile."
Upvotes: 1 <issue_comment>username_4: I've found an app called [FullContact](https://play.google.com/store/apps/details?id=com.fullcontact.ledene) that pretty much solved my problem. It can be connected to a Google account (not necessarily the one used for the Android phone). Its address book is completely separated from the main phone contacts app (not like, I.E. Contacts+).
So now I have my personal contacts (linked to my main Google account) in the default contact app, and my work ones (linked to another Google account) in FullContact
Upvotes: 1 <issue_comment>username_5: [Contacts VCF](https://play.google.com/store/apps/details?id=by.androld.contactsvcf&hl=en) allows you to have multiple address books. You can open and edit vCard files (.vcf). Each vCard file is its own separate address book.
Contacts VCF does not usually access the main address book on the phone but you can import your contacts from there.
Since this app works with the standard file format for address books, it's compatible with other apps and PC applications.
Upvotes: 1 <issue_comment>username_6: I managed to do it with Android for work profiles. It is convoluted and pain in the ass to set up but you get 2 completely separate contacts, gmail, calendar, etc
Upvotes: 1 <issue_comment>username_7: OpenContacts works well as separate private addtessbook
<https://f-droid.org/en/packages/opencontacts.open.com.opencontacts/>
Upvotes: 1 |
2016/04/16 | 482 | 1,841 | <issue_start>username_0: I don't really know how to make a title for this and it might be somewhat far and my english is not on point but please understand.
I have a 16gb SD card that is formatted as an adopted internal storage and an internal of 1gb (**4gb originally, but OS occupies 3.4gb or something and built-in apps [which I can't move to the adopted. I don't know why]**). My ways of getting data onto my phone is via the USB cable to PC/Laptop, but since the PC/laptop can't read the SD card, it only shows the 1gb internal. Let's say I want to move a larger file; 2gb, how can I make it possible? Any more ways to move files?
Anyways, Shareit (a file-sharing app, available on pc) is my last resort but I feel that via the USB cable is faster.
Device: **Lenovo A7000-a**
**Android 6.0** (just updated. Reformated everything since apps cant be read because all my data(including app data/files/obb) was on the sd card and it needs to be an adopted to be capable of reading app files.)<issue_comment>username_1: So your SD card has a certain format. This allows it to be used for apps, but the downside is your Windows doesn't see it. In theory a good driver should present the SD card over MTP, but that's wishful thinking.
The best way to access your SD is via adb. Install adb on Windows and **push** your files over USB. This requires typed commands in a shell.
You might also be able to see your SD when connecting your phone to a Linux system.
Upvotes: 1 <issue_comment>username_2: First thing you need to do after selecting sd card as internal storage: Go to settings then Storage and sd card. Open menu and tap migrate data. This will Transfer app data, books etc to sd card from internal storage, making sd card as default write basically. Also you can access SD card now. Cheers! Lenevo A7000 user.
Upvotes: -1 |
2016/04/16 | 244 | 1,004 | <issue_start>username_0: I am using Moto G2. I would like to know if there are any means of keeping the phone unlocked when it is connected to a known WiFi network.<issue_comment>username_1: So your SD card has a certain format. This allows it to be used for apps, but the downside is your Windows doesn't see it. In theory a good driver should present the SD card over MTP, but that's wishful thinking.
The best way to access your SD is via adb. Install adb on Windows and **push** your files over USB. This requires typed commands in a shell.
You might also be able to see your SD when connecting your phone to a Linux system.
Upvotes: 1 <issue_comment>username_2: First thing you need to do after selecting sd card as internal storage: Go to settings then Storage and sd card. Open menu and tap migrate data. This will Transfer app data, books etc to sd card from internal storage, making sd card as default write basically. Also you can access SD card now. Cheers! Lenevo A7000 user.
Upvotes: -1 |
2016/04/16 | 412 | 1,654 | <issue_start>username_0: I am having problem switching between apps when using banking apps or online transaction on android phone when they sends OTP and I need to enter the OTP code.
**Sometimes when I switch to inbox to read and remember the OTP code, When I move back to the browser page to enter the OTP, the page gets reloaded and either it sends OTP again or triggers invalid page as the page gets reloaded.**
I need some way to show the OTP code on screen as soon as the message arrives in inbox so I can see and enter the code without switching between apps. Can someone help please?<issue_comment>username_1: Try FreeCharge app. It can detect OTP without opening messages. You can pay mobile bills, electricity bills, DTH and much more using this app.
Upvotes: 0 <issue_comment>username_2: Try [Multi Clipboard and OTP Viewer](https://play.google.com/store/apps/details?id=com.cv.copybubble). While this does Multi Copy or is a Clipboard manager, This also reads One time Passwords and show on a floating widget that actually resolves your issue.
Since you want to use OTP codes without switching to inbox, this app shows the OTP message in a floating widget and the code floats on screen as soon message arrives in your inbox.
**Note:** I'm affiliated with the company CV Infotech which has developed this app.
Upvotes: 3 [selected_answer]<issue_comment>username_3: You can try using third party SMS manager apps like [SmartSMS](https://play.google.com/store/apps/details?id=com.smartsms.organizer.events)
It claims to have OTP Copy on notification shade, Moreover I've used this app so I guess it will be useful to you as well
Upvotes: 0 |
2016/04/16 | 805 | 3,028 | <issue_start>username_0: My Nexus 6p has 2 messaging services. Google Hangouts and the stock Google messenger app. I usually use the Google messenger app to send SMS, but the problem is that the message they respond with always comes through the hangouts app. Is there any way to change that so that all SMS always comes from the messenger app?
OS: Android 6.0.1
Carrier: Google Project Fi
(The phone is not rooted)
Any help would be much appreciated<issue_comment>username_1: Devin, I am not extremely familiar with stock Android, so I apologize if some of what I try to describe does not work exactly as I try to explain it.
The SMS messages on your phone is maintained in a single database. That means you can use different messaging apps for SMS and the message "streams" or "history" stays the same regardless of the SMS app you use.
Within Android, you can decide which app is your default messaging app and by doing so you are saying which one will show you incoming messages.
You can change this default behavior by going into your phone Settings app and then Applications. Inside that, there should be an option labelled Default Applications (I use a Galaxy, so it might be slightly different). Inside Default applications, there should be a listing for Messaging App and your default SMS app listed. I will assume that it is Hangouts. You can tap that and change it to another app - and choose Google Messages. You will still be able to use Hangouts for sending SMS messages, but incoming SMS notifications will by default show up in the Google app. Also, you may need to disable SMS notifications within the Hangouts app so you don't get multiple SMS notifications for each incoming text message.
Hope this helps.
Rick
Upvotes: 3 <issue_comment>username_2: Open your settings App and search for the `Apps` entry in the first page.
[](https://i.stack.imgur.com/8EiF7.jpg)
In Apps, tap on the *wrench icon* at top right to open Advanced / Configure Apps.
[](https://i.stack.imgur.com/wjpDk.jpg)
Select `Default Apps` under *Advanced*
[](https://i.stack.imgur.com/suThm.jpg)
Select `SMS App` and select the default app of your choice.
[](https://i.stack.imgur.com/ODnM6.jpg)
Alternatively, you can select `Settings ––> Default SMS App` to change it.
[](https://i.stack.imgur.com/suy6m.jpg)
Upvotes: 1 [selected_answer]<issue_comment>username_3: Go to Hangouts and either check or uncheck the option for using Google Fi as the SMS in the sub-options level. If you have it checked then the messages will go to FI's SMS system which is not integrated.
Upvotes: 0 |
2016/04/17 | 1,067 | 2,944 | <issue_start>username_0: I'm using a Samsung Young Duos GT-S6102. My phone that shows nothing in Settings → About Phone so my question is how to find my MAC address?<issue_comment>username_1: You can run `ip address` from a terminal or `adb shell` to get the MAC address. Specifically, `ip address show wlan0` will give you the MAC for the Wi-Fi chip on most devices. The address is shown after `link/ether` on the second line:
```
22: wlan0: mtu 1500 qdisc mq state UP qlen 1000
link/ether a0:b1:c2:d3:e4:f5 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.12/24 brd 192.168.0.255 scope global wlan0
inet6 fdf8:f53e:61e4::18:45ef:ab67:89c0/64 scope link
valid\_lft forever preferred\_lft forever
```
Thanks to [username_3](https://android.stackexchange.com/users/96277/firelord) for this suggestion.
---
Another alternative:
If you have [BusyBox](https://play.google.com/store/apps/details?id=stericson.busybox) installed, you can run `busybox ifconfig`. That will give output similar to the following (note the `HWaddr` on the first line):
```
wlan0 Link encap:Ethernet HWaddr A0:B1:C2:D3:E4:F5
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fdf8:f53e:61e4::18:45ef:ab67:89c0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:993 errors:0 dropped:0 overruns:0 frame:0
TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:904409 (883.2 KiB) TX bytes:125749 (122.8 KiB)
```
If you don't have busybox you could try running `ifconfig` alone, but the version on my device has no output (and `ifconfig wlan0` just shows the IP address).
Upvotes: 4 [selected_answer]<issue_comment>username_2: Check settings > WiFi . From there click three dot or option key and navigate to advance settings. There you will find Mac address of your device.
Upvotes: 2 <issue_comment>username_3: In addition to the solutions from [Matthew](https://android.stackexchange.com/a/142630/96277) and [Vivek](https://android.stackexchange.com/a/142641/96277), using a terminal emulator app or using `adb shell`, do
```
getprop ro.boot.wifimacaddr
```
It would give you the MAC address for your wireless chip.
Alternatively, check the contents of the file [/sys/class/net/wlan0/address](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net):
```
cat /sys/class/net/wlan0/address
```
That should give you the MAC address. Make sure you have your Wi-Fi turned on before you see the contents of that file. For some reason, I got a different MAC address when Wi-Fi was turned off in my stock Android 6.0.1
If you've [BusyBox](https://android.stackexchange.com/a/134593/96277) installed, you can also do:
```
busybox iplink show wlan0
```
Output:
```
5: wlan0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether **3c:42:66:c4:d5:14** brd ff:ff:ff:ff:ff:ff
```
Again, keep Wi-Fi enabled.
Upvotes: 2 |
2016/04/17 | 493 | 1,629 | <issue_start>username_0: The following command works perfectly to start DHCP:
```
# dhcpcd -p eth0
```
DHCP cannot be stopped once it is started. The following command does not work:
```
# dhcpcd -k eth0
```
It returns the following:
```
dhcpcd[4700]: sending signal 1 to pid 4086
dhcpcd[4700]: dhcpcd not running
dhcpcd[4700]: kill: Bad file number
```
Could anyone offer a tip on how to kill DHCP?<issue_comment>username_1: A way to dynamically get the PID of the **dhcp** process, and kill it altogether, would be to run:
```
su
var=$(ps | grep dhcp)
kill $(echo -n $var | cut -d " " -f 0)
```
Specifically:
* line 1 asks for root permissions;
* line 2 assigns the output of `ps` (which lists the active processes), filtered by `grep` with the keyword **dhcp**, to the variable `var`;
* line 3 calls `kill` to terminate the value contained in the first field (`-f 0`) of the variable `var`, by telling `cut` to separate the fields with a whitespace (`-d " "`). Not coincidentally, the mentioned value corresponds to the PID of the process **dhcpcd**.
Upvotes: 4 [selected_answer]<issue_comment>username_2: This could be done with `awk` as well. The commands would be;
`su`
`kill -9 $(ps -e | grep dhcp | awk '{ print $1 }')`
**Details**
`su` to jump to root shell, `kill -9` to force kill `ps -e` lists all the processes in details, we pipe it through `grep dhcp` which only outputs anything from `ps -e` output to dhcp, then we pipe it through awk, the print $1 only prints the contents of the first field, which is the process id of dhcp. And kill will kill the process matching that process id.
Upvotes: 1 |
2016/04/17 | 430 | 1,506 | <issue_start>username_0: I bought Samsung Galaxy Note 4 on eBay. It's a Verizon phone. The description said clean IMEI and not blacklisted per Swappa.
I was trying to get it on my Cricket account which is a GSM carrier, but my wireless company said it was locked.
How do I unlock it?<issue_comment>username_1: A way to dynamically get the PID of the **dhcp** process, and kill it altogether, would be to run:
```
su
var=$(ps | grep dhcp)
kill $(echo -n $var | cut -d " " -f 0)
```
Specifically:
* line 1 asks for root permissions;
* line 2 assigns the output of `ps` (which lists the active processes), filtered by `grep` with the keyword **dhcp**, to the variable `var`;
* line 3 calls `kill` to terminate the value contained in the first field (`-f 0`) of the variable `var`, by telling `cut` to separate the fields with a whitespace (`-d " "`). Not coincidentally, the mentioned value corresponds to the PID of the process **dhcpcd**.
Upvotes: 4 [selected_answer]<issue_comment>username_2: This could be done with `awk` as well. The commands would be;
`su`
`kill -9 $(ps -e | grep dhcp | awk '{ print $1 }')`
**Details**
`su` to jump to root shell, `kill -9` to force kill `ps -e` lists all the processes in details, we pipe it through `grep dhcp` which only outputs anything from `ps -e` output to dhcp, then we pipe it through awk, the print $1 only prints the contents of the first field, which is the process id of dhcp. And kill will kill the process matching that process id.
Upvotes: 1 |
2016/04/18 | 633 | 2,374 | <issue_start>username_0: I read [this question](https://android.stackexchange.com/questions/81858/insufficient-space-on-the-device-but-my-sd-card-has-plenty-space), but I want to update the question.
Now with Android 6.0 we have the option to format the SD card as internal storage, and that's what I did. I also clicked that "Migrate data" option that moves pictures, music and such to the SD card storage.
[](https://i.stack.imgur.com/ulB4g.png)
However, I downloaded more music and now the internal storage is full. **And the "Migrate data" option now tries to move data from the SD to the internal memory.** So apparently you can only use it once #fail
**The apps that consume the most space are precisely apps containing media that could go into the SD card** (red arrows). Others are games that even allow the user to move the app to the SD card (blue arrow). For some weird reason, it always fails with a snack bar saying "internal error occurred".
[](https://i.stack.imgur.com/h1fTF.png)
* Should I format the SD card as external? I'll never remove it, so this "format as internal memory" option seemed perfect.
* How can I migrate all this media/data back to the SD card?
Am I doing something wrong here? I have a Moto G 2nd gen.<issue_comment>username_1: You will need to format the SD as removable storage for it to work as you describe. The option as described by Dan is not available with your SD formatted for internal use.
I did read a post somewhere that suggests Google Play Music will have a fix this week but hard to say for sure.
In my opinion this feature either doesn't work as intended or the Google Play apps haven't been updated for this feature despite marshmallow being out for 6? months already.
Note: I have just installed the new update 22/4/2016 and you can now select the SD storage, so this is now fixed!
Upvotes: 2 <issue_comment>username_2: OK, I think I found out the best setup.
1. Format your SD card as internal memory.
2. Go to **Settings > Storage > Internal** and open each app. Some apps have a "change" button. Press it to move the app into the SD card.
3. Finally go to **Settings > Storage > Internal** and on the right corner press **Migrate data**.
At this point, you did all you could.
Upvotes: 3 [selected_answer] |
2016/04/19 | 1,010 | 3,698 | <issue_start>username_0: I have run CM12.1, OxygenOS, and now Exodus for a while now on my OnePlus One - but for the life of me I cannot remember where you have to place your new ROMs zip file.
When flashing a new ROM you should start from a clean slate so you do [a factory reset wipe](https://twrp.me/faq/whattowipe.html). However, as it seems that this basically wipes all the data from the device, where should I place the ZIP files I want to install later on?
If I access my phone through USB on my computer I assume that I can only access the data-partion (/"SD card" partition) and these get wiped any way, so how and where should I place the new ZIP files?<issue_comment>username_1: It is noted in the link you mentioned:
>
> Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android\_secure, and/or an option for formatting data. ***There’s almost no reason that you would ever need to use these items.***
>
>
>
(Emphasis mine)
For a clean wipe, you can get rid of everything under */data* except of */data/media/* which in particular gets mounted as the emulated internal storage by Android. In short, it houses your files and serves as the internal SD card (*/sdcard*). You can however get rid of */data/media/0/Android* directory since it contains files related to applications installed in your currently installed ROM. Those files may or may not interfere in smooth functioning of your new ROM after a clean wipe.
Advanced wipe can be performed from TWRP through Wipe → Advanced Wipe → choose appropriate boxes. **Remember**, *Internal Storage* there means /data/media and Data means */data* excluding */data/media/*.
---
**If you still intend to wipe everything:**
As Salesman [wrote](https://android.stackexchange.com/questions/142812/wont-placing-a-cuostm-rom-file-before-factory-reset-remove-it-from-the-phone#comment184019_142812), you can use an external SD card to store the ZIP. If your device (OnePlus One does) supports USB OTG then you can use a USB drive as well to store the ZIP. Otherwise, as Death noted, [side-loading](/questions/tagged/side-loading "show questions tagged 'side-loading'") is also a good option. In the side loading mode, the zip is served or as you said, streamed. You would need version 1.0.32 or above of ADB client in your PC to do side loading.
To initiate side loading, from TWRP go into Advanced → ADB sideload → swipe to begin sideload. In the PC, provided that you've [adb](/questions/tagged/adb "show questions tagged 'adb'") setup and device plugged in using USB, issue the command:
```
adb sideload PATH # PATH is file path of your ROM's zip in your PC.
```
Once side loading completes, you can do whatever you want in TWRP.
By the way, using [MultiROM](http://forum.xda-developers.com/oneplus-one/development/mod-multirom-v26-t2835738) for OnePlus One you can get rid of all of this dilemma.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Fun fact: TWRP already knows this will happen for some. It fixes this by not wiping all data.
First things first, most custom recoveries factory resets work by wiping apps, contacts, and accounts/settings, but dont format your internal data (images, music, etc) you can notice it where it says:
```
Formatting /data without erasing /data/media
```
So, how does this help?? Simple. You cab load the ROM on to the internal, open the TWRP app, and head to install. Pick you ROM, And tick the appropriate boxes-including wipe data and cache. Go ahead with it and wait.
**BUT BE WARNED!**
It is not always perfect, and may bootloop or install-loop. It has worked for me often though.
Upvotes: 0 |
2016/04/20 | 921 | 3,355 | <issue_start>username_0: When I try to resize the internal storage partition size in AVD (Android Virtual Device) manager to anything larger than 200MB, the darn thing stays at 200MB. This mounts to `/data` directory. The problem rears it's head with Android API 19 / KitKat 4.4.x images and possibly others.
I'm on a Mac.<issue_comment>username_1: It is noted in the link you mentioned:
>
> Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android\_secure, and/or an option for formatting data. ***There’s almost no reason that you would ever need to use these items.***
>
>
>
(Emphasis mine)
For a clean wipe, you can get rid of everything under */data* except of */data/media/* which in particular gets mounted as the emulated internal storage by Android. In short, it houses your files and serves as the internal SD card (*/sdcard*). You can however get rid of */data/media/0/Android* directory since it contains files related to applications installed in your currently installed ROM. Those files may or may not interfere in smooth functioning of your new ROM after a clean wipe.
Advanced wipe can be performed from TWRP through Wipe → Advanced Wipe → choose appropriate boxes. **Remember**, *Internal Storage* there means /data/media and Data means */data* excluding */data/media/*.
---
**If you still intend to wipe everything:**
As Salesman [wrote](https://android.stackexchange.com/questions/142812/wont-placing-a-cuostm-rom-file-before-factory-reset-remove-it-from-the-phone#comment184019_142812), you can use an external SD card to store the ZIP. If your device (OnePlus One does) supports USB OTG then you can use a USB drive as well to store the ZIP. Otherwise, as Death noted, [side-loading](/questions/tagged/side-loading "show questions tagged 'side-loading'") is also a good option. In the side loading mode, the zip is served or as you said, streamed. You would need version 1.0.32 or above of ADB client in your PC to do side loading.
To initiate side loading, from TWRP go into Advanced → ADB sideload → swipe to begin sideload. In the PC, provided that you've [adb](/questions/tagged/adb "show questions tagged 'adb'") setup and device plugged in using USB, issue the command:
```
adb sideload PATH # PATH is file path of your ROM's zip in your PC.
```
Once side loading completes, you can do whatever you want in TWRP.
By the way, using [MultiROM](http://forum.xda-developers.com/oneplus-one/development/mod-multirom-v26-t2835738) for OnePlus One you can get rid of all of this dilemma.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Fun fact: TWRP already knows this will happen for some. It fixes this by not wiping all data.
First things first, most custom recoveries factory resets work by wiping apps, contacts, and accounts/settings, but dont format your internal data (images, music, etc) you can notice it where it says:
```
Formatting /data without erasing /data/media
```
So, how does this help?? Simple. You cab load the ROM on to the internal, open the TWRP app, and head to install. Pick you ROM, And tick the appropriate boxes-including wipe data and cache. Go ahead with it and wait.
**BUT BE WARNED!**
It is not always perfect, and may bootloop or install-loop. It has worked for me often though.
Upvotes: 0 |
2016/04/20 | 1,253 | 4,427 | <issue_start>username_0: Urgent help please.
the april 2016 patch was downloaded on the air and I performed update but after restart, The bot screen came with "error" and then the red error message is shown directing me to g.CO/ABH in which flashing is suggested. note after restarting, many applications together with settings app crash. I performed the OTA update again and no chance. Is there any solution except flashing? if the answer is no, so how can I perform a full backup before flashing? My serious aim is no data loss. ftp works through wireless but too slow. the usb mass storage function shows an empty folder on PC. USB debugging is connected but adb shows no device. Also in bootloader mode adb shell failed. The device is not rooted and recovery is locked. Here's the brief last log:
---
Source: shamu:6.0.1/MMB29V/2554798:user/release-keys
Target: shamu:6.0.1/MMB29X/2704508:user/release-keys
..
performing verification
using existing stash /cache/recovery/.....
deleting recovery /cache/recovery/---/--
..bytes free on /cache (.. bytes needed)
failed to verify blocks (expected ..., read...)
stat "/cache/...." failed: No such file or directory
partition has unexpected contents
failed to read block for diff
failed to execute command [.....]
deleting stash 5a79....
script aborted: system partition has unexpected contents
E:Error in @/cache/recovery/block.map
(Status 7)
Installation aborted
--------------------
Now tried to update from sdcard (stock rom downloaded for nexus) in recovery mode, got:
E:unknown volume for path [/sdcard]
-- Couldn't mount /sdcard.
Installation aborted
Repeated my try to update from ADB (adb sideload) but this error in the log:
sideload-host file size 1009749527 block size 65536
Finding update package..
I:Update location: /sideload/package.zip
Opening update package...
I: read key e=65537 hash=20
I: 1 key(s) loaded from /res/keys
Verifying update package...
E: footer is wrong
I:verify\_file returned 1
E:signature verification failed
sideload\_host finished
Installation aborted
I'm not sure even after data wipe the error remains or not, so prefer not to wipe yet, because the phone works!
Should I give up?<issue_comment>username_1: First off I'm assuming that the device is already flashing unlocked since you said you tried to flash the update from recovery. You shouldn't need a backup but make one anyways because recovery might be flashed over. Read everything first before you get started.
Download [current image](https://dl.google.com/dl/android/aosp/shamu-mmb29v-factory-0b4a53f0.tgz) (the one you have now, you can try [29X](https://dl.google.com/dl/android/aosp/shamu-mmb29x-factory-ef4cbb75.tgz) or [latest 30D](https://dl.google.com/dl/android/aosp/shamu-mob30d-factory-033f2c53.tgz)), it's best to restore your system then update for guaranteed results and no misbehavior after reboot (I'm a little adventurous so I'd go for the 30D). unpack the `.tgz` and `cd` into the resulting directory.
>
> fastboot flash radio radio.img
>
>
> fastboot flash bootloader bootloader.img
>
>
>
Note the images aren't radio.img and bootloader.img, just do radio and tab and bootloader and tab.
Unpack the `.zip` that was extracted from the `.tgz`. `cd` into the resulting directory.
>
> fastboot flash boot boot.img
>
>
> fastboot flash system system.img
>
>
> fastboot reboot
>
>
>
This should maintain all your data on the device after you reboot and I'm about 99 percent sure it'll work. So you shouldn't be needing to backup. If you run into problems after reboot you'll need to flash `cache` as well.
Reboot into bootloader again and use
>
> fastboot flash cache cache.img
>
>
> fastboot reboot
>
>
>
If it still doesn't work, you'll need to have a backup, reboot to fastboot and use the `flash-all.sh` that was extracted from the `.tgz` file. This would delete all your data but you can flash recovery again with `fastboot flash recovery` and restore `Data` from the backup you did.
PS. If you have to flash `cache` you might lose some data but only relating to system apps and services.
Upvotes: 1 <issue_comment>username_2: Thank you, it was a silly incomplete ota update to Android N preview from Google and the main problem was the settings app crash. I got the solution from other caught in users: update from ota image provided by Google special for such problems. Unfortunately all data got lost before!
Upvotes: 0 |
2016/04/20 | 652 | 2,389 | <issue_start>username_0: I have an android device (Android 4.4) with two launchers. One comes with the device and the other one is home made. I have the following questions regarding this scenario:
1. How can I set the default launcher via ADB? (same as selecting one and pressing **Always**)
2. How can I clear the default launcher selection via ADB? (same as entering to Default Applications and clearing Defaults)
Please do not submit answers or comments that do not consider the use of ADB. I'm not interested in any of those.
Also, I already know about disabling one of the launchers via ADB (`pm disable app_package_name`) and then re-enabling it, but this is not the same as setting the default launcher or setting the preferred activity. You can see the difference in the next image:
[](https://i.stack.imgur.com/ClZsA.png)<issue_comment>username_1: you can remove (Uninstall) the default program you set using **ADB** by doing this :
```
adb uninstall app.package ..... //for example (com.example.homeapp)
```
If you don't want to remove the app .. here is a quick hack to do it:
* adb shell
* am start -a android.intent.action.MAIN
That way you will have a picker with all apps on your devices that listens to *Main* Action
* Choose any home screen app you want . then go to settings and set it as default.
**Copied from this [answer](https://stackoverflow.com/a/14816886/7278150)**
Upvotes: 1 <issue_comment>username_2: It is not necessary to uninstall the default launcher, you must know it's package name before of doing so, which if you don't know you must get with `adb shell cmd shortcut get-default-launcher`.
In order to set your launcher as default you just have to call the following
```
adb shell cmd package set-home-activity "your.package/.YourLauncherActivity"
```
Upvotes: 3 <issue_comment>username_3: I know this is not the answer of the asked question, anyways this may helps someone regarding setting default app links (deep-links):
Android 12+ (since API 31)
--------------------------
```
adb shell pm set-app-links --package [PACKAGE_NAME] 1 [URL_HOST]
```
e.g. `adb shell pm set-app-links --package com.company.myapp 1 myapp.company.com`
Android 11- (API 30 and below)
------------------------------
```
adb shell pm set-app-link [PACKAGE_NAME] always
```
Upvotes: 2 |
2016/04/20 | 529 | 1,970 | <issue_start>username_0: I'm now on CM13 (Android 6) and `rsync`ing in will not work due to permission errors (and the `sudo` command doesn't exist) So I ask you, are there any programs to sync my music across? I don't want to use services that require me to upload it and then download it again due to bandwidth and speed issues.
I have also tried adb-sync but it just errors out (as is expected with adb!).<issue_comment>username_1: You could use Bittorrent Sync to copy the music folder on your computer to your phone. The whole thing will complete on your local network (as long as you don't leave it!). I recommend Bittorrent Sync assuming your local network's speed isn't an issue.
Upvotes: 1 <issue_comment>username_2: Hint: there's no `sudo` on Android, just `su`. And for using ADB as root the daemon on the Android device must run in "insecure mode" (i.e. as root, e.g. using Chainfire's "insecure adbd" app).
If you don't want to go that way, there are easier alternatives which you can e.g. find in my list on [Synchronizing Files and Folders](https://android.izzysoft.de/applists/category/named/file_sync). I'd recommend taking a look at [FolderSync](https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.lite), which I use myself (just in the [paid variant](https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.full)). Supports a plethora of protocols for all kind of systems (including SFTP/SCP to work with Linux machines, and CIFS/SMB for Windows). Lets you define folder pairs to sync. You can even setup a scheduler for it, and tell it to only sync when you're connected to your home WiFi. And more (e.g. cloud, which you stated you don't want ;)
Upvotes: 0 <issue_comment>username_3: Setting up an SSH server on Android 6.0 is fairly easy and works well with rsync. I installed SSHDroid. You need to use the SD:/Android/data/com.\* path relevant to the app for the files you are syncing however.
Upvotes: 0 |
2016/04/21 | 447 | 1,771 | <issue_start>username_0: My friend forgot to uninstall her Whatsapp on her previous phone which was bought buy someone she doesn't know. When she try to use her whatsapp using the same number, she got a reply from the person who bought her phone. The person doesn't know how to uninstall the whatsapp. Any solution to remove that person from using whatsapp with her number?<issue_comment>username_1: Please tell your friend to ALWAYS DO A FULL WIPE of the device before to sell it. This is very important for your privacy!
Anyway, please refer to the official whatsapp FAQ to solve your problem: <https://www.whatsapp.com/faq/en/general/24460358>
>
> If you are not ready to activate WhatsApp on a new phone with the same
> number, we can deactivate your account. Email us the phrase
> "Lost/Stolen: Please deactivate my account" in the email body and
> include your phone number in the full international format as
> described here. Please note that we are not able to help you locate
> your phone. Remote WhatsApp deactivation from another device is not
> possible.
>
>
>
Upvotes: 3 <issue_comment>username_2: Whatsapp is tied to the phone number. If she logs into another device, the new device takes over. The app will keep asking for verification in the old device. The app deactivates but all downloaded media files (voice messages included) remain on the device storage.
Upvotes: 0 <issue_comment>username_3: Don't sell phones that you've used. Melt them down. Otherwise you are selling your personal data which can easily be recovered.
What she needs to do is install whatsapp on a new device using the same number that her old device had. That will lock the whatsapp on the old phone and force the new owner to put his/her new number in.
Upvotes: 0 |
2016/04/21 | 300 | 1,086 | <issue_start>username_0: I'm trying to reset my phone, but It doesn't work. When I try to reset it via android settings, it restarts, shows the Huawei logo and shutsdown. When I manually restart it its back to its original state before the backup.
I cant boot into recovery or fastboot, it justs shows a black screen. My phone is rooted, but I don't have root acces because of immutable.list. Help would be appreciated.<issue_comment>username_1: Shutdown your Phone and then press and hold Volume down + Power.
Normally should your Phone reset then.
If this doesn't work, you may have destroyed the recovery.
Upvotes: -1 <issue_comment>username_2: As I don't have this device, I can't say too much. Also, I can't comment because of my rep. But whatever.
Try to flash recovery even if your flashboot returns blank screen. It might not work, but hey! give it a try!
Also, try to look [Here](http://firmwarefile.com/huawei-ascend-p7-l10) or [Here](http://www.mobileflashtool.com/2015/12/huawei-ascend-p7-flash-file-firmware-download.html), it says about flashing firmware.
Upvotes: 0 |
2016/04/21 | 583 | 2,017 | <issue_start>username_0: I'm seeing following partial wake lock through [BetterBatteryStats](https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats) (inside of *Partial Wakelocks*) and it seems that, this wake lock keeps my phone awake at all time and prevents deep sleep / doze mode(
>
> \*backup\* (Andriod System)
>
>
>
I'm using Huawei Nexus 6P (stock, rooted (no mods)) with latest Android 6.0.1 (MHC19Q).
Please advise.
---
**\* UPDATE \***
I created following:
[Issue 207700 - android - Partial Wakelock - Android System *backup* = NO deepsleep/doze mode - Android Open Source Project - Issue Tracker - Google Project Hosting](https://code.google.com/p/android/issues/detail?id=207700)
---
workaround(s) (*NOT* fixes):
* `reboot` - temporarily address issue (until phone is plugged & unplugged to/from charger).
* `Settings` -> `Backup & reset` -> `Back up my data` -> Toggle `On` to `Off` - long(er) term solution, yet you're left *without* backup going forward...<issue_comment>username_1: I had the same problem, but it occured after I had restored my phone from google backup. More precisely the "backup" wakelock appeared when I unplugged the phone from the charger. Thereafter the wakelock kicked in and remained doing so until I restarted the phone. But whenever I plugged in the charger, the wakelock came back again and another restart was a must-do.
How did I solved that? I just disabled the "back up my data" under "backup & reset", restarted the phone and enabled the "back up my data" again. At least for now the wakelock has not appeared again.
This was my trick.
Upvotes: 2 <issue_comment>username_2: it's a general issue with Android 6.0, i also have this bug on my Galaxy S6 using ORO CSC and latest ROM (G920FXXS3DPE7 May-2016). It appears only after the phone is unplugged from charger and the backup app keeps the phone awake (not entering Deep Sleep). For the moment the only fix possible is to disable backup (Google "back up my data).
Upvotes: -1 |
2016/04/22 | 2,845 | 9,597 | <issue_start>username_0: When I put my Android device to charge, the lock screen says "**Charging slowly**":
[](https://i.stack.imgur.com/atNk6.png)
Is it a particular software setting that tells Android to charge slowly?
How to make Android **charge fast**?<issue_comment>username_1: This is not a software setting: Android is just telling you that the power source you connected the device to is not giving enough electrical power to charge as fast as it could.
It [seems](https://android.googlesource.com/platform/frameworks/base/+/master/packages/Keyguard/res/values/config.xml) that:
* "*Charging slowly*" means below 1[A](https://en.wikipedia.org/wiki/Ampere) (at 5[V](https://en.wikipedia.org/wiki/Volt)),
* "*Charging*" means between 1A and 1.5A,
* "*Charging rapidly*" means more than 1.5A.
The solution is to make more electrical power come to your device:
* If your computer has Type C port, use this one. This port will most likely also have Power Delivery, which will give you a "rapid" charge.
* Plug to the [wall](https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets) rather than to a laptop.
* Try different USB cables.
* Some adapter/device combinations are better than others ([example for Nexus 6P/5X](https://android.stackexchange.com/questions/140357/nexus-6p-charges-slowly-on-stock-6p-charger-but-5x-charges-rapidly)), so use an adapter made specifically for your device if available.
* Some laptops have different USB ports with different power performances. On my laptop I have 2 USB ports, if I plug in the port on the right Android says "**Charging slowly**" but if I plug in the port on the left (with the + battery symbol) Android says "**Charging**", which is better:
[](https://i.stack.imgur.com/puZMb.jpg)
Edit: Please see @username_2' answer explaining why charging slowly is actually a good thing when your battery is already quite full.
Upvotes: 6 <issue_comment>username_2: This is by way of supplementing [OP's](https://android.stackexchange.com/a/143032/131553) research with additional relevant inputs
"Charging Rapidly" always is neither desirable nor changing the charger mode user configurable
==============================================================================================
Why is it not desirable?
------------------------
1. Current drawn for charging is not uniform. It varies depending on the stage of charging as can be seen from [Figure 1 here](http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries)
2. This is reiterated [by OEM-see footnote 1](https://www.google.com/intl/en_in/nexus/5x/)
>
> *Battery must be substantially depleted; charging rate slows as charging progresses*
>
>
>
3. What this means is that **Charging Slowly is not necessarily bad**. You should expect and see *charging rapidly →Charging → charging slowly* transition happen as the charge level increases. This is the nature of charging Li Ion / LiPo batteries.*Charging rapidly* throughout the charging cycle is pushing power beyond what is needed and would surely ruin your battery- Hint: You will never see an OEM claiming to *fast charge from 0 t0 100% in xx minutes*. Fast charging typically ends in once the battery is charged in the region of 70%. ( You may need to use an app like [Ampere](https://play.google.com/store/apps/details?id=com.gombosdev.ampere) to measure the charging current and the corresponding *charging slowly/ charging / charging rapidly* to specifically know for your device)
Why is the Charging mode not user configurable?
-----------------------------------------------
Andrew's [answer](https://android.stackexchange.com/a/143053/131553) explains the associated current and power limits depending on which the mode changes and is android feature. Aside, [Samsung](http://www.sammobile.com/2016/03/17/samsung-brings-back-option-to-disable-fast-charging-on-android-6-0-marshmallow/) has come up with user configurable options to enable/disable *fast charging*
OK, how do I ensure it is charging rapidly whenever it should?
==============================================================
Options suggested by OP are all valid with a caveat- While mixing and matching cables to maximize current as quoted by you (example for 6P/ 5X from my earlier answer) is a good idea, you need to bear in mind the following
* Any fast charger won't do, use OEM charger only, if you want fast charging. Nexus 5X uses USB Type C charger not Qualcomm fast charging, though it runs a Qualcomm Chip. [Nice write up here](http://roonby.com/2016/01/12/nexus-5x-fast-charge-the-all-information-you-should-know/)
* If shopping for cables outside Google,make sure they are [USB Type C compliant](https://rads.stackoverflow.com/amzn/click/com/B0087UC0I0)
Upvotes: 3 <issue_comment>username_3: Other answers have explained about how to make it charging faster, this answer tries to explain more about the threshold that the Android uses.
---
The charging speed is not configurable; it's just a status that Android shows to let the user knows about it.
When it was first implemented, it's based on the how much current (in milliAmpere) it receives. As shown on the commit log, "[Show charging speed on Keyguard](https://android.googlesource.com/platform/frameworks/base/+/7b04311%5E!/)", specifically, the [config.xml](https://android.googlesource.com/platform/frameworks/base/+/7b04311d88e377c67b4c663091b6b1c63c932c52/packages/Keyguard/res/values/config.xml) file, the default values were,
```
1000000
1500000
```
* Charging slowly: < 1A
* Charging: 1A - 1.5A
* Charging rapidly: > 1.5A
5 months later, the implementation was changed to be based on power (in microWatts) it receives. As shown on the commit log, "[Charging speed based on voltage](https://android.googlesource.com/platform/frameworks/base/+/0c859ae9c76db756ba898508a8dc2d92d86e9096%5E%21/)", from the same [config.xml](https://android.googlesource.com/platform/frameworks/base/+/0c859ae9c76db756ba898508a8dc2d92d86e9096/packages/Keyguard/res/values/config.xml) file, the default values were,
```
5000000
7500000
```
* Charging slowly: < 5W
* Charging: 5W - 7.5W
* Charging rapidly: > 7.5W
---
Now, the default values and current behavior (using microWatts instead of Amperes) might be problematic on some devices (e.g. Nexus 5). However, those values are also adjustable by vendor/OS maker, as seen in LineageOS' case.
As reported in [Nexus 5's LineageOS Bug Tracker](https://jira.lineageos.org/browse/BUGBASH-39) and explained in [Nexus 5's LineageOS Code Review](https://jira.lineageos.org/browse/BUGBASH-39),
>
> The default slow charge threshold in the framework is set to 5000000
> microwatts. This assumes the devices OEM wall charger output is 1A @ 5V.
>
>
> The OEM LG Nexus 5 wall charger can only output 1.1A @ 4.8V at its max.
> Then that is further reduced to around 1A @ 4.3V by the charging driver
> in the kernel. This results in the lock screen incorrectly displaying
> "Charging slowly" all the time.
>
>
> Prior to Nougat, the threshold was based on microAmperes and was set to
> 1000000, which the charger/device could easily do, resulting in the lock screen displaying "Charging".
>
>
> This change lowers the threshold from 5000000 to 4200000 microwatts so
> that wall chargers show "Charging" on the lock screen, returning it to
> stock Marshmallow behavior.
>
>
> Note: This threshold only affects what is displayed on the lock screen.
> It does not affect actual charging current.
>
>
>
Upvotes: 5 <issue_comment>username_4: I've found another potential cause for `Charging slowly` which I didn't see in any previous answers.
My phone (Moto G7, USB-C charger) had debris in the charging port which made it difficult to charge. The connection was loose, and when it charged at all, it would often indicate that it was `Charging slowly`.
The solution:
Cleaning the Charging Port
==========================
In my case **cleaning it**, then **cleaning it some more**, then **giving up because I thought it was a lost cause**, then **cleaning it again**. It was hard to believe how many small clumps of dust came out.
Sites such as [this one](https://www.pandasecurity.com/mediacenter/tips/how-clean-your-mobile-charging-port/) suggest compressed air and a toothpick. I've also heard a number of other suggestions, listed below. I tried a plastic dental pick and it removed some dust, but bent and eventually broke when attempting to scrape compacted debris from the deepest part of the port.
Take the following suggestion **at your own risk** because it may scratch or short your charging port, but for me *scraping the deepest part of the port with a straightened staple* was what finally solved the problem. Again: **please** attempt softer, non-conductive methods first.
Once I did this, my charger firmly connected and started Turbo Charging immediately.
Potential Improvised Cleaning Tools
-----------------------------------
Based on suggestions found in various Google Searches, forum posts, and what I had on hand in my office. From lowest- to highest-risk, by my own estimation. I hope such a ranking is ok and not too opinion-based or off-topic. I wanted to provide a useful reference to hopefully help someone avoid the frustration of finicky charging.
1. Compressed Air
2. Soft, non-conductive picks
* Toothpick
* Plastic dental pick
* Coffee stirrer
3. ⚠ Metal picks ⚠
* Staple
* SIM Card Tool
* Small paperclip
Upvotes: 1 |
2016/04/22 | 407 | 1,622 | <issue_start>username_0: This is for an Mi Pad running MIUI 7. The default home screen is the first one which allows only widgets & not apps. Googling around, several sites say that you can change the def home screen - i.e. make the 2nd or any other screen the home screen by doing the 3 finger swipe and pinch. I even found videos which show this - <https://www.youtube.com/watch?v=j7QGDQTYbGw>
But when I do this, it shows up other options -> Move App, Widgets, Wallpaper, Effects (this is supposed to shown for the 2 finger pinch). For me both 2 finger and 3 finger pinch brings this up.
What am I doing wrong?<issue_comment>username_1: I am not experienced in the MIUI device but one alternate method could be to download an android launcher. Launchers like Google now or nova work really well in my opinion. I know this doesn't really fix the issue but, chances are you'll like these launchers better than the default one.
Upvotes: 1 <issue_comment>username_2: The 3 finger swipe and pinch shows your pages(all screens). And the default home screen will be in orange color at home icon. If you need to change it just tap over the `home` icon of the page that you needed. Then, it will be set as default home screen. Here, also you can drag and arrange your screens.
Upvotes: 1 <issue_comment>username_3: Not sure if you still have this problem but I just experienced it today. My solution:
3 finger swipe isn't actually a swipe. I just touched 3 fingers on the screen at the same time and hold and then instead of swiping, do a closing motion towards the center. Then the screen to edit pages appears.
Upvotes: 0 |
2016/04/23 | 652 | 2,206 | <issue_start>username_0: How do I transfer files with a PC running Linux (Ubuntu) via the mobile hotspot (not through wifi)? (Perhaps with another third-party application)<issue_comment>username_1: There are many FTP clients for android in play store, you can use that to create a FTP serever on phone, and access the server from computer,
Upvotes: 0 <issue_comment>username_2: The set up of file transfer between **Android device and Linux PC** is similar to Windows and can be achieved in a variety of ways.
I created simple tutorial illustrating the simplest way to do it (without need for extra tricky terminal commands in Linux, or installing additional packages)
**Requirements:**
* Mobile hotspot
* Linux PC (running any linux distro eg Ubuntu, Mint, Kali etc but for this tutorial I used Zorin OS)
with **Wi-Fi functionality**
* Android file explorer capable of **FTP/SMB/SFTP** protocols (I used [ES explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en) for this task)
**Instructions**
1. Connect Linux PC to hotpsot.
2. Open ES File explorer and go to Networks >> Remote Manager (FTP protocol) and turn on service. See screenshot.
[](https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en)
3. Open terminal Ctrl+Alt+T and type `ifconfig` (just to be sure the PC was assigned a correct IP by the DHCP) The dhcp range is `192.168.43.xxx`
Using File manager from Unity Launcher head to Connect to server under Other Locations and input FTP server details and port number (ftp//192.168.43.1:3721/)
[](https://i.stack.imgur.com/ppllf.png)
Enter login details or leave as anonymous:
[](https://i.stack.imgur.com/De1BN.png)
From now you can access files in your android device on Linux PC, and can perform various actions e.g copy,paste etc (some names hidden for other reasons)
[](https://i.stack.imgur.com/z0jEj.png)
[](https://i.stack.imgur.com/4zrWc.png)
Upvotes: 2 |
2016/04/23 | 681 | 2,321 | <issue_start>username_0: I'm trying to root my Galaxy Note 4 and I see the above terms being used everywhere. What do each of them mean? I have a vague idea about each of them, but I'm still confused about some of them.
A brief description about each would be enough. Thanks in advance.<issue_comment>username_1: There are many FTP clients for android in play store, you can use that to create a FTP serever on phone, and access the server from computer,
Upvotes: 0 <issue_comment>username_2: The set up of file transfer between **Android device and Linux PC** is similar to Windows and can be achieved in a variety of ways.
I created simple tutorial illustrating the simplest way to do it (without need for extra tricky terminal commands in Linux, or installing additional packages)
**Requirements:**
* Mobile hotspot
* Linux PC (running any linux distro eg Ubuntu, Mint, Kali etc but for this tutorial I used Zorin OS)
with **Wi-Fi functionality**
* Android file explorer capable of **FTP/SMB/SFTP** protocols (I used [ES explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en) for this task)
**Instructions**
1. Connect Linux PC to hotpsot.
2. Open ES File explorer and go to Networks >> Remote Manager (FTP protocol) and turn on service. See screenshot.
[](https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en)
3. Open terminal Ctrl+Alt+T and type `ifconfig` (just to be sure the PC was assigned a correct IP by the DHCP) The dhcp range is `192.168.43.xxx`
Using File manager from Unity Launcher head to Connect to server under Other Locations and input FTP server details and port number (ftp//192.168.43.1:3721/)
[](https://i.stack.imgur.com/ppllf.png)
Enter login details or leave as anonymous:
[](https://i.stack.imgur.com/De1BN.png)
From now you can access files in your android device on Linux PC, and can perform various actions e.g copy,paste etc (some names hidden for other reasons)
[](https://i.stack.imgur.com/z0jEj.png)
[](https://i.stack.imgur.com/4zrWc.png)
Upvotes: 2 |
2016/04/23 | 461 | 1,909 | <issue_start>username_0: I get the error "ERR\_CONNECTION\_RESET" in Chrome along with the message "This site cannot be reached" when I am on a mobile network. However, all apps, such as New York Times, The Guardian, etc. work fine and can download and display content just fine.
If I switch on the Wf-Fi, then internet works both in apps and in the browser.
I have also tried using Firefox and Opera, but I get the same issue.
Incidentally, the Gmail app behaves the same as the browsers: It cannot connect to the internet when on mobile networks.
I am using a Lenovo tablet.
Any help would be much appreciated.<issue_comment>username_1: Have you set your APN settings correctly? Go to your carrier's website and do some googling to find the correct APN settings for your network. Once you have found them, you should be able to enter them by going to
Settings>Mobile Networks>Access Point Names (APN) and creating one with the correct APN settings.
Upvotes: -1 <issue_comment>username_2: I have the same problem. that happens with Google Chrome over WIFI i have internet and can use YouTube App but the Browser isn't working.
I resolved the problem by removing Chrome and installing it again.
The problem disappeared, but i noticed it happened again when i allowed " Enable data saver feature on Chrome's settings/Advanced Datsaver" Make sure you have it turned off.
Upvotes: 2 <issue_comment>username_3: I also faced the same issue. After tons of goggling, I found that in APN there is a proxy set option. Somehow mine was set to some value. Once I nullified it, the browser started loading, mobile data as well. Proxy shouldn't be set to any values, either in mobile data or on wifi.
Upvotes: 0 <issue_comment>username_4: You need to remove proxy in apn setting it will work.
Settings->Mobile data ->access point code -> click on selected option -> remove proxy it will start working...
Upvotes: 1 |
2016/04/23 | 382 | 1,593 | <issue_start>username_0: I have a strange problem. I've been searching for a possible solution for a long time, finding nothing, so here am I.
So, I was trying to transfer an .obb file from the Pc into my Android phone directory (Phone/Android/Data/),
. I managed to transfer this file, but changed my mind and I tried to delete it . The fact is that since then nothing has been able to remove it. I tried all kinda of removal programs, command prompt related deleting solutions, ecc. The file does not allow me to change security from "only read" to "write", the options are like frozen. Plus, the file is visible from the Pc but not from the phone . I even tried cut and paste, but nothing. Last thing : if I copy the file from the pc I am able to delete the copy, but not the original one .
In conclusion : This seems to me some kind Android virus , and the fact that I can't delete it makes me mad. Does any of you here have an idea on what's going on here?
Thanks for helping.<issue_comment>username_1: Try to login into your PC as an administrator, (windows), rename the file by changing the extension es:
From file.obb to file.txt and see if after you can delete it.
Make sure the folder where the file reside or the file itself is not opened by any other apps other than your file explorer.
Upvotes: 0 <issue_comment>username_2: Most android file mangers won't show files starting with a period (.) By default. But you can view them by Settings > Display Settings > Show hidden files. (In ES file explorer).
When the file is visible in phone try to delete it from there.
Upvotes: 1 |
2016/04/24 | 374 | 1,277 | <issue_start>username_0: Is there any way to enable the old ***Mass Storage Mode*** in Android 4.4.2? Right now I can only see MTP or PTP modes, but not the Mass Storage mode that was used to be around in old versions(2.3, I guess).
The old Mass Storage Mode allowed me to play audio in my car when connected via USB, but ever since with the MTP, my music player doesn't recognize my device. Also when connected to PC, it enabled me to modify partitions directly.
Any ROM hacks or tweaks probably?
P.S. I have a rooted At&T Galaxy Note 2(Android 4.4.2)<issue_comment>username_1: Unfortunately, Android has switched to the newer MTP/PTP protocols, so no, regular "mass storage mode" can't be enabled. (That is unless there's a ROM hack I haven't found.)
Source: [A post from 2013 confirming it's not a thing anymore](http://forum.xda-developers.com/showpost.php?p=48394656&postcount=9).
Upvotes: 1 <issue_comment>username_2: I can say it's possible because I have a **Tornado 348 Play** in which you have the **"USB Storage"** option enabled, in addition to the other options:
* Built-in CR-ROM
* Media device (MTP)
* Camera(PTP)
* Charge only
**P.S**: This response should be a comment, but the 50 points reputation didn't allow me to post it as a comment. :)
Upvotes: 0 |
2016/04/24 | 520 | 2,191 | <issue_start>username_0: I downloaded Compass program for Android and tried to bring strong magnet close to it. The pointed remained stable, as if there was no magnet nearby.
Here is the [video proof on YouTube](https://youtu.be/1bhzFKHX9XU).
I have checked other devices, including iPad Air 2 and they showed similar behavior. This is drastically differs from conventional compass behavior. Also, neither device show correct cardinal directions, except conventional compass.
Why doesn't Android compass react to magnet?
**UPDATE**
Note, that magnetic field value definitely increasing when magnet is approaching.
So, the actual question is how do they try to distinguish between Earth magnetic field and magnet's magnetic field?
Also, note, that direction shown by compass is INCORRECT relatively to conventional compass.<issue_comment>username_1: Android compass works using phones sensors and gps not magnet or any kind of compass integered inside your phone. So, it is not possible to make any kind of deflection using magnets.
Upvotes: -1 <issue_comment>username_2: The sensor algorithm people worked hard to make sure that the "compass sensor" is not affected by stray ambient magnetic field. If you want to see magnetic field data, use the magnetic field sensor instead.
The common way to know that the device is subjected to an external magnetic disturbance is by comparing the magnetic sensor data with motion sensors (accelerometer and more importantly the gyroscope), if there is no motion, the algorithm will suppress any change to compass heading, because it is trying to reflect reality that compass heading did not change. For more details, look under the subject of "sensor fusion."
Upvotes: 3 <issue_comment>username_3: Many android phones have a magnetometer, which measure magnetic field in microtesla. e.g. Samsung S6 has a yamaha chip which can measure up to 2000uT.
If you want to see the effect of magnets and electromagnetism install an app like sensor logger by iReality soft or 'gaussmeter'.
Upvotes: 0 <issue_comment>username_4: In my tests the magnet did affect the compass on the Galaxy S2 Active. I could drag North right round 360 degrees.
Upvotes: 0 |
2016/04/24 | 1,619 | 5,408 | <issue_start>username_0: Assume that I'm a user who doesn't like some system apps being automatically white-listed under Battery optimization settings and immune from battery optimization or is fed up with Play services consuming more than its fair share of battery. I'm looking for a solution which would revoke this privilege enjoyed by those apps and add them into the line where the rest of the ordinary comrade apps are waiting for the user to mark them with *Don't optimize*.
(Click image to enlarge)
[](https://i.stack.imgur.com/3kaoX.png)
I've already seen [this answer](https://android.stackexchange.com/a/137699/96277) and as noted in a [comment](https://android.stackexchange.com/questions/129074/is-there-a-way-to-exclude-an-app-from-doze/137699#comment176869_137699) it doesn't work for apps white-listed by system.
As of now, these are the apps white-listed by Android 6.0.1 in my rooted Nexus 6:
[](https://i.stack.imgur.com/3ggtR.png)
I'm most interested in removing *com.google.android.gms*.<issue_comment>username_1: Requisites
----------
* A rooted Android
**Optional:**
* A full ROM backup made through a custom recovery. It is for your own convenience. If something suggested in the next section causes boot issues or system/app crashes, you would have something good to fallback to earlier state.
* Optimizing Play services may cause [unforeseen consequences](https://android.stackexchange.com/a/143236/96277) (including Android Device Manager or device tracking apps not functioning appropriately). *You are advised to calculate the number of installed apps which depends upon Google Cloud Messaging and would be affected by this move*. The answers here may help: [Is there a way to see which apps are using GCM?](https://android.stackexchange.com/q/61770/96277)
I preferred [my own answer](https://android.stackexchange.com/a/123100/96277) for simplicity.
---
### FOR AVOIDING THE HASSLE
If you are targeting only Google Play Services and **wants to avoid the hassle of editing system files**, you can use [Enable Doze for GMS](https://github.com/Magisk-Modules-Repo/EnableGMSModuleMagisk/) or [SysConfig Patcher](https://github.com/Magisk-Modules-Repo/sysconfig-patcher) Magisk Module. You would be needing [Magisk framework and Magisk Manager](https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445).
---
As I noted [here](https://android.stackexchange.com/a/143236/96277), Google Play services is white-listed by Google through the file *google.xml* located under */system/etc/sysconfig/*. Among other things, the file notes:
```
<***allow-in-power-save package="com.google.android.gms"*** />
```
Comment out the highlighted line using at the end. The line should now look like:
```
```
(Click an image to enlarge it)
[](https://i.stack.imgur.com/ZdaW5.png)
[](https://i.stack.imgur.com/kuYyp.png)
Reboot the device and behold Google Play services now not available under *Not optimized* tab but available for optimization.
(Click an image to enlarge it)
[](https://i.stack.imgur.com/wvRQL.png)
[](https://i.stack.imgur.com/5GxHt.png)
I observed that the list of apps decreased too:
[](https://i.stack.imgur.com/syOrj.png)
**Note:** I used [ES File Explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop) to browse to the directory */system/etc/sysconfig* and used [QuickEdit](https://play.google.com/store/apps/details?id=com.rhmsoft.edit) to edit *google.xml*. It is not mandatory to use these tools. You can use whatsoever you find convenient.
Now, for the rest of the names in the list, refer to corresponding files noted below:
* com.android.providers.downloads : *[/system/etc/permissions/platform.xml](https://android.googlesource.com/platform/frameworks/base/+/master/data/etc/platform.xml#145)*
* com.android.vending: */system/etc/sysconfig/google.xml* -- I noticed that dealing with Google Play services automatically removed Play Store from the list
* com.google.android.apps.tycho : */system/etc/sysconfig/google\_build.xml*
* com.android.omadm.service : */system/etc/sysconfig/whitelist\_com.android.omadm.service.xml*.
Comment out the appropriate line, reboot and your tweak should work.
**Note:** I've extrapolated my findings with Google Play services here.
[SystemConfig.java](https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/SystemConfig.java) is used to read configuration from the directory */system/etc/permissions* and */system/etc/sysconfig*. So, if you have a white-listed system app not manually added and not covered in this answer, then focus your search into those two directories at first.
Upvotes: 4 [selected_answer]<issue_comment>username_2: ```
adb shell dumpsys deviceidle whitelist -"com.yourcompany.yourapp"
```
Using this command in adb you can remove apps from power saving exclusions, tested in Oreo ,non rooted
And using a plus (+) sign instead of minus- you can add apps into the exclusion list.
Editing again. There's an error. It's not working always
Upvotes: 0 |
2016/04/24 | 1,301 | 4,439 | <issue_start>username_0: I have lost my Android device. Is it possible for me to recover the data in the phone using my Google account?<issue_comment>username_1: Requisites
----------
* A rooted Android
**Optional:**
* A full ROM backup made through a custom recovery. It is for your own convenience. If something suggested in the next section causes boot issues or system/app crashes, you would have something good to fallback to earlier state.
* Optimizing Play services may cause [unforeseen consequences](https://android.stackexchange.com/a/143236/96277) (including Android Device Manager or device tracking apps not functioning appropriately). *You are advised to calculate the number of installed apps which depends upon Google Cloud Messaging and would be affected by this move*. The answers here may help: [Is there a way to see which apps are using GCM?](https://android.stackexchange.com/q/61770/96277)
I preferred [my own answer](https://android.stackexchange.com/a/123100/96277) for simplicity.
---
### FOR AVOIDING THE HASSLE
If you are targeting only Google Play Services and **wants to avoid the hassle of editing system files**, you can use [Enable Doze for GMS](https://github.com/Magisk-Modules-Repo/EnableGMSModuleMagisk/) or [SysConfig Patcher](https://github.com/Magisk-Modules-Repo/sysconfig-patcher) Magisk Module. You would be needing [Magisk framework and Magisk Manager](https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445).
---
As I noted [here](https://android.stackexchange.com/a/143236/96277), Google Play services is white-listed by Google through the file *google.xml* located under */system/etc/sysconfig/*. Among other things, the file notes:
```
<***allow-in-power-save package="com.google.android.gms"*** />
```
Comment out the highlighted line using at the end. The line should now look like:
```
```
(Click an image to enlarge it)
[](https://i.stack.imgur.com/ZdaW5.png)
[](https://i.stack.imgur.com/kuYyp.png)
Reboot the device and behold Google Play services now not available under *Not optimized* tab but available for optimization.
(Click an image to enlarge it)
[](https://i.stack.imgur.com/wvRQL.png)
[](https://i.stack.imgur.com/5GxHt.png)
I observed that the list of apps decreased too:
[](https://i.stack.imgur.com/syOrj.png)
**Note:** I used [ES File Explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop) to browse to the directory */system/etc/sysconfig* and used [QuickEdit](https://play.google.com/store/apps/details?id=com.rhmsoft.edit) to edit *google.xml*. It is not mandatory to use these tools. You can use whatsoever you find convenient.
Now, for the rest of the names in the list, refer to corresponding files noted below:
* com.android.providers.downloads : *[/system/etc/permissions/platform.xml](https://android.googlesource.com/platform/frameworks/base/+/master/data/etc/platform.xml#145)*
* com.android.vending: */system/etc/sysconfig/google.xml* -- I noticed that dealing with Google Play services automatically removed Play Store from the list
* com.google.android.apps.tycho : */system/etc/sysconfig/google\_build.xml*
* com.android.omadm.service : */system/etc/sysconfig/whitelist\_com.android.omadm.service.xml*.
Comment out the appropriate line, reboot and your tweak should work.
**Note:** I've extrapolated my findings with Google Play services here.
[SystemConfig.java](https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/SystemConfig.java) is used to read configuration from the directory */system/etc/permissions* and */system/etc/sysconfig*. So, if you have a white-listed system app not manually added and not covered in this answer, then focus your search into those two directories at first.
Upvotes: 4 [selected_answer]<issue_comment>username_2: ```
adb shell dumpsys deviceidle whitelist -"com.yourcompany.yourapp"
```
Using this command in adb you can remove apps from power saving exclusions, tested in Oreo ,non rooted
And using a plus (+) sign instead of minus- you can add apps into the exclusion list.
Editing again. There's an error. It's not working always
Upvotes: 0 |
2016/04/25 | 1,375 | 4,743 | <issue_start>username_0: So, my question is: is there a way to automate the creation of flashable ZIP archives, in order to avoid having to write the **updater-script** and **update-binary** by myself each and every time I want a ZIP to be done?
Furthermore, the only feature the ZIP archives are required to do, is to install an application as **system app**. How could I perform such task, preferably without the aid of an external app?<issue_comment>username_1: Requisites
----------
* A rooted Android
**Optional:**
* A full ROM backup made through a custom recovery. It is for your own convenience. If something suggested in the next section causes boot issues or system/app crashes, you would have something good to fallback to earlier state.
* Optimizing Play services may cause [unforeseen consequences](https://android.stackexchange.com/a/143236/96277) (including Android Device Manager or device tracking apps not functioning appropriately). *You are advised to calculate the number of installed apps which depends upon Google Cloud Messaging and would be affected by this move*. The answers here may help: [Is there a way to see which apps are using GCM?](https://android.stackexchange.com/q/61770/96277)
I preferred [my own answer](https://android.stackexchange.com/a/123100/96277) for simplicity.
---
### FOR AVOIDING THE HASSLE
If you are targeting only Google Play Services and **wants to avoid the hassle of editing system files**, you can use [Enable Doze for GMS](https://github.com/Magisk-Modules-Repo/EnableGMSModuleMagisk/) or [SysConfig Patcher](https://github.com/Magisk-Modules-Repo/sysconfig-patcher) Magisk Module. You would be needing [Magisk framework and Magisk Manager](https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445).
---
As I noted [here](https://android.stackexchange.com/a/143236/96277), Google Play services is white-listed by Google through the file *google.xml* located under */system/etc/sysconfig/*. Among other things, the file notes:
```
<***allow-in-power-save package="com.google.android.gms"*** />
```
Comment out the highlighted line using at the end. The line should now look like:
```
```
(Click an image to enlarge it)
[](https://i.stack.imgur.com/ZdaW5.png)
[](https://i.stack.imgur.com/kuYyp.png)
Reboot the device and behold Google Play services now not available under *Not optimized* tab but available for optimization.
(Click an image to enlarge it)
[](https://i.stack.imgur.com/wvRQL.png)
[](https://i.stack.imgur.com/5GxHt.png)
I observed that the list of apps decreased too:
[](https://i.stack.imgur.com/syOrj.png)
**Note:** I used [ES File Explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop) to browse to the directory */system/etc/sysconfig* and used [QuickEdit](https://play.google.com/store/apps/details?id=com.rhmsoft.edit) to edit *google.xml*. It is not mandatory to use these tools. You can use whatsoever you find convenient.
Now, for the rest of the names in the list, refer to corresponding files noted below:
* com.android.providers.downloads : *[/system/etc/permissions/platform.xml](https://android.googlesource.com/platform/frameworks/base/+/master/data/etc/platform.xml#145)*
* com.android.vending: */system/etc/sysconfig/google.xml* -- I noticed that dealing with Google Play services automatically removed Play Store from the list
* com.google.android.apps.tycho : */system/etc/sysconfig/google\_build.xml*
* com.android.omadm.service : */system/etc/sysconfig/whitelist\_com.android.omadm.service.xml*.
Comment out the appropriate line, reboot and your tweak should work.
**Note:** I've extrapolated my findings with Google Play services here.
[SystemConfig.java](https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/SystemConfig.java) is used to read configuration from the directory */system/etc/permissions* and */system/etc/sysconfig*. So, if you have a white-listed system app not manually added and not covered in this answer, then focus your search into those two directories at first.
Upvotes: 4 [selected_answer]<issue_comment>username_2: ```
adb shell dumpsys deviceidle whitelist -"com.yourcompany.yourapp"
```
Using this command in adb you can remove apps from power saving exclusions, tested in Oreo ,non rooted
And using a plus (+) sign instead of minus- you can add apps into the exclusion list.
Editing again. There's an error. It's not working always
Upvotes: 0 |
2016/04/25 | 424 | 1,725 | <issue_start>username_0: So, I will list the problems one by one. Please help.
1. I plug phone into laptop's USB using Phone's own data/ charger cable. Everything is ok. Phone is in `MTP` mode.
2. Android Studio does not detect the phone when I try to run my app.
3. Device Manager shows an `exclamation mark` on ADB Interface, but my ASUS is connected as a portable device. (I downloaded the exact drivers for the phone, however, manually trying to select those driver to update the ADB interface fails)
4. ADB Wireless (No Root) is installed on phone, but my computer fails to do a detection with the adb commands: `devices`, `tcpip 5555`, and `usb`, giving the message `Error: device not found`.
5. As some solutions suggested, switching to `PTP` mode does not help either.
6. The ASUS phone always wants to install a Share Link software when it's connected. Is this what is blocking a simple USB data connection?
**Question:** What might be the problem, and the workaround?<issue_comment>username_1: You need to turn on the USB debugging for ADB to work.
To turn on USB debugging:
Navigate to Settings > About Phone > scroll to the bottom > tap Build number seven 7 times. You'll get toast saying that you're now a developer. 2. Go back and now you can see the Developer options in settings, check 'USB debugging' and click OK.
Some times you may need to install drivers for your phone. You can download it from manufactures website.
Upvotes: 2 <issue_comment>username_2: Sometimes when the phone driver does not install try using <http://pdanet.co/a/> Install the app when the phone is connected to the laptop. Even if the installation fails for some reason you still might get the driver for the phone ins
Upvotes: 0 |
2016/04/25 | 2,587 | 8,727 | <issue_start>username_0: I think my device got a malware. A lock screen with ads sometimes appear, and I must swipe an area at the bottom of the screen to open the phone. I am in Eastern Europe, some ads are in Slavic languages, and they are seemingly related to travel.
[](https://i.stack.imgur.com/NbbIx.png)
Image resized. Click to view the full image
I have seen ads for Lot Air (Polish carrier). I recently went to their site.
Considering my recent surfing activity and the nature of the ads, I guess the malware is connected to airlines active in Eastern Europe.
The lock screen also promotes the app "DU Quick Charger" by claiming it has recharged the phone extra fast during screen off. (!?) It also shows battery level. I have never installed DU Quick Charger. I doubt DU Quick Charger is installed on the phone.
The problem started after installing Ryanair app. The problem is maybe, but not surely, related to this. Uninstalling Ryanair and restarting the phone doesn't remove the occasional appearance of this lock screen.
After a while the situation has changed for the worse, now this lock screen appears after EVERY screen off.
I have always used Avast. I am not rooted and only install via Google Play.
What is this? And how do I remove it?<issue_comment>username_1: This lockscreen replacement is caused by an ad from [DU Quick Charge](https://play.google.com/store/apps/developer?id=DU%20APPS%20STUDIO)
-----------------------------------------------------------------------------------------------------------------------------------------
I am pretty sure that this lockscreen was added to the app "[**ES App Locker**](https://play.google.com/store/apps/details?id=com.estrongs.locker&reviewId=Z3A6QU9xcFRPSE5HbkV1bWF0STRudmZtUnNNUnZwTkQzM2xIbzJPVElGd3FMNnEyT2lzV1I0NUl6WnJwdUFWZXYxLWxLOGxGTkJxUWYzeXpVWi1aRjg1Vmc&hl=en)". Many User-Revievs are stating that this app comes with lots of unwanted ads and lockscreen-replacements.
See this review:
[](https://i.stack.imgur.com/yUENt.png)
This is what they are answering to most people:
[](https://i.stack.imgur.com/a7ElX.png)
So **you** either **have the option to turn this settings off** apparently or remove this application.
You can check the user-reviews here: [**Google Play Story**](https://play.google.com/store/apps/details?id=com.estrongs.locker)
Disabling DU Quick Charge may not work on devices. In this case insure that you completely remove the application. If the quick charge screen continues to display, check to see if you have any other apps that have this "adware" and remove them.
---
EDIT:
-----
Based on the information seen in [another question](https://android.stackexchange.com/questions/143410/what-installed-du-quick-charge-on-my-phone) I wanted to update this answer. It seems like quite a handful of applications have added this lockscreen replacement in their latest updates. There is one [Reddit discussion](https://www.reddit.com/r/Android/comments/4g8hbq/psa_amber_weather_widget_223_adds_du_quick_charge/) which mentions a few apps.
* [**ES App Locker and ES File Explorer Pro**](https://play.google.com/store/apps/details?id=com.estrongs.locker&reviewId=Z3A6QU9xcFRPSE5HbkV1bWF0STRudmZtUnNNUnZwTkQzM2xIbzJPVElGd3FMNnEyT2lzV1I0NUl6WnJwdUFWZXYxLWxLOGxGTkJxUWYzeXpVWi1aRjg1Vmc&hl=en)
* [Xender](https://play.google.com/store/apps/details?id=cn.xender)
* [Touchpal](https://play.google.com/store/apps/details?id=com.cootek.smartinputv5)
* [Amber Weather](https://play.google.com/store/apps/details?id=mobi.infolife.ezweather)
* [GO Weather Forecast & Widgets](https://play.google.com/store/apps/details?id=com.gau.go.launcherex.gowidget.weatherwidget) / (infact most Apps related to GO)
* [Z Camera](https://play.google.com/store/apps/details?id=com.jb.zcamera)
* [Kitty Play](https://play.google.com/store/apps/details?id=com.kittyplay.ex)
* [Locx](https://play.google.com/store/apps/details?id=com.cyou.privacysecurity)
* [Peel Remote](https://play.google.com/store/apps/details?id=tv.peel.app&hl=en)
As @<NAME>. pointed out - the main cause of this lockscreen replacement is the advertisement of DU Quick Charge - developed by [DU APPS STUDIO](https://play.google.com/store/apps/developer?id=DU%20APPS%20STUDIO&hl=en).
If you are experiencing similar problems then check [this helpful answer](https://android.stackexchange.com/a/127862/120021) by @Firelord to check which app might cause this.
I'll try to update this answer from time to time.
Upvotes: 7 [selected_answer]<issue_comment>username_2: Amber Weather was the reason DU Quick Charge was added to my lock screen. ES File Explorer and ES App Locker was not the cause.
Upvotes: 2 <issue_comment>username_3: It was ES App Locker, and they are currently sock puppet blasting the app with 5 star ratings to try and counter the deluge of 1 stars... It's pretty sad actually, and it's why I switched to Solid File manager, which I actually like more than I liked es... It does a 14 day trial before you have to buy in, But there are a bunch of alternatives that aren't pay to use, such as Amaze File manager which is open source, so it should never be pay to use.
Upvotes: 2 <issue_comment>username_4: This is to provide additional evidence that [ES Explorer](https://play.google.com/store/apps/details?id=com.estrongs.android.pop) is another culprit, from the family of ES apps
[Network Monitoring: How to Get Started and Why You Should Consider it](http://www.xda-developers.com/network-monitoring-how-to-get-started-and-why-you-should-consider-it/), a post which appeared on XDA portal yesterday confirms this using [Fiddler- The free web debugging proxy for any browser, system or platform](http://www.telerik.com/fiddler)
The XDA post explains, set up of Fiddler, creating a proxy, connecting your phone and laptop on the same WiFi network and analysing traffic. In particular, it analysed traffic from ES Explorer and says
>
> * Even though the Pro version does not come with ads, several MBs worth are still being downloaded just not shown.
> * The app is built poorly with no regard for efficiency.
> * The app is communicating with Baidu constantly.
>
>
>
Post ends with pictorial evidence of other malware assosciated with ES Explorer
[](https://i.stack.imgur.com/YXKlf.jpg)
Upvotes: 3 <issue_comment>username_5: In my phone the reason for the lockscreen was the Xender File Sharing App. When I clicked the little gear(settings) icon on the top right corner it gave me an option to switch off the Xender Quikcharge feature and so I did. I don't get this screen anymore.
I went to the Xender app page on the Google Play Store and a lot of other users had also complained about the same problem. Hope this helps.
Upvotes: 2 <issue_comment>username_6: It seems ES File Explorer does this now - I have had it installed for years, but today I saw DU Quick Charge pop up and it seems to be tied with an update of ES File Explorer. I uninstalled it and the malware is gone.
Upvotes: 4 <issue_comment>username_7: For people like me who hate ES Explorer doing this but can't move away from it right now(because of its loads of features!):
We can disable this unnecessary feature:
* *Go to Es Explorer Tools and disable charging boost.*
This will remove the annoying ad screen you see when you plugin the charging cable.
Upvotes: 4 <issue_comment>username_8: A [Reddit](https://www.reddit.com/r/Android/comments/4jle6o/hi_i_started_a_spreadsheet_listing_applications) user has started to collect together the apps that have included this 'feature'/adware.
The list currently contains:
* Xender
* ~~ES File explorer (by ES Global)~~ [Removed](http://www.androidpolice.com/2016/05/25/es-file-explorer-update-removes-the-adware-charging-screen/)
* ES App Locker (by ES Global)
* KittyPlay Wallpapers Ringtones
* GO apps (Go Weather, Keyboard, SMS, Next Browser)
* TouchPal Suite (Anything made by them)
* Z Camera
* HiFont
* TrustGo
* Battery Doctor
* InstaMag
* FotoRus - Photo Editor Pro
* UC Browser
* App2SD
* 360security
* Photo Editor Pro by Zentertain
* AppLock by Fotoable,Inc
* Secret Video Recorder by CME Services
* Between
* Sharecloud (by For2ww)
* Flashlight & LED Torch (by Zentertain)
* Photo Collage Editor by Zentertian
* LOCX: App Lock (CY Secure)
* XBrowser - Super Fast and mini by XMan
* iMuslim
* Solo Launcher
* Go Speed
* Photo Grid
* Avast Mobile Security free
* S Photo Editor
* AllShare
* Multi Calculator
Upvotes: 4 |
2016/04/25 | 2,516 | 5,973 | <issue_start>username_0: Is it possible to output the absolute file path when executing `ls -l` on Android (e.g. via `adb shell` or in a terminal app)?
Here is the output I get from `ls -l /etc/` (I have root access):
```
E:\Dropbox\Droid Explorer\src\main\resources\com\droid\explorer\adb>adb shell su root ls -l /etc/
-rw-r--r-- root root 16656 2009-01-01 03:00 CHANGELOG-CM.txt
-rw-r--r-- root root 9944 2009-01-01 03:00 CHANGES.txt
-rw-r--r-- root root 154482 2009-01-01 03:00 NOTICE.html.gz
drwxr-xr-x root root 2009-01-01 03:00 acdbdata
-rw-r--r-- root root 598006 2009-01-01 03:00 apns-conf.xml
-rw-r--r-- root root 5491 2009-01-01 03:00 audio_effects.conf
-rw-r--r-- root root 6198 2009-01-01 03:00 audio_policy.conf
drwxr-xr-x root root 2009-01-01 03:00 bash
drwxr-xr-x root root 2009-01-01 03:00 bluetooth
-rw-r--r-- root root 101774 2009-01-01 03:00 build-manifest.xml
-rw-r--r-- root root 1045 2009-01-01 03:00 clatd.conf
drwxr-xr-x root root 2009-01-01 03:00 dhcpcd
-rw-r--r-- root root 1362 2009-01-01 03:00 ethertypes
-rw-r--r-- root root 18300 2009-01-01 03:00 event-log-tags
-rw-r--r-- root root 14309 2009-01-01 03:00 fallback_fonts.xml
```
What I would like to get is the absolute path, ex:
```
E:\Dropbox\Droid Explorer\src\main\resources\com\droid\explorer\adb>adb shell su root ls -l /etc/
-rw-r--r-- root root 16656 2009-01-01 03:00 /etc/CHANGELOG-CM.txt
-rw-r--r-- root root 9944 2009-01-01 03:00 /etc/CHANGES.txt
-rw-r--r-- root root 154482 2009-01-01 03:00 /etc/NOTICE.html.gz
drwxr-xr-x root root 2009-01-01 03:00 /etc/acdbdata
-rw-r--r-- root root 598006 2009-01-01 03:00 /etc/apns-conf.xml
-rw-r--r-- root root 5491 2009-01-01 03:00 /etc/audio_effects.conf
-rw-r--r-- root root 6198 2009-01-01 03:00 /etc/audio_policy.conf
drwxr-xr-x root root 2009-01-01 03:00 /etc/bash
drwxr-xr-x root root 2009-01-01 03:00 /etc/bluetooth
-rw-r--r-- root root 101774 2009-01-01 03:00 /etc/build-manifest.xml
-rw-r--r-- root root 1045 2009-01-01 03:00 /etc/clatd.conf
drwxr-xr-x root root 2009-01-01 03:00 /etc/dhcpcd
-rw-r--r-- root root 1362 2009-01-01 03:00 /etc/ethertypes
-rw-r--r-- root root 18300 2009-01-01 03:00 /etc/event-log-tags
-rw-r--r-- root root 14309 2009-01-01 03:00 /etc/fallback_fonts.xml
```<issue_comment>username_1: Since the Android is rooted, you can use any of the following commands:
```
# Replace DIR with the directory's path; prefix **adb shell** wherever appropriate.
su -c 'busybox ls -ld DIR*'
su -c 'toybox ls -ld DIR*'
su -c 'ls -d DIR*' # this does not work with long list format available through -l
```
(Courtesy of the answer [here](https://serverfault.com/a/242229) from An̲̳̳drew for listing the argument *-d*).
Android Marshmallow comes with Toybox. For any other Android version, you would need to setup [BusyBox](https://play.google.com/store/apps/details?id=stericson.busybox) or [Toybox](https://android.stackexchange.com/a/130326/96277).
Example:
[](https://i.stack.imgur.com/YepuX.png)
Upvotes: 0 <issue_comment>username_2: You can also write a recursive list function in `sh` - this function can be copy-pasted in `adb shell`, without root permissions:
```
function rcrls() { ls -d $1/* | while read f; do echo "$f"; if [ -d "$f" ]; then rcrls "$f"; fi; done }
```
Then, use it as:
```
shell@myphone:/ $ rcrls /
```
Unfortunately, it will persist only for the current `adb shell` session, once you're out of it, you'll have to paste it again; or you can use it like this:
```
$ adb shell 'function rcrls() { ls -d $1/* | while read f; do echo "$f"; if [ -d "$f" ]; then rcrls "$f"; fi; done } ; rcrls /' | less
```
Then you can see files listed as:
```
...
//acct/uid/1000
//acct/uid/1000/cgroup.clone_children
//acct/uid/1000/cgroup.event_control
//acct/uid/1000/cgroup.procs
//acct/uid/1000/cpuacct.stat
//acct/uid/1000/cpuacct.usage
...
```
To get a listing with `-l` info, it's a bit tricky, since there's no working `sed` on `adb shell`; however, we can use string variable shell expansion and truncating to remove the basename from the listing, and then we can append the full path:
```
function rcrls() {
ls -d $1/* | while read f; do
if [ -d "$f" ]; then
fl="$(ls -ld $f/)";
echo "${fl%\ *}" "$f";
rcrls "$f";
else
fl="$(ls -l $f)";
echo "${fl%\ *}" "$f";
fi;
done
} ;
rcrls /
```
Or, as one liner:
```
adb shell 'function rcrls() { ls -d $1/* | while read f; do if [ -d "$f" ]; then fl="$(ls -ld $f/)"; echo "${fl%\ *}" "$f"; rcrls "$f"; else fl="$(ls -l $f)"; echo "${fl%\ *}" "$f"; fi; done } ; rcrls /' | less
```
... and then you get a listing as:
```
drwxr-xr-x root root 2017-11-15 02:29 //acct
-rw-r--r-- root root 0 2017-11-15 02:29 //acct/cgroup.clone_children
--w--w--w- root root 0 2017-11-15 02:29 //acct/cgroup.event_control
-rw-r--r-- root root 0 2017-11-15 02:29 //acct/cgroup.procs
-r--r--r-- root root 0 2017-11-15 02:29 //acct/cpuacct.stat
...
```
Upvotes: 0 <issue_comment>username_3: `ls` by default list everything supplied via argument. From `man ls`:
>
> -d, --directory
> list directories themselves, not their contents
>
>
> -l use a long listing format
>
>
>
So you can simly supply everything inside your targer directory, and give the option `-d`.
```
[adb shell] [su -c] ls -dl /etc/*
^ optional, depending on your shell environment
```
Which gives
```
rwxr--r-- 1 root root 1024 Jun 4 22:32 /etc/hosts
...
(and a lone list)
```
Upvotes: 2 [selected_answer] |
2016/04/26 | 1,035 | 3,973 | <issue_start>username_0: With my S4 running CM13 I'm now getting this error,
>
> Unfortunately, Setup Wizard has stopped.
>
>
>
How do I resolve it?<issue_comment>username_1: Here is a method that you can do without whiping,
1. Boot into TWRP Recovery
2. Mount System ( Mount → check `System` )
3. Advanced → File Manager
4. Browse to `/system/priv-app/Setup-Wizard`
5. Delete it
Upvotes: 3 <issue_comment>username_2: I noticed when clicking `report` that the issue was a permissions issue.
using `adb shell dumpsys package com.google.android.setupwizard`
you will see two lists related to permissions, one *requested permissions*, and one *install permissions*.
Comparing these lists, there were 8 items requested, but not installed.
I fixed this using:
```
pm grant com.google.android.setupwizard android.permission.CALL_PHONE
pm grant com.google.android.setupwizard android.permission.GET_ACCOUNTS
pm grant com.google.android.setupwizard android.permission.PROCESS_OUTGOING_CALLS
pm grant com.google.android.setupwizard android.permission.READ_CONTACTS
pm grant com.google.android.setupwizard android.permission.READ_PHONE_STATE
pm grant com.google.android.setupwizard android.permission.WRITE_CONTACTS
pm grant com.google.android.setupwizard android.permission.READ_OWNER_DATA
pm grant com.google.android.setupwizard android.permission.WRITE_OWNER_DATA
```
Note that the last two items gave an error message: `Bad argument: java.lang.IllegalArgumentException: Unknown permission: android.permission.READ_OWNER_DATA`.
But ignoring those, now my phone worked again.
Upvotes: 2 <issue_comment>username_3: 1. Make sure in *Settings* > *Developers Options* you have enabled *USB Debugging* (now called *Android debugging*) and under *Root access* you have selected **Apps and ADB**.
2. Connect the USB cable to a computer that has `adb` installed and working (assuming it is available in PATH).
3. From the terminal run:
```
adb root
adb shell 'pm disable com.google.android.setupwizard'
```
If you don't have root or if `adb root` fails, then you can use instead `adb shell 'pm hide com.google.android.setupwizard'`.
**NOTE**: This problem usually happens when installing a major CM update without wiping the data partition, so probably a cleaner solution would be backing up all the relevant apps, doing a clean install, installing the correct version of gapps, and then restoring your app data from backups.
Upvotes: 2 <issue_comment>username_4: For me this solution worked. It might be annoying as you have to do all the clicks in between the Setup Wizard error messages.
And yes, this method will work in all the versions of android (including 7.1.1-Tested)
1. Go to Settings (from notification panel, obviously)
2. Go to Apps
3. Click on the 3 dots in upper right corner
4. Click on Show system
5. Scroll all the way to Setup wizard in the list of apps and click on it
(Under the permission you will probably see something like No permissions)
6. Click on Permissions
7. Grant permissions to both Telephone and Contacts, (if there is any other like, camera, location, **Grant Them All**)
The error message disappeared as soon as I did this. Hope it helps
;)
Upvotes: 1 <issue_comment>username_5: I tried all the solutions listed here, and in my case they didn't work. Removing the setupwizard alltogether did work, but it also broke multiuser functionality (apparently the default user gets created in the wizard, and without the user you can't create more users!). Also the home-button and square-button didn't work at all. So I decided to flash the image again and solve the problem instead of curing the symptoms.
In my case, I had to get into the settings menu and enable+connect to WiFi. Apparently the wizard "forgets" to show the connect to wifi dialog!
Getting into the settings menu took a few tries, but it's absolutely doable.
Once I was connected to wifi, it worked as it should. I'm running AOSP 7.1.2 on a Nexus 7 2012.
Upvotes: 2 |
2016/04/26 | 995 | 3,154 | <issue_start>username_0: I have an old droid RAZR Maxx (4.1.2) that I decided I want to root, but I want to make a backup first just in case. I've followed instructions from this site:
[How To Create a Full Android Phone or Tablet Backup Without Rooting or Unlocking Your Device](http://www.howtogeek.com/125375/how-to-create-a-full-android-phone-or-tablet-backup-without-rooting-or-unlocking-your-device/)
My command was this:
```
adb backup -apk -shared -all -f c:\backup.ab
```
The resulting `backup.ab file` on the C: drive was only 41 bytes and, when opened in a hex editor, appears to only be the header of the backup file. I'm wondering what I'm doing wrong here, I've googled but can't find anything that helps. Any suggestions?
Edit: This is not a duplicate of the suggested a topic linked by beeshyams. That topic explains why the user couldn't back up one *single* app's files, I'm trying to back up everything. I don't care if I don't get SMS included in that backup because it's an old phone, I'm not using it to text, but there are other apps and settings that *should* back up without issue.<issue_comment>username_1: Found solution here, worked for me:
<https://docs.j7k6.org/android-adb-backup-41-bytes-549-bytes-bug-fix/>
>
> Appearantly the adb backup command stopped working for older Android
> devices in recent versions of the Android Debug Bridge. When invoking
> a backup with adb, the backup process is started but stops
> immediately, leaving a local backup.ab file with a filesize of only 49
> bytes (549 bytes when the backup is encrypted with a password). This
> bug is well known, but hasn’t been fixed at least until recently
> (version 1.0.39). To fix this behaviour, download the last working
> version of the adb executable (1.0.31) and invoke the backup with
> this. The executables for all platforms can be downloaded at Mozilla.
>
>
>
<https://archive.mozilla.org/pub/labs/android-tools/>
```
adb-1.0.31-linux.zip 479K 09-Sep-2015 18:44
adb-1.0.31-linux64.zip 455K 09-Sep-2015 18:44
adb-1.0.31-mac.zip 433K 09-Sep-2015 18:44
adb-1.0.31-windows.zip 474K 09-Sep-2015 18:44
```
Download, unzip, run unzipped adb:
(linux, mac)
```
./adb devices
./adb backup -apk -shared -all -f backup-file.adb
```
(win)
```
adb devices
adb backup -apk -shared -all -f backup-file.adb
```
Enjoy! ;)
Upvotes: 3 <issue_comment>username_2: You should not try to backup the "entire" phone with adb, because it's plenty of bugs. My recommendation is to backup apps one by one and avoid the '-shared' flag because backup of shared storage is broken. Just copy and paste to a memory card of use ftp server to upload to your computer those things from internal sdcard.
Again: backup one app at a time and check for .ab file size so it's not "empty". It will be empty when the unencrypted backup has 41, 47 or 49 byte size. If encrypted will be 549 byte size for empty.
Latest adb is 1.0.41
Note also that some apps don't allow adb backup, and other even if allow it don't "store" anything on there because of app policy. Examples are apps which use cloud services like Google, etc.
Upvotes: 1 |
2016/04/26 | 228 | 931 | <issue_start>username_0: I faced a problem with my `32 GB SD Card` on `Samsung Galaxy Grand Prime`. Device says `Damaged SD card`. I changed it to a brand new (also 32 GB) SD card... And problem didn't gone. Each card read perfect via card reader, but not on my phone.. What can I do?<issue_comment>username_1: The grand prime is known to cause electrical damage to sd cards and without warning. I have two of these phones and they each destroy an sd card every 3 months. The cards may have self sensed damage and dropped into read only mode, in which case you can read them with a usb reader on a desktop but the phone will refuse to mount at all, and the will not be writable in any case.
Upvotes: 0 <issue_comment>username_2: Sounds like it's the card reader in the phone if the cards are working perfectly with other card readers. Also alot of people with the grand prime have been having the same problems at you.
Upvotes: -1 |
2016/04/26 | 1,107 | 4,065 | <issue_start>username_0: I have a Samsung Galaxy S5 from Verizon, bought a little over one year ago. As soon as the one year warranty was over the device started acting up. Right now it is in an unreliable working state.
Symptoms:
---------
* The device freezes almost constantly at a rate of at least once an hour (4 times in the past 3 hours).
* There is not one app in particular to cause the freeze, that I can trace to. It seems that any time I do something which requires it to work a little, like loading a web page, brings the device to a freeze.
* Sometimes it just restarts.
* Sometimes it says "Start Up Failed" when booting up.
What I've done:
---------------
* Removed the SD card completely.
* Reset the device to factory defaults multiple times (about once per week). After this, it works good for a few days then goes back into freezing mode.
* Uninstalled most of the apps, especially the once I don't really use daily.
* Disabled all the pre-installed Verizon apps (the once that I could).
* Disabled auto updates.
* Took the device to the local Verizon shop and they didn't do anything to help, besides trying to get me to buy something else.
Any idea of what else I could do to fix this issue?
EDIT
----
The device got to a point where it became impossible to perform any operations. If it wasn't constantly restarting, it would restart at the very first operation. Any attempt to do anything on the device sent it into restart.
I was able to talk to a few technicians from Samsung and they determined that the problem sits with the hardware, perhaps the motherboard. Therefore I ended up sending the device to Samsung for repair.
[](https://i.stack.imgur.com/S4eEQ.jpg)<issue_comment>username_1: As a method of starting to debug this, Linux keeps [a log for the kernel.](https://android.stackexchange.com/a/27248/7425) I'm not sure if `/proc/last_kmsg` is there or not, but you want the kernel log.
I'd start by replacing [the stock recovery with TWRP](https://twrp.me/). Whether or not you want to Flash to a different rom. TWRP has a [file browser.](https://www.youtube.com/watch?v=ss0Rg1jLtV8) It should let you save the kernel's log either way. You want to pay attention to two files:
* /var/log/boot.msg (useful in the state after the failed boot)
* /var/log/syslog (useful in the state after the crash, and the state after the boot)
You'll want to thoroughly examine these files and paste the contents up here. It's possible the problem is hardware though. I'd flash CM13 (because it's all around better), and see if that fixes it. If problems persist on a fresh CM13, you know you've got a hardware issue.
Upvotes: 1 <issue_comment>username_2: I would advise, as your next step, to attempt reformatting the phone with the stock images. This will erase the device completely.
Follow [this guide](http://forum.xda-developers.com/showthread.php?t=2784880). The procedure provides all the files you need, and walks you through the steps needed to perform to reinstall the factory images.
You may also be interested in installing TWRP recovery, as I 2nd Even Carroll's suggestion of installing CyanogenMod13 as a last ditch effort to stop this.
Should the problem persist, after reinstalling the factory images *and* from installing CM13 (an alternative) I would be hard pressed to think the storage on your device is malfunctioning and needs service.
Upvotes: 0 <issue_comment>username_3: I found a few solutions online, maybe you can glean some information from them as they seem to all relate to the model you are having issues with:
<http://thedroidguy.com/2015/05/how-to-fix-freezing-lag-slow-performance-problems-on-samsung-galaxy-s5-part-1-107191>
<http://thedroidguy.com/2015/10/how-to-troubleshoot-a-samsung-galaxy-s5-that-constantly-freezes-and-lags-other-performance-issues-1050209>
Hope that helps. They also have a form you can fill in to state your specific problem, perhaps they can assist if none of the other solutions work.
Upvotes: -1 |
2016/04/26 | 8,396 | 28,701 | <issue_start>username_0: Just as the other times, an answer to my question *shall not* contemplate an app from either the Play Store, or any other source. What I'm after, is a tool capable to backup **user apps**, **system apps** or **both those categories**, when launched from within a working Android OS.
Backing up the apps' external data *is not relevant*. The only thing that counts, is the ability to batch backup the **base.apk** file, found in each **/data/app/appName/** directory, in order for me to be able to reinstall it either in order to revert to a previous version, or to install it from scratch.
Lastly, I would prefer for the tool to be freely customizable (e.g. not compiled). Maybe something like a shell script?<issue_comment>username_1: **This script is outdated and no longer supported. For the newest version, which requires Android 5+ and Python 3.5+, and supports Arcus theme variants and Substratum overlays, see my [GitHub repository](https://github.com/DMSalesman/Nemris).**
---
Here's my revamped script, now dubbed **NEMRIS**, which satisfies the question. As usual, it's freely editable by anyone, and sh-compliant as well, meaning that it can be ran from the Android shell.
Actually, the script depends upon the **aapt** utility, can discern if the utility is installed, is able to determine whether the `backupDir` and the `appsToBackup` variables are empty or not and, if they are, it sets default values instead of aborting.
Still, the **date** binary cannot determine your true time zone, so everyone should manually edit their `TZ` variable.
Once it has been ran for the first time, the tool is able to discern whether an APK has already been backed up or not, by making use of an array filled with MD5 checksums.
It also stores said array into a dictionary, called **md5sums.txt**, which is a plaintext file located into the APK backup directory. This feature is able to reduce the elapsed time of a good half, but it depends on a **stat** binary able to measure a file's exact size in bytes. If **stat** does not comply, the checksums will be computed each and every time, as in the previous version of the script. This is to ensure that NEMRIS will depend only upon **aapt**. Remember to manually wipe the **md5sums.txt** if you do some cleanup in the backup folder.
As a plus, the script now has a `maxDictSize` variable, which accepts an integer value. The inputted value will be interpreted as bytes. This can be customized, and serves to recompute the checksums dictionary if its size exceeds the maximum.
Finally, I patched it to support third-party apps whose names have forward slashes in them. No more weird errors, I guess.
I hope it may prove useful.
License: GNU General Public License, [version 3](https://www.gnu.org/licenses/gpl-3.0-standalone.html) or later.
---
```
#!/system/bin/sh
# nemris - an Android app backup tool
# Copyright (C) 2016 <NAME>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License at for
# more details.
#This variable is used to calculate the total elapsed time
#DO NOT alter it, or the script won't be able to calculate it
SECONDS=0
#This variable is used to output the time when the script is launched
#Edit the plus/minus and the value after "UTC", to force date into displaying your correct time zone
timeAtStart="$(TZ=UTC-2 date +%H:%M:%S)"
#This variable stores the path where to backup your apps' APK files
#Edit it freely, but do not forget the quotes
backupDir=""
#This variable stores the path where the script is located
scriptDir="$(dirname "$(readlink -f "$0")")"
#This variable tells the script which apps to backup
#Supported values are:
# - "User": tells the script to backup only third-party apps
# - "System": tells the script to backup only system apps
# - "All": tells the script to backup both 3rd party and system apps
appsToBackup=""
#This variable contains the maximum size of the checksums dictionary, in bytes
#It is used to decide whether to flush the dictionary or not
typeset -i maxDictSize=20000
#This function outputs the time when the operations start. Purely cosmetic: can be disabled safely
#///Beginning of function "timeInfo"///
function timeInfo {
echo "[ INFO ] Operations started at "$timeAtStart"."
}
#///End of function "timeInfo"///
#This function checks if the "aapt" and "stat" utilities are installed
#///Beginning of function "dependencyChecker"///
function dependencyChecker {
echo "[ INFO ] Checking if aapt and stat are installed..."
whence -v aapt &> /dev/null
isAaptAbsent="$(echo $?)"
whence -v stat &> /dev/null
isStatAbsent="$(echo $?)"
if [ "$isAaptAbsent" == "0" ]; then
echo "[ INFO ] aapt has been found."
unset isAaptAbsent
else
echo "[ FATAL ] aapt cannot be found. Aborting."
exit
fi
if [ "$isStatAbsent" == "0" ]; then
echo "[ INFO ] stat has been found."
echo ""
echo "[ INFO ] Checking if stat can measure exact file sizes..."
stat -c %s "$scriptDir/nemris.sh" &> /dev/null
if [ "$(echo $?)" == "0" ]; then
echo "[ INFO ] Measurement successful."
isStatUsable="1"
unset isStatAbsent
else
echo "[ WARNING ] Measurement failed. stat will be ignored."
isStatUsable="0"
unset isStatAbsent
fi
else
echo "[ WARNING ] stat cannot be found."
isStatUsable="0"
unset isStatAbsent
fi
}
#///End of function "dependencyChecker"///
#This function verifies whether the values into "backupDir" and "appsToBackup" have anything inside or not
#In the case that the variables are empty, default values will be used, instead
#///Beginning of the function "variablesChecker"///
function variablesChecker {
echo "[ INFO ] Checking if a backup path has already been specified..."
if [ "$backupDir" == "$(cat /dev/null)" ]; then
echo "[ WARNING ] A backup path has not been specified."
echo "[ WARNING ] Setting the path to default (/sdcard/AppsBackup)."
backupDir="/sdcard/AppsBackup"
else
echo "[ INFO ] Backup path has already been specified."
fi
echo ""
echo "[ INFO ] Checking if the typology of apps to backup has already been chosen..."
if [ "$appsToBackup" == "$(cat /dev/null)" ]; then
echo "[ WARNING ] A typology of apps to backup has not been specified."
echo "[ WARNING ] Setting the default typology (User)."
appsToBackup="User"
else
echo "[ INFO ] A typology of apps has already been specified."
fi
}
#///End of the function "variablesChecker"///
#This function emulates the case insensitivity for "appsToBackup", usually provided by brace expansion, but lacked by sh
#In the case that an unsupported value is found, a default value will be used instead
#///Beginning of the function "caseInsensitiveWorkaround"///
function caseInsensitiveWorkaround {
systemArray="$(echo -n {s,S}{y,Y}{s,S}{t,T}{e,E}{m,M})"
userArray="$(echo -n {u,U}{s,S}{e,E}{r,R})"
allArray="$(echo -n {a,A}{l,L}{l,L})"
case ${appsToBackup:0:1} in
s|S)
for i in $systemArray; do
case "$appsToBackup" in
$i)
appsToBackup="System"
;;
esac
done
;;
u|U)
for i in $userArray; do
case "$appsToBackup" in
$i)
appsToBackup="User"
;;
esac
done
;;
a|A)
for i in $allArray; do
case "$appsToBackup" in
$i)
appsToBackup="All"
;;
esac
done
;;
\*)
echo "[ WARNING ] \""$appsToBackup"\": invalid typology."
echo "[ WARNING ] Setting the default typology (User)."
appsToBackup="User"
;;
esac
case "$appsToBackup" in
System|User|All)
;;
\*)
echo "[ WARNING ] \""$appsToBackup"\": invalid typology."
echo "[ WARNING ] Setting the default typology (User)."
appsToBackup="User"
;;
esac
}
#///End of the function "caseInsensitiveWorkaround"///
#This function checks if the backup directory already exists
#///Beginning of the function "backupDirCheck"///
function backupDirCheck {
echo "[ INFO ] Checking if the backup directory already exists..."
if [ -d "$backupDir" ]; then
echo -n "[ INFO ] Backup directory already exists, "
cd "$backupDir"
#echo "[ INFO ] Checking if the directory is empty..."
if [ "$(ls | grep "\.apk$" | head -n 1)" == "$(cat /dev/null)" ]; then
echo "and does not have any APK file inside."
else
echo "and has at least an APK file inside."
isDirectoryEmpty="0"
fi
else
echo "[ INFO ] Backup directory does not exist. Creating it now."
mkdir -p "$backupDir"
cd "$backupDir"
fi
}
#///End of the function "backupDirCheck"///
#This function compares the size of the checksums dictionary and flushes it if too big
#///Beginning of function "sizeComparer"///
function sizeComparer {
echo "[ INFO ] Comparing the dictionary size to the max value..."
typeset -i dictSize="$(stat -c %s "$backupDir/md5sums.txt")"
if [ $dictSize -ge maxDictSize ]; then
echo "[ INFO ] The dictionary size exceeds the maximum value. The checksums will be recomputed."
dictTooBig="1"
unset dictSize
else
echo "[ INFO ] The dictionary size does not exceed the maximum value."
fi
}
#///End of function "sizeComparer"///
#This function generates a MD5 array, filled with the checksum of each APK file
#///Beginning of the function "checksumsGenerator"///
function checksumsGenerator {
echo "[ INFO ] Generating file checksums..."
apkList="$(printf "%s\n" \* | grep "\.apk$")"
for i in $apkList; do
tempMd5=($(md5sum $i))
md5Array="$tempMd5 $md5Array"
done
cat << EOF > "$backupDir/md5sums.txt"
md5Array="$md5Array"
EOF
echo "[ INFO ] MD5 array generated."
}
#///End of the function "checksumsGenerator"///
#This function creates a list of the apps to backup, based on the content in "appsToBackup"
#///Beginning of the function "appListGenerator"///
function appListGenerator {
case "$appsToBackup" in
System)
echo "[ INFO ] Retrieving system apps list..."
appList="$(pm list packages -s)"
;;
User)
echo "[ INFO ] Retrieving third-party apps list..."
appList="$(pm list packages -3)"
;;
All)
echo "[ INFO ] Retrieving apps list..."
appList="$(pm list packages)"
;;
esac
echo "[ INFO ] Applications list retrieved."
}
#///End of the function "appListGenerator"///
#This function creates an array, filled with each app's full path
#///Beginning of the function "apkPathRetriever"///
function apkPathRetriever {
echo "[ INFO ] Collecting the path of each app's APK..."
for i in $appList; do
apkPath="${i#p\*:}"
apkPath="$(pm path $apkPath)"
apkPath="${apkPath#p\*:}"
pathArray="$apkPath $pathArray"
done
echo "[ INFO ] Paths collected."
}
#///End of the function "apkPathRetriever"///
#This function extracts the label or the package name for the APK supplied to it
#It extracts the app label for any third-party app, the package name for any system app
#///Beginning of the function "appNameRetriever"///
function appNameRetriever {
case "$1" in
/system/\*)
appName="${aaptOutput#\*name=\'}"
appName="${appName//\'\*/}"
displayedName="$appName"
;;
/data/\*|/mnt/asec/\*)
appName="${aaptOutput#\*application-label:\'}"
appName="${appName//app\*/}"
appName="${appName%\'\*}"
displayedName=$appName
appName="${appName//\//}"
appName="$(printf "%s" $appName)"
;;
esac
}
#///End of the function "appNameRetriever"///
#This function retrieves the version number of the APK
#///Beginning of the function "appVersionRetriever"///
function appVersionRetriever {
appVersion="${aaptOutput#\*versionName=\'}"
appVersion="${appVersion//platformBuildVersion\*/}"
appVersion="${appVersion%\'\*}"
appVersion="$(printf "%s" $appVersion)"
}
#///End of the function "appVersionRetriever"///
#This function compares the MD5 of the APK in question against any MD5 in the array
#If it finds a match, then the function exits and the APK isn't backed up
#///Beginning of the function "md5Compare"///
function md5Compare {
alreadyBackedUp=0
appMd5=($(md5sum "$1"))
for c in $md5Array; do
if [ "$alreadyBackedUp" == "0" ]; then
if [ "$appMd5" == "$c" ]; then
alreadyBackedUp=1;
fi
else
break;
fi
done
}
#///End of the function "md5Compare"///
#This function decides whether to backup an app or not
#It calls both "appNameRetriever" and "appVersionRetriever" for renaming any copied "base.apk"
#It also decides whether to call "md5Compare" or not, in order to see if an app has already been backed up
#///Beginning of the function "apkBackup"///
function apkBackup {
for i in $pathArray; do
aaptOutput="$(aapt d badging "$i")"
appNameRetriever "$i"
appVersionRetriever
if [ "$isDirectoryEmpty" == "0" ]; then
md5Compare "$i"
if [ "$alreadyBackedUp" == "0" ]; then
echo -n "[ INFO ] Backing up "$displayedName"... "
cp "$i" "$backupDir"/$appName"\_"$appVersion.apk
echo "done."
md5Array="$appMd5 $md5Array"
else
echo "[ INFO ] "$displayedName" has already been backed up."
fi
else
echo -n "[ INFO ] Backing up "$displayedName"... "
cp "$i" "$backupDir"/$appName"\_"$appVersion.apk
echo "done."
fi
done
if [ "$md5Array" != "$(cat /dev/null)" ]; then
cat << EOF > "$backupDir/md5sums.txt"
md5Array="$md5Array"
EOF
fi
}
#///End of the function "apkBackup"///
#This is the core of the tool
echo "\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
echo " NEMRIS - App backup tool "
echo " by <NAME> "
echo "\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
timeInfo
echo ""
dependencyChecker
echo ""
variablesChecker
echo ""
caseInsensitiveWorkaround
echo ""
backupDirCheck
echo ""
#This section checks whether to analyze the dictionary size
#It also decides whether to compute the checksums
if [ "$isDirectoryEmpty" == "0" ]; then
if [ -e "$backupDir/md5sums.txt" ]; then
if [ "$isStatUsable" == "1" ]; then
sizeComparer
echo ""
else
dictTooBig="1"
fi
if [ "$dictTooBig" == "1" ]; then
checksumsGenerator
echo ""
else
source "$backupDir/md5sums.txt"
fi
else
echo "[ INFO ] Checksums not calculated yet."
checksumsGenerator
echo ""
fi
fi
appListGenerator
echo ""
apkPathRetriever
echo ""
apkBackup
echo ""
echo "[ INFO ] Operations took "$(((SECONDS/60)/60))" hours, "$(((SECONDS/60)%60))" minutes and "$((SECONDS%60))" seconds."
echo "[ INFO ] All done!"
```
Upvotes: 3 <issue_comment>username_1: This is a particular, improved version of the standard **Nemris** tool. It constitutes a separate answer because, while it provides a dramatic speed improvement, it's mostly untested (it works for certain under **CM12.1** and **CM13**).
---
License
-------
This tool is licensed under the WTFPL license. In other words, do what you want with it. Reuse its components, sublicense it... and quote me as the original author, if you wish. I take no responsibilities, though.
---
Differences from the old Nemris
-------------------------------
* The verbosity of the tool has been reduced.
* stat is no longer necessary.
* The backup speed has been greatly improved: a delta backup takes around 25 seconds, rather than one minute.
* Fixed the buggy backup of system apps by ignoring aapt.
* Added support for backup of disabled apps.
* Two optional command line arguments have been added; the usage is below.
---
Default backup directory
------------------------
To specify a custom backup directory, manually edit **line 17**. If you leave it blank, the script will default to **/sdcard/NemrisBackup**.
---
Usage
-----
Nemris can be either launched without arguments, or with two optional arguments. Usage:
```
nemris.sh [app_typology] [reset]
```
. The first argument can be **User**, **System**, **Disabled** or **All**, or even be left blank. If the supplied argument is unrecognized or null, the tool defaults to **User**. Case insensitivity is supported.
The second argument may only be **reset**, and may be specified only if the first argument has been specified as well. If you do so, the tool will delete and recreate its configuration files, which are located in the same place as the script.
---
```
#!/system/bin/sh
# A bunch of variables and a function that facilitate the script's workings
# Do not alter them unless you know what you're doing
SECONDS=0
app_typology="$1"
null="$(cat /dev/null)"
script_location="$(dirname "$(readlink -f "$0")")"
function var_to_file {
echo "$1=\"$2\"" >> "$script_location/nemris_config.txt"
}
####################
# This variable is needed to define the backup location
backup_location=""
####################
# This function cleans up the files generated in a previous execution
function settings_md5_files_delete {
echo -ne "[ INFO ] Deleting Nemris configuration and MD5 dictionary..."
if [ -e "$script_location/nemris_config.txt" ]; then
if [ -e "$script_location/md5_dictionary.txt" ]; then
rm "$script_location/nemris_config.txt" "$script_location/md5_dictionary.txt"
else
rm "$script_location/nemris_config.txt"
fi
else
if [ -e "$script_location/md5_dictionary.txt" ]; then
rm "$script_location/md5_dictionary.txt"
else
echo -ne " no files to remove..."
fi
fi
echo " done. The files will be regenerated."
}
# This function checks if a settings file has been generated from a previous execution and loads its data
function settings_file_check {
echo -ne "[ INFO ] Checking for Nemris configuration file..."
if [ -e "$script_location/nemris_config.txt" ]; then
echo " found."
if [ "$backup_location" == "$null" ]; then
source "$script_location/nemris_config.txt"
else
temp="$backup_location"
source "$script_location/nemris_config.txt"
backup_location="$temp"
unset temp
fi
else
echo " not found. The configuration will be regenerated."
touch "$script_location/nemris_config.txt"
fi
}
# This function reads the list of the packages and generates a special dictionary
# This is the reason of the time gain between the legacy Nemris and this version
function packages_file_write {
echo -ne "[ INFO ] Generating refined packages list..."
if [ -e "$script_location/packages.txt" ]; then
echo -n "$null" > "$script_location/packages.txt"
fi
cat "/data/system/packages.xml" | grep "package name" > "$script_location/packages.txt"
IFS=$'\n'
packages="$(cat "$script_location/packages.txt")"
echo -n "$null" > "$script_location/packages.txt"
for i in $packages; do
package_name="${i//*package name=\"/}"
package_name="${package_name//\"*/}"
package_path="${i//*codePath=\"/}"
package_path="${package_path//\"*/}"
if [ "$(echo -ne "$package_path" | grep "\.apk$")" == "$null" ]; then
package_path="$package_path/$(ls "$package_path" | grep "\.apk$")"
fi
echo "$package_name:$package_path" >> "$script_location/packages.txt"
done
unset IFS package package_name package_path
echo " done."
}
# This function checks if aapt is installed
function aapt_check {
echo -ne "[ INFO ] Checking for aapt..."
whence -v aapt &> /dev/null
is_aapt_missing="$(echo $?)"
var_to_file "is_aapt_missing" "$is_aapt_missing"
echo " done."
}
# This function sets the backup location and the app typology to backup to default
function variables_default {
case $1 in
0)
echo -ne "[ INFO ] Setting backup directory and app typology to default..."
backup_location="/sdcard/NemrisBackup"
app_typology="User"
var_to_file "backup_location" "$backup_location"
echo " done."
;;
1)
echo -ne "[ INFO ] Setting backup location to default..."
backup_location="/sdcard/NemrisBackup"
var_to_file "backup_location" "$backup_location"
echo " done."
;;
2)
echo -ne "[ INFO ] Setting app typology to default..."
app_typology="User"
echo " done."
;;
esac
}
# This function ensures case insensitivity and saves a headache to the user
function app_typology_sanitize {
case ${app_typology:0:1} in
s|S)
if [ "$system_permutations" == "$null" ]; then
permutations_already_calculated=0
system_permutations="$(echo -n {s,S}{y,Y}{s,S}{t,T}{e,E}{m,M})"
fi
for i in $system_permutations; do
if [ "$app_typology" == "$i" ]; then
app_typology="System"
break
fi
done
if [ "$permutations_already_calculated" == "0" ]; then
var_to_file "system_permutations" "$system_permutations"
fi
;;
u|U)
if [ "$user_permutations" == "$null" ]; then
permutations_already_calculated=0
user_permutations="$(echo -n {u,U}{s,S}{e,E}{r,R})"
fi
for i in $user_permutations; do
if [ "$app_typology" == "$i" ]; then
app_typology="User"
break
fi
done
if [ "$permutations_already_calculated" == "0" ]; then
var_to_file "user_permutations" "$user_permutations"
fi
;;
d|D)
if [ "$disabled_permutations" == "$null" ]; then
permutations_already_calculated=0
disabled_permutations="$(echo -n {d,D}{i,I}{s,S}{a,A}{b,B}{l,L}{e,E}{d,D})"
fi
for i in $disabled_permutations; do
if [ "$app_typology" == "$i" ]; then
app_typology="Disabled"
break
fi
done
if [ "$permutations_already_calculated" == "0" ]; then
var_to_file "disabled_permutations" "$disabled_permutations"
fi
;;
a|A)
if [ "$all_permutations" == "$null" ]; then
permutations_already_calculated=0
all_permutations="$(echo -n {a,A}{l,L}{l,L})"
fi
for i in $all_permutations; do
if [ "$app_typology" == "$i" ]; then
app_typology="All"
break
fi
done
if [ "$permutations_already_calculated" == "0" ]; then
var_to_file "all_permutations" "$all_permutations"
fi
;;
System|User|Disabled|All)
;;
*)
echo -ne "[ WARN ] \"$app_typology\": invalid value. Setting to default (User)..."
app_typology="User"
echo " done."
;;
esac
case $app_typology in
System|User|Disabled|All)
;;
*)
echo -ne "[ WARN ] \"$app_typology\": invalid value. Setting to default (User)..."
app_typology="User"
echo " done."
;;
esac
}
# This function checks if the backup directory contains any APK
function backup_location_check {
if [ -d "$backup_location" ]; then
if [ "$(ls "$backup_location" | grep "\.apk$")" == "$null" ]; then
backup_directory_is_empty=1
else
backup_directory_is_empty=0
fi
else
echo -ne "[ INFO ] Creating backup directory..."
mkdir -p "$backup_location"
echo " done."
fi
cd "$backup_location"
}
# This function generates a MD5 checksums dictionary
# This shortens down the operations time in any execution of the script
function md5_dict_generate {
echo -ne "[ INFO ] Generating MD5 checksums..."
apk_list="$(printf "%s\n" * | grep "\.apk$")"
for i in $apk_list; do
temp=($(md5sum "$i"))
md5_array="$temp $md5_array"
done
echo -n "md5_array=\""$md5_array"\"" > "$script_location/md5_dictionary.txt"
echo " done."
}
# This function retrieves the list of installed apps
function apps_list_retrieve {
case $app_typology in
System)
echo -ne "[ INFO ] Retrieving system apps list..."
for i in $(pm list packages -s); do
pkg="${i//p*:/}"
pkg="${pkg//./\\.}"
apps_list="$apps_list $pkg"
done
echo " done."
;;
User)
echo -ne "[ INFO ] Retrieving third-party apps list..."
for i in $(pm list packages -3); do
pkg="${i//p*:/}"
pkg="${pkg//./\\.}"
apps_list="$apps_list $pkg"
done
echo " done."
;;
Disabled)
echo -ne "[ INFO ] Retrieving disabled apps list..."
for i in $(pm list packages -d); do
pkg="${i//p*:/}"
pkg="${pkg//./\\.}"
apps_list="$apps_list $pkg"
done
echo " done."
;;
All)
echo -ne "[ INFO ] Retrieving apps list..."
for i in $(pm list packages); do
pkg="${i//p*:/}"
pkg="${pkg//./\\.}"
apps_list="$apps_list $pkg"
done
echo " done."
;;
esac
}
# This function retrieves the APKs paths via their package name (from the dictionary)
# Actually, this is the second part of the magic
function apks_paths_retrieve {
echo -ne "[ INFO ] Collecting the path of each app's APK..."
for i in $apps_list; do
row="$(cat "$script_location/packages.txt" | grep "$i:")"
paths_list="$paths_list ${row//*:/}"
done
echo " done."
}
# This function retrieves the app name
# If an app has no name, it falls back to the package name
function app_name_retrieve {
app_name="$(echo -ne "$aapt_output" | grep "application-label:\'")"
if [ "$app_name" != "$null" ]; then
app_name="${app_name//application-label:\'/}"
app_name="${app_name%\'*}"
displayed_name="$app_name"
app_name="${app_name//\//}"
app_name="$(printf "%s" $app_name)"
else
app_name="$(echo -ne "$aapt_output" | grep "package: name.")"
app_name="${app_name//package: name=\'/}"
app_name="${app_name//\'*/}"
displayed_name="$app_name"
fi
}
# This function retrieves the app version
# If an app has no version (weird, but that happens) it defaults to "None"
function app_version_retrieve {
app_version="${aapt_output#*versionName=\'}"
app_version="${app_version//platformBuildVersion*/}"
app_version="${app_version%\'*}"
app_version="$(printf "%s" $app_version)"
if [ "$app_version" == "$null" ]; then
app_version="None"
fi
}
# This function sets the app name to the name of the APK file
# It's used when the app to be backed up is a system app, which may make aapt go crazy
function system_app_name_set {
app_name="$(basename $1)"
app_name="${app_name%\.apk}"
displayed_name="$app_name"
}
# This function checks if the checksum of any app figures in the already backed up apps
# This way, any app is backed up exactly once, and Nemris cannot be fooled by file names
function md5_compare {
already_backed_up=0
app_md5=($(md5sum "$1"))
for c in $md5_array; do
if [ "$already_backed_up" == "0" ]; then
if [ "$app_md5" == "$c" ]; then
already_backed_up=1
fi
else
break
fi
done
}
# This function backs up the APK files, and calls the appropriate functions to handle both system and third-party apps
function apk_backup {
for i in $paths_list; do
case $i in
/system/*)
system_app_name_set $i
;;
/data/app/*|/mnt/asec/*)
aapt_output="$(aapt d badging "$i")"
app_name_retrieve
app_version_retrieve
;;
esac
if [ "$backup_directory_is_empty" == "0" ]; then
md5_compare "$i"
if [ "$already_backed_up" == "0" ]; then
echo -ne "[ INFO ] Backing up "$displayed_name"..."
case $i in
/system/*)
cp "$i" "$backup_location"/$app_name.apk
;;
/data/app/*|/mnt/asec/*)
cp "$i" "$backup_location"/$app_name"_"$app_version.apk
;;
esac
md5_array="$app_md5 $md5_array"
echo " done."
else
echo "[ INFO ] "$displayed_name" has already been backed up."
fi
else
echo -ne "[ INFO ] Backing up "$displayed_name"..."
case $i in
/system/*)
cp "$i" "$backup_location"/$app_name.apk
;;
/data/app/*|/mnt/asec/*)
cp "$i" "$backup_location"/$app_name"_"$app_version.apk
;;
esac
echo " done."
fi
done
if [ "$md5_array" != "$null" ]; then
echo -ne "md5_array=\""$md5_array"\"" > "$script_location/md5_dictionary.txt"
fi
}
# This function informs about the time that has been required by all of the operations
function goodbye {
echo "[ INFO ] Operations took "$(((SECONDS/60)/60))" hours, "$(((SECONDS/60)%60))" minutes and "$((SECONDS%60))" seconds."
echo "[ INFO ] All done!"
}
####################
# This is the core of the tool
echo "**************************"
echo " NEMRIS - App backup tool "
echo " by <NAME> "
echo "**************************"
echo ""
# Logic that handles the optional second argument that may be supplied by an user
# Only the "reset" argument is detected
if [ "$2" == "reset" ]; then
settings_md5_files_delete
else
settings_file_check
fi
packages_file_write
if [ "$is_aapt_missing" == "$null" ]; then
aapt_check
fi
# Logic that aborts the execution if aapt is not present
if [ "$is_aapt_missing" == "1" ]; then
echo "[ FATAL ] aapt is not installed: aborting."
exit
fi
# Logic that decides whether variables to check
if [ "$backup_location" == "$null" ]; then
if [ "$app_typology" == "$null" ]; then
variables_default 0
else
variables_default 1
app_typology_sanitize
fi
else
if [ "$app_typology" == "$null" ]; then
variables_default 2
else
app_typology_sanitize
fi
fi
backup_location_check
# Logic that checks whether to compute the checksums of the already backed up apps
if [ "$backup_directory_is_empty" == "0" ]; then
if [ ! -e "$script_location/md5_dictionary.txt" ]; then
md5_dict_generate
else
source "$script_location/md5_dictionary.txt"
fi
fi
apps_list_retrieve
apks_paths_retrieve
echo ""
apk_backup
echo ""
goodbye
```
Upvotes: 1 |
2016/04/27 | 314 | 1,111 | <issue_start>username_0: I've searched everywhere, from XDA to Android Enthusiasts and hit a deadend every time. I have a rooted 17.1.2.A.0.314 Kitkat based Xperia Z2. I downgraded the firmware to root it so that I could install a pre-rooted version of the latest Marshmallow ROM via recovery..which doesn't work.
I installed [XZDualRecovery](http://nut.xperia-files.com/path/XZDualRecovery) and later TWRP but when I trigger a reboot to recovery, it doesn't work and the phone restarts normally.
I have tried the button press combos (press volume down during bootup when the light is red, use `adb` and `fastboot`,use the NDRUtils app to trigger reboot to recovery..nothing works.
What do I do?<issue_comment>username_1: Try using apps to reboot into Recovery. For example [**QuickBoot**](https://play.google.com/store/apps/details?id=com.siriusapplications.quickboot)
Upvotes: 1 <issue_comment>username_2: Closing question with my own answer, posted in comment above - I used [Flashfire](https://play.google.com/store/apps/details?id=eu.chainfire.flash) and was able to fix it.
Upvotes: 1 [selected_answer] |
2016/04/27 | 1,054 | 3,619 | <issue_start>username_0: I've been trying to find a method to export all my currently open tabs in the Android Firefox browser. Unfortunately this seem impossible from default browser installation and very hard to do from command line as the SQLite3 database that Firefox is using, contains too many tables and hard to find the right query.
Apparently this is possible for Google Chrome using [THESE](https://android.stackexchange.com/questions/56635/how-can-i-export-the-list-of-open-chrome-tabs) hacks.
I would like to have each URL on a separate line in a text file.<issue_comment>username_1: Apparently there is an Android specific Firefox browser plug-in called [Tabs Backup](https://addons.mozilla.org/en-US/android/addon/tabs-backup/). This seem to work like charm! It places a text file in `/storage/emulated/0/Android/tabs_backup/` (**Aka.** `/sdcard/Android/tabs_backup/`) called `backup_DDMMYYY_hhmmss.txt`.
However, it would still be interesting to know how to do this from command line.
---
UPDATE: **2018-08-15**
Since some time back, *Tabs Backup* no longer works for the recent versions of Android Firefox. Instead, use [Tabs Export](https://addons.mozilla.org/en-US/firefox/addon/tabs-export/). You also need a separate plugin, to import Tabs.
Upvotes: 3 <issue_comment>username_2: **Note**: this solution requires a rooted Android.
In a terminal emulator app, execute:
(Requires [Busybox](https://play.google.com/store/apps/details?id=stericson.busybox) if running Android 5.1.1 or below. For Marshmallow, remove the term *busybox* from the following command.)
```
su
content query --uri content://org.mozilla.firefox.db.tabs/tabs/ --projection url | busybox cut -d '=' f 2 > /sdcard/firefox_tabs.txt
```
Explanation of the second command:
* `content query`: to query a [Content Provider](http://developer.android.com/guide/topics/providers/content-provider-basics.html)
* `org.mozilla.firefox.db.tabs`: a content provider from Firefox.
* `--projection url`: list data from the `url` column only
(Click image to enlarge)
[](https://i.stack.imgur.com/Yngy0.png)
Or if you have the `sqlite3` tool in Android, then you can do:
```
su
sqlite3 /data/data/org.mozilla.firefox/files/mozilla/*.default/browser.db "SELECT url FROM tabs ORDER BY position" > /sdcard/firefox_tabs.txt
```
I've assumed that you have a single Firefox profile and its name has not been altered. If you've a multi-profile setup or if you did change the profile's name, then instead of `*.default` provide the correct name of the profile of whose tabs you want in your list.
Upvotes: 4 [selected_answer]<issue_comment>username_3: On **Android** system you can use **Termux** (**No** root required):
1. Navigate in Firefox to URL: `file:///data/data/org.mozilla.firefox/files/mozilla/`
2. Choose the link of `***.default` folder of your profile
3. Choose the `sessionstore.js` file
4. Copy content of this file and save it in `sessionstore.js` file on local storage
5. Run the command in Termux to output your tabs urls:
```
cat ~/storage/shared/sessionstore.js | sed -n 's@{\"url\":\"@&\n@g; s@\",\"title\"@\n@gp' | sed '/^[:{]\"/d'
```
Or, this command to save your tabs urls in file `sessionstore.txt` on your local storage:
```
cat ~/storage/shared/sessionstore.js | sed -n 's@{\"url\":\"@&\n@g; s@\",\"title\"@\n@gp' | sed '/^[:{]\"/d' > ~/storage/shared/sessionstore.txt
```
Upvotes: 3 <issue_comment>username_4: Currently, if you open the list of tabs, there's simply a "Share All Tabs" button and you can easily save that as a text file.
Upvotes: 3 |
2016/04/27 | 772 | 3,348 | <issue_start>username_0: Someone on G+ is asking for help, claiming they accidentally uninstalled every launcher from their phone. He said his phone is stuck at the "company logo" when he turns his phone on (sounds like a brick to me).
He says his phone is rooted, so it's possible.
I've never done anything this dumb before (and don't plan to), so I can't verify what's going on.
If you uninstall every launcher from your Android phone, what happens when you turn it on? Will it actually refuse to boot properly if you don't have a launcher installed?<issue_comment>username_1: Launcher is an app which gives interface between user and other apps.We can delete default launcher by root access.If default launcher is deleted (Assuming no other launcher is installed on phone), then OS will work but we can't access any other apps from phone and it is looks like crashed phone.
So when you reboot without a launcher it will not go to any home page because there is no launcher at all.
So
```
1> It may show a blank screen
2> It may show company symbol with sound
3> Some times it shows "system stopped working" message
```
In this situation if you factory reset the phone (using boot loader) then also you will not able to get the launcher because the default app in the ROM is deleted.
To solve this you have to install ROM again you can also take necessary data backup(Using custom recovery).
You can also switch on phone and install launcher from Play Store using laptop/computer.Go to [Play Store](https://play.google.com/store) in PC and hit install on any launcher and it will install on phone.(You have to connect your phone to internet and signed in from same Google account)
You can install launcher app using a zip file. Flashing a proper zip file (which contains launcher app) in custom recovery.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Well, if your phone doesn't crash after removing the launcher, you should be fine. As long as your device comes with some kind of voice assistant, you should be able to use that to open the Play Store and then download a new launcher. You could also wait until you receive a notification from an app which will let you access the Play Store or the browser.
Upvotes: 0 <issue_comment>username_3: 1. Ask your friend to call your number. If the phone rings, half the problem is solved. You can't attend call as screen is blank.
2. When that call is disconnected and you get a black screen, pull it down and activate Bluetooth.
3.ask your friend to connect via Bluetooth and send a launcher apk file via bt.
4.install the launcher apk. And enjoy.
Upvotes: 0 <issue_comment>username_4: the answer regarding having a friend call can work.
Its how im using my phone currently. Slightly different situation in that the proper launcher for ultra power saving mode is disabled, but after receiving a call I can wiggle my way into a few menus.
It at least gives access to calls and texts and can buy you time to find a proper solution.
Without the launcher though, i had to get a few things opened before ending the call or else it would revert to an unaccessable blank screen. My trick was pressing the "add call" button and from there could open contacts and a few other screens and menus. After that lock screen would finally reveal itself instead of blank screen
Upvotes: 0 |
2016/04/27 | 292 | 1,034 | <issue_start>username_0: When setting up a new device, Android offers to restore apps and settings from Google Backup.
If I'd like to do it later, is it possible to do? Or is the setup the only time you have access to this functionality?
Android 6.0.<issue_comment>username_1: I found an app that totally saved my life on this matter!
The app is called [Activity Launcher](https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher&hl=en) and from this you can open Android Setup app (the one with Restore icon) and click on the activity `CloudRestoreFlowActivity`. The restore screen will show up and you can select a backup file you previously uploaded to Drive.
FYI, I use Mi A2 Lite with Android 9.0 Pie.
Upvotes: 6 [selected_answer]<issue_comment>username_2: download it from here.....
<https://www.apkmirror.com/apk/google-inc/android-setup/android-setup-1-0-290634092-release/android-setup-1-0-290634092-android-apk-download/download/>
then launch it from android setup from activity launcher
Upvotes: 1 |
2016/04/28 | 262 | 904 | <issue_start>username_0: How do I hard reset my LG Rumor Reflex? I forgot my security PIN, please give me steps to fix it.<issue_comment>username_1: I found an app that totally saved my life on this matter!
The app is called [Activity Launcher](https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher&hl=en) and from this you can open Android Setup app (the one with Restore icon) and click on the activity `CloudRestoreFlowActivity`. The restore screen will show up and you can select a backup file you previously uploaded to Drive.
FYI, I use Mi A2 Lite with Android 9.0 Pie.
Upvotes: 6 [selected_answer]<issue_comment>username_2: download it from here.....
<https://www.apkmirror.com/apk/google-inc/android-setup/android-setup-1-0-290634092-release/android-setup-1-0-290634092-android-apk-download/download/>
then launch it from android setup from activity launcher
Upvotes: 1 |
2016/04/28 | 2,233 | 8,613 | <issue_start>username_0: I recently wanted to install a metronome app, so I downloaded one from the Play Store, but in the "install" step nothing happened. The app just wasn't there. I installed another one and forgot about that strange issue.
Yesterday though, something started to happen. Every now and then (and it's getting more and more frequently), I get a notification that some app tried to install itself (!) but was blocked because it's from "unknown sources", and it's prompting me to disable the "block install from unknown sources" check from Settings.
It looks like there are more than one apps trying to install themselves: "Superb Cleaner". "com.android.helper.patch[...]" and some more.
At first I though these might be system updates and was tempted to disable the "unknown source" block, but now I am worried I might have some malware on my phone.
I do have some sensitive information (browser logins, credit card data), and I also don't want to factory reset my phone.
Where should I search for the APK that is trying to install itself (or the APKs)?
EDIT:
It's this application: <https://play.google.com/store/apps/details?id=com.andymstone.metronome>. I'm not entire sure the app is the cause, but it's strange that I don't have it installed, but in my google play account it appears as "Installed"...
My phone is an Allview X2 Soul Style with Android 5.1.
After I have unchecked the "block apps from unknown sources", now I keep getting prompted the install screen for these apps. I keep pressing "Cancel" but they come again every half an hour or so. :(
EDIT2: Here are the adb logs requested: [Windows](http://pastebin.com/agAYaMyw/ "Windows") and [Activities](http://pastebin.com/Cnp4Cp8U)
EDIT3: Dumpsys log for the suspicious package: [Dumpsys](http://pastebin.com/UwfCAxdH)<issue_comment>username_1: Some mobile phone manufacturers include an OEM app that automatically download and install other apps. (They reduce the cost of the phone or increase their profits with these marketing deals.) So, you will need to find and disable that app which is doing the sly installs. In my case, it was an app called Cube26.
Use apps like Startup Manager or Task Killer to see if find out which app is doing the downloads. An Android developer can also find out the app by looking at LogCat view of the IDE when the phone is debugged via USB. Ensure that your wireless router is not compromised.
Another thing you can do is to remove your Google account from the phone and add a new one with another gmail address. This will ensure that the apps that you have already downloaded don't get automatically installed again. This time, install only those apps that are well known and have good reviews. Before this, of course, remove/disable unwanted apps.
Upvotes: 2 <issue_comment>username_2: >
> Every now and then (and it's getting more and more frequently), I get a notification that some app tried to install itself (!) but was blocked because it's from "unknown sources", and it's prompting me to disable the "block install from unknown sources" check from Settings.
>
>
>
It's not a notification but a *dialog* and it looks like this:
(Click image to enlarge; image courtesy of [Piyush](https://android.stackexchange.com/q/132951/96277))
[](https://i.stack.imgur.com/yGJKT.jpg)
>
> At first I though these might be system updates and was tempted to disable the "unknown source" block, but now I am worried I might have some malware on my phone.
>
>
>
Yes, never enable that *Unknown sources* setting if you're in uncharted waters.
>
> Where should I search for the APK that is trying to install itself (or the APKs)?
>
>
>
It's a bit difficult to find the app. I recommend finding the cause for the effect. In our case, the effect was the dialog hinting that the Unknown sources setting was blocked. That dialog is shown by Package Installer (a system-cum-core app). Package Installer is used by user or system apps which do not have the permission [*android.permission.INSTALL\_PACKAGES*](https://developer.android.com/reference/android/Manifest.permission.html#INSTALL_PACKAGES) to install an app. Since you did not attempt to side load an app, it stands to reason that an app called Package Installer without your consent. Our imminent goal is to find out that particular app.
The system service *activity* logs many important details. Among other things it shows the called package which in this case is Package Installer app with package name *com.google.android.packageinstaller* *or* *com.android.packageinstaller*. It also shows the calling package or the package which launched an another package.
Find the package name
=====================
Now, using [adb](/questions/tagged/adb "show questions tagged 'adb'") in PC execute the command:
```
adb shell dumpsys activity activities # this command should be executed only when that dialog is in foreground
```
Demo output: notice the highlighted line:
[](https://i.stack.imgur.com/iLFLG.png)
In the highlighted line, the string after `launchedFromPackage=` and before `userId` is the package responsible for launching Package Installer app. In your case it would be a different package name. Note down that package name (henceforth denoted as ).
Locate the apk
==============
Now that we know the immediate cause we can hunt down the home or in other words, the apk. Execute the command:
**Note:** Finding the location of apk is required only for forensics. If you're not interested in that, I recommend you don't bother with this step and immediately jump to the heading *Uninstall/Disable/Hide the app*.
```
adb shell pm path
```
Demo output:
```
bash-4.2# adb shell pm path com.estrongs.android.pop
package:**/data/app/com.estrongs.android.pop-1/base.apk**
```
The string next to `package:` is the location of apk. You can also find the same information *inter alia* through the command:
```
adb shell dumpsys package
```
Uninstall/Disable/Hide the app
==============================
If you know the label of the package or can get to know it through any means (such as with [AppXplore](https://play.google.com/store/apps/details?id=com.sonyericsson.androidapp.AppExplore)) then go into the application manager under Settings app which typically comes down *Settings → Apps → All apps* in stock Android, find the malware app and uninstall it.
### Things to note
* If *Uninstall* button is grayed out and so as the *Force stop* button then your app must be a device administrator. In that case, go into the Security settings, choose *Device administrators* option and revoke the administrator privilege from the app. Come back and attempt to uninstall the app.
* If you don't find the *Uninstall* option then your malware app is a system app. Whether your vendor shipped it or the app exploited your system or tricked you to install itself is another matter to deal with. For a system app, the button *Uninstall* is replaced by *Disable*.
+ If both *Force stop* and *Disable* buttons are grayed out then the app may be a device administrator as well. In that case, revoke that privilege and then attempt to disable the app.
+ If the *Disable* button alone is grayed out, then:
- **For a rooted Android:** use [adb](/questions/tagged/adb "show questions tagged 'adb'") to disable the app through the commands:
```
adb shell
su
pm disable
```
To enable the app, replace *disable* with *enable* in aforesaid command.
You can alternatively use an app, such as Titanium Backup, to disable/freeze the malware app. You can also consider removing the apk using a file manager app.
- **For a non-rooted Android:** provided that you're using Android 4.4.x or above, use the commands:
```
adb shell
pm block # for Android 4.4.x
pm hide # for Android 5.x and 6.x
```
To unblock/unhide the package replace *block* by *unblock* and *hide* by *unhide* in appropriate aforesaid command. In this particular case, hiding the package would achieve the same result as disabling would.
The package would remain disabled or hidden until you revert the changes.
---
### Note for readers
It has been confirmed by question's author that the malware app in their phone has the package name *com.android.tools.callassistant*. I found its label as Caller ID and it has been [reported as a malware by AVG](http://www.avgthreatlabs.com/us-en/android-app-reports/app/com.android.tools.callassistant/).
Upvotes: 4 [selected_answer] |
2016/04/28 | 844 | 3,164 | <issue_start>username_0: On my Samsung Galaxy Note 4, there are two NFC modes: card mode and P2P mode.
What is the purpose of these modes? Is there any other modes in NFC?<issue_comment>username_1: There are 3 NFC modes.
Taken directly from [official Android Developer - Near Field Communication](http://developer.android.com/guide/topics/connectivity/nfc/index.html),
>
> Android-powered devices with NFC simultaneously support three main modes of operation:
>
>
> * **Reader/writer mode**, allowing the NFC device to read and/or write passive NFC tags and stickers.
> * **P2P mode**, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam.
> * **Card emulation mode**, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.
>
>
>
To make it more easier to understand, [Android Authority](http://www.androidauthority.com/what-is-nfc-270730/) has a down-to-earth explanation,
>
> In order to determine what sort of information is to be exchanged between devices, the NFC standard currently has three distinct modes of operation for compliant devices. Perhaps the most common use in smartphones is the **peer-to-peer mode**, which allows two NFC-enabled devices to exchange various pieces of information between each other. In this mode both devices switch between active, when sending data, and passive states when receiving.
>
>
> **Read/write mode**, on the other hand, is a one way data transmission, where the active device, possibly your smartphone, links up with another device in order to read information from it. This is the mode used when you interact with an NFC advert tag.
>
>
> The final mode of operation is **card emulation**, whereby the NFC device can be used like a smart or contactless credit card in order to make payments or tap into public transport systems.
>
>
>
Upvotes: 4 [selected_answer]<issue_comment>username_2: * [Near Field Communication (NFC)](http://developer.android.com/guide/topics/connectivity/nfc/index.html) from Android Developers explains (emphasis added and edited for clarity)
>
> Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less to initiate a connection. NFC allows you to share small payloads of data between an NFC tag and an Android-powered device, or between two Android-powered devices.
>
>
> Android-powered devices with NFC simultaneously support three main modes of operation:
>
>
> 1. **Reader/writer mode**, allowing the NFC device to read and/or write passive NFC tags and stickers.
> 2. **P2P mode**, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam.
> 3. **Card emulation mode**, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.
>
>
>
* [Android and NFC modes](https://randomoracle.wordpress.com/2012/10/11/android-and-nfc-modes/) explains with more examples
Upvotes: 2 |
2016/04/28 | 868 | 3,322 | <issue_start>username_0: I'm trying to install DroidExplorer, and before finishing the installation the program asks me for the "Android SDK path". I have created the folders and downloaded the the Android SDK from Android.com (only the SDK) but the installation program keeps asking me for that sdk path.
How can I resolve this?<issue_comment>username_1: There are 3 NFC modes.
Taken directly from [official Android Developer - Near Field Communication](http://developer.android.com/guide/topics/connectivity/nfc/index.html),
>
> Android-powered devices with NFC simultaneously support three main modes of operation:
>
>
> * **Reader/writer mode**, allowing the NFC device to read and/or write passive NFC tags and stickers.
> * **P2P mode**, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam.
> * **Card emulation mode**, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.
>
>
>
To make it more easier to understand, [Android Authority](http://www.androidauthority.com/what-is-nfc-270730/) has a down-to-earth explanation,
>
> In order to determine what sort of information is to be exchanged between devices, the NFC standard currently has three distinct modes of operation for compliant devices. Perhaps the most common use in smartphones is the **peer-to-peer mode**, which allows two NFC-enabled devices to exchange various pieces of information between each other. In this mode both devices switch between active, when sending data, and passive states when receiving.
>
>
> **Read/write mode**, on the other hand, is a one way data transmission, where the active device, possibly your smartphone, links up with another device in order to read information from it. This is the mode used when you interact with an NFC advert tag.
>
>
> The final mode of operation is **card emulation**, whereby the NFC device can be used like a smart or contactless credit card in order to make payments or tap into public transport systems.
>
>
>
Upvotes: 4 [selected_answer]<issue_comment>username_2: * [Near Field Communication (NFC)](http://developer.android.com/guide/topics/connectivity/nfc/index.html) from Android Developers explains (emphasis added and edited for clarity)
>
> Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less to initiate a connection. NFC allows you to share small payloads of data between an NFC tag and an Android-powered device, or between two Android-powered devices.
>
>
> Android-powered devices with NFC simultaneously support three main modes of operation:
>
>
> 1. **Reader/writer mode**, allowing the NFC device to read and/or write passive NFC tags and stickers.
> 2. **P2P mode**, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam.
> 3. **Card emulation mode**, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.
>
>
>
* [Android and NFC modes](https://randomoracle.wordpress.com/2012/10/11/android-and-nfc-modes/) explains with more examples
Upvotes: 2 |
2016/04/28 | 678 | 2,680 | <issue_start>username_0: Today, I used a third party ordinary charger with my Samsung Galaxy S Duos (s7562), and was shocked to see that the screen touch stopped working.
Earlier, whenever I used to use third party charger, the screen used to behave insanely. But, once I unplugged the charger everything was normal. So, I tried to stick to the original Samsung Charger. Today, my cousin went out with original charger and I used the third party for approximately 10 minute. The touch is not responding anymore, but phone is functional. Home button, power button and volume keys are working but not touch. Display is all fine. I tried :
1. Restarting phone after keeping out battery for 5 minutes.
2. Enter recovery mode, clear cache partition.
3. Enter recovery mode, reboot.
4. Physically knocking the edges of touch screen smoothly to fix any loosen connection.
But nothing worked. So, the last thing to test is to FACTORY RESET the phone. Now the problem is I use PIN Lock to lock the screen for security Reasons. And I have very very important photos, Messages and Contacts in my phone.I have controlled my phone earlier with PC Via Bluetooth. And I dont think this cheap crap supports OTG Mouse. Is there any Method to get back my Data by unlocking the phone via PC ?
I know All minds on Stack exchange are intelligent and somebody must show me the correct path.<issue_comment>username_1: The problem is not with the phone, but with the charger!
I've experienced this as well with cheap crapware (possibly Chinese-made). The reason they cause this behavior is the cheap design that doesn't provide a sufficient decoupling of the voltage and also a bad ripple current.
Furthermore, they do not meet any safety standards. The one I used blew the fuse of my house. Thankfully, no other devices damaged. Also, a Chinese woman has reportedly been electrocuted by using a cheap charger. Whether it's true or not, I strongly advise against using those chargers. It doesn't have to be from the phone manufacturer, but it's for sure a good idea to get some quality (and none-fake!) charger.
Once you use the original charger again, your phone should be working again normally.
PS:
Read this article for an in-depth explanation at the example of fake iPhone-chargers
<http://www.righto.com/2012/03/inside-cheap-phone-charger-and-why-you.html>
Upvotes: 1 <issue_comment>username_2: Finally Hard Reset My Phone *out of frustation*. **Problem Not Solved** :( Touch Still not responding. If anybody Facing the same problem, dont Format your valuable data. Better to go for Hardware repair.
Didn't get any answer of My question. And, never use cheap chinese chargers.
Upvotes: 0 |
2016/04/28 | 1,303 | 4,182 | <issue_start>username_0: I am using a rooted Xperia Z5 Compact E5823 with the latest stock Android 6.0 ROM.
I am trying to use a 2nd partition with Link2SD but so far I always get the same "No such file or directory"-error:
>
> **Mount script error**
>
>
> Mount script cannot be created.
>
>
> mount: mounting /dev/block/vold/179:66 on /data/sdext2 failed: No such file or directory
>
>
>
To format my microSD card I've used GParted under Debian with `ext2`, `3`, and `4`, always as primary partition. I've also used TWRP recovery to format this 2nd partition. With this I have only tried `ext3`, which my Debian recognizes as `ext2` and there seems to be no way to choose which type of partition (I suppose they have primary as default). With TWRP I could also try `ext4` but preferred to 1st post here.
I do see a `/data/sdext2` folder with help of a root file browser. This folder is empty.
The "file" `/proc/partitions` does show a `179 66 2000000 mmcblk1p2` entrance, which correspond to the second partition of my external SD card.
Link2SD has superuser permissions and its mount script `/data/data/com.buak.Link2SD/init-link2sd.sh` looks like this:
>
> set +e
>
> echo "$(date) mounting..." > $LOG
>
> sleep 2
>
> mount -t ext2 -o rw /dev/block/vold/179:66 /data/sdext2 1>>$LOG 2>>$LOG
>
>
> mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2 1>>$LOG 2>>$LOG
>
>
> mount >> $LOG
>
> echo "$(date) mount finished" >> $LOG
>
> chmod 773 /data/dalvik-cache
>
>
><issue_comment>username_1: You can use application "Apps2SD" mount a 2nd partition (after remove it and use Link2SD). (**Don't use it if you only use 1 partition is sdext2**) If you use **android 6.0** and use **both 2nd partition and "Adoptable storage"** use "Root Explorer" go to path "/etc/apps2sd-mountscript.sh" edit it. Because use 2 partition, so default it use if create is "dev/block/**mmcblk1p1** /data/sdext2", you change it to "dev/block/**mmcblk1p2** /data/sdext2" (I use Sony M4 aqua dual)
Upvotes: 1 <issue_comment>username_2: This error was very tricky to track! It took me a while to re-address it and here is what I have found out and how to solve it.
**A little on mmcblk\_p\_**
1. SD cards are special about their "block-partition"-suffix, i.e. the `-blk*p*` part.
2. For the user, the numbers in the suffix `-blk*p*` are, on practical matters, determined by the system the card is mounted on.
3. Link2SD's script is sensitive to the correspondance of the microSD card's "internal" partition-suffix (`-p*`) and its "external"/"mounted" under some system. (Thus, the `No such file or directory`).
**Solution**
For Link2SD's default mount script to succeed, **you must delete and re-do the microSD card's partition table** (with GParted or similar) and then do its two (or more) partitions, the second one being an `ext2`-filesystem.
This will yield a correspondance on the suffix-numbers `-p*` of your "second `ext2`-partition" both **in** the card and **under** the system.
**Background**
Well, I noticed that each time an SDcad gets a new partition the last index in the suffix `-blk*p_` "advances". The microSD card in question has been partitioned more that three times without resetting its partition table. That card has no "internal" `-p2` eventhough Android's kernel addresses it as such! (Tricky, huh?!) It seams that Android's kernel only takes the number of existing partitions to create the `/proc/partitions`-addresses instead of the total count of partitions ever done under an existing partition-table.
**Extra-Info**
Link2SD guarantees that your second `ext2`-partition won't be shown on your PC when you plug your device to it via USB. This is true for Windows but unfortunately not true for GNU+Linux! Windows does not recognizes `ext2`-filesystems. GNU+Linux does. As a consequence some APPs might have trouble retrieving ingormation from `/data/sdext2`.
**Finally**
Link2SD latest version at the PlayStore is 4.3.4 from 21.06.2018 and it locates its mount-script at `/data/data/com.buak.Link2SD/files`.
Also, for more information, visit [Link2SD's official site](https://link2sd.co/ "site").
Upvotes: 1 [selected_answer] |
2016/04/28 | 749 | 2,865 | <issue_start>username_0: I have the VLC app in my ASUS phone and when I search via the subtitles-option in the downloads section, it shows files that have been deleted.
I downloaded apps to see if they exist and searched the phone files via PC also.
These files are deleted, so how can it still keep them or track them?
I deleted and reinstalled vlc and problem persists<issue_comment>username_1: Actually what you see is "**Downloads History**", not "**Downloads Directory**".
So the item will remains even though the actual file has been moved/deleted.
Same concept like web browser downloads history, the history item will not remove even though the actual file has been deleted in file explorer. For example, Firefox Downloads history, you need to explicitly click "**Remove From History**":
[](https://i.stack.imgur.com/N8lRx.png)
The difference of Android is it's system wide and cross apps. New to users who come from PC background.
**[UPDATE WARNING] The 2nd difference of Android from PC is it will delete the actual file if you delete it in "Download history". This different make user confuse and make me confident to said it's really an android design bug.**
Now you get the idea, you can remove this download history with the following steps:
1. Go to **App drawer icon (bottom six dots) -> Downloads icon**:
[](https://i.stack.imgur.com/JLFUK.png)
1.2 Or if you can't find Downloads icon, you can go to **Settings -> Device -> Storage -> Downloads**:
[](https://i.stack.imgur.com/tV4Qs.png)
2. Then you will see the **Downloads History** page:
[](https://i.stack.imgur.com/iXQVW.png)
3. Long press one item, then you can highlight more items, and click trash icon to delete:
[](https://i.stack.imgur.com/rkpdE.png)
The users(I'm one of them) who have the same question like you is because they always click "**File Manager**" icon as file explorer(Or plug USB to open the file in PC) and unrealized the **Downloads** icon is **Downloads History**, not sync from "**File Manager**". I personally think this is a design bug because of easy to confuse.
p/s: Not only vlc, if you visits **Settings -> Wi-Fi -> upper right option menu -> Advanced -> Install certificates -> left side navigation drawer -> Downloads**, you will see the same thing.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Go to Settings, then Application manager, then click on VLC, then click on Storage, then Clear cache and Clear data, then restart the application. I did that and it worked just fine.
Upvotes: 2 |
2016/04/29 | 931 | 3,655 | <issue_start>username_0: I recently dropped my Nexus 5 and the touchscreen stopped working, no matter what I do it won't function. I have files on this phone that I didn't backup (I know, real smart of me), and I'm wondering how to get them back using my computer and a USB cable, considering it's the only way possible since the screen isn't working.
The catch is that with Android Marshmallow, came the feature in which when you connect your phone to a PC, it won't get recognized right away. You have to unlock your phone and swipe down the notification tray and tap on a "USB Enabled for Charging" (Or something similar) and select "USB for File Transfer" (Or something like that...). Since my screen is broken, I can't complete the aforementioned process.
What can I do to recover my files? The screen is completely broken, it registers some touches when I put pressure on it but it's just random taps all around the screen that make it go crazy. I have no pin or any form of security enabled, so I can just press the screen a bit and it'll unlock (with some luck and several tries), but beyond that any action is impossible to realize.
Thanks in advance!<issue_comment>username_1: Actually what you see is "**Downloads History**", not "**Downloads Directory**".
So the item will remains even though the actual file has been moved/deleted.
Same concept like web browser downloads history, the history item will not remove even though the actual file has been deleted in file explorer. For example, Firefox Downloads history, you need to explicitly click "**Remove From History**":
[](https://i.stack.imgur.com/N8lRx.png)
The difference of Android is it's system wide and cross apps. New to users who come from PC background.
**[UPDATE WARNING] The 2nd difference of Android from PC is it will delete the actual file if you delete it in "Download history". This different make user confuse and make me confident to said it's really an android design bug.**
Now you get the idea, you can remove this download history with the following steps:
1. Go to **App drawer icon (bottom six dots) -> Downloads icon**:
[](https://i.stack.imgur.com/JLFUK.png)
1.2 Or if you can't find Downloads icon, you can go to **Settings -> Device -> Storage -> Downloads**:
[](https://i.stack.imgur.com/tV4Qs.png)
2. Then you will see the **Downloads History** page:
[](https://i.stack.imgur.com/iXQVW.png)
3. Long press one item, then you can highlight more items, and click trash icon to delete:
[](https://i.stack.imgur.com/rkpdE.png)
The users(I'm one of them) who have the same question like you is because they always click "**File Manager**" icon as file explorer(Or plug USB to open the file in PC) and unrealized the **Downloads** icon is **Downloads History**, not sync from "**File Manager**". I personally think this is a design bug because of easy to confuse.
p/s: Not only vlc, if you visits **Settings -> Wi-Fi -> upper right option menu -> Advanced -> Install certificates -> left side navigation drawer -> Downloads**, you will see the same thing.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Go to Settings, then Application manager, then click on VLC, then click on Storage, then Clear cache and Clear data, then restart the application. I did that and it worked just fine.
Upvotes: 2 |
2016/04/29 | 770 | 2,934 | <issue_start>username_0: With more and more people using custom ROMs and APKs from unknown sources (some with root access) it's inevitable that Android phones are getting compromised.
What are some methods that can be used to see if your phone is compromised.
Examples I've thought of so far include:
1. monitor outgoing traffic (is there an app for this?)
2. List on going processes (how can I see processes that aren't in the app tray?)<issue_comment>username_1: Actually what you see is "**Downloads History**", not "**Downloads Directory**".
So the item will remains even though the actual file has been moved/deleted.
Same concept like web browser downloads history, the history item will not remove even though the actual file has been deleted in file explorer. For example, Firefox Downloads history, you need to explicitly click "**Remove From History**":
[](https://i.stack.imgur.com/N8lRx.png)
The difference of Android is it's system wide and cross apps. New to users who come from PC background.
**[UPDATE WARNING] The 2nd difference of Android from PC is it will delete the actual file if you delete it in "Download history". This different make user confuse and make me confident to said it's really an android design bug.**
Now you get the idea, you can remove this download history with the following steps:
1. Go to **App drawer icon (bottom six dots) -> Downloads icon**:
[](https://i.stack.imgur.com/JLFUK.png)
1.2 Or if you can't find Downloads icon, you can go to **Settings -> Device -> Storage -> Downloads**:
[](https://i.stack.imgur.com/tV4Qs.png)
2. Then you will see the **Downloads History** page:
[](https://i.stack.imgur.com/iXQVW.png)
3. Long press one item, then you can highlight more items, and click trash icon to delete:
[](https://i.stack.imgur.com/rkpdE.png)
The users(I'm one of them) who have the same question like you is because they always click "**File Manager**" icon as file explorer(Or plug USB to open the file in PC) and unrealized the **Downloads** icon is **Downloads History**, not sync from "**File Manager**". I personally think this is a design bug because of easy to confuse.
p/s: Not only vlc, if you visits **Settings -> Wi-Fi -> upper right option menu -> Advanced -> Install certificates -> left side navigation drawer -> Downloads**, you will see the same thing.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Go to Settings, then Application manager, then click on VLC, then click on Storage, then Clear cache and Clear data, then restart the application. I did that and it worked just fine.
Upvotes: 2 |
2016/04/29 | 505 | 1,883 | <issue_start>username_0: I'm using a Samsung Galaxy S5, and after flashing the TWRP with Odin 3.07 and 3.10 I'm finding that my recovery is still the default. I'm using [these instructions](http://androiding.how/how-to-install-twrp-recovery-using-odin/) exactly.
>
> Android system Recovery <3e>
>
>
>
It's as if nothing happened, how do I resolve this?<issue_comment>username_1: [Per this page](http://www.epiccm.org/2012/06/cwm-recovery-on-all-sgs3-lte-variants.html),
>
> WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. **Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which cause Samsung's ROM to replace the recovery image you had just flashed with the stock recovery.** Our Root .zip removes these files, thus preserving your custom recovery. Follow the directions below to boot directly into CWM recovery.
>
>
>
Which is good information because it's telling you exactly what happening. **However, you can get around this without downloading their questionable files:** After you install the TWRP Recovery with Odin the device will reboot. After it vibrates in the rebooting process, pull the battery. Have it ready to pull, it boots fast.
Pop the battery back back in, and hold your recovery sequence (Vol Up+Home+Power). This will get you into the TWRP, and you can now sideload, or if that fails `adb push $file /data/` the files you want to install.
Upvotes: 3 <issue_comment>username_2: Before you flash the recovery, untick the **Auto Reboot** option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing **Vol up + Power + Home** button together. Now you will see the TWRP recovery is booted in your device. Now you can reboot normally and your TWRP will be installed.
Upvotes: 6 [selected_answer] |
2016/04/29 | 486 | 1,884 | <issue_start>username_0: I have a non-rooted Nexus 7 (2013), and connect to the internet via a Mi-Fi hotspot.
I have a low data cap, so I need to track usage closely. I'd like to be able to mark my connection as metered, but since this is a tablet, those options don't exist in Data Usage.
Is there any app or alternative method to enable that functionality?<issue_comment>username_1: [Per this page](http://www.epiccm.org/2012/06/cwm-recovery-on-all-sgs3-lte-variants.html),
>
> WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. **Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which cause Samsung's ROM to replace the recovery image you had just flashed with the stock recovery.** Our Root .zip removes these files, thus preserving your custom recovery. Follow the directions below to boot directly into CWM recovery.
>
>
>
Which is good information because it's telling you exactly what happening. **However, you can get around this without downloading their questionable files:** After you install the TWRP Recovery with Odin the device will reboot. After it vibrates in the rebooting process, pull the battery. Have it ready to pull, it boots fast.
Pop the battery back back in, and hold your recovery sequence (Vol Up+Home+Power). This will get you into the TWRP, and you can now sideload, or if that fails `adb push $file /data/` the files you want to install.
Upvotes: 3 <issue_comment>username_2: Before you flash the recovery, untick the **Auto Reboot** option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing **Vol up + Power + Home** button together. Now you will see the TWRP recovery is booted in your device. Now you can reboot normally and your TWRP will be installed.
Upvotes: 6 [selected_answer] |
2016/04/30 | 541 | 2,016 | <issue_start>username_0: Trying to flash my old `Samsung Galaxy Mini S5570`. For this purpose I need to use some kind of software - `Odin`. I found several versions of `odin` project.
[](https://i.stack.imgur.com/cQLxx.png)
[](https://i.stack.imgur.com/ifAQl.png)
Which one is real one and where is the right place I can download newest **Odin** verison?<issue_comment>username_1: [Per this page](http://www.epiccm.org/2012/06/cwm-recovery-on-all-sgs3-lte-variants.html),
>
> WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. **Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which cause Samsung's ROM to replace the recovery image you had just flashed with the stock recovery.** Our Root .zip removes these files, thus preserving your custom recovery. Follow the directions below to boot directly into CWM recovery.
>
>
>
Which is good information because it's telling you exactly what happening. **However, you can get around this without downloading their questionable files:** After you install the TWRP Recovery with Odin the device will reboot. After it vibrates in the rebooting process, pull the battery. Have it ready to pull, it boots fast.
Pop the battery back back in, and hold your recovery sequence (Vol Up+Home+Power). This will get you into the TWRP, and you can now sideload, or if that fails `adb push $file /data/` the files you want to install.
Upvotes: 3 <issue_comment>username_2: Before you flash the recovery, untick the **Auto Reboot** option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing **Vol up + Power + Home** button together. Now you will see the TWRP recovery is booted in your device. Now you can reboot normally and your TWRP will be installed.
Upvotes: 6 [selected_answer] |
2016/04/30 | 512 | 2,061 | <issue_start>username_0: As it says. I am looking into CyanogenMod as a stopgap measure before I upgrade to an iPhone this year or the next. My current phone no longer gets updated and I cannot justify having year old bugs still active.
However, I have invested quite a bit of time in my current Android ecosystem and I both do not want to ditch that AND I want to be able to easily transfer my apps to the iPhone when I am setting the latter up, through the Apple transfer app. Are both an option when using CyanogenMod in this manner?<issue_comment>username_1: [Per this page](http://www.epiccm.org/2012/06/cwm-recovery-on-all-sgs3-lte-variants.html),
>
> WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. **Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which cause Samsung's ROM to replace the recovery image you had just flashed with the stock recovery.** Our Root .zip removes these files, thus preserving your custom recovery. Follow the directions below to boot directly into CWM recovery.
>
>
>
Which is good information because it's telling you exactly what happening. **However, you can get around this without downloading their questionable files:** After you install the TWRP Recovery with Odin the device will reboot. After it vibrates in the rebooting process, pull the battery. Have it ready to pull, it boots fast.
Pop the battery back back in, and hold your recovery sequence (Vol Up+Home+Power). This will get you into the TWRP, and you can now sideload, or if that fails `adb push $file /data/` the files you want to install.
Upvotes: 3 <issue_comment>username_2: Before you flash the recovery, untick the **Auto Reboot** option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing **Vol up + Power + Home** button together. Now you will see the TWRP recovery is booted in your device. Now you can reboot normally and your TWRP will be installed.
Upvotes: 6 [selected_answer] |
2016/04/30 | 522 | 2,052 | <issue_start>username_0: When I try and install apk file by clicking from Files App, I get the error message "Cannot display pdf (.apk is of invalid format.)"
The system tries and opens pdf reader app, instead of package installer app.
When trying to install from Downloads App, I get the message "can't open file".
The phone is a new OnePlus X phone with OxygenOS 2.2.1, Android Version 5.1.1
In the Settings, I have checked the Unknown Sources App Installation Option.
Also I cannot see the Developers Option in Settings.<issue_comment>username_1: [Per this page](http://www.epiccm.org/2012/06/cwm-recovery-on-all-sgs3-lte-variants.html),
>
> WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. **Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which cause Samsung's ROM to replace the recovery image you had just flashed with the stock recovery.** Our Root .zip removes these files, thus preserving your custom recovery. Follow the directions below to boot directly into CWM recovery.
>
>
>
Which is good information because it's telling you exactly what happening. **However, you can get around this without downloading their questionable files:** After you install the TWRP Recovery with Odin the device will reboot. After it vibrates in the rebooting process, pull the battery. Have it ready to pull, it boots fast.
Pop the battery back back in, and hold your recovery sequence (Vol Up+Home+Power). This will get you into the TWRP, and you can now sideload, or if that fails `adb push $file /data/` the files you want to install.
Upvotes: 3 <issue_comment>username_2: Before you flash the recovery, untick the **Auto Reboot** option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing **Vol up + Power + Home** button together. Now you will see the TWRP recovery is booted in your device. Now you can reboot normally and your TWRP will be installed.
Upvotes: 6 [selected_answer] |
2016/04/30 | 806 | 2,975 | <issue_start>username_0: I have a couple of tasks I want to accomplish on Android 6.0.1 and they need root access when I run them on the device. This target device is not rooted.
Can I use `adb` from a PC to run commands just as if I would using a Terminal Emulator on a rooted Android? I thought adb gives some sort of unrestricted temporary access (like temporary root).<issue_comment>username_1: `adb` does not grant automatic root access unless you modify the system to run `adbd` as root (and if you're able to do that, you probably have root anyways) or if you are running an insecure development ROM (typically only for Nexus devices) and run `adb root`.
So normally, you have to be rooted and run `su` within `adb shell` just like you would within within a terminal emulator app.
ADB does run with some extra permissions, however (see [this comment](https://android.stackexchange.com/questions/100196/is-there-are-way-to-change-androids-default-screen-orientation/100209#comment123292_100209)). A terminal emulator app could request some of those permissions, but if it doesn't then you'll need root to make use of them.
Upvotes: 0 <issue_comment>username_2: >
> I thought adb gives some sort of unrestricted temporary access (like temporary root).
>
>
>
When you open an ordinary terminal emulator app, you're shown a terminal and are automatically logged in as a particular user. The User ID of this particular user is the user ID of your displayed terminal emulator app. Such user and app is considered untrustworthy and is not allowed to do quite a lot of things. You can see the blacklisted items in the source code of [untrusted\_app.te](https://android.googlesource.com/platform/external/sepolicy/+/6937aa93ac0a36f19cb13b81a282dedcad324be5/untrusted_app.te).
ADB on the other hand when interfaces with the device gets to use the user ID 2000. This user is called *shell* and can do quite a lot of things for the purpose of debugging *but still cannot meet the intricate demands of an end user*1. Unless the Android offers a mechanism to switch to another user at will (such as 'su'; not graphical but console), the end user is limited to make any good use of shell user only when device is connected to PC in debugging mode. Follow the source code of [shell.te](https://android.googlesource.com/platform/external/sepolicy/+/6937aa93ac0a36f19cb13b81a282dedcad324be5/shell.te) to know about the privileges shell user enjoys.
In short, if the Android is not rooted shell user obviously comes as a winner because of privileges granted to it in contrast to an untrustworthy user, but it does not serve as a good substitute for superuser (su). In addition to that, as I noted above it comes with a cost.
Related resource: [user IDs which come defined in Android](https://android.googlesource.com/platform/system/core/+/master/include/private/android_filesystem_config.h#97)
---
1 Temporary or otherwise, root user always have the user ID 0.
Upvotes: 2 |
2016/05/01 | 1,172 | 4,713 | <issue_start>username_0: I have a refurbished Galaxy S3. Sometimes it charges to 100% while powered off, but reports 51% as soon as I start it up. Lately, it goes down to 50% or lower even right after charging.
I haven't installed many apps or used the phone extensively yet.
I find lots of links for determining battery drain, but nothing so far on how to tell if I need a new battery.
I'd like to be relatively sure it's a bad battery before replacing it.
Update:
I have eliminated the problem, but have no idea why what I did worked ;(
1) I bought an inexpensive charging-only cable. Using this, the phone charges very nicely.
2) I turned on Power Saving.
3) I bought a more expensive version of the battery.
Now the phone charges fully, lasts a long time, and keeps the charge when turned off.
None of this makes sense - especially the fact that it used to drain when turned off (not suspended). Changing the cable shouldn't have done much either because the old cable did charge the phone - or at least - the phone said it did.<issue_comment>username_1: Li Ion or Li Po batteries don't *die* suddenly - their performance degrades in terms of :
a) **Short Term:** Ability to hold charge and deliver expected performance
b) **Long Term::** Deliver upto 80% capacity upon being charged / discharged over a period of time (in other words *life of battery*). The battery is considered to be *technically* dead if it delivers less
There is no sure way of determining and saying this battery has gone bad, but there are a couple of things you could try:
* **Spin Test:** Since your phone has user removable battery try this. For details, see [this nice answer with embedded video](https://android.stackexchange.com/a/119162/131553).
* **[Vbatt](https://play.google.com/store/apps/details?id=de.xipa.vbatt):** This app should give a fairly good indication, since it simulates discharging under *screen on* condition . When you charge your battery to 100% (irrespective of the reading it shows on disconnecting ), activate this app widget and it will tell you the voltage level and how long it should last under screen on condition. Let it ruin till the battery nearly runs out and compare the predicted Vs actual. Simple. From app description
>
> * Vbatt is a simple battery widget for Android smartphones and tablets. It displays the current battery voltage (Vbatt) and the remaining battery capacity (percentage) and optionally logs these values to a CSV-file.
> * The main reason for developing Vbatt was the differing behaviour of replacement batteries while discharging them in daily use ... For a better estimation of the remaining phone runtime the Vbatt widget displays in addition to the remaining capacity (percentage) the battery voltage
>
>
>
While battery voltage is arguably not the best indicator of health of battery, running this app can help you in a couple of ways
a) Giving you the current performance which you can compare with earlier performance as you recall or from Screen On Time (SoT) which you can gather from internet or forums
b) If you can lay your hands on a new or properly performing battery from your friends, running this app on both batteries, you can easily judge for yourself. You can even ask your friend having the same phone to install this app, run it and compare.
Since your phone is refurbished, there could be another factor at play for deterioration in performance- **date of manufacture of battery**. Li Ion batteries (for that matter all batteries) suffer from [Self Discharge](http://batteryuniversity.com/learn/article/elevating_self_discharge) At the rate of *4% every month*, which means if your battery, even if it is original, but kept on the store shelf for say an year before being sold, it had already affected the longevity of battery and it shows up in performance
IMO, looking at the battery figures shared, I would recommend battery replacement (assuming no other reason like hardware issues). It would help you to decide by running tests mentioned
Upvotes: 2 <issue_comment>username_2: It could be a bad calibration of the battery.
Charge your phone to 100% and then use it as normal, without charging. Eventually you'll hit 0% and your phone will turn itself off. Then without turning it back on, charge it until 100%. That can often reset the calibration.
Also take note of how long your battery is lasting. If you're not a heavy user you should easily get a day out of a good battery. If your getting to 0% before the end of the day your battery might be on it's way out. My samsung battery was going from 100% to 30% in an hour and then draining quickly. A couple days after getting those symptoms it just died.
Upvotes: 0 |
2016/05/01 | 1,067 | 4,182 | <issue_start>username_0: When I receive an sms from an email address, the name of the thread is something like `0000000000000001`. If I respond, the person gets it, but then if the person responds to *that*, it comes in a new thread called `0000000000000002`. The next comes in `0000000000000003`, etc. I have tried adding the email address as a contact, but each new message still comes in a new thread. What can I do to stop this?
I am using Silence (the messaging application) on a Nexus 6P on Android 6.0.1<issue_comment>username_1: Li Ion or Li Po batteries don't *die* suddenly - their performance degrades in terms of :
a) **Short Term:** Ability to hold charge and deliver expected performance
b) **Long Term::** Deliver upto 80% capacity upon being charged / discharged over a period of time (in other words *life of battery*). The battery is considered to be *technically* dead if it delivers less
There is no sure way of determining and saying this battery has gone bad, but there are a couple of things you could try:
* **Spin Test:** Since your phone has user removable battery try this. For details, see [this nice answer with embedded video](https://android.stackexchange.com/a/119162/131553).
* **[Vbatt](https://play.google.com/store/apps/details?id=de.xipa.vbatt):** This app should give a fairly good indication, since it simulates discharging under *screen on* condition . When you charge your battery to 100% (irrespective of the reading it shows on disconnecting ), activate this app widget and it will tell you the voltage level and how long it should last under screen on condition. Let it ruin till the battery nearly runs out and compare the predicted Vs actual. Simple. From app description
>
> * Vbatt is a simple battery widget for Android smartphones and tablets. It displays the current battery voltage (Vbatt) and the remaining battery capacity (percentage) and optionally logs these values to a CSV-file.
> * The main reason for developing Vbatt was the differing behaviour of replacement batteries while discharging them in daily use ... For a better estimation of the remaining phone runtime the Vbatt widget displays in addition to the remaining capacity (percentage) the battery voltage
>
>
>
While battery voltage is arguably not the best indicator of health of battery, running this app can help you in a couple of ways
a) Giving you the current performance which you can compare with earlier performance as you recall or from Screen On Time (SoT) which you can gather from internet or forums
b) If you can lay your hands on a new or properly performing battery from your friends, running this app on both batteries, you can easily judge for yourself. You can even ask your friend having the same phone to install this app, run it and compare.
Since your phone is refurbished, there could be another factor at play for deterioration in performance- **date of manufacture of battery**. Li Ion batteries (for that matter all batteries) suffer from [Self Discharge](http://batteryuniversity.com/learn/article/elevating_self_discharge) At the rate of *4% every month*, which means if your battery, even if it is original, but kept on the store shelf for say an year before being sold, it had already affected the longevity of battery and it shows up in performance
IMO, looking at the battery figures shared, I would recommend battery replacement (assuming no other reason like hardware issues). It would help you to decide by running tests mentioned
Upvotes: 2 <issue_comment>username_2: It could be a bad calibration of the battery.
Charge your phone to 100% and then use it as normal, without charging. Eventually you'll hit 0% and your phone will turn itself off. Then without turning it back on, charge it until 100%. That can often reset the calibration.
Also take note of how long your battery is lasting. If you're not a heavy user you should easily get a day out of a good battery. If your getting to 0% before the end of the day your battery might be on it's way out. My samsung battery was going from 100% to 30% in an hour and then draining quickly. A couple days after getting those symptoms it just died.
Upvotes: 0 |
2016/05/01 | 969 | 3,946 | <issue_start>username_0: I use Lenovo Vibe P1 Series Phone. I got it upgraded to Marshmallow and ever since then it reboots each time I locks the screen. It's working perfectly when I'm using it. It was working perfectly when I had Lollipop.
Please help me fix this problem.<issue_comment>username_1: Li Ion or Li Po batteries don't *die* suddenly - their performance degrades in terms of :
a) **Short Term:** Ability to hold charge and deliver expected performance
b) **Long Term::** Deliver upto 80% capacity upon being charged / discharged over a period of time (in other words *life of battery*). The battery is considered to be *technically* dead if it delivers less
There is no sure way of determining and saying this battery has gone bad, but there are a couple of things you could try:
* **Spin Test:** Since your phone has user removable battery try this. For details, see [this nice answer with embedded video](https://android.stackexchange.com/a/119162/131553).
* **[Vbatt](https://play.google.com/store/apps/details?id=de.xipa.vbatt):** This app should give a fairly good indication, since it simulates discharging under *screen on* condition . When you charge your battery to 100% (irrespective of the reading it shows on disconnecting ), activate this app widget and it will tell you the voltage level and how long it should last under screen on condition. Let it ruin till the battery nearly runs out and compare the predicted Vs actual. Simple. From app description
>
> * Vbatt is a simple battery widget for Android smartphones and tablets. It displays the current battery voltage (Vbatt) and the remaining battery capacity (percentage) and optionally logs these values to a CSV-file.
> * The main reason for developing Vbatt was the differing behaviour of replacement batteries while discharging them in daily use ... For a better estimation of the remaining phone runtime the Vbatt widget displays in addition to the remaining capacity (percentage) the battery voltage
>
>
>
While battery voltage is arguably not the best indicator of health of battery, running this app can help you in a couple of ways
a) Giving you the current performance which you can compare with earlier performance as you recall or from Screen On Time (SoT) which you can gather from internet or forums
b) If you can lay your hands on a new or properly performing battery from your friends, running this app on both batteries, you can easily judge for yourself. You can even ask your friend having the same phone to install this app, run it and compare.
Since your phone is refurbished, there could be another factor at play for deterioration in performance- **date of manufacture of battery**. Li Ion batteries (for that matter all batteries) suffer from [Self Discharge](http://batteryuniversity.com/learn/article/elevating_self_discharge) At the rate of *4% every month*, which means if your battery, even if it is original, but kept on the store shelf for say an year before being sold, it had already affected the longevity of battery and it shows up in performance
IMO, looking at the battery figures shared, I would recommend battery replacement (assuming no other reason like hardware issues). It would help you to decide by running tests mentioned
Upvotes: 2 <issue_comment>username_2: It could be a bad calibration of the battery.
Charge your phone to 100% and then use it as normal, without charging. Eventually you'll hit 0% and your phone will turn itself off. Then without turning it back on, charge it until 100%. That can often reset the calibration.
Also take note of how long your battery is lasting. If you're not a heavy user you should easily get a day out of a good battery. If your getting to 0% before the end of the day your battery might be on it's way out. My samsung battery was going from 100% to 30% in an hour and then draining quickly. A couple days after getting those symptoms it just died.
Upvotes: 0 |
2016/05/01 | 271 | 1,162 | <issue_start>username_0: i want to know if i can flash a custom ROM without unlocking the bootloader if this impossible then what happens to the phone if i do that? Thanks.<issue_comment>username_1: Generally speaking, you can't. A locked bootloader prevents flashing.
On some devices you might be able to gain root temporarily while the device is running, and could "live" flash a ROM. Some bootloaders will refuse to boot the device at all at that point, whereas others will let you proceed after trying and failing to restore the original. (Or, if you didn't remove the backup image, the restore will succeed.)
The best advice is to avoid attempting any of this with a locked bootloader, unless you want an expensive paperweight.
Upvotes: 2 <issue_comment>username_2: Most phones with locked bootloaders with prevent this as they need a custom recovery such as CWM or TWRP to flash a custom rom which cant be installed unless you unlock the bootloader and root your device.
Upvotes: 2 [selected_answer]<issue_comment>username_3: Go for it. The locked bootloader can't do anything if you succeed. I've used custom Roms on a locked xt912 for years
Upvotes: 0 |
2016/05/01 | 1,287 | 4,312 | <issue_start>username_0: Tomorrow is a Bank Holiday in the UK so I don't want my "Work" alarm to go off. I could turn the whole alarm off, but then I'd have to remember to turn it back on again before I go to bed on Monday night. Or I could turn off Monday's occurrence, but again I'd have to remember to reinstate it before next Monday.
So what I'd like to do is just dismiss the next occurrence of the alarm. A Google search came up with this help page - <https://support.google.com/nexus/answer/2840926?hl=en-GB> :
>
> ### Dismiss next alarm
>
>
> If you have an alarm that's set to repeat, you can dismiss the next instance of the alarm. That way your alarm will still be turned on for future instances.
>
>
>
Which describes exactly what I want to do. It goes on to list the procedure as:
>
> 1. Open the Clock app. 
> 2. At the top, touch the alarm clock iconalarm.
> 3. Under the alarm you want to dismiss, touch "Dismiss Now" dismiss alarm.
>
>
>
However, I'm not seeing the "Dismiss Now" option.
Where is it or what am I doing wrong?<issue_comment>username_1: **Update:** since version 7.3, Google Clock allows [pausing repeating alarms](https://android.stackexchange.com/a/248765/44325). Below explanation is only for historical purpose.
---
It was impossible to dismiss the next repeating alarm, and looks like the help page was different.
Cross-checking with the [help support in English (US)](https://support.google.com/nexus/answer/2840926?hl=en), and for the same topic, it instead mentions,
>
> ### Dismiss next alarm
>
>
> If you have an alarm **scheduled to go off within the next two hours**, you can dismiss the next instance of your alarm. *If your alarm is set to repeat, your alarm will still be turned on for future instances*.
>
>
> (Emphasis mine)
>
>
>
The alarm can only be dismissed if it goes off in 2 hours (like for other alarms), but for repeating alarm, Android will set the next alarm automatically.
---
This issue has been reported on [Google Product Forum](https://productforums.google.com/forum/#!topic/nexus/HtQq0fqs8Z0;context-place=forum/nexus).
Upvotes: 3 <issue_comment>username_2: I have just discovered this alarm clock app:
<https://play.google.com/store/apps/details?id=com.urbandroid.sleep&hl=en_GB>
One of it's features is the integration with Google Calendar:
<http://sleep.urbandroid.org/documentation/integration/google-calendar/>
The two relevant features are:
>
> * your alarms can be automatically disabled for public holidays
> * your alarms can take your calendar events into account
>
>
>
This will do what I'm looking for, though I'm not sure I want my holidays on my Google calendar for all and sundry to see.
Upvotes: 0 <issue_comment>username_3: Check my app on Android playstore - [Alarm + Task Logger PRO](https://play.google.com/store/apps/details?id=com.mobitronix.gauravchauhan.alarmplus.pro)
It has skip next next functionality for recurring alarms. You can skip any number of upcoming occurences.
Upvotes: 0 <issue_comment>username_4: Add a do not disturb rule for the duration. Not a complete solution, but that's what I do.
Upvotes: 2 <issue_comment>username_5: On my Samsung Galaxy S6 I open the clock, choose Alarm at the bottom, then tap the slider on the repeating alarm to turn it off. A prompt appears below the alarm asking to Turn on again . Tap this prompt. Will turn on again appears on alarm.
[tag: V11]
Upvotes: 0 <issue_comment>username_2: I have just discovered that Google have added a "Pause alarm" function to their standard clock [since version 7.3](https://crast.net/178710/google-clock-7-3-brings-two-important-improvements-so-that-the-alarm-only-rings-when-you-need-it/):
[](https://i.stack.imgur.com/AZ8Bz.jpg)
[](https://i.stack.imgur.com/Ojx4W.jpg)
It allows the alarm to be paused for a range of dates at any point in the future, not just for the next occurrence of the alarm.
Upvotes: 2 [selected_answer] |
2016/05/02 | 433 | 1,938 | <issue_start>username_0: This is a new T-Mobile Samsung Galaxy S7.
Is it normal to have all these certificates? Many look dodgy.
[](https://i.stack.imgur.com/GDyQ8.jpg)
Image resized. Click to see full-version<issue_comment>username_1: Yes, it is normal to have these security certificates.
To trust a security certificate you encounter on the Internet, your device needs a way to verify a certificate is good. You can't just accept any certificate that is presented because any adversary able to become a man-in-the-middle (like a public WiFi access point) would be able to spoof any website.
This problem has been solved by giving each device a list of certificates initially, like the one you have shown, and requiring all certificates to have a chain of valid certificates (signed, not expired) that terminates with a trusted certificate. These initial trusted certificates are for organizations that are in the business of signing certificates for other organizations. People need certificates all over the world which is why there are certificates for authorities from all over the world. To verify a certificate, the device looks for a chain of valid certificates.
This means that if you run a server and want a certificate, you have to go to one of the companies that issues certificates (often called a certificate authority) and get them to sign a certificate for you to identify your server. The certificate includes the name of the server so you cannot just take a certificate and use it anywhere.
With certificates, an adversary can still try to spoof any website, but if you require a certificate (use HTTPS) the client can detect the spoofing.
Upvotes: 3 <issue_comment>username_2: The certificates are very necessary! Without them your phone would just say that any site you visit is trying to steal your data and is not secure.
Upvotes: 1 |
2016/05/02 | 234 | 980 | <issue_start>username_0: I want to delete my present google account, entirely, but I'm unsure as to whether doing so would delete all the apps on my phone, and all the pictures I've saved, from the Internet and screenshots and being sent them etc.<issue_comment>username_1: [This link about deleting google account](https://support.google.com/accounts/answer/32046?hl=en) gives you the required information.
As far as I understand, it would not delete the apps and screenshots from your phone.
Upvotes: 1 <issue_comment>username_2: No, it won't delete your pics. But, if there are some synced photos of some folder from your Google photos app, those will vanish only from your phone not from cloud storage.
Upvotes: 0 <issue_comment>username_3: No. It won't delete any photos **saved on your phone.** It will delete photos backed up to your Google Photos account though. So make sure you move any photos on your Google account to your phone if you want to keep them.
Upvotes: 0 |
2016/05/02 | 255 | 1,020 | <issue_start>username_0: I have a tablet not two years old, a few days ago it was left in a hot truck for about two days. Now it won't go past "fast boot menu".
I have tried everything, I even tried charging it and the battery keeps saying 0%, how can I charge my tablet and turn it on?<issue_comment>username_1: [This link about deleting google account](https://support.google.com/accounts/answer/32046?hl=en) gives you the required information.
As far as I understand, it would not delete the apps and screenshots from your phone.
Upvotes: 1 <issue_comment>username_2: No, it won't delete your pics. But, if there are some synced photos of some folder from your Google photos app, those will vanish only from your phone not from cloud storage.
Upvotes: 0 <issue_comment>username_3: No. It won't delete any photos **saved on your phone.** It will delete photos backed up to your Google Photos account though. So make sure you move any photos on your Google account to your phone if you want to keep them.
Upvotes: 0 |
2016/05/03 | 293 | 1,019 | <issue_start>username_0: I want to use Trinus VR with the cable using Gear VR. I could disable booting the Oculus app with Package Disabler Pro, but I'm not sure if I could pair PC and phone with cable since it's through Gear VR.
Does anyone know if it works?<issue_comment>username_1: Try [VRidge by Riftcat](https://riftcat.com/vridge). It will use your phone sensors data.
Upvotes: -1 <issue_comment>username_2: My friend has a Gear VR headset and I have wanted to do this for a while. I eventually just made it myself with Google Cardboard.
[<NAME> has a good point](https://android.stackexchange.com/questions/144004/gear-vr-trinus-vr-using-a-cable#comment185832_144004). The Gear VR does incorporate multiple other sensors the communicate with the phone. *However*, the phones compatible immediately with Gear VR all have a gyroscope in them so you don't really need the extra sensors.
You should be able to use the Trinus VR app but with only the built-in gyro, it might drift or lag a tad bit.
Upvotes: 0 |
2016/05/03 | 559 | 2,345 | <issue_start>username_0: I've got into a peculiar situation with Chrome on my Samsung Note 2 running Android 4.4.2. I've been playing with JavaScript and apparently created some bad code. I know it because PhpStorm showed the warning that the code was likely to cause an exception. Still, I've tried seeing this page on my smartphone. (I need the smartphone because I am playing with the `navigator.vibration` function.) Chrome crashed.
Now when I run Chrome, it tries to re-open all tabs, the last being the one with the erroneous page (hosted with a web-hosting company). Apparently, Chrome is trying to open the cached page. It makes the whole smartphone practically unresponsive, with app icons sometimes disappearing from the desktop. I can revive the OS by closing Chrome from the app manager (long-press the home key).
I have already corrected the page online, it works fine in a desktop browser. And no warning in PhpStorm any more. But Android Chrome is hopeless. Restarting the phone doesn't help.
I wonder if I can somehow reset Chrome or simply close all tabs without running Chrome itself. It would also be great to understand what could have brought it to this amazing condition.
The problematic code in the page was
```
while (true) {
navigator.vibrate([500, 500]);
}
```
I wanted to create an infinite loop (for as long as the tab was open).<issue_comment>username_1: You have to have it set to false because any infinite loop in javascript will crash the browser. The reason it is not crashing on the desktop is probably because it ingroring the function. Sorry if my understadning is wrong im not too good at javascript.
Upvotes: 2 <issue_comment>username_2: Just in case no better answer is given, I found a workaround by mere chance. Another program (Play Store) decided to open some web-page. Since Chrome was a default browser, it launched Chrome *with a new tab*. This means that the last opened tab (which was my problematic one) was not made active and hence Chrome hasn't tried to display it. I was then able to close that tab as usual, and then open it again. This time Chrome downloaded the content from the web and since I corrected it, the problem was resolved.
Upvotes: 2 <issue_comment>username_3: You could try killing Chrome and then clearing cache in the settings app.
Upvotes: 3 [selected_answer] |
2016/05/04 | 266 | 1,170 | <issue_start>username_0: I was using google play store with gmail. But when I remove that mail account from the google play both the Google play and gmail apps stop working. How could I fix this?<issue_comment>username_1: You have to have it set to false because any infinite loop in javascript will crash the browser. The reason it is not crashing on the desktop is probably because it ingroring the function. Sorry if my understadning is wrong im not too good at javascript.
Upvotes: 2 <issue_comment>username_2: Just in case no better answer is given, I found a workaround by mere chance. Another program (Play Store) decided to open some web-page. Since Chrome was a default browser, it launched Chrome *with a new tab*. This means that the last opened tab (which was my problematic one) was not made active and hence Chrome hasn't tried to display it. I was then able to close that tab as usual, and then open it again. This time Chrome downloaded the content from the web and since I corrected it, the problem was resolved.
Upvotes: 2 <issue_comment>username_3: You could try killing Chrome and then clearing cache in the settings app.
Upvotes: 3 [selected_answer] |
2016/05/04 | 471 | 1,882 | <issue_start>username_0: I installed a Cyanogenmod 12.1 snapshot on my Moto G 2014 when I got it, it previously has only had the stock ROM installed, no other custom ROMs. I soon discovered that the GPS wasn't working on Cyanogenmod, some searching quickly revealed that this is a known problem. Because I don't use GPS very often and because I haven't really needed it yet, it didn't really bother me too much and I was hoping it would get fixed in a future update. Today I discovered that there apparently is a fix for this issue, namely executing:
```
fastboot erase modemst1
fastboot erase modemst2
```
in bootloader mode. ([Known issues with CM for the Moto G 2014](http://wiki.cyanogenmod.org/w/Known_Issues_page_for_titan)) Apparently this erases 2 partitions, my question is, doesn't erasing these partitions have any implications? Wouldn't I remove the firmware of the modem? Don't I have to replace the contents of these partitions with some other image? The instructions in the XDA thread that the CM wiki page links to don't mention anything about the above. I am a bit reluctant to run these commands as my G 2014 has been working perfectly for months now and I've got everything set up, I'm not interested reflashing currently. I have already searched the web about this but I didn't find much, except for some guy with an Xiaomi device who did the same thing resulting in the phone saying the IMEI number was unknown.<issue_comment>username_1: I ended up taking the risk after all other "fix GPS" methods failed and I can report that it was successful and to my knowledge had no side effects, like the ones reported with other devices.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Worked for me. After first boot mobile data was not working (but phone was working). After a second reboot also mobile data working.
Moto G falcon
Android 4.4.4
Upvotes: 2 |
2016/05/04 | 180 | 755 | <issue_start>username_0: What are the facts to look for if someone want to buy a developer friendly phone (other than nexus phones) which means this phone is gonna have a lot of custom roms, mods and can stay up to date with the latest version of android for as long as possible with the help of custom roms.<issue_comment>username_1: I ended up taking the risk after all other "fix GPS" methods failed and I can report that it was successful and to my knowledge had no side effects, like the ones reported with other devices.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Worked for me. After first boot mobile data was not working (but phone was working). After a second reboot also mobile data working.
Moto G falcon
Android 4.4.4
Upvotes: 2 |
2016/05/04 | 822 | 3,024 | <issue_start>username_0: A friend borrowed my phone when they forgot theirs. They had to log into their Gmail to get their contacts to find where they left the phone. When they added their account, it was synced to my phone.
I have deleted the account, but their contacts are still on the phone. I have tried to clear the cache and re-synced the account.
I do not want to do a factory reset unless that is the last resort. Any suggestions or ideas?<issue_comment>username_1: Removing the Google account should have invariably deleted the contacts linked to that account, from your phone.
If not, go to Contacts, choose "Contacts to display" and select the Google account of your friend. This should bring up only those 'unwanted' contacts. Select all and delete. In case if the account does not show up in "Contacts to display" then you can try adding the account once again. But this may delete all the contacts from your friend's Google account. Make sure to ask him to take a backup / export all contacts, in case if he needs to restore in his Google.
Hope this helps.
Upvotes: 2 <issue_comment>username_2: I finally was able to get rid of the unwanted contacts. What I had to do was have my friend add their e-mail back onto my phone. I then turned off the Sync for this phone. After that I deleted all the unwanted numbers and contacts. Once that was done I removed the e-mail account. I then forced a Sync and then restarted my phone.
Upvotes: 1 <issue_comment>username_3: This is lifted from jpolito's 2017-03-15 reply [here](https://support.google.com/mail/forum/AAAAK7un8RU0ED7BGD-Qak/?hl=en). It is the only thing trick has worked for me - not wanting to risk deletion of contacts for the second account.
>
> 1. Phone Setting> Accounts> Google> Select your SECOND email account> "Remove account"
> 2. Phone Settings> Accounts > Turn Off Auto Sync
> 3. Re-establish account.
> 4. Turn on Airplane Mode
> 5. Phone Settings> Accounts > Turn On Auto Sync (Without autosync turned on, there is no option in manage accounts to uncheck syncs)
> 6. Open the Gmail app.
> 7. On the top left, click on the 'Menu' icon.
> 8. Click on the dropdown next to your email address.
> 9. Choose 'Manage Accounts'.
> 10. Select 'Google' and select your SECOND account.
> 11. Uncheck the 'Contacts' checkbox and all other unwanted information.
> 12. Turn off Airplane Mode
>
>
>
Upvotes: 2 <issue_comment>username_4: 1) go to <https://contacts.google.com/>
2) in the left side bar press **more**
3) Press undo changes
[](https://i.stack.imgur.com/tc7lw.png)
Then it will open a dialogue where you can choose when to reset it by. I personally like choosing custom and then you can set it exactly.
[](https://i.stack.imgur.com/57sn5.png)
I was able to do this several times and I even accidentally deleted all the synced contacts but still this feature helped get it back for me.
Upvotes: 0 |
2016/05/04 | 789 | 2,912 | <issue_start>username_0: I wrote a very long text message and pressed send, while mobile data was off. My phone displayed an error that the message will be sent when I activate mobile data. Before activating mobile data and while the text's status was pending, I deleted it.
If I now activate mobile data, will the message still be sent?<issue_comment>username_1: Removing the Google account should have invariably deleted the contacts linked to that account, from your phone.
If not, go to Contacts, choose "Contacts to display" and select the Google account of your friend. This should bring up only those 'unwanted' contacts. Select all and delete. In case if the account does not show up in "Contacts to display" then you can try adding the account once again. But this may delete all the contacts from your friend's Google account. Make sure to ask him to take a backup / export all contacts, in case if he needs to restore in his Google.
Hope this helps.
Upvotes: 2 <issue_comment>username_2: I finally was able to get rid of the unwanted contacts. What I had to do was have my friend add their e-mail back onto my phone. I then turned off the Sync for this phone. After that I deleted all the unwanted numbers and contacts. Once that was done I removed the e-mail account. I then forced a Sync and then restarted my phone.
Upvotes: 1 <issue_comment>username_3: This is lifted from jpolito's 2017-03-15 reply [here](https://support.google.com/mail/forum/AAAAK7un8RU0ED7BGD-Qak/?hl=en). It is the only thing trick has worked for me - not wanting to risk deletion of contacts for the second account.
>
> 1. Phone Setting> Accounts> Google> Select your SECOND email account> "Remove account"
> 2. Phone Settings> Accounts > Turn Off Auto Sync
> 3. Re-establish account.
> 4. Turn on Airplane Mode
> 5. Phone Settings> Accounts > Turn On Auto Sync (Without autosync turned on, there is no option in manage accounts to uncheck syncs)
> 6. Open the Gmail app.
> 7. On the top left, click on the 'Menu' icon.
> 8. Click on the dropdown next to your email address.
> 9. Choose 'Manage Accounts'.
> 10. Select 'Google' and select your SECOND account.
> 11. Uncheck the 'Contacts' checkbox and all other unwanted information.
> 12. Turn off Airplane Mode
>
>
>
Upvotes: 2 <issue_comment>username_4: 1) go to <https://contacts.google.com/>
2) in the left side bar press **more**
3) Press undo changes
[](https://i.stack.imgur.com/tc7lw.png)
Then it will open a dialogue where you can choose when to reset it by. I personally like choosing custom and then you can set it exactly.
[](https://i.stack.imgur.com/57sn5.png)
I was able to do this several times and I even accidentally deleted all the synced contacts but still this feature helped get it back for me.
Upvotes: 0 |
2016/05/05 | 1,055 | 4,019 | <issue_start>username_0: I'm going to put a tablet in my car to accommodate my many desired functions. Of these functions is a backup camera. I plan on using a Logitech webcam that I had around for the camera. The webcam uses USB, so I was going to get an OTG Y adapter so that I could charge the tablet and get data from the camera to the tablet at the same time. This would require a Kernel Update, but that's already lined up.
I plan on wiring the power for the webcam into the reverse light wire (either using a relay or a DC-DC converter), and then wiring the data cables to the front of the car to the tablet. This way, the camera would turn on only when the car was in reverse, and then I would have Tasker launch a video viewing app once it detected that the USB had been plugged in, which would be initiated by the webcam receiving power and sending data.
This is based off of the assumption that Android recognizes a USB device being "plugged in" as the transfer of data being initiated, **or** power transfer being initiated.
What I want to know is, which one is it? **Is USB detected by whether or not power can flow from the host to the client, or whether or not the tablet is receiving data?** Because the tablet would only be doing the latter, and power of the webcam would be completely separate of the tablet.
I suppose I could test this, but I wanted to check here first before I murdered several USB cables in the process.<issue_comment>username_1: Removing the Google account should have invariably deleted the contacts linked to that account, from your phone.
If not, go to Contacts, choose "Contacts to display" and select the Google account of your friend. This should bring up only those 'unwanted' contacts. Select all and delete. In case if the account does not show up in "Contacts to display" then you can try adding the account once again. But this may delete all the contacts from your friend's Google account. Make sure to ask him to take a backup / export all contacts, in case if he needs to restore in his Google.
Hope this helps.
Upvotes: 2 <issue_comment>username_2: I finally was able to get rid of the unwanted contacts. What I had to do was have my friend add their e-mail back onto my phone. I then turned off the Sync for this phone. After that I deleted all the unwanted numbers and contacts. Once that was done I removed the e-mail account. I then forced a Sync and then restarted my phone.
Upvotes: 1 <issue_comment>username_3: This is lifted from jpolito's 2017-03-15 reply [here](https://support.google.com/mail/forum/AAAAK7un8RU0ED7BGD-Qak/?hl=en). It is the only thing trick has worked for me - not wanting to risk deletion of contacts for the second account.
>
> 1. Phone Setting> Accounts> Google> Select your SECOND email account> "Remove account"
> 2. Phone Settings> Accounts > Turn Off Auto Sync
> 3. Re-establish account.
> 4. Turn on Airplane Mode
> 5. Phone Settings> Accounts > Turn On Auto Sync (Without autosync turned on, there is no option in manage accounts to uncheck syncs)
> 6. Open the Gmail app.
> 7. On the top left, click on the 'Menu' icon.
> 8. Click on the dropdown next to your email address.
> 9. Choose 'Manage Accounts'.
> 10. Select 'Google' and select your SECOND account.
> 11. Uncheck the 'Contacts' checkbox and all other unwanted information.
> 12. Turn off Airplane Mode
>
>
>
Upvotes: 2 <issue_comment>username_4: 1) go to <https://contacts.google.com/>
2) in the left side bar press **more**
3) Press undo changes
[](https://i.stack.imgur.com/tc7lw.png)
Then it will open a dialogue where you can choose when to reset it by. I personally like choosing custom and then you can set it exactly.
[](https://i.stack.imgur.com/57sn5.png)
I was able to do this several times and I even accidentally deleted all the synced contacts but still this feature helped get it back for me.
Upvotes: 0 |
2016/05/05 | 861 | 2,736 | <issue_start>username_0: FWIW Reverse USB tethering works great on my Jellybean device, lets assume it has the serial number 0123456789ABCDEF, here are the commands I use to get it running:
```
adb -s 0123456789ABCDEF shell su -c 'service call connectivity 33 i32 1'
sleep 5
sudo ifconfig usb0 10.42.0.1 netmask 255.255.255.0
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
adb -s 0123456789ABCDEF shell su -c "ifconfig rndis0 10.42.0.2 netmask 255.255.255.0"
adb -s 0123456789ABCDEF shell su -c "route add default gw 10.42.0.1 dev rndis0"
```
I run these commands on my Linux machine which the phone is connected to, and on my jellybean device the browser will load a website using data over USB.
Now I have a KitKat device, and I have a similar script, i use
```
"service call connectivity 34 i32 1"
```
on the first line as kitkat needs a slightly different command, so but even after all my commands run with no error messages, when I load up the browser on the phone I simply get 'page not found'
Is there a was to fix this? I've tried pinging google from the phone and the pings work, so I'm assuming this is a software issue?
Has anyone successfully managed to do this on KitKat? Thanks
EDIT: I've done some more tests, and I think it's a DNS issue. Pinging IP addresses works fine, but pinging hostnames gives 'ping: unknown host' on the kitkat device. Pinging hostnames works perfecly on the Jellybean device, I have them both hooked up the same Linux machine right now so the only difference here is the android versions.
I have a feeling there are some extra steps or commands I need to add to my script here, as I cannot even ping the name of my router from the Kitkat device, while I can ping the IP address with no problem.<issue_comment>username_1: Have you tried this?
<http://forum.xda-developers.com/showthread.php?t=1371345>
It says it's compatible with lower than 5.0 android versions.
Upvotes: -1 <issue_comment>username_2: After some trial and error seem to have managed to get it working, turns out it is a DNS issue. If anyone else has this issue then it turns out that you need some extra commands in order to get KitKat to work.
I added these on to the end of my script posted above and I can now ping google and get pings returned:
```
adb shell su -c 'ndc resolver setifdns rndis0 "" 192.168.1.1 192.168.1.1'
adb shell su -c 'ndc resolver setdefaultif rndis0'
```
Substitute 192.168.1.1 with the IP address of your router, it uses this address for DNS.
Now I'm going to try google DNS (8.8.8.8) and see if it still works, and also see if I can get it to play nice with my Jellybean device being hooked up to the same linux box.
Upvotes: 1 |
2016/05/05 | 475 | 1,890 | <issue_start>username_0: I have an option to change alarm or ringtone volume in Settings, but not notifications as I had in 4.3.
How can I change notification volume on Android 6.0 **without changing ringtone volume**?
I would prefer a solution that doesn't *require* root, but would accept one that requires root if it's impossible otherwise.
3rd-party app is acceptable if there's no way to do so in the OS.
I already considered a hack of setting ringtone to a very loud sound and notifications to artificially quiet sound file, please don't offer that as a "solution" since it doesn't allow adjustments.<issue_comment>username_1: I'm not aware of a native solution, but my app listing for [Volume control](https://android.izzysoft.de/applists/category/named/tools_settings#group_871) has an app called [Ringer & Notification Unlink](https://play.google.com/store/apps/details?id=com.gzplanet.xposed.ringerandnotificationvolumeunlink). It requires root and the XPosed framework, but should do its job. From the app description:
>
> Since ICS, Google has decided to link the volume of ringer and notification volume together. This Xposed module can separate the two streams as they were before ICS.
>
>
>
I have not tried it myself and especially cannot tell whether it works fine with Marshmallow – but the changelog for the latest version explicitly mentions it should: "support for Android 6".
Upvotes: 3 [selected_answer]<issue_comment>username_2: Go to settings volume and there are seperate controls for ringtone notification media and systems
Upvotes: -1 <issue_comment>username_3: I have android 6. LG g4. When I change volume with my buttons there is a little gear to the right of the bar. If I press it there is a new window where there are separate bars for ringer, notification, & media
Upvotes: 0 |
2016/05/05 | 594 | 2,067 | <issue_start>username_0: Ok, so I was looking for a terminal emulator for android and I found Termux. Then I discovered that it has "apt-get" as a package manager and I played around with it and installed a few packages. Then I had the idea! Debian also runs on a few ARM devices so I should be able to find the URL of the repo where the packages are collected. I searched the internet to no avail. So now I have two questions:
- What's the URL to the Kali or Debian package repo containig ARM packages?
- How do I install the packages after downloading "package.deb"?<issue_comment>username_1: Termux's repository of ARM packages can be found at: [termux.net/dists/stable/main/binary-arm/](https://termux.net/dists/stable/main/binary-arm/ "termux.net/dists/stable/main/binary-arm/")
Additional resources that may be of interest:
* [Termux Help: Package Management](https://termux.com/package-management.html "Termux Help: Package Management")
* [Termux Help: Termux and Linux](https://termux.com/linux.html "Termux Help: Termux and Linux")
Upvotes: 3 <issue_comment>username_2: I have added debian arm / Ubuntu package in termux by editing source.list file
you will find it at
>
> /data/data/com.termux/files/usr/etc/apt/
>
>
>
unfortunately I couldn't sign !
Upvotes: 2 <issue_comment>username_3: The solution: [HOWTO install Debian 10 (buster) on your non-rooted Android smartphone](https://github.com/sp4rkie/debian-on-termux)
What is it?
-----------
* a shell script to install [Debian 10 (buster)](https://www.debian.org/releases/buster/) via [debootstrap](https://wiki.debian.org/Debootstrap) in a [Termux](https://wiki.termux.com/wiki/Main_Page) environment
* supported Debian versions also include: [Debian testing (bullseye)](https://www.debian.org/releases/testing/), [Debian unstable (sid)](https://www.debian.org/releases/sid/)
* supported architectures include: armel, armhf, arm64, i386, amd64
* no root permissions are required
In other words: exactly what you are looking for.
**Disclaimer**: I am hosting that repository.
Upvotes: 1 |
2016/05/06 | 540 | 1,789 | <issue_start>username_0: There are so many ways to share screen with PC wirelessly without root.
I've heard that it's even easier with root.
I want to play games and I want the game to show up on my PC screen too.
How do I accomplish that?
My phone is rooted. So rooting is not an issue'<issue_comment>username_1: Termux's repository of ARM packages can be found at: [termux.net/dists/stable/main/binary-arm/](https://termux.net/dists/stable/main/binary-arm/ "termux.net/dists/stable/main/binary-arm/")
Additional resources that may be of interest:
* [Termux Help: Package Management](https://termux.com/package-management.html "Termux Help: Package Management")
* [Termux Help: Termux and Linux](https://termux.com/linux.html "Termux Help: Termux and Linux")
Upvotes: 3 <issue_comment>username_2: I have added debian arm / Ubuntu package in termux by editing source.list file
you will find it at
>
> /data/data/com.termux/files/usr/etc/apt/
>
>
>
unfortunately I couldn't sign !
Upvotes: 2 <issue_comment>username_3: The solution: [HOWTO install Debian 10 (buster) on your non-rooted Android smartphone](https://github.com/sp4rkie/debian-on-termux)
What is it?
-----------
* a shell script to install [Debian 10 (buster)](https://www.debian.org/releases/buster/) via [debootstrap](https://wiki.debian.org/Debootstrap) in a [Termux](https://wiki.termux.com/wiki/Main_Page) environment
* supported Debian versions also include: [Debian testing (bullseye)](https://www.debian.org/releases/testing/), [Debian unstable (sid)](https://www.debian.org/releases/sid/)
* supported architectures include: armel, armhf, arm64, i386, amd64
* no root permissions are required
In other words: exactly what you are looking for.
**Disclaimer**: I am hosting that repository.
Upvotes: 1 |
2016/05/06 | 225 | 885 | <issue_start>username_0: I enrolled in the beta program. OTA update appeared, downloaded, unpacked and restarted. Then it loaded up a great little "ERROR" screen with a sick looking Android :/
After restart, it booted back up in Marshmallow.
OK, so no big loss, just time. Happy to try again...but I can't find a way to force the OTA to reappear?<issue_comment>username_1: Turns out it just took time. By the next morning I had another alert asking me to download and install the beta. Despite having checked for updates and restarted the phone to see if I could trigger it.
Upvotes: 2 [selected_answer]<issue_comment>username_2: My first download failed. I unenrolled (on the same page where you enroll)...waited a few minutes, the re-enrolled and got another download message.
The second download/install worked fine.
Apparently this has been true for others as well.
Upvotes: 0 |
2016/05/06 | 351 | 1,376 | <issue_start>username_0: My Google Play Services App is missing. Not sure if I deleted it but I'm unable to do almost everything! Please help me figure out how to reinstall Google Play Services (App Icon is shape of puzzle piece)<issue_comment>username_1: Google Play Services consists of more than just one app, it's a framework with other moving pieces with some of its parts buried in read-only /system and /data partitions.
If your phone is rooted, the best way to get around such corruption is to re-flash either the factory image, or whichever custom ROM you are running with its corresponding GApps package. Factory image will have all the necessary components, and for custom ROMs it's the GApps package that contains the Play Services framework and app.
Upvotes: 0 <issue_comment>username_2: I do not know why the problem happens. But I can tell you one thing that the same thing happened to me too. I was using an android kitkat device, suddenly my google play games app disappeared and I couldn't access several apps. Then I collected the .apk file of google play games app and installed it again. then, everything came to normal again. hope this link helps you.
To assure you even further, this is a link from my personal mediafire account.
Thanks.
<http://www.mediafire.com/download/948cu7te39u733n/Google_Play_Games_3.0.11_%281917563-034%29.apk>
Upvotes: -1 |
2016/05/06 | 719 | 2,652 | <issue_start>username_0: The notification-bar fails in my new official CM13 installation
[](https://i.stack.imgur.com/gHuqm.gif)
I have not removed *CyonogenSetupWizard*, which can cause such an event.
The device show no notifications at all.
I need to find in settings how to enable the data transfer from the phone to my computer.
Final solution
--------------
Reflashing unstable ROM with unstable ROM is not a good idea.
I switched off from kyasu's ROM and official ROM (noise artifact).
I then switched to Temasek/arter97's ROM found [here](http://forum.xda-developers.com/galaxy-s4/i9506-develop/rom-temasek-s-unofficial-cyanogenmod-12-t3082164) because of its mature development, thorough documentation and solves the noise artifact bug in the official ROM. Smooth installation also.
Phone: Samsung Galaxy S4 gt-i9506
ROMs used: official ROM, *cm\_ks01lte-userdebug 6.0.1 MOB30D 56236a0be1*, Temasek's unofficial ROM where I did not manage to reproduce the problem in Temasek's ROM<issue_comment>username_1: Go to settings menu, about phone, down to build number, tap 7-8 times. Go back to developer options in the settings menu and down until you see device usb configuration and select mtp then you should be able to transfer between the devices.
Upvotes: 1 <issue_comment>username_2: I had the same problem a couple days ago. I felt like the only way to fix it is reinstalling cm. But I fortunately managed to make the notification bar work again. I was looking for some solution in the phone's settings, and when I went to "Users" I accidently switched to guest mode and back. Then my phone got frozen for a few mintues, then it locked itself and finaly the notifications appeared on the lock screen. Then I restarted my phone and since then everything's just fine. I hope if someone else still has this problem I could help him/her.
cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NJ-serranoltexx
Upvotes: 3 [selected_answer]<issue_comment>username_3: An answered question but I'd still like to weigh in. The only case I've seen where notification bar won't work (i.e. no notifications) is when you removed SetupWizard (in CM's case, CyanogenSetupWizard) after flashing. This will also lead to some nav keys unusable and a myriad of other weird bugs. Just put it back in, set the proper permissions, reboot, walk through the setup and things should be back to normal.
Honestly I don't know why CM made CyanogenSetupWizard compulsory since late April - things had been working without it before, now we have to walk through a wizard which does nothing useful.
Upvotes: 1 |