text:
Copy contacts to sdcard from android 2.3
how to copy my contacts from my sony ericsson wt19i android 2.3 to sdcard? I tried to do this by adb, but does not work. I do it like this:
adb devices
adb shell
su
mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard
adb pull /data/data/com.android.providers.contacts/databases/contacts2.db /mnt/sdcard/tmp/contacts2.db
an error appears:
adb: not found
what should I do?

Can you not export them from Contacts app?

Thanks to @Firelord for generously helping me out when I got out of my depth. The problem description and notes about the solutions have been made using his comments as reference.
Problem:
That is because after you've issued adb shell, you're in Android's system shell and cannot use adb pull any longer, as the client ADB binary you invoked exists on your development PC, not on the connected device itself. The device acts as a server with the development PC as the client. The client issues the commands and the server responds to them. The server itself cannot issue the command.
The ADB on-device itself can also act as the client, with 2 caveats:

ADB from device to same device needs ADB to be running in wireless and loopback mode.
The other device, supposedly the "server", must initially be connected via OTG to the ADB client (later client & server) device so that ADB can be restarted there in wireless mode.

TL;DR
If you're running adb from the platform-tools directory of the Android SDK install, try issuing ./adb pull instead of adb pull in case you are on Linux, and, I suspect, similar with Windows. ADB is probably not in your PATH variable. The terminal remembers the folder history 1 level down, and the local folder by default is not included in the PATH variable.
SOURCE: This question on StackOverflow.
Resolution:
What you should do after the chmod command is enter exit, followed by adb pull.... The exit command should drop you out of the system shell back to whatever terminal/prompt you were using adb in on your PC, from where you can safely use adb pull.
Alternative Resolution:
You could also use cp instead of adb pull after chmod to copy the database file. They have the same usage pattern, and cp is definitely available in the shell session.
Notes:

I have a niggling issue with the way in which you use adb pull to copy files from your /data/data to your SD card, which could easily be accomplished with a root explorer or cp in a shell session.
Ensure that you have issued adb root prior to this entire set of commands under Resolution: so the adb daemon runs as root and can access /data and its subdirectories.

PS:
From @Firelord's comment, adb root will only work if you have set the ro.secure property in your build.prop to 0 instead of 1, where 1 is usually the default with the exception of some debug-enabled custom ROMs. In that case, take the cp alternative.

I have personally faced this issue and avoided mixing up ADB and shell sessions from then on.

adb help is not an exception. You can use all the adb commands from the device itself. It works this way: normally, the Android device acts as a server and PC with adb as the client. The client issues directions using commands and server responds to them. ADB in device can also act as a client but with certain tweaks: 1) ADB should be running in wireless and loopback mode if you want to run adb commands on the same device from the same device, 2) the other device, supposedly a server, would need to be connected using OTG briefly so that adb daemon can be restarted there in wireless mode.

adb root would work if ro.secure is set to 0 which by default is often not the case. If the prop is set to 1, user would encounter the error. Consider mentioning a workaround for the problem if you intend to keep that adb root point in the answer.

@Firelord, check out the edit and the TL;DR


