text:
How to get dumpstate logs in samsung galaxy grand?
While working on my app, I have faced app crash. But I can't get any dumpstate log from data/log folder. So what is the solution to get dumpstate. Or I have to create any folder on my app name in data folder?
Advance thanks for your help..

Maybe you want to check that on SO: writing dumpstate to file android? (also see: dumpsys and dumpstate) I think this is rather development related. We cover the end-user's view-point here, development questions are better asked at SO.

You don't need an adb shell to get dumpstate logs in this case.
Every Samsung device has a built-in tools like SysDump, just follow these steps:
1) Open the Phone app in your device and type: *#9900#
2) Depending on how much detailed logs you would like to get change Debug Level and Silent log options (by default Debug Level is Disabled/LOW and Silent Log is turned Off)
3) Click on Run dumpstate/logcat/modem log (should be first option) wait until process finishes
4) Click Copy to sdcard(include CP Ramdump). This is important step because by default collected logs will be stored in /data/log directory, which is under root permissions so you can't access to it without root permissions
5) Your logs will be stored in /log directory on your DEVICE STORAGE.(this means that you don't need root access to find it just use file manager).

If the device doesn't have a dialer, enter (+30012012732+ into the calculator and then proceed entering *#9900#

Still working on Samsung Galaxy Tab S8 Ultra. The file itself is a ZIP named like: dumpState_<deviceid>_<datetime>.zip

If you want to create the dumpstate file from a PC (using adb), run this command from a shell:
adb shell dumpstate > dumpstate.log

This will create the file dumpstate.log in the current directory on your PC. You can use this as part of a bug report.

Could not get this to work on Samsung Galaxy Tab S8 Ultra: /system/bin/sh: /system/bin/dumpstate: Permission denied. Not sure if one can get around that permission issue without root.


text:
What is `Snapshot` and `Use host GPU` emulation option(s) for?
When creating an emulator device, the option Emulation Options makes me confused. What do Snapshot and Use host GPU mean?

The Snapshot option speeds up the boot of the emulator by saving a snapshot of its RAM once it has booted, and restoring from that snapshot on future uses. That way, it doesn't have to run the boot process (which is slow, because it's emulated) every time you start the emulator.
The Use Host GPU option uses the host computer's OpenGL implementation (which is probably hardware-accelerated, on your real GPU) to evaluate OpenGL commands inside the emulated system. Put another way, when a program inside the emulator uses OpenGL for graphics operations, the work goes out to your real GPU, and the result goes back into the emulator, instead of emulating a GPU (which is very slow). The result is a significant speed-up, especially when you consider that most view and canvas drawing uses OpenGL in Android ≥ 4, even in non-graphics apps.
You can't have both options turned on at once.

Which option would speed up testing a PhoneGap app (primarily consisting of Angular+Bootstrap) the most?

This depends on whether you want a faster boot or better runtime performance for the emulator. Snapshots allow you to boot almost instantly but Host GPU speeds up the emulation itself.

@Micah-psIloveyou If you have a follow-up question, the best way to get good answers is to post it as a new question. Nobody will see it buried in the comments.

@onik, Why couldn't both be combined?

The Snapshot option allows you to use a feature that's similar to the Hibernate function in Windows. It saves the contents of the emulator's memory to disk when you close the emulator, so that when you open it, it doesn't have to boot the OS, but instead it can load the memory contents from the disk and resume from where you left off. This allows you to start the emulator faster.
Use host GPU means that instead of using the CPU to render the graphics, it uses the computer's graphics card. This speeds up graphic-intensive processes. Details and requirements can be found on developer.android.com.
You should note that Snapshots and graphics acceleration are mutually exclusive, so you can't use both.

Which option would speed up testing a PhoneGap app (primarily consisting of Angular+Bootstrap) the most?

Usually in phonegap/cordova you keep the emulator running all the time and just re-deploy the apk to the emulator. I keep the GPU turned on. To speedup the startup time anyway I read that it is good to have a smaller sd-card image in use.

@onik, Why are they mutually exclusive?

source: Stack Exchange

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

sort: votes


text:
Cannot start emulated Android device/AVD device in Windows 7
I follow the official Android guide here but I cannot start the emulated device. It keeps saying PANIC Cannot start device... as below screenshot.
Do you have the same problem and any work around for me?
Creating the device

Starting the device

PANIC/failed result

In what OS are you developing? Windows?

Did you change the RAM from 1024 to 768 as indicated? I used to get this error message, and after I started to make this change for any AVD in my Windows 7 I never seen the message anymore.

@FranciscoAlvarado Nope I didn't change that. We have the solution as below.

Try these steps

Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\<<Administrator>>
Open Eclipse > Window > Preferences, click in Run/Debug and String Substitution. Add a new variable called user.home and set it to C:\Users\<<Administrator>>
Create an AVD and run it.

Note The <<Administrator>> means the name of your Windows account; it is where resides the folder which contains your .android directory
An android project member says here:

As a work-around, you can define the environment variable
  ANDROID_SDK_HOME to point to the directory containing your .android
  directory. The emulator and SDK Manager will pick it up properly.
Also you should check that the AVD is created in the location
  D:\NN\.android\avd (check in your screenshoots, just above the list
  of AVD, the path in List of existin Android Virtual Devices).

My PC doesn't exist the path C:\Users\Administrator in step 1. Does that mean any user who has administrator access right?

Uncheck scale display to real size, It will work for you,
Or try to lower the Screen size column.

Tried it and that not works

I faced the same problem, which nearly drove me crazy. System: Win7 64Bit, Eclipse/ADK 64 Bit, JRE7 64 Bit - latter copied from C:Programs\Java\ as "jre" under the Eclipse folder... (finally Eclipse started).
How I solved the lacking start of the Emulator with an android virtual device:

Look under C:Users\YourUserName\ .android if you can find there a folder named
\avd containing subfolders named after the android virtual devices you created.
If that is not the case (as it was on my machine) then you probably have moved long ago your account's user data via a symbolic link to some different location, as it was the case in my system. Eclipse (the virtual device manager of the ADK) will create the virtual devices there, but will search for them in the Windows default C:Users\YourUserName\ .android path.
Locate the real folder with your user data, in my case it was:
D:\Win\Users\YourUserName

where I finally found the AVD-folders needed for Eclipse:
D:\Win\Users\YourUserName\ .android\avd\...(2 Subfolders with the avd's)

Just copy the avd-folder (in my Example)
D:\Win\Users\YourUserName\ .android\avd

to the "usual" Location, where Eclipse looks for it, to
C:\Users\YourUserName\ .android

This enabled me to : Start the virtual device and to load the Hello World example from Eclipse into it.
What did not help:
Create an environment variable named
ANDROID_SDK_HOME with the value  D:\Win\YourUserName\ .android
and add it to the environment variable paths list:
path= ....;%ANDROID_SDK_HOME%;....

Eclipse does not seem to search for such environment variables, but obviously rather relies on the presence of all of the files in the Windows default locations of the user's personal data.

There are 2 things that you can do to get it over with.

Copy the content of /root/.android/avd to $HOME/.android/avd. Just a matter of a simple command and worked for me. :D
Before Android searches for .ini files in $HOME/.android/avd, it looks for an environmental variable $ANDROID_AVD_HOME.
So you can set its value to /root/.android/avd. :)

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

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


text:
Switch keyboards quickly
I've got a Samsung Galaxy Note with SlideIt installed which works wonderfully. But I can't write with my pen anymore. So how do I switch VERY QUICKLY to the Samsung keyboard and back?

Long-pressing the menu button won't bring up the keyboard?

@C.B. No, that calls up Google Now.

I had the exact same issue with my Note II.  The best solution I've found is the app Quick Keyboard Switch, which gives you a notification bar icon you can tap after pulling down to bring up a dialog box to switch KBs.  You can switch back the Samsung kb, and from there hit the handwriting input button to get back to pen input.

Your link is now broken.

@MarianD: hardly surprising, given that the answer is over five years old.

I didn't surprise, I stated it - partly for other users to prefer other answers, partly for you as an opportunity to edit your answer or update the link to possibly gain more reputation from it.

There's a little keyboard icon in the notification pane up top which appears when a text field get's entered. This can also be used to switch quickly. So It appears a third-party app is not necessary.


text:
Can my phone act as a WiFi access point without mobile data?
I have an old (Galaxy S1-class) phone running a custom ICS ROM.  It has a pay-as-you-go mobile SIM without data.
I also have a bunch of kids with iPads that want to play Minecraft together.  As far as I can tell, I can't get the iPad to make an ad-hoc wifi network on its own.  If I had mobile data, I could turn on the Mobile Hotspot feature, connect all the iPads to the phone.  I think if I did this now, though, my SIM would be charged for any stray Internet requests that are accidentally made.
Is there a simple way to do this?

'adb shell setprop SimCheck.disable 1'

This will disable sim check while turning on WiFi tethering.

