all my headphones work on one side on htc desire but they used to work fine

Your phone's headphone jack is failing.  When you buy new phones, the plug is a nominal dimension (3.5 mm is the standard, but the specification is surely much more precise than that).  After inserting and removing the plug a few hundred times, the tip and rings wear, reducing their size a tiny bit.  The same wear occurs on the spring-loaded contacts inside the jack.  After some number of cycles, it reaches the point where one of the contacts doesn't connect when the plug is fully inserted, but something connects on that conductor during insertion and removal.

In a new jack, there's plenty of overtravel in the contacts to cover this amount of wear, but if one of the spring tabs has gotten bent a bit (possibly by off-axis insertion of the plug at some point, or the headphone wire getting jerked out of the socket at an angle) it may make contact but have lost the overtravel that serves to take up wear.  The only real solution is to replace the jack -- which probably requires major work on the phone.  It might be possible, depending how the jack is made, to rebend the contact springs -- but that would require full disassembly of the phone and might not work, so it likely isn't worth paying someone to do.  Replacing the phone's motherboard may be the only solution, unless the phone jack is on a daughterboard.


Is there a way to look inside and modify an adb backup created file?

I started working on this. I'm posting my results so far here as a "community wiki" answer for two reasons: first, if someone else wants to join in, there's a place to talk; second, if I get pulled away from this project, there'll be hints for someone else to start working.

The backup logic on the host is entirely contained within https://github.com/android/platform_system_core/blob/master/adb/commandline.cpp, in the function named backup. The function is very simple: it validates the command line options, sends the command mostly as-is to the adb daemon on the phone, and writes the phone's output to the file. There isn't even error-checking: if, for example, you refuse the backup on the phone, adb just writes out an empty file.

On the phone, the backup logic starts in service_to_fd() in https://github.com/android/platform_system_core/blob/master/adb/services.cpp. The function identifies that the command from the host is "backup", and passes the unparsed command to /system/bin/bu, which is a trivial shell script to launch com.android.commands.bu.Backup as the main-class of a new Android app process. That calls ServiceManager.getService("backup") to get the backup service as an IBackupManager, and calls IBackupManager.fullBackup(), passing it the still-unused file descriptor (very indirectly) connected to the backup.ab file on the host.

Control passes to fullBackup() in com.android.server.backup.BackupManagerService, which pops up the GUI asking the user to confirm/reject the backup. When the user do so, acknowledgeFullBackupOrRestore() (same file) is called. If the user approved the request, acknowledgeFullBackupOrRestore() figures out if the backup is encrypted, and passes a message to BackupHandler (same file.) BackupHandler then instantiates and kicks off a PerformAdbBackupTask (same file, line 4004 as of time of writing)

We finally start generating output there, in PerformAdbBackupTask.run(), between line 4151 and line 4330.

First, run() writes a header, which consists of either 4 or 9 ASCII lines:

"ANDROID BACKUP"
the backup format version: currently "4"
either "0" if the backup is uncompressed or "1" if it is
the encryption method: currently either "none" or "AES-256"
(if encrypted), the "user password salt" encoded in hex, all caps
(if encrypted), the "master key checksum salt" encoded in hex, all caps
(if encrypted), the "number of PBKDF2 rounds used" as a decimal number: currently "10000"
(if encrypted), the "IV of the user key" encoded in hex, all caps
(if encrypted), the "master IV + key blob, encrypted by the user key" encoded in hex, all caps

The actual backup data follows, either as (depending on compression and encryption) tar, deflate(tar), encrypt(tar), or encrypt(deflate(tar)).

TODO: write up the code path that generates the tar output -- you can simply use tar as long as entries are in the proper order (see below).

Tar archive format

App data is stored under the app/ directory, starting with a _manifest file, the APK (if requested) in a/, app files in f/, databases in db/ and shared preferences in sp/. If you requested external storage backup (using the -shared option), there will also be a shared/ directory in the archive containing external storage files.

$ tar tvf mybackup.tar
-rw------- 1000/1000      1019 2012-06-04 16:44 apps/org.myapp/_manifest
-rw-r--r-- 1000/1000   1412208 2012-06-02 23:53 apps/org.myapp/a/org.myapp-1.apk
-rw-rw---- 10091/10091     231 2012-06-02 23:41 apps/org.myapp/f/share_history.xml
-rw-rw---- 10091/10091       0 2012-06-02 23:41 apps/org.myapp/db/myapp.db-journal
-rw-rw---- 10091/10091    5120 2012-06-02 23:41 apps/org.myapp/db/myapp.db
-rw-rw---- 10091/10091    1110 2012-06-03 01:29 apps/org.myapp/sp/org.myapp_preferences.xml

Encryption details

An AES 256 key is derived from the backup encryption password using 10000 rounds of PBKDF2 with a randomly generated 512 bit salt.
An AES 256 master key is randomly generated
A master key 'checksum' is generated by running the master key through 10000 rounds of PBKDF2 with a new randomly generated 512 bit salt.
A random backup encryption IV is generated.
The IV, master key, and checksum are concatenated and encrypted with the key derived in 1. The resulting blob is saved in the header as a hex string.
The actual backup data is encrypted with the master key and appended to end of the file.

Sample pack/unpack code implementation (produces/uses) tar archives: https://github.com/nelenkov/android-backup-extractor

Some more details here: http://nelenkov.blogspot.com/2012/06/unpacking-android-backups.html

Perl scripts for packing/unpacking and fixing broken archives:

http://forum.xda-developers.com/showthread.php?p=27840175#post27840175


Amazon Fire HD 10 (7th Generation), two profiles and non-working installation of Google Play Services on 2nd profile

Thanks a lot, that helped (Fire HD8).

Had the problem that I tried to install Google Play on the second user, but it always said "Download Pending".

Solution thanks to your steps:

Install for first user on tablet
After Google Play Services and Google Play Store are updated on first user, write down version numbers
Install on second user:
3.a Google Account Manager
3.b Google Services Framework
Find same versions of Google Play Services and Google Play Store from first user on APKMirror and install on second user


Recovering broken ecryptfs on SD-card with lollipop

Same phone, same problem (except my phone is not rooted), but it eventually resolved itself.

Posting the exact steps I followed in case it helps anyone else:

On first reboot (when the problem first occurred), the phone said it was preparing the device and then after a few seconds it told me the card was safe to remove (but I had not asked to unmount it). Going to the storage menu I had the same experience as the OP above. It just kept saying 'preparing device' and never finished.
Rebooted the device, same again as #1.
Repeated. Left the 'preparing device / checking for errors' message up for about 20 minutes this time but it still never completed.
Connected to computer, enabled USB debugging. Using adb shell command following the advice of OP I found the SD card mount directory was not accessible and I could not unmount it without root.
Rebooted the phone one last time. On initial boot, phone said 'preparing device' and then said 'SD card is encrypted'. I ignored this notification and was able to use adb shell to view the files and copy them to my PC. All files were readable. I then cleared the notification and all was well.

I don't think anything I did was responsible for fixing the problem, but if you follow the same steps then hopefully the same thing will happen for you.


Nexus 5X, Gmail draining battery after may update

Actually the issue went away after the latest app update (Sometime around June 1st).   Hope this helps!


What keyword will help me search for music player app that plays by folders?

A good keyword combination is already given by your question: a music player which should play folder-wise should be found using the keywords "folder play", "folder player", and similar combinations. In fact, there are even some players named exactly such, e.g. Music Folder Player, Folder Player, and many more.


Block calls for everyone except for contacts

Although you mentioned using Android 4.1.2, I recently stumbled across this question and thought a more recent answer might be useful to others:

On Android 5.0 "Lollipop" and later this can be accomplished using the "Priority only" Do Not Disturb mode:

Configure Do Not Disturb Priority Allowances

  Open your device's Settings app.
  Tap Sound, then Do Not Disturb preferences, then Priority only allows.
  Set Calls to From contacts only and adjust any other preferences for this mode to your liking.

Turn on Do Not Disturb "Priority only" mode

  Swipe down from the top of your screen with 2 fingers.
  Under Do not disturb or your current option, tap the Down arrow.
  Turn on Do not disturb.
  Pick Priority only.
  Choose how long you want this setting to last.
  Tap Done.


Yup. If your contacts were successfully synced with your Google Account you can easily move them to your new phone using the same Google Account. Any Android phone from any company can be used to restore the accounts synced with your Google Account.


Removing or blocking default Android apps

Uninstalling via Titanium will work for removing Gmail, Market and Messaging, but be very careful removing Phone.apk, as it's tightly integrated into core services.  You might start seeing Force Closes and other instability from the handset.


This link should help. It contains a link to a thread detailing a special zip file created by one of the developers. It will help you possibly get S-ON. The step by step instructions are in the thread:

http://forum.xda-developers.com/showthread.php?t=863899

By the way, S-OFF isn't something service technicians actively look for. Many people have sent in phones for servicing with S-Off and technicians still fix it. With my Nexus One, once you get S-Off, it shows an unlock symbol that doesn't go away and is shown every time with the splash image during boot. However, many of my friends with this phone have gotten it fixed without problems.

EDIT: If the S-OFF doesnt work, you should private message or PM the developer who created the zip file on xda. He will be better able to help you as he has repeatedly got S-ON and S-OFF. I dont have the same device. Unfortunately, the bootloaders are device specific and vary on the manufacturer. My experience with S-OFF will be different from yours.


Can we pair two smart watches without a phone?

No. Android Wear was designed to be used with a smartphone. Even if you did figure out how to do this it wouldn't have anywhere close to the amount of features it has now.


In desperation, I went to Settings then Connect a Computer and went through the routine of installing Dropbox on my desktop (in spite of it being there already). The installation took much longer than the original, but all files are appearing on the Android devices which I use.

Not very intuitive...


System app reverts to original version after device reboot

As I turns out, it WAS the versionCode that prevented me from keeping updates around, I was changing the versionCode within the manifest, but gradle.build was overwriting it to the same versionCode back. I made sure build.gradle had the proper version and I allowed me to keep app updates after reboot.


Most probably the issue is with the battery. The battery can't provide stable power output and that's why the phone can't continue after the samsung logo.
You should try a new battery. If still the issue persist, let me know.


This is a common outcome for many possible problems. If you can get in to clockworkmod(or whatever custom recovery) try reflashing cm9. If that doesn't work try doing a factory reset from recovery (clear data/factory reset) and then reflashing cm9.

