How to Backup and Restore Android OS without Rooting

I know I can create a nandroid backup through system settings

No, you can't. Read the tag wiki of nandroid to clear your concept about nandroid backup, including how it is made.

  I mostly just want to be able reinstall Android OS or reset to factory default in case my device breaks.

A factory reset wouldn't help since it only clears data, internal SD card and cache partitions while rooting mainly affects system partition. System partition is what contains the files needed for Android to run.

You can use the answers available to Full Backup of non-rooted devices. On a non-rooted device, those answers  are more or less  limited to the extent of the magic adb can perform. In essence, they would, when possible, copy an app's apk and its data. Some of them covers both system and user-installed apps.

Tip: If an app doesn't want to be backed up (such as Chrome), none of the answers there would be able to backup that app's private data - sad reality of our times.

As for re-installation and possible nandroid backup, the situation differs for device to device. Following are few generic things I can tell:

Your device is popular enough in developer community that at least one person has created and publicly hosted a custom recovery for your device and also hosted the stock ROM somewhere, either by themselves or by making a copy of what OEM probably provided . If there exists a way to flash the ROM without booting into a custom recovery mode, then you can take the moderate risk of rooting.

Make sure you meet all the requisites to flash the ROM before you begin rooting.
Your device's OEM provides stock ROMs image which can be flashed from stock recovery or through fastboot (or equivalent) mode.

Fulfill the requisites of ROM flashing and you can take the moderate risk of rooting.
You own a device with chipset from Mediatek and that chipset is supported by Smart Phone (SP) Flash Tool. If yes, then make the scatter file and use it in SP Flash Tool to make image of your device's partitions. You can call it the true nandroid backup. That backup can be used to restore the Android OS.

Note: If you've a custom recovery for your device, then you can use SP Flash Tool to flash the recovery without bothering to root the device at first. Once the custom recovery is installed and device is booted into, rooting would be a piece of cake.

Make sure you meet all the requisites before you begin rooting.
If there is no OEM or developer support for your device, then I suggest you don't take the risk of rooting. The ending might take away your peace of mind.


Associating a particular input method with a specific app

Currently, there's no stable solution available, but you can try KeySwap to associate specific keyboard to an app.

As Android doesn't allow an app to change Input Method programatically, your device needs to be rooted for this to work.


how to freeze/hibernate system apps in non-root android mobilephones

It should be possible to simply go into Settings -> Apps -> All apps, select the pre-installed app and choose the "disable" option. Hit "OK", and the app will no longer exist on the home screen, will no longer run, and will essentially cease to exist on your device.

Take a look at this question for more info.


Wirelessly sync music folder to microSD card

Probably the feature that TMS is missing is superuser permissiom request. FolderSync as noted in the comments does asks for superuser priviledges and can perform two way syncing!


This item cannot be installed in your device's country

The answer to your question most likely relates to this question "How do I change the Google Play country?". It details what you should do but read through the whole thing because the first answer requires you to make a purchase, but the second says how to do it without making a purchase.


Settings > Accounts > Google select the Gmail account and turn off Sync Gmail option

I have two accounts that I don't want them to come in to my Gmail app, but I still want them connected with my phone and turning off Gmail sync did the job.


Full disk encryption affects remote wipe ability?

I think you still would be able to remotely wipe it as encryption only as the name says "encrypts" the data. That means that after provided a password the file will unlock itself for read, but this doesn't affect deletion :)


How to mirror Android phone on Mac or Windows for application presentation?

You can use Droid@Screen for this.

If you have root access, you can use androidscreencast as well. Hope this helps.


Droid 4 no longer finding any GPS satellites

After the phone went through a factory reset, the GPS still wasn't working, which supports that the problem is hardware related.

The Droid 4 chip (indeed, all of the circuit board) isn't accessible without significant (read: warranty-breaking) disassembly, and I couldn't find any store that could/would repair.


You can try IFTTT. Make a new applet and make the trigger a webhook. Make the action service a phone call.


How can I change the user agent string sent by Chrome on my Nexus 7?

I didn't find any way to do this except by connecting your phone to your computer and using remote web debugging feature to change user agent string.

Use this documentation to enable and start using Remote Debugging: https://developers.google.com/chrome/mobile/docs/debugging
Open any web page in your Chrome for Android
Navigate to localhost:9222 in Chrome browser on your computer and choose tab from your list of tabs opened in your Chrome for Android. You will see developer tools screen.
Go to developer tools settings on your computer by clicking on settings icon in bottom left corner of developer tools and change user agent string there
Reload web-page in your Android phone

Of course, user agent will fall back to default after you disconect your phone from computer.


Nexus 4 boot loop issue and device ADB not found when phone is on animation screen

If you are in a bootloop, it sounds like you need to enter the recovery and clear the user data and cache (factory reset).

The reason you can't find the device with ADB is because the device is not getting far enough in the boot process to actually launch adbd. The device is restarting the boot process before it launches the adbd.


if you are rooted,Use proxy droid. Apps use different settings than the ones u provide in the wifi. so not only will your google play not work but also whatsapp and such apps. for that you would need a global proxy. and for that u need to be rooted. You install proxy droid.install iptables. and then ur done


Files and directories below /data/data are protected from the "average user", so you cannot simply "pull" them unless the ADB daemon is running in root mode. Other than the file you were referring to (/system/buildprop is at least readable by all apps), folders below /data/data are "invisible" (except for root), so they cannot even be read.

To be able to use adb pull on them, you need to make your ADB daemon run in root mode first. Depending on the device, a simple adb root command might do that – but most devices will refuse to do. In those cases, you can use chainfire's adbd insecure: Install this app on your device, start it there, and manually switch to "insecure" mode. Now the pull should succeed.

Remark: It's called "insecure" because running adbd as root gives everybody with a computer and an USB cable access to everything on your device. Just in case you wonder.


How does the Google Play Store get updated?

Usually, Google Play Services will always run in the background and if there is an latest release of the Play Store is available, it would updated automatically.

You may enable Google Auto Sync and check whether it works. If not, there may be some problem with Google Play Services. Alternatively, try installing the apk from XDA.


What's infected my Android device, and how do I remove it?

I'm assuming this only happens in chrome and not any other browser or device. If it does happen on another device then the problem would be that a virus hijacked your router(on WiFi) and changed the DNS settings. Solution logon to your router and change the DNS settings to be automatically picked from your ISP.

You could

Head to settings and disable Javascript. Which disables the redirect link from functioning as long as Javascript is off but is quite hectic since genuine websites will most likely require Javascript  to function.
Check your DNS settings and ensure that it's either set to automatically pick DNS settings from ISP or on a DNS server you know of such as googles DNS servers(8.8.8.8 and 8.8.4.4)
Root your phone and install Ad Blocker This would prevent the popup links from generating.


What will happen if I tap "Fix Now" in Device Maintenance?

Details from app manual

  View the status of your device’s battery,
  storage, memory, and device security. You
  can also automatically optimize your device’s system resources

Further, it says optimise instead of fix

  Quick Optimization

  The quick optimization feature improves device
  performance through the following actions:

  • Identifying apps that use excessive battery power
  and clearing unneeded items from memory.

  • Deleting unnecessary files and closing apps running
  in the background.

  • Scanning for malware.


How do I remove pending/in-progress downloads

Have you tried a file explorer like ES File Explorer or My Files, which comes with later versions of Android? If go to the Download folder is the half file present? A completely downloaded file will present a long list of options if you long press the file, allowing you to cut/copy/rename/delete. Possibly it will also appear on a halfway complete download to allow you to delete. Then revisit the gmail message to restart the download if you want.Remember that the target folder might have been specified other than the Download folder.Good Luck.


Adb command(s) to get screen state and locked state

I am a Windows fanboy, so the solution contains find instead of using grep, just replace find with grep.

adb shell dumpsys power | find "mWakefulness="
adb shell dumpsys power | find "mHoldingWakeLockSuspendBlocker="

  Screen OFF and Locked = mWakefulness=Asleep &
  mHoldingWakeLockSuspendBlocker=false

  Screen ON and Locked = mWakefulness=Awake &
  mHoldingWakeLockSuspendBlocker=false

  Screen ON and Unlocked = mWakefulness=Awake &
  mHoldingWakeLockSuspendBlocker=true

P.S: I've tested it on Android 7.0, don't know if it'll work with other versions.


Is it possible to free up phone storage while keeping HTC Sense?

I also have the safe device and had faced the same problem. I have two wonderful solutions:

1) Use link2sd. This app moves your app's apk, lib and dex file to second partition of you SD card. It will leave only the data files in the internal memory. So you can install nearly five times the more apps. I have a blog post if you want to try it out.

2) Use sueprnova ROM. This ROM is the stock ROM with data2sd support. So you can even use 2GB of SD space as internal memory.

Both of this solution requires you to have a better class of SD Card.


Automatically setup network config ifcfg-eth0?

I thing this will work:

In /init.rc add

service ethernet /eth0.sh

and create /eth0.sh

#!/system/bin/sh

netcfg eth0 up 192.168.0.2

Still got problems chainging the ramdisk but that should work.

See http://elinux.org/Android_Networking

I was not able to change the ramdisk so I made a simple app the does run the netcfg command after boot and after USB device is attached.

Here are the key points for this:

<manifest ...
  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  <uses-feature android:name="android.hardware.usb.host" />
  <uses-permission android:name="android.permission.USB_PERMISSION" />
  <application ... >
    <receiver
        android:name=".MyBroadcastReceiver"
        android:enabled="true"
        android:exported="true" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
        </intent-filter>
    </receiver>
...

and the sudo function in the receiver:

public static void sudo(String...strings) {
    try{
        Process su = Runtime.getRuntime().exec("su");
        DataOutputStream outputStream = new DataOutputStream(su.getOutputStream());

        for (String s : strings) {
            outputStream.writeBytes(s+"\n");
            outputStream.flush();
        }

        outputStream.writeBytes("exit\n");
        outputStream.flush();
        try {
            su.waitFor();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        outputStream.close();
    }catch(IOException e){
        e.printStackTrace();
    }
}


How to limit data download when tethering

No, that is not feasible. When tethering a connection, your Android device has no idea what the tethered device is doing. It could be downloading a large file, or it could be browsing a bunch of web sites or streaming an audio file. It does not know any useful metadata about the ones and zeros going through its tethering pipe.

Now, you may be able to set up rate limiting so that a tethered laptop can't run faster than X/bytes per minutes, for example. Or, like any firewall, you could block certain services (such as torrenting) using simple port blocking/limiting or other more in-depth packet inspection. You may even block certain domains or IP addresses by firewalling the address.

However, these are all very advanced operations that are far more specific to firewalls than they are to Android. And they would not help at all in your specific example of blocking a download of a file larger than 10 MB.

You are better off looking for a client-side solution. You could get a Download Manager for your laptop and tell it not to download if the laptop is currently on your phone's network connection. Or maybe there's a plugin for your browser that does something similar.

In any case, there is no Android-specific way to handle your specific issue.


Use this video as it seems exactly like your problem, try it then comment if it works https://www.youtube.com/embed/LV_7APlAvvc

So, basically what you need to do is :-

Go to settings and remove your pin/passwords if you have any.
Go to `settings>security' and at the bottom of the page you should see "clear credentials" tap on it and clear your credentials.

3 Now go back to lock screen settings settings and you should see the "None" option waiting there or you.


How do I effectively use offline documents on a WIFI-only tablet and other connected devices?

Try Autosync. There might be extra charges for syncing files larger than 8MB. https://play.google.com/store/apps/details?id=com.ttxapps.drivesync

Another option is FolderSync Lite (no file size limitations as far as I know):
https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.lite


What is the 'Relationship' field for in Android Contacts?

It is meant for your relationship with contact

After a relationship is added, you can call, text, or email the person using their nickname.... After the nickname is added, you can contact them by saying things like "Text my sister" or "Email my mom."

Some typical fields from Google contacts app in screenshot (you can define a custom field too)

In example below, I have added child with nickname of XYZ. If I use Google assistant I would say call XYZ


Decrypt SD card on a phone with a broken screen

Assuming that only the screen is broken, that your device thinks everything is ok and boots up and runs normally you might be able to remotely decrypt the card or access the data, but I think it's a long shot. First, the phone would have to be rooted. Then you would have to connect it to your computer and run a remote access program like Telnet or SSH. Unfortunately, I don't know of any way to do this without enabling or configuring the client device first.

From what I've read, the S4 doesn't use any hardware encryption so you should be able to reproduce the phone inside a VM running on a PC. You would need to obtain the exact ROM your S4 uses,  load it into an Android emulator (try Virtual Box) then configure the ROM with your phone's unique (ESN/IMEI, etc.). There's no guarantee this will work as I haven't come across any information on what algorithm the S4 uses for encryption or how it builds the key, but I don't think there's any other way besides fixing the screen.


Android Phone's Homescreen Shortcut to File on OneDrive

Sure you can. Add a widget and select the folder you want, then Pin it.
Source: 10 Tricks to Make Yourself a OneDrive Master


How can I migrate my data/apps from one Honeycomb tablet to another?

Yes if you've previously set your current tablet to back up your data and settings to Google's servers, then during the initial setup of your new tablet you should be given an option to restore your previous settings and data.
The settings that you need to check on your current tablet are in Settings -> Privacy Settings. See below for more info on this from the official Android 3.0 (aka Honeycomb) user's guide:
Page 13

Backing up and restoring your data
You can back up your settings and
other data with your Google Account, so if you ever replace your
tablet, you can restore your data on the new one. If you choose to use
this service, your data is backed up automatically.
If you previously
used the backup service with the Google Account you just used to sign
in, you can also choose to restore your settings from your Google
Account to your tablet now.
Important If you want to restore your
settings, you must do that now during setup. You can’t restore data
after setup is complete.
Many kinds of data are backed up, including:

Your Android settings, such as your Wi-Fi networks and passwords, user dictionary, and so on
Many Google application settings, such as your Browser bookmarks
The apps you download from Android Market

Some third-party apps also make use of the backup service, so if you reinstall one,
its settings and data are restored.

Page 132

Privacy settings
You use the Privacy settings to manage whether your
settings and other data are backed up to Google servers, using your
Google account. You also use these settings to erase all the data on
your tablet by performing a factory data reset.
Back up my data Check
to back up some of your personal data to Google servers, with your
Google Account. If you replace your tablet, you can restore the data
you’ve backed up, the first time you sign in with your Google Account.
If you check this option, a wide variety of your personal data is
backed up, including your Wi-Fi passwords, Browser bookmarks, a list
of the applications you’ve installed from Market, the words you’ve
added to the user dictionary used by the onscreen keyboard, and most
of the settings that you configure with the Settings application. Some
third-party applications may also take advantage of this feature, so
you can restore your data if you reinstall an application. If you
uncheck this option, you stop backing up your data to your account,
and any existing backups are deleted from Google servers.
Backup
account Displays the Google Account that your settings and other data
are backed up with. This is the account you need to sign into on a new
Android tablet or other device, if you want to restore the settings
from this tablet to that device.
Automatic restore Check this option
to restore settings and other data when you reinstall an application.
This feature requires that you are backing up your data with your
Google Account and that the application is using the backup service.

To wipe your current tablet (after you've ensured that it's been backed up, from the same privacy screen you should also see this option:

Factory data reset Opens a dialog where you can erase all of your
personal data from internal tablet storage, including information
about your Google Account, any other accounts, your system and
application settings, any downloaded applications, as well as your
music, photos, videos, and other files. If you reset the tablet in
this way, the next time you turn on your tablet you’re prompted to
reenter the same kind of information as when you first started
Android.


Can I remove the "USB Configuration\KIES\UMS" splash-screen?

On my Galaxy S, turning on USB debug mode in Settings -> Applications -> Development turns off this notification.


Can I use my Nexus7 charger to charge my Android phone?

In short: yes, you can use your Nexus7 charger to charge your Android phone. If the connectors are compatible, it will work without problems.

I always use a single 2A USB charger for every phone, tablet and ereader that I have at home, and also for the Raspberry PI.


Some computers only recognize devices when they are plugged into the right usb ports. Have you tried using a different port? Also, some chords can be finicky, some of the cheaper ones don't like you when you try to do get into a device like that. Another thing you can try is to do like someone commented, and make sure you have the right driver for your device for your computer to recognize it. Just google search for the right driver for your model.


Is there a way to capture HTTP requests from an installed Play Store app?

Yes, you can do it on your phone alone. I use HttpCanary App with root access. It works without root as well but only a few apps that don't use certificate pinning.


There is "DroidStack" which allows to Browse the Questions, Users, Tags and Monitor for Statuschanges, but it does not allow you to question yourself or write an answer. But you can open the current question, user, whatever in your favorite browser anytime. This comes closest to writing.

There are other tools, with similar restrictions, but I think DroidStack is the best of the ones I tested so far.

The problem is, that writing to any SE-site is (currently) not allowed via API, only via webinterface. Writesupport is planned for API-version 3.0, and will be bound to other reputationlevels then via web as stated in "Announcing API version 1.1" on StackApps.com?


Why do some Android phones have two microphones instead of one?

The second microphone is used for noise cancelling. The phone uses it to listen to the external environment (not including your voice), so that it can filter that out from the sounds it hears using the main microphone. That way, it can reduce the amount of noise that comes with your voice, and make your call more audible to the other party.


Set SELinux mode to Permissive permanently

If your ROM supports init.d or if you wish to enable init.d support for this purpose, here's a way to disable SE Linux automatically everytime after each boot..

Create a new script as follows:

#!/system/bin/sh
setenforce 0

(Note: If you're using an app to emulate init.d, use su -c setenforce 0 if just setenforce 0 doesn't work)

Save it as set_permissive.sh, move it to /system/etc/init.d/ directory and give it permissions 755.


Is there any way to remove the 10 recipents limit from the SMS app?

Since your phone is rooted you can use  Wanam Xposed

Note that the framework itself doesn't add any functionality, but once installed you can download (via the framework itself) modules that have custom functionality. Wanam Xposed module has many tweaks for stock Samsung Touchwiz ROMs, GravityBox has many for morer 'stock' type ROMs. You can change the SMS limit through either, in the default SMS application.

Please read the XDA Thread on this module as it has a lot of detail, and clarifications.
 XDA Thread


Using ADB with usb debugging disabled, and no root

I had a similar problem.  I almost gave up and was like an inch from hard reset when something strange happened. When I connected the phone to USB as usual USB entry screen appeared, but I noticed that in this screen it is actually possible to lower the notificationbar and bingo — I was able to turn Wi-Fi ON.  And then I just entered my Google account info and the phone was unlocked.


Built-in alarm, calendar suddenly talking to me. How can I shut them up?

Per a coworker's recommendation, I just went into S-Voice and said "driving mode off". Fixed the issue.


Are these newly added contacts? If you are adding new contacts and adding them as "phone" contacts and not "google" contacts, and you have syncing on, it may be syncing your google contacts to your phone, and deleting the ones that aren't google contacts. This happened to me a couple of times.


developed apk installed in bluestacks lost lower part

I've tried it out. Just clicked "Change app size" on the left of BlueStacks to turn Tablet screen(Landscape) to Smartphone screen(Portrait), and it's done.


How can I require my Android (latest version) phone to require BOTH a fingerprint and a password?

You can go trough Android's security using only one at once. For example, if you have both Fingerprint and Pattern activated, only one of them is required to unlock the device. However, with third party apps like Next Lock Screen or Picturesque Lock Screen, you can actually stack them. If you activate Next Lock Screen, Pattern and Fingerprint, you will have to use Next Lock Screen first, then either Pattern or Fingerprint.


Random screen captures in Galaxy Tab 10.1

What have you done after the factory reset -- installing everything you've had installed before? Best way to figure out where the problem is located is:

Backup as much as you can
factory-reset the device
do not yet install/restore anything!
check for a reasonable time whether the problem re-appears

if it does right after the factory-reset, your device needs go to support (or they need to send a firmware update/fix)
if it not re-appears, continue with 5.
if it does re-appear, you've found the app causing the issue. Break here, see below.

re-install/recover ONE app. Repeat from 4.

If above steps resulted in an app being the cause, you've got multiple choices:

re-configure the app and see if you can make the error go away
uninstall the app and see if the problem goes away
if none of the two works, start with step 2. above and skip the bad app.


I can connect to WiFi but all websites refuse to connect

Try using a VPN, I recommend Thunder VPN if you are an Android user.

So far, this is the only solution that I thought of and that is what worked for me, but there are also other VPNs.


Cannot install Chrome or Google Drive on Samsung Galaxy Tab 10.1 (P1000)

What I had to do to solve this was

Go to Settings > Accounts
Remove the Google account
Add back the Google account
Go to Settings > Applications > All
Clear data for applications 'Google Play Services,Google Play Store` (basically any system service or application from Google that had to do anything with Play Store)
Reboot the tablet

Now I can install applications, including Drive and Chrome.


How to use *.img file instead of *.gz (or *.pit) file with Heimdall?

Newer versions of Heimdall will accept a .img file for the --RECOVERY parameter and automatically download a PIT from the device to add the img contents to.

$ heimdall flash --RECOVERY recovery.img
Heimdall v1.4.1

[trimmed some output here]

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading RECOVERY
100%
RECOVERY upload successful

Ending session...
Rebooting device...
Releasing device interface...
Re-attaching kernel driver...


How can I open the keyboard on my Android tablet?

It should pop up when you tap on a text box.
If it doesn't, does there appear a small keyboard icon in the bottom right corner?


Can't boot into recovery or fastboot and not going to EDL completely (Redmi Note 4)

Alecxs helped me with the solution so I am posting the solution that worked for me.

Install MIUI 9.6.8.0 fastboot ROM (it works with this only) and extract it to C drive.
Run MI flash tool and select the extracted folder.
Now boot the phone to EDL Mode and immediately click refresh and then click flash.
Because if you are even 2-3 seconds late then process fails.
Wait for flashing to complete and then the phone will reboot.
If it doesn't reboot then just check (press them a little bit) all the connectors on motherboards of phone (display, fingerprint and battery) and then connect to charger. Battery icon will appear and now you can power ON the phone.

BOOTING TO EDL MODE

  Don't remove battery. Not required.

To boot to EDL we need to short JTAG pins that are present on right side of fingerprint connector. (And not the 1st and 4th test points shown in many videos on internet).
And while shorting it insert the usb cable immediately.
You will see red led light blinking.
Phone will be shown as COM4 (probably).

  For more information search google with test points for Redmi Note 4

  You will be forced to update to MIUI 11.0.2.0 because you will face
  various bugs like

  mi cloud won't sync
  fingerprint won't work

OTHER THINGS TO KEEP IN MIND

If you decide to update to MIUI 11.0.2.0 then don't install RedWolf or ** OrangeFox** recovery because when you enable OTA updates in them and flash MIUI 11 rom you will get *ERROR 7 * message and and when you reboot you phone will stuck on MI logo.
When stuck on MI logo then don't try flashing rom again using Mi Flash Tool by booting to Fastboot mode (if you can boot to it) because you will get System flashing error.

FIX FOR STUCK ON MI LOGO

  Requirements

  unlocked bootloader
  adb and fastboot tools
  fastboot extracted rom (can be MIUI 11)

If you are stuck there then don't worry. Try if you can boot to Fastboot Mode (Vol - with power key). If not then try recovery mode or repeat EDL method. If yes then read ahead.

If you can then install adb and fastboot tools in your PC. And paste all images folder files of MIUI 11 fastboot rom to adb folder.
Now type the following:

Check if phone is accepted by

fastboot devices

Now flash system.img by

fastboot flash system system.img

After completion flash boot.img by

fastboot flash boot boot.img

After completion flash recovery.img

fastboot flash recovery recovery.img

After completion flash cache.img

fastboot flash cache cache.img

  If you want to completely erase user data and make the device a newly
  bought then type

fastboot erase userdata

  After completion type

fastboot flash userdata userdata.img

Flashing is completed

Now just type fastboot reboot. Phone will boot properly now.

  If you are using MIUI 9 or 10 rom to fix stuck on mi logo then when
  the flashing is done you will face numerous bugs in rom like

  mi cloud won't sync
  fingerprint won't work properly


Plugging phone into laptop charges laptop instead of phone

This is called PD charging. There should be a setting in connection dialog. Also there should be the same options in Developer Settings


AdMob ads in screenshots for Google Play

I recommend adding placeholders for the ads (a rectangular box with the text 'AdMob ad goes here').  I've seen quite a few other developers do this.  It lets the user know there will be ads, and where the ads will be placed in the user interface.

If you remove the ads, and then the user gets your app and it shows ads, expect negative reviews.  By disclosing ahead of time that your app has ads, you stand a better chance of not having as many negative reviews for having ads.


Office 365 can't modify files directly on dropbox

According to my research, editing is available for the following file types on Android:
.docx
.xlsx
.pptx
Any other Office files will be read-only.
So please check the Excel file types, if they are not .xlsx, try to modify it.


How to receive notifications from a host on the same Wifi network?

I don't know if there's an "easy solution" – but one way I could think of involves two apps:

an SSH Server on the device (plus a corresponding client on the PC)
tasker

Sending a notification to your device could then work as follows:

write the notification text into a text file
by means of your SSH setup, copy that file to your Android device (have a specific directory there for "incoming notifications")
on the device, have setup Tasker to watch that directory on changes. Whenever a new file arrives, Tasker should

read the new file
use its content to create a notification
delete the file

I have never set this up myself, I just know that Tasker has this capabilities (and remember having read of people using such a setup). For details on Tasker, please see our tasker tag-wiki.


I finally found the solution in this tutorial in French : http://forum.frandroid.com/topic/180104-tuto-flash-arnova-10dg3-rom-uberoid-jeally-bean-411-root%C3%A9e/

It seems like the firmware from Arnova is somehow incomplete. I installed a rooted ROM.


Is there any web browser that can display the desktop version of Gmail on an Android phone?

The stock browser and Chrome both seem to force you to use the mobile version of Gmail (selecting Desktop View or Request Desktop Site, respectively, simply reloads the mobile site), but in Firefox, if you select Request Desktop Site, you actually get the desktop version.

OP comment:

  It seemed to work at first but then I realized the chart box doesn't work. It's there any way to make it work correctly?

Any time you request a desktop site in a mobile browser, there's a good chance that the rendering will be messed up or difficult to navigate, and some advanced features won't work. That's because you're (deliberately) requesting a version of the site that's not designed for the browser you're using.

There's not much tweaking you can do from the browser's end to "make it work correctly", because the problem is not that the browser is misbehaving, it's the the features were developed for desktop browsers and tested with desktop browsers. Any tweaking to make features work with a mobile browser would have to be done by the site developers.

But that's why there are different desktop and mobile versions: so that each version can be tailored to the behavior and feature sets of the browsers it's designed for, rather than having one version try to satisfy all types of browsers with the same code. And if a mobile site already exists, that's all the less of a reason for the developers to strive to make the desktop version mobile-friendly.

So, this is actually a different question. The answer to the question "is there any web browser that can display the desktop version of Gmail on an Android phone?", in the sense that it will do what you ask it to do and load the desktop version rather than forcing you to use the mobile site, is yes. Firefox will do that.

But the answer to whether you can make all features of the desktop site function correctly in a mobile browser, is that there's nothing any browser (mobile or desktop) can possibly do to force the design of a web site to conform to its own capabilities.

It's a similar situation to using Chrome or Firefox to browse a site that's designed exclusively for Internet Explorer, using some of IE's non-standard features. There's nothing you can configure in the browser to fix the fact that the developers implemented features it doesn't support.


Which .iso to download to install Android on my home PC?

It all depends on the device where you're going to install this Android port.

If you access the download page of the Android-x86 Project, you'll find a short description for every available ISO to point you out onto the proper download.

Assuming that you're out to try the latest, Android-x86 4.0-RC1 live and installation iso:

for AMD Brazos platform
for ASUS Laptops/Tablets   <-- Best bet if your referring to a desktop PC or a Laptop.
for ASUS Eee PC family
for Lenovo s103t tablet
for Tegav2 (Atom N455 tablet)

For the purpose of completeness,

Here's a small description of the Android-x86 Project - Run Android on Your PC:

  This is a project to port Android open source project to x86 platform, formerly known as "patch hosting for android x86 support". The original plan is to host different patches for android x86 support from open source community.


Can't install system update on Samsung Gear

I had the exact same problem. This is how I solved it:

Hold the button on the right hand side of the watch down until the screen goes off (about 10 seconds).
Release the button.
The watch "rebooted" and came up with system update message that said swipe left to install
Follow instructions on screen


How do you leave a review on the Google Play Store without a Google+ account?

Sadly at present, you cannot. Since around November 2012 Google require Google Plus to review on the play store. All reviews are in your name, have your G+ picture and are publicly shared.
There is a popup that states:

From now on, reviews you write will be posted publicly using your Google+ name and picture.
Your name on previous reviews will appear as "A Google User".


Android 4.04: Default Silent Mode to Mute

It's not possible using the power button long press for the Device Options menu in 4.0.4 on SG2. It always reverts back to "Vibrate" when changing Silent mode, albeit it is possible to press the volume down until it goes into vibrate, and then press volume down again. This takes a bit of time, though, and doesn't work unless you're past the screen lock. IMO, in a perfect world, this should only take one action.

Conclusion

Wait for a version update above 4.0.4 and hope they fix this BS. (Also, I friggin' hate people who think their phone is silent during meetings or seminars, and their phone just keeps buzzing and buzzing and buzzing. It's #*@!ing Android trolling!)

Hack

The only hack I've found to make it work with the power button long press is going to Setting > Sound > Vibration intensity and setting ringtone vibration to zero. However, I'm pretty sure that turns off vibration globally, and you'll still see that annoying icon for "silence with vibration" when you use Silent mode trough the power button. :(

Fastest way to mute

Wipe off the screen lock. Flip down the curtain of the notificaions menu, then double tap the sound icon. That will bring you from sound to vibrate, and finally to mute. Or get a widget for muting.


How to tune Android to have dark colors in all menus?

No, you can't do this without rooting or installing a custom ROM. Some apps allow you to select from predefined themes within the app, and you can install a custom launcher to change the appearance of the home screen and app drawer (the list of apps), but you can't change the appearance of all apps.

If you could, there'd be no way for app authors to know what the app would look like on users' phones. For example, if an app had light-coloured background artwork or photo, with dark text, and you changed the text to light, it would no longer show up against the background image. People already complain that Android apps look less polished than iOS apps, and this would be even worse if app authors had to worry about text colours being different on different users' devices.

Samsung phones have an accessibility feature that colour-inverts the whole screen, in all apps. Even this doesn't quite do what you want, because of course if the app started out with light text on a dark background, it would be inverted to dark on a light background. It also makes the device pretty useless for looking at photos or other artwork, and makes colours ugly in all apps.


Seems to be a bug. I tested it on my device multiple times: in GUI mode backup is created fine, whereas console command give this fake.

I already created the ticket on their Github, but they don't read it, as it seems.


Apps go portrait and then landscape unexpectedly

Well, I believe the easiest way for you to avoid that would be to disable auto-rotate in your phone.
The automatic rotation tool is very sensitive, based on accelerometer, and some users complain that Motorola's is not so good. You may try also to calibrate it using an app like Accelerometer Calibration Free or maybe following the tips on this tutorial.


ASUS Slider Sl101 Driver letter access? rather than MTP in Android 4

Unfortunately, it's a big problem. Google apparently decided to go MTP only route since it does not require unmounting the storage from the Android side when you connect it to your computer. So:

You cannot assign a drive letter to an MTP device. Here's my answer on superuser.com explaining why.
There is a program named Alt Mounter that supposely solves this problem, and it requires a special software both on the phone and on your computer (Windows/Mac). It is beta and I never tried it.
If your phone is rooted, you can install a Samba Server on your phone, and simply map a network location to a drive on your computer. No USB is needed, simply access your phone using a drive letter via Wi-Fi. This is the method I use, and it works fairly well for me.


how to install android untivirus and instert an external SD card for storage purposes

Ok first, antivirus in the classical sense is almost useless on android. Due to the strong security sandboxing, antivirus apps can only detect malicious apps based on signatures but cannot stop or remove them. So you need to take care yourself to get rid of the malware.

Second, viruses in the classical sense also rarely exist on android, so please provide more infos on what exactly your malware is doing. If I got you right, you have some problem with blocked/filled up storage.

Third, just to exclude something completely independent of malware activity, did you ever use the newly inserted sd card in an android phone?  You may need to format the card before it can be used, see storage settings.

Summary: please check if your sd card is properly formatted and also provide more details on your problem and the malware you assume you have on your phone.


Try deleting (forgetting) the wireless connection first.  Sometimes security information (WPA/WPA2) related to the connection is cached and is no longer relevant.  When the security information doesn't match, the connection can be shaky.

If this is a pervasive issue (all wireless connections) delete (forget) all wireless connections, and open the app in app manager and delete all cached data.


Make my screen dimmer than the lowest setting available on my Moto Droid?

I use Dimmer which gives me a slightly lower level of brightness than the stock settings ;)


Moto G not showing up properly in Android Device Monitor after upgrade

There was quite a bit of change so the issue could be anywhere within the opertion. To start troubleshooting lets first look toward your device.

Since the upgrade to lollipop to cover all bases just assume everything reverted to its original state. looking at the basics go to developer settings and verify USB debugging is enabled. next connect device to PC and now within the device verify that MTP is enabled. two ways to check one the devices notification pull down menu press the connected as media device enable media device (MTP). the other option is to go to settings/storage/menu-dots/USB computer connection then verify MTP.

Next focus on the PC next and with changing from 32 to 64. Its thorough to just assume if it changed then compatibilty issues followed. So go to devices and check that the proper drivers are installed.

Device manager click launch emulator and once its up that means its time for adventures in ADB.

  adb devices

check what itt returns and if the question marks are still present then try this.

  adb kill-server

then

  adb start-server

hopefully by this point you are up and running that was just a few common causes.


I had this problem a LOT with my Thunderbolt. The solution I went with was to buy a low-profile TPU case for it and I've LOVED this solution. Not exactly what you're asking for but it might be something to consider. I chose a $5 "S-Line" case from eBay that lots of people sell. It's great and adds a lot of protection at little cost and is as low-profile as you can get a case to be imho.


Is there a way to install Cyanogenmod 7 on the Samsung Infuse 4G?

Although Infuse 4G is not officially supported by CyanogenMod yet, there are quite a few Gingerbread (Android 2.3.x) based ROMs for it available on XDA Developers forums.

An unofficial port of CM7 is currently under development for Infuse 4G.  If you are feeling adventurous, and are somewhat knowledgeable in Linux, you can compile your own version of it from latest sources, as described here.


Moto G4 Rooted stuck on TWRP recovery loop

I don't know if it's still a problem, but on my Moto G5 I have a similar problem, but booting into the bootloader and selecting start seems like the only thing that is able to boot the device.

Start will automatically be selected. If not, use the volume buttons to select it. After selecting it press the power button

No answer yet, but it could be useful in the future.
TWRP saying no OS is installed


Galaxy S5 device does not receive ip packet

I found why this happens, but not sure if I can do anything about it without root. There is a system configuration per network interface  called accept_local. For example: net.ipv4.conf.wlan0.accept_local. When it is set to 0, it can't receive packets from another local interface. Probably when it works on other devices, this configuration is set to 1. On Galaxy Note 3 it was set to 0. Once I did this, everything started working, but root was needed.
Update
Found a site which list the system variables values: https://census.tsyrklevich.net/
Specifically:

https://census.tsyrklevich.net/sysctls/net.ipv4.conf.wlan0.accept_local
https://census.tsyrklevich.net/sysctls/net.ipv4.conf.wlan0.rp_filter


Install FM Radio Module on Xperia E Dual flashed with Custom ROM

I found a thread on XDA forums. They are providing an app (which is already available in Play Store) named SpiritFM which uses phone's inbuilt antenna for radio (also via internet if required). Go to XDA dev page and use search string spirit fm or Click Here.


Are there any alternate mirrors for downloading Android Source

Here are the mirrors I know of. GitHub I know is an "up to date" mirror, not sure about the rest.

GitHub
Code Aurora


No.

Users are not allowed to write to the /system folder/partition. Any sort of exploit or method that would allow this partition to be writable is equivalent to root access on the device.

Some other examples besides root are: "Rooted recovery" which is a recovery partition that has more features than the standard Android recovery; an "Engineering" (HTC) or Unlocked (everyone else) bootloader; or a file-permissions exploit, which at that point you might as well put su and SuperUser.apk on the phone anyway...


How can I download the backups ClockworkMod creates to my PC?

The ROM Manager app has an option in the Manage and Restore Backups to Download Backups. You might want to try using it to create backups and download those backups to your computer.

(Click image to enlarge)

Choose Download Backups and you will see:

Provided your phone and your computer are logged into the same network you can point your browser to the address shown on the screen and choose which of the backups you would like to transfer to your computer.

It will take a while depending on the size of the backup.

This may be a feature of the Pro Version but the Pro version is worth every penny.

Good Luck.


The "disable" buttons will essentially "freeze" a system application.

System applications are the applications that come pre-installed on your phone - unremovable apps such as the browser, the gallery, the people app, and so on. Disabling one of these apps will stop the app from doing anything. It'll be removed from the app menu, other apps will no longer be able to open it, it will stop running in the background if it does, etc. It's like uninstalling a normal app, but you have the option to re-enable the app and bring it back at any point in time.


How do I get OTA from I got last update np. Had no idea my s5active even had custom rom yesterday update failed "kernel" in red locked me out.

The thing is AT&T's S5 Active doesn't have Marshmallow available yet, at least as far as my investigation goes. The best thing you can do is back things up, use Odin to reflash phone (to clean up custom ROMs and such) and try to check for updates again. You should at least be able to accept the update, but 1) it might just be a security patch and 2) since I don't own the phone, what will happen next is beyond my knowledge.


