text:
Shell script to kill custom apps, run another app then restart killed apps?
Is it possible to make a shell script that would run using Smanager, for example, to do the following:

Kill a list of custom apps loaded from a file
Run one custom app loaded from the same file
When that app is closed, restore killed apps

If that's not possible, then could it be split into two scripts, one that kills all the custom apps and launch one custom app, the other to restart the custom apps?
All of this is on a rooted phone.
Thanks.

This is all more than possible on a rooted phone, but before any of us begin writing the script, may I ask why you would want to do this?
I mean, why go through the trouble of re-loading the killed apps?
If you're eager to get started on this, Tasker would be the easiest way for you to do it, albeit it'll cost you $8 USD

Thanks for the comment. What I basically want is some sort of "Game Mode", activated before launching a game, desactivated after exiting it. For example, I have some apps bulletproofed (e.g. keyboard, whatsapp, viber, etc) and it would be nice to kill them before launching the game and launch them again  once I'm done.

That would not be a good idea IMHO - that would be a battery killer - since explicitly killing other apps and services that are not yours, those services and apps will end up getting restarted... and tbqh, killing other apps just for the sake of "Game Mode" is very bad idea and if that was published - there'd be uproar about it...

I wouldn't be killing system services, only user apps such as: viber, whatsapp, SwiftKey, etc.

Also, gaming isn't exactly battery friendly, and killing some user apps does pay off on lower end devices. In my case, it nullifies the lag while playing PES.

Gaming has never been battery friendly regardless. And killing apps regardless is not exactly a good way of dealing with it - might be easier to put it another way, switch into airplane mode and run the game, those that are relying on network traffic will quietly shut-up until finished playing the game, and switch off airplane mode, everyone happy!

Not quite. I'm not trying to avoid distractions, but to gain enough resources to run the game without lagging. Which worked fine for PES, the most demanding game I  play on my android. :)

GermainZ's idea is somewhat legitimate for older devices with less RAM, t0mm13b. However, t0mm13b is right in the sense that the apps would restart themselves as they need to.

You can use an Tasker to kill apps when you launch your game. And you are also able to do the opposite, when your game gets closed, Tasker can initialize other apps.
You may use the trial version to test this, but I believe that better results can only be achieved with root.

Tasker
Tasker by Crafty Apps available from Google Play Store (4,49€)
From their website you have a free 14-day trial download.

Are you affiliated with Tasker? Just curious as you've posted the near identical answer in another question... :)

@t0mm13b Nop :) I been playing around with it the past few days, and it solves a lot of headaches :D

@t0mm13b coincidentally, Tasker can be the solution for this past two questions :) But I'll be looking for unanswered questions to promote even more Tasker :D

yeah, its a dead handy tool alright :) Takes a bit of getting used to their logic which seems counter-intuitive...

I created a test task (vibrate for 500ms) and it doesn't seem to do anything when I run it (by pressing the play like button)... Not sure if it's a bug or if I got it wrong.

Didn't work for me, but I believe it's a bug on my side. Will redownload later. Since it does what I'm asking for, I'm accepting this answer.

In order to start in game mode, I thing you can use the following commands
pm enable package_name

and
pm disable package_name

then you should restart some application services like whatsapp in order to restart checking automatically (Not sure if they will automatically restart services since package has been disabled) to do that you can use am command, but not sure what where will be the best arguments. You can use the logcat command, to debug what intents are being launched.
If you only kill the application it automatically will restart few seconds.
In SManager, at this moment it is not possible execute script after app has finished. But it could be a new feature.
You also should kill SManager in the las line of the script.
killall os.tools.scriptmanager

Fast Reboot will get the job done for you.
Whenever you want to play your game, just launch Fast Reboot and then launch your game. It will free up some extra RAM without interfering with anything critical, and it is much easier than a script.
Don't worry about restarting the apps, because as t0mm said, they will almost immediately restart themselves. (You can launch Fast Reboot twice to see this)
This solution will solve your needs without having to pay for Tasker.
Although, I do recommend that app- it can do anything.


text:
How to partition SD card in HTC One X?
I was trying to create ext2/ext3/ext4 partitions on the SD card. I tried ClockworkMod recovery and it didn't work. Nothing seems to have happened.
I also tried using MiniTool and that also failed. I tried both Disk Utility and GParted in Ubuntu and it still didn't work. For MiniTool, Disk Utility, and GParted, after I finished partitioning the partitions showed up on the computer OK, but when USB's disconnected the One X says that the SD card's corrupted.
Has anybody done this? Or is there some other way to solve this?
Or maybe it's not possible because the SD card is built-in?
Thanks!

After some more playing around, it seems that the problem might be something related to a partition table.
When there's no partition table, it works fine, but after I add a partition table it seems that the phone can't recognize the SD card anymore.

I think this post provides some information about it. It also seems to be consistent with what I've tried.
Instead of partitioning the SD card, mounting an .img with a ext4 filesystem is a simple workaround.

source: Stack Exchange

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

sort: votes


text:
Can I flash CyanogenMod without unlocking bootloader?
With a locked bootloader on an SE ST17i running the rooted Stock Xperia Gingerbread 2.3.4, can I flash the CyanogenMod 9 onto it? Or do I really need my bootloader unlocked? I also have ClockWorkMod installed and as far as I know that shouldn't have been possible with a locked bootloader so I'm rather confused. I'm not at all experienced with rooting and I'd consider myself on just the "beginnner" stage.
I'm not too keen on the thought of unlocking my phone's bootloader as that wil most certainly void my warranty.

Just be cautious of flashing Sony handsets - bootloader and recovery are on the one partition thus making it difficult to upgrade! Just don't ask me why they made that awful decision! You can re-lock the bootloader again after - FYI!

Basically, this could be possible. I've got CM7.2 on my Motorola Droid2, which also has its bootloader locked. Being at work, I cannot access all ressources (firewall restricts me) -- but just in case, there seems to be a youtube tutorial on Unlock any Sony Ericsson Xperia in 5 minutes, just in case you want to unlock first (which should make things easier).
According to XDA your device should be supported by CM9. However, I could not figure out whether CM by default uses 2nd init on the XPeria devices (which is what must be done when the bootloader is locked -- and how it works e.g. on the Motorola Milestone 2; but obviously this is not done for the ST17i). So if you want to try with your bootloader locked, you should check with the instructions coming with your CM9 build to make sure: Some sources I've found (not sure which XPeria the ST17i is, so they might apply or not), as e.g. How to pgrade Xperia X8 to Android 4.0 ICS / How to Upgrade Xperia X8 to Android 4.1 Jelly Bean and especially Android Forums - View Single Post - All Xperia mini (un)rooting,un(re)locking bootloader,flashing CM,kernels,CWM,ROM's,tweaks etc (which explicitly applies to your ST17i), mention an unlocked bootloader as pre-condition for flashing CM9.
So the answer is probably NO, though it would theoretically be possible.

You definitely need to unlock the bootloader - am afraid! That is a precursor to enable flashing custom ROMs. No buts, no ifs! Just a PITA in having to do that stage but then again the principle of locked bootloader is not just for warranty, its also for when the handset gets stolen and some savvy person can unlock the bootloader which factory resets everything so contacts/messages etc are wiped clean!

@t0mm13b as I wrote above: My Moto Droid 2 still has its bootloader locked -- but at the same time runs CyanogenMod. There is a way around it, using "2nd init", but this approach is only used if unlocking the bootloader is not possible (see RootzWiki), and so far seems to be used with Motorola devices only.

Its motorola specific - that 2nd init yeah? Well it worked for you but the OP is talking about Sony....

Exactly -- and I mentioned this in my answer :) I was just addressing your generic "[unlocking] is a precursor to enable flashing custom ROMs. No buts, no ifs!" :P

It's not necessary. If your Xperia's bootloader is locked you can't install a custom kernel but you can install a custom ROM. I have MIUI with a stock 4.0.4 based kernel on my Xperia S.

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


text:
How do one know what is the reasons why an android apps exit with exceptions?
Sometime, when you install a particular apps in the emulator, it work perfectly fine. So, you install the apps into your phone and/or tablet and it throws an exception when you run it.
Similar, when you install a particular apps in the emulator, it does not work & throws you an exception but when you install the apps into your phone and/or tablet, it was able to run perfectly.
So, my question is how do I know what is the reasons behind why apps exit with exception? Where can I find more information so that I can actually know the reasons why the apps exit with exception?
Example: One can go to a particular folder of the apps and open the logs which tell the user that the apps exit with exception is because it does not have a GPU or it does not have enough RAM and so on.
IMPORTANT: This question is from the end-user point of view. This is NOT a question from a developer point of view. Thank you.

Do you ask this from a user's perspective -- or as a developer (how to catch it)?

@Izzy From a user's perspective

OK -- in this case, see my answer below. (To the close-voters: Asked from a user's perspective, this is NOT off-topic, so keep it open ;)

@Izzy, Thanks for your feedback. I have modify the question so that there will be no mis-understanding of the questions. Thanks :)

possible duplicate of How can I view and examine the Android log?

If you as a user experience such crashes, and want to help the developer to get them fixed, you can use tools such as aLogcat (free) - logcat or Bug Reporter to catch a log of what happened:

While aLogCat allows you to restrict the log closer to the crash event (by letting you define what to capture), Bug Reporter enables you to send other useful information along, such as device specifics and the like.
EDIT: As Liam pointed out correctly in his comment, due to permission changes in Jelly Bean (4.1) some of those log viewers where no longer able to see anything but their own log entries. If your device is rooted, the easiest way to get them working again is to convert them into system apps (e.g. with Titanium Backup). If your Android version is 4.0.x or lower, you should not be affected by this.

Thanks Izzy, the logcat was wonderful except that it is quite slow (probably the log file is too large)

The "logfile" is a ring-buffer, so it has a constant size. I use aLogCat for almost 2 years now (from time to time) and was happy with it, so I took no closer look at alternatives like Gemini Live Logcat, LogViewer Lite (LogCat) and the like, which you might try as well :)