On the international SGS you always had to flash cm-roms twice (on first flash it sets up the partitions and on the second flash it finaly flashes the rom).

If you still can't boot, flash a stock ROM with Odin (I think it is Odin you use for flashing stock ROMs, since it is Samsung device, if not use whatever is recomended on XDA-developers under topic named something like "restoring a stock ROM"), and check that it boots that. After that install root, recovery and cm as before.

If you still can't get it to boot after that, let us know.


How to show chat head facebook android manually?

A free app called Notification Shortcuts gives you the ability to set up a permanent notification that will open an app you specify when you select the notification.

You can set up multiple shortcuts and can even set up toggles for wifi, bluetooth, etc, if you want.

The downside to this is that when you receive a message, you'll have a second notification from the chat app itself. But since the facebook chat app lacks an option to set up a permanent notification, this 3rd-party app is the next best solution.


How to close (shutdown/kill) the Android web browser?

Closing the browser has no benefit. The android subsystem manages the memory on the device really well and will free up memory from background applications if it needs it. As I understand it, it does this by saving the application state in a database on disk. If you run the application again, it can then rebuild its state from the info in the database.

If you want to stop the browser from downloading and you can't see the "Stop" button, press the menu button. This will bring up the address bar allowing you to press the stop button. Although if the address bar has disappeared then chances are your phone is not downloading anything, unless the site you are on has Javascript on it which is causing it to refresh elements regularly. If this is the case you are on your own.


Locking SDHC Memory card on Samsung Galaxy 2

You cant lock, in your definition, the sdcard or one file. But you have some ways to protect your file.

Store it in a password protected Zip file.
Encrypt your sdcard
Use a AppLocker to lock the apps they are needed to view / edit the file.
Use BoxCryptor.

The only safe way is, to encrypt it. If you lock your sdcard with a software, the thief can easily connect it to a pc and steal the file or even steal the whole sdcard.


Can you install a generic ROM on any device?

You won't be able to install a ROM from a different device,  unless it is ported to your device - there are write-ups on the XDA forums on this. There isn't any generic ROM for all devices. Each device has its own chipset and hardware, that has its own firmware (software) design for it. In order for there to be a generic ROM, it would have to have the software and drivers for every device out on the market. The size of the ROM would be so large it wouldn't fit on most devices, let alone have room for anything else. Manufactures flash the ROM to their devices. From there we the can unlock the boot loaders, flash a custom recovery, install kernels and flash a custom ROM designed/made/ported for our device.

Check out this link and search for your device. http://forum.xda-developers.com/. There are other forums on the internet, but you can search Google for them.


How can I do a factory reset on a MyTouch 3G Slide?

To do a factory reset, you should be able to go to Settings -> Privacy and hit Factory data reset.

Alternatively though, to just clear the SMS data you should go to Settings -> Applications -> Manage applications and find the SMS app ("Messaging" or similar) and clear the data for it.  There may also be something like "Messaging Storage" that you need to clear.

If you really need to boot into recovery, I would try the following:

Hold power and volume down until the phone reboots or turns on
Hold the power button for two more seconds, then release it (if the phone reboots again, you held it too long)
Keep holding volume down until recovery mode appears


How can I view my Google Contacts groups with my Samsung Fascinate?

The Groups tab in the contacts app shows the individual Google contacts groups, including the built-in ones ("Coworkers" etc.) and my custom groups, and they are browsable.  This is on my Galaxy S Vibrant running 2.2, with TouchWiz.


Android: "wipe data/factory reset" won't delete all directories in '/sdcard'

/sdcard is part of the Android file system structure. This is where it mounts your external drives, the SD card. You shouldn't delete this partition. But you can delete the content of the directory either using an app or using rm -fr /sdcard/*


What's the "MTC Мобильная Почта" update on my Samsung Galaxy?

I did some searching due to the other answer and found someone on XDA claiming that this is a Market/Play bug, and you're seeing it because the Market thinks one of your apps is actually that OJSC Mobile app.

Even better, I found this just-published story on The Verge:

  Samsung has several pieces of software that it installs on it devices but that aren't in the Google Play store (for obvious reasons). However, every single Android app has an app name that identifies it on the Android system, in this case the "unique" name is com.seven.Z7, which identifies Samsung's email app. What appears to have happened is that Russian developer OJSC Mobile Telesystems gave that unique identifier to its "МТС Мобильная Почта" app, and so these Samsung devices were tricked into thinking it was an update to Samsung's email client. Since Google Play allows for automatic updating of all apps, it was installed on many devices.

I couldn't find the app in the Play Store anymore, so perhaps Google has taken it down to resolve this.

Below is the original version of this post, which would still be applicable in more normal circumstances.

If it's a system app for supporting Cyrillic text, which is what it sounds like, it could hardly be called malware.  Crapware, perhaps, if you don't need it.

If you don't need it, then no need to update (unless you want to be rid of the notification, though in that case I recommend rooting and removing the app).  No reason not to update either I'd say — you already have it on your device, so unless it's doing something nasty in the new version in particular then you've already been exposed to any dangers it may contain :P.  Of course, updating will require more space on your device unless you are rooted and can entirely replace the original version with the update (normally the system keeps all original versions of system apps).


Windows 7 ultimate, unable to detect my nexus 4 5.01

Download drivers from here

source: XDA forum - Nexus 4 driver for Windows

If this also doesn't work then there is discussion on XDA forum if you are using Universal naked driver.
(OR) Above all, save data on Cloud and Factory reset.


How to run a script in background from adb shell?

Processes receive signals from other processes or kernel as a warning or as a request to make some change in state. Receiving processes can block, ignore or catch signals, except SIGKILL which does what the name says. A process receives SIGHUP (hangup signal) when its controlling terminal (virtual or pseudo) disconnects or its controlling process (which is usually a shell) terminates. Quoted from adb shell source:

  PTYs automatically send SIGHUP to the slave-side process when the master side of the PTY closes

* See Terminals and Shells on Android for details on PTYs

Process can then handle the signal to continue its execution or just gets killed by the kernel.

nohup makes a process run (usually in background) by simply ignoring SIGHUP even if the controlling terminal closes. Additionally if FDs 0, 1 and 2 of the process are attached to the terminal, nohup redirects STDIN from /dev/null and STDOUT/STDERR to nohup.out file.

Android's built-in /system/bin/nohup has some bad implementation like many other applets of toybox. It replaces STDIN with nothing and leaves STDERR attached to the terminal. So all shell commandline tools which are related to system_server behave unexpectedly because of no FD 0.

Solution is to use nohup e.g. from busybox or do:

nohup tether.sh </dev/null &

Or without nohup:

tether.sh </dev/null &>/sdcard/usb.log &

In order to make sure a program ignores SIGHUP, add trap '' 1 to script above the program to be executed. But it's not required with Android's default MirBSD Korn Shell (/system/bin/sh) which doesn't send SIGHUP to all jobs (children processes) in the same session i.e. attached to the same terminal. So nohup or trap isn't essentially required, whether shell exits or gets killed.

Secondly mksh doesn't detach from terminal(s) completely because in addition to STDIN/OUT/ERR, it attaches to /dev/tty directly (ref). So detaching FDs 0/1/2 doesn't suffice. However there's a daemon mode which completely detaches the command from terminal:

/system/bin/sh -T- tether.sh

Also mksh unblocks all signals, though not relevant here.

bash provides better job management; user can configure with huponexit whether or not to always send SIGHUP to all jobs on exit (ref). Bash's built-in disown command can be used to exclude jobs from receiving signals.

To keep script running in foreground, a multiplexer like tmux or screen can be used. That's what I do, particularly with su binaries from rooting solutions which don't detach (due to limited implementation of pseudo-terminals), when a program is running in background. See this issue for details.

RELATED: How to run an executable on boot and keep it running?


To get a lock screen similar to the one available for Windows Phone,
try Lock Screen 7.
WidgetLocker Lockscreen is a paid app which promises to give more lock screen options.
Quick Launch Social Lockscreen is another option.
Then there's Active lockscreen.
Holo Locker Plus and its free version.


The quickest way is directly flash your android phone.
You can get more detail from XDA.
You might need to unlock bootloader first.
Than go to download and flash Recovery Image from TWRP. (This is kind of like BIOS on PC)
After that, you can flash a new Android OS without any issue or verify anything.

Or try this: [This may not work]
1. Go to Android Website and download Android Platform Tools
2. Unzip it and put it in to C:\x
3. Open CMD from windows  (while the phone is connected to your pc)
4. Type:

cd c:\x

5. Type:
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1

Reboot your phone. (or type adb reboot)


Fail when pull system files in twrp recovery

TWRP automatically does not mount system partition. It has to be mounted manually via its UI (under Mount option) or via command line. The fact that ls /system showed you nothing gives us the evidence that the partition indeed is not mounted. It can further be confirmed using mount command.

If you must insist on mounting system partition using command line, you must get the block device ID for that partition first. There are myriad ways to do that and some are listed here by Izzy. I think the easiest may be the command blkid as mentioned here by Ryan. In my device it outputs:

~ # blkid
/dev/block/mmcblk0p42: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p41: LABEL="system" UUID="da594c53-9beb-f85c-85c5-cedf76546f7a" TYPE="ext4"
/dev/block/mmcblk0p38: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p26: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p21: LABEL="FSG" UUID="e4a4f807-109f-5459-8138-e744bc88c397" TYPE="ext4"
/dev/block/mmcblk0p1: LABEL="NONHLOS" UUID="75d3199b-b965-b45f-9298-59c724d8a58d" TYPE="ext4"

Once you have the block device ID and the filesystem type (ext4 default) you issue the command:

mount -t ext4 BLOCK_DEV_ID MOUNT_POINT
mount -t ext4 /dev/block/mmcblkop41 /system   # this is as an example only

You can now pull the files.


Insufficient memory with sandisk 32GB micro SD card while having 20GB free space

Try downloading SD formatter. it will format the sd card but it will also fix the partition table. maybe your partition table is all messed up


Got it fixed :D with thanks to Izzy and Chahk
I did a lot of things so I'm not sure if I write down every step I took, but I hope it will help other users someday. This is what I did.

Restore manger

Install a restore manager (TWRP/ClockworkMod). I used TWRP which I installed by using WinDroid Universal HTC Toolkit: http://forum.xda-developers.com/showthread.php?t=2499926
(If you still have a working ROM, backup this now by booting in recovery mode)

