text:
How to kill processes to get maximum available RAM?
I am trying to kill all unwanted background processes (especially the ones started by zygote) on a rooted android phone (any version and any model), so that I have the maximum possible RAM available with me? Can someone please help me on how to go about it?

That's a really silly thing to do. Android will automatically kill background processes to make more RAM available when necessary. Most of the time it leaves background processes in RAM (but not running) to allow those apps to start up quicker next time, and to use less power (because it doesn't have to keep reloading the app into RAM). See the answers to this question for more info.

Well, I am creating an app for testing DRAM on android phones, so that's the reason why I want as much free space as possible. But the problem is that the background processes keep coming up even if you kill them. So, I am looking for a means to kill these permanently.

That's intended. Take a look at the auto-start tag-wiki for hints on preventing some of them to run.

Thanks a lot @Izzy... I think it will really help my purpose


text:
"Incompatible with other applications(s) using the same shared user ID" when installing Google Play service?
I need to run Google Plus, and Google Plus needs the Google Play service.
Every time I install google play service from the Google Play store it fails to install with this error:

Incompatible with other applications(s) using the same shared user ID

What could be the issue? How can I fix this?
UPDATE: I know almost nothing about android, so I dont know what ROM is, or such thing, I get my phone from local production and I guess, yes, it uses custom system, so I just know that I'm using Android Version 4.0.4. any help would be greatly appreciated.

Mind to add some details on your device? Which is it, what Android version is running, is it a custom ROM (and if so, which)? On a stock ROM, Google Apps should already come pre-installed.

Google Play Service is part of your Android OS. You don't need to install it separately. If you have custom ROM and you have done some modification then mention it so that others can help.

Reads like your "local production" hasn't set-up the custom system correct.

What is get my phone from local production?
Since you mentioned about custom system are you referring to a modded ROM like Cyanogenmod, Paranoid Android etc?
You have custom recovery in place? If so, grab the latest Google Apps from here appropriately for Android 4.0.4 aka ICS, more than likely, this version of gapps.
Reboot into Recovery, select:

Wipe Cache
Install from zip, select the gapps you downloaded
Then when install is done, reboot.

Google Play services is used to update Google apps and apps from Google Play. This component gives you access to Google Settings and helps apps speed up offline searches, provide more immerse maps, and improve performance.
If you think there is an error of your OS, you can always go for a factory reset. You shall backup your data before you proceed. This should re-install the Google Play service. And if you are NOT asked to install Google Play Services, you don't have to. It is bundled with your OS. You must simply be able to download Google+ and use it on your phone.
You can find your device info from Settings => About Phone

What worked for me was the suggestion I found here:

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

In a nutshell:

Figure out the exact formal fully-qualified package name or *.apk name for the app you're trying to install. For Google Play Services, it's com.google.android.gsf or GoogleServicesFramework.apk.
Pull the /data/system/packages.xml file from the phone using adb
Open the xml file in a text editor and look for the <package> xml element that describes your app, using the names from step 1.
Get the value of the sharedUserId attribute for that element.
Remove the entire <shared-user> xml element with the userId attribute that matches the id you found for the package.
Push the modified packages.xml file back to same location on the phone using adb
Wipe the dalvik cache and reboot.

I don't understand how people can trust other solutions like wiping cache/data. Your instruction is clear and understandable! Help me to install MX player on top from modded ROM. Thanks!

I had the same problem. I uninstalled all app updates and this fixed the issue

You should know this first that Google play service is required by some apps which had implemented functionality provided by google play services. Like multi player, real time multi player, leader-boards, achievements in some games ans apps.
If you are having problem in downloading it there are many possible solutions there.
- Go to the application manager, remove all updates from google+ related apps. Then start play service after installing all the apps updates. This might get solved ur problem.

source: Stack Exchange

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

sort: votes


text:
How do I stop a download?
I accidentally clicked on a download link and started a download. Once the download started, I didn't know how to cancel it. Later, it occurred to me that I could have ended the connection.
Either way, how do you stop a download once started?
I have a HTC Wildfire S, a v2.3.5 Android if that matters.

From which app are you downloading?

Click on the Download notification showing the progress and it will take you to Downloads app. There in app you can cancel the download.

Clicking on the download notification showing the progress doesn't do anything. I have a HTC Wildfire S, a v2.3.5 Android if that matters.

I have an Asus Zenfone 2 still running Lollipop, and I've had the same problem for a long time. Force-stopping the Download Manager app and clearing the data usually works, but I recently stumbled upon a new way to cancel the download, making sure that it is permanently cancelled and doesn't pop up again annoyingly.
It merely involves going to the Storage section under Settings, and clicking on the Downloads tab. This brings up a list of previous and ongoing downloads. From here, long-pressing on a download lets you cancel it.
Hope this helps.

If you are using Google Chrome, then the download notification should appear on the screen. In case it doesn't, go to Setting > Apps > Google Chrome and force stop the app.

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:
How to set silent alarm on htc one X
In the alarm settings, there is no "silent" ringtone. I only want the phone to vibrate in the morning.
Any hints?

If you have Clock app available in your Android Jelly Bean, Open it and set alarm with silent ringtone and you chek the box to vibrate.
In Jelly Bean 4.2.1 the silent ringtone is there. If you don't have, install ES file explorer, record some silent ringtone and set it with ES explorer.

I can not find the silent ringtone, modified the question accordingly.

I have edited my answer above.


text:
Dropbox on Samsung Galaxy - where is the Settings button?
On a Sony Xperia, the settings button in Dropbox is top right.
On a Samsung Galaxy, there is no settings button top right and I have been unable to find it anywhere else. Where is it?
・On a HTC device, the settings button is right up there as well.

What is version of your Android OS ?

If your phone has a menu hard key, like most Samsung phones, the three-dots icon for an overflow menu won't appear. Press the menu key instead, and Settings is the bottom item on the menu.

Right. There was a menu key that was invisible until I pushed it. Hmm...


text:
Does Samsung Galaxy Ace store location metadata?
Can the Galaxy Ace (the first model) camera store the location data of where photos are taken? I have been told that it isn't sophisticated enough. Is that true?
Also, does Kik Messenger remove location data on the pics?

One queation at a time please :)

Based on this blog post, the Galaxy Ace has geo-tagging support. So YES, it should be able to store location metadata, if you enable it.
And according to another blog post, Kik Messenger removes metadata.


text:
Can I get my Galaxy 4 to put sent emails on my server?
Just got a Samsung galaxy S4 mini (had an ancient Nokia before).
When I go back to my web email (its Yahoomail), all my emails are marked as read even if I havent looked at them on the galaxy, (I can live with that though its annoying as I'm likely to miss stuff)and emails I've sent are not copied back onto the server so the only place I will ever have them is on my phone. Thats not what I'm used to - the Nokia put them onto the server so I could see them in the web application. Any idea if I can get it to do that too?

Are you using the web mail through a web browser, or using an email app on the phone, and if so which email app?

How have you configured your emails? Is it POP3 or IMAP? Yahoo have a guide to explain the differences. I'd recommend using IMAP as it should sync read status between phone/webmail. You can find the info and steps needed here.
As for sent emails there is probably a setting to sync sent items (or you need to put them into the correct folder). If you provide more details about the app/how you configured it we can help further

Thanks for answering! Yes - I'm using an app on the phone. I just went into email on the phone and put in my email address and password, I dont actually know which app it is - I didnt knowingly download it, think it was supplied on the phone. Frankly was delighted by how easy it was t get it going!   I use webmail on PCs generally, but at home on my main PC i have outlook so when I access emails there they get deleted from the server so my webmail doesnt get clogged up. Outlook doesnt sync my sent mail, so I'm used to having that in two places, but increasing that to 3 is not ideal!


text:
Running MX Player on a Nexus 10 to access an ext4 USB Flash drive
How would I play an MP4 on a USB Flash drive connected to the Nexus 10?  The drive was formatted with Ubuntu with ext4 format.  I have the MX Player but it does not see the USB Flash drive.

First question: Assuming you are using an OTG cable, is your phone able to detect the USB drive using a file manager?

Yes, I have an OTG cable. I haven't seen a file manager on this Nexus 10.

Try installing File Expert or something similar. Let me know if your phone can see it.

I've installed File Expert HD.  I'm not familiar with this application but I don't seem to be able to find the USB Flash device attached via OTG cable.

See my latest answer. Try using a different OTG cable. Or try the app I suggested.

Usually Android can use only FAT32 because of permissions in ext file systems. If you have a terminal emulator installed + root + busybox you can do it like that:

Open terminal;
Type su to get root;
Insert cable and flash drive;
Type dmesg to get device name;
Make a folder using your file manager;
Try to: mount -t ext4 /dev/(device name) (path to folder you make);
Enter the folder: cd (path to folder);
Change the file permissons: chmod 777 (your file);
Go to that folder with file manager and play.

Or you could just use StickMount.


text:
How can I get information what happend with my Galaxy S4
I bought new Galaxy S4 before two months and from the beginning I have started to experience some serious software issues. Every evening before I go to the bed I connect my phone to charge and in the morning it is frozen (dead, no response) with red light indicator and no response of buttons.
To start the device I have to hold for a long time the power button and only then the device boot.
I have sent it to the service and after two weeks they return it with new software and the problem stopped. Yesterday I made a flash with some xda ROM with serious review and this morning the issue has return.
I know that is my fault and changing the ROM will broke the warranty, but after no one else is experiencing that problem with this ROM I have started to search for an explanation.
The question is how can I record the moment when the phone freeze and view the log after that... Is there some kind of a text file where it holds some information about the processes? The tricky is to view that file after the phone is down and I switched it on...
Thank you!
Sorry for my bad English.. :)

You should ask this question in XDA Developer forums, not in SO

Please ask some relevant question, or specify your research on your problem

I don't think you should have rooted and flashed your phone. If I'm not mistaken, there are full unroot methods available, not sure if that will bring your phone back to the best state it had.

One solution, charge your phone starting from morning the whole day and keep a watch on when it freezes, rather than finding some app for it!