Remember: These apps don't work in (I think) 4.1+ without root!

Yepp -- +1 for that hint, Liam. Not sure whether 4.1 or 4.2, but around that a restriction was established that apps only can see their own logs. But there was some work-around AFAIR. Will check and update my answer then. Thanks for the hint!

In Windows there is a utility called Event Viewer that captures unhandled exceptions and reports a good amount of informative data. Do we have something equivalent on Android?

@SaeedNeamati Why not asking that as a separate question, so it's found easier? Especially as this question here is rather old, and thus your comment not very likely to draw attention :)

@Izzy, thanks for the tip. I asked it here

Mainly due to hardware differences.
You can use a logcat viewer on Android 2.3 or below to view the logcat from all apps - this will provide the log from the apps which will tell your the exception.
Please be aware that in Jellybean or ICS google stopped apps from reading the logcat from other apps on the device - you can still use adb to see the entire logcat, and can output it to the logcat.log file using this command:
adb logcat > logcat.log

Wait a minute, you mean that the there is no alternative way to retrieve the logs for Android version higher than 2.3?

Ahm... almost, but to my knowledge this affects only JellyBean and "above" (so ICS/4.0 and lower should still work). Got hard without root, as each app now only can see its own entries in the logs. There was some work-around AFAIR, but I'm not sure if that involved root as well...


text:
Cannot turn Nexus 7 on after locking the screen
My Nexus 7 had been performing without any issues, however, I locked the screen by pressing the power button as usual and then tried to turn it on several hours later but it was unresponsive.
How can I fix this?

For me this seems to occur more frequency after a full charge.

I've managed to deal with this problem by performing a "soft reset".
Hold down the power button for around 30 seconds, the device should start a soft reset (i.e. you don't lose any data/settings etc.) and reboot.
--
Why it blocked and prevented me from performing a screen unlock remains to be explained.

I hope "reset" here means a soft-reset and not a factory reset. Am I right?

Yep that's right, I'll clarify in the answer.

I remember that behaviour too, but not in the last 2 months, iirc. Have you updated to the last version (4.2.1)? Could you still get a response by adb shell or adb logcat?

@ott I updated as soon as I could get it OTA, I didn't try anything but the soft reset, if iit happens again I'll give them a go.

For those that tried the soft reset to no avail: some tablet covers have magnets in them used to toggle the screen on and off. If your cover is poorly made, it may trigger the screen to turn off at inopportune times, e.g. when you have it folded back like a book cover and it's turning your screen off as soon as you get past the lockscreen.


text:
some Android text lines appeared on the screen that are changing constantly
It's about a few days since some text lines (white and green) appeared on the display and I don't know what changes I have made unintentionally that caused the appearance of those lines.

Screenshot (Click image to enlarge)

Can you post a screenshot?

@THelper: Would it help if I take a photo of it?

@Gigili A picture might help also, but if you don't know how to take a screenshot, look here:http://www.allaboutgalaxynote.com/3-fast-ways-to-create-screenshot-in-galaxy-note-without-using-any-apps/

In Settings, go to Developer options and un-check the Show CPU usage:


text:
Default dialer on Samsung Galaxy S3
I have a new Samsung Galaxy S3 running ICS (4.0.4). I would like to use the Go Dialer as my default dialer.
The stock Phone app does not claim to be the default dialer, and in fact I've downloaded Default App and set the default dialer to be the Go Dialer. And yet, when I navigate through a contact to the "dial" press, it brings up the stock Phone app.
I've seen conflicting reports on whether this is possible or not. Is it?

Any dialer customize the things that are come before you press dial button. After pressing the dial button it can only use the stock interface.

The Contacts app and the phone app work as one, however the contacts app should allow you to make a call using any app that uses the call broadcast receiver.
Ensure that the standard Phone/Dialer app isn't set as default:

Uninstall set default
Go into Settings->Apps->All->Dialer (or Phone) scroll down and select Clear Defaults.
Go back into the contacts app, and select a Contact to call. It should ask you which app you want to use. Select Go Dialer and select to always use that by default.

So I did all that (I assume item 1 means to remove the Default App app, which I did). Now both the stock Phone , the stock Dialer, and Go Contacts say they are not the default for any actions. And yet when I select a Contact to call it simply uses the stock Phone app. Sigh.

@rogerl Please uninstall Go Dialer, and any other custom apps, reinstall and try again.

When you say "any other custom apps" you really mean "any", or just "any related to dialing and the like"? Thanks.

Sorry, mis-type. I meant custom dialer apps :)

Yeah, so this made no difference. Even when I go through Go Contacts it brings up the stock Phone app.
Do you actually have a Samsung Galaxy and made this work?

Strange - could be a bug with Go Contacts, or with your ROM. It may be some strange security feature...

Well, that really bites. It worked fine on my old Droid X. Do you have this phone, or some other?


text:
Will using a vpn also encrypt my 3G traffic?
Just wondering, because I've just set my phone up to forward wifi traffic through my DD-WRT router. But I've no way to verify if my 3G traffic is also going through my router.
Does anyone know if 3G traffic also goes through the vpn by default (if vpn is properly configured on the phone of course).

Yes, 3G traffic will go through your VPN if it's set up correctly.  Whether or not your service provider supports that is another matter; some block VPN traffic (such as Verizon - see this thread).


text:
Downloading Kindle for Android tablet
I got Android tablet with the latest OS (4.0). I am trying to install Amazon Kindle app on it. I access the Google market via browser and select install. Then it is saying it will be downloaded shortly, but nothing happens. What is the problem? For some unknown reason I can't connect to google market via app on the Android tablet itself (failed connection). Before that I was able to download and install apps on tablet. The tablet: Zenithink ZT ICS. Any suggestions? Thanks

So can you not download any apps from the Play Store? It sounds like you have a bigger issue than just being unable to install Kindle.

I just replaced the amazon-kindle tag (as it refers to the kindle tablet, not the app) by the playstore tag. As the playstore app on your tablet cannot connect to the playstore website, I'd say all installations via the playstore will fail -- regardless of the app to be installed: No connection, no data transfer, so no install. Your real problem is getting the playstore app to work. This would solve your described issue implicitly.

You can try to install it directly from this page - http://www.1mobile.com/kindle-13239.html
However, be warned that due to certain geographical restrictions, the app may NOT work as intended if not supported.
Re: your market app not connecting - can you browse the net or connect other apps? Can you sync your Google account on your device? What tablet do you have?

I can browse the Internet. I can connect to gmail.

Before you start the Play Store app, try signing in to Google Talk. Also, make sure you're running the latest firmware from your manufacturer.

An additional note - if your app is called "Market" and not "Play Store", you need to update that app (perhaps by sideloading it). And finally, a number of ahem..."lesser known" companies have released tablets that run Android, however the official Google Play Store may not recognize the devices and as such, you may not be able to get the functionality. As an alternative, look at other Market apps like Amazon App Store and SlideME.

Yeah, for some reasons I can't connect to Google Talk. I have already posted  a new thread for that. The app is called 'Play Store'. Google Play Stores recognizes my device; you may selected it in the list of my devices.

ok, I took your advice and get the app directly via that link. It works fine now.


text:
Why do I sometimes get requests for root access from unusual applications?
I have a Samsung Galaxy S3 running a rooted stock firmware, Occasionally I get a popup from my superuser application saying that an application that I did not specifically install or launch has requested root access. I always deny these requests, obviously, but I'm not sure why they happen in the first place.
The most recent was from "Google Backup Transport", which, being a preinstalled application, seems like it shouldn't be asking me for root. At least one other person appears to be having the same issue, but I can't seem to find much information about it. I don't remember the previous application names, as it only seems to happen every several weeks or so, but it is not the same application every time.
Could this be indicative of a malware infection? If not, why is it happening?
EDIT: It just happened again - this time it was SyncMLSvc requesting root access - it seems to be a Samsung service.

What su app are you using?

It is the free Superuser app by Koushik Dutta.


text:
Dual active doesn't work in Samsung Galaxy s duos phone
In the Samsung S duos device it has an option for the Dual SIM active. When I check it and try the feature by calling on SIM 2 it doesn't work I instead got a number busy .Is this feature country specific or is it network operator dependant ,does using this feature require any charges on monthly basis.
Is there any site where we can know that which operator/area supports Dual Sim Active.
Update:-On keeping the dual SIM active to "ON" and when i rang up the second SIM i got the number busy from the operator.It did not seem any difference as with the dual active being "OFF" or "ON" calling the second SIM get's a busy tone by default.

The Galaxy S Duos allows for both SIM cards to be active simultaneously, meaning that you can receive a call on one SIM even while you are on a call with the other. What happens is that calls from your other SIM are forwarded to your currently active SIM's network, which you can put on hold to answer (this might incur additional network charges). You can put the two calls on and off hold as you please.
You can toggle the Dual SIM Always On option on or off for either SIM card. Effectively, this enables call waiting and call forwarding so you can switch each SIM card on and off individually (which can help save battery). During a call, the active SIM gets displayed at the top of the call interface.
You can also pick which SIM is to be used for mobile data - only one can be used at a time. Another option is whether or not the phone should be able to receive calls on the other SIM while using mobile data on one SIM.

I have tried keeping both SIM's to ON mode and called but still number busy. Could there be an issue with the network Provider

Did you switched off/on your phone?

yes I switched off the device waited for 2 mins and then booted it.Is this service limited to a particular geography

check the update


text:
What is the use of Automatic update of date and time when i have to manually enter it?
Step 1-I have checked the Auto update date and time and Suppose I remove my battery and then place it due to some phone lag. On starting it shows the default date and time (factory set date,time) .
Step 2-As I had previously enabled the auto update of date and time the phone continues to show the factory date, time .
Step 3-I cannot change date, time because the option is blacked out. So for that I un-check the auto update date and time. Set it to today's date and time  and save it.
Upon saving the phone restarts.
If this is the case then what's the use of Automatic update of data and time when I have to manually enter the date and time for my region.
For what reason does the phone restart again?