Flash ROM

Check in cmd if your device is recognized with "adb devices". If not try "adb kill-server" followed by "adb usb". Check again with "adb devices". If recognized use "adb push cm-10.2.1-enrc2b.zip /sdcard/" (or your own ROM-name.zip)

Flash Kernel

Now you should flash your kernel, not like how I did it at the beginning. "fastboot flash boot boot.img" in cmd. (Check first if your device is visible with "fastboot devices".

Extra Tip

Install playstore with Gapps or manually by moving "GmsCore.apk + GoogleLoginService.apk" + "GoogleServicesFramework.apk" to /system/app/ and run a playstore.apk (in my case "com.android.vending-4.6.16.apk")


It did exist in an earlier version I was using late 2013..but as of the current release, the option has disappeared.


That's weird. I could stream this perfectly on my Android 2.3 stock browser.

For you, I'd suggest you do the following :-

Download MX Video Player FREE (and a suitable codec for your phone)
Enter the URL rtsp://128.112.131.181:554/blackboard/cs/additive_combinatorics/1_luca_trevisan_350k.rm in your stock browser.
You'll see something like :

 The above URL for lazy beans:

Click on the MX Video Player and your video should load properly. duh! :D


What does downloads mean in Google Play store app page?

It's the total over the life time of an app.
In 2017, Google Play Services was the first app to reach 5 billion downloads.
The important point from the article is:

  If you're not familiar with how the Play Store works, it's important to note that Play Services hasn't actually been manually downloaded that many times. When someone logs into an Android device with their Google account, Google Play marks the pre-installed apps as downloads. So in reality, this means over five billion devices with Play Services installed were used at some point.

Whether an app was downloaded directly via Google Play or whether it was installed by a manufacturer, Google Play Store counts both occasions as downloads and adds them to the total.

With Google's announcement that there are 2.5 billions (excluding China and Amazon's FireOS) active devices running Android, the number of downloads shown on the app's Google Play page can be skewed if it comes already installed on the devices.


How to modify display on/off behaviour in non-standard ways (e.g. keep it from ever turning off)

Using a app called privset you can change the dream settings to work on battery also, search for dream. Additionally, check out tasker, you can hijack the power button to daydream


I Change mi ROM of SM-G935V to SM-G935U and all Verizon applications have been removed.

I share the ROM link in case someone wants to change it.

SM G935U


Reduce space between icons on home screen without changing icon size

Reducing the gap also reduces the sizes. If you are using the default launcher Trebuchet, you should also see Custom in the Grid Size settings. Clicking it allow to set the number of icons per columns and rows. Select a high number for colums and rows.

Confirm your choice, then go back to the Home screen and rearrange the icons. You will be able to fit as many icons as you selected in the settings. The gap between them will be reduced.

If 7x7 is not enough, you can use other launchers. Nova launcher for example allow a 12x12 grid.

Note: I am not related to Trebuchet nor Nova launchers developers.


How to Install Android Apps to the SD Card by Default

After Android Tools Update command adb shell pm setInstallLocation 2 has been changed to adb shell pm set-Install-Location 2

Updated Tutorial can be founded here.


Is there a good USB debugging toggle widget for Android?

Here
installer for easy installation or
 widget only for manual installation

INSTALLATION INSTRUCTION

Prerequisites:

You must be rooted
You must be able to write to /system/app/ folder. USB Debugging is a "Secure" setting, so this widget must be installed as a system apps. It will not work if you install to the standard install location even in rooted device.

Easy Instruction (Recommended)

Nico have written an easy-to-use installer to automate installation to /system/app/; download it here and run the installer app.
Add the widget to your home screen like regular widget.

Manual installation

If the easy instruction doesn't work, try the manual installation:

Download ADBWidget.apk and save it to your computer
Copy ADBWidget.apk to /system/app

Method 1 -- Using Android Debug Bridge (ADB)

Remount /system/app to read-write (see Additional Instructions section below)
adb push ADBWidget-x.x.apk /system/app/ADBWidget.apk (replace x.x with the appropriate version number)
Remount /system/app to read-only

Method 2 -- Using Recovery's update.zip (have not been tested yet)
Method 3 -- Using Root Explorer (have not been tested yet)

Add ADBWidget to your home screen

Upgrade Instruction

If you're upgrading from a previous version, you do not need to do all of the above again. You can simply install an update on regular application directory by using regular installation methods (e.g. opening the apk from a file explorer). As long as there is a previous version of the widget in the /system/app directory with the same signing key (i.e. my key, if you used the apk download above), Android will give the updated version in /data/app the same permission.

USAGE INSTRUCTION

Click on the widget to toggle USB debugging. Blue USB icon means that USB debugging is inactive, red USB icon means that USB debugging is enabled.

UNINSTALL INSTRUCTION

Since the widget is installed to /system/app, you cannot remove it using standard application uninstaller. So, simply delete the .apk from /system/app.

su
remount /system as read write
rm /system/app/ADBWidget.apk
remount /system as read only

ADDITIONAL INSTRUCTION

Remounting /system/ as read-write

Open "Terminal Emulator" or "adb shell"
Get root permission, type su
Get the device name, type mount | grep /system
You should see something similar to:

/dev/<device-name> on /system type rfs (ro,codepage=utf8,vfat,fcache(blks)=128,xattr,check=no)
Take note of the <device-name>, and type: mount -o remount,rw /dev/<device-name> /system

Remounting /system/ as read-only

Step 1, 2, 3, 4 same as above
type: mount -o remount,ro /dev/<device-name> /system

TROUBLESHOOTING

Sometimes the widget froze and do not responds to clicks. If this happens, removing and re-adding the Widget usually will fix the problem.

NOTE

Don't complain about the ugly default icon and widget button, but if you can send me a better icon/widget image, I'd be happy to add it. Now we have an icon, thanks to @Jay.
Do not trust strangers that asks you to install an application to /system/app
Tested on Samsung Spica i5700 SpicagenMod Froyo.


Hide files from WhatsApp's possible attachments

Settings → Apps → Then make sure you set the filter to see all applications (include system).

Find Media Storage in the list and then press "clear data". Reboot. Wait for a while for database to regenerate.  That should fix the thumbnail problem.

The new directory created should have .nomedia added to it or the folder name should start with a . (dot), before doing above step ,  else you will have the earlier problem of hiding photos


Is it possible to "share" google photo shared albums without making it public for everyone?

Unfortunately, this does not seem possible with the current version of Google Photos.

I recommend you suggest a feature by:

Opening the google Photos app or going to photos.google.com
At the top left, touch or click the menu icon > Help & Feedback (or Send Feedback)
Touch or click Feedback.

Source: How to get feature requests/feedback to the Google Photos team


Recover data from SM-N900 - Heimdall/Odin help

After burning midnight oil (5 hours straight!), finally I could get Odin to flash TWRP! I had to do 2 things:

Not use the .tar directly, but extract the .img and then use a .bat script (found on XDA forums) to convert it to .tar.md5
Get the latest version of the TWRP recovery: twrp-2.8.6.0-ha3g