text:
Executing a script
I'm new to Android and trying to find the simplest way to run a 2 line script that deletes files from a specific directory.
I Googled the topic and created a file that I called test.sh which has 2 lines:
 #!/system/bin/sh
 delete Android/data/mydir/*.dmp

I copied this file to an Android device and managed to create a shortcut to this file. Now I want to execute this script whenever I click the shortcut but I'm unable to make it work!
I would appreciate any hints to get this going.
Thanks!

Is your device rooted? Does your device have busybox or toybox installed?
Is selinux enabled? If so you need to resolve these things, even after selinux may stop you so you will need to setenforce 0 and for that you need a build of busybox with selinux functions built in.

What do you mean by unable to make it work? Any error? Nothing happens? Have you done chmod 755 test.sh  after copying it to the phone?

You can use my answer for Home screen icon for terminal program? or is there a way to run *.sh file by just touching it in a file manager? to execute the script from a shortcut.  However, is your script working from a shell? If not, then you should mention that in the question. Unless configured otherwise, shell would default to / directory and there is no Android directory at first level of /.

I managed to get the script to work inside the terminal emulator.  I had the path wrong; once I fixed that it worked.  I still am unable to create a shortcut because the launcher on the Android device (not a phone but a set top box) does not permit creating one.  I think I am going to just install Tasker although I was hoping I can find a simpler solution.  Thanks all for your suggestions!

In your script you forgot # , and what is more the command to delete is not delete(as you wrote) but rm, along with at least one option:

-r for recursive
-f for force
-v for verbose

so try
For a single file
#!/system/bin/sh
rm /path/to/file/filename.extension

For a group of files @ location by extension with wildcard:
#!/system/bin/sh
rm /path/to/file/*.extension

A straight up clearing of a directory:
#!/system/bin/sh
rm /path/to/directory-containing-files/*

Alternate to clear that directory of files and directories as well, with verbose to see what's being deleted
#!/system/bin/sh
rm -frv /path/to/file/*

To delete the directory itself
#!/system/bin/sh
rm -fr /kill/that/pesky/directory

You must have root privileges  to modify anything in /system and/or /data folder.
The exception would be /data/local directory which you should be able to access/modify within as peon user.
If selinux is enforcing you will NOT be able to modify anything in /data with the exception of the previously stated exception even if su.
This with the exception of laying out the proper path to sh in your script is not really an android question.
Your normal practices in scripting on a Linux OS should mostly carry over as long as you use the correct path to sh.
You can create that script in regular sdcard storage space and execute by running
su
/sdcard/./yams.sh
I like yams. They're nummy.

If you get a permission error, denied etc., then
chmod 755 /path/to/script.sh

and again run as su
You can alternately run
su -c /sdcard/yams.sh

Thank you very much for the details... very helpful for a beginner! Followed all instructions but keep getting Permission denied when I try to run the script even though I did the chmod 755 and also trying against different subdirectories including /data/local!  I will keep at it!

You can use Script options
Has more privileges if you have a rooted phone
You can choose the script via the inbuilt file manager, and can choose various options, as seen
And yes there's no command as delete Use

rm -rf

instead as suggested above
Also if you are trying to delete the data created by an app i.e inside data/data/example.app/DataToDelete
You will need to have Superuser privileges or only that particular app can delete its own data.

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Otherwise, your answer becomes useless in case the link dies. For further hints, please see: How do I write a good answer.

@TamoghnaChowdhury  thanks for the heads up, am new here

See info about referencing. You don't appear to be the owner of that image. Whenever you use a work that helps answer a question, you must reference it and credit the author appropriately.

source: Stack Exchange

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

sort: votes


text:
How do I sever the connection between an account and my phone?
I have a Note 4, and recently I signed into a certain account so I could do something, nothing important, so I'd rather not say. Then, I removed it by going to  Settings> Accounts> (Accountname, or email or whatever) and I removed it from my device, so it doesn't show up there anymore, with sync, or anything. Gone.
But when I accessed my pictures from the Gallery, I now have a notification asking to sign into that account that I removed. I don't want anything to do with that account anymore, ever. Nothing at all. I can't figure out what still has my phone connected to that account, but whatever it is, I want it stopped.
I don't know if I have to sign back into that account, disable the syncing in Settings> Accounts> (Account name), or something.. which wouldn't make sense, because I removed it from the phone completely, before.. or what.
Anyway, I want to know how to sever whatever the connection is between my phone and that account, and what to do about it.

You could try using SD maid and clean up the corpses (trails of uninstalled account) and see if it helps. Let us know if it did, so that it can be made into an answer

Your account is not signed in currently, so anything is not syncing now

Thank you, beeshyams. So, I used SD maid, and so far, I'm not getting any sign in notifications. So far.

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


text:
Galaxy S Duos 2 - No OS installed currently
Well I started with CWM to get Cyanogenmod 12 but all I did was remove any OS present.Now no OS is currently installed, and I cannot install any ROM as any installation fails with error 7. I tried to fix it with many possible solutions, none of which worked.

deleting assert,
updating binary file for patch,
replacing set_metadata with set_perm.

Now what to do? It will be great to get the stock ROM back.

Try ODIN-flashing the stock ROM

You could try installing a factory firmware through ODIN. You can find instructions here.
For the latest firmware, you can look on SamMobile.

well at last that is what i m doing now.... :( nd luks like i cannot get a custom rom now.... tell me one more thing... cant i do flash a custom rom using ODIN..??

No you can't flash a rom using ODIN. The zip you download will have a factory image which contains all system files which ODIN flashes over your existing system. So if you an get a stock image somehow, it'll be easier to get your phone back up and running again.


text:
Some apps are not able to access internet when connected to Laptop's shared wifi on Ubuntu
In my office my mobile used to be connected to the office wifi. There I didn't face any internet problem, all apps work fine.
But in my home my mobile is connected to my Laptop's shared wifi and Laptop is running on Kubuntu 15.10. In this case some apps like Play Store, youtube, telegram, whatsapp and all browsers, etc. work well, but some apps do not work, sometimes partially work or otherwise show the message 'No internet connection'.
What's wrong with connection from my laptop to my mobile, and why are some apps working and some are not? How can I solve this?

Android apps can query android for the type involved: http://developer.android.com/reference/android/net/NetworkInfo.html#getType%28%29
Now as a wifi connection is a wifi connection, as long as an app is enabled for wifi, the app should work otherwise the app can detect and say there's no internet connection available if the app so chooses.
There could in theory be an issue or bug with using the laptop's shared wifi but if one app queries android and gets wifi connected then they all should.
You can try an app like 'wifi fixer' and see if it helps.
I don't think its possible for anyone to give a direct answer on how to fix it other than try this and this and this, etc.
That said, as a direct wifi connection worked in the past, get a wifi router or ap and it should be fixed. This is imo what you should do.


text:
Picture folder disappeared from gallery on Huawei Ascend G6
I have a Huawei Ascend G6, and my folder with more than 500 pictures just disappeared from my gallery. I regularly clean system with Clean Master. I did it a couple of times, downloaded DU Speed Booster and deleted it. I don't know what is the problem. Could someone help me?

What the problem is, is probably this:
Your clean master probably enlisted your 500 pics as worthy of cleaning, thus deleted them all in the process. Its just a thought, but its likely to happen.
I use ES Explorer to clean stuff on my phone, and I verify every single thing it plans to delete everytime I'm about to clean. You never know, it might include your wheat among the weeds!
Another possibility is what happens when the storage is almost full. Happened to me once, and witness a friend face same trouble. Storage was almost full, phone restarted, and everything personal info was gone, from pictures to videos to everything I put on. Perhaps one of those nightmares, but only happening to images.


text:
Installing CM13 Nightly as MultiRom in TWRP fails
I've downloaded cm-13.0-2015-1209-NIGHLY-flo.zip and tried to install it as MultiROM in TWRP 2015-06-30 (v2.8.7.0) on my Nexus 7 (2013 wifi):
Advanced → MultiROM → Add ROM → Zip File.
But installing fails:

What to I have to do to make the install succeed?

Nightly ROM s have unpredictable behaviour. Try with a stable ROM and edit your question if problem still remains

Try this workaround:
http://forum.xda-developers.com/showpost.php?p=63431628&postcount=50
"Delete all the lines after "ui_print("Verifying the updated system image...");" until "show_progress(0.020000, 10);". once you have done it save the file and copy it back into the location inside the rom zip file and flash it on your phone."
Worked for me.

Quoting from official Cyanogen site
Nightlies are not recommended unless you can handle issues arising out of it, since they are not tested

...We have the Nightlies, which are as volatile as a firmware can get. These releases keep coming at an interval of a day or two and if you do end up trying one of these, do not be alarmed if your device goes cuckoo on you. These ROMs are largely untested, and as advised by CyanogenMod, not meant for use for an average user. These releases, are meant to test untested waters that may or may not break your phone

Hence, you should attempt with a stable version, more so when you are trying to install  it on Multi ROM

This may be a good recommendation with Android OS related issues but being a nightly has nothing to do with failure in MultiROM in this particular case. CM13 at this moment doesn't support multirom installation without tweaks. This answer mentions the tweak: Installing CM13 Nightly as MultiRom in TWRP fails. On web, you can see related tweaks for other ROMs based on CM13 as well.

And there are no stable CM13 builds for that device, so far: https://download.cyanogenmod.org/?device=flo


text:
Root Samsung Galaxy Core i8262 manually
I tried almost every readymade app like Framaroot, Root Genius, etc. to root my Samsung Galaxy Core i8262 , but I didn't succeed.
I want to root it manually but did not have Linux laptop. I have a Windows 8 laptop. How to root it with that?

I read about " how to root android manually" but it has a portion where it need Linux to root it ... is there any way to root it with windows?

While I cannot answer your question, I can give a quick hint: you might wish to check with our rooting tag-wiki and rooting index for available generic methods. Good luck!

I already used many applications to root my phone but it didn't work.

I want to root it manually.

Before rooting your Galaxy Core GT-i8262, you need to know that CWM have bug to get caught in bootloop. But don't worry about that if your phone get caught in this situation. Here is solution  for all problems during rooting of your phone. So, here I prefer TWRP (Team Win Recovery Project) over CWM , which has no such problems.
Here, you need to flash a custom recovery before because, after rooting if you you reboot then your root access vanishes. It happens as stock recovery sets them back. It was happening with me. Such a waste of time in rooting your phone again. Then, I got this process for permanent root access.

Before you continue to the tutorial, you please prepare the following files:

Make sure your computer has installed SAMSUNG USB Driver and Odin307. If not, please download.
Download file TWRP Recovery, and save it on your computer.
Download flashable SuperSu zip file.

Steps to follow:
Step 1: Download both the above files in a specific folder on your computer. The Odin that you’ve just downloaded is an essential tool & is must for installing TWRP recovery on any Android device. We remind our users that this tool is an illegal way & is not officially released by Samsung. Even though it will not cause any damage to your device unless you follow the instructions properly.
Step 2: Enable mode USB Debugging on your android by going to the settings, click on the phone, click on the version 7x formation, then you will receive Developer options.
Step 3: Power off your Galaxy core completely. You need to boot your mobile into downloading mode now.
Step 4: For Galaxy core, downloading mode can be entered by pressing & holding Home button + Volume Down key + Power button simultaneously until you see a warning message.
Step 5: Leave all the three buttons as soon as it appears. And just press the Volume up button to land into downloading mode.
Step 6: Now you need to flash the TWRP recovery on your device. For that keeping the device in download mode, connect it to computer using the USB cable.
Step 7: Launch the Odin Multi Downloader v3.07 that you’ve downloaded earlier. If your device is connected properly, then you’ll see that an Added message has been appeared on the Odin window. Along with that you’ll see the ID:COM section has turned blue with a random com port number below it. If this doesn’t happen, then ensure that proper device drivers are installed on your computer. You can install them from the link mentioned above.

Step 8: Make sure that the Auto-Reboot and F.Reset Time options present on the Odin window are checked. Do not tick or untick anything else.

Step 9: On the Odin window, click on the PDA tab and browse to the twrp2.7_arubaslim.ODIN.tar recovery file which you have downloaded earlier & select it.

Step 10: After completing everything as mentioned above, simply press the Start button located on the Odin window to execute the TWRP flashing process. Your phone will automatically reboot itself while going through the process. It is recommended not to touch or remove the USB cable until the process completes.

Step 11: Be patient until the TWRP flashing process completes. It will hardly take 2 minutes to complete. As soon as it completes, you’ll see the ID:COM section on the Odin window is turned green with the message Pass below it. Now you can safely remove the USB cable.

Note: Unfortunately due to some reason phone if the process fails or if Odin gets stuck or in case your device gets boot loops, then don’t panic. Just close the Odin window, remove and re-insert the battery from your device. Again go into downloading mode and repeat the whole procedure as given above.
Step 12: As all the flashing processes are completed now, let’s see whether the TWRP recovery is properly installed or not. For that, firstly switch off your Galaxy Core.
Step 13: Now boot into recovery mode. For Galaxy Core, recovery mode can be entered by pressing & holding Volume Up key + Home button (Middle button) + Power button simultaneously until you land into recovery mode. You’ll notice that TWRP Custom recovery is properly installed on your device.
Step 13: Now select ‘Wipe data/factory reset’ option followed by ‘Wipe Cache partition’ option for wiping out the data & caches present onto your phone memory. You can now reboot your phone by selecting ‘reboot system now’ option from the recovery mode itself.
Step 14: Now, copy SuperSu zip to your sdcard and put it in your phone.
Step 15: Open recovery mode again as stated above. Click Install, then choose your SuperSu zip file and flash it.
Step 16: Reboot to system and search for SuperSu app. If you have it, then you have full root access.

Don't forget to enjoy it by utilising ROOT access.

Disclaimer: To build this answer I used my experience ( Yup! I have same device ) and two main sources as follows: first and second.


text:
Android Device Stolen, Android Device Manager not set up
My android device has been stolen (Xperia L) and I had not set up Android Device Manager. How do I remove the google access and play store; uninstall apps; protect SD card and personal data; sign out from shopping apps and block the SIM access.
If there is a way to control my phone remotely without having any prior access to the device or Android Device Manager enabled, please let me know.

Even phones where I never installed Android Device Manager are listed for me on google.com/android/devicemanager so I think as long as you are signed in to the Google services you'd be able to use the Device Manager.

But the mobiole phone is switched off, so it is just showing my phone and keeps saying "Contacting Your Phone" and after few minutes it shows "Location Unavailable". If it is another way then please help. Thanks

It's not impossible to control a phone that is turned off or not connected to the internet I'm afraid. What you could do is get the IMEI blocked, you can find your phones IMEI on google.com/settings/dashboard (unfold the arrow next to "Android"). Contact your service provider and give the IMEI to them. This won't prevent the thief from using your phone completely but they won't be able to use your phones cellular network.

If the remote phone is off, or if it does not have network access, you won't be able to control it remotely. If the SIM card is not removed, you could control it via SMS if you set up an app to do certain security functions (with apps like AVG Antivirus). However, remote control from SMS is limited and you need to set it up in advance.
If you did not set up such security measures, there is no way to remotely access your device without network access. Since Android Device Manager doesn't work, we can conclude that the phone has no network access, or it is off.
At this point, although you cannot control your device remotely, you might be able to find out it's last reported location from Google's Location Timeline. This would be able to help you locate it if you did not turn off location history on your device.
If you do locate your device, please do not attempt to confront any suspect by yourself.
From Lookout Mobile Security:

If your cell phone is lost or stolen and you don’t have a mobile security app, the first thing to do is contact your network provider, who will be able to block your phone in order to stop anyone else from using it.
This is particularly important if you have a pay monthly contract, as you will be liable for any calls made (or expensive apps downloaded) before you report your phone stolen.
  Most of the major US network providers allow you to suspend your service and request a new SIM online or by calling their customer service department.
If your cell phone has been stolen it's also important to notify the police, as insurance providers will usually need a crime reference number in order to process any claims.
If you use your smartphone to shop or bank, you may also need a police report to dispute any fraudulent charges made on your debit or credit card accounts using the stolen device.
Make a report at your local station, being sure to give them your device's International Mobile Equipment Identity (IMEI) number, which your network should be able to provide you with. This could help the police get your phone back to you if it were to be recovered.


text:
How to install superuser HD2 rom on SD card
Usually I just install superuser.zip through recovery. But now nothing happens. I tried using TWRP both from NAND and from SD (latest version with F2FS support).
I try to root this rom: SLIMLP LP5.1.1 based on CM12.1 for HTC HD2.
Looks like the recovery wants to install superuser on NAND always.
I can install superuser application like apk, but root did not work this way. But with adb shell I can get root access. And from screenshots I see in thread people have root. I want to use superuser with this ROM. How do I go about doing it?

UPD: I tried mount two sd_ext partitions before installing superuser, but no changes at all. Also tried change buildin su binary with superuser su binary in rom archive and flash. (permissions are correct) Still no root. Tried install supersu with recovery too.
Maybe someone can ask dev in xda thread about rooting, tried with different vpns and proxy, several e-mail but xda think I'm a spammer. Also wrote support about problem with registration, no reply.

Please specify device and Android version in the question itself, since this may be a device specific issue.

Also, the ROM is probably already rooted. In CM based ROMs, there is a built-in Super User privileges manager, access it through either Developer Options or Superuser settings under Settings. It is not recommended to flash SuperUser on a pre-rooted device, because it leads to a whole host of problems.

It was easier then I thought. I just need activate Developers options and under Developer section activate root.
Video: https://www.youtube.com/watch?v=Knm1kKVkJd8


text:
Black screen with system information
I have Prestigio Multipad WIZE 3047 3G. On Tuesday evening something went wrong and I got black screen with some system checks (see picture). Tablet warmed very fast and didn't respond to pressing power button. Pressing reset button caused rebooting that fixed problem.
What could it be and how prevent such problem?
Android 4.4.2 (manufactor's OS version w/o root, JB or something else)
Click image to enlarge

That screen reminds me of hardware tests option available under some stock Recoveries.

Something caused a system crash and the tablet rebooted to try and selftest, similar to what happens when windows "Blue Screens".
Without the logs which we don't have now we can't determine why it crashed or how to prevent it. It could be an unreliable memory region, power delivery fault or just simply a bad bit of code.
If it doesnt happen again then don't worry, not a huge deal.


text:
how to get back photo gallery pictures after factory resetting LG phone?
How can you get back erased photo gallery pictures after factory resetting (by Setup Wizard) LG phone ?

If you have enabled "auto-backup" in Google Photos you can readily restore it from there.
If not you may try to recover photos that were on your memory card using recovery software (undelete/unerase) from your computer.


text:
Nexus 7 2013 WiFi (flo) freezes and/or bootloops when booting TWRP
I unlocked my Nexus 7 2013 WiFi (flo)'s bootloader and flashed the latest TWRP (3.5.1_9-0 at the time of writing), but now it freezes on the boot/splash screen and reboots after waiting. I can use adb shell to access it, in there I see errors like this repeated over and over:
<3>[  305.099060] EXT4-fs (mmcblk0p30): VFS: Can't find ext4 filesystem
<5>[  305.158416] type=1400 audit(1620032012.811:24): avc:  denied  { read } for  pid=172 co
<5>[  305.158416] type=1400 audit(1620032012.811:24): avc:  denied  { read } for  pid=172 comm="recovery" scontext=u:r:recovery:s0 tcontext=u:r:recovery:s0 tclass=netlink_kobject_uevent_socket permissive=1

What might I do to get TWRP working?

I want to preface this by saying that the following is what worked for me. I can't guarantee it will work for you, but I wanted to document it here for the future in case I need it again or someone else finds it useful. I take no responsibility the possibility of this messing up your device even worse or not doing anything at all. I don't really understand why this worked for me.

First of all, reboot the device so that you're freshly in the TWRP recovery when you start executing the commands. The device seems to randomly reboot when in this state and it wouldn't be nice if that happened while re-creating the partition, so give yourself as much time as possible.
You will need adb on your PC to follow these steps. Explaining how to acquire it is out of scope for this guide, but I'm sure you can find instructions for your operating system online.
Note that you should not include the $ and # when running the commands!
Once TWRP's splash screen appears on the device, quickly run this command on your PC:
$ adb shell

Make sure you start the adb server with the right permissions before you try this as starting it up takes some time.
Following that, run this (in the adb shell):
# mke2fs /dev/block/mmcblk0p30

This formats the userdata partition. Let this finish. For me, the device rebooted right after, but you may need to do it manually.
After the reboot, you should be booting back into Android assuming you have a working Android ROM on the device. If it seems to be stuck, wait a few minutes. If it still seems to be stuck, try giving the power button a short press. This worked for me for some reason. After this, set up the device, go into settings, enable USB debugging, and run this on your PC:
$ adb reboot bootloader

After this, flash TWRP 2.8.1.0 (Not sure whether this is necessary):
$ sudo fastboot flash recovery twrp-2.8.1.0-flo.img

Boot into it and observe it boot Android instead for some reason.
$ sudo fastboot reboot recovery

Reboot back into the "bootloader" (fastboot):
$ adb reboot bootloader

Now flash the latest TWRP again.
$ sudo fastboot flash recovery twrp-3.5.2_9-0-flo.img

And it should work. However, in my case, I have to re-flash TWRP after every boot of Android.
I'm not sure whether it is necessary to flash the older TWRP version for this to work, but I thought I'd include it just in case.

Credit goes to this forum post for giving me a vague outline on what to do: https://forum.xda-developers.com/t/q-flashed-twrp-and-now-cant-find-ext4-filesystem.3096502/ (archived version: https://web.archive.org/web/20210503093052/https://forum.xda-developers.com/t/q-flashed-twrp-and-now-cant-find-ext4-filesystem.3096502/)

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


text:
Why I cannot delete contacts from my Samsung Phone
Recently I realized that I have a hard time adding contacts to my samsung phone.
So I want to delete contacts. I remove google account with contacts. Turns out the contacts are still there.
4400 of them
Even though contacts in my google account is only 2200.
So I want to delete all contacts in my android and then resync it with google.
I can't delete contacts at all.
Not even if I delete the whole thing. Not if I do it one by one.

This is the screenshot. The progress bar just stay there.
Do nothing like an idiot.
I am thinking or factory resetting but that's probably overkill.
I've heard many people have same problems.
What's the problem.
I have no idea what can possibly be wrong. Where are all those contacts stored anyway? SIM? Samsung account? Google account, which I have removed?
Where? Why I have a hard time to add or delete contacts?

If a contact is stored on your SIM card can be determined easily: SIM card contacts only how two fields: one for the name, the other for the phone number. If a contact has more data it can not be a SIM card contact. You can also check that easily by removing the SIM card and rebooting the device.
Regular contacts are stored in one or more databases that belong to the device's contacts provider app com.android.providers.contacts. Therefore you find the contact data in the directory /data/data/com.android.providers.contacts (only accessible with root permissions).
You you have removed all online accounts your device can sync accounts to the account data is only available locally. For deleting every contact you may simply clear the app data of the contact provider com.android.providers.contacts. It is a system app therefore make sure to enable the "Show system apps" option in Android settings to see this app.

let me check first. I don't root my computer. So there is an app called contact provider. This is different than the default contact app and the contact app from google right?

@user4951 Every Android phone has one "app" (running invisible in background) that is dedicated to store the contact data of all contacts no matter if the contacts are synced e.g. from Google or are just local contacts. Think of it as a special database program that don't have an own UI. It provides contact access to other apps that my sync contacts or let the user show/edit contacts in an UI. This is the contacts provider app. You don't need root anywhere to clear app data of an app. Just use Android settings -> Apps.

There is no com.android.providers.contacts however there is an app called com.android.providers.partnerbookmarks also there is an app called contacts storage

Cleaning contacts storage app seems to delete all contact and hence, answer this question. So this it. I'll ask follow up questions latter

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


text:
Google Drive stuck uploading files
Three days ago I was uploading 6 files to a Google Drive shared folder. It's not the first time I do that, but surely this time was different because not only the files weren't uploaded but also since then I have this notification

To fix it, I tried to

Click cancel.
Restart the phone.
Force stop the app in settings.

yet none of these options worked.

Try clearing cache of Google drive app (enable show system apps in app list from settings)

In order to solve it, I've uninstalled the app and installed it back again. That solved the problem

No need to reinstall it, just clear data from app settings.


text:
Microsoft "web safe" fonts on Android?
I was testing various Android web browsers (but I think the stock one is fine) and noticed that the MS "web safe" fonts (Trebuchet, Verdana, Tahoma and the like) were displayed with substitute fonts. It took me quite some time to notice, which means that it is a minor annoyance.
Out of curiosity, I was wondering if there was an easy way (I'm not talking about rooting here) to install these fonts. A quick Google search did not help me.
Anyone?

There's no easy way to do this. Android ships with two fonts: Droid Sans and Droid Serif. They are used for, well, everything. In Ice Cream Sandwich, it also ships with Roboto, a grotesque font similar to Helvetica and Din.
This will become less and less of an issue in the future as design-conscious web developers are using @font-face and serving up the fonts they use.
Also, keep in mind, those fonts you name aren't free. They're "web safe" because they ship with Windows. They are commercial fonts owned by Microsoft.

Yes, these fonts are free. Microsoft has released them as freeware years ago even though they don't distribute them any more.

@Erik The versions you're referring are free, but that doesn't mean they're not commercial fonts. Ascender/Fonts.com sells them, for example.

@Fitoschido So the fonts are free but there are other versions of them that are not.

You might be able to change fonts in the browser depending on your phone, whether it is rooted, and whether the phone supports changing the Core Fonts. If it does support changing the Core Fonts you will need to apply the fonts wrapped as an .apk (there are lots available) or do it manually (but I suspect that needs root).
There may be other explanations - but in Best font for Captivate? is one which though poorly written is a pretty good explanation.

I don't think fonts are stored as application APKs ...


text:
How to upgrade to a new micro SD card?
I have a 16 GB SD card and would like to upgrade to a larger one
How do I do so without losing any data?
Most of my search results for this just end up advertising a 3rd party program
There are just so many n I don't feel like going through each of them until one works
I'd like to not mess with the SD card in my phone until I have to

The answer to this question would vary greatly based on whether your current microSD card is used as Adopted (Internal) storage or Removeable (External) storage... If it's removeable storage, it is literally just remove the old card, insert the new card and format it as removeable, then using a PC copy the contents of the old card to the new card and insert it into the phone and you're done. If it's adopted storage, it's a bit more difficult and in depth.

Related: How to move 7GB ext4 partition on external SD card to 30GB partition on another SD card?

I'm quoting someone who gave the correct answer as a comment
I had already done this since I was trying to figure it out on my own as well
But they worded it better than I could have

If it's removeable storage, it is literally just remove the old card,
insert the new card and format it as removeable, then using a PC copy
the contents of the old card to the new card and insert it into the
phone and you're done

2020 approved


text:
Download manager does not exist
I've bought Chinese Meizu m2 mini and there is no Download Manager app at all. I can download from Web by ES explorer's downloader facility, but I can't do anything with Google Play. My firmware is 4.5.3.2A, so if someone can help me - I'll be really appreciate.

Are you certain that you haven't mistakenly disabled it sometime ago? Confirm us whether it is present in Settings -> All apps or under Disabled apps.

There are no presented "Download Manager" in all apps. There is a question - I don't even have one on my phone.

Google Play (app) doesn't use arbitrary download manager, unless you're talking about Google Play web. Also, in most phones (at least on Nexus with stock Android), "download manager" is not displayed on home screen. Anyway, I think the problem is something related to Google Play connection, not particularly about download manager.


text:
How to lock screen while playing games?
I am wondering is there any app or a robust way of locking screen (front keys as well) while playing games in android phone. Is there any common app for locking/disabling the keys/touch when we play videos, youtube, playing games or reading ebook etc.
The phone should go in lock mode as if by pressing lock button on side panel, and pressing it should prompt us to unlock the device. My LG L90 D410 has this built-in feature for playing local videos but not for other apps, games and youtube videos.

What do you mean locking screen? Are you referring to locking the screen the way it happens when power button is pressed once, which puts the device to sleep and turns off the display? Or do you want to freeze the functioning of hardware buttons when you're playing a video or reading a book so that they don't interfere in your content consumption? If it is the former case (and the first answer addresses it), then I'm curious why do you need such functionality? If it's the latter case, then the words needs to be refined. Also, in the latter case, why do you want to freeze touch input?

@Firelord, it might be that he wants drastic measures to prevent unauthorized usage of his device, e.g. by his 8-year old kid spending 15 hours a day  with videos and games (no offense intended, just an example)

ha, my kid is not of 8 years old, merely approaching 2. Yea because of his mobile usage, i asked such question here. When he plays some game,  for example pressing home key accidentally will take him right out of current game to home screen and its very annoying. So we just want to stop this no-sense.

Okay, here's how to do it using Tasker:

Install Tasker
Create a new Task called lock screen, add an action to it as via

Display → System Lock

Create a profile and add as context to it all games in the apps list it provides, or as you need it.
Link the lock screen task to this profile.

Your device should lock up now if you try to open any marked app.
Note: Tasker is a paid app. Also, the trigger system lock functionality needs you to allow Tasker as a device administrator.
Edit:
I figured out how to do this using MacroDroid, which is free for a limited feature set.

Install MacroDroid and open it.
Tap on create new macro
Select Application launched/closed from the trigger list.
Select application launched from the popup
Choose the required apps from the list.
Choose the action as screen on/off.
Choose screen off from the popup
Press the tick button.
On the constraints page, leave it at none and press the tick button.
Enter a relevant name for the macro and press OK in the resulting popup.

This worked for me. Again, this needs the app to be a device administrator, which will be indicated to you as you select the screen off action, for similar reasons as above.

oh dear! its paid; can you not find any useful free app to solve my query? I'm happy with ads.

Sorry. There is an app called macrodroid, but since I have only used Tasker I can only help you with it. Let me check

Not sure I understand what you're getting at, but have you considered "Screen pinning"? It's a built-in feature in android 5.0 and up. When this setting is turned on you can keep the current screen in view until you unpin it by holding Back and Overview buttons at the same time. This feature can be accessed at:
Setting -> Security -> Screen pinning

My current device is Redmi Note 4 (SD) and it doesn't have any Screen Pinning option :(


text:
Why has my phone locked me out?
I would add photos of what it says but it won't let me.
It's telling me that I have illegal content on my phone yet I don't to my knowledge, and I can leave the screen that it is locked on to check.
I just think it a virus but it will not let me check for viruses.
I have tried restarting it and removing the battery as that's all that it is letting me do.

Give us the screenshots? Which Android version are you using? Is the Android rooted?

Sounds like Ransomware to me. Afraid you've got to factory-reset to get rid of that. Installed any thing from "other sources" lately? Or clicked some "urgent banners" (fake WhatsApp update, "you've-got-a-virus-click-here-to-fix" stuff, or the like)?


text:
How to download .apk on PC directly?
I have one question, is it possible to download .apk file from Google Play directly to the PC (without any ADB or device emulators?)
I have tried this one -> Evozi App Downloader but I can't download the app that I need. (I want to download it for my research, but I can't do it ), Also I have read about Chrome/FF extension which helps to download apps, but i need to insert my credentials to this extension (GMail for account + device id), and I don't think that is a good idea for safety.
So does anyone have any other ideas about my question?


text:
How to play music file on external SD card with deep path
I have a Samsung Note 4, with android 5.1.1. And I have an on-line music player installed on it. The player can download music from the Internet, and the files are stored in the external SD card. But it has a deep path, such as extSDCard/Android/data/com.xxx.xxx/music/... For some reason, I want to use the stock music player to play these files. But it just can't find them.
I tried copy some files from the deep path to a folder called "music" in the root of my SD card, then the stock player can find it, but I can't change the download path of my on-line music player and I don't want to do a copy or move every time when I download music.
So, any good suggestions to make the stock music player find the files?

Because exSDCard/android/data/ contains .nomedia file. Android's mediaserver respects that and doesn't scan the directory containing that file. Hence, your music player or a picture viewer (both depends upon mediaserver) won't get anything from that directory to show you. Should you remove that file, unnecessary media from other apps' directory will also get scanned and show up.

But even after deleting the .nomedia file under Android/data folder, it still can't find the files.

Also, even if not for the .nomedia file, the extSDcard/Android/data directory is considered a system directory, and will not be evaluated by stock apps except for the file manager and those apps which concern themselves with it directly. Have you considered using an alternative music player app such as MX Player or JetAudio?

Umm, in some situations, the stock music player is the only choice, such as under voice control or using the remote control buttons on the headphones, it can only start the stock music player to play music. ( If there is method to make other players to start, please tell me:). )

BTW, the JetAudio has the same problem with the stock music player!!!

Deleted my answer, suggesting other players since you are looking only for stock to work. Two suggestions. One, with ES explorer or any other explorer, you can create a shortcut on your desktop pointing to the "deep folder". Second option is that you can automate quite simply and schedule every day/ any other frequency, back up to the other folder which can be seen by stock player. If that option appeals, I can suggest how to.

I think (!) the answer lies in the length of the path to the file(s).
I'm experiencing similar issues, and I solved it for one file by simply shortening the filename.


text:
Nexus 6 has Still not Received Android Marshmallow November Update
Whenever Google released Android Marshmallow, I sideloaded it on to my Nexus 6 using adb sideload. After the release of Android Marshmallow, it took Google a few days before they released the OTA update packs for the Nexus 6, but as soon as they did, I jumped on the opportunity to upgrade to build MRA58K.
Since then, Google has released the November update for Marshmallow (there are two builds listed here for the November update, MRA58N and MRA58R) but I have still not received the OTA for it by waiting.
Although I was patient, I'm somewhat concerned now that we are gearing up for the release of the December patches while I still haven't received the November patches.
Should I be concerned about this, or is this normal? I found a nice list here of all the new builds added with the November update, and I'm unsure of whether I should sideload them or just wait in hopes of receiving the update in the standard way.
I also sideloaded the initial OTA for Marshmallow on my dad's Nexus 6, and he has also not received the update.

I usually get the updates within about a week of release on my Nexus 5. If you are unlocked and just one update behind, you might want to sideload it anyway. It should not make too much of a difference.

@AJDFHLOef That's what I did to get up to date. In the final days of Lollipop I was receiving OTAs within a week a well.


text:
how can I mount a ab backup file from windows? And would I be able to point an undelete program on it?
I see this Does rooting erase anything?  about making an ab backup file.
how can I mount an ab backup file from windows? And would I be able to run an undelete program on it or on the image?
I see this question How do I open a .ab file on my computer  but it doesn't answer what i'm asking because he is asking and was understood to be asking specifically about some firefox tabs.

"mounting" is a linux thing. only block drives can mounted (or disk image files of drives)

Android backup files created via adb backup are no images, they are more comparable to ZIP files. Only existing files are included into the backup file. Deleted files can not be included in such an Android backup.
Therefore you will never be able to run an undelete program on an adb backup file.
The only backup files that would make sense to use an undelete program on are NANDroid backup files as those backups files contain one or more whole partition(s).

TWRP create tar backup of /data partition, not an image backup. That needs to be done manually using dd or adb pull.

@IrfanLatif Thanks for pointing that out. I have corrected my answer.

OK an ab file isn't an image, it's a compressed file, like a zip file. How do you open an ab file?  7-zip can't recognise it

@barlop there you go: https://android.stackexchange.com/q/28481/96277


text:
How to execute commands, after exiting ADB shell?
I'm coding a script to automate an application configuration export process.
adb shell
...
<open app menu>
<open app settings>
<save app backup>
...
exit

The problem is: after saving the backup I want to pull the file to my computer, using this:
adb pull /storage/emulated/0/Backups/ ~/Documents/phone

Although, I can't figure out how to execute this command, after exiting adb shell. It seems like commands after exit are ignored:
adb shell
...
<open app menu>
<open app settings>
<save app backup>
...
exit
adb pull /storage/emulated/0/Backups/ ~/Documents/phone

Maybe, this is an issue I should addres to the "Unix & Linux" community, but I decided to try here first.

Instead of writing the backup to file(s) write them to stdout and execute the command using adb exec-out ... > localfile. Then the file will be executed on the phone and the output will be written to your PC disk.

works fine to me.. try a second terminal

Write your script a little different:
#!/bin/bash
adb shell <<EOF
...
<open app menu>
<open app settings>
<save app backup>
...

EOF

adb pull /storage/emulated/0/Backups/ ~/Documents/phone

All between <<EOF and the EOF standing separately at the start of its own line is run in adb shell, all outside is run on your local machine. Note: no exit needed.

The syntax used is an "heredoc". I strongly recommend reading on https://stackoverflow.com/questions/2953081/how-can-i-write-a-heredoc-to-a-file-in-bash-script. O.P. didn't post the real contents of the script, which may or may not contain variable names supposed to be used in the adb shell, or outside, and that question there contains information about the syntax and other things to note.

Good point, yes – I didn't get on the name. However, I use HEREDOC a lot, and just verified it again now: other than the top answer there suggests, variables are interpreted inside HEREDOC (tried the given example, like foo=FOOBAR\ncat <<EOF\necho this is ${foo}\nEOF, and it printed "This is FOOBAR"). And yes, as in the example, I use Bash; worked with cat as well as with adb shell. Never blindly believe without verification, even answers upvoted like that one ;) What however does NOT work: setting the var inside the HEREDOC will have no effect of "afterwards".


text:
Is it possible to install Docker using Termux?
I'm just tinkering with my Android tablet and was wondering
if I can get Docker running on it.
I've tried dkg install docker and also apt install docker both gave me
unable to locate package Docker
I probably need to add Docker's repo into list of repositories.
Have you ever done it ?

@Robert  that's for running Termux inside Docker container. I'm trying to install Docker engine my Android tablet through Termux terminal.

You can if your device is rooted and you build the kernel with required configurations including Linux namespaces, cgroups and capabilities. But phones don't have enough hardware resources. Also you cannot run Termux inside Docker. Termux isn't an OS, it's just an Android app.

@IrfanLatif what hardware resources would a phone not have? It's not like it uses virtualization. Docker runs fine on cheap servers with 512MB RAM, and even sub-$100 Android phones have that.

@lights0123 it depends on what you want to run in Docker. A simple commandline program or an app definitely doesn't require much resources. But Android apps aren't designed to run in Docker. What I understand is that OP wants to run a Linux environment in Docker which surely won't run on a 512MB Android phone which is always running 100+ native daemons and Java apps. Personally, without using Docker, I've been running multiple Linux distros in containerized environment on my phone with customized kernel, even compiling programs. But in general phones aren't designed to be used in this way.

Docker is not virtualization, I already mentioned in my first comment. It uses LXC, mainly based on Linux kernel's namespaces, cgroups and capabilities. Docker just simplifies the use of LXCs. But you don't necessarily need Docker to make use of them. There are abundant tools available (like setpriv, capsh, firejail and so on) which you can use directly from commandline to containerize processes. And they work perfectly. But again, you cannot run Android apps this way. In fact Android apps are already containerized in the same sandboxes when they are forked by zygote.

March 2021: Possible with root & compiled kernel
From termux-root Issue #60 it appears that it is possible to use Docker without QEMU, but requires root & a custom kernel.
Details can be found in this gist
No, not possible
From: https://www.reddit.com/r/termux/comments/av6z2s/how_to_install_docker_on_termux/
contains a reply from a Termux dev:

This is not possible.
Docker requires features that are not available in typical kernel installed with Android OS. This is why docker is not packaged for Termux and likely never be - 99% of devices (even if rooted) won't be able to run it.

with the additional comment.

Termux does not emulate Linux. It just terminal application with own tools added to PATH.

in my case (htc u11) it was possible by running (as @Nuninoo said)
pkg install root-repo
pkg install docker

and if docker-compose is also needed it can be loaded via python
pkg install python3
pip3 install --upgrade pip
pip3 install docker-compose

(in my case that wont work since i have no rust-compiler installed (and i dont think there is one currently for aarch64-linux-android)

I installed Docker on Termux. It was in the root -repo.

pkg install root -repo
apt install docker

I don't know if it works with every Android device. Mine is a Lenovo tablet TB-7304F.

Yes, possible

But indirectly through emulating the kernel with qemu.
We can use qemu to create an emulated kernel, as well as an emulated architecture (x86_64), on top of which we can run Docker and most modern containers and images (albeit slower).
You can find some instructions to do just this here.


text:
tun.ko for Samsung Intercept/Stock Froyo
I have a Samsung Intercept, running the VM stock image of Froyo. I'm trying to get OpenVpn running on it. The phone is rooted, and I have OpenVpn and the gui from the marketplace running on it, and running openvpn from the command line shows its connecting up, authenticating, but there IS no tun.ko. The several I've found on the net that claim to work on an Intercept but don't.. When trying to insmod all of these I get an error indicating kernel module was built for an "ARMv7" vs "ARMv6".. Anyone have an tun.ko for an Intercept OR alternatively a link to a howto on building Android kernels/kernel modules on Linux? I'm quite familiar with how to do that on Linux, but clueless on doing a crossplatform build on Linux..
Thanks
Dave

CyanogenMod 6 is Froyo, and ships with OpenVPN support for ARMv6 phones, such as my HTC Magic.
If nothing else you can unpack the update.zip they supply, find the tun.ko driver, and push it to your phone via adb.

Thanks for the tip! I downloaded the CyanogenMod 6 package (update-cm-6.10 DS-signed.zip) that was offered for the HTC Magic. Unpacked and searched the whole tree and found no tun.ko anywhere. The only /system/lib/modules ko there was a "wlan.ko" which I'm sure is not what I'm looking for.. Any other ideas?? This is royally kicking my butt.. Bought the phone/VM service to give me an easy way to access several networks/servers I admin via OpenVPN w/o looking for a McD/Starbucks wifi and pulling out the laptop... Any other ideas??

In doing some further deep googling, I found what I thought might be what I was looking for, an ARM6/FroyoStock tun.ko... Quickly downloaded it, and was instantly disappointed, an insmod shows the following:

[47538.032379] tun: version magic '2.6.32.9 preempt mod_unload ARMv6 ' should be'2.6.32.9 mod_unload ARMv6 '

Hmm. It looks like the kernel compiled with your phone is not set up to be compiled with PREEMPT. If you can figure out where that file came from, you might be able to find the source and recompile it with the right flags.

Maybe try /system/lib/modules/2.6.35.9-cyanogenmod/kernel/net/ipv4/tunnel4.ko?

Just did that very thing.. copied it into /system/lib/modules/ and insmodded it... Gets  tun: version magic '2.6.35.9-cyanogenmod preempt mod_unload ARMv6 ' should be '2.6.32.9 mod_unload ARMv6 '

I downloaded the Froyo source for the Intercept from Samsung. Have been trying to figure out how to cross-compile that #$@%@#@#$ tun.ko myself... Do you know of any good tutorials on cross-compiling Android on Linux??? I'm about at my wits end..

You might want to take a look at this website: Tun.ko Repository
They got a long database of tun.ko for android phones. If you can see your phone model, kernel and build number on the list, Just download their app which lets you load the module from their database to your phone. After that you can then use a vpn for your android.


text:
Does Froyo fix Samsung Galaxy S I9000's GPS problem?
There have been reports that Samsung Galaxy S has problems with its GPS that render the GPS almost unusable.  Does the Android 2.2 update fix that?

The 2.1.1 update changed my unusable GPS to acceptable GPS. I don't always get a fix but once I do it works pretty OK.

See also: http://android.stackexchange.com/questions/6981/how-can-i-fix-the-gps-on-my-samsung-galaxy-s

Personally, I didn't find anything wrong with the GPS on mine (AT&T Captivate). You didn't say which version of the Galaxy you have (Captivate, Fascinate, etc.), but I know that before Froyo even, AT&T did push a separate update to their customers which supposedly was to fix the GPS (I don't know if it did though, since as I said I wasn't having issues before the update).

Edit: Check out my guide on how to improve Galaxy S GPS performance.
With GPS on the Galaxy S, the answer is always "maybe".  New code works for some people, changing settings works for some people, and sometimes nothing works.

Guides to fix the GPS issues with Captivate and Vibrant have just been posted.
http://androidcommunity.com/samsung-posts-gps-fix-guide-for-captivate-and-vibrant-20101130/

The latest update on the Samsung Vibrant (JI6) fixed GPS issues for 2.1. A similar update has been pushed to all the variants, as far as I know. As you can tell from the other responses, GPS issues aren't universal and even for those having trouble it wasn't always completely broken. It is safe to say it is fixed now, though -- and I see no reason to think it would be broken again in 2.2.

It's definitely not safe to say it's fixed.  I've heard more people say that JI2 / JI6 fixed GPS than broke it, but for the majority of us there's been no change.

Captivate received a software update a month or so ago(I think it was later September or early October 2010) that fixed most GPS problems.
I still have some errors, but the major problem I had was that cellular assisted was not enabled. This is a must for the samsung captivate.

Well I also have problems GPS lock issue on my Galaxy 5 i5500, hope this can fix your phone. I got tips to fix this issue.
Remember to write down the default setting before change the GPS setting below, in case you want to go back.
Make sure GPS has been activated.

Press *#*#1472365#*#*. This will
bring to GPS setting.
Settings -> Parameter Settings ->
Address -> Server Type: 1x MPC
Settings -> Parameter Settings ->
Position mode: option3
Settings -> Fix Request Settings ->
Session Operation: Standalone
Settings -> Fix Request Settings ->
Server Option: Local
gpsOne XTRA -> Xtra Enable: Enable

I can't confirm any GPS problems with my Galaxy S I9000 so far with 2.1. Unfortunately Froyo is not yet available for that device.

As an update, the official Froyo release started rolling out to unbranded Galaxy S devices in the UK on the 4th of November. Carrier branded devices (and the rest of the world) are expected to be released over the next few weeks.

Yes, now i am on froyo (in germany the rollout startet one day later). And i also had no gps issues on 2.2 so far.

There was definitely a problem with the GPS on my Samsung Captivate I purchased from AT&T a week after it launched, but I wouldn't classify it as unusable.  It would take several minutes sometimes to first fix even when outdoors, but it would stay fixed as long as nothing obstructed it, such as my car ceiling.  If it had a fix recently, it would be quicker at getting a fix as well.  I used GPS Status to keep the GPS Almanac up to date which helped a bit, and applied several fixes people had suggested with minor improvements.  Even official updates from Samsung had little improvement.  I finally decided to replace my ROM with a third party and my GPS was greatly improved unlike anything Samsung had provided before.  Generally, any third-party ROM using the JK4 modem like Paragon

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


text:
Is there a way to color code events in de default Calender application
I am using the (I think default) Calender application on my Samsung Galaxy S phone.
It shows blue blocks for my events in the 7 day view.
Is there a way to change this blue color ? So that, e.g. I can mark private events in green and appointments with customers in red ?
Or is there a way to show some text in the blocks ?
Or it not possible with the default calender .. do you know of another one which does allow this ?
Thanks.

Yes you can, you will need to create a different "calendar" (probably "tag" would be a better name, but that's Google's terms for it).
Creating a Calendar (do this from the Desktop, I didn't found a way to do it from Android's Calendar app; do anyone know?):

Go to http://www.google.com/calendar.
Look for the "My calendars" box on the left, click on "Add"
Fill in the information, and click Create Calendar.
You can change the color later from "My calendars" box, by clicking on the triangular button.

Adding Events to Calendar (can be done from Android):

On the "Create New Event" view, choose the calendar you've just made from "Calendar" combobox.

@Lie Ryan: +1 for taking the time to anwswer my question - but, still, it's not exactly what I am looking for, I think. I want to add color to different events in the same calendar. Following your sugguestion, forces me to create google accounts for each type of event I want to enter : personal, customer, holiday, family things - I want to see them all in my own diary, but color codes.

@Edelcom: You can create multiple calendars in a single Google account (that's why I think they are better named "tags" or "groups" or "folders" rather than "calendars").

I do exactly what Lie says.  I put birthday events in one calendar, etc.

Ok, I have to change my way of thinking here ... but even than: that's for the Google calender, can you do the same on the local calendar of the device ?

@Edelcom: Try this: Press Menu > More > My calendars > Menu again > Add calendar; I can't tell if it works, as in my case the "Add calendar" button is greyed out, it might work in yours or it might not.

To sum up -- for one google account, a "calendar" represents a tag, if you will.

@Lie Ryan: I don't even have an 'Add Calendar' . See my response to the other answer from "pydave" where I list all options I see on my phone. I upgrade to 2.2 last weekend, but still am not able to add a Calendar on the phone.

After following Lie's steps to create a new calendar in Google Calendar, you'll have to add it to the Calendar app:

Open the Calendar app
Menu > My Calendars
Menu > Add calendars
Select the calendar you just added

Lie mentioned this in a comment, but I don't have enough rep to respond.
Add calendar is for adding calendars to the app that aren't in the My calendars list already. It won't let you add new calendars to Google Calendar.
(The above is true on my xt720 running eclair-2.1.)

Sorry, my version (2.2) does not have a 'Menu > My Calendars' option, just Search, Create , Goto , Today, Delete, More and More having Refresh and Settings . Settings having, Calendars, Calendar sync, Default view ... all view settings and Vibrate . Calendars just a way to enable one of three calendars, My calendar, the online google one and the one from Facebook, pressing menu here only shows 'Calendar sync'. Am I missing an option ?

@Edelcom: Are you using the stock calendar application? The stock calendar app have a completely different set of menus. Either you have downloaded an alternative Calendar or Galaxy S ships its own calendar app; can other Samsung Galaxy S owner confirm this? btw, your question tag said you're using 2.1-eclair, but now you're saying you're using 2.2, have you upgraded since then?

@Lie Ryan: Yes I upgrade my Galaxy S during the weekend. I a running Calender 1.1 - no about settings anywhere to be found. The Application list just shows version 1.1.

@Edelcom: Application info shows my Calendar app is version 7 (on eclair). Your "Calendar" must be quite different from my "Calendar".

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


text:
adb doesn't work
I downloaded SDK from the official website.
I installed it, but when I try to use it this happens:

What mistake did I make?
I use Ubuntu 14.04.

Does it have executable permissions? What does 'ls -l' gives?

Why don't you just download adb directly ?

Did you install additional packages required for adb to work?
According to Google Android's SDK Page

If you are running a 64-bit distribution on your development machine,
  you need to install additional packages first. For Ubuntu 13.10 (Saucy
  Salamander) and above, install the libncurses5:i386,
  libstdc++6:i386, and zlib1g:i386 packages using apt-get:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

For earlier versions of Ubuntu, install the ia32-libs package using
  apt-get:
apt-get install ia32-libs

You can check all the dependencies an executable needs using objdump -x ./adb | grep NEEDED.
Make sure all required packages are present in your system. And finally, as @Firelord said, also make sure that the file is executable.
Also have a look at this and this similar questions.

Why don't you just install adb from Ubuntu official repository.
Run:
sudo apt-get install android-tools-adb

In terminal for adb and
sudo apt-get install android-tools-fastboot

For fastboot. In this way you can use adb and fastboot in any directory! Make sure your usb debugging is enabled.

Because he has it already.

Also, you are right, this will install necessary dependencies, in case they were the problem.

"In this way you can use adb and fastboot in any directory!" - that is true but if OP solves the actual problem they can make an alias for the ADB binary in SDK which would work from anywhere in the system too.


text:
"Listening..." screen suddenly popping up on Android 6: what is it, how to disable?
Every now and then, some Google "Listening..." screen pops up , like this:
 full resolution
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?

Try holding your home button  for 2-3 seconds. Then press on the G logo. Top left click the "settings" icon. Go to settings. Voice. Ok google detection.  Disable "From any screen"

In case the above comment doesn't help, try wiping the data of the Google Play Services and Google apps. If even that does not help, try a factory reset.

happened to me recently, with earphones plugged in, stopped happening when I unplugged them, had been walking with them in rain prior, propably the buttons on the earphones were short circuiting or something llike that .. atleast this stopped happening after a while ... perhaps when the earphones had dried off

This happens when you tap on the little Mic image In the Google search bar at the top of your screen on the right hand side of the field box.  It's the Google Now voice command interface.

Thanks for the suggestion but that can't be it. And I would know if it only happened when I touch a mic icon ;) It happens when I'm not touching the screen at all (also not accidentally, i.e. in my pants or whatever). Furthermore, I actually don't have the Google search bar (I disabled Google Now and later even switched to Nova Launcher instead of Google Launcher).

It seems to occur when my earphones (not headset or mic, just earphones) are plugged in

When you press and hold answer button on your headphones, Google app is automatically launched. Check your earphones' jack. Or try to blow hard into the connector

Yes I suspected it could be the earphones triggering some kind of event. But I have tried several pairs of earphones, including ones with NO button or interaction or any other functionality than merely outputting audio. Also tried blowing into the connector and cleaning the plug (jack), but no to avail.


text:
'My Files' Application Not Appearing
After updating to Android 5.0, I can no longer find the 'My Files' application. Has this feature been disabled? If not, where is this now located?

I merged in answers from an older question suggested by Michelfrancis Bustillos since it had been closed as unclear and was never clarified, but the answers seem clearly relevant here.

I had the same problem. I'm using a Galaxy Samsung Tab 3 with Android 4.4.  The "My Files" icon went  missing.
After a lot of digging I learned that I had to click the Settings icon,  then Application Manager. It would list all the downloaded apps. You must then swipe the list to the left so you can see the heading "All" and "Turned Off" hidden off to the right side. I found the "My Files" app had been turned off.  Click on it to turn it back on.

Most default apps or bloatware can be disabled, try looking into settings > apps > all, and search for you application there. It could have been disabled by a mistake.
If that solution does not work then I recommend you to download ES File Explorer. In my opinion it is a better file explorer than the android default.
After installing ES, assuming you are rooted. You can navigate to the root directory "/" /system/app. And you will see every application installed by default.


text:
After factory reset Market keeps crashing on Galaxy S2 on ICS
My phone was stuck in a bootloop, so I had to factory reset it. Now a new problem has arisen, which is that the Play Store is gone, and I am back at Market but it won't open and keeps crashing. Please tell me how to get the update from Android Market to the Google Play Store or at least get Android Market working.

Phone Model: Samsung Galaxy S2  (I9100)
Android version: 4.0.3 (ICS)

OS is ICE_CREAM_SANDWICH which was case even before factory reseting.

Guess what I was running out of time and did factory reset again and din't do any of things told like clearing cache, data for market this time and within 15 minutes market got updated to Play store.
Only change is I connected it over data than over wifi to internet.

This is the standard behavior... I can only speculate your initial factory reset did not complete properly or you did not finish the initial configuration wizard.

I did initial configuration correctly and complete but the Marketplace never opened and kept crashing. Which lead me to believe that high chance it won't update by itself.


text:
Android Studio Emulator is running but but never goes beyond "Android Logo"
I am facing this problem that my Android Studio emulator is running but it never goes beyond the "Android logo" in booting up.
Please help me out with this problem, it's urgent!
I do not know how to resolve this problem.

How long is "never"? It takes a lot of time to start this emulator.

I think your memory is not enough to load the emulator settings (screen density etc). You should try a lighter version.


text:
My phone is (apparently) hijacked by a virus
I have a Huawei Honor 4c and I wanted to update it to lollipop, but it had to be done manually.
I downloaded the file I thought I needed but I decided not to install it, as it had a strange name - jenkins something, so I deleted it.
A few days later I start getting these log files. I don't pay attention to them but soon all my pictures, videos, etc disappear. I freak out and restart my phone but nothing changes. I connect it to my pc but my pc does not recognize it as a phone, but as a media player and it says that my phone's a linux.
So, I get on my phone, delete all the log files and everything else I find suspicious and download cm security, app lock, kaspersky, etc but none of them, apart from kaspersky, detect anything. However, kaspersky loses the trace a few moments after it has detected it, so I decide to reset my factory settings.
After I've done that, a few days later these log files appear again this time threatening me that if I delete them and the other files I deleted, all my photoes will be gone forever. I then proceed to reset my factory settings again this time without using google play's back up and any internet connection.
This kind of seemed to work /despite my system apps and files running on that jenkins platform/ until my phone starts downloading this strange file every couple of hours. When it downloads it, cm security says it's safe but I delete it. Nevertheless, I was away from my phone for more than 5 hours during which it downloaded the file again and now the virus is very much alive... it has even managed to get through cm's app locker...
Also, I feel I should mention I noticed that my phone doesn't always have an ip address which I think is kind of strange, I don't have an sd card, and I have backed up my photoes with google plus, although it's not very efficient as I don't have a strong working connection at all times.
Please help me, I don't know what to do, nor do I understand much regarding smartphones.

That jenkins file, where did you download it from? You didn't install it, but did you try to execute it or just stored it on your phone?

I don't remember where I downloaded it from, and before deleting it, I think I accidentally executed it.

While I do not know exactly what virus is causing this, it does appear that it has broken its way into the OS itself. A factory reset won't help you now. I would recommend you do not put any personal information on this device until you can clear out the virus.
At this point you have 2 options:

If the device is under warranty, see what the manufacturer will do for you. They will probably not help you, but it's worth a shot.
Flash the OS of the phone. This can be a risky procedure, but if done carefully and exactly as the tutorial you find for your device says you should be okay. Doing this also requires you to root the device, which will invalidate the warranty. At this point, you would flash a custom recovery and flash either the stock rom or an alternate rom such as cyanogenmod or paranoid Android. Look up tutorials on how to do this for your device.

Sorry to break the bad news.


text:
Lollipop SAF: how pre-installed file manager is able to write to SD card?
With SAF I am able to write to external SD card with explicit user permission.  BUT I am wondering how pre-installed File Manager app is able to write to any SD card without user permission? Is the WRITE_MEDIA_STORAGE permission making the difference ?
How to gain this type of access ?
I have source code of android for the tablet I have.  Can I add my app to source and compile, so that my app can write to any SD card without explicit user permission?

Just to add some clarity :  I develop educational apps, which will be bundled along with a tablet device.  Without the 'any SD card write permission', students will have to give explicit permission whenever they use a new SD card. Many application functions would be hampered.
Request to throw some light into this.. Thanks in advance.


text:
Authentication is Required Google Play Store
I have tried everything that was said in the answers below but it just won't work. I want to download an application but whenever I accept the permissions prompt,  a notification appears: "Authentication is required. Please sign into your Google Account."
I don't know what to do anymore. Can anyone please help me?

Have you tried the obvious? i.e., signing into your Google Account on your phone? If not, then what was the problem? You need to sign into your Google (GMail) account to download apps from the Play Store, it's a prerequisite.

I had this issue. I logged out of Google and logged back in, and that fixed the issue for me.
The error may simply be a sign-in issue, which sometimes occurs when the Play Store is updated. The first trick is to go into your phone's main Settings menu and then Accounts & sync and simply remove the Google account that is getting the "authentication is required" error. Once you've done this, you can re-add the account and it should work just fine.
You can also restart your phone before re-adding just in case. However, you may need to do this step along with the second step below. I cut and pasted this from internet search maybe it will help you out. I don't take credit for this answer.

Delete your Play Services data.
Go to Settings, Storage, Applictions, and look for Google Play Services. Delete data. Then, go back and scroll until the All tab. Look for Google Play Store. Delete data. Reboot. Enter credentials. Try again.


text:
How to turn off the "Screen Overlay" setting?
I'm using the Oneplus 2 and last week I updated my phone's software and ever since then I'm not able to do much on my phone. I'm not able to download photos on WhatsApp and neither am I able to send someone photos. Only one message keeps on popping up saying "screen overlay detected go to "App Settings" and turn it off". I tried following the instructions and turned it all off, but it was of least help. If anyone here has any clues about it, please help.

Possible duplicate of Determine which app is drawing on top of other apps?

There are three places apps are listed you have to turn off:
http://android.stackexchange.com/questions/154274/screen-overlay-detected-dialog-turned-off-everything-doesnt-work/157029#157029

Got insights from multiple answers here and other forums .
Consolidating how I got rid of the issue :

Go to Settings > Apps > (your app which is getting issue)
Press on Power button till window for Power off , reboot , airplane mode comes up
Hold on Power off option
Select reboot in Safe mode
Go to settings > apps > (your app which is getting issue)
Select whichever permissions you want
After Android M update , issues can come up in apps like Messenger , Whatsapp , Prisma etc.

Let me know if any issues .
Note : I am having One plus One mobile.

it would add to credibility if you link the sources from which you have gathered

Some different answers on forum.xda-developers.com , also few on this very page . After trying various options , I have added the steps here  that got my work done .

@beeshyams and the answer Laila gave a few days earlier, maybe ;)

1.Go to settings -> apps -> Click the cog gear -> Draw over other apps.
2.Proceed to disable for all the apps. Force stop the running apps.
3.Then try using whatsapp.
3a.Give permission if required by whatsapp or any other app
Most known culprits are file manager apps or screen brightness apps.
You can either disable for all apps or can go one by one.

follow the steps:

press power button for a few seconds
press and hold power off
reboot to safe mode
let phone reboot
go to Settings › Apps
click on setting symbol
click on access permission
enable all the options according to your need
reboot your phone.

It's work for me..  :)

there is a solution for this issue. I had to face the same after my latest update.  1) delete apps like(cleanmaster, battery saver, etc.) or go to settings/app/cleanmaster/force stop. Or you can also off the permissions for cleanmaster.. Thankyou ;)

OP nowhere indicated using CleanMaster. And "delete apps like X" is a very strange recommendation – especially with the relation being unclear.

Actually the problem lies in total Android OS, when u get a heads up notification do some stuffs like this, it will ask you for this permission. The solution is: Wait for heads up to off and then try again. There is also another problem in Android for safety Google has disabled positive buttons when a screen filter is applied, check for any screen filter app or check Oneplus defaults screen filter. These are only two problems you could face for screen overlay detected.


text:
Tracking Android phone usage
My wife thinks I spend too much time on my smartphone, but I believe she spends more time than me on hers.
Is there a way to monitor and provide statistics on our phone usage, so we can objectively compare our smartphone addiction?
I don't want something too intrusive (I don't want anyone, including me, to be able to spy on my wife) or something which would require root access.

I think that QualityTime meets your needs:

QualityTime (source: Google Play; click images for larger variants)

QualityTime is a fun, visually engaging and easy-to-use Android app that allows you to monitor and get real time reports on how much time you spend on your smartphone and on your favorite apps.

As you (Ben) wrote I don't want me or a software editor to spy on my wife: Please be aware that the app uses several analytics addons – a.o. Flurry, which may be quite intrusive (see: Flurry: An Affront to Privacy). It also wants to "edit your text messages (SMS or MMS)", "read your contacts" and "directly call phone numbers, send SMS messages" – which IMHO is not covered by the task it is intended for. So take care!

Thanks for your comment. I have the latest version of Android, so I can control the authorisations individually. I did not accept anything (except usage data access). I also did not login. That does not mean the app is not intrusive and sends the usage data to their servers though...

That and I blocked it with NetGuard :)

Good choice @Ben – I see I don't need to worry, you know how to nail it into its sandbox :)


text:
how to take complete backup of my android device using adb
I'm trying to take full backup using adb backup -all -f <path> and it took backup and stored in my PC.
When I try to restore it using adb restore <path> then it restores onto the target device.
ADB backup command is not taking backup of messages, contacts and pictures. Kindly guide me if I'm missing something.
I could see that I have to use adb root to take backup using pull command. Will the device warranty be there if I use adb root command?

If you have not rooted your device, 'adb root' will not work at all.

@Dan B, still the posting doesnt have solution or guidance for getting backup of contact and messages

Well, lets be realistic here. Contacts can either be saved to the SIM card, or be exported onto storage and moved onto a computer as a file. Backing up SMS can only really be done to the SIM card, unless apps are used. Pictures can be saved to google photos, or synced/moved to the Backup holder.

See conveniently named "SMS Backup & Restore£ in the play store. It backs them up as .xml files, so those can be moved like normal files in the backup procedures.

Oh, and you can use the -shared and -system arguments in the link above to help this process along.

you mean that  -shared and -system parameters will get backup of contacts and messages

they have done in personal experience. Ryan's answer was a very good one, and even if parts don't work, exporting contacts and messages to .xml files get them backed up anyways. Google has been backing up our images since the introduction of google photos for free, remember, so no worries there.                                        (PS: The pound sign in a different comment is meant to be a " whoops)

@SeekeR you seem to want a complete device back up with all apps and data on the phone, You should use a recovery Backup instead of ADB backup

@RahulParashar , i did try to reboot the device with "adb reboot recovery" it reboots he device in recovery but it shows No Commands in the center and i could not see anhy menu. MotoG first generation with OS 5.1 version.
Is there any other way to get complete backup from command line like how backup & restore, super backup apps do.

You can add the menu to recovery by flash another recovery to the device.
CWM recovery has all Backup options.
I recommend flashing CWM Recovery. You would have to root your device to use this.

For photos you can either copy them to the pc or use a third party app that will backup them,  like Google photos.
For contacts and sms there are plenty of third party apps.  You can alao backup the contacts to google server using the contacts app itself

I'm developing a application to take a backup from the mobile to PC. I have tested some of the tools which takes full backup. But i wanted to know how did they achieved it and what was the commands used behind the GUI.

well I don't think they used any official API, but instead they just copied files from each app's folders. The thing that they miss is permissions. For this, I think you need to look at : http://stackoverflow.com/a/27866435/878126 , http://stackoverflow.com/a/32798532/878126 .

Thanks for sharing the link. it seems the command list the permission granted for th apk and not to set permission to allow some operation.
is there any other command other than adb to take backup of contacts from device ?

Not sure if it's possible so easily as backup of apps, but some people say it is: http://android.stackexchange.com/questions/85269/does-adb-backup-include-contacts


text:
Pattern unlock not working after OS upgrade to android 6.0.1 Sansung J7
I upgraded my Samsung Galaxy J7 device from system update menu. It was working fine after the upgrade but it is not accepting my pattern after the restart. I don't remember the PIN also.
I have tried following things to unlock the device :

I have tried logging on to Android Device Manager, but there is nothing like resetting password there in the options. It just allows you to display some message on the device.
I have tried unlock through Samsung website but looks like this is something I should have setup before the device was locked up.
I have tried pushing Aroma File Manager zip file through adb sideload and also through SD Card but through both ways it is giving same error :
E:footer is wrong E:Signature verification failed

To disable Signature verification I tried pushing CWM custom recovery but I am not able to sideload that also as I get the same error.
The recovery is only giving me option to connect to adb sideload. So, I can't delete files through adb shell.
Please tell what other methods I can try.

Sideloading custom recoveries like CWM or TWRP won't work as they are not cryptographically signed by Samsung and as such the stock (default) recovery will refuse to install it. Also, factory resetting your device no longer resets the lock since Android 5.0 Lollipop, it's an anti-theft measure. Does your device require the pattern on startup (on a black screen) or just on the lock screen? Does it ask for a PIN on startup instead of the pattern? You can try contacting Samsung support or a nearby service center to help, but the phone is most probably encrypted and your data will be deleted.


text:
What exactly does carrier services do and should I allow it to use mobile data while data saver is on?
I'm using the samsung a32 5g.
Just wondering if it's worth allowing it to use my mobile data since I'm on a tight plan and why it would be important. All I use is SMS messages, I read that all it is used for is RCS or any android related messaging apps.
If that's the case can I disable background data usage if it does nothing for me, and even go further to disabling the app? Would doing so disrupt SMS or any other messaging service?

A first indicator of what this app does is it's package name: com.google.android.ims
IMS is usually the abbreviation of IP Multimedia Subsystem, which is dedicated to do communicate with the carrier over IP, instead of special protocols as this was in 2G/3G.
Another hint gives us the description in Play Store:

Carrier Services enables the latest communication services from mobile
carriers, including battery-optimizations and support for enhanced
features in the Android Messages app.

Therefore this package seems to implement the client side of "RCS Messaging", the successor of SMS.
I am not sure how many carriers already support RCS and how widely this is used. In general I would allow background usage, otherwise the app would be pretty useless if you every receive an RCS from someone (you never know who might send you something).
From my understanding plain SMS should not be processed by this app.


text:
Is possible to charge the battery even If I erase boot and system partitions?
Is it possible? Or the device needs at least a kernel to be able to charge? I have a device in bootloop that every 3 seconds it vibrates and I'm not sure if its does not charge because I erased boot and system partitions or because its consume power everytime it vibrates preventing to charge enough for me be able to turn on fastboot mode and fix it.

I don't think it's possible. This may be relevant https://android.stackexchange.com/questions/145263/where-are-the-battery-capacity-files-located?r=SearchResults&s=1|105.2026

In other words, the presence of battery, it's capacity, is current voltage levels etc are communicated by system and if that's missing, will it charge? I don't think it will

It's very hardware-specific question, so cannot be answered with surety. It depends on your OEM's choice of SoC/PMIC and bootloader (the components which load before the actual OS). But it's definitely possible. U-Boot is a commonly used open-source bootloader, and it does have a pretty thorough support for battery charging, without relying on Linux/Android kernel.

my device's current bootloader is lk(little kernel), I can boot in lk and choose the boot mode (normal, recovery or fastboot) but when I select anyone it shutdown, I tried let it charging while in lk but it just charge for less than 2 minutes and then shutdown, idk if lk have some kind of timeout of inactivity and shudown when its reach this timeout or its just do not support charge :/

Assuming you already know what TWRP is, you should just install and boot into it and charge. However in your case you cant install it i guess. So best way is to plug into pc and fastboot mode the device. This will supply it with some power at least and try flashing twrp to it using adb/fastboot services. Then you can boot into twrp and charge the device from there. And if in future you're ever going to touch a phone's system/other important partitions..make sure to install twrp beforehand.


text:
How to root samsung galaxy s6 SM-G920F android 7
I want to root my phone Samsung S6 SM-G920F android 7. I have tried app like kingroot, kingoroot, z4root, towelroot... but none of this work
Thank you for your help!!!

Does this answer your question? Why are the rooting apps not working anymore?

Does this answer your question? Samsung S7 - Developer options not showing after build number pressed 7 times

for samsung devices patch whole AP_*.tar.md5 ROM file with Magisk (instead boot.img)


text:
How to see Android from "Windows Remote Desktop Connection" if Android is connected to Windows via USB?
I have Windows 10 computer C1 (home computer) and I have Windows Server computer C2 (work computer) and I am running "Windows Remote Desktop Connection" from C1 to access C2. I have quite sophisticated applications on C2 (e.g. my office programs like https://www.embarcadero.com/products/delphi for developing and debugging Android applications).
I have physical access to computer C1 (home computer) and I have connected Android tablet via USB cable to C1 and I can see in C1 Windows Explorer that tablet is available for file transfers, debugging etc.
My question is - how can I share this USB connection so, that it can be accessed from Remote Desktop Connection, i.e. from C2 (office computer) as well? Currently C2 (as accessed from RDC session from C2) does not show table in "This PC" Windows Explorer and there is no notification about connected tablet device in the notification area either.
I have tried https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-enable-a-usb-device-in-remote-desktop/113af42e-5b99-4f6b-bc6f-f8bc1007e34f There are 2 answers: 1) about "Allow Remote access to your Computer" and 2) about group policy editing. I followed both advices but my Android tablet is still not visible in RDC C2.
Google search suggested https://www.net-usb.com/android-remote-access/ but it is Remote Desktop access to/from Android device and not about RDC between two windows computers. This search https://android.stackexchange.com/search?q=%22remote+desktop+connection%22 gave non-relevant results, so, my question will not be duplicate certainly.

The device types Windows Remote Desktop Connection supports for forwarding through it's connection are very limited and can AFAIK not be extended. But even if your tablet would be visible in Windows Explorer this would not help you as for development you need the USB device part that speaks Android Debug Bridge (adb), a protocol that is never visible in Windows Explorer. Visible in Windows Explorer is only MTP protocol that is not used for development and debugging.
If you want adb access on the remote server (C2) and the phone is connected to your local PC (C1), you need to redirect adb traffic from C2 to C1, e.g. using an SSH tunnel.
Or you can try use new remote debugging feature available on Android 11+.
The old plain ADB over Wifi is theoretically also possible but I would not use it unless the computers C1 and C2 are connected using a VPN or something similar because ADB over Wifi is for a security perspective like telnet: all data are transmitted in plain text without any protection or encryption. So any computer between the phone and the used development environment can read and modify all transmitted data.


text:
Fix ADB "Performing Streamed Install" Taking Long Time
I'm testing my app on my real device. Just a day ago adb install .apk works perfect.
But now it takes a lot of time just about 5-10 minutes for installing 7 MB of apk.
Note: I'm not using wired connection, I'm using adb tcpip 5555 to serve without wire. As it works grate when connect with cable.
I have done every thing which i know: Restarting Device, Revoking Certificates, turning on-off USB debugging and reconnecting over network.
If i am doning anything wrong please guide me.

You can try to use adb push for uploading the file and them adb shell pm install <pkfile> on device. This way you can learn if uploading (-> Wifi) or installing is the problem.

hey! thanks for your help but i cannot run build from android studio as it only run adb install .apk

If you are in Android Studio then just generate the APK and install it manually.

I was connecting to my phone with an internal IP address (192.168.*). I don't why, but this was the issue, so when I connect to my phone over a public IP address (25.43.*) it just works! :D

Thanks for contributing your solution, Adarsh – that's the spirit! <3 Could you please clarify what you mean by "internal" and "public"? Of course you can "sanitize" any IP addresses used (e.g. 127.0.0.1 doesn't need that, but e.g. 192.168.* would make clear it's a "private network" all your home devices are connected to, or 123.123.*.* could stand for any IP accessible from the "outer world". I'm especially wondering if you really needed the latter.

I have edited my answer but now there is speed issue, can i get any help?

Thanks for th dit! You meant 192.168.*  for the internal one  guess? The leading 1 somehow got lost. Still strange that you have to use the public address. As for the speed issue: Maybe asking a separate question (linking to this one here for context)?