Why can't I use su to run under another app's permissions?

Yup using root is the only way to go.

All other groups or username are locked in userland of Android by a technique known as sandboxing. This is security feature implemented at the core so you will need to rework  Android if you still want to succeed.


Unable to sign into my Samsung Galaxy Tab A

If you have Android Device Manager installed or Logged in to Samsung account these links may help you Android device manager and try resetting the password or
Samsung find my mobile do this both from any other device.


Does custom ROMs like Cyanogen need to interact with TouchWiz?

Touchwiz is Samsung's proprietary UI/framework. So except Samsung stock and Samsung based ROMs, its not present anywhere else (unless manually ported).

Cyanogenmod doesn't use anything related to touchwiz. Nor does it need any of its components to run. So the problems you are facing are merely just bugs inside ROM/system.

And yes, by default cyanogenmod removes everything related to touchwiz including touchwiz framework.

Additional Info: Since you are using nightly, its supposed to have bugs. Nightly ROMs are basically those when a developer updates the ROM features regularly regardless of whether the feature is completely stable or not. These ROMs are basically for people who like to test features early.


On my Galaxy S, the vibration settings are under Settings -> Sound.  The Vibrate option has 4 choices (Always, Never, Only in silent mode, and Only when not in silent mode) and when the Haptic feedback option is checked, Vibration intensity can be set to 0, 1, 2, 3, 4, or 5 but I don't think that affects regular vibrations.