If it's restarting when you set the date and time, there might be a bigger problem at the root of this. What happened exactly?

When you set the Date/Time to automatic, it should set, then maintain, the correct time and date by using a server (assuming you have internet access). It does not need to restart at that time.  When you remove the battery, does it default to automatic for date/time?  Also, a simple restart should be sufficient to fix problems; removing the battery is when it won't respond to any keys.

@Marty ,Dan plz check the update.I have simplified the process in steps

If you have an internet connection, then something is wrong with your phone; it should not work the way you say it is.  I think I would do a factory reset, unless you can confirm that this problem is somehow normal for the device you have. But if it is normal, then it is a broken design.

@mar can you explain what exactly does the automatic update do

The automatic time/date does exactly what you would expect - it sets and maintains the date and time no matter what time zone you are in, instead of your needing to set it.  Even non-smart phones could do that, and I have never needed to set the date and time for a phone that was provisioned, even without internet.  I'm not sure if smart phones need the internet or not, to be honest, but I mentioned that just in case (I'm assuming it's an Android phone).

Your carrier should be able to provide the time and date even without a data connection. Most cell phone towers have a GPS receiver which uses the GPS data to sync it's clock, and forward this to the devices when they register to the network. Nowadays some towers might have a NTP sync instead of the GPS but the same principle still remains.
It seems to me that there is an error in saving the correct time and date on your device, which prevents the time from being synced from the carrier to your device. I'd suggest a factory reset (and/or reflash of you're on a custom ROM).

I am on the Stock ROM (Android 4.1.2) and I don't think doing a factory reset wouldd do any good because I am currently in SE Asia where most of the towers are a simple receiver and transmission only.

Still, the phone shouldn't restart when you set the time manually.


text:
while hide the soft keyboard it leave's white space in the screen
I am using bing map, in which when I  hide  the soft keyboard it leave's the white space in the Screen.This problem only occurs in Sony Xperia J handset

FYI - your image link doesn't work. You might want to upload it here so that we can see what you're talking about.

@bmdixon i updated now

Does it do this only in the app pictured, or in every app?

As dan asked is it only that app? Have you tried a different keyboard to see what happens?

@DanHulme only this app and only its happened sony devices\

So it's an app related issue. I would contact the app developer and let them know that this happens on Sony devices. Maybe they'll post a fix for it! You could try a different keyboard too and see how that fares.

@RossC Different keyboard means

? I don't understand? Have you tried installing a different keyboard from the Play Store and seeing if this issue happens when you use it?

Are you using custom rom ?

@sameer no,Mine stock ROM

Is this app from playstore?. Can you give me a link, so that I can check on my Xperia U

@sameer its not a Play store App ,I am updated my Screen shot


text:
How to stop my Android device from being spammed in the browser as well as in the application?
Recently I have downloaded two games:

Deer Hunter
PreHistoric Worm

But after that I have my browser which keeps redirecting me to http://ad.adsmatte.com
It is happening every time I load the page – after few seconds, it automatically gets redirected to this AdsMatte and doesn't go back to the previous page, even if I press the Back key.
In an application like WebMd, when I load the app, after few seconds it is covered with a full screen ad whereas it used to display the options menu. This is blocking my view and I cannot see what is being displayed by the application.

The WebMd app which is showing an "Update Your Browser" message with a "Install Now" link to Play Store (click image for larger variant)
I don't have Opera and it still tells me to update my Opera browser.
I closed the application and retried it, and again it is displayed with some "Warning your HM1S is affected with Virus" and starts vibrating.
Note: Please avoid anything like this post suits well on MIUI/forum, I have already asked there and got a very immature answer as to disable Java Scripts even after seeing my below screenshot.
[Update]
I have tried using mobile data and now it does not redirect so it's more of the modern problem the app are clean

which browser do you use..opera or chrome or something else?

It is UC Browser with Ad Blocker,Pop blocker enabled

your device may not have been affected by any kind of virus. i have used UC browser and it suggested to download unwanted apps and alerts like these..so i suggest you use chrome or opera browser..the redirection problem might be due to an extension(add-on) you have installed diable or remove all your addons and reset the browser settings..

For a starter, please take a look at our malware tag-wiki and follow the first-aid links. As you already described the issue started after installing those apps: Have you tried to remove them? Did that help? And btw: where did you install those apps from? // @Lucky no such thing like a "virus" on Android ;) But malware indeed, yes. Which is why I've added the malware tag to the question.