Is there an equivalent syntax from the Terminal Emulator on the phone itself? (I don't have a computer handy at the moment, but I do have Terminal Emulator)

Also!  Would I have to take the SIM out to make sure it doesn't try to charge for data? Right now I just set the "mobile data" switch to OFF.

can't you enter this command in terminal emulator.?are you able to turn on tethering with mobile data off?

I was sure it wouldn't work, but I was able to turn off wi-fi, turn off mobile data, then turn on the hotspot.  Thanks, @Rilwan! (Do you maybe want to make a separate answer for that, then I can accept it?)

@james: which way you enable tethering now? simcheck disable or turn off mobiledata & Wifi then turn on tethering? By default turning on tethering should disable WiFi. So i thought just turning off mobiledata should be enough for you. Thanks anyway!

As for the terminal emulator: I would try just skipping the adb shell from the command (which does nothing else but opening a shell on the Android device, which the terminal emulator does itself), i.e. executing simply setprop SimCheck.disable 1.


text:
Phone not appearing in Android Device Manager
When I go to Android Device Manager, my tablet is listed, but not my phone. I had signed up just as soon as ADM was available, and at that time both devices were listed. Now, for the last several days, I can only see my tablet. (For what it's worth, both devices appear in the "My Devices" section of the Google Play Store.)
I have done the following while troubleshooting:

Ensured that the Android Device Manager settings in Google Settings are both on. I have even toggled them off and back on again
Ensured that Location Services are on
Ensured that all sync services for my account are toggled on and work
Have connected to the Play Store several different times
Ensured Google Play Services is at the latest version
Made sure I'm using the right account. (In fact, I removed the other secondary accounts from the phone)
Power-cycled the phone several different times

I could understand if ADM couldn't find the phone due to it being off, out of range, poor signal, etc., but ADM would at least display the phone and tell me it couldn't find it.
So, any suggestions to get my phone to show up on Android Device Manager?
I would like this to be working before something happens to the phone. (Murphy's Law and all that.)
Although it shouldn't make any difference:

Tablet: Nexus 7 (2012) with Android 4.3
Phone: Verizon Galaxy Nexus with Android 4.2.2

Addendum:
There's apparently some (relatively new) advice on the Android Device Manager help page:

Open  Google Settings from your device's apps menu.
Touch Android Device Manager.
Uncheck Allow remote factory reset.
Go to your device's main Settings menu, then touch Apps > All > Google Play services.
Touch Clear Data. Note that this action doesn't remove personal data.
Go back to Google Settings and select Allow remote factory reset.
Restart your device.

I have followed these steps, but it doesn't appear to have worked.

Silly question @AlEverett but both devices have Android Device Manager installed? Have you clicked on refresh on the box on the webpage itself where it shows the devices in dropdown box? Maybe you need to activate the wifi to internet on the phone for a while to let the system "sync up"? Yeah, that's more than one silly question - sorry Al! :) FWIW Google servers are playing silly as well with me, gmail not proper updating inbox emails, google play on android unable to connect at times...

Yes, it's on both devices. (It's part of Google Play services.) It used to work. Yes, I've refreshed the webpage. This has been going on for a few days and I've checked the site multiple times from multiple locations and different browsers.

That seems to be a common issue. None of my devices show up there. Searching on the web reveals many people have this issue, but I saw no remedy yet. Looks like one more of those incomplete services (like Google Cloud backup, which backs up, but only sometimes restores, sometimes not, sometimes partly, but never deletes). Launched too early, before completion.

Thank you sooo much !! you finally helped me to see my device Thank youuuu !!!

Well, I don't seem to have an answer why this was happening, but I got some advice about how to finally fix it.
From Ryan Lestage on Google+:

Clear data for the following apps:

Play Store
Download Manager
Google Services Framework

Restart your phone.
Fire up the Play Store app.
Wait for the device to show again on the web Play Store. It will appear under Settings > Devices. It may take a half-hour to several hours to appear.

When your phone has shown up in the Play Store with the date registered as today's date, proceed with the next steps, but not before.

Open Google Settings from your device's apps menu.
Touch Android Device Manager.
Uncheck Allow remote factory reset.
Go to your device's main Settings menu, then touch Apps > All > Google Play services.
Touch Clear Data. Note that this action doesn't remove personal data.
Go back to Google Settings and select Allow remote factory reset.
Restart your device.

I would like to know exactly which of these steps was the magic sauce, but I'm content that it worked at all. I suppose that Play Store connection makes some sense, because while my phone was listed there, it showed a "Last Used" date back in March or somesuch.
I really hope that the setting sticks this time, and that I won't be forced to repeat this process every couple of months just to protect my device. (If so, I'll go back to some of my other options, like Carbonite and/or Lookout.)

Huh? That is convoluted way of dealing with it, but guess @Izzy is on the ball here, the whole thing was a bit rushed out the door to be honest...  maybe for KLP readiness... no idea. Time will tell. :)

Thanks, this fixed the issue for me as well. Small caveat: after the data was cleared (I suppose it must been Google Services Framework specifically) and restarting I was unable to log into the Play Store app for about 30 minutes. It resolved itself though.

At step 3, Fire up the Play Store app, I got "Google sync error" and the only way to recover was to factory reset my phone (Android 4.4.4, Cyanogenmod). And still no luck with ADM.

Thanks, that resolved this very frustrating problem. Hard to believe it would be this much of a hassle. One note I want to add: Maybe things have changed since two years ago, but there is no "Android Device Manager" in Google Settings as indicated in steps 1 and 2 in the second list. Instead, I went to the device's Settings, and from there Security > Device administrators > Android Device Manager, and unchecked Allow Anodroid Device Manager to lock or erase a lost device (and re-enabled this setting in step 6).

Worked for me after a painstaking batch of attempts... i still use Android 2.3, and removed Google Play Services (because it consumes a lot of space and resources), and ALL worked fine for YEARS, until last week, when i start getting PLAY STORE download errors, and lost the device on the Play Store / Device Manager. HAD to install Device Manager App (never used until the present day) and follow all these steps. Problem solved... (google changed something??)

I skipped your first set of steps and just did the second lot, except for the device restart, and now my device is showing up in Device Manager. Thanks!