What does 'Always On Display' button does in Android on Samsung Galaxy S7?

Quoted from CNET:

According to Samsung, the average smartphone owner checks his or her device nearly 150 times a day: A quick press of the power button to view the time here, and double tap on the screen to view notifications there, apparently adds up fast.
Samsung's solution for this obsessive checking and waking our smartphones is through a feature it calls Always-On Display.
As the name implies, Samsung's latest Galaxy devices are equipped with the fancy new feature.
After locking your device, the screen will remain dimly lit. The default setting is to display the current time, with the information moving around on the screen every few seconds. Alerts for missed calls and text messages are also placed on the screen.

...and additionally from TechRadar:

Where before you'd have to wake the phone to see the time or check your notifications, now the screen permanently displays a clock, calendar or pattern.


Galaxy S with Cyanogenmod 10 (stable): File Manager needs root permission to access the external SD card

Sounds like the permission for the mount point of the external sd card got messed up.

This is how it looks like on a SGS with CM 9.1:

shell@android:/ $ ls -l /mnt/
d---rwxr-x system   sdcard_rw          1970-01-01 01:00 emmc


why does the xoom dock connect the USB port?

The Xoom dock has a connector to the USB port for Audio and stability. The back of the dock has a stereo out port.

Here is a link detailing the innards and how to convert to a plain USB. http://wordpress.greghausman.com/2011/05/08/motorola-xoom-usb-dock/


How do I export my Google Fit data to iPhone and keep it in sync in the future?

To answer the first part of your question - the Android part:

You export your Google Fit data by going to Google Takeout.  It is not exported from within the Fit app itself.

Takeout is part of Google's Data Liberation project.  It enables you to download a copy of your data held by Google and attached to your Google account.

The Fit data can be downloaded in TCX or CSV format.


How to change/remove icons on LG lock screen?

I found the solution by myself. In Settings > Lock Screen you can configure your Lock Screen. There are options to change the way screen is unlocked, to change wallpaper and to change widget and shortcuts.


BlackBerry priv: double tap to wake up isn't working

This got fixed automatically this morning. It was clearly not a software issue as there was no update. I suspect it might be the cause of placing the phone's screen face down few days before this issue, which got fixed when I stopped doing so.