To begin with this, I don't think that this question doesn't belong here, because it's related to the Android system logs and that's something we can be helpfull with.
I found a Thread, where the people are discussing various methods to obtain these log information - see here:
There are several directories where logs (including those from crashes) might appear -- not all of them are standardized (i.e. some may be ROM-specific).
/data/anr: Some trace files seem to get here (Dalvik writes stack traces here on ANR, i.e. "Application Not Responding" aka "Force-Close"; see e.g. log excerpts here)
/data/dontpanic seems to be a standard location (AOSP), and contains some crash logs including traces (see e.g. viaForensics and StackOverflow)
/data/kernelpanics is another location -- not having had any "kernel panic" on my Android devices, I saw no content there yet.
the /data/panic/panic_daemon.config may point to other locations configured -- on my Droid 2 it mentions /sdcard/panic_data/
/data/tombstones may hold several tombstone_nn files (with nn being a serial, increased with every new file). As tombstones are placed for the dead, it is done here for "processes died by accident" (i.e. crashed) -- and it is what is referred to as "core dumps" on Linux/Unix systems. However, not all apps create tombstones; this must be explicitly enabled by the developer (see Debugging Android Core Dumps).
Since you already have root access to your phone, you can even examine the LogCat output through the adb.
Here are some other links that might be of use for you:

Link - The "Android System Info" Application's description
Link - The "Crash Log (Logcat)" Application (PlayStore link)
Link - *

In brief: Since it's a long artice, which describes how to debug, this can be found anywhere in Google (see also "debuggerd"). This is of course if those links ever get down.

My personal advice - revert to the original Android ROM, which was installed on the Samsung, then perform a revert to factory defaults, go where you bought the phone and ask them to see it once more if the problem persists.
Cheers

It would be advisable to include a summary of each of the links above, in event of link rot or 404 error...


text:
What time does Google Play update apps when it is set to auto-update?
I'm not getting on what basis Google Play will update apps when auto-update is enabled.
Is it time-specific, or something else?

On StackOverflow, (speculation) 5 or 6 times. http://stackoverflow.com/questions/11950178/auto-updates-google-play

@geff: The question you link to seems different. Here chethan (and me) are interested in what triggers auto-update to start. It can be very annoying that it starts when I start using my tablet and would need the processors for myself.

@domotorp in my experience, it's whenever the phone is charging, but I don't have a source for that.

Adding to @Josh's experience mentioned in the comments above, the auto-update is not time-specific - I too have only seen the auto update proceed when on WiFi (my chosen setting) and plugged in charging. On my Sony Xperia running Android 7.0, it appears to be the default behaviour.
I can't find any more reliable sources for this behaviour, but there is lots of personal experience:
http://forums.androidcentral.com/google-pixel-pixel-xl/747707-auto-update-apps-while-charging.html
Annoyingly, it is not mentioned on Google support, and I can't figure out how to give feedback to them about it:
https://support.google.com/googleplay/answer/113412?hl=en-AU
I can only post 2 links in this answer, but the 'WiFi and charging' requirement has been requested as a configurable feature (google 'how-to-allow-auto-update-of-apps-in-play-store-only-when-plugged-in') and there may be a workaround to achieve similar behaviour using the WiFi on Sleep setting (listed on benjaminoakes dot com).

My phone's Google Play app auto-updates around 1:30 a.m. daily (phone is never plugged in at that time), so there is definitely no connection of update with phone plugged in.
Phone must have WiFi on (selected in Google Play settings) for update.


text:
Navigation app lost after updating phone
I lost the Navagation app that came with my phone after updating the phone's system. None of the free apps on Google Play work well for me. Any clues on how to get it back? It is not on Google Play.

What phone are you using? What did you update your phone to? Is it using stock ROM, or custom ROM? Please edit these details into your question.

If you're talking about Google Navigation (the blue arrow), then it comes with Google Maps.

The latest Google Maps app has the navigation function in-built. The navigation "app" was always integrated into Maps. The blue icon was just a separate entry point into that maps.
If you select a destination, look at the bottom of the screen where it says navigate and you will recognize what comes up next.

What if I do not want to select a destination? What if I just want to see where I am as I drive? Older "Navigation" app simple had "Show map" option that did just that (and it was different from showing static location on the map - it did show dynamic location, similar to navigation, but without destination)

@YuriyGalanter it's there at your bottom right. :) See the target icon? touch it and it'll show your current location.

Update -- This morning I went to look for my familiar blue triangle and it was gone AGAIN!  I found out that you have to go into the Google Play app on your phone.  Tap on the top right icon for options.  Then click settings.  Then click on the Auto-update apps.  Then select Do not auto-update apps. Do this first, then the steps below...
Go to settings, apps, and google maps.
Click the uninstall updates.
It will give you a warning about all updates will be removed.
Click yes.
Open maps like normal.
Close maps and go back to your normal all applications, and navigation is back!

You want to roll back all app updates just because the icon is missing? Navigation is integrated tightly into the Maps app and it's easy to get to.

Stopping auto app updating is only bandaging the problem.


text:
why my htc status goes back to its rom defult settings after restart?
i have HTC status
i had unlock and root my phone
and also i created a 2nd ext3 partition which i linked it with Link2SD in order to improve internal memory.
then i installed a bunch of different apps
but then there sth odd had happened
once it goes off because battery didn't have enough charge , when i re start it again it come up with the basic settings just like it's the first time that the Rom is starts and all the customizations i made were gone
it runs a basic wizard that asks for basic settings and then when i check for those apps i had installed before they weren't there. also i check to see how much of the internal memory is occupied , i found it just 32M (or sth) just like there's no app installed on it
I'm wondering whether i could get back to all the customizations I've done on my phone or get all those apps back to my phone ?
it's very upsetting that every thing goes wrong this way... :-(
and i would be very thankful if you could clarify that what exactly goes on my phone
and how i can prevent this happen again.
the Rom which i had installed is custom build based on OTA update -> 1.57.415.3
Android version 2.3.5 - build (1.57.415.3)
Thanks for your help in advance!


text:
Android and using Mozilla Thunderbird
I would like to sync my THUNDERBIRD program on my PC to my GALAXY NOTE 2, is this possible as the web suggests it is possible

Thunderbird is not an email service, it is an email client. Therefore it accesses an email service from the internet. If you have an email client on your phone, or use an online one, as long as they are both accessing the same email service they will be synchronized. It's probably better to use IMAP as it works better for synchronizing multiple clients.

...assuming IMAP is used as protocol (with POP, when messages are downloaded from the server they are by default deleted on the server, so the second client wouldn't see them. Furthermore, with POP it's hard to sync the read state).

Does that mean if I install outlook with the same settings as my Thunderbird I can sync accounts

@Izzy Good point; I'll add that to my answer. Stebar: The settings may be different for different clients; check with your email provider to see which settings to use for each.

Okay what does someone recommend to run with Thunderbird so I can get my email on the move

This is for a work account and therefore I cannot use Yahoo

@stebar Just google "free email android app" and you'll find several.

Why not add an email forwarding account on your yahoo email setting, to your gmail, and use it in this fashion? And from your Galaxy Note, still use Gmail app.

Or look for k-9 mail in the playstore, and handle different providers from within one app (I wouldn't like to trust one provider with all my data either :)

Are there any people who can get their mails from their PC´s and mobile,K9 looks poor, this can not be a difficult issue, surely


text:
missing default english keyboard ime
My tablet has the English language as an option. but under keyboard and input methods, chinese is the only option.  Is there a way I can install the default android english ime?

How do you know it has English language as an option?

What version of Android are you using? If it's 4.0 and up then you can install the default Keyboard from Google from here: https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin


text:
Booting into recovery from terminal
How can I boot into the recovery from terminal? I'm using LG p970/CM10/cwm5

Do you mean from the terminal on your desktop (using adb) or from a shell on the Android device itself?

Try reboot recovery, though it doesn't work on all devices. You might also need root for this, so first try su.

su root? Simply su should do :)

CM12 and perhaps CM11 too has ADB wireless option under Developer settings, and combined with "adb connect" you can boot into Recovery mode without needing su. But having CM already means you'll be having root access too, so how is this comment useful? -- Well for those running stock CyanogenOS. :) // But that's just command-line way, Developer options also has Advanced boot options, so GUI will provide "reboot to recovery" option as well. -- Warren T. Voider came up with this part.

It may not work if you have not-always-compatibile busybox reboot symlink in a PATH that is more privileged than /system/bin (or /system/bin toolbox symlink has been overwritten), it may lie in /sbin if using custom kernel with bb included for example. If so, try:
"toolbox reboot recovery" (jb)
"/system/bin/reboot recovery" (kk - however which one will work my be also dependent from the manufacturer...)

If you are running CM11 or CM12 you can simply go to Settings> About Phone> and tap Build Number 7-10 times to unlock Dev Options. Once unlocked you can go to Setting > Developer Options and select Advanced Reboot, this will add a "Reboot to Recovery" option to your reboot menu. Easiest method I have found to get unto recovery without installing a 3rd party app or using a terminal command if your phone doesn't want to accept a multi button sequence. Also note that in Cyanogenmod 12 you have to enable the Superuser root access in the Dev options first I believe.

OP plainly wrote: "I'm using LG p970/CM10/cwm5" -- CM10.

I added a comment mentioning you and the gist of your answer on the accepted answer, in case your answer is removed for some reason. :)

I'm afraid this doesn't answer the question for a quite different reason: OP asks how to do that from terminal – which your post does not cover at all.


text:
What is the difference between "Screen On" and "Awake"?
I can possibly understand why the phone can be Awake without having the screen on (background stuff), but how can the screen be on without it being awake?

If relevant my device is the Nexus 4 running Android Jelly Bean 4.3.

This part of your screenshot you can find explained (partly) in my answer to What is Cell standby and how can I keep it from eating my battery?. But more specifically to your question, here's what it is about:

Network signal: Quality of the signal (colors are explained in this answer)
GPS on: Whether GPS was actively used
Awake: some app requested a Wakelock (see: How to deal with (orphaned) WakeLocks?). At least that's the best logical explanation to your question, though I cannot name a reference for that.
Screen on: the screen was turned on (either manually by the user, or automatically by an app). If the user turns the screen on, that doesn't necessarily mean a wake lock being aquired.
Charging: a charger was connected and supplied the device with energy


text:
Why Google Play Music app gets turned off when I'm running?
Whenever I go for a run and I'm using my Google Play Music app, my phone turns off within 5-10 minutes, causing said app to turn off.
Is there a way to stop this from happening?
If relevant I have a Samsung Galaxy S III.

Perhaps screen times out after 5-10 minutes... is there a setting in Google Music app to keep alive after screen goes off?

No settings that I can find either on the app or on the device to control this behavior... For me it keeps on playing the music with locked screen, after screen timeout, using other apps, etc...

Check your settings within Google Play Music for 'Stream via WiFi Only'. If you have this set, and you're out of range, the streaming cannot continue until you return within range. It may just be coincidental to always appear consistently at that time or range.Also remember about caching. Caching may queue a number of songs, making it appear to extend range.

Could be a overheating problem especially if you are using live wallpapers AND leave the radios (WiFi, Bluetooth, GPS and Mobile data) on.  Is your device in some time of case?  That might prevent cooling...I have run into this problem occasionally and have learned to turn off things.


text:
Android on wifi - only local network, no internet
My phone (HTC One X) can't get internet when connected to my office wifi network.
My office's wifi has no problem for me and my workers.
By default, my phone uses DHCP mode when connected to local network. However, it adamantly picks the same IP that conflicts with another server in the network. In DHCP mode, I get no internet.
I switch my phone to static IP (along with the correct gateway and DNS). Even with a good internal IP address (no conflict, I checked in the router), I still get no access to internet. I used Fing on Android to ping machines within the network successfully, but pinging any domain name at all would fail.
I even tried switch DNS on my phone to 8.8.8.8 and it won't work. Pinging any external IP would fail
I have no problem connecting to my home wifi (DHCP mode) that has the same router model.
I'm out of ideas. Anyone?

I run stock ROM. We have no IT department, it's a small office.

if your phone is working on outside wifi connections, and your office computers are working fine then its probably the proxy. Ask your IT department they should give you a manual proxy address and port to get round the proxy and you should be good to go.

I deployed a proxy server myself and it work. But it's only a half measure coz I only get internet for certain app (browser, FB, G+) on my phone but not across the entire OS. Appreciate your suggestion though.


text:
OTA update to Jelly Bean 4.3 fails (Nexus 4)
I just purchased a used Nexus 4 online and it came with Android 4.2.2 (stock, as far as I can tell).  The phone does have an unlocked boot-loader and is was rooted.  I was able to un-root using supersu, but the OTA update to 4.3 still fails.  It starts to install, then it just shows a screen that says "Error" with a dead robot.
Is there anything else I might need to do in order to allow this upgrade to go through?  I don't care about keeping the unlocked bootloader or anything.

You can always try flashing the 4.3 factory image if data preservation is not a problem. Grab the image from Google, then follow these instructions

Thanks for the useful links.  I ended up re-flashing the stock 4.22 image using that procedure.  Then the OTA update to 4.3 worked fine.


text:
What files are needed to gain root access on an Android device?
Are there other files besides su that need to be installed to gain root access on an Android device? I know that installing a "superuser" app isn't strictly necessary but merely important from a security perspective.
What I want to know is whether simply transferring a working su binary to a device is enough to "root" an Android device. By "working" su binary, I mean having su installed at the proper location and blessed with the proper permissions.
Note: I'm not asking about the means (e.g. some esoteric security hole, adb, a bogus *ab backup file, or a recovery zip) but the goal, the absolute minimum number of file(s) that need to be transferred to root an Android device.

good question .. i think so .. but the transferring isnt so easy as non-su =/ i think this is the only problem..

Answered here: How does SuperSu provide root privilege? and here: How Magisk works?

Copying a working su binary does not make the device rooted!
The method of rooting depends on supporting files, for instance:

a shell script
a binary that exploits
possibly, another script to copy over the superuser app...

Also, it is entirely dependent on whether your handset can be rooted or not depending on kernel, android version, manufacture/make of handset.
With Jellybean 4.3, it is now much harder to exploit and security has been clamped down more, this caused headaches for the creator of Chainfire's superuser app in order to work around the extra security put in place by default. It will be a matter of time now, when trying to exploit and gain root will become harder!

The absolute minimum is exactly a su executable. It grants root access to whoever calls it. But this su should not be taken from an existing rooting software. Without its corresponding root manager it won't work alone. Actually you can grab the su source code from a Linux distro and mod it, then compile it by yourself and it'll work.
That's not practical because everyone can gain root access without any restrictions. You don't want a malicious app to do so. So a practical minimum is 2 files: su and Superuser.apk. The latter manages permission grants and rejections. I've tested this with SuperSU. Just copying the APK and one binary made it work.

su source code from a Linux distro won't work on Android JB+, a privileged daemon (daemonsu or magiskd) is required to be running in background which proxies (over UNIX socket) requests from apps when they execute dummy su.


text:
Upgrade form froyo to jellybean
I recently upgraded by Samsung galaxy exhibit 2 to jelly bean 4.2.2 from gingerbread. I was wondering if it was also possible for my Samsung dart, running on Froyo. Can i flash the same ROM? Is it the same process?
Thanks

ROMs are device specific. So: No, you cannot flash the ROM from your Exhibit on your Dart without most likely breaking the latter.


text:
In a bluetooth connection between Android phone and health device which one is the master device?
The health device is Omron Bluetooth Blood Pressure Monitor. The bluetooth profile can be either Serial Port Profile (SPP) or Health Device Profile (HDP).
I'm writing an Android app to read information from the health information from the health device.

Android's documentations only mention client and server relationship so it's more important to determine which device is the client and which is the server. The device that initiates the connection is the client while the other is server.
Someone says that the master is usually the client while the slave is the server but I'm not sure if that applies for all cases.


text:
How to switch my SGS3 to a 'google play' edition phone?
My Samsung Galaxy S3 contract ends in few months. I'd like to get rid of unwanted stuffs like touchwiz,  flipboard, allsharecast, etc. and pull latest updates directly from 'google play', just like the rest of nexus phones.
Is rooting the only option available for me? Shouldn't Samsung allow me just point my phone update link (?) to whatever I want, as my contract expires?

searching here->http://android.stackexchange.com/q/17152/38783 will show some very handy resources all things android.  Using that info could take you to here->http://forum.xda-developers.com/wiki/Samsung_Galaxy_S_III/GT-I9300

Is rooting the only option available for me?

Yes.

Shouldn't Samsung allow me just point my phone update link (?) to
  whatever I want, as my contract expires?

No.
The manufacturers do not have a legal or moral obligation to do so. They can provide the sources to the kernel on their site, that is about how far they can go.
This is where the community comes in, have a look at this titled "Where can I find stock or custom ROMs for my Android device?"
Google Nexus line of devices are free from carrier related slow-downs in rolling out updates and fixes to Android, which is why you pay the odds over for a Google Nexus device.
Not all devices are deprived of the pure Google experience, i.e. no carrier bloatware, touchwiz, etc. It can be done by selected few talented developers, depending on the community and popularity of device in question.
You are free once the contract expires and do whatever you want without violating terms and conditions.
You can:

SIM unlock/Network Unlock
root the device
modify it
flash a custom ROM on it (refer to the linky above)

A contract is tied to a service provider / network. If the phone was packaged together with their plan / contract, chances are the phone contains a ROM that is bundled with network-specifc apps. Also, it's possible that the phone is locked to that network only.
For you to get around this, you need to unlock the phone so it can be used woth other networks. Plus, you will also be able to flash network-neutral ROMs or custom ROMs.

The question of "should they" is more a moral than a legal or technical one. They won't do this because there's no logical business related reason to do so.  They'd be confronted with a support burden when people want their problems sorted so now they'd have in effect two phones worth of problems instead of just one.  There won't be a stock version anyway; they'd take the Android source and customise it onto their hardware/firmware etc, plus all the extra stuff they put on.  They'd need to do this twice, too.
This is the reason Nexus and pure Google versions of phones such as the S4 exist. I'm afraid you've no choice but to buy one of those up front and find your own network.
Rooting your phone isn't so hard; I've done this to an S3, only to revert to stock because of all the problems I had (cyanogenmod isn't very well supported on the version of the S3 available in my area).  Samsung is still supporting the S3 with updates, albeit very slowly (they've not yet released the 4.2 update for the S3 - the source of which was released almost a year ago - which was promised for various months this year and there are rumours they'll now skip this and go straight onto 4.3).

Flashing modded roms can give huge performance improvements as well as making full use of available hardware overclocking etc  but the going even just a little to far can cause a very unresponsive and if not unusable device. Does bring benefits but there are risks of bricking your phone.  But then you've probably built up the working knowledge to have the ability to unbrick it!

FYI, regarding the S4 Google Play Edition's software: "Technically, the 'stock' Android on this phone doesn’t come directly from Google (as with the Nexus line), but instead is built and maintained by Samsung." Samsung has in fact customized Android twice for the S4, once with all their stuff and then again for Google Play.


text:
I accidentally deleted my android phones system app
Anyone can help me on how to restore system apps like HOME.apk, i accidentally deleted it so the phone is stuck on boot, cant go to its home, my phone is a goophone4s thanks ...

Don't use all bold text. Emphasizes should be used to highlight words, not entire posts. 2. restore your backup which you did before starting modifications.

You can also try to push any launcher from the playstore's web frontend, in the hope your device picks it up. If you only deleted your home.apk, that should help it starting up completely. In case you deleted more stuff, see my answer below and my comment above.

If you didn't take a backup before fiddling around with your system (which I assume is the case), you will have to get yourself the ROM (see: Where can I find stock or custom ROMs for my Android device?) and flash it to your device.
Advice for the next time you start playing with system stuff: Backup your current ROM (which can be done via Custom Recovery as nandroid backup). So in case anything goes wrong, you simply need to boot into recovery and restore that backup, which includes the entire system and your user stuff as well.

You have to install new ROM, but you lose your warranty permanently. Because the ROM is locked first time, when you re-install you unlock it. After re-locking it'll show your status as  re-locked instead of locked and it means you have no warranty any more. You must backup your phone before any system modification.

While the first 6 words are correct (without a backup), the remaining stuff is not: flashing a stock ROM provided by the manufacturer/vendor is perfectly fine and will not void warranty. OTOH, OP already voided warranty by rooting the device.

@Izzy: Yes and no. On some newer Samsung devices for example, Samsung have introduced the KNOX setting which allow them to tell if a particular Samsung device has a "Custom" ROM. Well, custom here means modified/rooted. So, even if you reinstall a stock ROM back onto a device, this KNOX counter will not automatically reset itself. You need a third-party app like TrianglAway to reset this setting so Samsung can't tell if the device has been previously modified/rooted. Judging by the OP's post, I would assume the OP has rooted his/her device previously in order to delete system applications.

Also, in some countries, it is perfectly legal now to root, modify, or jailbreak your device as long as it's for legal purposes, meaning - if you rooted your device in order to install pirated applications, then it is illegal, else legal. Manufacturers, like Samsung, etc, have been made by the courts to honour this as part of their device's warranty in countries where this law has been passed.

@ChuongPham OP didn't say he ever flashed a custom ROM (so that Knox-counter should not have been triggered, and re-installing an official stock ROM shouldn't trigger it). The other part (rooting) is already an established fact (regardless jusristical implications and whatever rules apply in his country, the device already is rooted). So please understand my comment as "if that voids your warranty, it's already done" :)