Community bump prevention: this question was closed because the question seems to have been abandoned (OP hasn't visited the network for more than 4 years, and no answers have score above 0). If anyone can evaluate the existing answers, feel free to vote accordingly and reopen the question (or mod-flag the question requesting for reopening). For anyone else having the same issue, please post a new question and refer to this question as additional context.

Based from the same problem on AskUbuntu, this is not OS-dependent, but an attack to the router. Try hard reset the router.

This does not appear to be an OS related issue. I would recommend you to read this http://www.quora.com/How-do-I-stop-AdsMatte-spam-popups-and-ads
Basically it is an attack on/via your router. You should hard reset it. A lot of computers on my intranet got affected. I got rid of it that way.

If it still fails, from Security.SE, try checking & fixing the DNS address both on router and Android device.

If your router is affected and you're facing different issues on your devices (Android has no ads, computer does) may check/change your DNS settings on both devices and on the router.
I think your Android phone uses a different DNS server as your PC. Your PC probably uses your router as DNS Server (e.g. 196.168.1.1) and your Android uses a 3rd party DNS like Google (8.8.8.8, 4.4.4.4) or OpenDNS. For this behaviour check: this answer on Super User
To clean up your router, you may have a look at:
  this answer on Security.SE

To check DNS settings on Android:

Open Settings - Wi-Fi
Long-press the access point, select Modify network
Turn on Advanced options
Change IP settings to Static
Check/set the DNS 1 & DNS 2 to Google DNS (8.8.8.8 and 8.8.4.4) or other trusted DNS server.

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


text:
Can I lock the DNS settings on Android devices?
It is all about being the internet boss. I want to be able to lock in or password protect the DNS settings to OpenDNS, so I can have a safe smartphone, that my kid can use with no fear of accessing pr0n or whatever.
Anybody know if this is possible? I don't want to use another method of content filtering.

Note that it is impossible to use OpenDNS to do that since you can't block the Android Market with it.

Agree with Arda here, once you have those DNS settings in place there would still be no way to limit what can be downloaded or viewed on the phone.

There would be no way to limit what was Downloaded through the Market but it would block content otherwise.  I could accept that.

I could probably have an app to report downloaded apps thru app brain or something I think.  Also if OpenDNS gets on board they could block downloads of inappropriate apps.

A nice permanent way is shown in this XDA post: It has the following advantages: - permanent - DNS provided by DHCP are used, but with lower priority You don't need adb and vi. You can do it with Root Explorer.

You can change the DNS settings in Android, but you need to root your phone first: http://blog.varunkumar.me/2010/09/how-to-change-dns-server-on-android.html.
I don't believe there is a way to password protect the DNS settings, but at least it wouldn't be obvious for them to figure out how to change the settings.
Of course, one thing you can do to at least protect your kids while they are in your home is to change the DNS settings on your router.  Of course, whenever they use your carrier's data network, this won't help.

This is great. Very close to what I need. It looks like the script could work even on carrier networks, right?  In the home router this is already done. (vote up requires 15 reputation)

If you're rooted, check out SetDNS in the Market (free). It might do the job; YMMV.

The article and SetDNS app only apply to Android versions under 4.2. For Jelly Bean and above I wrote an app which can be locked with a built in setting.

I made a similar attempt on Android 11. The closest thing to password-protecting the DNS setting that I found was to password-protect the "Settings" app altogether. My steps:

Install the Lock me out: app blocker app by TEQTIC. There seem to be many apps like that, I selected that one only because of good ratings and reviews. It seems to work well and doesn't require the phone to be rooted.
Set up a policy to lock the Settings app
Enable password-protection in Lock me out
Enable the anti-tampering options in Lock me out, so the app cannot be uninstalled without password

As a result, when user attempts to open Settings, he sees a message about lockout. If you click the message, you can temporarily disable policy, but that requires a password:

Pros:

Seems to work. I can't see any way to circumvent that without knowing the password.
Doesn't require rooting the phone.

Cons:

Requires 3rd party app (the one I used is paid)
There is a permanent notification from the app about the lock. I'm not sure if I can hide it without breaking the reliability of the app.
You cannot lock just DNS settings, the granularity requires you to lock the whole Settings app.

When on WiFi, you can manually set IP information, Settings > Wireless & networks > Wi-Fi Settings > Menu button > Advanced. Mind you, it would be very easy for anyone to modify those settings.
As far as when connected via cellular, I do not know of any way to modify those DNS settings as they come from the carrier and the carrier's towers. I'm pretty sure they don't want their users changing DNS settings which could help them bypass certain restrictions they normally have in place.
If it was feasible, you would need to do some rooting and hacking of files (e.g. /system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf). Supposedly there are DNS files that exist and can be modified, but I wouldn't recommend going this route.

This (the carrier part) is exactly whats keeping me from getting smartphones.  I want this ability so regardless where they connect I get a top-down report and content filtering.  This would be useful for businesses and churches and any concerning parent out there really.

You could try calling the carrier and asking them what filtering or content blocking they can do. Or rather than attempt to block the kids from downloading content (which doesn't always work well as kids are smart and find ways around this) have you thought about just sitting down with your kids, having a conversation with them, and educating them about the dangers and getting feedback from them? Might be easier then trying to mess around with DNS and other stuff on the phone.

It is not just for me.  I want to make this "internet boss stuff" more solid and simple in general for myself and others

That dhcpcd file only affects the Wi-Fi connection; cellular data is unaffected by it.

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

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


text:
Playing a music playlist as an alarm?
How to have an alarm that will start playing selections from a playlist at the scheduled time?

Gentle Alarm. Seems a little complex at first with profiles and alarms, but it rocks. The best feature is the one that allows you to skip alarms set to go off without actually turning off a configured alarm. I use that feature all the time. You have to pay for it, but its worth it.
There was a comment about the concern of Gentle Alarm's Internet usage, below is what I found on the dev's forum:

I need internet access to allow users
  to send me information if they choose
  so. Unfortunately, there are no
  conditional permissions. So even if
  you always decide not to send me any
  information when a crash happens, I
  still need the permission.
There are two more reasons for
  Internet permission:

If you paid via Paypal, you have to enter a key to unlock the app. This
  key is checked at some point when you
  are online every 3 months.
And for market users such as system is coming. Google recently added a
  licensing scheme as a minor step
  against piracy and you will start
  seeing this used in more and more
  apps. The app needs to call Google
  servers to check if the license is
  valid. Results are cached so that the
  app also works if online for extended
  periods of time.

The latter two reasons are
  unfortunate. But for every legal copy
  I sell, there are more than 3 illegal
  ones out there. There are even some
  people who bundle apps and sell them
  at a discount. Piracy has gone out of
  hand and if developers don't earn
  money with their apps, there will be
  fewer quality apps in the future.
I will gladly discuss any concerns you
  may have.

Alarm Clock Plus V2. Its free in the app market. Let's you set a song or a playlist, plus it has a ton of other options. Its really a killer app.
Update: I still have the free ad supported version Alarm Clock Plus installed on my phone but it looks like it's gone from the market.  The only one left is the paid, ad-free version.

Any chance you could add a link to the app.  Searching for Alarm Clock Plus V2 didn't return an app with that name.

It looks like the free version is gone from the market.

Good Morning will let you "shuffle from a directory" of your choice. The app is free. It will also announce the day's date and forecast for the day, as well as assign the alarm to specific days of the week.

Tone Picker (AppBrain link) will allow you to use sound files for ringtones, notifications, or alarm sounds.
I use the standard Alarm clock on my HTC Incredible (not sure if it's stock Android, or Sense), but I've got MP3s for some of the alrams. Same too for some of the rings.
UPDATE: re-read the OP. Not from a playlist.

Alarmdroid is also great!
It supports custom playlists and even internet radio.

Android «flip'n'snooze» Alarm Clock Application. Makes you wake up in your way!
AlarmDroid is a feature-rich alarm clock application. It is created to give every Android-User the opportunity to wake up his(her) own way, not caring about whether he(she) is an early bird or a morning grouch.
  AlarmDroid's special feature is the flip'n'snooze feature, which allows the user to turn the alarm clock back into snooze mode by turning over the phone. Further, it provides a speaking clock, which does not only announce the time but even the local weather conditions.
  These and more features are waiting to be discovered by you! Even internet radio stations are supported as alarm tone.


text:
Droid2 Fastboot
How to get the droid 2 to enter fastboot?
Running rooted phone, CM7 nightly 239
Power + x gets me recovery
Power + Up gets me bootloader

The Droid 2 doesn't have fastboot mode; Its bootloader is locked. Fastboot mode is really just the bootloader mode in other phones, like Nexus phones. Out of curiosity, where exactly did you hear that the D2 had a fastboot mode, and why do you want to access it?

Ah okay. I remember there being a white screen with the android guys which seems to be described as fastboot. It may have been on one of the other phones that I had rooted though. I'm just checking through my possible recovery options before I flash a new rom (last time I had to SBF the phone, root, and reinstall CWM so i just want to make sure everythings still working ok before I mess it up :) )

Okay, cool! Glad I was able to help.


text:
Is it possible to change password on the phone itself for gmail/market/other google apps?
I think this is a general question that would apply to all Android phones though I have a HTC Desire Z.
I cannot find a section on any of the settings to change the password for the Google account used for gmail, Android Market or any of the other google account dependent services and features on the phone. Surely this is a glaring omission?
I would expect a feature to be present on the phone and for extra security, have it ask me for the existing password in order to allow me to change to a new one.
Obviously I can change the password when logged into Google in a browser on a PC/Mac but this is an unnecessary procedure - surely we are all becoming increasingly mobile-centric, so shouldn't it be possible to change it on the phone?
I have searched here and on Google, the only answers I can find are things like:

people who need to enter the new password on the phone after changing it to this new password when on a PC or Mac logged into Google on a browser for example.
people who want to change their actual google account, i.e. use a different one

But I can't find anything about a section on the phone itself to change the password for Gmail,Android Market and other google account dependent services and features on the phone!

Not a perfect solution but you can change your password by opening you Google account/Gmail on your phone browser.

yes true - this is definitely a possibility if you use Dolphin browser Agent set to Desktop to access gmail.

I can from my regular Android browser as well. I can click "Desktop" at the bottom to request desktop version of the site or in ICS I can click menu to request desktop version of the site.

Accepted answer. I can work with this and @Richard Borcsik's comments are worth bearing in mind too.

It's not possible at this time.
Should it be?  I think so but like a lot of features that I think Google should implement, they don't necessarily agree.

SOLVED,  was driving me nuts, this works folks
The following is only applicable when:

A Gmail account has been previously set up on the device
The account password has been subsequently changed via the Gmail or Google website.

From the Home screen, swipe down on the status bar.

Tap Account Action Required.
From the 'Couldn't sign in' screen, tap Try Again.
Note To switch Gmail accounts, tap the Dropdown menu (located in the upper-left) then select the account.
From the 'Re-type password' screen and enter the appropriate password then tap Next (located in the lower-right).


text:
Flash support for Jellybean (4.1)
Adobe has released statements saying they will no longer support flash for newer Android builds starting with 4.1.
I flashed a custom rom of 4.1 the other day and couldn't find any 3rd party flash support in the market. I use flash for Orb to stream tv. Orb has an Android app but it unusable and all around horrible experience (verified by the the many negative reviews) but you could use the website to stream flash as a work around to the poor app which worked great.
My question is: how can I play flash video in Android Jellybean (4.1)

Flash is closed and fairly complex, you're not likely to ever find a third-party implementation (apart from partial implementations like Flash Lite).

Currently, you can side load the flash player on a 4.1 device. Meaning you have to download the apk file and install directly from the device, or with adb. There is no guarantee that flash will work at all in the future. Not only is Adobe dropping flash support for Android 4.1, No new installs for any version of android will be allowed for the Flash Player app from Google Play after August 15th.
I hope that this actually means that Adobe is moving closer to making flash "export" to something that modern browsers can all run, like using the HTML5 canvas. Flash on Android has always been pretty limited. It's only real use was for playing flash video, anything else I ever tried to use it with was buggy and laggy.

Guide can be found here: http://www.androidauthority.com/adobe-flash-new-jelly-bean-devices-how-you-can-still-get-it-110070/ and here: http://forum.xda-developers.com/showthread.php?t=1774336


text:
Changing file permissions with root, will they remain if I unroot?
I currently use the run-as command through adb to be able to access the data folder of an app that I am developing directly on my phone using AIDE.
When connecting to the phone locally, using connectbot, I can find the run-as command in /system/bin/ but it has no executable permission. There are other programs/scripts in that folder that do have executable permissions and I can run them.
My question is this. If I root my phone, I can change the executable permissions of run-as. If I then remove the root, will these permissions remain?
I'm not totally averse to rooting my phone permanently but if I don't need to, I'd rather not.
This is on a Galaxy Nexus.

I'm aware if I leave run-as executable then I'm possibly allowing myself wide open for security risks. But I am willing to risk it, even just to see if its possible.

Yes.
There's nothing magical to restore /system partition to original state. Many users gain root access temporarily to remove bloatwares from /system/apps & then unroot.
But, remember, if un-rooting method involves flashing /system image, you'll lose your changes. So, use proper un-rooting method.

Cheers Sachin.
Any ideas where I can get this 'proper' un-rooting method. Googling doesn't really filter on the word 'proper'

@RussWheeler By proper method, I mean remove su binary, SuperUser.apk etc & seal off any exploits. For one-click rooting & unrooting Galaxy Nexus, I have found only one software viz. Wug's Nexus Root Toolkit and looks like you are out of luck. It unroots by flashing whole original firmware. Its not proper way.

@RussWheeler Try to root temporarily: http://forum.xda-developers.com/showthread.php?t=1331258

@RussWheeler This one also looks promising: http://androidforums.com/verizon-galaxy-nexus-all-things-root/499117-galaxy-nexus-root-un-root-without-unlocking-bootloader.html

Thanks Sachin, I'll check them out later and let you know how I get on.
I'm very keen not to wipe any data though. If that's the case, I'd rather not root and keep plugging my phone in to get the db off it :)

@RussWheeler Your data will not be affected in any case..


text:
how long does an OTA update normally take?
I am using the Oxygen ROM on my LG P500 (Optimus One) and I just did an OTA Update and the ohone restarted and it has been in a flashing mode every since, the bar is at about 15% for the past 30 minutes so I was wondering if there is a problem or the firmware upgrade normally takes a while.

The progress bar being stuck for a while is not unusual as progress bars are fairly difficult to get right. An update taking more than half an hour, on the other hand, doesn't sound right to me. Of course your phone could simply be slower at this task than mine.

Yeah it was a bit slow but eventually it pulled through thanks for your answer.


text:
What if I don't want my music on the cloud?
I just got my Nexus 7 tablet and I was trying to load some music/videos to it. I have about 10 gigs worth of .mp3 files with no DRM in my computer. Since this is Android, I figured I would not be subject to the pain that is iTunes and I would simply be able to drag the music into a "Music" folder if I plugged in the tablet to my computer. Sure enough, I saw a folder named "Music" and tried dragging a couple of files to it. When I go to my Nexus, however, I don't see the files. I started reading up on this and it seems that the way to do things on Android is to use the Google Music Manager which would then put my songs in "the cloud" and make them playable from any device. That's all nice and everything, but is there any way to simply put a couple songs into my device locally without any of that funny business?
TL;DR: I don't want to use Music Manager, how do I locally upload a song/video to my Nexus 7?

Android uses a so-called Media Scanner to index your media files (this also applies to your images and videos). This Media Scanner ships with the system, and fires automatically on certain system events -- such as after boot, or when you insert your SD-Card. It does, however, not react on a simple "file-drop" via network. For such cases, it might need a little help to get to know it has to act:

Rescan Media
Rescan SD Card!

Are two free example apps from the playstore which do exactly that: trigger the Media Scanner. Once the Media Scanner has indexed your new files, they will immediately show up in the corresponding apps such as the gallery (for images/videos) or your music player.

I tried closing down the Music app and starting it back up thinking it might be something like that, kind of weird to have to download an app to trigger the scan, but it did the trick! Thanks!

You're welcome! You don't have to use those apps (unmounting and remounting the SD-card would do the trick as well) -- but it is the most convenient way (just push a widget, and that's it ;)

Restarting your phone will also cause it to rescan, and some music players (PowerAmp comes to mind) scan when they are launched.

Copy the files as before but use a music player from the play store. I would suggest a player that supports folder based play so it doesn't force you to sort your music by album/artist, which can be a pain if your music isn't tagged properly. I will not suggest you a particular music player because I don't want to turn this question in to a favorite music player discussion.
If you really have trouble finding one, post a comment here for a suggestion.

Thank you for your suggestion. Do you have a preference as far as music players go? I don't mind the one the Google Music one aside from the scanning oddity.

I use MortPlayer Music, but if you are fine with the album/artist sorting than this might not be the best choice. I use it because I like the player to "just play the whole folder", like a computer would if I opened the folder in winamp/vlc. Other players ignore folder structure and play by album/artist or just play all songs.

@Richard Borcsik: Removed.

My main use of Android MP3 files is to listen to podcasts. My workflow is as follows:

Use Google Reader to subscribe to and browse podcast feeds. The MP3 files are linked in each feed, so the ones I decide to listen to get downloaded to my computer. I use DownThemAll for downloading, because it's good at this kind of download and because it preserves modification times on files it downloads. However, I'm moving away from Firefox, so I'm now looking for a similar plugin for Chrome.
Periodically plug my phone into a USB port on my computer (use USB3 if you have it, absurdly fast), causing the SD card to be mounted as a removable disk. There's a directory, listen that contains all my podcasts.
Since I listen to them in the order of the modification times, I sort the directory listing by mod times and delete all the ones I've listened to.
I move all of my new downloaded files into the listen directory on my phone.
I tell Windows Explorer to "eject" the removable drive (this ensures that all file writes are completed) and unplug the phone.
I plug in my headphones and run MortPlayer Audio Books. Although not specifically designed for my use case, it has some features I need:

The ability to be pointed at any directory I want.
The ability to automatically sort my files by modification time.
The ability to automatically remember where I left off.

Obviously, the way I listen to MP3 files is different from the way most other people do, so you'll need to figure out your own workflow. In particular, you'll probably want a different audio player program. But judging from your prescribed needs, you want one that lets you just copy files directly into an SDCARD directory. Most do.
Ideally, one could use Bluetooth to copy files. I've tried that, but have found that Bluetooth copying software is slow, a pain to use, and doesn't preserve file mod times.

i usually put  all my songs into a folder and zip it into a smaller archive with an easy short name. something like mp3files.zip
move that folder( or a copy of it) to /android-sdk/platform-tools/
plug the nexus in with a good usb cable and go to settings/developer options set to "usb debug enabled"
next i use # ./adb push home/android-sdk/platform-tools/mp3files.zip /sdcard/Music
important to notice one space between path to file and path to destination   also make sure your capitalization is correct
while ./adb is moving your files you wont get any feedback that anything is happening until its finished so be calm and find something else to do
i also use the vlc for android beta media player availible from the vlc developers forum--it works PERFECTLY  its still a beta .but its not so much a hiccuped EVER for me  and plays whatever i throw at it(im not associated with the project in any way i just am passing along some info i have found)


text:
How to copy wireless networks list from one android device to another?
I got a very long list of free hotspots and friends/family networks on my phone.
Recently I bought a tablet and I'm trying to find a way to copy the wireless manager list to this new device. Any idea how to do that? Both devices are rooted and running ICS.

I thought this happened automatically, at least if you've enabled the "back up my data" option.

As you are rooted: Wireless network data are stored in data/misc/wifi/wpa_supplicant.conf -- so you could basically copy all its network entries from one device and insert them on the other. The entries look like
network={
    ssid="Telekom"
    key_mgmt=NONE
    priority=42
}

An easier way would be using the App Wlan Backup & Recovery (root): Backup all entries on one device, and restore them on the other. As you can see in below screenshot, the tool can even send the backup by mail -- so transfer to the other device should be easy:

But reading the comments on this app suggests it does not always work as expected: Users even recommend to use the manual way I described above.
Another option is using Titanium Backup, and restore the Wifi data on the other device. I did that successfully a couple of times, also cross-device and cross-ROM.
Third option is offered by the app Wifi Passwords (about USD 1), which allows you to share networks.

TitaniumBackup (TiB) also allows to back this up on one and restore it on another device. TiB also offers an alternate XML based backup scheme for that (in case the old phone's wpa_supplicant.conf contains device specific stuff that doesn't work on the new device. At least that's what TiB shows as a hint if you choose between pure file based or XML based backup schemes).

There is one wi-fi connection where it was open but you had to enter a password in the browser, but you only had to do this the first time (so it's saved in some sense). Do you know if this method would copy it?

@Celeritas I doubt that. I don't know where that password is stored, but most likely on the "captive portal" (after verification, the device's MAC address probably is stored as "verified" there).

You can do this without root permissions as its built into Android ICS. Just go to:
Settings -> Backup & Reset

Then when you setup the tablet you can restore all the Wi-Fi data from your phone when you sync from the same Google account.

This is only an option if you're fine with all your date being stored on Google's servers, though.

Is there any way to validate that this data has been backed up once you turn on the checkmark?

There is no reliable way to ensure that WiFi's are backed up on Google servers. Moreover, there is high chance that restore will not work. For me it does not work very often.

Galaxy-specific: Samsung has an app named Smart Switch. It does this exact thing very well (just verified today taking wi-fi connections from an old Galaxy S8+ to a Galaxy S9+). It looks like you can take settings from (nearly) any other phone, as long as you are transferring onto a Samsung device.
When choosing to do the transfer, you simply select "Custom" and the wi-fi connections can be checked under "Settings". No need to transfer anything else. All items are merged into the list of saved network connections very nicely. Transfer time: less than 5 seconds for my short list of ~10 connections.
Samsung app must be installed on both phones. Transfer is done locally via wireless or USB cable. No cloud storage necessary. Instructions below claim backup/restore can be done via PC (however, the PC transfer option did not seem to be available in the app).
See Transferring Phone Data Wirelessly via Smart Switch


text:
Connect Android phone to wifly board
My team and i are trying to connect an android phone to a wifly board. We are having trouble getting this to connect. Can anyone verify certain phones that do not support this or do support this functionality and what we must do to be able to perform this connection? We have tried a few things and still not working. Please assist! Any help or suggestions are greatly appreciated. If you need further information let me know.
Thanks in Advance!

I am currently researching for a solution. Once found, i will post here.

I am currently looking into barnacle. This application requires rooting and will allow this type of connection. If this solves our problem i am going to take the parts out of barnacle that i need and use them in my application. I will update this question as we come closer to our solution.

I do not have rep to comment, is wifly a serial interface?
Second, this is a good place to ask that, I understood they were inviting developers here.
 Extra, after comment reply
As far as I have found there is no ability for serial from the android phones.
I have found sources where people mod the OS to support USB on the Go. Then you can be a USB host, which would suffice for me as usb to serial adapters are relatively easy to come by.
I am new to android and spend most my time on the Electronics and Robotics SO site, but I was interested in this feature.
 And More!
From prolink007

Google is looking into adding this
  feature in a firmware release. For the
  time being we are just looking into
  rooting the phone and adding the
  feature that way. Our goal is to not
  have to root a phone for this feature
  to be enabled. If we can figure a way
  around this i will post here as soon
  as possible. I will keep this updated
  as we progress.

Yes, it is a serial adapter.

That is what I remembered.

extra info added.

Well it is a wireless serial adapter. I am not sure that the usb host would be a solution to our problem, unless i am misunderstanding your suggestion.

you could use a simple FT232 chip to convert USB to serial. You would see a com port on the phone with drivers. This is very clean.

On that note, android serial connection would make my life very very easy, so if you find an existing method I will look forward to your information!

Google is looking into adding this feature in a firmware release. For the time being we are just looking into rooting the phone and adding the feature that way. Our goal is to not have to root a phone for this feature to be enabled. If we can figure a way around this i will post here as soon as possible. I will keep this updated as we progress.

http://code.google.com/p/android/issues/detail?id=82  That is the link to the source for this information.

XDA forums may be the best place to ask for this sort of help.

lol, this is the second time that i have been redirected to another forum. Thanks, i will post it there soon, also.

@prolink007: I don't just want to redirect, but XDA is where the homies who deal with custom roms and possibly hardware hang out. Just looking for the most bang-for-your-buck question area :)

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


text:
Titanium backup shortcut/widget to toggle app freeze
My CyanogenMod 7.2 stock browser refuses to remember its defaults. I've taken to freezing opera mini, my other browser, with Titanium backup when I want to use stock to avoid all the preferred app prompts.
I'd like a faster, more convenient way to toggle the freeze. Is it possible to create a shortcut or widget on the home screen to perform this action?

Titanium Backup itself offers the corresponding Widgets:

long-press on a free space on your homescreen
select to add a widget
select Titanium Backup
select Action
select one of

deactivate App
activate & execute App
toggle (de)activate App

select the app
tap the "create widget" button

That makes a lot of sense. However, Titanium Backup is not in my list of widgets. Could it be a result of installing TB from an apk rather than from Google Play? The apk is the first thing I installed after a ROM upgrade.

Not sure. I checked this with my installation and it worked -- and I also installed it from SD card. But since then, there have been multiple updates applied via the ma.. ahem playstore. Is your TB "in sync" with the market? If not, TB has a "market doctor" to fix that. Then update to the latest version from there, and check again.

Market Doctor doesn't show Titanium Backup as linkable. I just updated the app from Google Play though, the widget option is still not available.

That is strange -- I just did it. But wait: Are you using the free or the pro version? Maybe that's Pro only.

I have pro as well. The widget option is available now after a complete uninstall and reinstall from Google Play.

Ah -- great! Glad it worked out for you as well, finally! Hav to keep that "complete re-install" in mind, just in case. Thanks for pointing this out!


text:
Difference between Linux containers and Dalvik VM in Android
As far as I know, Linux containers are those that run on a shared OS kernel using a virtualization software. Is there any correlation to Dalvik VM which runs multiple apps on top it?

No, they're different types of virtualization.

The Dalvik VM works like an interpreter or just-in-time compiler: installed apps consist of Dalvik bytecode, but the CPU only knows how to run ARM or x86 machine code, so the DVM reads the Dalvik bytecode instructions and translates them into equivalent ARM or x86 instructions to make the app run.  It's similar to an emulator, except that term is usually only applied to instruction sets that have been implemented natively in hardware.  (There are no CPUs that directly understand Dalvik bytecode.)  The Java VM and .NET CLR work similarly, and this explanation applies to those as well.
Linux container systems, like Docker and LXC, aren't involved at all in the actual running of programs; they just set up boundaries to isolate programs from each other and control how they can interact.  The programs you run in a container are normal Linux programs that could also run on a normal Linux system without containers.

In short, containers virtualize the software environment surrounding a program, while a VM like Dalvik virtualizes the computer itself.

Thanks and also in google developer docs its written "Each process has its own VM". What does it mean?. And each application is given a linux user id. How to interpret this?

Does the dvm do any of the isolate programs and how they interact with other applications.if not who does that?

The Dalvik VM is a program.  Each app runs a separate copy of it.  And the reason for running different apps under different user IDs is so that they can't access each other's files; each app's data is private to that app.


text:
Turn off vibration for 'Sign in to WiFi network' notification
Since the Android 6.0 update on Nexus 5, everytime I get the notification 'Sign in to WiFi network' the phone vibrates. Any idea where I can turn this off while keeping the vibration for calls, SMS, WhatsApp messages, etc.?

I am suffering with the exact same issue. I searched extensively and it appears to be a new problem with v6.0. Very, very annoying.

None of the suggested fixes below work for me. I use Priority mode for its intended use (e.g. when I am busy or sleeping); I don't want my phone in priority mode all the time. And none of the other fixes seem to actually work (and Andrew T's answer seems to indicate why). Is there a fix for a stock rooted rom? Involving an Xposed module? Will it be fixed in later versions of Android?

There is a workaround involving Do not disturb's Priority only mode.
To put it simply, you must use Priority only (from Quick Settings - Do not disturb) since it has per-app setting for notification alert that can overwrite system's default setting. Priority only mode will still show all notifications. However, only priority notifications will be alerted (sound, vibration and LED light).
The idea is to treat all notifications as priority (from Settings - Sound & notification - App notifications - [app name] - Treat as priority) except for captive portal notification, which is under Android System app (by default, system apps are not listed. You need to tick Show system from overflow menu. Leave this app as non-priority, but don't forget for the rest of system apps).
However, there are some disadvantages that you might consider first before using this workaround:

You sacrifice the intended usage of Priority only mode, only leave Total silence as the only option (however, if you never intend to use this feature, then you're fortunate since you can utilize it).
If you have many apps installed, it's quite tedious to set all apps to treat their notifications as priority (perhaps a script might help...). Also, every time you install a new app, you must not forget to treat its notification as priority (unless you don't care about its alert).
You won't get any alerts for all notifications from Android System (you need to experiment with this, since I don't know what notifications are considered by Android System).

TL;DR
If you still want to have vibration on all notifications except for captive portal (this particular issue), I'm afraid you can't.
It's as dbasch mentioned in the comment, that the vibration (actually, the notification alert itself) was added in Marshmallow.

Technical Details
When Android detects that the WiFi needs to login to captive portal, as you already noticed, it will create a notification. It's done by setProvNotificationVisibleIntent() function in ConnectivityService.

Show or hide network provisioning notifications.
We use notifications for two purposes: to notify that a network requires sign in
  (NotificationType.SIGN_IN), or to notify that a network does not have Internet access
  (NotificationType.NO_INTERNET). We display at most one notification per ID, so on a
  particular network we can display the notification type that was most recently requested.
  So for example if a captive portal fails to reply within a few seconds of connecting, we
  might first display NO_INTERNET, and then when the captive portal check completes, display
  SIGN_IN.

The relevant code to the notification alert that is used in Android 6.0 Marshmallow:
Notification notification = new Notification.Builder(mContext)
    ...
    .setDefaults(Notification.DEFAULT_ALL)
    ...

Note that Notification.DEFAULT_ALL will "use all default values (where applicable)", which means that it depends on your system's notification setting (sound, vibration, and LED light).
Compared to the one in Android 5.x Lollipop, the code is:
Notification notification = new Notification();
...

No more, no less. That's the relevant code. new Notification() will "construct a Notification object with default values". While it seems that there's no change in the meaning, note that defaults is not set/initialized to  Notification.DEFAULT_ALL (value: -1). Instead, since there's no initialization, it will be defaulted to 0, which is no alert.
Whether it's a bug overlooked by Google which has been fixed in Marshmallow or not, I don't know. Also, that's the reason why there's no alert in Android Lollipop, but now there is in Android Marshmallow.

"You can't". I bet you can with an Xposed module (or at least some preliminary reading makes me think this), although one might have to write it oneself...

Settings > Apps > Google Connectivity Services > Notifications > Block turns them off entirely.

Thanks, (assuming this works)! Now I just need a way to remember that I blocked this when they fix it...

Sadly, that assumption was incorrect... did not work on my Moto X Pure

That notification is initiated by Android System (android). You can use appops to deny Android System the permission to vibrate the device in any situation. Provided that you've adb setup in PC, do:
adb shell appops set android VIBRATE deny

Try connecting to a Wi-Fi with no internet access. You would still get that notification but with no vibration. If you also intend to hide that notification, you may follow the rest of the answers posted here or on this website.
To revert the changes, do:
adb shell appops set android VIBRATE allow

Vibration for calling is initiated by Dialer app, for SMS it would be your default SMS app, for WhatsApp messages, it is the same app, so they are not going to be affected. There may be unforeseen consequences of that command which I'm unaware of, so let me know about them through comments.
Note:  this solution is tested on an unofficial CM13 build.

authors: Станислав Чугаев


text:
Restore power button to default behaviour
I have LG G2 (D801) on Android 5.0.2 Lollipop, rooted. The power button stopped working. I am pretty sure an app messed up its behavior - I don't know which one of the many I recently un/installed trying to fix another issue. I am pretty sure it's not a hardware issue.
How could I restore its default behavior: press to optionally lock the screen and long press to bring up the power menu?

Not very helpful if you ask me. How do we even suspect what may be interfering with your power button if you don't even list those apps that you've tried and are still installed? Simply backup all of them and remove each of them. Restart and see whether the button functions normally.

Just go full stock with a factory flash. See if the problem is present then. If it is, it is a hardware issue, and you can claim warranty. If it works, be a lot more careful with your apps next time.

I thought of doing the same but figured I would post the question in case someone has a quicker/less brute force approach. If no one else comes up with that kind of answer, I will accept yours. Thanks


text:
Can I rotate my camera to landscape mode with broken gyroscope?
A lot of sensors on my machine are destroyed, including the gyroscope and accelerometer, because I am a terrible phone owner.
As a result, the camera does not rotate and my steps aren't counted.
Anyway, is there an artificial way to rotate my camera in landscape mode?
Is there some setting or an application I can use to fix the camera precisely?
(I checked a dozen of apps that only rotate the screen, but the camera remains in portrait mode within the landscape mode of the screen.)
My device is Huawei P20 Pro and its OS is Android 10.

Related/possible dupe: Any way to force an app to rotate?

@AndrewT. not a dupe. The other ticket is about a software issue.
In my case I am trying to find software resolution to a hardware problem.

It turned out the Rotation Control App, with its rightmost option, image the same as auto-rotate icon, does the job for me.
E.g., streaming in Facebook is successfully affected, which was my final goal.
More details can be found here:
https://www.phonearena.com/news/How-to-force-landscape-or-portrait-mode-in-apps-like-Instagram-and-others-Android_id78439


text:
How can I root my Sony Xperia u?
I have used several one-click methods but none of them worked for me.
Can anyone tell me the correct process?

Android version: 2.3.7
model number: st25i
build number: 6.0.B.3.184

I've become reluctant to answer this sort of questions here on AE because of how quickly tutorials might become out of date (with device updates and such) and how little continuing support you'll receive for rooting instructions. That being said, XDA-Developers has always been my #1 choice for instructions and support for specific devices. Fortunately, XDA does have a very comprehensive tutorial on rooting the Xperia U.

Use iRoot PC version from Mgyun. The apk version failed but the desktop version works just fine. Tested on ICS.

You could try Kingroot or Kingoroot. Or some sofware on the PC. I am not sure about Gingerbread though.

As far as I've found so far there's no known way for GingerBread (2.3.7) except bootloader unlock, which wipes the storage clean on the phone.  ICS is a different matter.


text:
How to edit /system/bin/lpr in Samsung S4 i9295 running 5.0.1 Lollipop
How do I edit /system/bin files in Android since after 4.x? Has something changed? I seem to recall just opening the file playlpm on the device in a text editor and seeing and making needed modifications thusly:
#!/system/bin/sh
 /system/bin/reboot

Now I am seeing black diamonds with question marks and unintelligible character strings. What's changed here? Are these shell scripts compiled?!? Have I spaced out an important step? TIA for clarification.
PS...device is rooted, browser is Root Browser v2.2.3, and test editors I've tried are RB Text Editor, and DroidEdit.

If an editor displays weird characters, that means your file is compiled (e.g., a binary, not a shell script).

Yeah, roger that, but they were editable in a text editor prior to 5.x , correct? There are lots of posts about editing /system/bin files by what appears to be simply opening them and changing code with a text editor...I'd just like to confirm that something has changed w/out having to load a 4.x ROM. Thanks.

As said above, /system/bin can contain two different types of files: shell scripts (editable via a trivial text editor) and binary executables (compiled, can be edited via an hex editor).


text:
Nexus 7: battery charging stalls at about 20 percent, even w/new batteries!
I've got a 2012 wifi Nexus 7 tablet. The battery will not charge much above approximately 20 percent. I've installed a new battery, tried charging using a nice Anker brand usb cable, tried several different good chargers, replaced the little usb/audio jack wiring harness, cleared the cache, as well as tried charging after shutting down from the OS then holding volume down button when powering up the selecting "power off" from the broken android window. Other suggestions? This is a nice little device that I still have uses for. Thanks in advance...
Update: OS is Lineage 14.1 20171112

Thanks for the detailed response. I have been wiping regular and Dalvik cache using TWRP. Hadn't tried this in safe mode. I'll google SM, try it and report back. Note this problem was present with the previous battery running one of the last CM releases for this unit, not sure that the wipe and reinstall that I did to w/Lineage had any effect on this issue. I'd assumed that this was a battery problem.

I'm thinking that most if not all "new" batteries for sale having been in a warehouse for years and may be degraded. This is actually the second "new" battery that I've bought trying to solve this problem. Performance and runtime appear normal for the percent remaining in the battery as shown both by the AndroidOS icon in the toolbar AND percent shown when in TWRP in upper right. Thanks for your help w/this Beeshyams!

Tablet was plugged in all night. Currently the tablet is booted into the OS, plugged into a charger and showing 4% with the "lightening bolt" in the battery icon indicating that it is charging. Typically now the battery level will drop to 3%...then 2% and the tablet will shutdown. Bluetooth + Wifi are both off, and the device  goes to sleep after 30 secs to conserve power.

Let us continue this discussion in chat.

@beeshyams you get the prize! Ordered a replacement battery from the vendor that was "newer" than the previous one he shipped. This battery showed 60% when initially installed in my Nexus 7. Shut the tablet down, plugged into external AC overnight, and the battery level in the morning was still at 60% charge. I've just downgraded the OS from Lineage 14.1 20171112 to AOSP_grouper-ota-eng-20151229, (Android M, 6.01). After 2hrs  plugged into AC the battery is at 87% and appears to be charging normal. Most curious given that I ran this thing for months on Lineage 14.1 w/no charging issues.

That's great. Let me know if you want to self answer or want me to answer. Either way is fine by me

On second thoughts you should self answer :)


text:
Nexus 5, low space problems
I recently got nexus 5 16GB, but I have weird storage problem. The OS should take about ~3.5GB, so I should have 12.55GB left for apps and stuff. BUT:

Screenshot (click image to enlarge)
4.66GB + 2.95GB + ~0.5GB IS NOT 12.55, but ~8GB. Where is the remaining 4GB space?

via a terminal app (or adb shell), execute df -h. This shows you all partitions, the used, and the free space along. My guess is the remaining space goes to /system (reserved space for possible future updates), /recovery, /boot, and /cache.

Thumbnail cache
Check the .thumbnails directory in sdcard/DCIM (Digital Camera IMages)/  notice that it is a hidden directory and only visible with certain file managers with the option to view hidden files.
This directory stores a lot of thumbnail data especially in the form of two large binary files.
Play Music (if you are using it)
Play Music caches your songs so Settings > Clear Cache.
App Data left behind
Delete some app data cache left behind by uninstalled apps from sdcard/ and sdcard/Andorid/data. Even apps such as Chrome, Maps, YouTube leave a lot of cached files in sdcard/Andorid/data. Clean those apps cache from sdcard/Andorid/data.
Storage Space
Install DiskUsage and check your devices storage by detail.
DiskUsage provides a way to find files and directories on storage card which consume a lot of space.
After pinpointing down apps and files that consume a lot of storage with DiskUsage. Simply deleting those files and going into Settings > Apps selecting and cleaning those apps would prove sufficient.


text:
How do I perform a full pre-rooting backup of an Android phone?
The question arises because the best-rated backup application (Titanium Backup) requires root. So what would one use instead when getting a really complete backup is essential? Is there a file manager-type application available that enables copying the whole file system on the phone somewhere (to SD-card, online or wirelessly - doesn't matter which?)
(Samsung Galaxy S9000)

Possible duplicate of Full Backup of non-rooted devices

As far as I know, you can only make a full/complete backup of the phone with root.  Because you need root in order to run Titanium Backup (which only backs up apps and their data) or you need root in order to flash ClockWork Recovery which lets you perform a Nandroid backup (full image backup of the entire device).

Can you not backup anything? Apps? Data? Nothing can be backed up before rooting?   If you screw up rooting are you completely ruined?

@AlexB That's the thing.  You can't do a full backup without root. Your contacts, email, calendar, etc. are synced to the cloud.  You can use SMS Backup to backup your texts. Market will auto download your apps. Your pictures are on the SD card.  But if you just want to pull everything off the /system /data, you need admin access (root).

Context to the comment above: whatever is in /system and /data isnt that (subjective, ofcourse) important. It's only stuff like wireless access points, your accounts, and so on. Mails and contacts should be in the cloud. Apps that save stuff to /sdcard (TitaniumBackup is one) will come right back after a clean install because /sdcard is not wiped in a factory reset, only the system partitions. So yeah, bite the bullet and get root now so you can get full backups in the future.

you don't need root to flash CWM.

You need root for a full backup because the system partition (among other areas) cannot be accessed with user permissions.
adb shell will allow you to browse /system/ though not /system/app/ and other areas.  adb pull will let you pull /system/app/ though other files will fail with permissions errors.
Backing that up is essentially useless without root, however, because you can't restore the files!  /system/ is read-only and cannot be remounted as RW without root.

In my not-rooted phone I was able to pull (through adb) all the system folder. What I wasn't able to pull was data folder.

@Diego I just tried it with mixed results, I'll update my answer.

@MatthewRead what about CWM and its Nandroid backup? Some state CWM can be installed/flashed on non-rooted phones, as long as the bootloader isn't locked. Any experience with that?

I can confirm adb pull doesn't work with system. Even on a rooted phone, probably because the adb daemon can not run as root. I will try again after changing permissions as root.

@jiggunjer Yeah, I think it will depend both on your ROM and version of Android.  Some manufacturers seem a little more lax.  I think the end conclusion holds regardless though :)


text:
How to uninstall "not installed" apps
I just found out that some apps that I uninstall from my tablet are still listed in "all apps" section by my device, although marked as "not installed":

Apps List (click image for larger variant)
How can I fully remove them? Please note that those are not system apps or pre-installed apps by manufacturer.

If you have multiple users on your tablet, this means that the apps are installed by another user, and therefore take up space without being installed under your user account. Just open the other accounts and uninstall the apps from there.

Settings -> Apps -> select your app
tap on menu button (3 dots) -> Uninstall for all users

Perfect answer...

It should be the right one. Save my day

In the menu there is an option to uninstall for all users so you don't have to loging in to each user on the main.


text:
Rooting Asus memo pad HD 7
Can any one show me a tutorial that how can I root my Asus memo pad hd7 ?
Thanks in advance !

Please read the main  How do I root my Android device from this site.
This is a blog on rooting the device and installing gApps on the device (if necessary).
This is the XDA thread on the root apk this should be a one click rooting process.
This is a recovery / ROM for the device
As always the disclaimer to this applies:

Rooting your phone may void your carrier and manufacturer warranty. You accept all responsibility if you brick your device. If you are ever in doubt STOP! This is not something to take lightly.

Read this also as it relates to the risk of rooting a device.
And once more I have to emphasise: ALWAYS backup everything, all the time. Then back it up again.

And then again, for the laugh.


text:
how to enter bootloader with moboot in HP Touchpad
I have a HP Touchpad that successfully installed webos and CM9 with moboot to select which to boot. Today, I want to update CM9 to CM10.1 or CM11, and here come the problems: it couldn't install the zip I downloaded and I thought it's because the recovery is too old, which is CWM v5.x(I can't remember precisely). so I install a CWM v6.x, but it can't work either.
Now, I want to flash the CWM v5.x back, and it seems using fastboot is the only way. But with moboot, I just can't enter bootloader mode, the only selections available are WebOS, CM and CWM.
Can someone tell me how to enter bootloader, so that I can flash the older CWM back, and restore my data? For now, I can only enter WebOS, and the Android system won't work: it just turns black after the splash screen.

It seems that moboot in touchpad is corresponding to the bootloader in android native device, so I think it may be impossible to enter such a 'bootloader' in hp touchpad.


text:
Heimdall error libusb error: -12
I have installed the C++ redistributables, but everytime I try flashing ClockworkMod Recovery, it fails with an libusb error: -12
C:\Users\new1\Desktop>heimdall detect
Device detected

C:\Users\new1\Desktop>heimdall flash --recovery cwm5_recovery.bin
Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating: [donate link]

Initialising connection...
Detecting device...
ERROR: Failed to access device. libusb error: -12

C:\Users\new1\Desktop>heimdall detect
Device detected

I have tried on all of my USB ports, even tried 3 different USB cords
Any ideas?

Inside Heimdall zip there is a driver folder.

Run the zadig.exe
click options - List All Devices
Choose your phone from the drop down list (on my pc it was "MSM8960"

I could not get it to work correctly on my PC, onece plugged into laptop "SAMSUNG Mobile USB CDC Composite Device")

Go through the drivers (WinUSB, Libusb0, Libusbk) and clikc Place drive for each of them.
Then run Heimdall

This worked for me but I had to do it on my laptop to be able to flash the files correctly.
I still get problem installing with my phone having an issue with the downloading bar going all across the screen and then stopping the flash.
to get around this I did one file at a time and allowed it to auto reboot. Each time putting it straight into download mode.
Source: http://redialflash.blogspot.co.uk/2013/05/how-to-install-and-succesful-start.html

thanks for the reminder, thats exactly what i was trying to remember.

Replace driver for each of them?  Meaning click it repeatedly for all of them?  Mine shows up as Gadget Serial twice, one of which is using the Modem driver and one of which is using the dg_ssudbus driver

https://github.com/pbatard/libwdi/wiki/Zadig says just one

For me installing the libusb0 driver was enough for me to use Heimdall. I don't think installing each of them in turn is useful, since the last one just overwrites whatever you had installed previously, i.e. only one of them can be installed at any given time.

For me with S22 Ultra it was called just "SAMSUNG USB", and i had 2 of them, the correct one had the driver "dg_ssudbus", the wrong one had "modem-something-driver" and I replaced the correct one with WinUSB 6.1-something driver :)

authors: ทวีศักดิ์ กลั่นบัวหอม


text:
Extract Contacts from ADB backup?
I have a full backup from Cyanogenmod 12. I need to extract the Contacts and add them to Cyanogenmod 13. I found attempting a restore just breaks things because it restores dalvik data and system caches, which are simply wrong between these versions.
How do I either (1) restore only the contacts; or (2) extract the Contacts from the ADB backup for manual restoration?

ADB backed up Contacts? since when? Related: Does adb backup include contacts?

Use titanium backup

@Firelord - Oh my; that would be surprising. I have to ask (in jest): what's the purpose of an adb backup --all if it does not backup all the data?

@jww Probably security/privacy considerations.  This way if the backup file falls into the wrong hands, most of your critical data (contacts, 2-factor authentication accounts, most banking apps) is not exposed.


text:
Execute APK in /data/local/tmp?
I built an APK using Apache's Ant. I also used Ant to install it on a Cyanogenmod device:
$ cd Android-PRNG
Android-PRNG$ ant debug install
...
install:
    [echo] Installing .../AndroidPrng-debug.apk onto default emulator or device...
    [exec] 1476 KB/s (17773 bytes in 0.011s)
    [exec]  pkg: /data/local/tmp/AndroidPrng-debug.apk
    [exec] Success

    BUILD SUCCESSFUL

So I have the APK located at /data/local/tmp/AndroidPrng-debug.apk.
The problem I am having is I cannot figure out how to run it. The APK does not show up in the Apps Launcher (that's somewhat expected). Cyanogenmod's FileManager v1.0.2 does not appear to let me navigate to /data/local (that's not expected).
How, exactly, do I execute the APK I just pushed to the device?

I'm working this way because Eclipse and the Android plug-in are so broken they are basically unusable.

I believe this is off-topic.

If you need to invoke Apache Ant, this isn't the forum. Also you may want to expand upon what why are you aren't using something like Android Studio or adb.

SarpSTA and Morrison - Apache Ant has already been run. The APK is on the device. Now I'm trying to execute it. Surely a question how to run an app is on-topic on these forums???

@jww, this site is not a forum. Anyhow, is the device rooted or do you have access to ADB? If the device is rooted, copy the APK to /data/app  and restart. If you have ADB or a terminal emulator in device, you can do am start -n com.android.packageinstaller/.PackageInstallerActivity -d "file:///data/local/tmp/AndroidPrng-debug.apk" --user 0 -- this would begin traditional sideloading of an APK.

APKs aren't executables, they're archives. If Ant doesn't do the actual package install step then you need to do that. How can I install an app given only its APK file?


text:
Cortex-A53 cpuinfo'd as ARMv7?
I picked up a used Samsung Galaxy Core Prime offered by MetroPCS in the US for testing. The device is powered by Android 5.1.1. Testing requirements are a 64-bit ARM processor, but I'm not sure if I have met the requirements.
According to cat /proc/cpuinfo (see below), I see Qualcomm Technologies, Inc MSM8916. That's a Cortex-A53, which is ARMv8a/64-bit architecture. But I also see ARMv7 listed, which is a 32-bit architecture.
Can anyone explain why I am seeing conflicting results?

$ adb shell cat /proc/cpuinfo
processor   : 0
model name  : ARMv7 Processor rev 0 (v7l)
BogoMIPS    : 38.40
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 0

processor   : 1
model name  : ARMv7 Processor rev 0 (v7l)
BogoMIPS    : 38.40
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 0

processor   : 2
model name  : ARMv7 Processor rev 0 (v7l)
BogoMIPS    : 38.40
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 0

processor   : 3
model name  : ARMv7 Processor rev 0 (v7l)
BogoMIPS    : 38.40
Features    : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 0

Hardware    : Qualcomm Technologies, Inc MSM8916
Revision    : 0006
Serial      : 000009f200000001
Processor   : ARMv7 Processor rev 0 (v7l)

Some more testing reveals the following. I've done this procedure hundreds of times, so I know the results are an ominous sign.
I'm guessing it is a Cortex-A53/ARM-v8a processor, but its configured in 32-bit mode.

$ aarch64-linux-android-readelf -h ./cryptest.exe | grep -i 'class\|machine'
  Class:                             ELF64
  Machine:                           AArch64
$ aarch64-linux-android-readelf -h ./libcryptopp.so | grep -i 'class\|machine'
  Class:                             ELF64
  Machine:                           AArch64

[Push test program to /data/local/tmp, open a remote shell]

shell@cprimeltemtr:/ $ cd /data/local/tmp
shell@cprimeltemtr:/data/local/tmp $ LD_LIBRARY_PATH=./; ./cryptest.exe v
/system/bin/sh: ./cryptest.exe: not executable: 64-bit ELF file

What you have there is a 64-bit CPU running a 32-bit Android kernel. The kernel maintains /proc/cpuinfo and reports on what it is using rather than what exists. The boot code of the device will have put the processor into 32-bit mode before starting Android.
The 32-bit OS can recognise 64-bit executables, because there are identifying numbers in the file header. It knows it can't run 64-bit executables, and tells you so. There are several kinds of mixed 32/64-bit Android:

This one, with 64-bit hardware and a 32-bit Android. Devices like this were presumably produced to take advantage of new hardware before the vendor had finished updating their version of Android.
64-bit hardware and operating system, but 32-bit Android RunTime ("ART"). This setup will run 32-bit and 64-bit native code, but Java/Kotlin code runs in a 32-bit environment. I've encountered one device like this, a 2017 model of the Amazon Kindle Fire HD.
64-bit hardware and operating system, capable of running 32-bit and 64-bit native code, and with 64-bit ART. This has been common for several years as of 2023. However, it will gradually disappear over the next decade or so, because most new designs of ARM hardware are 64-bit only, and can't run 32-bit native code.


text:
Update APK from command line using ADB?
I have a phone running Cyanogenmod, which is an AOSP derivative. It lacks Google Play.
I installed Textra as the messaging app some time ago using adb install com.textra.apk. Textra was recently updated to version 2.28, so I need to update the app.
Using  adb install com.textra.apk resulted in a INSTALL_FAILED_ALREADY_EXISTS (this was expected). Using  adb install -reinstall com.textra.apk succeeded, but I still have the down-level version 2.26.
I don't want to uninstall Textra because I'm concerned it might wipe my existing database of text messages.
How do I use ADB to update an app that is already installed?

For me, adb install -r foo.apk always worked. Which ADB version you are using? Maybe there's a more recent one, and maybe yours has some "bug". And you're correct: uninstalling would remove the app data. Work-around: adb backup -noapk -f foobar.ab com.foobar.app (just backup data), then adb uninstall -k com.foobar.app (just removes the app, keeps the data), followed by adb install (with or without -r) might do the trick. If the app data got lost: adb restore foobar.ab should get it back. // Does any of that work for you, so I shall make it an answer?

@Izzy, If given the root access, I think replacing the APK be it using file manager or ADB would achieve the same goal.

@Firelord might do, but might have side-effects. I tried that recently with a system app, and you know what happened :) Well, apart from the real trouble: there might be side-effects (as the lost account in my case). When using that approach, I strongly suggest doing so while booted into recovery.


text:
How to upgrade rooted HTC Desire with Unrevoked3 (Clockworkmod) to Froyo 2.2?
I recently rooted my HTC Desire having Froyo 2.2 with Unrevoked3. Rooting was successful, however, after Unrevoked placed the recovery image, the system was back at OS 2.1 again.
How can I upgrade again back to Froyo 2.2? Installing the normal OTA update doesn't work I guess.  At least it didn't when I tried. Can someone provide me some hints on how to do so? (Sorry, but it was my first rooting adventure.)

I'm stuck between posting this question again, or just commenting here: The original question has been asked many times on this forum, and I have yet to see someone actually answer it.
I was sent here by Google, because I want to know how to remove the recovery image that Unrevoked put on my HTC Desire. I want to be able to receive OTA updates again.
Except everytime I find a similar question, someone says to try a different custom rom. Please, if there is anyone out there who knows the answer to the original question, please will you post a reply.
(apologies to FoleyIsGood - this is

If you have succesfully rooted the phone and have the ClockworkMod recovery image, you can easily flash a custom 2.2 ROM.
Have a look on MoDaCo for some good options. You should also install the Rom Manager app from the market for easy flashing, booting to recovery, backups, etc.
You shouldn't have to wait long before there are plenty of 2.3 options too :) (there are a couple already on the XDA forums, but these are very new so you might want to wait just a little while whilst all the kinks are ironed out).