How to recall or review WEA Alerts e.g. Amber Alerts?

Using Oreo (8.1)... Settings -> Apps & notifications -> Advanced -> Emergency alerts -> Emergency alert history.

In 8.0, it might be called "Mobile broadcast settings" instead.


How much does an LCD's backlight drain the battery?

Not only the screen is a main consumer. Based on the Motorola Droid, I can give you some data to compare:

Video recording         1557 mW
UMTS Upload             1410 mW
UMTS Download           1349 mW
EGDE Upload             1179 mW
WLAN Download           1158 mW
Video play (fullscreen) 1135 mW (already minus the display)
UMTS phone call          983 mW
Camera                   934 mW
EGDE Download            853 mW
Bluetooth receive        751 mW
Display (at max)         730 mW
GPS Search               550 mW
GSM phone call           511 mW
Bluetooth send           487 mW
WLAN Upload              479 mW
Display (at min)         310 mW
MP3 play                 160 mW
UMTS Standby              18,3 mW
GSM/EDGE Standby          11,6 mW
WLAN Standby               7,8 mW
Bluetooth Standby          2,8 mW
GPS Standby                0,4 mW

As you can see, there are clearly compontents/actions with a much higher energy consumptions -- but the display gives you good potential to reserve some.

Data source is an article at Heise.DE called Energiesparplan (google translate version here).


call/alert me when I receive an SMS from a VIP

Found a partial answer, which will allow you to select a Sound.

But not sure if I can set this sound to repeat until I turn it off.

Tap the Conversation you wish to set a custom notification for.
Tap the three-dot menu icon in the top right corner of the screen.
Tap Details.
Tap Notifications.
Tap Sound.
Tap your desired tone.
Tap the back arrow, or OK or Save if those options appear with your ringtone picking menu.

Source.


Try lux on playstore, let me know

https://play.google.com/store/apps/details?id=com.vito.lux&hl=it


Scanning a QR code into a browser text input?

Try Barcodescanner Keyboard.

  Soft-keyboard with integrated camera bar-code scanner lets you scan wherever you can type (free demo).
  This soft-keyboard scans and enters barcodes directly into input fields of arbitrary apps, batch scanning mode is supported. It reduces manual typing and eliminates copy and paste. A special key invokes the built-in or an external camera barcode scanner. The setup wizard makes it easy to install the app.


On es file explorer, how can you move files into /mnt/sdcard_ext

To do that you must have root and root explorer enabled. Just launch es file explorer. Swipe left to right or go to the menu section and just belie enable root explorer. If you don't find it tap on tools. Next just above tap local. Then device. You can then locate the mnt/sdcard path. You can paste whatever you want there and do a reboot


The native AOSP calendar app was replaced by Google's own1. It went by the package name com.android.calendar, but is no longer found in either Google Play Store or on F-Droid (you can find its code on Github, though). As for synchronization, that's usually not done by the calendar app itself but by the corresponding sync service; most calendar apps use the "calendar provider" of the Android system to store their data.

If you want a "local calendar" that's not synchronized at any cost, and your device doesn't offer such, you can e.g. use Offline Calendar; but that app doesn't seem to be maintained anymore (last version is from 2013).

1: See Google’s iron grip on Android: Controlling open source by any means necessary


Termux (Terminal) tsu is adding "(unreachable)" to my current working path

I have had the same problem. I resolved it with a work around. I added to the environment the following.
PWD=$(echo $PWD | cut -c 14-)
I added the following lines to the tsu script at line numbers 239 - 241
# Following line added to fix the problem of pwd starting with (unreachable)
ENV_BUILT+=" PWD=$(echo $PWD | cut -c 14-)"

Following is the the full code of the updated tsu script

#!/data/data/com.termux/files/usr/bin/bash

# Copyright (c) 2020, Cswl C. https://github.com/cswl
# This software is licensed under the ISC Liscense.
# https://github.com/cswl/tsu/blob/v8/LICENSE.md

### tsu
_TSU_VERSION="8.5.1"

log_DEBUG() { __debug_wrapper() { :; }; }

gather_debug_info() {
    echo "Environment: "
    env
    echo "============================"
    dpkg --print-architecture
    echo "Android version:"
    getprop ro.build.version.release
    echo "Android device:"
    getprop ro.product.manufacturer
    getprop ro.product.model
    uname -a

} >>"$LOG_FILE"

# Allow debugging with a long option
if [[ "$1" == '--dbg' ]]; then
    _TSU_DEBUG=true
    printf -v LOG_FILE "%(%Y%m%d)T"
    LOG_FILE="./tsu_debug_$LOG_FILE"
    gather_debug_info
    set -x
    shift
fi

## Support for busybox style calling convention.
## This works because we don't actually `readlink` the script location.
_TSU_CALL="${BASH_SOURCE[0]##*/}"
if [[ "$_TSU_CALL" == "sudo" ]]; then
    _TSU_AS_SUDO=true
fi

show_usage() {
    cat <<"EOF"
tsu A su interface wrapper for Termux

    Usage:
        tsu
        tsu [ -s SHELL ]  [-p|-a] [USER]
        tsu --dbg [ -s SHELL ] [-p|-a] [-E] [USER]
        tsu -h | --help | --version

    Options:
    --dbg        Enable debug output
    -s <shell>   Use an alternate specified shell.
    -p           Prepend system binaries to PATH
    -a           Append system binaries to PATH
    -h --help    Show this screen.

    This package also provides a minimal sudo which is enough to run most programs as root

        sudo command

    https://github.com/cswl/tsu

EOF
}

show_usage_sudo() {
    cat <<"EOF"
sudo - run commands as root or another user
  usage: sudo command
  usage: sudo [-E] [-u USER] command

    Options:
      -E          Preserve environment variables from the current shell.
      -u USER   Switch to USER instead of root..
EOF
}

# Defaults in Termux and Android
TERMUX_FS="/data/data/com.termux/files"
TERMUX_PREFIX="$TERMUX_FS/usr"
TERMUX_PATH="$TERMUX_PREFIX/bin:$TERMUX_PREFIX/bin/applets"
ROOT_HOME="$TERMUX_FS/home/.suroot"
ANDROID_SYSPATHS="/system/bin:/system/xbin"
EXTRA_SYSPATHS="/sbin:/sbin/bin"
#ANDROID_ASROOT_SYSPATHS="/bin:/xbin"

# Some constants that may change in future.
BB_MAGISK="/sbin/.magisk/busybox"

# Options parsing

# Loop through arguments and process them
log_DEBUG TSU_AS_SUDO
if [[ "$_TSU_AS_SUDO" == true ]]; then
    # Handle cases where people do `sudo su`
    if [[ "$1" == "su" ]]; then
        unset _TSU_AS_SUDO
    fi

    _is_pos() {
        for e in -u --user -E --preserve-enviroment; do [[ "$e" == "$1" ]] && return 1; done
        return 0
    }

    for arg in "$@"; do

        # It is important to break as soon as we see a positional argument
        # Otherwise `sudo id -u` or `sudo some_cmd -E` wont work as expected

        if _is_pos "$arg"; then break; fi

        case $arg in
        -u | --user)
            SWITCH_USER="$2"
            shift
            shift
            ;;
        -E | --preserve-enviroment)
            ENVIRONMENT_PRESERVE=true
            shift
            ;;
        esac
    done

fi

log_DEBUG _TSU_AS_SUDO
if [[ -z "$_TSU_AS_SUDO" ]]; then
    for arg in "$@"; do
        case $arg in
        -p | --syspre)
            PREPEND_SYSTEM_PATH=true
            shift
            ;;
        -a | --sysadd)
            APPEND_SYSTEM_PATH=true
            shift
            ;;
        -s | --shell)
            ALT_SHELL="$2"
            shift
            shift
            ;;
        --version)
            echo "tsu - $_TSU_VERSION"
            exit
            ;;
        -h | --help)
            show_usage
            exit
            ;;

        *)
            POS_ARGS+=("$1")
            shift
            ;;
        esac
    done

    SWITCH_USER="${POS_ARGS[0]}"
fi

declare -A EXP_ENV

env_path_helper() {

    # We will try to match the default behavior of normal linux su
    # Unless the user specifically asks to preserve the enviroment,
    # We create a fresh new one.
    log_DEBUG "${FUNCNAME[0]}"

    log_DEBUG SWITCH_USER
    if [[ -z "$SWITCH_USER" ]]; then
        ## By default we start a fresh root shell with HOME set to that of the root home

        # Creat root $HOME if it doesnt exsists yet
        [[ -d "$ROOT_HOME" ]] || mkdir "$ROOT_HOME"
        NEW_HOME="$ROOT_HOME"

        EXP_ENV[PREFIX]="$PREFIX"
        EXP_ENV[TMPDIR]="$ROOT_HOME/.tmp"
        EXP_ENV[LD_PRELOAD]="$LD_PRELOAD"

        log_DEBUG _TSU_AS_SUDO
        if [[ "$_TSU_AS_SUDO" == true ]]; then
            # sudo copies PATH variable, so most user binaries can run as root
            # tested with `sudo env` version 1.8.31p1
            NEW_PATH="$PATH"
            EXP_ENV[SUDO_GID]="$(id -g)"
            EXP_ENV[SUDO_USER]="$(id -un)"
            EXP_ENV[SUDO_USER]="$(id -u)"
        else
            NEW_PATH="$TERMUX_PATH"
        fi

        # Android versions prior to 7.0 will break if LD_LIBRARY_PATH is set
        log_DEBUG "LD_LIBRARY_PATH"
        if [[ -n "$LD_LIBRARY_PATH" ]]; then
            SYS_LIBS="/system/lib64"
            EXP_ENV[LD_LIBRARY_PATH]="$LD_LIBRARY_PATH:$SYS_LIBS"
        else
            ASP="${ANDROID_SYSPATHS}:${EXTRA_SYSPATHS}"
            # Should we add /system/* paths:
            # Some Android utilities work. but some break
            log_DEBUG "PREPEND_SYSTEM_PATH"
            if [[ -n "$PREPEND_SYSTEM_PATH" ]]; then
                NEW_PATH="$ASP:$NEW_PATH"
            else
                NEW_PATH="$NEW_PATH:$ASP"
            fi
        fi

    else
        # Other uid in the system cannot run Termux binaries
        NEW_HOME="/"
        NEW_PATH="$ANDROID_SYSPATHS"

    fi

    # We create a new environment cause the one on the
    # user Termux enviroment may be polluted with startup scripts
    EXP_ENV[PATH]="$NEW_PATH"
    EXP_ENV[HOME]="$NEW_HOME"
    EXP_ENV[TERM]="xterm-256color"

    [[ -z "$_TSU_DEBUG" ]] || set +x
    ## Android specific exports: Need more testing.
    EXP_ENV[ANDROID_ROOT]="$ANDROID_ROOT"
    EXP_ENV[ANDROID_DATA]="$ANDROID_DATA"

    ENV_BUILT=""

    for key in "${!EXP_ENV[@]}"; do
        ENV_BUILT="$ENV_BUILT $key=${EXP_ENV[$key]} "
    done

    # Following line added to fix the problem of pwd starting with (unreachable)
    ENV_BUILT+=" PWD=$(echo $PWD | cut -c 14-)"

    [[ -z "$_TSU_DEBUG" ]] || set -x

}