(But I'm not very sure why the original .tar didnt work, though!)

Odin version used: 3.10.7


It just sounds like the plug is a little loose in the socket. This can often happen with cheaper USB cables. Just try a different USB cable and you'll probably get a snugger fit.

It's entirely normal that the phone charges more quickly when you're not using it. When you're using it, you're draining the battery at the same time as trying to charge it. It's like trying to fill a bath while the plug's out.

  If somebody know what I can do, I would be very thankful

You don't need to do anything. Your phone is working correctly.


Is there an app to take a photo and add a comment to it

Catch notes should accomplish this very well. They even have a widget that allows you to take a picture and go straight into their editor to comment and add notes. Highly recommended. They also have a web counterpart which may make viewing/managing your notes easier.

https://market.android.com/details?id=com.threebanana.notes


If you are rooted and have a custom recovery, then you can format data from there


How can I customize notifications in Android Lollipop?

Use GravityBox with Xposed Modules. You can basically remove the notifications of the apps which show frequently.

GravityBox


Nexus 4 charging/uncharging while plugged in

This is likely a hardware problem. Check your connection, if not power circuit...


How to take a screenshot on Android 4.4.2 on a Nexus 4?

If the buttons don't work, you could always try using ADB from a computer. Root is not required but USB Debugging must be enabled. Then just run:

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

These commands will produce a screenshot and save it in the sdcard directory (on some devices, including the Nexus line, have an emulated sdcard partition in the internal storage; so don't worry about this), pull to your computer, and then deletes it from your phone.

Unfortunately, one would think that this would be easier on stock Android. But that's why so many aftermarket versions or apps exist: to provide the missing functionality that people can cherrypick from and customize as they please. Below is an example of a simpler and nicer interface from which to take screenshots, which was added to stock 4.4.3 Android using GravityBox [KK] (root and Xposed required).


First thing you do is fully wipe your phone data/Factory Reset.

Still get random reboot? Check your Xiaomi ROM you used. It's Global,China, Global Dev, China Dev, or Distributor ROM

How to do that? Go to Settings - About Phone - MIUI Version
If your ROM is distributor version, the version code will like 66.44.33 If it's BETA ROM the version name will be MIUI 7.3.2 | Beta and for the global is MIUI 8.3 Global

After you know what's ROM inside your phone. you can re-flashing the ROM that you can download here

How? after you downloaded the ROM, move the downloaded ROM into your phone storage then open Updater App, click the three dots button on the top right side than choose Update package, selected the ROM you have been downloaded. Start flashing wait till finished. Your data will not be wipe if you on the same ROM version BETA - BETA or Global - Global

IF your ROM is Distributor version you must search the same China ROM version like your Distributor ROM version.


Why does the Samsung S60 draw so much power?

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


Can I use my PC as an audio device for my Android phone?

A good app for this is BubbleUPnP for DLNA/Chromecast

Unlike other media server apps, it supports a lot of devices:

Chromecast, Chromecast Audio, Nexus Player, Nvidia Shield, and other Google
Cast devices
DLNA TVs and music receivers from popular TV and HiFi brands
Xbox 360 and One, Playstation 3 and 4(**)
Amazon Fire TV and Fire TV Stick
local Android playback

It possess both media servering and rendering functionalies so your audio will be pushed to the playback DLNA device e.g TV and can do vice versa.

Unfortunately you'll need root to enable Audio Cast, and the popular Xposed Framework tool BubbleUPnP (Audio Cast)  as well. You don't need to download an extra module - the Xposed module for Audio Cast is included in the standard BubbleUPnP app.

Credits

BubbleUPnP


After removing old system app and installing the new version, it forces close

I cannot say for all apps you listed -- but for some, the following applies:

Some system apps (as e.g. the market/playstore app) have to be present in /system in order to work. For the Playstore app, the reason is: The permission to install other "packages" is only granted if one of the following two conditions is met:

it is signed with the same certificate as the system (ROM) itself -- which does NOT apply in your case, due to the custom ROM used
it is installed as "system app" (i.e. below /system) -- which did no longer apply in your case, since you uninstalled the app from there

Expecting the pre-conditions given, developers might have forgotten to include a check and implement appropriate exception handling -- which then may lead to the described force-close.

Similar constellations might apply to other apps/packages as well -- though I'm not sure what should make the Google Translate app so special (maybe it has some special hooks I missed).

You could try to find out by following Roxan's advice, to integrate the app as "system app" again using e.g. Titanium backup, and see if it still force-closes.


Enable wallpaper scrolling for HTC Sense 4+

I have a HTC One X too, and I hadn't noticed yet that wallpaper scrolling is not working anymore. After some searching in the settings, I haven't found the solution to your problem. So I think that I have to conclude that there is no option to restore this functionality.

Reverting back to previouse Sense versions is not an option as far as I know. Rooting is an option, but I guess that this will not fix the problem, though I cannot really say for sure it will or will not.


How do I delete just one specific auto suggested URL from android chrome browser

Holding down a suggestion will ask the user if it should be removed from the browsing history, and therefore removed from the suggestions.

If holding down on a suggestion does not bring up the prompt, then make sure you have typed some matching text in the URL bar. The default suggestions for an empty URL bar, or for a newly selected URL bar, do not respond to the press & hold in the same way (Experienced on Chrome 52.)

I tested this on Chrome for Android 51.0.2704.81 and Chrome Beta for Android 52.0.2743.49.


I clicked on an anti virus scanner pop up on my android?

Short answer
You did the right thing, and don't need to be afraid. That popup was most likely caused by some Javascript on the visited web site to make you download/install something really bad. It doesn't mean you're infected.
Explanation
There are a couple of things to consider. First, if the popup really said "you have a virus", your reacting was fully correct (and the popup bluntly lying): There are no viruses for Android, at least not "in the wild". I know, the term got mixed up, and when speaking about Anti-Virus people really mean "an app against all kind of malware". But no serious AV app would speak of "you have a virus", as that's technically incorrect.
Mixing in your "fear" from the second paragraph here: exactly that's what matches a virus definition, and makes it different from all other kinds of malware: the ability to "multiply itself". As you 100% sure have no "virus" on your device, no need to be afraid about that.
For details on the above, please see e.g. Wikipedia:

the defining characteristic of viruses is that they are self-replicating computer programs which install themselves without the user's consent.

There you see why a virus is close to being impossible: on Android, the user is always asked for his "consent" when something is installed.
Now for the last part: Who should have caused that popup? Do you have any AV app installed and active? Your question does not suggest such. So if you have no such app installed, who should have popped up that warning? Android doesn't do that. So the most likely candidate was a part of the site you've visited. That's rather so-called Scareware trying to make you install something bad. Believe me, you did the right thing – and would possibly have been in trouble if you had acted differently.


Are GPS coordinates more accurate if they are fetched at a small interval

Not really.

It's more accurate the more satellites it's receiving. On a shorter interval, it's most likely that more satellites are received, compared to just restarting every minute.

Also, it depends on your location. On a flat field, you will receive a lot of satellites fast, whereas close to buildings or houses, it will also take longer.

What I measured is that you could check the accuracy of the received location. If it's equal or less then 10m, the location could be used. If it's bigger, then wait until you receive a more accurate location.


How to sync gmail sent only by specific contacts?

Give this a shot. http://www.howtogeek.com/171178/how-to-get-notifications-for-only-the-emails-you-care-about-with-gmail-on-android/

It's not exactly what you want, but it should only notify you when you get an email from those contacts. If this does work for ya. I'll edit my answer and detail how to do this, incase the link goes inactive at some point. Hope this works out for ya.


设置 (Settings) - 语言与输入法 (Language & input) - 语言 (Language) - English (United States) (or any language you're looking for).


Look in /system/app/ for com.sonyericsson.extras.liveware.apk or similar.  Remove it and any .odex file with the same name if present and that should get rid of it.  (Note that I have no idea if this is required by the system or will otherwise screw up your phone, so do it at your own risk.)


There is a Genymotion on-Demand available in AWS Marketplace to get Android emulated directly using AMI (support for Android 5-7).

  Genymotion on-Demand for AWS, based on industry-leading Genymotion, is Android operating system on EC2.

Check Genymotion on Demand Tutorial for further details.


How do I download a keyboard on a phone without a keyboard at all

Use an otg-cable and use an USB keyboard


How to only get Gmail notification with certain tag(s)?

You don't mention what version of the app you're using or which OS version, but this is how I do it on my Galaxy Nexus with Android 4.0.

Open Gmail app
Open the overflow menu (three vertical dots) and choose Settings
Tap the email account you want to use
Under "Data Usage" tap "Manage labels"

You'll see your labels there, including "pseudo-labels" like "Starred" and "Important"

Tap the label for which you want notifications (in your case, "Important")
If not already on, turn on Sync messages (either last 30 days or All)
Tap the checkbox for Email notifications

Choose your options (ringtone, whether to vibrate or not, whether to notify once or not)

You can have different notifications per label per account, which is nice, but if you overdo it you'll have way too many notifications in your notification bar.


Unable to set tablet display mode to HDMI

After hours of searching on the net and string of emails with the customer care I received a call from a member claiming to be from the technical team. The end result of the call was that there is no HDMI setting in the settings panel and the only way to display content on to the TV using HDMI is through the stock "Vortex" player, which basically has no options than to change volume, display mode and the tracker. I couldn't find any info on this player's version or if there's any update for it that could help. Also my search for some effective alternative like RealHDMI for DroidX almost has hit a dead end. Marking this as answered to serve as information source for people who buy this product and hope I might receive some effective alternatives in the future.


Unlikely such a site exists and is complete. See the two links in this answer: The first currently covers 1718 apps, the second ~7,350 apps. My own site currently covers ~13,000+ apps (from multiple sources: GPlay, F-Droid, Aptoide "Apps", Xposed Repo).

Google Play covers >1 Mio apps, and I have a lot of apps not covered there (so do F-Droid (~1,800 apps) and Aptoide (~90,000 apps in their main repo, plus tons more in other "user-repos"). Then there are those apps offered outside of stores at all, e.g. only on the website of some company.

All that's left is typing the package name (surrounded by quotes) into a search box (Google, DuckDuckGo, whatever) and see what pops up. As you're specifically after malware: those results sometimes include links to scan details by several known anti-X companies, which are interesting (but not easy to read).


What you wish to change is the device's hostname. On certain ROMs such as LineageOS, you may do so via the Device hostname setting, located inside the Developer options. You can access them by typically tapping the Build number information, placed inside the About phone setting, seven or more times.

If the Device hostname setting is missing, you may achieve the same result by either using a computer and sending commands via adb, or by installing a terminal emulator app.

While I won't cover the topic of setting adb and USB debugging on, the command to use with adb is

adb shell "setprop net.hostname <hostname>"

If using a terminal emulator, instead, the command to use is

setprop net.hostname <hostname>

In both cases, replace <hostname> with a name of your choice, and press the Enter key to run the command.


Disable or prompt VoIP calling on Android Whatsapp

Go to the contact. Open a message thread by tapping,  then tap on the nam/number to view contact. At the top right (on Android) is the menu button. Tapping it brings up the option to 'view in address book'. This is the only way to do it right now.


Can someone explain how slots work when overclocking?

Each slot refers to a specific clock speed that your phone's kernel allows (in your case, 400mhz to 1.1 ghz). Therefore, these clock speeds can vary between different kernels (different values or even more slots).  In the case of the Droid X or Droid 2, you are stuck with the stock kernel due to the locked bootloader.

I'm more familiar with using SetCPU.  SetCPU lets you manually choose which clock speeds you want your phone to run at.  You choose a min clock speed, a max clock speed, and how you want it to scale (ondemand, performance, etc.).  You can also setup profiles with SetCPU that allows your phone to run at certain clock speeds under certain conditions.  For example, you would want to lower you clock speed when the phone's screen is turned off.  You may also want to lower the clock speed when your battery is below a certain battery % to try and pro long battery life as long as possible.

If you're wanting to conserve more power, set the clock min and max clock speeds low.  If you're wanting better performance, then set them higher.  On my phone (Droid 1), I use an undervolted kernel and typically run at a 250mhz min, 600 mhz max clock speed to conserve battery.

If my answer doesn't fully answer your questions, leave a comment and I'll try to help you further.


Can I make Google Play not run a background process (on CM10)?

I think Google Play is bundled with some services that requires for another applications.
 ie : Applications that uses Google Cloud Messaging (GCM).

According to this link: http://developer.android.com/guide/google/gcm/gcm.html

  GCM requires devices running Android 2.2 or higher that also have the Google Play Store application installed....

So basically, Google play is not there only for install a new app or check for updates etc.. So I think it's better to leave it as it is.


Samsung phones that are running TouchWiz (Samsung's fork of Android) do not support native themeing, as is the case with other manufacturers such as Sony and Acer. You can check if you're running TouchWiz by dialing *#0*# on your dialer - if a new screen appears, you are most definitely running TouchWiz.

To achieve support for the theme apps you see on the Play Store, you need to install or flash a custom Android ROM, such as CyanogenMod and ParanoidAndroid.


Samsung Galaxy S4 verizon stuck in bootloop

The easiest way with a Sumsung device to fix a "soft-brick" is to use ODIN and flash the stock firmware. You may be able to find stock firmware that is already rooted if you want that.

You can look at "Where can I find stock or custom ROMs for my Android device".

More information on what all the checkboxes mean in the ODIN tool.

Since you are on linux, you cannot run ODIN as it is a Windows only tool. However, you can run Heimdall, which is an open source version of ODIN that a group of developers have created. Heimdall uses the same protocols as ODIN, as it is basically a reverse engineered version of ODIN that is designed to be supported by the community and run on multiple platforms.


I would NOT RECOMMEND using a ROM that was not built to go with your specific device. If you use a ROM that doesn't go with your device, even if the ROM goes with your device on a different carrier, you risk bricking the device. Make sure that your device specs match EXACTLY to the ROM specs.

Rule of thumb when it comes to ROMs:

  close only counts in horseshoes and hand grenades.


How is the default screen orientation in android specified?

It's possible to override the default screen orientation by disabling accelerometer rotation and setting user rotation in the system settings database. The phone/tablet needs to be rooted to do this. The change is applied after the phone/tablet is rebooted.

On the console:

su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name,value) values('accelerometer_rotation',0);
insert into system (name,value) values('user_rotation',1);
.exit

user_rotation 0 -> ROTATION_0
user_rotation 1 -> ROTATION_180
user_rotation 2 -> ROTATION_270
user_rotation 3 -> ROTATION_90

See http://developer.android.com/reference/android/provider/Settings.System.html#USER_ROTATION for more details


How to get out of stuck boot animation?(Android One)

You might have to flash the Factory Image now using SP Flash tool. I have provided a link below, but confirm it's for AQ501. Alternatively, you can also try flashing the stock recovery.img for your phone.

Warning - You might lose data!

Source - http://forum.xda-developers.com/canvas-a1/development/official-stock-rom-canvas-a1-t2887150


copy my exchange server settings password

If you are talking about the stock Email app, there is no way to show the password. This is for your privacy and security. You don't want people to be able to see your password if you lost the phone, especially if don't use a PIN- or password-enabled lockscreen.

The best way to resolve this issue is to contact your company's IT Support, and request for a password change.


Are Xoom files automatically transferred to a newly added microSD card?

The files on the SD card are most likely there from the previous handset.  Android won't automatically move any files when it detects a new sd card.


How to increase headphone loudness beyond 100%?

If you have one of the supported phone models:

There's an app called voodoo sound.

Voodoo Sound in Google's Play store
Downside: Requires a custom kernel, only for supported phones (see description in market)

The paid app comes without a requirement for a custom kernel (but needs root)

Voodoo Sound Plus

Both replace the audio codec's driver and allow fine tuning and to turn on formerly unused chip features (see description).


How long does a posted review last on the Android store?

If you try to leave a review again from the same account, does it let you?  Does it show the previous review, or act like nothing has been input before?

Reviews shouldn't age off (unless they're removed for profanity or other reasons), but some developers have noted that ratings suddenly disappeared from their app.  Maybe it was a one-time bug.


ConnectivityExtension: ConnectivityExt jar file not present

After some searching around, it turns out ConnectivityExt is a proprietary Qualcomm file (source - you can see that it is included in the proprietary-files.txt in LineageOS), related to the Qualcomm package com.qualcomm.qti.tetherstatsextension.tetherstatsreporting. I found some code  for this here, line 107 onwards. As it seems to be about TetherStatsReporting, maybe it is related to hotspot? Considering it is proprietary I do not think you can do anything about it.


How can I check which CPU chipset do I have?

First you'll need to find your device's Model Number.

You can find this in Settings > About Device, under the field Model Number.

It may look something like: SM-G930F.

If your device is in a state where you cannot navigate to Settings > About Device, please refer to the bottom of my post for alternative methods to lookup your model number.

Once you've found your model number, you can look up its chipset in my source, or in the tables below:

Samsung Galaxy S7 SM-G930

╔══════════════════╦════════════════════╦════════════════════╦════════════════╗
║ Country / Region ║ Cell Phone Carrier ║    Model Number    ║    Chipset     ║
╠══════════════════╬════════════════════╬════════════════════╬════════════════╣
║ Canada           ║ BELL MOBILITY      ║ SM-G930W8          ║ Exynos 8890    ║
║ China            ║ ALL                ║ SM-G9300, SM-G9308 ║ Snapdragon 820 ║
║ Europe           ║ ALL                ║ SM-G930F           ║ Exynos 8890    ║
║ Korea            ║ KT                 ║ SM-G930K           ║ Exynos 8890    ║
║ Korea            ║ LGT                ║ SM-G930L           ║ Exynos 8890    ║
║ Korea            ║ SKT                ║ SM-G930S           ║ Exynos 8890    ║
║ Southeast Asia   ║ ALL                ║ SM-G930FD Duos*    ║ Exynos 8890    ║
║ US               ║ CRICKET            ║ SM-G930AZ          ║ Snapdragon 820 ║
║ US               ║ AT&T               ║ SM-G930A           ║ Snapdragon 820 ║
║ US               ║ METROPCS           ║ SM-G930T1          ║ Snapdragon 820 ║
║ US               ║ LTE RURAL VERIZON  ║ SM-G930R6          ║ Snapdragon 820 ║
║ US               ║ C SPIRE WIRELESS   ║ SM-G930R7          ║ Snapdragon 820 ║
║ US               ║ SPRINT PCS         ║ SM-G930P           ║ Snapdragon 820 ║
║ US               ║ T-MOBILE           ║ SM-G930T           ║ Snapdragon 820 ║
║ US               ║ US CELLULAR        ║ SM-G930R4          ║ Snapdragon 820 ║
║ US               ║ VERIZON            ║ SM-G930V           ║ Snapdragon 820 ║
║ US               ║ UNLOCKED           ║ SM-G930U           ║ Snapdragon 820 ║
╚══════════════════╩════════════════════╩════════════════════╩════════════════╝
* Dual-sim

Samsung Galaxy S7 Edge SM-G935

╔══════════════════╦════════════════════╦═════════════════╦════════════════╗
║ Country / Region ║ Cell Phone Carrier ║  Model Number   ║    Chipset     ║
╠══════════════════╬════════════════════╬═════════════════╬════════════════╣
║ Canada           ║ BELL MOBILITY      ║ SM-G935W8       ║ Exynos 8890    ║
║ China            ║ ALL                ║ SM-G9350        ║ Snapdragon 820 ║
║ Europe           ║ ALL                ║ SM-G935F        ║ Exynos 8890    ║
║ Korea            ║ KT                 ║ SM-G935K        ║ Exynos 8890    ║
║ Korea            ║ LGT                ║ SM-G935L        ║ Exynos 8890    ║
║ Korea            ║ SKT                ║ SM-G935S        ║ Exynos 8890    ║
║ Southeast Asia   ║ ALL                ║ SM-G935FD Duos* ║ Exynos 8890    ║
║ US               ║ CRICKET            ║ SM-G935AZ       ║ Snapdragon 820 ║
║ US               ║ AT&T               ║ SM-G935A        ║ Snapdragon 820 ║
║ US               ║ METROPCS           ║ SM-G935T1       ║ Snapdragon 820 ║
║ US               ║ LTE RURAL VERIZON  ║ SM-G935R6       ║ Snapdragon 820 ║
║ US               ║ C SPIRE WIRELESS   ║ SM-G935R7       ║ Snapdragon 820 ║
║ US               ║ SPRINT PCS         ║ SM-G935P        ║ Snapdragon 820 ║
║ US               ║ T-MOBILE           ║ SM-G935T        ║ Snapdragon 820 ║
║ US               ║ US CELLULAR        ║ SM-G935R4       ║ Snapdragon 820 ║
║ US               ║ VERIZON            ║ SM-G935V        ║ Snapdragon 820 ║
║ US               ║ UNLOCKED           ║ SM-G935U        ║ Snapdragon 820 ║
╚══════════════════╩════════════════════╩═════════════════╩════════════════╝
* Dual-sim

If your device is in a state where you can't get as far as Settings > About Device, then you can resort instead to rebooting into recovery mode or into ODIN mode.

Recovery mode displays the model number SM-G930F like so:

Android Recovery
MMB29K.G930FXXU1BPHJ
samsung/heroltexx/herolte
6.0.1/MMB29K/G930FXXU1BPHJ
user/release-keys

And ODIN mode displays the model number SM-G930F like so:

ODIN MODE
Download speed: fast
Product name: SM-G930F
Current binary: Samsung official
System status: official
FRP lock: ON
Secure download: enabled
Warranty void: 0 (0x0000)
RP SWREV: B:1 K:0 S:0


Difference between 'Administrator' and root privileges

Device Administrators are apps which the user grants certain privileges. For example:

Password policies (minimum length, expiration time, etc.)
Lock screen (say, after a given time)
Require storage encryption
Remotely wipe the device
Disable camera

And some other options, including the possibility to prevent uninstalling of the app.

So the difference is that with root you gain the possibility to modify the system at all levels, instead with administrator you can gain control over a limited set of options - which are of course available to root.

Another difference is that administrator permissions are built-in in stock Android and available to apps developer through the dedicated API.
You can see which permissions are granted to which apps and revoke them by going to Settings -> Security -> Device administrators.


Is the battery cycle count stored on the battery or the device?

It seems the issue is that when the battery is replaced, most mom and pop places don’t have the skill or equipment to go in the “root” to reset the counter. It’s akin to not resetting the change oil light on your car. The issue is that some cars use oil life to make other decisions on engine operation, so without resetting the light, performance isn’t fully restored because the computer thinks it’s still old oil and making its decisions based on that. Your battery life, auto shutdown, and battery life remaining display are kind of the same. I bet your phone goes to zero faster than you expect and shuts off, but after leaving it off for a while, you can cut it back on and it’ll show 20-30% or more battery. If so, the thing to do is to keep draining the battery without plugging it in, until after sitting the phone doesn’t even have the juice to try to start, then charge it up to 100, preferably on regular vs fast charge. The life monitor will adjust to the new high and low, and you should have better battery life performance. What’s happened is your phone is basing the full charge and dead capacity off your old battery still, and this process should force it to adapt to your new one.


Disclaimer: Haven't tried out this proceedure since my device is not current supported.

Requirements:

Magisk (or TWRP)
MIUIcamerav2_whyred (magisk module)

Since you have a rooted device I'm assuming you have magisk installed already, if not then install it, as it will make the work easier.

Basically you need to download the module MIUI Camerav2 port (from Mi A2 series) and flash it in recovery/via magisk manager.

  Notes: For  MIUI based ROM, the packages are a simpler version
  because there is no need to install another camera, stock one is
  already MIUI Camera v2. The mod just enables more functions in the
  stock app (you can see from the function list what is enabled and
  what is stock). Depending on the MIUI version there are more function
  like
  60fps available.

If camera don't start check permission, try to clear app data (it will reset permission too).
If still not working wipe cache and dalwik from TWRP.


Why do I only have 304 MB of available storage space?

I will try to answer my own question here. The short answer is: get a ROM that just works! (No, not a room, a ROM! Get a ROM!)

Here is the same screenshot image of the SD & phone storage menu, this time with a ROM called SuperNova. You can find an installation guide here.

As you can see from the image I now have 1.86 GB of internal storage space. No additional apps have been installed yet, except for some apps that came with the ROM, and the stock HTC apps that came with the phone.

How-to

You will need root and S-OFF before you continue. It's also possible to install this ROM with S-ON, but it will require some additional steps, for more details see the developers website. You will also need a custom recovery like Clock Work Mod (CWM) or 4Ext Recovery. The latter is recommended. You will also need to flash stock HBOOT, if you don't have that already. You will find the stock HBOOT on AlphaRev website.

Go to the download page of developers website.
Download "SuperNova 2.4.0.1 Extreme ROM". You will see at least three mirror download links. Here's one direct link to Dev-Host.
Power off the phone.
Enter HBOOT on the phone.
Enter recovery (I used 4Ext Touch Recovery).
Format and partition the SD card with one Ext4 partition and one FAT32.
Power off the phone and take out the SD card.
Mount your SD card to the computer.
Copy the Supernova_2.4.0.1_signed.zip file to the SD card.
Put the SD card in the phone.
Enter recovery and choose "update from zip".
Select the file above. This will now flash the new ROM.
Reboot the phone. First boot will take longer time than usual.
When you get to the setup wizard, skip setting up a Google account.
Reboot the phone. You will see a blue LED go and off. This means Data2SD is loaded and working.
Now you can setup your Google account and Wi-Fi, and what not.

Remember, complete installation instructions can be found here. That web page can be overwhelming, especially for newbies, which is why I tried to put it in a more condensed form here.

If you run into the "Download was unsuccessful please try again" message when downloading apps, this means that the app you're trying to download is too big and the Android Market cache is too small. This problem is covered in the FAQ at developers website, it's question 28.

The suggested workaround involves using Scriptmanager app and a script, and this must be done every time you reboot. But I have found that installing the latest version of Play Store (replacement for Android Market) manually solves the problem permanently.

Here's a short how-to on that too.

Download the APK file for Play Store.
Connect the phone to the computer. If prompted, choose to mount as
disk drive.
Copy the APK file to the SD card.
Disconnect the phone.
Go to menu, settings, applications, and enable unknown sources.
Start a file manager app (I used ES File Explorer, but ASTRO is good
too).
Browse to the file (/mnt/sdcard/) and tap it to open. You'll be
prompted if you want to replace a system app. Tap OK to continue.


You can try to reset your phone or try WhatsApp Plus instead of normal WhatsApp.


Android tablet separate user account - app installed once or multiple times?

The second user will have to explicitly install the wanted app (in your example: Facebook) – as otherwise all accounts' app drawers would be cluttered with a bunch of apps not wanted by everybody, except for those who installed them. But if the app already had been installed before by another account, it will rather be a "fake install" (i.e. it appears as if the app would be installed anew, but it's not downloaded again from Playstore, and thus doesn't consume "double space").

One side-effect to that is: whenever a user decides to update the app, that update applies to all other accounts of the device as well.


No, that is not functionality that standard Android phones have. While it's not outside of the realm of possibility for a manufacturer to add this functionality, I've never heard of it being done.


Cannot install any Custom ROMs on Xperia Ray ST18i: assert failed: getprop Status 7

You have to install the boot image that is included in the Cyanogenmod ZIP file an flash that in fastboot:

Connect your device with Vol-Up While plugging in the USB-Cable

fastboot devices

Seeing your serial number means we know all is good.

Now type these commands:

fastboot erase system -w
fastboot erase boot

then copy the boot.img in the same folder as fastboot.exe and type

fastboot flash boot boot.img
fastboot reboot

Now press the Vol-Down Button to enter the Recovery Mode again and install your image


How can I set some handy settings on the main screen?

You can add the Power Control widget to the home screen to control those functions. Open the app drawer, find the Power Control widget, long press and drag it to the home screen.

There are also many widgets in the market that offer expanded functionality when compared to the stock widget.


Looking for a network monitor that can enumerate outbound connections

Opensource Network Log (Play) app does exactly that. The features are:

real time log display
hostname resolving
per app view
filters based on app name, hostname, port

It needs root and busybox.


Are Apple headset volume control buttons not compatible with Android phones?

I tried this a while ago and they didn't work for me either. So no, Apple stuff won't work on Android phones.


Move apps and games in Sony Xperia M to SD card

To move my apps and games to my SD card I use the app AppMgrIII. I have had no issues so far.


Internet problem in Samsung Galaxy S2 after updated Android 4.0

I had the same problem opening attachments (.doc) in email.

I tried clearing the cache - didn't work, but ...
Under Settings ... Applications ... view all ... Internet ... Scroll down to "Launch By default", and click Clear defaults.

Next, when opening an attachment, select chrome and Just once (or something other than internet).

Worked for me !!!


From my experience I would guess you've bought a device imported by a private store rather from a local carrier, the people where you bought it should have replaced the stock rom into a hebrew supporting one after opening the package. I had the same thing done to my device after purchase and it won't void your warranty in any way.

either ask them to do so or just root your device and flash a hebrew rom from the web (may void warranty).


FTM = Field Test Mode

Try removing the battery to turn the device off. Replace the battery and then turn the phone back on and you should be out of FTM.

FTM, i believe, is usually entered by holding a button combination down when turning the phone on. Sounds like you accidentally figured out that combo when you turned it on. It could be as simple as "holding the power button while turning on".


It might be possible by modifying su  source code. You can modify so that some commands require a password such as the shell. Create your own custom su based on the device.


How do I make a backtick with a bluetooth keyboard?

Figured it out: finally:

hold Function + L


How can I automatically reject some types of calls?

Try blacklisting the phone no. Long press the phone no. in the Call Logs and select 'Add to Blacklist' option.


My messaging application sometimes closes itself while typing - How can I fix this?

You can try to investigate this issue more deeply based on system logs. Install some application to grabbing logs from device (for example SendLog). When you application crashes, then grab system log in which should be placed callstack started in your application.

Getting logs should be done asap after crash, because these files rotate.


Can I install a firmware from a different country on my phone

If you find the correct firmware (created for another country but for the same device) yes, you can.
I made it several times with a Samsung S4 mini.

Take in mind that due to country regulations, the firmware may be limited in some ways (lower wifi potence, max volume limited, etc...).


Can we install the stock ROM for P3110 on P3113? (7 inch Galaxy Tab 2)

You can install it, but not everything will work properly. Most things should work, but not all.

Read the forum / thread from where you are downloading the ROM. If you are okay with a few things not working you can get it. Otherwise, you might want to wait till a ROM is ported out for your particular device.

You can read the XDA Forum thread What's the difference between 3110 and 3113? to know what people have got working and what didn't work for them.


How to make the page number in a PDF file match with the one inbuilt in the app?

Three options

Splitting the PDF file
Rearrange pages in PDF
Open the file on your PC to edit and transfer it your Android - not tried by me

There are many apps , ( thanks to Izzy)
that can do the first two options, but I would recommend Xolo PDF reader and editor which is versatile in handling PDF files. Besides, you can export edited files to drive.

Deletion:  You can delete those initial pages and export to drive or a different location in your device ( warning: make a copy of original file and use the copy to edit, since changes are permanent)
Rearrange pages: Select and drag the pages you don't want ( for instance pages with Roman numbering and put them at the end of document ). Save and export to Drive or use Xolo. Note- This is a feature which is free in this app unlike a paid option in other apps


How to format an SD card as adoptable storage on Android 5?

Your model ships originally with Android 5.1. Adoptable storage was introduced in Android 6.0 .

So even if you update to Android 6, is probably that you wont have the option.

Also some manufacturers, dont allow this option, so if the option doesnt appear, or the option to move apps to the sd card doesnt appear, the option is not available.
It happened to me on a Galaxy J5 2015 with Android 5.1 that got the Android 6.0 update, and still doesnt work.

Hope it helps.


My suspicion is that you might have flashed the wrong TWRP image. TWRP images are specific per device. Look for your device here:
https://twrp.me/Devices/

If you find the correct one, then reflash stock OS, then oem unlock, then flash new recovery.


Had the same situation, I rooted and installed some app management apps, and stopped autoruns of many apps like maps, games, etc. I also removed some stock apps that I don't use which runs in background like Samsung apps. I recommend "System Cleanup" app for this .


Bootloop after installing GApps in Lineage OS

Whenever I used LineageOS 16 I had to use the "other" recommended GApps package by LineageOS.
The so called "MindTheGapps" package.

See here: https://wiki.lineageos.org/gapps.html

MindTheGapps link: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
Mirror: http://downloads.codefi.re/jdcteam/javelinanddart/gapps

I realize they list OpenGApps there as well but for me, only MindTheGapps worked fine.
Ps.: LOS 17 never had this issue on the other hand. The phone I was using is a OnePlus 7 Pro.


Battery drain with in no time in Samsung Galaxy Ace

As we already have a lot of related answers to similar questions, just let me sum up here:

As said in my above comment, the screenshot does not provide much information without having related details available. All it says is: The overall battery consumption after ~14.5 hours is shared 50:50 by "Phone Idle" and "Cell Standby". Let's assume the battery level at that point is 80%, then each app had consumed about 10% of a full charge -- which could count as "normal". If on the other hand the battery level was 20% (or even less), it would be a bad sign -- pointing a.o. to bad reception (see: What is Cell standby and how can I keep it from eating my battery?) for the "Cell Standby" part.

I wrote we already have a lot of good answers on the "battery life" topic. Some are even listed in the "Related" (and now also in the "Linked") section of this question, as e.g.

What can I do to increase battery life on my Android device?
Is there any study on how which services/sensors consume the battery?

Many more can be found following the tag-link battery-life. Please follow those links for closer information.

As the "battery info" is giving you so few information, here's a hint to some helpful app: BetterBatteryStats. With that app, watch out especially for the "Wake Locks", as those keep your device from entering energy-saving modes. Check the configuration of the apps mentioned in connection with this (a good example could be an email app with a too-high polling frequency, where you e.g. could reduce the frequency from "every 5 minutes" to "every 30 minutes" to save a lot of juice).

EDIT: Another helpful app I just discovered is Battery Stats Plus, which helps you find the "evil apps" on your device. Brought to you by our friend at XDA Developers...


store data partition of an Android device for later flashing

You could create a nandroid backup. ClockworkMod does it well. That creates an yaffs2 img of the data & datadata partitions.

I think this might not be a great solution though, if you want to flash to another device. This will contain all the info in data (or data/data) and may cause issues if the version of android is not the same, or even if the device is different.


Songs from Google Play don't show up on phone

I found this link helpful for downloading Google Play music onto my Samsung Galaxy SIII.

https://support.google.com/googleplay/answer/1250232

Navigate to Google Play Store
Select Music
From the left soft key on your phone, select My music
From the upper left menu in Google Play (it should say Listen Now), select Playlist
Scroll to find the Free and Purchased playlist and select it
On the right side of Google Play, below the playlist image you should see a thumbtack in a circle. It will probably be grey.
Make sure you are connected to WiFi (to avoid using data) and select the thumbtack. It should turn orange and your download should start.

I have not found a way to download individual songs yet...


Cannot access all my folders from my SDCard via USB

You could try installing the Rescan SD Card! app and running it. You don't mention what phone you have sometimes you need to tell Android to scan the sd card to pick up changes.

This answer over at StackOverflow appears to suggest that sometimes the MTP cache gets out of date until a reboot of the phone or an app such as Rescan SD Card! is used. This no longer works as of Android 5.0.2, and a reboot of the device is the only fix.


Moving Apps From Internal Storage to SD Card

Not all applications can be moved to external SD card without rooting, but there is a way to make most of the apps install on the SD card. If I was to do this, I'd prefer having a faster SD card, of maybe class 6 or 10.

This command using Android Debug Bridge (ADB) can do the trick.

adb shell pm setInstallLocation 2

If you are new to ADB shell, you can refer this guide for the same: Click here. If you don't have ADB installed on your computer yet, take a look at Is there a minimal installation of ADB?

PS: This won't mean all apps will be installed on the SD card only, the application developers can overrule this setting you make if they want to. Plus apps using services or featuring widgets cannot be moved to SD card either.


There is no real firewall in Android, but this doesn't mean you are totally unprotected from the outside. (There are some measurements from the underlying Linux Kernel.)
Every app chooses it's own ports and decides weather the connections are encrypted.
Android apps usually do not open any ports, hence the there is not that much of a need for a firewall
Incoming data is often handled and transmitted through Google Cloud Messaging. (Here I don't know how it works and the data is transferred)


You can change the words in the user dictionary by going to Settings > Language and Keyboard > User dictionary. From here you can edit as you wish. There is another way mentioned here that may be easier for you: How to remove misspelled words from your Android Dictionary

"Maybe this is more obvious to everyone else, but the dictionary is accessible from the speech-to-text button. The gear icon actually means something! Long-press the microphone to get to the Touch Input settings menu. From there, click User Dictionary and edit out all your "well, crap, I did it again!!!" entries. You can also add entries (at the top), you can long-press an entry to edit, or click the red X to delete."

This is a good article that I have read before. Hope it helps!


Can I install Ruby and Ruby on Rails on an Android?

this can be done

Compile Ruby and Nodejs for android
Install on device and configure with c/c++ ide (You can use C4droid,CCTools,Terminal IDE.... for installing the expansion modules on с/с++)
Install rails ($gem install rails)

example:

(Click image to enlarge)


Why are these picture-related apps blank?

The problem was solved by installing Exposed via recovery instead of Magisk


How do I set unique ringtones for individual contacts?

There are many apps available for these tasks. But soon it becomes pain to have many apps running one for each purpose. At these situations, you can remove all those apps and use Tasker.  You can set the Tasker such that when your mother calls or sends a text it can play a preset ringtone - and it can even say the caller name or any predefined text. This is just a tip of the iceberg and there are so many things that can be done with it.

It is a bit complicated for the first use and involves a small learning curve. But once you are used to it, you can eliminate many apps and make your phone a true smartphone.

Note: I am not in any way associated with Tasker other than using it in my device.


How can I set my phone to display all Wireless Emergency Alerts silently, without playing any sound?

In the Emergency Alerts stock app -> Settings, there is an option "Emergency alert tone" with subtitle "Play a sample emergency alert tone."  When you do this, it plays the tone and a dialog says "The sound you hear now will be played when you receive an emergency alert.  The alert volume matches your phone's volume."  This indicates that you could avoid the alert sounding simply by silencing the phone.   There are also apps available for managing the volume settings according to other criteria.


As far as my knowledge goes, this will happen when you have security credentials or certificates installed, or when another app has administrator access and is preventing you from removing the lock. You can try going into your certificate settings to check if there are any certificates installed and make sure you don't have any apps requiring that you have a lock screen. If I recall correctly, there is a way to see a list of apps using administrator privileges as well. Good luck!


Disable the screenlock on Samsung Galaxy Tab with forgotten password?

Try Hard Reset.
To Hard Reset please follow the below steps.

With the device off, press and hold Volume Up, Power and Home button.
Release the Power button when you see the Samsung logo, but continue to hold Volume Up until the recovery screen appears.
Use the Volume buttons to navigate the menu and select wipe data / factory reset. Press Power to choose the selection.
Press Volume Up continue.

Note: These steps clear data from the device. SD card data like your photos and music are not erased unless you choose to format the SD card. You may have to lose some files, but some of them may be able to be recovered.


How can I root my Lava A97 Android 6.0 stock

Nowadays there is a lot of rooting apps and mostly depend on user's choice and ease. You may try the following apps since they do have a higher success rate when rooting.

CF-Auto-Root
Kingroot (Try Kingroot for PC if the apk method fails)

After rooting its up to you to find the SU management of your choice because there seems to be controversy around this topic (many users have complained of privacy invasion from some of the rooting apps)


LG V10 Phone stuck in BootLoop - recovery data

The bootloop bug is a known issue with LG V10. If you have insurance on the phone, even if it is out of the original manufacturer warranty, you can go to your local cellular provider and have them cross-ship a refurb replacement to you.
To get to your data before getting your phone fixed or replaced, here's a link to a very sound incremental methodology: https://appuals.com/fix-lg-v10-bootloop/

The best thing about this process is that you start with the simplest solution and progress, and you'll learn more about the Android OS capabilities along the way no matter what your final outcome is.


Mount PC folder on my android, then serve audio/video through my Android to my TV via USB?

There are definitely Android DLNA clients and servers which will allow you to share or receive videos or other media over a wireless network, see these previous questions:

DLNA enabled media player?
What can I do with DLNA on an android smartphone?
Can I get DLNA on my Droid?
What is the Android Answer to Air Video Server?

If you have a TV with a USB port, you should definitely be able to mount your phone's SD card as a drive and play the files on it (assuming they're encoded with codecs that your TV understands).

Also if you have a phone with video or HDMI out functionality you can play videos direct to the TV over a video or HDMI cable.

But, I don't think you'll be able to do things quite the way you describe. I don't know of any TVs that will mount a USB device as anything other than a mass storage device (USB drive) or a network adapter (normally only specific manufacturer approved adaptors), and it sounds like you want to stream movies via your phone rather than just play them from its storage. One problem you're going to face is that on an unmodified Android phone the moment you mount your phone as mass storage to one device (eg your TV) it's no longer accessible to other apps on your phone (such as whatever's receiving it from your PC).

TL;DR three realistic options:

Plug phone into PC copy movies onto SD card, unplug phone, plug into TV play as files
If your phone has TV-out, video-out or HDMI-out, plug your phone into the TV that way instead of USB and then either play from its storage, or from a streaming video client
If your TV is network connectible, use a DLNA client on your phone (see above question links) to push the movie from a DLNA server on the PC (eg Windows Media Player on Win 7, or Twonky server) to a DLNA compatible, network attached TV (or media streamer box attached to TV).


Cannot flash Qualcomm with Stock Image (Lenovo Tab M10 TB-X605L LTE, Android 8 Oreo)

Solution (for flashing Qualcomm based Android devices)
This seems to be an easy, fast and reproducable solution for flashing Qualcomm based Android devices (tablets, mobile phones), so it should not be limited to my device type. You should espacially read on if you have troubles with flashing an Qualcomm based Android device with tools like QcomDloader, QFIL, eMMC Software Download.
As I had troubles on Windows, so I switched to Linux, and it worked like a charm. The point is that Windows under certain circumstances seems to block some port communication.
tl;dr
Instead of Windows, use a Linux system with the Qualcomm USB flashing tool to flash your device.
Requirements
You will need

a stock image from the manufacturer (or any other image you like) for your device; I've found mine here
a Linux based system (eg. a Raspberry PI with Rasbian installed)
Required Tool: ADB and Fastboot (download and installation instruction below)
Required Tool: Qualcomm USB flashing tool for Linux by ndechesne, tonyMakkiel and ric96 (can be downloaded here)
Recommended tool: TWRP
your device, a free USB port and an appropriate USB cable (no special flashing cable required).

Furthermore, it could be possible that you have to be able to unlock your the bootloader if your device. I'm not sure about that, as I had unlocked my tablet before I found the working solution.
Step-by-step approach
Backup your device
Make a complete and reliable backup of your android device first.
Write down your serial number
My had device lost its serial number after flashing. I don't know if this has any further impact - I didn't recognize on. Maybe you should take a note of your serial number before flashing your device.
Unzip your image file
You need to unzip the image file. You should get many files, including

a *.mbn file (mine was `prog_emmc_firehose_8953_ddr.mbn`)
a *.xml file that contains information on how the image is the be assembled - mine was `rawprogram_unsparse.xml`)
a *.xml file that contains information on how the image has to be patched - mine was `patch0.xml`)