I just followed these steps. The phone is yet to show up in android device manager. In Play Store app my "installed apps" list is now empty, Play Store saying that it lists only apps installed through the app! :(

I followed the steps and my nexus still doesn't show up in the device manager or adb devices. The only recognition I get from the computer is a chime sound it makes. I've also tried different cables. It does show up on the "find my device" web page.

I don't know if this will help but I had 2 similar problems:
HTC One Phone:
I had to go to the "play store" and download the app for the Device Manager even though it was supposedly installed.  I could then surf the web and go to the google.com/android/devicemanager website using my cell phone and I tested the ring and it worked.
However, when I went to my computer I ran into the same error message as noted in the comments above that I had no device connected.  So, I left my HTC One plugged in overnight and some applications ran that cleaned up the temporary files and fixed a few other things.  When I logged back onto google.com/android/devicemanager the HTC One showed up on the website on the top left hand corner.
So, I guess you have to have the latest Device Manager App for your phone and clean up all the temporary files on your PC and have your device plugged in so that it can be recognized.


text:
Android SDK: Using the emulator to browse local websites
I'd love to be able to develop mobile websites on my windows 7 pc be able to see them instantly in mobile chrome/opera inside the android emulator.
I own an android phone, but uploading to my site and then browsing to it on my phone is just way too cumbersome.
I've downloaded the android sdk, but I have no idea how to start the emulator. I know nothing about java or android, and I can't make head nor tail of anything. Inside:

adt-bundle-windows-x86_64-20130729/sdk/tools/

there are a bunch of executables that seem to suggest they launch the emulator, but they just launch the command line and nothing happens.
All I want to do is have a little graphic of an android phone floating on my screen, and be able to browse to my local websites inside its browser.
Is this possible?

From inside the emulator, you can access the localhost of the host machine by using the IP address 10.0.2.2 (source).
For further info about creating an AVD and using the emulator, check out the documentation.


text:
Is there any way to adjust the colour intensity during the playback of a video on my S3?
I have tried many video players looking for a colour adjustment while playing a movie on my phone but I can't seem to find a setting such as this. Is the Android OS incapable of it?  Does the stock player have such a setting?  Any other way to do this?
OS: 4.1.1
S3


text:
How do I convert a NANDroid backup into an update.zip file that works in the stock recovery mode?
For this case, consider a phone stuck in a bootloop (not fixable through data wiping or USB jigs) with no CWM Recovery and no adb or fastboot access. Only an SD Card, the stock recovery mode, and Qualcomm's QPST serial port debugging interface.
Relevant files available are a handful of NANDroid backups of the same phone (made previously via CWM Recovery) and an "update.zip" from the provider/manufacturer that contains an OTA update.
Goal is to restore a NANDroid backup using the stock recovery's "apply update from external storage" feature.
Update: I've dug around, and as far as I understand, my stock recovery mode requires properly signed .zip files. I've made numerous .zips up on my own using various scripts and toolsets I had found, and some by tampering with the OTA update .zip I had mentioned. Attempting to apply either of them results in the exact same output that follows below. (The only one going past that point is the original OTA update.zip, whose instalation dies after the message "file_getprop: failed to stat "/system/build.prop": No such file or directory", but this is certainly part of the bigger problem with the device)
-- Install /sdcard ...
Finding update package...
Opening update package...
Verifying update package...
Instalation aborted.

Is my case hopeless without having the manufacturer's private key on hand? Can you think of any workarounds or alternatives? Could I be making a mistake in the zip-making process?

Most stock recovery modes require proper, officially signed update.zip files. There are ways to convert NANdroid backups to update.zip files or even directly back them up as such but the hard part is actually signing the update file (there are a handful of tutorials for doing these on the Internet, and in part in the official Android documentation). The signing requires official keys which can only be generated by the manufacturers. Getting them is nigh impossible unless you have inside access or very very cooperative support.

You can't get there from here.  As you found out, almost every OEM requires images flashed via the stock firmware/recovery to be cryptographically signed by the OEM to prevent tampering.  Considering that they're the only one that are going to have the private signing keys, you're not going to be able to make your own image.
The most likely path to a working phone is to get an official image from the OEM.  For example, RUUs for HTC phones and ODIN images for Samsung phones.  These are generally available online (in some cases, available from the OEM or carrier themselves) and have the advantage of being properly signed for flashing via either stock recovery or bootloader access.  It may be possible to get an official image from the OEM support as well.
Once you have a working device again, you can root (or unlock the bootloader) and flash your preferred recovery and restore the backup you do have.


text:
Google's photo sphere functionality for Samsung TouchWiz phone?
My vanilla Android tablet (4.2/4.3) has this very fun feature in the camera app, that allows easily creating StreetView-like 360° composite pictures.
My Samsung TouchWiz phone (4.2) does not have this same feature in camera app. Is there a way to get it?

Yes. Just download the Nexus' camera app onto your Samsung device and install it. You'll end up with 2 camera and gallery apps. They all have different icons, though, so you can visually see which one you want to open.
See the following link for a download link and instructions.
Use the Google camera app to create photospheres. Note that to view the photospheres, you must also use the Google Gallery app (which is also installed).
http://www.intellectdigest.in/how-to-install-photosphere-on-samsung-galaxy-s4-without-rooting-on-touchwiz-ui-3529/?ModPagespeed=noscript
Direct download: http://d-h.st/tK6

Camera Icons

Gallery Icons

In ADW, I created a folder called Camera and changed the icon names for the two camera apps to help distinguish between the two. I don't know if TouchWiz can created folders or change the icon labels, though; I installed ADW Ex as soon as I got the phone.

Thanks, works perfectly! (GT-I9295) TouchWiz does not allow renaming, but it does however allow folders with custom names (even in the app drawer) so I can place the Google's camera into a folder named Google.

I tried this on my Samsung Galaxy A6 but it doesn't allow me to install it anyway. The direct link is dead, but I found it here: https://www.apkmirror.com/apk/google-inc/camera/camera-5-2-025-198487658-release/google-camera-5-2-025-198487658-android-apk-download/

How to create 360° photos with your smartphone
Google has integrated the 360 feature into the "Street View" app, the successor to the Camera app.
That does not mean you have to upload them to StreetView.  You can save the equirectangular JPGs in full resolution on the device and use with the (web) app of your choice!


text:
How can I uninstall the local Speech Recognition from Google?
My Google Speech Recognition isn't working.  When I use it (in Google Now, Evernote, etc.) it crashes the app.
I'm guessing this is because I installed the local SR.
(I did a Factory Reset on the phone (Motorola Razr M) and the problem persists AND the local SR is still installed.
Update: What I've tried
I can't find any App (Running or Installed) that seems like Speech Recognition. So I've not removed anything.  The only thing I've seen that looks like it might be what I'm looking for is com.google.android.voicesearch but there's only an option to Stop and Disable it, not uninstall.

What did you try to uninstall it and why did that not work?

@Nils see my update above.

You need a rooted device to remove system apps. There are many apps on the market which will do this or you can do it manually via the command line.
Link2SD, for example, allows you to "convert" or remove system apps.
Be careful when removing system apps and do not do anything unless you fully understand what you are doing.

You might try to stop/disable it. If I do this with a system-app on my Nexus 4 I get a question wether to uninstall all updates. Say yes here, too.
If you want to give it another try, re-enable that app and check for updates and install those.
This way (disabling that sub-component, then re-enabling it) I could get Google Street View to work again within Google Maps.


text:
How to use internet from another basic mobile through bluetooth?
How to connect an android phone with the basic phone having unlimited data packs . How to use the data on their phone in android using bluetooth?

If that basic mobile has the future of bluetooth hotspot, you can make use of that. Otherwise it can't be done as per your requirements.

If it does not have to be Bluetooth, but WiFi would make you happy as well: For quite a while now, Android offers a nice feature called Hotspot. The one with the unlimited mobile data starts that on his device, and everybody with WiFi capabilities can use it like any other WiFi hotspot – if they are told the connection data (WiFi password and hotspot name).

Another mobile is just a basic mobile without WiFi

This doesn't answer the question.

Try using bluetooth PAN (Personal Area Network).  Some bluethooth adapters with third party drivers have excellent features to deploy and maintain a PAN.  Internet sharing is possible over Bluetooth. You will need another PC to establish such a network.  Both the basic and android phone will connect over bluetooth.

Use Easy Tether Pro. It enables an Android to share data connection through bluetooth with another Android.

This post may answer the question, but if any apps are mentioned, it is standard practice to link to their websites/hosts at least once in the post per app.


text:
Can I trigger a media scan via the command line?
Is it possible to trigger the media scanner to update its DB via the command line?
I have an SSH server installed on my Android device and I copy files to/from over the same link. It would be great if I could also trigger a re-scan for the media scanner.
I am aware that there are applications on the market to do this via the UI but this is not what I want.
Any help fully appreciated.

The SSH server doesn't set all the necessary environment variables so it is easier to use a shell script.
#!/system/bin/sh

export ANDROID_ASSETS=/system/app
export ANDROID_CACHE=/cache
export ANDROID_DATA=/data
export ASEC_MOUNTPOINT=/mnt/asec
export ANDROID_ROOT=/system
export BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar
export EXTERNAL_STORAGE=/mnt/sdcard
export LD_LIBRARY_PATH=/vendor/lib:/system/lib

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard

When successful:
# rescan-media
Broadcasting: Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///mnt/sdcard }
Broadcast completed: result=0

This works on Cyanogenmod 9.1. Depending on your system the environment may be slightly different.
Note: In later versions of Cyanogenmod / Android the SD card may be mounted at /storage/sdcard0. Make sure you know where your card is mounted or this will never work. Diskinfo may help here.
Thanks to Dan Hulme for pushing me in the right direction.
References:
http://developer.android.com/reference/android/content/Intent.html
http://forum.xda-developers.com/showthread.php?t=1752749
http://intwoplacesatonce.com/
http://kennystechtalk.blogspot.co.uk/2013/08/start-android-media-scanner-from.html

On Paranoid Android (CM10 / JB 4.1) this causes an immediate reboot. Not sure if there is a problem with the ROM or something has changed. Will investigate.

On CM11 this does not work.

@JaredBurrows Have you used the correct path? In CM10 this has changed from /mnt/sdcard to /storage/sdcard0.

Sorry I meant to explain more. Im running CM11 Android 4.4.2 Kit Kat. I have tried /sdcard/, /sdcard/Music. My sdcard is very empty. I am trying to refresh Google Play Music.

However, this does work on Google Glass (Android 4.0.4).

This refers to the Android Media Scanner. I don't know enough about Play Music to help: I've barely looked at it, but it's a cloud service so I can't imagine it works anything like the Media Scanner.

This apparently no longer works on Android 8.1. Even the developer tools GUI, which uses the same broadcast, no longer works.

I have not kept up with how Android works, as it do so really quite badly. No doubt many things have been broken since this was answered. A shame but there we go.

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


text:
adb input keyevent 26 - Not waking device up
I am trying to wake a device up using the following adb command
adb input keyevent 26
This correctly emulates the power button keypress if the screen is on, but will not turn the screen on if it was off and locked.
Can anyone suggest why?

I mean to wake it up from its locked state with the screen turned off.  In normal use i would press the power button once to wake the screen up so i can slide to unlock

Do you need this because your power button is broken? (In this case, you could maybe give it a call to wake it up if you really didn't think of that.) Anyway, I think you might have to use the getevent / sendevent commands.

This is an old post, but this command should wake up any device.
adb shell input keyevent KEYCODE_WAKEUP

My phone does this, too. I wish I knew why.
I seem to have had some success with the sendevent command (adb shell sendevent). (Not much documentation on sendevent, unfortunately.)
First, I had to locate the Power Key device via getevent -i. In my case, I found /dev/input/event4 had a name like pmic8xxx_pwrkey, and used this for my sendevent call.
# sendevent --help
use: sendevent device type code value

To use sendevent, I also had to find the type and code. In the getevent device, it listed events, and I used event "KEY" (which corresponded to a value of 1) for the type parameter, and then used the first value which followed that event type as the code parameter, 0074 (this is a hex value, 0074 represents the decimal value 116) in my case. For the value parameter, I used 1 and 0 for on/down and off/up.
Constructing the command, I sent this to emulate a power button press:
sendevent /dev/input/event4 1 116 1
sleep 1 # you may want to include this line, especially if you use this code in a script
sendevent /dev/input/event4 1 116 0

I had to wait about five seconds before my screen turned on, but eventually it did wake.
After further use, this seems to work only when my device is not charging.

I found that on my Moto MB865 (Atrix 2) sending menu key event turns the screen back on:
adb shell input keyevent 82

did you try keyevent for power button ?

adb shell input keyevent KEYCODE_POWER

doesn't work for me on Nexus 7 for some reason

KEYCODE_POWER is 26.

@JPM if your intention is to block device vía pwr button you could also trigger the screen off, it will "block" your device too, and probably you will not need to unblock it when reactivated. I found lot of strange behaviors playing keycodes and Macrodroid blocks. I tried code 26 with no luck but finally set screen of did the trick to avoid unwanted tap's on the screen. palswin answer is soo god, let you a way to try to identify yours if for some reason has been changed.


text:
Use AND logic on variables in Tasker
I have Tasker speak texts to me if the phone is not in silent mode. (The task looks something like Say 'text from %SMSRN who said %SMSRB' if %SILENT ~ off, and it's run by a profile activated when a text is received.)
This works well except when I'm on a phone call and the text is read out while I'm in conversation!  Doesn't happen much but it's annoying. So what I want to do is have it read out texts when I'm not in silent mode AND when I'm not on a call.
I can set up a variable %INCALL to equal 1 when the phone is off the hook (and clear the variable when the phone is idle).
Therefore, I want texts read (if %SILENT ~ off AND %INCALL != 1).
I can't see any way to do an AND in Tasker logic. Is there an elegant way to handle this?

You can specify AND logic in contexts, not just tasks. Don't forget that you can have multiple contexts that must all be met (logical AND) before the task(s) run. Try adding the context State > Call [Any, Invert = YES]; this would mean the profile will only activate 1) when a text is received AND 2) no call is active.

A great solution. I'd forgotten that by long pressing on a context the option pops up to add another context. I added the call state as you suggested and it's working perfectly.

An easy way to achieve this would be to concatenate variables. You already mentioned setting %INCALL to "1" or "0". Have another numeric one for %NOTSILENT = 0/1, and then check for %INCALL%NOTSILENT ~ "01" (you might need to play with the syntax, this just gives the raw idea ;)


text:
No tab preview on Chrome
I have Blu studio 5.0 on Android 4.1. When I open the tab viewer in Chrome, all I get is a list of open tabs and no preview of them. Does anyone know why?
I have this problem on the beta and regular version.

You've (accidentally) enabled Accessibility Tab Switcher.
From AndroidPolice,

Chrome Beta for Android has an experimental "Accessibility Tab Switcher" flag that'll allow you to switch tabs in a compact, pleasing interface, also enabling you to bring back closed tabs with a handy "undo" button.

You can find the setting on chrome://flags/#enable-accessibility-tab-switcher

I just tried on Nexus 5, Android 6.0.1, Chrome 50, but it didn't seem to work though.

An update to Andrew's answer that worked for me: the accessibility tab switcher is not an experimental feature anymore, you can find it under "Configuration>Accessibility", as "simplified view for open tabs".

Try going into settings -> Application Manager -> Chrome -> Force Stop -> Clear data (Warning this will clear your saved passwords so take a note of them!) -> Clear cache. I hope this works for you it did for me. If this doesn't work try installing another browser such as firefox.


text:
MMS pictures not opening
I have a Galaxy S4 on Verizon - rooted, but still running the stock ROM. Recently I noticed that I am unable to open MMS messages on my phone. I receive them, and am able to view the thumbnail, but when tapping on it to open it in the gallery app, the Gallery app will open, and then freeze on a black screen (never displaying the picture). Sometimes, after a minute, it will crash. I tried another gallery app (QuickPic), and it will open and then close right after.


text:
Verizon Samsung Galaxy S4 root reverts on reboot
I'm trying to root my Verizon Samsung Galaxy S4 (i545 vruame7) and install cyanogenmod.
I've followed this how-to and it seems to work for the current session.  However, when I try to install cyanogenmod via ROM manager it fails after rebooting.  I don't get any error messages either then a dead android with an exclamation mark.  Also, I don't get the usual unlocked boot screen.
What am I doing wrong?

Did you install CWM with the Loki method? Have you tried installing CM from CWM?

I'm not sure that I follow.  I tried installing it by using the ROM manager.  The first step of this was to install ClockworkMod recovery.  Which seems to have worked (it didn't visibly fail at least).  Is there another method I can use?  Could you post a link that I can try?

It's a follow-up link in your own source link, here


text:
Wifi Problems for samsung GT-I860
Im having problem with connecting wifi with my phone which is Samsung Ace 2 GT-I860. It will connect but in very very low, even if im near the router it still very low connection and it goes and comes back on again. What should i do please? I updated my mobile through kies and still the problem is still there.
Please help.

You have given almost NO information other than you are having trouble with the connection.  To venture a guess, I would check the router since it is the device you are connecting to.


text:
Blocked but still shows "online" to blocked contact
Please can someone help! I blocked a contact on Whatsapp but I can still see his "last seen" timestamp (as it changes over time - its changed many times since blocking). He can also see mine. I tried blocking with another person to test and it worked fine.
Why can't I block properly for the contact I really want to block?

How do you know he can see your last seen time? If you block someone, you can still see his timestamp.

Are you sure about that? That I can see his but he cant see mine? I tried another thing. I added my own number as a contact, said hi :) then blocked it. Now, when I open that conversation, it says "online" or "typing" even though I am technically blocked.

Also - When I tested with the other person (that I dont actually want to block!) I could NOT see that she was online. So, A and B are both blocked. I can see A's timestamp changing, but I cant see B's timestamp changing.

That's odd. According to the FAQ, only your timestamp should be blocked to the other person, not the other way around.

I know! Thank you. So actually, I should be able to see B's timestamp changing?

If I understood correctly, yes.


text:
How to install Play Store on Alcatel OT 979
I am switching from iPhone to Android. I do not speak Android/PC. I speak Apple. This has been a difficult transition, and I require a simple explanation (pretend I am 5 years old).
My new Alcatel One Touch 979 did not have Android Market / Google Play installed. After much searching, I figured out how to get the application. I downloaded it - safely - and it was a very slow start, but now it only crashes. I tried three different platforms, each having the same outcome:

Android Market 2.3.6.apk
Google Play Store 3.5.16.apk and 3.8.16.apk

The error message reads "Sorry! The application Google Play Store (process com.android.vending) has stopped unexpectedly. Please try again." My only option is to force close.
The phone is listed as a supported device on the Google Play help page. I suspect I'm accessing an incompatible version, but I just don't know - and there are so many versions from which to choose.
When I log into my Google account via the laptop, I see my phone's application activity! I have a lengthy Orders list, but nothing has downloaded to the phone. To that end, when I review the "Device Manager" option in my account, nothing is listed, but when browsing the Play store and selecting applications, the compatibility indicator recognizes the phone and states whether the app is a match. How and what is happening?! The user manual for the phone is in a foreign language (Mandarin) with no English translation, so I cannot use it to troubleshoot. Here is some information about the phone:

http://magazine.tcl.com/en/article.aspx?id=476
https://deviceatlas.com/device-data/devices/alcatel/ot-979/3638583

The phone has Kernel version 2.6.35.7+SW2SVR@Android-Server #1. The Baseband version is BCM2155x_CustomerRel_SS_1_3_9_P3. I have no idea what any of this means, but I'm sharing in case it matters. The micro SD is a 4GB memory and the internal memory is 126MB.
I have tried clearing the data and the cache. I have also tried a hard re-set, which reverts the phone back to its linguistic Beijing origins, and I needed assistance getting it to English language. I am out of ideas, except to wait for the iPhone 5S launch. I've only had the phone for 15 hours; I'm an Android infant newborn. My head is spinning, really. There must be a kinder, simpler way to use the application store on this phone.
Thanks in advance for your suggestions!

If the phone didn't come with Google Play, it may be that it doesn't support it. Google Play doesn't operate in China anyway, so perhaps it can't work on the Chinese version of the phone. If this is so, you might be able to make it work by replacing the operating system on the phone with the correct one for your country, but (a) that's quite an involved process, and (b) it might not even be possible - sometimes the Chinese variant of a phone has completely different hardware (so it can be cheaper).

@DanHulme ^^ Thanks for your suggestion. According to Google Play this phone is a supported device: https://support.google.com/googleplay/answer/1727131?hl=en#T. It is confusing because it's on the list but came without the application. However, it doesn't say which version of Google Play is suitable for the phone, so I presume the most recent should be OK. So very confusing! When you say "replacing the OS" does that mean "root"? Please clarify :)

My point is that although the phone itself is supported, the Chinese version might not be: it might be missing other things besides the Google Play apps themselves. But you should definitely try onik's suggestion first.

You can't just install the APK, you have to download a GApps package, which contains all the Google applications that come with Google licensed phones. This, however, requires rooting the phone and installing a recovery.
The reason for all the trouble is that while Android is open source, Google Apps are proprietary code, and devices have to be licensed with Google in order for the Apps to be included on the device.
For more information, see How can I install the Google Apps Package (Play Store, ...) on my Android device?, RootzWiki GApps page and GApps download.

OK! Your explanation is understandable to me. I viewed the GApps website - or 1 of them - and it was a lengthy list. I don't know which to use. Also, how is it the Google Play on my computer sees the phone - sometimes - but the phone doesn't see the application? Do I need to log out of Google before installing? Also, will rooting the phone make it go back to Mandarin? I saw a pay-to-use rooting website. What is trustworthy...? I'm not worried about wiping the phone as long as it will function properly. Many thanks :)

Rooting shouldn't revert the language, but if you have to wipe the device then yes. Unfortunately, Alcatel phones aren't generally well supported when it comes to rooting/flashing/recovery, and I can't find any guides for your model, so I can't be of assistance any further.

@user39921 First, install the drivers for your device. If you don't know how to do that, try using the PDANet installer to get them. Then, install ADB and use the command adb flash PACKAGE_LOCATION to install gapps. After that, you should be fine. Make sure your bootloader is unlocked before you do this. Otherwise you may have issues.

^^ Hello! OK, are you saying that before I root the phone, I need to install drivers, or are you saying to NOT root the phone and install drivers? Also, what is a bootloader? Thanks!

@ONIK - If you are literate in Mandarin, I can scan the manual for you. Thanks for your help. I'll try and post an update later today.


text:
unable to connect laptop to cisco vpn when laptop is using tablet internet connection
I am facing an unusal problem. I tried searching but seems no earlier post is here addressing my problem.
I am using 3G mobile data connection(SIM card) in my samsung galaxy tab 2. As you know android Jelly Bean has the feature of sharing the tablet's data connection via wifi tethering/hotspot. Now: I can connect to the internet easily from my acer laptop(windows 7) via the wifi tethering of my tablet. However, when i try to connect my laptop to my office vpn(cisco) using cisco vpn client, i get the error that the client is not able to connect to the vpn server. But if i connect my laptop to the internet via bluetooth modem of my nokia c7, then vpn connection is easily established.
Is it something with the wifi tethering technology? Please help. The tablet itself can connect to vpn server using vpncilla for android.
Please suggest.

The problem is that whereas the bluetooth connection functions as a bridge network device, Wifi tethering creates a NAT which may prevent some functionality. See if enabling Transparent Tunneling or IPSEC over UDP on the client help. Since tethering doesn't support port forwarding, you can't use PAT on the device.


text:
Nexus 7 Not Booting; Backlight Turns on while Charging
A friend of mine has a Nexus 7 2012. Although it used to work, it now won't turn on. I would mark this off as a broken battery or screen if it were not for this one oddity: the backlight turns on while the device is charging. I am unable to reach the bootloader or recovery mode. He does not know what Android version it runs, so I can be of no help there. He also says that this happened after he let his Nexus turn off due to low battery. Is there any way I would be able to fix this issue (say jumpstart it and use USB debugging to fix it?), or is the device truly broken?

What happens when you plug it via USB into a computer?

Nothing happens.

The problem is that the device was stuck in fastboot. I had to use ADB to get into the bootloader, and change to normal boot from there. Now, everything works. I assume he let the device run out of power while updating, as it completed updating once it was out of fastboot.
Thanks for all the help you gave me. You may not have solved my problem, but I still appreciate it.

My Nexus ran the battery flat and would not restart, although I did not have the backlight issue that you mention.
There are a number of tricks suggested at:
https://support.google.com/googleplay/answer/2668668?hl=en
which involve powering on and pressing volume buttons.  This worked for me and the Nexus now behaves as well as it ever did.

The power and volume button combos will not work, as I have already tried them all (I can't even get to the bootloader), but I will try the other fixes.

Was having this problem and didn't do anything about it until just now.. But I would plug it into a wall outlet and the back-light would be on along with some flickers of white light
I did the factory reset (power and BOTH volume buttons at the same time for 40 seconds) and let it "charge" for about an hour off of the wall outlet (I couldn't tell if it was charging or not obviously, but I just let it sit there for a while).
I came back, did the factory reset a second time, and plugged it into my computer to discover that it booted right up. This literally just happened as I was typing this... But bottom line it got rid of the issue!


text:
Locked out of Playstore
Play Store locked me out saying "Couldn't log in. This account has been disabled."
This because Play Store required that I create a Gmail account, which I did, but then I was unsuccessful in logging in to the Gmail account.
I have a HUAWEI-M931, Android ver 4.0.4.

Why can't you login to the account?

Maybe you have incorrect password?

Can you log in to the account from elsewhere, such as a desktop browser? Is the account on your device? Does it sync?

I think you are not using the correct login information. You should try myusername@gmail.com as well as just myusername when you try to login.

I don't remember what the userid is. And the error message does not display it either. When I set up the phone and tried to use PlayStore, I used an older email account and have forgotten the username. At this point, my question is: can I uninstall PlayStore, and then somehow get it restored, with the hope that a clean install will let me start over with another email address? Or perhaps someone has another solution. Maybe a factory restore?

OK, i found the account I used. When I try to login (using the PC) it says Your account was disabled due to a violation of our Terms of Service and is no longer eligible to be reinstated. Well, I never even got to use the account, so I have no idea where that comes from. Am I banned from PlayStore for all eternity?

OK, is there another way to get apps installed on my Android phone?

I found the solution thanks to 'Related' items which show up in green on the right side of this page, such as "How to change android primary google account", and other related threads. I went to Settings, Accounts and Sync, clicked on the gmail account, Remove Account, then Add Account, at which point I entered my existing gmail account (the one that I know the password for) and when I went to  PlayStore it opened and I am now in.
Thank you.


text:
Is there a way to start a torrent on my Android stick remotely?
I have a Windows home computer with uTorrent installed. With the BitTorrent WebUi addon to Firefox I am able to start downloads from my office computer.
I am planning on buying an Android stick, is there an app combination that can do the same? So I browse from my Android tablet, find a good magnet to download, do something not too complicated, and the Android stick starts to download it?

uTorrent has an Android app - will it not do the job?  The torrents are downloaded in your Android device and not in computer though.

That is exactly the problem. I want to be able to start a download on device A from device B. I know how to do this on Windows, but is it possible on Android?

You might want to take a look at Torrent Manager:

Torrent Manager allows you to take control of your remote uTorrent, Vuze / Azureus, Transmission and Deluge clients. With this app you will be able to list, add, remove, start, stop and manage the queue order all your torrents from your remote desktop.

Other, similar alternatives are e.g. TorrentToise and Remote Transmission (Transmission is a torrent client on Linux, so this is not for you). Find more on AppBrain (or Google "Tiles" Play) by following their related apps ;)

It is not clear from their description, but both Torrent Manager and TorrentToise seem to be able to control windows clients only. I want to control an Android torrent client from another Android device.

@András, please check the related links from the apps' pages. App recommendation requests are off topic at ASE, so we are already in a kind of "gray zone" here ;)

I asked for a solution for my problem. You recommended some apps, I pointed out that they solve a different problem. I belive I remained on-topic.

This is not a valid answer to the question.

There is no native solution that ships with Android. So all that remains is to check torrent apps whether they offer the required feature, sorry. A good chance might be Servers Ultimate Pack B, which offers a Torrent downloader client as well as Torrent tracker server. I didn't try it myself, so no guarantees.

Possibly the solution wasnt possibly in `13. Currently you can install utorrent on your TV box and use Transdrone to control it. It works pretty well.


text:
How can show android tablet as a external storage to PC?
I want to send files to android tablet with a application from PC. - I can send files directly to tablet (2.3 android OS) PC see it as a external usb drive. - But i can't send files to tablet (4.2 android OS), because PC see it as a portable media player.(MTP) - How can i fix this problem ? - How can show my device as a external drive? my application that sent files written via Delphi.

This sounds to me like a rather development-oriented question. If I'm correct with that, you might be better off at Stack Overflow with it, where the programmers are at home. Here at ASE, we are dealing with problems from the user's end.

Is your device in media player mode? Or is it in USB mass storage mode? If you want to move files across the USB, you will need it to be in USB mass storage mode.


text:
Use Google Play without any other Google apps installed
I'm using Cyanogen Mod 10.1 and I wonder if there is any possibility to use Google Play without installing all Google apps. I don't need Gmail, Talk, etc. I don't want to link my device to google. Is there any way to just put in your Google account data for Google Play and not for the whole device?

I don't want to link my device to google means you cannot use Google Play either, sorry. There are alternatives, of course − but not with a repository as big as Google Play.

@Izzy is correct, all of the google apps will automatically pair with your google account if you sync your google account with your device.

I found myself an answer: https://forum.xda-developers.com/showthread.php?t=1918484 Now only Google Play is installed without Gmail, Talk, ... but I had to link my phone anyway to Google.

It is possible to install just the play store without the rest of the Gapps stuff.  See Minimal set of .apk files to enable Google Play.

@Compro01 sure it is. But that doesn't change a thing concerning the device being "linked", which the OP wants to avoid.

@Izzy - To me, the question is unclear about what is actually wanted.  The title and last sentence suggests he simply wants "only play, not gmail, hangouts, and stuff".

https://android.stackexchange.com/a/214984/10015 is relevant.

I would imagine that Google Play is not reliant on the other apps like Maps, Talk or Hangout. Just to be safe though, here is what I would recommend:

Create a full system backup of phone
Delete any apps that you don't want and see if they affect your usage
If any apps affected your usage, restore your device and do not delete those apps.

Remember that it is always better to make a backup and not need it, than to need a backup and not have one =)


text:
Using Popen to invoke adb sendevent
I am running into a strange issue, running adb shell sendevent x x x commands from commandline works fine, but when I use any of the following:
subprocess.Popen(['adb', 'shell', 'sendevent', 'x', 'x','x'])
subprocess.Popen('adb shell sendevent x x x', shell=True)
subprocess.call(['adb', 'shell', 'sendevent', 'x', 'x','x'])
They all fail - the simulated touch even that works in a shell script does not work properly when called through python. Furthermore I tried adb push the shell script to the device, and using adb shell /system/sh /sdcard/script.sh I was able to run it successfully, but when I try to run that commandline through python, the script fails.
What's even stranger, is that he script runs, but for example, it does not seem to execute the command sleep 1 half way through the script, echo commands work, sendevent commands don't seem to work.
Doesn't even seem possible, but there it is. How do I run a set of adb shell sendevent x x x commands through python?

Do any adb commands work from Python? Perhaps it is not in your path.

Don't you have to set the stdout=subprocess.PIPE for this?

yes all other adb commands work. I don't think I need stdout=subprocess.PIPE, all that does is allow me to see the output of that command, and/or use the output in my code, which I don't need because there is no output... right?


text:
Cannot start emulator on Mac OS X
I'm using MAC M.L & Eclipse 4.2.2 ADT
I've installed Eclipse on MAC OS X
I can't create Virtual Device (AVD)

Android SDK Manager error is Failed to run the Android SDK manager.Check the Android console view for details.
Getting error like Description    Resource    Path    Location    Type
Error executing aapt: Cannot run program "/Developer/adt-bundle-mac-x86_64-20130522/sdk/build-tools/android-4.2.2/aapt": error=13, Permission denied: error=13, Permission denied  adsa        line 1  Android ADT Problem

Any help will be appreciated. Thanks
I've reffered Official Links
Android setting up ADT,
[Managing AVD's with AVD Manager][2]
See screenshot of Errors Click here

are you trying to start an emulator or are you trying to download the SDK?

I was trying to start emulator..

Did you find an answer to your question?

Nope not yet..why john?

Ok so it looks like you are not trying to run it properly. First things first you need to create an Android Virtual Device (AVD). This will be the profile of the device you will be emulating. Open up a terminal and follow these steps. Make sure you have the SDK installed and you are in the ./tools directory of your SDK.
For this example I will be creating an AVD named "Nexus_7".
Step 1: determine your target:
/.android list targets

You will get an output of all of your available targets, here is the one I will use:
id: 3 or "android-18"
     Name: Android 4.3
     Type: Platform
     API level: 18
     Revision: 1
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
     ABIs : armeabi-v7a

Step 2: Create the AVD:
./android create avd -n "Nexus_7" -t 3

For simplicity, when it prompts you to create custom hardware specs, just enter (or enter no then press enter).
You should get output like this:
Created AVD 'Nexus_7' based on Android 4.3, ARM (armeabi-v7a) processor,
with the following hardware config:
hw.lcd.density=240
vm.heapSize=48
hw.ramSize=512

Step 3: Launch the Emulator
Here is the moment of truth:
./emulator -avd "Nexus_7"

It will take quite a while for the emulator to start, especially on the newer Android builds. You can screw around with hardware acceleration if you want it to move a bit faster. Also you should use Screenshots to speed up the boot time. I got all of the info from:

Android Docs

john.. could you just tell me that where should i install Android sdk on my Mac?

I m unable to get output as you written in step 1 :(
$ android ls target
-bash: android: command not found


text:
Connection to home server via https – works with WiFi, but not with 3G
I have a very weird issue with my phone (Alcatel 997D running Android 4.0.4). Let me start at the beginning. I provide certain services (mostly syncing stuff, Firefox and Cal/CardDAV) on a server with self signed SSL keys that is in my home network. To provide connectivity, I poked a small hole in my router's firewall and have a domain registered which is set to my WAN IP address regularly.
All worked fine some time ago (6 months, I think). But now my phone can't connect to my server when it uses the 3G connection (with all the sync apps, Firefox, Cal/CardDAV sync apps, Firefox with my WAN IP as address), but all works fine when I connect through the local WLAN.
Basically, the only things I changed are the SSL keys on my server, and maybe I installed some small Android updates on the phone.
To rule out that it is a problem with the 3G network, I poked another hole in my router's firewall and sent the traffic to one of my other computers (displaying a small web page over http). To my astonishment, the phone could connect to the page over 3G.
This is very unsettling. To rule out that the phone is the problem, I still need to check 3G connectivity on another machine, and try to connect to my server over a foreign WLAN. But just in case: How can I get more information on the Android side? All apps provide more or less meaningless output.
While googleing, I found out that there are more options available for debugging, like installing curl. I'll do this, but ask this question anyway in hope that somebody has seen something similar, or can point me to a trivial error on my side.

There are errors in the system log which indicate SSL handshake problems over the 3G connection. Here are some log entries:
[ 08-24 12:30:02.508 19763:0x4d6c E/NativeCrypto ]
Unknown error during handshake
[ 08-24 12:30:08.274 19763:0x4d6c E/NativeCrypto ]
Unknown error during handshake
[ 08-24 12:30:08.275 19763:0x4d6c W/System.err ]
javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x18e8508: Failure in SSL library, usually a protocol error
[ 08-24 12:30:08.275 19763:0x4d6c W/System.err ]
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:683 0x4027f522:0x00000000)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:460)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:257)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:210)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:486)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:450)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:194)
[ 08-24 12:30:08.276 19763:0x4d6c W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:280)

[…]

Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x18e8508: Failure in SSL library, usually a protocol error
[ 08-24 12:30:08.277 19763:0x4d6c W/System.err ]
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:683 0x4027f522:0x00000000)
[ 08-24 12:30:08.278 19763:0x4d6c W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
[ 08-24 12:30:08.278 19763:0x4d6c W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:410)
[ 08-24 12:30:08.278 19763:0x4d6c W/System.err ]

Connection to other SSL pages, e.g. Mozilla Add-Ons, works with 3G. So I guess that there is something about my SSL keys that the telco or Android do not like. I'll run some tests with other devices and keys.

I tested the 3G network of my provider with a mobile USB modem attached to my Mac, and all just worked, calendar, address book etc (I deactivated Ethernet and WLAN on the Mac, and the application provided by the telco showed 1 MB throughput, and all was a bit sluggish). I think that proves that Android has something to do with this mess.

OK, something that just came to me: I had one app used for calendar syncing that couldn't sync over WLAN after the SSL certificate switch anymore. It threw an exception that complained about an unsupported or unknown critical extension. I think that is the key to solve the problem.

I changed my server certificate and let Android trust the CA, now I have no trouble with untusted certificates over WLAN, the 3G issue remains however. I dug up this about
SSL23_GET_SERVER_HELLO:unknown protocol

according to this, the error:140770FC I got would point to a DNS issue, which would explain why it happens over 3G only, but not why it doesn't happen on the Mac.
To gather a bit more information, I tried to open one of my web pages with Chrome. It issued a
Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED)

which was connected to SSL issues here, but I can't acknowledge that the error disappears after a switch to the standard port.
I need better tools for further investigation, maybe I ask another question later.

The last block gives some hints: SSL handshake aborted: ssl=0x18e8508: Failure in SSL library, usually a protocol error and routines:SSL23_GET_SERVER_HELLO:unknown protocol, which confirms your problem lies in the SSL part. Strange thing that this does not happen on WiFi. Do you have the chance to try with a different 3G provider? As it does not happen on WiFi, it must be something on their end. Also: Are you presented with a certificate? If so, I'd take a closer look at it and compare it with what you would expect here.

@Izzy Sadly, I get not even to the certificate stage in Firefox, there is no connection established at all when using 3G. I run some other tests in the next days, and update my question according to my findings.

Just coming to my mind: Could it be some "port mapping" problem in your provider's NAT? Maybe your experiments should include binding services to a different port. Using a different SIM (best from another provider) might also yield some interesting results. As you don't even reach "certificate stage": Have you checked logs on your servers, whether there's any incoming request at all? They also may reveal helpful details.

@Izzy I tested the 3G network of my provider with a mobile USB modem attached to my Mac, and all just worked, calendar, address book etc (I deactivated Ethernet and WLAN on the Mac, and the telco's application showed 1 MB throughput, and all was a bit sluggish). I think that proves that Android has something to do with this mess. I check my server logs tough, maybe there is NAT involved.

As you say that the problem exists only on 3G and not on WiFi, this is probably because of some problem with the Access Point of the your network provider. I faced a similar issue sometime back which was because the default access point had a proxy which didn't allow SSL Tunneling. After removing the Port and Proxy from the access point, this problem got resolved.
Source:
http://lifepluslinux.blogspot.in/2015/07/errtunnelconnectionfailed-on-mobile.html


text:
Why did my Nexus 4 download the Jelly Bean 4.3 update again?
I've got a stock, non-rooted Nexus 4 which I updated to Jelly Bean 4.3 when the OTA update came out a month or more ago. Just today I got another message that there was a system update available. It said it would update to 4.3, and I double-checked (and took a screenshot), and  confirmed I already had it in "About phone."
Nonetheless, I went ahead with the update to get rid of the notification, and it went through the usual process. The before and after screenshots of the about screen confirm that I had the exact same Android, Baseband, and Kernel versions, as well as the same Build Number. I can't find any differences after the update. Does anyone know why this might have happened?
Before screenshot, taken 2013-08-23 16:28:04, before the update was started about a minute later:

After screenshot, taken 2013-08-23 16:36:14 after the update finished and it restarted.

are you sure it is not an update to 4.3? They do release patches to the OS that do not increase the "major/minor" (4.3) version numbers.

@RyanConrad - That's what I thought before I did the update, and in order to figure out the difference, took the before and after screenshots. It seemed pretty weird when they were 100% identical. I'll add them to the question.

The before and after screenshots of the about screen confirm that I had the exact same Android, Baseband, and Kernel versions, as well as the same Build Number

Actually, they do not. The first screenshot shows a build number of JWR66V, and the second is JWR66Y. An official changelog has not been released, but T-Mobile's documentation indicates that the update contains "security" updates. You can also find some (unofficial) discussion of the actual code commits in this article. So although the version number was not incremented, it is a different build than you previously had.

Sharp eye indeed...can't believe I missed that. I was comparing them on my phone by flipping them back and forth in the gallery, but apparently I need to pay more attention. Thanks.

Also: http://www.cultofandroid.com/40006/android-4-3-security-update-rolls-out-to-nexus-4-galaxy-nexus/


text:
Bluetooth keyboard won't re-pair to my Galaxy Note 10.1
I bought a Bluetooth keyboard and it worked beautifully for 2 days. I then unpaired it to use on my friend's tablet and it worked amazingly well on hers as well. When I went to re-pair the keyboard to my Note 10.1 it shows up in the Bluetooth devices list, but the box to type in the code will not come up and there is no settings cog next to the name like there should be. So the keyboard has become useless as I can not for the life of me find a way to re-pair and connect it to my tablet. I am running android 4.1.2. Please help as I need this to work for school. I purchased this to take notes in class.

Have you tried disabling your bluetooth radar and then trying to reconnect? Reboot your device if that doesn't work.

Thank you so much. I feel so so stupid I tried everything from bluetooth apps, turning bluetoooth on and off, holding the name of the keyboard to see if I could get a box to pop up even scanned it for virus. In doing all that I never thought to restart the tablet lol. I can build and program computers, but can't think of restart tablet lol. Anyway thank you again.

@John Well done! Now please add that as an answer, so other users can see the problem is solved.

This behavior is typical of some sort of internal error, you could try restating your bluetooth service. If this doesn't work a quick reboot is likely to solve your problem.

The Samsung Rep at my local Best Buy figured this out.
1- goto Settings/Applications/Applications Manager
2- select BLE Scanner, then click on CLEAR DATA
3- select Bluetooth Pair, then click on CLEAR DATA
4- restart the tablet


text:
How to get my original ROM working again?
I have a Samsung Galaxy Ace GT-S5830L and I a few days ago downloaded and installed a custom ROM 4.2.2 the name of the file is (cm-10.1-20130503-NIGHTLY-cooper), It worked good at first, but then the apps didn't download it used a lot of memory, it crashed/hanged and it became annoying, So I'm trying to return to my previous original version 2.3.4, but It doesn't work... I made a backup with clockworks, but it doesn't work. I tried downloading one from the internet and using thor (i think that was its name) to install it, but it doesn't connect succeed anytime I try... I also tried with kies, but It didn't work, it just staid there for hours without doing anything...
So what are my options to restore the original ROM?, I really need to get back to it, this version is just to buggy and annoying for me to stay with it.

"it doesn't work" doesn't give us enough information to help you. If you say exactly what you did, and what happened, someone might be able to help.

Also, you might like to try the stable Cyanogenmod ROM instead of the nightly build. The nightly build may or may not work on any given day, but the stable build is tested and should be reliable.

I agree with @DanHulme, using nightly builds as your everyday rom is not a good idea. You need to do some searching to find a mod that fits perfectly to your device. Remember that if you try to load a mod on your phone that is the build for a phone on a different carrier, you could soft brick your device. Close only counts in horseshoes and handgrenades =)

Sorry about not providing enough information, at the moment I'm going to try to install the latest stable build, Thanks for the help :)


text:
Is there a way to block USSD balance notifications on Android 4.3?
I'm trying out a H20 Wireless SIM on my Nexus 4 running Android 4.3.  One annoying feature of this service is that they send a USSD balance notification at the end of every phone call, text message, and data usage.  Is there any way I can disable or block these messages?
I found the "Balance Update / USSD blocker" app in the Play store, but it specifically states it does not work on 4.2+ versions of Android.
I also contacted H20 customer service and they will not disable the messages on their end.

You cannot certainly disable that as that is carrier specific regardless of what version of Android is used. But having said that, there was a USSD exploit last year which enabled remote execution of ussd codes to factory reset devices (this was on Samsung) by clicking on a linky, the newer Android versions since JB have sanitized the process in mitigating that exploit and subsequently handled differently. It would have held true in Eclair/Froyo/GB and ICS.

Easy method (requires root)
Yes, there is an app for exactly that and much more called 'GravityBox' (it is an Xposed module).
For information on how to install it, view a similar post here
Alternatively (does not require root)
If you are lucky your Phone app should have a "Blacklist" to which you can add numbers and prevent calls and/or messages (notifications) from them. Normally found in the settings of your default phone app...
If you don't have it, then you could even try a 3rd party phone app that will replace your default phone app that will do the trick (There is a large variety that are more beautiful, simplistic, up-front and have features including black-listing options...).
Using a 3rd party phone app will leave all your contacts intact, but you may loose your speed dial settings.

Using Xposed requires root and the OP did not give any indication of status of rooted device.

Sorry. I have taken it into consideration and have edited my answer to be a little more broad.

Please mention how to use GravityBox to block those USSD notifications/messages. I do not see any relevant option inside it.

Try Out https://play.google.com/store/apps/details?id=sk.paco.ussd&hl=en
It blocks all USSD Notifications

this link may answer the Q but better you write a brief about it and also should disclose your association if any, with the app


text:
Media scanner ignores .nomedia on external sd card
I have my music on the external SD card on my phone, and use FolderSync to automatically sync podcast files to the same SD card from my computer. There are .nomedia files in the podcast folders (they are synced from the computer), but not in the music folders. When I start SongBird, both music and podcast files show up. Why? What can I do to fix it?
If I wipe the media cache, SongBird shows no music and no podcasts. When I run rescan, it only says "Scanning /storage/sdcard0" (internal SD) but afterwards the media files on the external card (/storage/sdcard1) show up in SongBird.
I use DoggCatcher with virtual feeds (watched folders) to listen to podcasts.
Phone: Samsung GT-i9000 running CyanogenMod 10.1.2-galaxysmtd

Just to make sure: Have you placed .nomedia files (file name beginning with a .) in the podcast directories? Maybe also tried placing one in its top-level directory? The title of your question mentions .media files: not that you've made the same typo there.

Oops, sorry. Corrected the title now.
The data structure is (simplified):
/storage/sdcard1/Media/Music
/storage/sdcard1/Media/Podcast
so the .nomedia files are two directories down from the SDcard root. I can try moving the directories one level down and see if that helps.

So you have the .nomedia file in /storage/sdcard1/Media/Podcast? That should work for all files and directories below it. I don't think the "depth" should be an issue here.

Different apps interpret .nomedia as different things. If your default file browser isn't reading a certain folder with actual media in it, then I would avoid using .nomedia altogether. (Although I have had quite excellent results with both SDcard AND root files using FX File Browser via the Google Play Market).

This question is a little old, but I will post my findings on it.
This seemed to be a bug in Android 4.0. There was an issue in Media Scanner that it ignored the .nomedia file in most instances. If you cleared the Media Scanner cache, it would re-index and then honor the .nomedia file.
According to the bug report, it was fixed with this changeset.


text:
Text disappears when attachments are downloaded
Using AG&G Yahoo Mail on HTC EVO. When I open mail there is message text which I can read.
When attachments finish downloading the message text disappears never to be seen again.
I can read attachments OK but message text has disappeared.

What email client are you using?


text:
Can I place calls with my Google Voice credit from Android outside of the US?
If you are outside of the US, Google Voice is merely a service to place calls from inside... apparently just GMail and Hangouts, much like Skype is. Unlike Skype the quality of service seems to be good. Also unlike Skype, though, I can't figure out how to make this happen from my Nexus 7.
When I try to add a phone number to an hangout, the Hangouts app on Android tells me it doesn't know about that number and proposes to send an invitation text message. Of course this happens even when I put in my own mobile number (which afaik is connected with my Google account) and from what I can tell the sending happens from the device itself - and thus obviously fails.
Is this something that can be done?


text:
App not installed orphaned files
When an app attempts an installation, but results in "app not installed", do orphaned files still exist, or does android remove all traces of that App. I am running JB 4.3 stock on the Nexus 4
In other words if it doesnt show up in the "manage apps", it shouldnt exist in /data/apps

You might want to check: App install failed but files are still filling up the phone


text:
**FAILED (remote: 12 signature verify fail)** HTC One M7
C:\xxx>fastboot flash recovery c:\recovery.img
sending 'recovery' (10336 KB)...
OKAY [  1.988s]
writing 'recovery'...
(bootloader) signature checking...
**FAILED (remote: 12 signature verify fail)**
finished. total time: 2.966s

HTC One M7 on the way back to stock
Bootloader is locked 1.54.0000
OS is 2.24.401.1

the message Output above is sample for everything I try to flash. Recovery ist stock. Message appears also when trying to install 2.24.401.1 via RUU.
Anyone have an idea?

Yepp, maybe. What is it you're trying to flash? My guess is, it's nothing provided by HTC, but some 3rd-party images. They are naturally not signed with HTC's signature, so the (locked) loader refuses to accept them as legit sources.

You'll need to flash a custom kernel to be able to do this.


text:
Android runs ON Linux?
I bought an Android PC from Amazon and found it booted Linux then booted Android.  I mean literally booted Linux (penguins splash), then booted Android (Android splash).  I contacted the vendor asking this particular question, and he stated:

The mini PC has the Linux bootup first as Android runs on top of Linux

I have tried googling and searching Super User for an answer, but have so far found nothing.   I know Android uses the Linux kernel to some extent, but is that statement correct?  Is this common for an android device?
If this is a false statement, should I be worried about 3rd party applications running on the Linux OS at boot?
Device Information: Android 4.2 Jelly Bean, RK3188 Quad-core 1.6GHz CPU Cortex-A9 (28nm), 2G DDR3 RAM / 8G Flash
Link to Amazon, and supplier.

What device? Be specific as to the model. Give the URL.

Yes just updated with device information.

I was also trying to ask this question with no device specifically in mind.  It seems to be implied from his statement that all android devices run on top of linux.

What you know of as Android is essentially a graphical user interface and application platform that runs on top of a nearly standard Linux kernel and minimal set of Linux tools.

Android runs the Linux Kernel for the core system and it can be (and is) optimized for various platforms (compiled for ARM, x86, x64, PPC, etc).
Here is a fantastic graphic to demonstrate this for you:

Source: Post on Unix.SE
Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.
Source: http://developer.android.com/guide/basics/what-is-android.html
And my comment on your second sentence is that Linux Kernel is not meant for only desktop operating systems. Its use cases vary from Desktop OS to Servers, mainframes and supercomputers to Embedded Devices.
Linux is a widely ported operating system kernel. Due to its low cost and ease of customization, the Linux kernel is used on a highly diverse range of computer architectures: in the hand-held devices and the mainframe Systems, in devices ranging from mobile phones to supercomputers.
On the other note: Palm (later acquired by HP) use Linux-derived operating system, webOS, which is used into its line of Palm Pre smartphones. Several network firewalls and routers from makers such as Cisco/Linksys use customized linux kernel. There are tons of devices out there which are using embedded linux.

Wow, that is fantastic.  I was mainly concerned about 3rd party programs running in the background, specifically keyloggers.

Is it one and the same to say "Android runs on top of linux" and "Android uses a modified linux kernel"? In my case, it is not a separate installation of linux booting first, correct?

Android may use a modified Linux kernel, but it's standard enough that both the Oracle ARM JVM (the "ejre") and a Debian chroot environment run just fine under it.  Linux boots first (typically hidden on phones), and then starts the Android init process.

Ah, I see.  Thank you that answers my question!

Saying it's a "modified version" of the Linux kernel is not very clear - not sure what you could define as an unmodified version... It is quite accurate to say Android runs on Linux.


text:
Internal storage missing: Nexus 7 16G down to 5.8G TOTAL
My Nexus 7 now believes it has only 5G internal storage. It's shown in storage properties.
I noticed it after factory reset, and then a 4.3 update (I remember getting 4.3 OTA update twice, is it possible?)
I installed ClockworkMod recovery (back when it was on 4.2), but never rooted it.
No storage space analyzers show hidden files or such. Rebooting doesn't change anything.
I found /sdcard/0 directory with a content of my previous sdcard before a factory reset, deleting it freed some space, but total is still at 5.8G.
I found one complaint about a similar situation, but it's drowned in a simpler problems and was never answered.
df output:
Filesystem               Size     Used     Free   Blksize
/dev                   487.4M    32.0K   487.3M   4096
/mnt/secure            487.4M     0.0K   487.4M   4096
/mnt/asec              487.4M     0.0K   487.4M   4096
/mnt/obb               487.4M     0.0K   487.4M   4096
/system                639.8M   515.7M   124.1M   4096
/cache                 436.0M     7.3M   428.7M   4096
/data                    5.9G     2.7G     3.2G   4096
/mnt/shell/emulated      5.9G     2.7G     3.2G   4096
/mnt/asec/com.teslacoilsw.launcher.prime-1     2.0M    84.0K     1.9M   4096
/mnt/asec/com.loudcrow.goodnightmoon-1     5.0M     3.4M     1.6M   4096

cat /proc/partitions output:
major minor  #blocks  name
   7        0       2111 loop0
   7        1       5229 loop1
 179        0    7467008 mmcblk0
 179        1      12288 mmcblk0p1
 179        2       8192 mmcblk0p2
 179        3     665600 mmcblk0p3
 179        4     453632 mmcblk0p4
 179        5        512 mmcblk0p5
 179        6      10240 mmcblk0p6
 179        7       5120 mmcblk0p7
 179        8        512 mmcblk0p8
 179        9    6302720 mmcblk0p9
 179       32       2048 mmcblk0boot1
 179       16       2048 mmcblk0boot0
 254        0       2110 dm-0
 254        1       5229 dm-1

mount output:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/sdhci-tegra.3/by-name/APP /system ext4 ro,seclabel,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.teslacoilsw.launcher.prime-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,acl,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/com.loudcrow.goodnightmoon-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,acl,barrier=1 0 0

Did you ever resolve this? I have the same problem on the same device: 6.02GB total after a reset and upgrade (to 4.4.3)

Nope, I'm stuck with it. I planned to reflash by wire, and maybe take a look at partition table, but never had time for it.

Can't say I figured it out, but I got it working, see my answer.

I had the same issue on my N7.  The answer for me was to lock the boot loader, then unlock it again.
Hope this helps and saves some time instead of flashing the entire OS.

I had the same problem as OP flashing to 4.4.3 on a Nexus 7 16GB (2012).  My total storage as reported by the storage module of the settings app was like 6GB and running df from BusyBox/adb was reporting the same.  This is clearly a partition table problem and not hidden files or anything else.  I think that the problem was caused by several failed/aborted flashes that I did.  I was able to fix it by reflashing from adb.
In other words, I downloaded the latest image, decompressed it, and ran the flash_all.sh script.  (Of course after running adb reboot-bootloader).
For the record, I did NOT have to change the commands to fastboot format X.
It would be nice to understand this problem better but for the time being, going from ~6GB to >13GB of usable space is quite a relief.

If you download an external file viewer, root explorer, oi file manager .ect. Then go to dcim on the phone or external sd card and there most likely is a file that is unknown when you click it and usually has several hundreds of megabytes take up on it, you can just delete it, also, it shoulf say thumb data

No. I said there are no hidden files and storage analyzers don't find such. And this won't decrease TOTAL storage volume. Thanks for your answer though.


text:
How can I flash CyanogenMod, or another mod, on an AT&T locked Note 2?
My Note II has a lot of useless AT&T apps, and I would also like some features that require root and are available on CyanogenMod.
Is there an easy way to flash CyanogenMod on a locked Note 2?
I wouldn't mind things like worse battery life and Bluetooth not working. The pen working would be nice, but it's not essential as well. I couldn't care less about NFC and other shenanigans like the proximity gesture commands.


text:
How does an android factory reset work?
When performing a factory reset, does Android remove all the added applications and user data or does it completely reflash an image of the OS
I am running on jelly bean 4.3 stock

When performing a factory reset:

/system is untouched since it's normally read-only anyway
/data is formatted
/cache is formatted
/sdcard is not touched unless you specify. Note that apps on the sdcard will still be erased.

So, to answer your question, the system is not reflash end, but instead the data and cache partitions are formatted.

If you have an emulated sd card, will it be touched?

Depends on where it stores data. If its on the phone, then yes, it will. Normally I would suggest making Titanium or Nandroid Backups, but it seems like you don't have one :).


text:
How can I block Android apps to send emails on my behalf?
In some Android apps there is a "Login with GMail" option. I often login with that.
Some apps are sending emails on my behalf to my GMail contacts, as I saw them in my "Sent items". I want to know how can I stop those apps spamming my friends? This is very irritating.
To stop the spamming I logged out from my device but still there are sent mails. If I uninstall the app there is no more sent mails, but I don't think this is the best solution available. Are there any better solutions?

You will need to go into your Google Account settings and revoke issued permissions for any app which you no longer wish to have access to your Google account.
You can review connected apps at https://accounts.google.com/b/0/IssuedAuthSubTokens?hl=en


text:
Cannot log in to my android phone anymore
Few days ago I got firmware update in my S3. After update, I realized the default QWERTY keyboard is lost. There was only voice input. Then, I downloaded painfully "Go Keyboard" with voice search in android market then everything was fine.
Today, I had to encrypt my phone because I wanted to use my company's Google app service in my phone as well. I encrypted phone with password given. When phone re-started and asked me password, there is no keyboard to type in. Go Keyboard probably doesn't appear before decrypting phone because it is an installed app.
Now I have many, files, pictures which are not in cloud. What should I do in this case. Can't I enter password from my PC someway.
Please help me if you can.

Can you just plug an external keyboard using USB [tag:otg]?


text:
How do I set a separate launcher as default?
I have a Huawei Y300 with Emotion UI. I want to change from the stock Huawei launcher to Holo Launcher. On launching Holo and pressing home, I do not get any options and am directly taken back to the stock home screen.
How do I set Holo as the default launcher?

I found an option in the Launcher Settings of Holo Launcher which allows choosing the default launcher.
Setting it to the correct one (Holo/Default) takes care of the issue.

You have to clear the defaults in the Settings > Application > Your default Launcher. Then when you tap the home button, you will be asked to choose a launcher. You select the one you want and mark that as the default.
Generally when you install a new application, it clears the defaults for that category. So installing Holo should have done that for you. I wonder why that did not happen.

When you hit the home button, an option should pop up asking for the user to choose a launcher. If this is not happening, you probably have the stock launcher set to default.

Try checking Settings-Applications-(Tap on your stock launcher app)
and then scroll down to find "Clear defaults" button.
Hitting the home button should now bring up that pop up we're looking for.

There is another way to change it. The Emotion UI is set up as default, so first to do is to clear the default option by going to Settings > Manage Apps > ALL and open Huawei Home then choose the option Clear Default. Now just press Home botton and it will ask which launcher you want to use and you can set up the new one by default.

I found the answer on YouTube somewhere.
You should go to Settings » Manage apps, then at the bottom tap Default app settings. In there is an option Launcher.
Done!


text:
Is is possible to install a new CM version and a custom kernel in one go?
Currently my workflow to update to a new CM nightly and reinstall my custom kernel is this:

Install the CM update using the CM updater
Boot into recovery manually and install the zip file containing the kernel.

I wonder if there's a way to do this in one go.

This is indeed possible by downloading the ZIP file for the new version (e.g. using the CM updater without installing it after downloading it).
Afterwards the device needs to be rebooted into Recovery. The CM update zip can be found in the cmupdater folder on the sd card (when downloaded using the updater) and installed using the "install zip" option (in CWM, might be named differently in TWRP).
When the CM zip is installed, the kernel zip can be installed using the same method.
While a data wipe is usually not necessary, it is a good idea to wipe both cache and dalvik cache before rebooting.


text:
galaxy note N7000 wifi disconnect and forgot wifi network
i'm connecting to wifi home spot and after phone screen turn off wifi disconnect and forgot pasword ... in settings about wifi and sleep stays "Never"

So every time your phone goes to sleep, it disconnects from the wifi and forgets the wifi encryption key?

yes, right @John


text:
On Rooting Desire HD
I came across this forum post on rooting and getting S-OFF in HTC Desire HD.
In step 6 it says

You should see the $ turn into a #. If this happens, congrats you have
  root access.

and continues the steps. The question I have is, does the rooting process finish there or do I have to follow the other steps as well to get the phone rooted?

Have you asked your question over at "that forum post"? The one who posted it is obviously the best one to explain what he did.

@Izzy I narrowed down the question. Can you help me out now?

If you see the # in the prompt, that means you've got root access. So I'd assume the process to be finished then.
Browsing the linket XDA thread: After this "step 6" comes a "big free space", indicationg something new is starting. And in fact, step 7+8 describe the unlock process for the bootloader. So yes, if you were just after root, you've got it at that point.

Thanks for your answer. But I thought that unlocking the bootloader was step 1 of the guide. Is S-OFF necessary to flash a custom ROM on Desire HD? At htcdev it says that step 1 should be enough to flash a custom ROM. Maybe that doesn't apply to HTC DHD?

You're correct, I've mis-read that: Steps 7+8 are re-locking and flashing. As for S-Off (which stands for Securebit Off), see Zuul's answer, which already covers this ;)

Full HTC Desire HD (sense 3.0/android 2.3.5) guide to root, S-OFF/Sim Unlock
That guide is a step by step instruction to have your device with root access, S-OFF and Sim Unlock.
To achieve that you need to complete all the steps mentioned.
Answer:
To have root access on your device, you can stop at the step you've mentioned.
If you want to flash your device, you will need to complete all the steps.

Better insights
What is root?

Root, in the simplest terms, is the ability for an application to run with permissions that allow it to access everything.

What is S-OFF?

In simplest terms, S-OFF on HTC devices is the ability to flash unsigned code that modifies the kernel, boot, and radio partitions from recovery. Unsigned code is code that has not come from HTC directly, or has been modified in transit.
Having S-OFF does not mean that you have root. Root is a function of a Superuser application.

Thanks for your answer. But at htc dev it says that unlocking the boot loader (step 1 of the guide) is enough for flashing custom ROMs. So isn't that enough for me to install say trickdorid?

S-OFF will give you full access to all partitions on your device. root will only give you full access and control over the basics... This is well explained both on the link I've provided and the link you've placed on the comment. :) Regarding the installation of trickdorid, I can't tell you for sure if root is enough, mainly because the link you've placed is broken ;)

The link is this, Would be really helpful if you can say if root is adequate.

Found the info here. Thanks for your help.