root_shell_helper() {
    log_DEBUG "${FUNCNAME[0]}"

    if [[ -n "$SWITCH_USER" ]]; then
        ROOT_SHELL="/system/bin/sh"
        return
    fi
    # Selection of shell, checked in this order.
    # user defined shell -> user's login shell
    # bash ->  sh
    log_DEBUG "ALT_SHELL"
    if [[ "$ALT_SHELL" == "system" ]]; then
        ROOT_SHELL="/system/bin/sh"
    elif [[ -n "$ALT_SHELL" ]]; then
        # Expand //usr/ to /usr/
        ALT_SHELL_EXPANDED="${ALT_SHELL/\/usr\//$TERMUX_PREFIX\/}"
        ROOT_SHELL="$ALT_SHELL_EXPANDED"
    elif [[ -x "$HOME/.termux/shell" ]]; then
        ROOT_SHELL="$(readlink -f -- "$HOME/.termux/shell")"
    elif [[ -x "$PREFIX/bin/bash" ]]; then
        ROOT_SHELL="$PREFIX/bin/bash"
    else
        ROOT_SHELL="$PREFIX/bin/sh"
    fi
}

log_DEBUG _TSU_AS_SUDO
if [[ "$_TSU_AS_SUDO" == true ]]; then
    if [[ -z "$1" ]]; then
        show_usage_sudo
        exit 1
    fi
    CMD_ARGS=$(printf '%q ' "$@")
    log_DEBUG ENVIRONMENT_PRESERVE
    [[ -n "$ENVIRONMENT_PRESERVE" ]] || env_path_helper

    STARTUP_SCRIPT="$CMD_ARGS"
else

    root_shell_helper
    env_path_helper

    STARTUP_SCRIPT="$ROOT_SHELL"
fi

SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")

# On some systems with other root methods `/sbin` is inacessible.
if [[ -x "/sbin" ]]; then
    SU_BINARY_SEARCH+=("/sbin/su" "/sbin/bin/su")
else
    SKIP_SBIN=1
fi

# Unset all Termux LD_* enviroment variables to prevent symbols missing , dlopen()ing of wrong libs.
unset LD_LIBRARY_PATH
unset LD_PRELOAD

### ----- MAGISKSU
# shellcheck disable=SC2117
if [[ -z "$SKIP_SBIN" && "$(/sbin/su -v)" == *"MAGISKSU" ]]; then
    # We are on Magisk su
    su_args=("/sbin/su")
    [[ -z "$SWITCH_USER" ]] || su_args+=("$SWITCH_USER")

    su_cmdline="PATH=$BB_MAGISK "
    if [[ -n "$ENVIRONMENT_PRESERVE" ]]; then
        su_args+=("--preserve-environment")
        su_cmdline+="$STARTUP_SCRIPT"
    else
        su_cmdline+="env -i $ENV_BUILT $STARTUP_SCRIPT"
    fi
    su_args+=("-c")
    exec "${su_args[@]}" "${su_cmdline}"
    ##### ----- END MAGISKSU
else
    ##### ----- OTHERS SU
    for SU_BINARY in "${SU_BINARY_SEARCH[@]}"; do
        if [[ -x "$SU_BINARY" ]]; then

            su_args=("$SU_BINARY")
            [[ -z "$SWITCH_USER" ]] || su_args+=("$SWITCH_USER")

            # Let's use the system toybox/toolbox for now
            su_cmdline="PATH=$ANDROID_SYSPATHS "
            if [[ -n "$ENVIRONMENT_PRESERVE" ]]; then
                su_args+=("--preserve-environment")
                su_cmdline+="$STARTUP_SCRIPT "
            else
                su_cmdline+="env -i $ENV_BUILT $STARTUP_SCRIPT"
            fi
            su_args+=("-c")
            exec "${su_args[@]}" "${su_cmdline}"
        fi
    done
fi
##### ----- END OTHERS SU

# We didnt find any su binary
set +x
printf -- "No superuser binary detected. \n"
printf -- "Are you rooted? \n"

if [[ -n "$_TSU_DEBUG" ]]; then
    echo "-------------------------------------"
    echo "tsu ran in debug mode."
    echo "Full log can be found in tsu_debug.log"
    echo "Report any issues to: https://github.com/cswl/tsu "
fi

exit 1


How can I activate UDP forwarding for USB communication between a PC and an Android app