@Izzy: If you read my comment again, "Custom" means "customised" stock ROM, not custom ROM like Cynagenmod, etc. "Custom" is the label Samsung device displayed when it is rooted because the kernel checksum is not the same as the one shipped with the ROM. Since the OP has rooted his device, the KNOX counter would have already tripped. So "re-installing an official stock ROM" is not going to magically reset this KNOX counter - even third-party app like TriangleAway cannot reset this KNOX on some Samsung rooted devices.

OK, again in short words: "If the Knox-counter has not yet been tripped, installing a stock ROM won't trigger it either".

If your phone starts up normally and does not have home screen alone
If you had enabled adb debug,

You can copy the APK for home (you should know the name as you deleted it ) from some one's phone of same model having same version of ROM as yours.  Then you can connect your phone to your PC and use adb install commands to install the home launcher.

Backup the phone and try to reset the phone. So that you`ll get all the apps which are coming with your phone.

Wrong. The /system partition is not touched on a factory reset, and that's where the pre-installed apps reside. As the app was deleted from there, a reset won't help.


text:
change download folder to external sdcard in ttpod
I am new user of Sony C6603, with Android 4.2.2. For free music download, I use TTPod. I find the music can be downloaded for free in this App, but I wonder if I can change the default download folder (/storage/emulated/0/ttpod) to somewhere external sdcard (/stroage/sdcard1)? Or maybe such a change prevent some functions of this app?

Press 3 line button beside TTPod to open the menu
Press "Settings"
Press "Downloads"
Press "Audio auto download directory" and select where you want to save your files


text:
Can ADB Handle Multiple Connections?
I am trying to script ADB and I was wandering if it can handle multiple installs at the same time in different threads. Does anyone know if this is possible?

Yes, it is. You can specify the device ID at the command prompt. Just invoke adb without any parameters to see its full syntax.

Even on the same device?

Nope, not that I know of. You should update your question to make clear what you target at. To me it looked like you meant "different/multiple devices", sorry.


text:
Permanently deleting Email from Default Email app
I have a Nexus 4 running Android 4.3 [OTA came on July 29 \m/] and I use the stock e-mail app called "EMail" (I don't like Gmail app). Whenever I delete an app, a folder called Imap/Trash gets created and the mails I delete goes inside this folder. I can see this in the browser. Since I have OCD, I open the browser, delete the mails and remove the label. This is a bit irritating as I have to do this every day. Is there a setting or a tweak or something which lets me delete the mails from my Nexus and move the deleted directly inside Trash (like how it happens in the browser)?
Any help or advise would be greatly appreciated!
Cheers :-)

Thandasoru, (feels difficult to type this if you know what it means ;-)) I am not clear whether you succeeded in removing the email account under scrutiny?

I am able to delete the email from my phone, but it does not go inside the Trash. It goes inside a folder called Imap/Trash, which is not the expected behavior. In iOS, the default Mail client deletes the mail and sends it to Trash. (Reg. Username: Created it just for fun :-D )

From the Android stock email app, you can permanently delete emails if you access the trash folder and delete them from there:

Select and email to delete and touch the delete icon;
Access the Trash folder;
Repeat step 1 inside the trash folder for the same email.

With this steps, the email gets permanently deleted from your account.
I've tested this steps just now to be sure. Anyways, I did not find any setting within the APP or account preferences, in order to do this more seamless!

Thank you, but I hope they update the Mail client in such a way that we can delete it directly. I'm sure there will be people like me who don't like the Gmail app.

As far as I've seen this always happens when you use IMAP to access a GMail account, it used to happen to me years ago when I used Thunderbird mail to connect to GMail over IMAP.
The easiest thing to do is just to hide the folder in the web view of Gmail, just hover your mouse over the "Imap/Trash" Label and you should see a small downward pointing arrow one the label, click this and you should see the option to hide the problem label from both the "message list" and the "label list".


text:
Find matching keyword within Android using search
iPhone has a finder option that enables the user to search the whole phone for the matching keyword that we enter. Is there something similar for Android?

Android has Google Search. In the homescreen, long-press the left soft key of your phone to trigger the search.
Also, if your phone has a Google app, launch it. Then click the left soft key to open a menu. Click Settings, and you will find Phone Search. You can select which items to search.

As @geffchang points out, you can use the Google search facility. It doesn't just search the web, but items on your phone too. Usually it searches your phone as you type, and provides a button to go to a web search, but that's different in different versions. The way you get to it depends on what device you have.
If you have a big box labelled "Google" on your home screen, tap that and enter text. (Nexus devices tend to have this.) You might instead have a button with that label on your home screen: tap it.
If your device runs Jelly Bean (i.e. it comes with Google Now) and has on-screen soft keys for back, home, and recent apps, hold your finger on home. A ring will appear (like the one you get on the lock screen). Drag over to the "Google" button and release.
If your device has a hardware search key, whether it's a physical key or a capacitive one, go to the home screen and press the search key (which looks like a magnifying glass). These days I think only HTC phones and some unbranded ones have them. If there isn't a search key but there is a menu key (most Samsung phones), long-press that instead.
If none of the above methods work for you, go to the app drawer (the list of all apps) and look for one called just Google. Start that app. If you often want to search, and that's too long a process, there's a home screen widget (called Google Search) that adds the same search bar you find on Nexus devices.


text:
Wrong playlist order in Google Play Music app
I use the Google Play Music app to play locally stored music on my Galaxy Nexus running Android 4.3. I have created some playlists in standard extended m3u format on my computer and transferred them to my phone.
The problem is that the app plays some of the songs in the wrong order.  Most songs are shown and played in the right order, but about ten percent are in no particular order.
Shuffle is off (the symbol is black rather than orange).
The playlist is constructed properly and works without issue on winamp on my phone and numerous apps on my computer. The music files are all properly tagged and stored in /sdcard/Music/artist/album/song.  Playlists are stored in /sdcard/Music.
I don't use any of the cloud features of the player.
I've tried deleting all music and rescanning, as well as clearing the media storage data, but that does not help.
BTW, according to Is Google Play Music the same as the stock Android Music App?, the Google Play Music app is not the same as the stock Android music app, but I can't find the 4.3 stock Android music app. Is that post still true?
Any ideas for getting the app to play playlists in the correct order?
EDIT: I used a Playlist backup app to export the Google Play Music version of a playlist and compared it to the text of the m3u file present on the phone that GPM purported to read. This confirmed that GPM messed up the order of the tracks on the playlist.

That linked question is out of date now. Back then it was true, but Google Play Music is now the only music player included in stock Android, the standalone player isn't included any more.

I believe this happens on very large playlists (>100 files). I use doubleTwist to sync and my large playlist is always out of order in GPM no matter what I try. Fortunately the dT music player doesn't appear to use the playlist after creating it; but instead uses its own database for the order.

Had the same issue for say 50-75 files and when i reported to the Developer at the bottom they asked me to simply update the app.Later in the next release this bug appeared again so i simply disabled the app and went for another player or another player.

I spent some time downloading different "recommended" players and eventually found GoneMad which has a 14 day trial and it ordered my tracks correctly.
OK there is a price to pay after the trial but it's worth £3.12 to get the play order correct.

I fixed this on an album by deleting it from my Pixel 2. Then on my PC, I opened the album's folder in Foobar 2000, selected all tracks, right click --> tagging --> get tags from freedb.
Then I re-copied it to my Pixel 2 and the order was fixed.

I found this;
Google Play Music displaying songs out of order? Here's how to fix it.
All the tracks needed a disc number. It seems to work on my Samsung Galaxy at the moment.

Sorry don't bother, it didn't work. It moved some but not all.

If you find your answer does not work, you can delete it.


text:
"Play Music" app keeps changing the volume of the sound by itself
I bought a new Galaxy S4 a few days ago and since then I have been facing problems with the "Play Music" app. It keeps changing the sound volume while a song is playing. I tried applying different settings in the player but the problem still persists. Any Suggestions?

Do you mean the "Google Play Music" app?

Possible duplicate of Android automatically corrects my volume

Try to use the original earphone. The original earphone has volume control on it, if you use different earphone you can get this problem.

The OP doesn't mention this only happens when they're using headphones, or even that they are even using headphones at all. Also phones (should) work with any brand of headphone, not just manufacturer provided ones.


text:
Nexus 4: Can't get phone into vibrate only mode
After a recent Android update, my toggle keys for the Nexus 4 will not let me put the phone into vibrate only mode. I can adjust the volume down to it's lowest setting, but it still makes noise for notifications.  The phone will vibrate for incoming calls, but the vibrate icon will not appear.  I need to see that icon so I don't have to worry that I might have left my volume setting on when my phone is in the office.  Any suggestions?

Try holding the volume-down button as you do now, and then after the volume slider reaches the bottom, tap the volume-down button once more. This goes into silent (not vibrate) mode on my Nexus 7 running 4.3, but I think that's because it can't vibrate.
Alternatively, hold down the power button as if you're going to turn the device off. The power-off menu has on-screen buttons for noisy, vibrate, and silent modes.

Try factory resetting your phone! Might work!
Also update to KitKat 4.4.2 latest build!
You can sideload the update or update is via software update option in settings app.
 Might solve many of your problems!
BTW KitKat is way cool!!


text:
Any chance to save merging data Google and Facebook contacts?
after factory reset of my Motorola Atrix (2.3.7 Android) I can easily restore SMS messages, E-mail, call-history and etc. My problem is that after the reste I have to merge manually contacts imported from Google accounts and the Facebook.
How can I save the mentioned information?

If you have a HTC phone, with Facebook for HTC Sense, there is an option to backup your merged contacts. It actually use the comment field to put a <HTCData> tag.
(I don't remember exactly the option, so feel free to edit)
Some facebook sync applications such as HaxSync (paid) provide an option to backup contacts links informations. (In the case of HaxSync, it uses HTC tags, so it is compatible with Facebook for HTC Sense and others applications that may also use HTC tags).

You might want to try one of the many apps written to do just this like Merge+.
If that's not what you're looking for, there's also the possibility of exporting all your contacts to Google and merging them by doing this:

Open Google Mail
Click Gmail under the Google logo and select Contacts
Click on the More button above the contact list and select Find & merge duplicates...

"Find & merge duplicates" in Google Mail, won't have any effect on non-GMail contacts, like Facebook ones.


text:
Applications are greyed out
I have a samsung galaxy Y with android 2.3.6(Ginger bread) installed.
I connected my mobile to a computer infected with virus and my sd card contents were moved into another folder.
I restored the contents to the previous location but I do not see any applications installed in the sd card in my mobile now.

You most likely forgot to restore the "hidden folders". Apps moved to SDCard are placed into a hidden folder called .android_secure. Check whether you can find that anywhere, and then restore it as well to its original location. After that (and another reboot), your apps should be back.

Unfortunately I uninstalled the apllications as they were not working.Is there any way to reinstall them without downloading them again?

Only if you've kept their .apk files, sorry.


text:
Automating "Stay Awake"
I use my personal Android smartphone for development. Every morning, I go to Settings \ Developer Options \ Stay Awake and check the box.
At the end of the day, I uncheck the box — since otherwise any notification (including the "fully charged" one) will trigger the screen on, and it will stay on from that point on.
How can these two operations be automated?


text:
Can tablets differentiate between regular wi-fi and mobile hot spot?
There are a lot of apps in Android which act differently depending on the internet connection.  Such as apps which auto-upload photos to the could only when connected to Wi-Fi, and not when connected to broadband on a smart-phone.
Unfortunately, when such apps connect to a mobile hot-spot (limited data; tethering), they think it is regular (unlimited data) Wi-Fi, and work accordingly.
Is there any way for a tablet to notice when a Wi-Fi connection is from a mobile hot spot, and act as if it was connected to broadband?

If your tablet (or phone) devices are Android version 4.1 (or newer) then you can tell them that a particular wifi connection is a hotspot rather than broadband, which will let apps know that they should limit the traffic they use.
On the Android 4.1+ devices, if you go into Settings -> Data Usage and then press Menu (or press the "..." overflow button) you should see an option called "Mobile Hotspots".

In here should be a list of all the wifi networks that the device has connected to recently, with a tickbox alongside that you can select to say that the network is actually a mobile hotspot. This tells your phone to treat that wifi network as if it is a mobile data (eg 3G) network instead of a broadband connection.

Sorry for O.T... but ooooh... American Airlines do Wifi on board? :o Since when? :D

Just to "unconfirm": I checked with 4.0.3, the option described is not there. So it really seems to have been introduced with 4.1. @t0mm13b that could also be the boarding area on some airport. Or the network for pilots who are tired sitting in the cockpit, wanting some comfortable first-class seat, and decided to remote-control the plane #D

@Izzy LOL! "oops I banked too hard, pressed to hard on remote control - whoops, sorry, at least sick bags are present!!!!" :D

@t0mm13b that'll be from an airport lounge (probably the Admiral's Club lounge at Heathrow as it looks like it was supplied by BT), I've got a lot of those sort of saved connections on my phone, done a lot of business travel in the last year... but I haven't been on a plane with wifi yet, unfortunately, so no liveblogging of pilot's mistakes from 40,000ft!

In addition to the explicit option GAThrawn points out, Android 4.3 devices can automatically tell that a hotspot generated by another Android 4.3 device is a mobile hotspot, with the same effect as ticking that box yourself. Note that both the hotspot device and the receiving device must be running 4.3 (or later).

I connected my Nexus 7 tablet [Android 4.3] to my Galaxy S3 [i747; Cyanogen 10.1.2; Android 4.2.2] and the mobile hotspot was already selected.


text:
How to make ringtones louder so that I can hear it in a loud environment?
It seems that the only ringtone I was able to hear was the one in my old Nokia phone, 10 years ago. Nowadays, in the era of smartphones, no matter which ringtone I chose, I have problems hearing it when I am out in a loud environment. And yes, regardless of the fact that the audio level is set to max.
How can I make my ringtones louder on my phone so that I can hear them easily on a noisy environment? Maybe there is a setting to make ringtones high-pitched?

Have you considered vibrate mode ?

What phone are you using?

Galaxy s Ii is the phone. Of course I tried vibration but it's the same.

What about letting the screen flash(or camera light flash)?

Though the is a little bit vague in nature, seems a very useful question for a larger community. You can use high pitched ringtones which are very common around the internet.
Also I came across this post at XDA which seems quite useful for you. (did not test them myself  though. even if me or anybody did, the level you require might be different.)
In the Google Play Market, there are apps like Super Loud Ringtones, Loud Ringtones, LOUD Ringtones
You must consider the suggestion made by Shywim as well.


text:
What is the difference between a Restricted Profile and a User in Android 4.3?
Android 4.3 introduced a new feature called Restricted Profiles. What is a restricted profile, and how is it different from a User?

With 4.3, Android apparently has three types of user:

primary user (admin, owner)
secondary users
restricted profiles

Primary user is the first user created for the device, when setting it up.
All users (the primary user and secondary users) have pretty much equal control of the system - they can alter all the system settings, create more users, etc. but they cannot access the data or the apps* of the other users.
Since all users can only access their own data, they can also be linked to different accounts. Likewise, they could also use a same account if you set it up for each user individually. However, this doesn't make the device aware of the different users using the same account - each user has their own "link" to the account, unaware of the others.
A restricted profile is different. Like users, it has its own settings, and own data. However uses the primary user's accounts and installed apps. The primary user controls which of these are enabled for the profile.
Further, these profiles can be given parental-type restrictions to content - such as blocking all content defined as "mature". (Note: This requires support from the apps providing the content in order to work.)
* - Google Play app-store does sort-of support some inter-user data - when you install an app that another user already has, the same app code is used by both users. This means it doesn't need to be downloaded a second time, and doesn't take up extra space. It also means that when one of the users updates the app, it is updated for everyone. However, only thing shared between the users is the app code, the users cannot access each other's data.
More information on developer.android.com, see specifically: Support for Restricted Profiles.

Disclosure: This answer compiled based on information provided in an answer to my question by the OP.

The main difference is that with a restricted profile the 'main' user can prevent the restricted profile from running certain apps, installing certain apps, changing system settings etc. whereas a 'User' can do almost anything that the main user can. Android Police has a post looking at restricted profiles, and you can find information from Google here.


text:
New emails not showing up in Gmail app
I have 2 different Android devices: a Samsung Galaxy Reverb phone and a Samsung Galaxy Tab 2 tablet.
On both devices, I have just recently noticed that the official Gmail app is no longer showing new email messages in the list.  When new emails come in, I get Android notifications. If I select the email in the notification bar, then it brings up the new email.
But if I just go to the Gmail app, then I don't see new emails in the list. I have to manually change from Priority Inbox to Normal Inbox (or vice versa) in order for the new emails to show up in my list.
Is this happening for anyone else? Is there a fix for it?

I'm having this issue as well. I have all my inboxes set to Default but I can't seem to get my new messages to show consistently. I end up having to go in and tell it to show Priority box and then they'll show up. So annoying.

Have you tried the steps listed in App X isn't working correctly. How can I fix it?

Try opening the Gmail app, go to settings (click the three vertical dots in the top right), click on your email account and select "Default Inbox" as your Inbox type.
I expect this is happening because you've got "Priority Inbox" set as your default and this doesn't show all your messages.

I have tried both Inbox types and the problem exists on both.

I had the same problem.
I needed to clear all the data from the app so it would need to re-sync everything again.
Seemed to fix the problem for me after that.


text:
adb.exe android gives me error with su
I rooted my device (lenovo 2107a) and then updated new custom firmware with below instructions:

Downloaded new firmware into sdcard/clockworkmod
booted to CWM
selected "backup and restore" -> "advanced restore from internal
sdcard"
and chose my custom ROM
Then i selected "system restore"

So i saw an error that said cannot restore and restore goes to break. now when boot my device i see a screen that wants to select country code and after select device will reboot again and i see same screen.
so i decided to restore my old backup, but even old backup restoring gives me the error that cannot restore.
i find the problem, when i open shell with this command:
adb.exe shell
$su
su
segmentation fault

the problem is that all of data in /system is read-only and i cannot even root with su. i tried everything like re-rooting device, but still i cannot shell as root.
mount cannot be run (operation not permitted)
adb.exe remount (cannot be execute)
fixsu.sh cannot be executed because has not access to /system (everything is read-only)
psneuter gives (failed to set prot mask (inappropriate ioctl for device))
is there any way to delete /system and re-upload that or something that can solve my problem?

If I understand correctly... You tried to install a custom ROM, but instead of choosing "Install from zip...", you choose "Advanced restore..."...?

yes i did, your right

did you tried adb root then adb shell?

I got a tip from XDA dev's under Android-General Developing: give the custom ROM a new name by renaming "update.zip" on the SD Card. Under CWM, pick this "update.zip" under Update setting.
This was tested with Moto Defy+ 2.3.6 stock ROM and HTC One V GSM with a Sense 5.0 custom ROM when I tried to install MIUI 5.

Perhaps a link to that particular thread would be nice


text:
Is there any way to block websites without Root access
I am searching for a way to block websites without having root access.
Is there any way to do it?
Any help will be appreciated.

Summed-up solution from above comments:
You can use a filtering proxy like e.g. FilterProxy, which lets you define what URLs should be blocked. To prevent other users from simply disabling the proxy then, you could protect it using an app locker like e.g. App Lock.

I wanted to point out another possible solution, since I had some inconveniences with FilterProxy. I now use DNS 66, which, conveniently, can also block ads, etc.
I just had to create my own hosts file myhosts.txt somewhere on my phone with the following entries:
127.0.0.1 localhost
::1 localhost

0.0.0.0 www.badwebsite1.com
0.0.0.0 www.badwebsite2.com

You can install DNS 66 via F-Droid. And of course you can use an app locker to protect it, as described in the post by Izzy.


text:
Huawei u8800 restarts
I am having troubles for weeks and still can't do anything
I can only go into Android recovery, and can wipe data. Then after 2-3 restarts, Huawei X5 boots. If I restart phone, a lot of windows showing stop activities shows. I can't even click restart button.
So, I put 2.3.5 first, then Gingerbread "custom app" to download in external and internal SD. After wiping in Android recovery, I power off. With + - and power, I made it update. This time, updates were successful. Before, it was always failing.
It could make updates. But after updates, it could not start again. After loading Huawei logo, it restarts and can't go to homescreen. So, I had to go to Adnroid recovery again and wipe data.
I can't change recovery because I can't install superuser. Superuser should be restarted, but if it is restarted, phone can't start.
I can only use SD card, after wiping data, until one restart. How can I change without rooting recovery? And I change recovery, does this help? I don't know what the problem is.
In my sd card, there are dload s, aurora 4.0 s, cyangane , partition zip and like that a lot of zips but in android recovery , when i try to install, it fails. Only i can install in update mode (Volume up volume down and power), the one in dload file.After updating that (to 2.3.5.), it restarts 1-2 times maybe, then i can go into desktop and settings. But if i restart again, it breaks. I am bored of this. What is wrong with phone? I downloaded a lot of dload files, maybe i am not using the proper one.

Why did you start wiping data? What happened before?

Last year i cracked the screen. So, 2 weeks ago, the screen was changed. THen i installed aurora v20. It was good but discharhing fast and my flash were not working. And i could not see my internal sd. It was not mounted. So, i wanted to go back to stock rom to see what will happen. I wiped in cwm . After a few trying, it went this loop. NOw my phone is open, 2.3.5. But if i restarts, it will again not open, maybe open but a lot of popups that show stop activity. If i dont wipe datya in android recovery, i cant open the phone.

I am waiting helps..

Sorry, I can't help you. I'm not familiar with Huawei and what tools to use. Hopefully somebody else can help you.

I think it is not about Huawei. I hope someone helps. I am trying for 2 weeks :(


text:
What is google play music and why does it constantly load?
Why does google play music start up,  and what does it do?
I have some music on my phone but am happy with the basic music player and have no need for or want to access music online.

The issue you are referring too is well reported on Google Support Forums, as it seems to be affecting many users and/or devices.
All points to an update(s) that raised the issue with certain devices.
You can go around this problem until it gets resolved:
Step by step:

Access your device settings;
Touch on "Applications";
Scroll down until you find the "Google Play Music" app;
Touch to open it;
Touch "Clear Data";
If any updates have been installed, on the upper right corner of your screen you should have a "Uninstall Updates" button, touch it to revert to the previous version;
It may ask your confirmation about going back to the previous/factory version, in that case, confirm the action.

Prevent recurrence:
To prevent this issue from raising anytime soon, you should also disable "Auto Updates" at least until a new update is launch and the reviews are positive:

Open the "Play Store" app;
Touch your device "menu" button;
Select "Settings";
Locate and touch "Auto-update apps";
Touch "Do not auto-update apps".

Quoted answer from Google Support Forum:

GO INTO PHONE SETTINGS AND SELECT < APPLICATIONS>  SCROLL DOWN AND SELECT .. HIT   AND THEN UPPER RIGHT CORNER SELECT  IT WILL ASK IF YOU WISH TO GO BACK TO OLD FACTORY VERSION... SELECT OK. SHOULD FIX PROBLEM.  ANY APP YOU WISH TO UPDATE MANUALLY UNCHECK ALLOW AUTOMATIC UPDATING. READ THE REVIEWS FIRST TO SEE IF UPDATES AND NEW VERSIONS DON'T HAVE BUGS. GOOD LUCK


text:
Looking for a consistent answer about battery calibration
This forum is full of questions about battery calibration. The thing is, that either I'm blind or one answers contradicts others.
In particular:

For example forums says, that battery should be discharged to an absolute minimum. If you can power-on your phone, you should keep turning it on until battery is discharged so badly, that you can't turn it on. Sounds creepy and is in complete opposition to Lie Ryan, who says, that "a full discharge is never beneficial to LiON battery capacity".
Again, forums says, that after full discharge and full charge, calibration process is completed, while Logas claims, that it needs a nearly-full discharge, full charge and again running battery fully flat.
Citing forums third time, he says, that battery formatting process should be undertaken only in rare, quite critical situations, when battery behavior became some sort of strange, while Logas says, that this should be done every 30-90 days.
All of them says about battery calibration at all, while Matthew Read says, that Android handles battery calibration and therfore (I assume) user should not do nothing about this.
Found some answers and comments saying, that both battery calibration and regular charging process should be done on turned-off phone, while others says that it is unusual with modern mobile systems to turn off phone completely very often.

So, can someone provide a consistent answer on these matters? Does the battery used in Android device require calibration at all? If yes, then how often, and what steps should be done to achieve this? Do I really have to run phone until it is really, really flat and do I have to charge it, while it is off?

One question at a time, and is bordering on too broad! BTW, This sums it up and debunked by the Google engineer mentioned in linky! Android-related cargo cults FTW!

possible duplicate of Is recalibrating the battery after flashing a new ROM really neccessary, and if yes, why?

possible duplicate of Is battery calibration important for Android phones?

@Dan: You're marking my question as a possible duplicate, giving as an example a link to a question, which I already linked in my question and marked it as not enough answer / answer that contradicts others. Isn't that a little bit funny? I say: "I read it and I found it not enough", and you reply: "Duplicate! Already answered there"...

@t0mm13b I think this is actually one, not too board question: "Does the battery used in Android device require calibration". Possible answers: not at all / in certain situations / periodically. First answer ends discussion. Two others requires adding only few steps on how to do this. Steps, that will not contradict answers linked by me.

@t0mm13b However, upon further investigation on some other sources I'm beginning to think, that answer is: "No" (correct me, if I'm wrong). 2013 devices with Android handles battery calibration internally and answers about phones shutting down when battery was at yellow level seems to be coming from 2011, which makes them out-dated as for nowadays.

@trejder It doesn't stop being a duplicate just because you don't like the existing answers to the other question. Now, if your question is answered, there'll just be one more contradictory answer. You should bounty the original question to ask for answers "drawing from credible sources", or draw people's attention to it in other ways. If you wish to discuss what it means to be a duplicate question, or how to get new answers on old questions, you should ask on [meta].

http://batteryuniversity.com/learn/article/how_to_charge_when_to_charge_table

There are slightly different opinions around on this topic. To fully understand the issue, one needs to first understand how LiIo batteries work (which goes a little too far for our site, so please read details on Wikipedia).

Lie Ryan is absolutely right: LiIo batteries don't take it well to be fully discharged.
It shouldn't be done too often. I'm not sure what a double-take should improve here.
Usually there's no need to do that "explicitly". If you think of how often you end up with an empty batterie (as it doesn't last long enough), calibration is already done as a side-effect (if you then fully charge). It's widely agreed that it should not be done more often than once in 60..90 days, so Logas might have mistaken the term.
See previous point :) I never saw reason to calibrate any of my devices' battery, though.
It certainly cannot hurt to do it with the device turned off, as then it's not being charged and discharged at the same time. I doubt it's really necessary, but it does no harm :)


text:
Connecting Samsung Galaxy Note 8 to a hardwired Ethernet
Has anyone been able to connect the Galaxy Note 8 to a hardwired Ethernet network?  If so, what adapter was used?
There are times that I cannot use the Wi-Fi and need to connect using a wired network.

Welcome to Android Enthusiasts StackExchange, what are you asking for exactly? A recommendation on the type of adapter or similar? Please read the [FAQ], recommendations are off-topic. :)

@t0mm13b Let's forget that this is a recommendation question. It looks like a valid question. I'm also interested to know if we can used wired connection with the tablet, and if there are devices / adapters that make it possible.

How to make Ethernet work on Android over OTG?

The short answer is no, there are no USB-to-ethernet dongles that the Galaxy Note 8 recognizes. The long answer is Galaxy Note 8 only supports wireless network connections unfortunately; however that could change if Samsung decides to include support for wired ethernet dongles in updates to the Note 8.

This is what you are looking for...

But does the Galaxy Note 8 include drivers to support its use?


text:
Trying to go into Download mode, but goes to Recovery mode instead
Device: Samsung Galaxy S4
Android: 4.2.2
I can't get into Download mode. I have tried many options like removing battery solution, pressing Vol Down+Home+Power. I always get into Recovery mode.

Power off the phone completely by removing its battery for at least a minute.
Re-insert the battery back into its place.
Press and hold Volume Down, Home and Power buttons, all at the same time.
Release the buttons only when the ‘Warning!!’ message appears.
Next, press Volume Up button to confirm that you wish to enter Download Mode.
Your device will now show a green Android with the ‘Downloading… Do not turn off target’ text listed under it.

That's it, now you can connect your device with your PC after you launch ODIN.
You can try adb reboot bootloader from PC if the above doesn't work.

You can do it the easy way: Download ROM Toolbox. Then choose reboot to download mode.. :) good luck

please note that, not all are familiar with the tools you are mentioning in your answer. you may want to edit your answer and provide ref./link to download rom tool box and brief about how to use it


text:
How to force TRIM on Android device?
With 4.3 enabling the support for TRIM (though I read that it was present since the first JB). I was wondering if there is a way for me to force TRIM on my device? Is there an app that I can sideload and have it issue it? I have a rooted chinese Tablet running on 4.2.2 JellyBean release.
Just to add, it's a PiPo M1 Max tablet.

There is an app called LagFix, which can let you trim your device literally.
It can only run if the device is rooted, and since your device is already rooted then it is perfect for you.
And here is the thread on Xda developers about LagFix.
I hope it helps.

Thanks for the recommendation. I used the app, but it is giving me a FS:TRIM Operation not supported on transport endpoint. Does it mean it doesn't work on my device?

On newer versions, Android runs fstrim with a daily schedule, provided that the conditions meet. Or it should run on a reboot if not run for 3+ days. See this answer for details.
However if you want to do TRIM manually, use Android's commandline tool sm fstrim. Previously this was vdc fstrim dotrim but added to Storage Manager in Oreo (1) and removed from vold in Pie (2).
In order to send FITRIM ioctl to selected filesystem(s) only, use fstrim tool; a busybox applet.
Both commands require root, or sm fstrim can be executed from adb shell.

I was having lag issues on my N7 2012. After doing some research I was lead to Forever Gone.
This app has been used to overwrite the free space on the device so that it can be more efficiently used. Until 4.3 is released for you device I would give this a try to see if it helps with performance. It sure helped my N7.

Funny that when I can't install it on my device since it is registered as a Samsung gt9xxx, but it was ok for my original firmware. Anyway, could you kindly recommend a similar App?

I am not aware of any other app that does this. If you are on a custom firmware (rooted & rom'd) you can edit a file with the device information to mimic a supported device in order to convince the Play store to let you install it.

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


text:
How do I add other apps to Samsung's multi-window/sliding app in Android 4.1.2?
I just got the Android 4.1.2 update.
I know how to disable the multi-window/sliding app section. I know how to add and remove the preassigned apps there, but how can I add other apps (e.g. camera, calculator, standard music player and other apps I have downloaded and installed)?

You can't add just any app to the multi-window list (the one you get by clicking Edit). That list only contains apps that have been written using Samsung's vendor-specific library to support the multi-window feature. (I suspect that the feature also has special-case code to enable the Google apps in the list such as Hangouts, but that's just speculation on my part.)
You can only make an app appear in that list by contacting the developer of the app and asking them to support it. It may be an up-hill struggle to convince them to invest time and make their app larger to support a feature used by a minority of users on one manufacturer's devices.

yes, I found where to disable it...under settings....display....multi window. but at that location you can only enable and disable, you have to edit the window onthe main page :)
I can understand for sure how the diff vendors may not want to convince them to support it!  thanks for the reply!

By default, you can't add other apps to Samsung's multi-window feature.
However, you can use apps like Samsung Multi Window Manager to work around this limitation. It also has a Pro version that has additional features.

Using this Multi Window Manager, you can enable ANY app to take
  advantage of this awesome new feature.

I like the multi window feature, too bad they don't allow the addition of other apps.
will try the Samsung Multi Window Manager, thanks for the inftormation

@Donald You're welcome. Please don't forget to upvote and accept if you're good any of the answers here. :)

Your phone needs to be rooted to use that app BTW.

Wanam Xposed Method
On a stock Samsung ROM, there is no option to edit the Multi-Window apps, and you can only select from a few apps.
However, you can work around this with an Xposed module called Wanam Xposed which lets you customize which apps are shown in that viewz as well as many other aspects of a stock Samsung ROM. To use this, you will first need root. There are many tutorials about how to root various devices on the XDA Forums. You will then to install the Xposed Installer and then activate the xposed framework and the module. You should then be able to customize many things on a stock Samsung ROM, including the Multi-Window apps.
Note: Please read all warnings pertaining to root, and research about root access before you try modifying your device, as it can lead to unwanted changes in your system. Always use caution when dealing with root or any modification of your device.


text:
How to root this device? RK3188
I am attempting to root at RK3188 Mini PC I bought from amazon.
I believe I have found the drivers, but cannot figure out how to connect a USB cable to the device to connect to my PC to root.
Please see pictures below:
https://i.stack.imgur.com/SgauW.jpg
https://i.stack.imgur.com/gLxA9.jpg
As you can see the device has a:
HDMI port,
Charging port,
USB port,
Audio port,
The device takes 2 Amps to power, through the charging port.  I could try connecting a microUSB (?) to usb cable to the PC, but I believe it will not be enough to power the device as USB ports only supply up to 500mA.  I could also try a USB A to A cable, but I also fear damaging both devices.
Any suggests appreciated!
Thank you!

Update
Used the micro USB to USB adapter and found the device powered on from a computer USB port.  Still confused as the device needs 2A to operate.

@Sid we allow one "How to root" question per device. So this is not a duplicate.

@DanHulme sowie. my bad.

any body? should I try and word this question differently?

Use a self powered usb hub that's capable of delivering 2 amps. Else, you may solder your own USB Y-Cable (or use one of those HDD-Y cables with a micro-USB converter) and provide the power by an external 2A capable wall charger.


text:
How to update Samsung Galaxy SII SHW-250K from ICS to jelly bean?
How can I update Samsung Galaxy SII SHW-250K from ICS (4.0.4) to jelly bean?
I tried using samsung kies but it shows that
"SHW-250K does not support initialising".

You can simply flash win Odin GT-I9100 firmware.
Firmwares you can get from sammobile
Odin you can get from http://web.djodjo.org/?a=download:android:tools:win:bootloadertools
get Odin307
You can also check this tutorial for flashing with Odin.


text:
How do I delete a desktop home screen on Nexus 7 2013?
Device: Nexus 7 2013
Android: 4.3
How do I delete a desktop home screen on Nexus 7 2013? I tried everything: pinch zooming, double tap, etc. Nothing seems to work.

What page are you talking about? Browser page?

Sorry, I meant just an empty home screen' with no icons

Try a different launcher?

Rephrased the question. This can be reopened now.

When I had the original Nexus 7 (now dead), there was no way to delete a page from the homescreen. So, I'm not surprised the Nexus 7 v2 still doesn't have this feature.
On the original Nexus 7, I flashed the CyanogenMod ROM, which uses the Trebuchet launcher. This launcher had the feature to delete a page from the homescreen.
If flashing a new ROM is overkill, you can install a new launcher, as t0mm13b suggested. I personally use Nova Launcher on my Samsung Galaxy S4, which lets me delete a home screen by launching Nova Settings from the home screen (via left soft key), and going to Desktop > Home Screens.

I've switched to Nova Launcher on my devices so that I can have more control over the layout and number of screens.
ADW, Apex and Nova (and others) have free versions you can try. Nova will even import your current layout so you don't have to reconfigure. I think Apex may offer that option as well.


text:
How to add camera brand or model in exif meta?
In my android mobile there is no  camera brand or model in exif meta  but rest of the exif tags are ok. how can i fix this?
Model :Xstreamer Aiki 5

You can use apps like EXIF Tag Editor (Photo) and Pixelgarde to view/edit EXIF data of your images. Both apps has the ability to batch-process the images.
If you are looking for a way to automatically add information (particularly the camera model as in your question), you cannot do anything rather than waiting for an update from your device manufacturer. This is because embedding that information is configured the the ROM itself.

I am looking for option in ROM like build.prop changing config files etc. (My Mobile rooted)

@Sridher, If you are looking for a development option, you might get better answers in [so].


text:
Mute button doesn't work on a rooted Samsung Galaxy S4
Device: GT-I9500
Android: 4.2.2, rooted
Whether I press and hold the power button and select mute from the menu or double-press the sound icon in the pull down notification menu, the phone still rings when I receive a call or a notification.
I using the volume button to turn the sound off, but now it's on vibration.

When you've tried to put it in mute mode, does the icon (a speaker with a line through it) show in the top-right of the notification bar?

Yes the icon shows up fine

Assuming your phone is in mute mode, go to Settings > Sound > Volume, what is the setting for Ringtone and Notification? Are they 0 (left-most)?

No, the values are the same as when they are on the Normal mode

I have managed to solve my problem taking the following steps:

Install the Clean Master (Cleaner) app:

Clean Master is a Free, top-rated all-in-one cleaner app for Android™ devices.
  Clean - Cache files and residual files
  Clear - Search/call/text/etc history
  App Management - Move app data to the SD card and uninstall/backup apps
  Kills tasks - Smart memory booster

Clear the system cache;
Restart the phone.


text:
Android won't boot after unsuccesful wipe operation
I rooted my Asus Transformer Prime and tried to install a custom ROM but I managed to fail. I selected the option to wipe data from the table in the bootloader menu (accessed it via holding power button and volume down) and then I cancelled it by turning the device off because I wasn't supposed to select that. It seems this wasn't wise...
I tried to boot the device but now it's stuck saying "Asus" in the middle of the screen. If I try to power it off, it turns off but immediately it turns back on.
I can't access the bootloader menu. Fastboot nor ADB sees the device via USB.
How can I restore it?

Have you researched into this post on XDA?

Thanks for linking that. I would need a device specific blob.bin file to restore my tablet using that guide. I don't have it because I didn't have intentions to brick it. Well, actually I didn't know that. Another problem is that it doesn't work with Jelly Bean.

This is not abrick, a brik would not display the samsung logo or respond to commands. What do you mean byt bootloader menu? you mean entering in download mode or recovery mode?

Then what is it? I can't access the bootloader menu to enter fastboot. Android won't boot. What's wrong? (PS. It's Asus!)

@Rat2000 Yes, recovery, fastboot etc... Power + volume down

I have deleted my post since it is irelevant for your problem. I will try and find another way and see if i get back to you.

I tried to find some answers, but I can't. I am sorry. Perhaps others will be able to help you more

There's also this thread on XDA - which sounds very similar to your situation. Do you see any other message on the screen besides the bootloop?

Try to enter to the bootloader again, there is no reason not to succeed, the wipe should not affect that.
In addition, which recovery do you have? (if it's CWM or TWRP, there is an option to load a rom from your computer).

I was having the same issue as this. I was in a "recovery boot loop" and could not get to the recovery options.  I did have ADB access to the device after I installed the "Naked Drivers". Once I did this I was able to see the device using the command "adb devices". The MAGIC command once I had adb access was "adb reboot bootloader" BAM! It rebooted mid bootloop and I was able to select the fastboot option. I followed all of matt95's instructions above including following the link he provided to XDA. The link at XDA explained how to get the "blob" file. It's easy, you download the current rom from ASUS and extract the blob file from it. I literally copied and pasted each command with the exception of the path to my blob file and my TF201 has been resurrected!
Good Luck!

It seems that you have installed the wrong recovery and your devices is semi-bricked (it's not over for him yet).
You should:
1-Download the correct firmware blob from the official ASUS site
2-Boot your tablet into recovery and then type on a computer with the device connected
adb reboot bootloader

3-Your tablet should now receive fastboot commands even if it seems not on the tablet screen (on the tablet the screen seems stuck)
4-Type all these commands one by one:
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash system path/to/firmware.blob
fastboot -i 0x0B05 reboot

If these commands do fail try this 4th step again
Also, refer to this great thread on XDA

I can't boot my device into recovery. I can get into APX, but I don't have the blob file from nvflash for my system.

Try these instructions:

Copy a recovery which supports the Android version of the ROM and put it into SD card .
Boot into recovery .
Install the recovery.zip
Reboot recovery ( If CWM , this option is present under "Advanced") .
Wipe data/factory reset
Wipe cache.
Install ROM zip file
Reboot system.

I can't boot into recovery.

You will need to download a proper firmware(ROM) for your device, possibly an identical one as of your current damaged one, then wipe data/system/cache (BUT NOT THE SD!) install the rom from recovery and done.
For details contact me directly, I can help you with advices.

Yet another answer that suggests going into recovery mode. As said, I can't access the recovery menu.


text:
What is the difference between AOSP and AOKP?
What is the difference between AOSP and AOKP? Are they related to Stock ROM?

AOSP (Android Open-Source Project) is the project with the open-source parts of Android. It's used as a base by anyone who wants to build or customize an Android ROM. Although new Android features are developed in secret inside Google, when a new Android version is released, all the code changes to the open-source parts get merged into AOSP soon afterwards. ("Soon" is a relative term: sometimes it's not very soon at all.) Conversely, Google receives and incorporates changes submitted to AOSP (such as to fix bugs) from outside, but sometimes with a delay (because they have to create a release branch of the source long before the next release).
AOSP doesn't include the closed-source components: mainly, that's hardware drivers, and Google's special apps that only ship with certified devices (Google Play, Google Now, etc).
AOKP is one particular custom-rom project. Like other custom ROMs, it's based on AOSP, but adds extra features. The maintainers also need to find (possibly closed-source) drivers for all the hardware on a device in order to support that device.
Generally, most people use the term stock ROM to mean the manufacturer's ROM that came with their device (possibly including any OTA updates). As t0mm13b points out, this ROM almost certainly wasn't built from AOSP: the source will be based on AOSP (or Google's internal sources, if the manufacturer is big enough to have access to them), but it will include any drivers for that device, as well as the manufacturer's customizations such as Samsung's TouchWiz or HTC's Sense.
If you're interested in the discussion of what exactly constitutes a "stock ROM", you might like to read the comments on this answer from last year. TL;DR: authors of custom ROMs don't all use the term to mean the same thing.

When referring to AOSP - you are referring to the original source - Android Open Source Project direct from Google, that is the base stock ROM that manufacturers and ROM modders use as a base. Many ROM makers fork the AOSP source for their version, to name but a few:

Lineageos
Cyanogenmod
Cafogen
Replicant
Codeaurora
AOKP
Touchwiz

Having an AOSP stock ROM is not an easy feat to achieve for devices outside of Google's supporting devices such as Nexus, Motorola. It is a simple and clean ROM with no extras in it such as power-widgets in the notification bar. Thing is, a lot of people seem to imply that any version of a ROM is based on stock ROM, truth be told, it is not, it has enhancements and extras that Stock ROM does not have! :)
The term stock ROM is bandied about a lot to an extent it can be misleading, stock ROM is AOSP full-stop! Manufacturers love to imply that their ROM is stock when it clearly is not, Touchwiz from Samsung is one culprit - and people who use Samsung devices, refer to that as stock!
AOKP, as per the OP's question, is similar to CyanogenMod - with extras that may not be found in Cyanogenmod! Android Open Kang Project, Kang being the keyword, meaning a copy-of, or unofficial, when a ROM modder says, "this project is kanged from CM", meaning, its built unofficially for the device in question, even if the device is supported!
For the case of CyanogenMod, some modders replicate the source to their machine, build it, and distribute it for the supporting device, out of perhaps due to impatience, that distribution is called a "Kang", in the view point of CyanogenMod. If it was built officially by the build-bots employed by CM, it's labelled "official".

For "stock rom", I have always seen this term used for ROMs that come shipped with the phone (Or any further updates from the manufacturer). Not only for Samsung, for all constructors.

@Shywim you are correct. I think it is impossible to have a device running pure AOSP as it does not contain drivers--those are non-free.


text:
Gyroscope not working for some games on Samsung Galaxy SII ICS and JB
The gyroscope works fine for most apps, and for all uses within the OS. But for some game apps, both temple runs and 100 Doors for example, it will not work at all. It's remained a problem after I've upgraded from Ice Cream Sandwich to Jelly Bean. Seems really strange, but perhaps someone knows what's going on and better yet how to fix it? Thanks.


text:
How to repair HTC Sensation XE with Beats Audio touch screen?
I have bought a HTC Sensation XE with Beats Audio and I am told apparently water got inside and cant be turn on. However when i disassemble it, saw nothing, any oxidation residue.
After some normal cleaning, I assembled the phone and tried to test it, it turns ON but unfortunately the screen does not work. Now I don't know what to do and changing the screen is expensive.
Is there any way to make this sort of problem out?

This is a rather complicated issue to deal with, while far from the device... Have you reopened the device and checked for any connection that didn't got well attached the first time around? (first thing is always rechecking first steps taken) :)


text:
Disable WhatsApp notifications in status bar and notification menu
I have a Samsung Galaxy Ace Duos. I want to stop displaying my WhatsApp message notifications in the status bar and the notification menu.
I found the answer for Galaxy S4 that suggests:

Go to Settings
Choose the More tab
Choose Application Manager
Choose WhatsApp
Turn off Show notifications

But in my device I am not able to find a More tab in the settings menu. Is there any other solution for this?

You can disable WhatsApp notifications in status bar and notification menu by doing the followings.

Open Whatsapp.
Goto Settings => Notifications
Under Notifications, choose

Notification Tone: Silent
Vibrate: Off
Popup Notification: No Popup
Light: None

Tried with this too.with all 4 options but not working. Even i didn't find any other option. Is it not possible to disable the notifications in status bar and also in the list of notification?

Same problem here, I keep getting notifications in the status bar!

pretty sure this doesn't work anymore... Probably needs updating.

You need to go into the actual Android settings, and then Application Manager:
Android Settings > Application Manager > WhatsApp
Then untick "Show Notifications".
You can then choose to enable pop-up alerts for messages or groups. (In my case I only wanted an alert if a single person sent something to me - not inane group chatter!)

I disabled the notifications for whatsapp by going to the application manager for the phone.

Welcome to the Android Enthusiasts! This is a question-and-answer site, not a forum. Please use the Post answer button only if you have a solution to the problem. If you have another question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context.


text:
How to show a message on the lock screen in case I lose the phone?
I want to show a message on the lock screen in case I lose the handset.
How do I do this?
If relevant, my device is a Samsung Galaxy S II.

What Android version?

For ICS and later:

Settings
Lock screen
Screen security
Owner info, here is where a note is entered

This part is a bit confusing as there's no save etc, so just enter something, and back out, you will not lose what you typed, keep backing out until back on home screen. Next time screen lock kicks in or press power button to lock it, a note will appear.
But having said that, if the phone is lost, whoever will pick it up will more than likely ignore it!


text:
Change video quality of embedded YouTube video in Chrome for Android
Is there a way to change the video quality when playing embedded YouTube videos in Chrome for Android? I can only change the video quality in the YouTube application.

Are you talking about changing the video quality on the fly during playback of a video?

I interpret this to mean the video quality of the youtube viewer in a browser.

A workaround would be to trigger the desktop version of the site you're looking at. After the page refreshes, you should see more options for the YouTube video.


text:
how is using busybox possible without mounting /system first?
run_program("/sbin/busybox", "mount", "/system");
looking at updater-scripts (this was from a gapps zip) i noticed a mount command such as above. how can the script use busybox to mount before the system is mounted?
what if the persons phone never installed busybox in the first place?
also i looked in my /sbin folder and dont see a busybox binary. its in my /xbin directory.
obviously im missing something here. please help.