All of this files have the suit the chip type of your Android device - I highly recommend not trying this with files that were compiled for other chips.
Preparation on your Linux device
I've setup up my Raspberry PI 3B+ from scratch with Raspbian.
Install ADB and Fastboot on it:
sudo apt-get install android-tools-adb android-tools-fastboot
Download Qualcomm USB flashing tool for Linux:
git clone https://git.linaro.org/landing-teams/working/qualcomm/qdl.git
Change to the new qdl directory
cd qdl
and compile the software:
make
Return to the previous directory:
cd ..
Stop the Modem Manager (I've found this in one instruction - didn't do anything as I hadn't had it installed)
sudo systemctl stop ModemManager
Get ready to reboot your device in EDL mode
Option 1: You can still access your Android system
Connect your Android devices to your Linux system using the USB cable.
Start your Android device normally. Enable the developer options:

Open the Settings screen, scroll down to the bottom, and tap About phone or About tablet.
Scroll down to the bottom of the About screen and find the Build number.
Tap the Build number field seven times to enable Developer Options. Tap a few times and you'll see a toast notification with a countdown that reads "You are now X steps way from being a developer."
When you're done, you'll see the message "You are now a developer!"
Tap the Back button and you'll see the Developer options menu just above the "About Phone" section in Settings.
To enable USB Debugging, you’ll need to jump into the Developer options menu, scroll down to the Debugging section, and enable the "USB Debugging" slider.
Android will prompt you to allow USB debugging (unless you had already granted access for your Linux system before). Check "Always allow from this computer" and tab "OK".

Go back to your Linux system, and check to connection:
adb devices
If the daemon is not running, it will be started.
You should see your device as (single) entry in the device list. Otherwise check the device, the connection and the settings again.
Go on to Unlock bootloader below.
Option 2: You cannot access your Android system (almost bricked)
Android devices have key combinations that allow you to boot them in different modes. Please check on the internet how to boot your device in the EDL Mode (Emergency Download Mode). For my device it's

press and hold `on off key` for about 20 seconds, release it
press and hold `vol up key`
press and hold `on off key` (still hold the `vol up key`)
wait for a short vibration
release the `vol up key` first
release the 'on off key`

Be careful, it make a diffence whether an USB cable is connected or not. Connecting the USB cable can have the same effect as pressing the power key.
Getting into the right boot mode can really be a mess. That's why it's the easiest way to work with TWRP (Team Win Recovery Project).
To do so, download the latest version of TWRP. You need a the appropriate img file for your device (for my device: twrp_x605f.img).
Reboot your device in fastboot mode (as described by the manufacturer of your device). For my device it's

press and hold `on off key` for about 20 seconds, release it
press and hold `vol down key`
press and hold `on off key` (still hold the `vol up key`)
wait for a short vibration
release the `vol up key` first
release the 'on off key`

On success, the device will show 'fastboot mode' in the corner.
Connect your device with the USB cable and check the connection:
fastboot devices
You should see your device as (single) entry in the device list. Otherwise check the device, the connection and try to reboot in fastboot mode again.
Make sure your TWRP image file is in the current directory. Install it by typing
fastboot flash recovery <TWRP image file> (replace  with the actual file name)
Reboot your device in recovery mode (as described by the manufacturer of your device). For my device it's

press and hold `on off key` for about 20 seconds, release it
press and hold `vol up+down keys`
press and hold `on off key` (still hold the `vol up key`)
wait for a short vibration
release the `vol up+down keys` first
release the `on off key`

On success, TWRP will start. OK, it took my two to three attempts to get there, but it helps a lot as you can reboot precisely in the mode you need from the TWRP Reboot menu.

System boots to your system.
Recovery boots back to TWRP (or your recovery menu).
Bootloader boots to fastboot mode.
EDL boots to EDL.

Unlock bootloader (not sure if this is required - you can try it and skip this)
Having done that, unlock your bootloader. To do so, boot your device in fastboot mode

by using the key combination, see above OR
by typing `adb reboot bootloader` (when the device is connected and the Android system is running or TWRP is running), see above

Type
fastboot flashing unlock
and
fastboot oem unlock-go
Flash your device
Reboot your device to the Android system or to TWRP.
Prepare the flashing command (in one line) and do not hit enter yet
./qdl --debug --storage emmc --include '<path to the unzipped firmware files>' '<path to the unzipped firmware files>/<mbn file>' '<path to the unzipped firmware files>/rawprogram_unsparse.xml' '<path to the unzipped firmware files>/patch0.xml'
For me, that was (in one line) and do not hit enter yet
./qdl --debug --storage emmc --include 'TB-X605L_USER_S000020_20180921_Q00020_ROW' 'TB-X605L_USER_S000020_20180921_Q00020_ROW/prog_emmc_firehose_8953_ddr.mbn' 'TB-X605L_USER_S000020_20180921_Q00020_ROW/rawprogram_unsparse.xml' '/TB-X605L_USER_S000020_20180921_Q00020_ROW/patch0.xml'
Open another command prompt, and prepare the reboot EDL command
adb reboot edl
Now, enjoy the following:

Run the flashing command (as prepared above), it should stop with the message 'Waiting for EDL device'
Run the reboot command from the second command prompt (as prepared above).

Note that you can of course enter the EDL mode in any other way - but as some instructions say that you have only a couple of seconds to start EDL mode, before the flashing is aborted.
The --debug option obviously isn't necessary, but you see much more action, and the flashing takes about 10 to 20 minutes.
Enjoy your unbricked devices!
PS: The documentation of the solution took a lot of time, and I'm a beginner here. I'm pretty sure that the description and formatting could be improved. I'd find it helpful if you give me hints as comments on how I could improve the description of the answer (instead of possibly downvoting it). Thanks!


what is 10147 in Android, it drain battery power 54% in 6 hours

You just need to click on 10147 to find the next screen i.e. Use details screen. Under this screen you'll find an information button on the right hand side beside the title (in your case it will be 10147). And if it is a third party application you'll get the option to Uninstall it else if it is a system app you may find the option to disable it.

Hope this helps.

Thank you!


Install 4.3 (OTA) on rooted Nexus 4 (CWM + stock rom, kernel)

It sounds like the "/system/bin/app_process" has been modified and so it doesn't match the signature required. There are 2 ways to fix this, either get a copy of the stock file from another phone/rom or flash the factory image for 4.3
Edit: After reading "update 2" it sounds like you want the factory image option detailed below.
AndroidPolice has a step by step guide here. I've duplicated the steps in case that page dies:

Download the full occam factory image, which includes the full system, bootloader, recovery, kernel (boot.img), and radio. It's a clean slate for these components - they'll flash cleanly over anything you have now.
Instead of using the bundled script called flash-all, you will unpack the tgz (tar/gz) archive, and then the zip contained within as well. This will put all the components into one folder:
Follow the excellent guide over here and make sure to omit step D10, which overwrites userdata. Here are the commands you will be executing, for reference:

adb reboot bootloader
fastboot flash bootloader bootloader*.img
fastboot reboot-bootloader
fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot format cache
fastboot reboot

Note: Instead of unpacking the image*.zip and flashing system and boot
manually, you can actually do fastboot update image*.zip - this won't
delete data (you would pass a -w flag if you wanted that to happen),
but it will re-flash recovery back to stock if you were running a
custom one. You can then flash it back, or just use the commands above
instead. Either way, the result will be the same.

You will then need to re-root (there is no way to go from 4.2.2 to 4.3 keeping root at the moment) by following the steps in this thread (I won't link to the file itself as it is being updated as/when issues are found.).


By trial and error I have discovered that touching the screen at "12c Slave addr" or "Subaddr(HEX)" bring up lists of valid addresses to choose from.


Resize screen to display only on working part of semi-functional touchscreen

Notes:

My solution is tested on Stock Android 4.4.2 and Stock CyanogenOS 12 (5.0) of OnePlus One, and should work for Android 4.3 and above (based on this answer).
I've mentioned wherever root access is required.
This answer has been taken from my answer on a bit different question here.

I have used the following  comment as the ground to work on:

  The bottom 20% of my Nexus 4 doesn't work. I use: wm overscan 0,0,0,210 to have android WM not draw anything in that area so that I can operate all the drawn areas fully again.. –  Thrustmaster

Instructions:

Enable USB-debugging in your phone.
Install ADB tools in your PC, connect your device into it, and make sure that device is getting detected in adb devices.
We need to know the resolution and the display density of the device. In the terminal/cmd enter adb shell dumpsys display | grep mBaseDisplayInfo to show display related info. The output could look like:

mBaseDisplayInfo=DisplayInfo{"Built-in Screen", app 480 x 854, real 480 x 854, largest app 480 x 854, smallest app 480 x 854, 64.29 fps, rotation 0, density 240, 240.0 x 240.0 dpi, layerStack 0, type BUILT_IN, address null, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

The relevant info in my case is:

real 1080x1920
density 480

The most useful commands to be used are:

wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
wm density [reset|DENSITY]

My default launcher screen without tweaks looked like:

To reduce the screen output at bottom issue the command:

adb shell wm overscan 0,0,0,100

Note the I used further reduction by upto 0,0,0,300 and the output was like this:

Tweak the value to your desired needs.
You may need to correct the density since the display could look odd. My device's default display density is 480 dpi, so I tweaked it this way:

adb shell wm density 440

and the resultant screen was like this. An app under tweaked resolution.
Note that you can use adb shell wm density reset and adb shell wm overscan reset to revert back to default density and resolution respectively.
Now that "dead touch zone" has been taken care of it's time to use virtual/soft keys (only if you need it).

Izzy has it already covered in this answer. Otherwise, you can use Gravitybox LP (for Lollipop users) or Gravitybox KK (for Kitkat users). It is an Xposed module, and require root access and Xposed Framework installed.

Install, activate and launch Gravitybox → Navigation bar tweaks → Enable Navigation bar → do a reboot, and soft-keys aka Navigation bar would be found enabled.
Custom ROM like Cyanogenmod and some stock ROMs has the option to enable soft-keys(buttons) under Settings. You can use that option since it doesn't require any root access.
After some further tweaks the final screen of my Android 5.0 looked like:

We're good to go!


Need browser with websocket and full screen mode support

I know that Chrome For Android (not the Android stock Browser) does have Websocket support, and you can set a default homepage, not sure about Fullscreen mode though.


Moto G stuck on the screen "Warning bootloader unlocked"

Bootloader is a bit of code that tells your device's OS how to boot up? Does the phone boot in fastboot mode? If so you can tape fastboot oem lock or an alternatie that works on many motorola: fastboot oem lock begin this should relock the bootloader.

To boot in fastboot mode: Turn off your phone and then press and hold the Volume Down + Power buttons simultaneously for a few seconds.

If the above dont work, you'll need simply to flash the stock firmware first and then get in fastbootmode and tapefastboot oem lock

This thread on XDA Developers will explain more in details.