So finally, I did not find out how to enable UDP forwarding for USB communication but I did somethings else that works pretty well, but you have to enable USB tethering (from the computer ping the phone to see if it's properly enabled):

Create a TCP server on the phone and a TCP client on the desktop.
Execute adb tcp:port tcp:port on the desktop so it can communicate with the phone on localhost via TCP sockets.
Make the TCP server send the IP address (on the USB tethering network) of your phone to the TCP client.
Then you can close the TCP connection and with the address you can initiate an UDP connection with socket as you would in a normal situation.


Nevermind, I finally managed to configure this at a network-wide level by disabling IPv6 on my router. Now Pi-Hole works across all my devices. Happy days! :D


Galaxy S4 Mini not recognized by Linux in Download Mode

Samsung devices do not support fastboot. To flash a custom recovery, you can either use the dd command from within your ROM (assuming you're rooted), or use Heimdall. Instructions on using Heimdall can be found in the Heimdall Linux README.


Is there anything I can do to keep them from accessing the contents of
  my phone?

If they have physical access over phone, then the answers is no. If the information was encrypted, then you would stand a chance. However, if that is not the case, then in no time they will have access to your phone and the data it keeps within.

  Would deleting my Google account keep them from changing my password?

No. The data is already written on the storage of your phone. One thing you would do would be wiping your phone using Android Device Manager. However, it won't actually wipe the data really. It'll just make it overwritable for other datas to take its place, which will be ineffective anyway. But that for sure will make people realize you got something to hide and might even be considered as tampering the evidence as acejavelin said.

  I'm not sure what question to ask

I think the question you want to ask is Are they going to certainly learn whatever is on the phone and is there a way to stop them at this point?

The answers are yes and no respectively.


It doesn't seem unusual to me that an app that commercially depends on tracking its users would send you to a website to track and count you, and then have that site redirect you to the real store page.

If you don't trust them not to misuse this tracking data, don't use the app.


How to detect incoming call is a forwarded call?

Check out Forwarded Call Alert Free ROOT. It also has a paid version, and an XDA thread.

There may also be other apps that can do this that I may not be aware of.


How to clear Stock Browser cache when browser isn't installed?

As a side-effect of clearing all caches of all apps: boot into recovery-mode, and select "wipe cache". That wipes caches of all apps, but keeps your apps and data themselves intact.

If you have usb-debugging activated and adb available to use, there's a command doing the very same:

fastboot erase cache

This comes in handy especially for devices where you cannot access the recovery-mode.

Hint: you might be tempted to suggest adb shell pm clear com.android.browser for the very same purpose, restricting the purge to the specific app. Note that this is not only clearing the cache, but all the app's data as well. And it requires "elevated permissions" (i.e. root) to be executed – which is probably why it returned "failed" when you tried. The full command would then read:

adb shell su -c "pm clear com.android.browser"


Boot into fastboot mode by holding VOL- then POWER until the screen lights up with an interface like this:

The last line will indicate lock status: "locked" or "unlocked".

Anyone can easily issue a relock of the bootloader by executing fastboot oem lock. This had been the case from nearly the very beginning - not sure where you got the impression that only manufacturers can do it.

Although the relock command triggers a factory reset, if the ROM itself was modified (modified /system, plus a custom kernel that turns off dm-verity), relocking will not prevent the OS from booting up afterwards, therefore it's not an optimal way to make sure the phone hasn't been tampered with. If you absolutely want to stay clean, unlock the bootloader and flash a factory image.

Lastly, an additional suggestion: if you like to play around with the phone (root, etc.), keep your bootloader unlocked so that you wouldn't end up with a brick when things go wrong.


Help Please! Lost my Samsung Galaxy S7 edge!

Call the police (you should have done that when the person had picked up your call, as the phone was on and the number could have been tracked).

Do you have Android Device Manager on phone? Then you can lock your phone from net, it'll be locked as soon as it goes online with any sim card, and you'll be able to see the location.


All phones automatically stop charging once they reach 100%. They then carefully monitor and "bounce" the battery level to ensure it doesn't drain too much, but doesn't overcharge, either. But they're definitely designed with this core concept in mind to reduce damage. Besides, if it stopped charging it at 100% and didn't start back up again, odds are by the time you woke up you'd need to start charging again to get back the 20-30% you lost, which is another charge cycle, causing exactly what you were trying to avoid.


How to make phonecalls on an Android AVD?

You can call between AVD's. Run 2 AVD, each will have diffrent number - it is placed on window title bar, example 5558. Call from one to other using this numbers. You can also text ;]

In your AVD you simply cannot use real celluar network because your PC/Mac do not have built-in GSM modem (even if, AVD is not supporting this kind of feature).


Place the ROM zip file in /data/media , that won't get wiped, when you wipe with TWRP

That's assuming you don't have an external SD.

See this for more -What's the difference between Data and Internal Storage?


Turn a Android Phone with broken screen into dedicated Web server

Welcome to the Android Enthusiasts, Majk! We support end-users with Android-specific issues, but cannot help you setting up a Linux server on a device, though it was running Android before. Still, some helpful hints:

There are means to control your device even with a broken screen. We've got several issues reported where people wanted to do exactly that. Please check e.g.:

My screen got broken, how to see on the computer what I'm doing in my device?
Control Android with broken screen from PC
Use android phone with broken screen as WiFi camera
Broken Screen + Using adb shell to run vnc server

There are several web server apps available for Android as well. Even some supporting/including things like PHP and MySQL. Some examples:

AndroPHP
Ulti Server: PHP, MySQL, PMA
KSWEB: server + PHP + MySQL
NAMP nginx android web server

I guess that should get you started if you want to solve your issue using Android. And as I initially wrote: Doing that with any other OS, even on an "Android device", is beyond the scope of this site. But I would wonder if you will really need that, after these details – right? :)


Security of Android cryptography in versions < 5.0 against government agencies

What is the real Android security level when using cryptography?

The cryptography is strong itself.
Its application can be weak in systems of many applications and heterogenous hardware.
Many outdated applications can also increase the risk of security tweaks.
I can say that the security level of Google Pixel (sorry Android 7.x) can be strong because of both hardware and software control in the development of the product.

  Does Google have ways to unlock or decrypt the device without user key? (Maybe, because you can unlock your phone with your Google account, and Google has technical control over your account)

There are no standard ways to do this.
Secondary ways may exists but they are because of other reasons, than Google.

  Is the widely-announced feature a revising of the classic sdcard protection or a brand new way to encrypt the device?

I think no. I see no revises on the classic sdcard protection system here.


Does Samsung Galaxy S Indian ROM (latest DDJP6) has Bengali support?

Here's a workaround using Opera Mini.

Download and install Opera Mini (OM). Try accessing a site like the one cited above - http://bn.wikipedia.org

If it doesn't work out of the box, do the following:

In the address bar, type opera:config
Navigate to the option Use bitmap fonts for complex scripts and set it to YES

The fonts and script lettering should now be visible, albeit as images instead of text. That'll make content visible, but unlike text non-selectable.


That's because your memory is read-only! You can't write data to it: the delete operation writes to memory - at least modifies it.

Not sure about what may be causing this, but probably from malwares or as I can think of now a defective eMMC chip like you know those SD Card that suddenly becomes "Write protection enabled" .

I have myself experienced this and never found a solution so far. This seems to happen with HTC, HUAWEI and I had a case involving a Motorola phone.


How do I temporarily edit a webpage in Chrome?

Running the following snippet in the URL bar works in both Chrome for desktop and  Android:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

One important note: after copying & pasting the code into the address bar, Chrome automatically strips the javascript: part of it out. You must add that back in or it won't work!

It's to prevent malicious code being run by dumb users who think they'll win an iPad or get +1,000 Facebook friends if they copy some dodgy JS into the address bar.

It has the affect that the whole page becomes editable.

You could then do Print > Save as PDF if you needed to save the edited webpage.

I'm a professional web developer so this definitely has its uses for me. Needless to say, I am not liable if you do something underhanded with this, e.g. falsifying a company's 'thanks, your order is confirmed ' page to defraud products from them with a faked screenshot/print out.

I originally got the code from Stack Overflow, where there are 28 such questions.


Notification Vibration Bug on Galaxy Nexus?

There is a separate vibrate setting in the menu for sms messaging under Settings.


This can occur when you have insufficient storage available.

If you camera saves pictures to the SD card and your SD card is full (or does not have enough space for a new picture) it can crash.
A factory reset does not affect external storage.

Check where your camera stores it's pictures and if there is room left for pictures.


Unlocking Samsung Galaxy S7 with broken screen plugged into computer

A bit late to the party but you can unlock your phone with find my phone
That wasn't enough in my case.

Most recovery tools require you to have usb debugging enabled before you break your phone.


Lock screen stuck in landscape mode on Galaxy Tab 10.1

This is due to the fact that the lockscreen recognises that the device is a tablet, and therefore makes it stay in landscape mode.

There is an easy way to counteract this, however it does require the use of a third party application called set orientation, which allows you to force apps into any orientation you wish.

Just open up the app, and set the drop down to 'Automatic'. The screen will then rotate when you rotate the device.


Missing call summary in Samsung Galaxy Apollo (i5801)

I would try a factory reset via Settings -> Privacy -> Factory data reset.  This will wipe your phone, so make sure to do a back up first if you need to (you can search this site for backup methods).


Not possible until we have source code of mobile device drivers responsible for radio communication, You can read a related article which describe that Why it is not possible to use phone as sip to gsm gateway.

according that article

  Third hurdle to make Android work as a GSM Gateway is that vendor RIL
  is not open source. Every vendor has their own library of RIL that
  communicates with Radio Daemon (rild).


Emoji are dependent to OS too! You cannot have a emoji(s) which was typed in upgraded versions of the OS. You need to update the OS.


Options after opening a phishing website on my android

Clear your browser cache, as first step and if you want to be doubly sure run a malware detection app from Play store. Malware bytes is a good idea since it gives you pro features free for one month

It may or may not be a phishing site but since you are rightly concerned, this should be enough.


I have also had this happen, though when tracking my location for an exercise app.

I assume that I connected to a WiFi network unknowingly and that network was routed through a proxy in that far-away location. Thus, Google thought that I was farther away. I started turning off my WiFi when using that exercise app to track my location.

The root of this is that Google uses a combination of GPS, wireless network, and WiFi information to determine your location. Of these three, the WiFi is most likely to yield an incorrect answer.


Factory Reset, Google Photo's recovered old photos

A factory reset deletes the files on your internal memory, but does not secure delete them - or delete anything on your internal SD card.

When you press "Factory reset", it quick formats /data/ and /cache/. If you select "Also erase the SD card", then the internal SD card will be erased too.

If they can still be found with Google Photos after selecting the option to erase the SD card during a factory reset, try going to Settings > Storage and then select "Erase SD card".

If you really want to fully erase everything, use a secure delete program (it will fill the internal memory with a file filled with 0's and then delete the file), so you can't recover deleted files.


How to expands sd-card formatted as internal storage?

Not knowing exactly I believe that Android 5.0 and newer has gone and caused protection on orphaned memory space.  I would like to know more about situations like this.


"OTG support in Android Smartphones
the correct term is:
USB host support
can be easily detected if supported or not, connecting usb mouse to your smartphone via OTG cable.
If mouse is powered up and red laser is on, so supported.
The other way to detect if USB host mode is supported, is to install and run
USB OTG Checker app
Some claim USB Host Mode can be hidden and to enable it you should edit xml permissions configuration file


Try going to Settings > Applications Manager > All > Google Play Store and then click Uninstall updates.

It could be that the Play Store data has been corrupted. This will downgrade Play Store and might make it possible for you to launch Play Store which will then update itself in the background, but hopefully correctly this time.


Well, in order to unroot your device you need to flash the stock ROM again over to your device. For getting the stock ROM for your device try heading over to the sammobile/firmware section and get the appropriate stock ROM available for your Samsung GT-S6312, once you get the stock ROM use the ODIN which can be easily searched over the Google, download and use it to flash the stock ROM over your device. Once the flashing process completes your device will get unrooted.


It looks like a glitch in the font rendering process. If it is an in memory glitch, you may be able to resolve it by restarting the device. If it persists across restarts, then it is possibly either a corrupted font file or there's a bug in the font loader. In either case, you'd want to try to see if a restart resolves it.


There is an app to send/read SMS from the desktop using the Internet?

I have used DeskSMS over a Wi-Fi tether, and it works fine.

It is supposed to work over 3G, but I have not tested this.


How does an app reads an OTP SMS without SMS permission?

Verification by OTP uses a different API which doesn't need read SMS permission. You can read more here Perform SMS Verification on a Server

Hence, the app isn't reading your SMS but using a separate channel to read specially formatted text messages

I learnt of this when an Xposed module to block permissions did not work as I expected (similar case) and the developer explained the reason


Power control widget auto rotate toggle issue

I was wrong about the setting, it wasn't the auto rotate button. Power control widget doesn't have auto rotate, just Wifi - BT - GPS - Sync - Brightness.

From http://code.google.com/p/android/issues/detail?id=42405 :

What you consider to be the auto-rotate toggle, is the button to switch the sync!
It will switch whether your device will sync in background or not.


Is there a way to install Android SDK offline for Samsung galaxy tab a 8.0 so I can use ADB to manage my root I'm running 5.0.2

You don't even need Android SDK if all you want is ADB and fastboot - Minimal ADB and Fastboot has you covered.


If you wipe data/factory reset in ClockWorkMod or TWRP recovery, then it should remove it. The stock recovery probably will wipe it.

In general, to access recovery, turn off your phone and pull the battery (certain phones have a mode where they "hibernate" instead of powering off...)

Hold the volume up button and then hold the power button. When the phone vibrates release the power button but keep holding volume up.

Note: Factory resetting in Android may not remove this file. A research project by Cambridge University showed that there is a security flaw in some Android devices where not all the files are wiped...

This is because the recovery formats the data partition, so it will certainly be deleted.


i have already root my nexus4,but why it shows “shell@mako:/ $ ”when i enter command“adb shell”

Rooted or not: Logging in via adb shell first brings you to a user-prompt only (connected with the "shell" account). In order to work with root, you need to "escalate" your permissions by invoking su:

> adb shell
shell@mako:/ $ su
#

Apart from that, there are a few root checker apps available as well...


Disabling notifications for Samsung messages

Did you try to change this option in your default sms app? Is under settings in the main screen...


Transfering my contacts from old phone to a new phone

When you add a new contact, your phone asks you where to store it (Phone, SIM, Google account). You can store your contacts in your Google account so when you sign in on another device, it will import your contacts.

For backing up SMS messages you can use SMS BackUp+ or a similar app.

For more detailed explanation you can refer to HowToGeek's article on SMS backup.


Getting verification error when attempting to "adb sideload" the OTA update on Nexus 7 (2013)

Goal

If you have the OTA image downloaded and, as in my case, ended up without success you should be able to adb sideload <filename> it still manually (video here).

Problem/Error

... unfortunately the OTA update via adb sideload errors out with:

Finding update package...
Opening update package...
Verifying update package...
Installing update...
Verifying current system...
"/system/app/Drive.apk" has unexpected contents.
E:Error in /tmp/update.zip
(Status 7)
Installation aborted.

where /system/app/Drive.apk could be any system app.

Who's not to blame?

TWRP is not to blame, I thought so in the beginning, but it would work with TWRP as well.
TitaniumBackup Pro. Since I rooted my device and use a power-user feature, I should have known of its side-effects. Now I do know, though :) ... and there's a good chance you learn about this from this answer now.

Apparent cause of the error

Using Titanium Backup Pro I had used the "freeze" feature to get rid of some of the system apps, namely:

ASUS Keyboard
Calendar
Calendar Storage
com.android.providers.partnerbookmarks
com.android.sharedstoragebackup
com.google.android.voicesearch
Exchange Services
Gmail
Google One Time Init
Google Play Books
Google Play Games
Google Play Magazines
Google Play Movies
Google Play Music
Google Search
Google Text-to-speech Engine
Hangouts
iWnn IME
iWnnIME Keyboard (White)
One Time Init

This was apparently why the adb sideload bailed out early with the error message given in my question.

I also uninstalled some of the system apps, and I think I remember "Drive" (remember?: /system/app/Drive.apk) was one of them.

The solution

I found the solution over at forum.xda-developers.com in this answer. The gist is that if you have a modified image, you need to restore that to make the OTA sideload succeed.

First download the stock image for the build you currently have. Make sure it's the correct one for your device. So I was trying to upgrade from JSS15R to KRT16S on the Wi-Fi version, which meant I needed to download the 4.3 (JSS15R) image. That was the file razor-jss15r-factory-ec2d4f76.tgz in my case. I then unpacked that which gave me a subfolder named razor-jss15r. Inside of it there were shell scripts, a .img file and a .zip (image-razor-jss15r.zip). The latter needed to be unpacked. Then I had the .img files in the folder I unpacked the .zip into:

boot.img
cache.img
recovery.img
system.img
userdata.img

Then I followed the steps outlined in the linked answer:

boot into bootloader (keep Volume-down and Power pressed directly after turning it on)
connect USB (make sure before that, that all USB drivers are installed)
change into the folder with the previously unpacked .img files
check from the Android SDK prompt that you see the device with fastboot devices.
then execute fastboot flash system system.img which will flash a stock system partition

Note: unlike in the linked post, I left out the step with the fastboot erase system because that is apparently implied by fastboot flash system system.img as can be seen from the output. I also left out fastboot flash boot boot.img and fastboot flash recovery recovery.img because I thought it was unlikely that these "partitions" had been modified (I was right). You may need the latter two, though. It would probably depend on what you have modified that prevents the adb sideload step (i.e. read and understand the error message).

Here's the output:

# fastboot flash system system.img
erasing 'system'...
OKAY [  1.160s]
sending 'system' (603447 KB)...
OKAY [ 19.786s]
writing 'system'...
OKAY [ 26.720s]
finished. total time: 47.668s

Et voila, a clean system that can be OTA updated.

So in short, you may only need to fastboot flash system system.img from the stock image you are running, if you ever get an error during the verification phase:

Verifying current system...
"/system/<SOME>.apk" has unexpected contents.
E:Error in /tmp/update.zip
(Status 7)

Download for factory images (Nexus 7, both)

Factory Images "razor" for Nexus 7 [2013] (Wi-Fi)
Factory Images "razorg" for Nexus 7 [2013] (Mobile)


Yes, there are many advantages. Your phone's usable RAM memory increases from 555MB to 625MB.
Camera zoom is possible, but only digital zoom is available. So it's of no use.
All your old apps will work fine in JB, but games will lag unless you root your phone.

Upgrading to Jelly Bean if you are in India will void warranty.

There are no official instructions to update. You will have to do it manually. If you are new to Android, get help from someone who has Android knowledge. Otherwise, you may end up bricking your phone.

I would suggest you don't upgrade, because JB update for S Advance will be available in India soon.


Why did my phone reboot after copying an so file to the system/lib folder?

If you don't want the phone to reboot, push the so file directly to the system/lib folder. Don't make the sdcard folder an intermediary. So you do:

$ adb remount
$ adb push libfoo.so /system/lib


How to disable haptic feedback for (software) keyboard?

This should work:

Go to Settings > Language and Input.  Click the settings icon on the Samsung keyboard, go to Advanced and uncheck Vibration.


First, reboot your device. Try to reinstall Whatsapp. Disable any mods like custom DPI, custom theme, Xposed, etc...

Hope my answer helps you!


Disabling Download Manager notifications

When searching for Download Manager under Settings -> Apps & Notifications you missed listing out the system apps. List them by tapping on the three dots line in the upper right corner and choosing show system apps. Download Manager is a system app and you would find it apps list.

To disable the notifications from that app, tap on that app in the list, then Notifications, and choose an option there that fits your needs.


How to increase internal memory of the HTC Wildfire S finally?

You've said that you partitioned before installing link2sd but not before installing data2sd. data2sd also requires extra partition just like link2sd.

The reason link2sd being not effective is because it moves all but data to sd-card. If any of your app uses huge data it will fill your internal space quickly.

Try going to Settings -> Apps -> Sort by data size and see which apps are on top and try clearing their data. This will free some space for some time but also clear that particular app's data.

As you've pointed out installing Dalvik cache to SD would be best. In my custom ROM I've to open terminal and type a2sd install and supply option y,n,y. Most probably this will work with your ROM as well.


Call another phone/text when bluetooth device goes out of range?

You can try automation as an alternative .  I prefer Macrodroid, being easy to learn and free (upto 5 macros)

First pair your devices and confirm

Create a macro

Trigger:  Bluetooth event  → Device disconnected → Select paired device

Actions:

Make call  → select number
Send SMS → Enter phone number and desired text (Test in screenshot below) on next line

Constraints : Leave blank

Name the macro whatever, save and profit

Tested on  Android 7.1.2

Note: Initiating call / SMS is not instantaneous on disconnection. There is a pause of about 30 seconds or so during which I guess Bluetooth connectivity is attempted again before it gives up and declares as disconnected


How to login only to Google Music and not the other Google services?

As someone who tried to keep a select few Google apps from opening a bevy of other Google apps, just to preserve battery life, and that failed so spectacularly that I opted to use non-Google apps, I have a suspicion you really can't do it unless GMusic runs in kiosk mode (possible; I use iPods for kiosk music so I'm not sure about GMusic).

If GMusic doesn't have a kiosk mode, maybe you can run GMusic in a kiosk browser like SureFox? (I think you can, but it's been a while since I've tried GMusic). There are several of those to try.

But I imagine your best bet is seeing if one of the paid kiosk apps works well with your phone. Note that some of those apps reportedly "mess up" certain phones/tablets, so check the reviews on Playstore for your particular device before trying/buying one.


Stop Google play store from Auto updating

Unless you block Download Manager, Google Play Services and Google Pay Store from accessing internet, then you can't stop it from updating. Blocking them will also have the effect of preventing other apps to update which I presume you don't want.


A great place to start would be on the ROM list for your device on XDA.

There are many options available, so which one you want to install comes down to user preference.

Please note that it will be required that you root your device, so proceed with caution as your warranty will be void.

Your other alternative is building it yourself from source.


How to check if a package is enabled via shell?

pm list packages -d 2>/dev/null

will list up all disabled packages, one per line, preceded with the keyword package: – so output looks like

package:com.android.exchange
package:com.android.email

So if you take that output and "grep" it for the package name in question, the package is enabled if the output is "empty" and disabled otherwise. Alternatively, if you want a number (0/1), you can use the wc utility:

pm list packages -d 2>/dev/null | grep com.android.exchange | wc -l

would return "1" in above example, meaning the package com.android.exchange is disabled. It would, however, return "0" if I'd grep for com.foobar.app – which doesn't necessarily mean that com.foobar.app is enabled but could also mean it's simply not installed :) So if you want to cross-check, you can do so running the same command with pm list packages -e (to list enabled packages).


Will Google Navigation work without WiFi on Android tablet

It most likely will work, depending on a few facts:

your device must have GPS built-in
you must have the map data downloaded while connected to WiFi (e.g. using Maps (-) Offline Navigation, which fills Google Map's cache)
for navigation, you must have calculated the route in advance

I'm not sure whether Google Maps supports pre-calculation for navigation -- but even if, there's another restriction: once you hit a "closed road" (road works or the like), you're lost -- it cannot do a re-calculation of the route without network.

Also, getting a fix on GPS might be a lot slower (unless you aquire your fix while still connected to WiFi). Background is: To get a fix, GPS needs to know where which satellites are. These data are contained in what's called the Almanac. While AGPS downloads those data from the network (e.g. via mobile data), "plain GPS" does not have this feature, and thus needs to get the data directly from the satellites -- which obviously is not as fast.

If it does not work with Google Maps, there are several alternatives to be found on the Google Playstore. I successfully used Locus Map Free this way, so I know it does work. Locus lets you download map data directly from within the app, from different sources, and also offers pre-calculation of routes. This app is just one example, there are a lot more available.


Is it possible to make computer temporary storage?

MTP is the protocol in which the phone can transfer files from your phone to your computer (and vice versa). If it is a Windows computer, you should be able to plug your phone in and access and modify the files from the computer section in the file explorer. A pop up on your phone may ask you what protocol to use (for security reasons) and your phone's files can't be accessed until you select MTP. Macs don't support MTP (last I checked). You may also want to use a wifi file transfer app, if that is more convenient.


How to mount sdext2 partition by Apps2SD script, before system mount?

I recently stumbled upon a Magisk module called fbind to fix the issue of small internal memory. The module mounts mmcblk1p2 to extsd before Android gets the chance to mount it.

I have been using this module for a couple of days now and it is working perfectly for me. I still occasionally get the soft reboot error but it doesn't do any harm, you always can disable the soft reboot error message from the settings.


There is no direct switch to do so. As @r4d1um says, you may deactivate your data, and once you want to resume, restart your data and the store will start download from where you had left off.


Error: Unfortunately [every app] has stopped working

Try factory resetting your phone, but backup important data first.


This audio format (AC3) not supported in MX player

This is what you need.
Download the codec, place it in your internal storage, then Settings > decoder > Custom codec. This should fix your problem.


My Battery Draining Problem is also Solved by upgrading Android lollipop 5.0.1 to marshmallow 6.0.1.


While for Android 6 and 7 the DB with SMS data is located under

  /data/data/com.android.providers.telephony

on my LineageOS 15 (Oreo) the file has been moved under

  /data/data/com.android.messaging

and renamed to bugle_db

Oo


I had the same problem with my D802T. What you need to do is that before you install recovery, copy the zip file for any rom ( i did cloudyg2 3.3). Then once you boot into recovery, wipe the cache and dalvik cache and then install the zip. Once the installation is successful, the phone will boot into the rom without getting stuck at the LG logo. Once you are into the rom you can switch off the phone and try to use the key combination ( vol down + power keys) to go into recovery. Or else download an app that lets you boot into recovery.

For more info go to this  link. Look for my comment on page 2 for more details.
Hope it helps