text:
Rooted S7 but cannot get pass FRP
I managed to root my Verizon s7 sm-g930v but am unable to disable the frp lock. I was locked out of the phone because of the Google verification. It still starts up in the wizard but I installed a side bar app that pops up giving me access to everything on the phone. But I cannot go pass the Google verification in the set up wizard. I tried adding a new user, goes straight to the Google verification page. I tried adding new users then factory resetting...doesn't work. I tried using rootjunkys quick shortcut maker, won't give me the option to change the user login information. Frp is locking this option. I thought maybe there would be some sort of option through adb commands but I'm a newbie at this and not sure how to solve this problem.  So, to clarify...I Rooted my S7 but cannot get passed the FRP/Google verification Lock. Any guidance would help a lot. Thanks.

How did you root your phone without disabling FRP? Do you have USB debugging enabled?

Yes, ther÷ is a button combination to bring you to a screen where you can put it into debugging mode. I discovered it by accident and frustration. Turn off the phone, turn it back on, about 5 seconds after seeing the first start up screen hold power button and volume down. Hold during black screen and the maintenance boot mode options come up. Volume down to number 5:turn on usb debugging option under developer options. Pretty cool find huh

It was a long process. I enabled the usb debugging in the maintenance mode and right when I selected usb debugging with the home button I pressed the power button, home button, and volume down to enter me into the blue screen/downloading. I flashed with Odin file I got from an xda developer thread. However the file did not completely match up with my type of phone...the sm-g930v but close and it worked. I thought I got nothing to lose lol. The thread instructed after flashing starting another program file supplied in the thread to activate adb command. It roots the phone with this process.

To access the settings I couldn't get passed the setup wizard until I connected to a computer after usb debugging with restart. I used the computer program iroot. It says it's rooting but it actually doesn't do it. After it "roots" in the program u can download programs like settings, access file/storage, facebook, etc.

The downside everything is in Chinese. You can tell by the pics what most of the buttons mean...lol while downloading the programs from the program pop ups will appear if you want to download from untrusted sources...select yes. Getting into settings is possible now and your phone luckily is still in English. Lol in settings, activate bluetooth, connect to another device and share apk files and install. :-) I installed root checker and sure enough my phone was rooted. I also installed the superuser apk. But every time the phone starts it's in the setup wizard asking for the Google verification

SoI installed an apk file for a side bar that starts with power on, etc and add applications. I added settings, file explorer, and even a go to home button/apk that allows you to go to the home screen of phone and make phone calls lol good luck! But still the ftp lock is on and I'm stumped!!! Pls help

Wow, I didn't understand anything. But I got your phone is rooted, so I can help you bypass the FRP. But first, do you have ADB installed on your computer? You can download and install Minimal ADB and Fastboot (google it,)

Yes, I have that installed.

Use ADB to bypass the FRP.

check my answer

Here is a list of steps I wrote for the same device, just the Edge so SM-G935V instead of the SM-G930V, although the process will work exactly the same. If you'd prefer to see an example then here's a link to my video that follows the steps https://youtu.be/UU-nEuCbyfk.

With the phone powered on, hold both volume keys, the home button and then the power button all at the same time until the device shuts off. The very moment it turns off let go of all the buttons and you will boot into maintenance boot mode.
Use the volume buttons to scroll down to enable usb debugging.
Download and extract the files from the following link https://drive.google.com/file/d/0B3i3FRXRZ9VtbEJlSThqS3A4cFk/view and put them somewhere on your desktop.
Open the extracted folder and then open a command prompt or terminal from inside the folder.
Connect the phone to a computer with ADB installed and type the following commands, one at a time, followed by enter:

adb push gam6.apk /sdcard/Download
adb push gam7.apk /sdcard/Download
adb push dcow /data/local/tmp
adb shell
cd /data/local/tmp
touch file
echo FFFFFFFF >> file
chmod 777 *
./dcow /sdcard/Download/gam6.apk /system/priv-app/GoogleLoginService/GoogleLoginService.apk
./dcow file /system/priv-app/GoogleLoginService/oat/arm64/GoogleLoginService.odex
content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1

Return to the phone and you will find that the last command you have typed has enabled the functionality of the "Edge" feature. Use this to create 2 shortcuts on the sidebar, one for Settings, and the other for Setup Wizard.
Open Settings and connect to WiFi.
Scroll down from the main screen of Settings and choose Storage > Explore > Downloads and install gam6.apk.
Install Rootjunky's FRP-Bypass.apk and then open the app. Choose the 3 dots in the top right and select Web Sign-In.
Sign in with a Google Account that you own.
When finished you may see an error, don't worry this is nothing to worry about. Just swipe your finger in from the "Edge" to display the shortcuts you created earlier and this time choose Setup Wizard.
Now just proceed through Setup Wizard and you will be able to successfully complete it. At this point I recommend going to Settings and then enable OEM Unlock under Developer Settings (this turns off any trace of FRP).
From here also I recommend to factory reset the device via the Backup & Reset method located inside the Settings menu. When your device finishes you will have unlocked it and are free to do as you please.

the link to google drive doesnt work

You can try bypassing the FRP with ADB pm commands by hiding Setup Wizard package.
Open ADB terminal, connect the phone then type:
adb shell (hit enter)
pm hide com.google. android.settings (hit enter)
The setup should be bypassed.
Note that the package name should be different. To be sure, type adb shell pm list packages
Or, alternatively, download Deloater. It makes it easier to find and remove/hide packages.


text:
Partial internet connectivity on Android device but device connected through hotspot has internet
I have a xiamoi mi5 which is hosting a mobile hotspot, and a laptop which is connected to this hotspot.

On the android device, I cannot connect to the internet. Most Apps see that I am offline.
Interestingly speedtest, whatsapp, facebook and playstore have internet access
On the laptop everything is fine.

I made sure I didn't have incorrect APN settings, and the one I have match the official.
How can I get full internet connectivity on my mobile?

What's your question?

https://android.stackexchange.com/q/226241

The issue is due to the sim card loading two APN entries, one marked by the phone as "MMS" and the other marked "General" . After deleting the MMS APN entry, all phone applications now have full internet connectivity.
Personally I cannot explain the source of this confusion.

Loading MMS APN is normal behaviour, but why would apps use it instead of the normal one? In the APN list, do you have selection markers alongside the APN entries? Is the General one selected?

source: Stack Exchange

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

sort: votes


text:
Where does LineageOs store update files?
Back in cyanogenmod, updates were downloaded to the cmupdater directory.
Then I could easily use twrp recovery to install the Upgrade.
But where does LineageOs store its downloaded upgrade files?

As of the new updates of August 31st, 2017, the updates are stored in
/data/lineageos_updates

Should be marked as an answer.

On my current LineageOS (14.1) this appears to be incorrect as of 30 April 2018. I would have added an answer, but my Segfault and Poweruser and other stackexchange site reps don't carry over. My LineageOS updates are in the directory: "/LineageOS updates/" (in Internal Storage). This is confirmed via ASTRO on an active LineageOS 14.1 system.

This works with LineageOS 17.1

Browse to folder:
/data/data/org.lineageos.updater/app_updates
edit: per comments below, this is outdated and the top answer is correct.

Don't you know if it will be changed to a more convenient one like cmupdater on storage dir ?

No idea. I ended up encrypting my phone so I have to sideload each time anyway.

I think this answer with 32 votes is outdated.  They seem to have moved it mid-2017.  See other answer above.

This answer is correct for Lineage OS15.1 for kuntao/Lenovo P2 as of the time of writing - I have just tried it. What may further confuse the issue is that for an encrypted phone, when you press install it reboots the phone into recovery without mounting all storage, so some files may not be visible.

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


text:
What determines how long the task switcher stays up?
Samsung Note II running OctOS M, but I have seen this phenomenon with multiple phones and versions of Android going back to 2.x
When you bring up the task switcher in Android, sometimes it stays up until you're done, somtimes it goes back to the home screen while you are swiping/closing apps.
What determines how long you stay in the task switcher?  What other apps or settings impact that functionality?

"goes back to the home screen while you are swiping/closing apps" - never seen this. I'm also a long-time Android user dating back to 2.x. Could you have accidentally tapped the empty area outside?

No, the phenomenon happens after swiping as I am about to swipe again, sometimes causing me to launch a new app. Its possible my capicitance is different and affects the phone differently, but that's pretty esoteric...

That does sound like some problem in interacting with the touch panel. You should possibly turn on "pointer location" in Developer options to try catching any ghost touches.


text:
Yu Yuphoria bricked after installing custom recovery and boot file
My YU YUPHORIA got bricked while I was working with it. I want to install custom ROM into it for that I am installing custom recovery and boot file but the file that is found on Internet was not working and that's why I am stuck with company logo. I can't go into recovery mod, neither it boot, and USB debugging mode is turned off. I tried to install fresh ROM from fastboot but after installing every driver properly command prompt is showing "waiting for the device". Please sugest some way to get rid of this problem.

Flashing stock firmware may solve the softbrick.
Download firmware fron this link. - The link is for model Y5010a, since you didn't mention which model. Update with model name if it's differ.
There is 3 files, in zip format. Choose any of them, unzip it and you'll find drivers, the flash files and the flashing instructions. Install drivers and your phone should be detected.

my device is Y5010(not "a") . will this method work with usb debugging off??

Yes. Flashing doesn't require USB debugging. Did you download the file? You can follow the instructions contained therein.

yes every thing is going fine but when i write command fastboot -i 0x2a96 oem unlock it show press volume up key to continue, press volume down key to cancle. please tell me which key i have to press. and after 20seconds it show oem unlock cancelled

You're trying to unlock the bootloader. Is unlocking the bootloader required in the flashing instructions?

someone on the other form suggested me to do this before any thing

is it necessary ???

thanks sir every thing worked fine. i am happy. thank you very much

You're welcome, glad I helped


text:
Accessibility into android7 there are news?
I'm blind and I tried Android 5.0 and it seemed not very good using talkback.
Does someone know if there are many differences with the new version?

Did you turn on deplore by touch also?  https://support.google.com/accessibility/android/answer/6006598?hl=en

@James Jenkins  : If you are talking about exploring the screen by touch ... yes I did it!

We are using android 4.3 with talk back and explore by touch without much difficulty.  Takes some getting used to, biggest issue has been the speed dial also you might be interested in this proproposed site Disabilities Lifehack the proposal lives on Area51 which is running an old version of StackExchange software, when the proposal launches it will be more friendly.

You should think of "Talkback" as its own app, like any other app in Android. So the version of the Talkback-app usually has not much to do with the Android version. You can have a new version of Android, but an old version of Talkback and vice versa.
Most of the time the Talkback-version in a newer Android is also newer, but you could manually upgrade Talkback.
Some manufacturers like Samsung or Huawai implement their own "TTS - Text to speech engine", which basically is the Talkback-App. For example: The way the TTS reads numbers or weekdays might be quite wrong, the focus-frame might be blue instead of Googles green frame, etc.
From my experience the not-Google TTS-engines are worse than the one from Google, but in the Talkback-Settings you can always switch to the standard Google TTS.
But to answer your question about Android 5 and 7: Sadly I could not find any change logs that exactly describe what has changed. The best link is this: https://nfb.org/blog/vonb-blog/android-60-and-talkback-45-accessibility-improvements
From my experience I can say that the accessibility usually improves from version to version, especially on WebViews and how things are put into context ("5:00" could be read as "5 - pause - zero zero" or as "5 o'clock"). So if you can use a newer version of Android / Talkback, you will benefit from it.


text:
Power button stopped working it fall down
I am using Asus ZenFone since 8 months but after fall down the power button stopped working which is actually creating a problem for me. What can I do about it?

If you don't have warranity than you can try installing custom rom that have feature to enable volume rocker to wake up (volume buttons). And use some app to lock phone or double tap on status bar to lock.

1) If you still have warranty then try to repair it for free.
2) You can also try to repair the ZenFone for money. But i think it will be too expensiv.
3) If you doint want to spend money the install an Power-Off-App like
This one.
And for Wakeup you can try to install/enable Double-Tap to Wake.
I hope i could help you:)
P.S If there's an other way then let me know.

authors: Једноруки Крстивоје


text:
Sign in to Chromium on Android not working
I am trying to sign in to Chromium for Android from my Android phone and it is not working. I am getting the following error message.

The account already exists on your device.

I tried to delete the Google account on my phone and tried to set it up again. Still, it is not working.
Is it not possible to sync Chromium on the PC and Android?

Google has cut off support for any third-party Android browsers using the Chrome Sync API.

A bug report was filed on January 3 on the Chromium bug tracker, explaining that attempting to sign-in with Chromium builds on Android resulted in an 'INVALID_SCOPE' error. After many reported the same issue, the likely cause was found - a recent change to how scoped refresh tokens were handled. This meant that only official Chrome builds could request tokens, and it only affects Android (Chromium builds on the desktop continue to work normally).
If you're using any browser on Android that syncs with Chrome, you have probably already noticed it stopped working - and cannot be fixed.

Source

The account already exists on your device

has to do with Chromium Contacts permissions in Android phone. In Settings/Apps/Chromium/
Permissions if you give Contacts permissions and clear cache and data you will see a dropdown with the gmail accounts that are on the phone. Then you can proceed with login and see if sync works.

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


text:
strange theme on Galaxy S4
my little brother has played on my Galaxy S4. I don't know what he did. Now it looks strange.
Does anyone know how do i fix it.
Thanks in advance.

Since this is a Samsung Galaxy, evident from the screenshot, I would look first to the "Home Screen Mode" in the Device section of Settings.
Settings > Device > Home Screen Mode
See if the setting is not "Starter Mode", which gives a simplified home screen with large icons.
If so, switch the setting back to "Standard Mode" and click Apply button. You may have to bring your icons back manually when you do so, to configure the home screen to your liking again.


text:
Experiencing Wi-Fi connection drops when bluetooth speaker is connected
I have a Huawei P9 Lite with Android 6.0.
My issue is that whenever a bluetooth speaker is connected, the phone's wifi periodically loses internet connection. Also my Lumia 730 doesn't have this problem.
I've tried the following:

Changing router's wireless channels (just 2.4 GHz connection, no 5GHz option)
Upgrading router's firmware
Tried with 2 bluetooth speakers

Update: I tried with a Samsung Galaxy J5 and this also happened.
Any help is very appreciated. Thank you!


text:
How to tell what architecture an APK is intended for?
I am writing a script to test a large quantity of apks.  Some run on x86 and some run on arm.  Is there a way I can tell which apks are intended for which architecture?
I have looked through the report on aapt badging with aapt dump badging application.apk.  For some of the arm compatible versions I see native-code: 'armeabi-v7a' but not for all of them, and I don't see any indication of what architecture the x86 compatible apks run on.
I have also tried using apktool to break apart the apk and examine the AndroidManifest.xml.  I don't see anything pertaining to the chip architecture in it either.
I'm looking for something on a linux platform.
Any ideas?

One (rather crude) way to see what architecture an APK's native libraries are built for is to unzip it (it's only a zip file) and take a look at the libs folder - if the application contains any native libraries, they will be split into the following subfolders inside (with the compiled libraries inside these):

armeabi: compiled code for the older ARMv5 architecture (32-bit, support for ARMv5 was removed from the Android NDK in r17)
armeabi-v7a: compiled code for the ARMv7 architecture (32-bit)
arm64-v8a: compiled code for the ARMv8 architecture (64-bit)
x86: compiled code for the x86 architecture (32-bit)
x86_64: compiled code the x86-64 architecture (64-bit)
mips: compiled code for the MIPS32r1 architecture and later (32-bit, support for MIPS was removed from the Android NDK in r17).
mips64: compiled code for the MIPS64r6 architecture (32-bit, support for MIPS64 was removed from the Android NDK in r17).

See Android Application Package for more information on an APK's structure, and the above list's source. A more complete (including MIPS64) list, along with some information about architecture-specific things, can be found on an archived version of the Android Developer ABI Management page, captured on April 18th 2016.
Interestingly enough, targeting one single ABI (where an app includes native libraries designed for one architecture) doesn't necessarily mean that the app won't run on devices that use other architectures. ARMv8-a, for example, is backwards compatible with ARM and ARMv7-a, and Intel's x86 Android devices contain a proprietary translation layer that allows ARM code to execute on x86 devices (allowing ARM-only apps to run on x86 platforms). A list of the ABIs that an Android device can execute can be found in the ro.product.cpu.abilist property, which can be attained in a shell (e.g. via a terminal app on the device, or over adb using adb shell) using the getprop command: getprop ro.product.cpu.abilist.

What if there is no lib directory ?

@KaKi87 Then I believe the app uses no native code, so doesn't need any platform-specific stuff.

You can also use APKSharp:
A Windows tool to De-bloat, view full details & manage APKs on any Android, it has AAPT for Windows & Android inside.

thanks for the answer, but I'm looking for a linux tool

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


text:
Huawei Ascend G630 shows on the display: "Recovery image verify failed"
I've spent much time reading up on my issue with no progress at all.
I have a problem with a Huawei Ascend G630.
I have never rooting my phone or flashing a custom rom. The phone does not work, I can’t reset it by pressing volume up, down and power, and only when it’s on charge, it shows the message:
"Recovery image verify failed
Please update to the authorized images”.
I removed the battery, then, I tried getting it into the recovery mode to reset It or even flash its stock firmware following this instruction to solve it:
1)  I downloaded HUAWEI G630 Firmware from here:
http://consumer.huawei.com/kh/mobile-phones/support/downloads/detail/ascend-g630-kh.htm?id=26062
2)  I extracted Huawei Smartphone firmware (UPDATE.APP) on my PC and then I have pasted it on micro SD card.
The process doesn’t start and the phone returns to the first message
“Recovery image verify failed”.
I think that bootloader is locked.
I enclosed a picture.
Please help me.
Thanks.

Do yourself a favor and edit your question and delete your IMEI number... It is of no relevance to the issue and people steal these all the time.

Ok sorry, I thought it was important. Thank you.

IMEI, MEID, ESN, and serial numbers are all specific to a single device... Sharing them is not a good idea, people use them to clone devices. Other information like kernel, baseband, system, or build versions are fine, those are more generic and cover a variety of handsets in common.

There is a quite simple workaround to solve your problem.

First you should search (on XDA example) and download an original-recovery.bin for your device.
After you can flash it in fastboot mode with the following command:

fastboot flash recovery original-recovery.bin

After this you have an original bootloader on your device.

Source: XDA-Developers

I wrote:"fastboot flash recovery original-recovery.bin"
Prompt shows: “error: cannot load original-recovery.bin";
I downladed and extracted suggested file on XDA in a folder on my PC.
So, I wrote this command:"fastboot reboot recovery.img",because in the folder called ADB that I downloaded, there are this file:
1)adb.exe;2)AdbWinApi.dll;3)AdbWinUsbApi.dll;4)boot.img;5)cwm.img;
6)fastboot.exe;7)recovery.img.

There was no such thing as a "suggested file on XDA", I just linked it as SOURCE.
The file you've downloaded is for an other device (for Huawei Ascend G6-U10) not for your G630. I wrote in my answer in the very first step to download an original-recovery.bin for your device. Take an other round but in this time use a (device) correct original recovery. But I will edit my answer if it's not crystal clear to everyone.

I just tried to use this file, becauseI didn't foundthat for G630. When I wrote this command "fastboot reboot recovery.img", prompt shows "usage: fastboot [  ] " and it suggests to me some commands and options.

commands:
update         flashall            flash  [  ]
erase         getvar           boot  [  ]
flash:raw boot  [  ]        devices            continue
reboot         reboot-bootloader
options:
-w    -s      -p        -c     -i
-b <base_addr>           -n
According to you, what should I do now?

You can't use whichever device's recovery. You should find a proper recovery for your device. Use the search on XDA, or Google it. Further more your command is meaningless, to boot up your device into fastboot mode use this: adb reboot-bootloader.

I solved this problem after finding the right firmware (G630-U20 Firmware B127 European Android4.3 EMUI2.0Lite) for my device last week, and finally recovery has been successful.

I'm glad to help you out.


text:
how to make swipe elite plus volte phone
I have swipe elite plus and and want to make it volte but problem is there is no update from swipe and there is no custom rom available for swipe elite plus.
please help

Make sure your phone supports voLTE, in which case  the guide to activate it is found here: How To Enable Jio VoLTE calling on any Android Smartphone.
Alternatively, you can use  Jio4GVoice to make HD voice or video calls over 4g. For more information please refer to this website: Make any smartphone to support voLTE (HD voice and video calls with Jio4GVoice
Hope this helps


text:
Do cache cleaner (or "phone booster") apps actually work?
Do apps that clean junk files actually work? For example, an app like Super Cleaner.
It promises to clean residual files and junk files.
My main debate is similar to "Does Android need an antivirus?" I can tell that some cleaners make my phone seemingly fast, I just don't know if it's needed, funcitonal or even safe. I've heard that some delete important files, while some don't.

It's peculiar that you accept an answer which doesn't even try to answer your question, namely - do "phone booster" actually work (whatever you mean by that).

He did answer the question. Did you even read the answer? "I can say, in my experience that it is truly contingent on the tool you choose to use." Time for due diligence. He not only said that, but linked an app that he uses that essentially, on its own from reading the info, answers the question for me. He provided lots of details. What did I mean by that? When I say work, I mean function. When I say "phone boosters", I mean apps that claim they "boost your phone." Simple as that. Nothing hard to understand here. Thank you for your input! :-) The answer helped me, so that's that.

I can say, in my experience that it is truly contingent on the tool you choose to use.
I am very happy with SDMaid, which i have used for years. It seems to clean everything it says it will.
If you read through my other postings here, you will find I usually recommend it for the "CorpseFinder" functionality to clear remnants of older, non-fully uninstalled apps, though the AppControl, SystemCleaner, and Databases functionality are useful, too.
I am satisfied each time I use it that the cleared item were non-critical, yielding back space I can use. I have not encountered a problem with either my phone, or my tablets, where files were improperly deleted, that I would attribute to some actions of this software.
DISCLAIMER - I am not the developer, or attached to the product in any way, except as a satisfied user.

Awesome! Thank you very much for the detailed answer, I'll try it out. Just curious: why is it called "SD" Maid when it doesn't necessarily have to do with the SD Card? Unless I'm being totally silly and am missing something?

@MikeKuplevatsky - I have no idea, and their Help doesn't explain the name. The Help has all kinds of contact avenues, maybe they'll share if you ask them.


text:
How to get Samsung GT-19305 out of boot-loop?
My Samsung S3 (GT-19305) is stuck! It keeps restarting!
It doesn't reach the enter pincode, but keeps restarting showing the "Samsung Galaxy S3 i9300" screen. Then cycles starts again.
Here are the things I've tried:
I have already removed battery, put back in; still the same result.
I have also tried to hard-reset, but it just turns off and restarts.
Same result when trying VolumeDown + Home + PowerButton; goes back to restarting and the Samsung S3 screen.
PLEASE GUIDE ME IF ANY PROVISION ....

"Just show logo and restart" - it's called bootloop.

Have you tried to boot into recovery and clear your device cache?

Just flash your phone using Odin. Go to sanmobile.com and download your phone model firmware.

/** I am not responsible for your phone. Many options listed here will void your warranty and/or irreparably damage your phone! Proceed with caution and at your own risk! **/
Hi there! As was mentioned, this is known as a boot-loop. This is usually a recoverable state, but you need to be EXTREMELY CAREFUL if you choose some of the more daunting items on this list; many WILL brick your phone for good (unrecoverable state). You don't give a ton of context as to your experience level, so this list is a little drawn out, but, without further ado, here it is:

USE YOUR WARRANTY. If you haven't already voided it and your phone is still under warranty, use it! All other options on this list will void it. DO THIS FIRST!
RECOVER FROM A BACKUP. If you got into this state by dabbling lightly into the world of roots and custom roms, it's likely you already have installed a custom recovery. If that's the case, and you followed instructions to a T, almost every guide will have had you create a backup. Booting into recovery (hold volume up+home+power from a cold start) will give you the option to restore your backup, or minimally the boot image from it.*
GO NUCLEAR. Essentially the same idea as the recovery mode, but you'll need a computer. You'll want to flash the "stock rom" or "stock firmware" here. IT IS SUPREMELY IMPORTANT that you find the CORRECT VERSION. If you don't, your phone is likely forfeit. Kiss it goodbye. A website like Sammobile keeps a directory of stock firmwares to pick from. Again, CHOOSE THE RIGHT ONE or your phone goes kaput. The basic idea is to use a program called ODIN to flash the stock rom (or minimally the boot image from it) to your phone in download mode (hold volume down+home+power from a cold start). There are many guides online for this, so I won't go step by step here, but Google something to the effect of "Flash stock rom using ODIN" and you'll get some good results.

Hope this works out for you; lemme know if you need anything more!
*Having a custom recovery with a backup is wonderfully handy. Once any android phone of mine is out of warranty (even unrooted ones!) I always flash a custom recovery and perform/keep a backup. I'm a pretty heavy power user and often find myself in boot-loops or the like. Being able to flash a fresh boot image straight from my phone's recovery has saved me many a trip to my computer, not to mention my sanity :D


text:
What is the use case for the Google Wi-Fi Assistant?
The Google Wi-Fi assistant is available on the Pixel and Nexus devices running Android 5.1+, in some countries. The description at Settings->Google->Networking is

Wi-Fi assistant:
  Automatically connect to Wi-Fi at select locations and other open networks determined to be high quality

Why would I want to use Wi-Fi assistant? I am not accessing anything on Google's network that requires authentication, and if an application requires secure data, it should already be using an SSL/TLS connection.
From a privacy point of view, this seems to trade the wireless network's ability to monitor all traffic with Google's ability to monitor all traffic through the VPN.

The Google Wi-Fi Assistant is designed to provide a seamless always-connected experience using Wi-Fi. If, for example, you do not have a mobile data connection, the Wi-Fi Assistant will connect you to "high-quality" Wi-Fi whenever possible, and provide security through VPN.


text:
How can I use the name "A Google user" in my reviews at Google Play Store?
I have seen many recent reviews (2017) in Google Play Store with the name "A Google user" and I'd like to know how one can do that. I've read some possibilities, but they were written in 2012 and now you can't do it anymore due to changes in G services. Is it possible to do without creating a dummy user?

Edit: As of August 2016, it is no longer required to have a Google Plus Profile to leave a comment in Google Play Store.
However, it would still require great sacrifices to comment anonymously in Google Play Store as you have to remove your Google+ Profile and as long as you create one again, all your "previously anonymous" comments will immediately be linked back to your new G+ profile.
Previously,

Due to Google's requirement since November 2012, a Google+ profile is required to leave comments under contents from Google Play Store, as is discussed here. All those comments from anonymous users without a Google+ Profile are left before Nov, 2012.

not possible to remove Google+ profile any longer using the link provided. No idea how to post reviews in Google Play anonymously now, despite the fact that I can see anonymous reviews for this app posted as recently as April 2020. https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackupPro


text:
Should I upgrade my Moto G4 to Nougat?
I my personal phone is a Moto G4 (2GB RAM, 16GB storage). I have bought it mainly to learn how to develop apps for Android (currently, marshmallow is working very well for me).
I've seen that my phone has an upgrade ready to download - the new Android 7.0 (today, he is 6.0.1, Marshmallow). I usually don't upgrade to newer versions unless I'm sure my cell won't be slower/somehow damaged by it. So I would like your advice, specifically to my phone.

Will it run ok with my 2GB of memory? (today, my phone is really fast, I don't want it to become one of those phones that makes simple tasks, like reading whatsapp/SMS slow).
Will it use more storage space than Marshmallow? How much it will use, approximately?
Is there any known problem (incompatibility, apps that stopped running, unusable phone resources)?

Thanks in advance

Official updates are usually alright on those aspects. Also, if you're learning to dev, staying on the cutting edge and using new APIs are quite important.

I've just upgraded my Moto G4. Here are my impressions:

The systems are pretty similar, no big difference.
Nougat seems a little bit faster than marshmallow (might be due to some apps I was always keeping in background, which were closed during the upgrade)
No data loss (at least didn't notice anything until now)
I had to reconfigure my dual-sim call/sms selection (it has apparently changed - more options - on 7.0, but I could configure with the same settings I had before, which were working for me).

Summarizing, I am happy with the upgrade :)


text:
Backing up contacts, call log, SMS/MMS and gallery via adb?
I have an old Nexus 5 running KitKat and I need to back up its contacts, call log, SMS and gallery photos via adb - not through an app. After that I need to upgrade the phone to 7.1.1 and restore these backups. I have no idea how to do this but I understand SMS at least is not covered by adb backup. What do I need to do to change this?

If you have a Google Account connected to your Android Device, then Contacts are automatically backed up. As far as the Call Log, that would be  info that your carrier can provide. The same is for SMS, when you boot your phone, the server normally updates your sms/ call log info, so calling the carrier would be a good idea. There is an App on most Android phones, called Picassa, that comes with the phone. You could try connecting your Google Account to Picassa, and setting the App to  upload your photos to it.
     I'm not a developer, but I own a phone with the same OS, I hope these suggestions help you. :)


text:
Differences between fastboot erase and fastboot format
I have an asus zenfone 2 laser with radio problem:it doesn't take the line.I want to format modem partition to see if the problem could be solved.I jave a doubt:what is the difference between fastboot erase and fastboot format?What command have I use before flash the modem?

Related What fastboot erase actually does?

I just found the answer regarding Format and Erase.
Format :
Fastboot will create allocate new block / create file system to the target partition. Not all partition support format feature. System, userdata, cache, boot, recovery.
Erase :
Fastboot will wipe out the entire partition target. All partition support this erase feature as long as permitted by bootloader.
Both command will "destroy" partition content. You will need any compatible firmware to fix it.
About that modem case :
fastboot erase modem < modem was the partition name.
fastboot flash modem "modem-file*.*"


text:
LG G4 Problem with "camera unfortunately stopped working"
Recently my camera on my LG G4 has been having some issues and is not working at all.
When opening the camera app either front or rear there is just a black screen and after a moment the message "camera unfortunately stopped working" and the app is closed. Also I have checked that the flashlight is not working but that must be related to the camera problem I guess.
It is not the first time it happens. Sometime ago I had the same problem for about two weeks but the problem magically solved itself. But know it reappeared when I tried to open the camera through the locked screen menu while having another camera app which might be unrelated but I am not an expert.
I have tried several usual methods to solve the problem:

Rebooted the phone;
Deleted Cache (Both camera app and gallery);
Deleted App Data;
Tried a third party app;
Factory Reset;

Nothing Worked!
I have know tried to use adb and android studio to see what kind of errors are issued and what I got was this:
             --------- beginning of crash
02-03 22:31:11.147 3599-10463/? E/AndroidRuntime: FATAL EXCEPTION: Camera Handler Thread
                                              Process: com.lge.camera, PID: 3599
                                              java.lang.RuntimeException: Media server died.
                                                  at com.lge.camera.device.CameraErrorCallback.onError(CameraErrorCallback.java:32)
                                                  at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1232)
                                                  at android.os.Handler.dispatchMessage(Handler.java:102)
                                                  at android.os.Looper.loop(Looper.java:148)
                                                  at android.os.HandlerThread.run(HandlerThread.java:61)
02-03 22:31:11.177 468-812/? E/ThermalEngine: ==== Enter sched_bmhb_cs_gov -> vs_temp = 26 ===
02-03 22:31:11.342 2015-10552/? E/linker: readlink('/proc/self/fd/336') failed: Permission denied [fd=336]
02-03 22:31:11.342 2015-10552/? E/linker: warning: unable to get realpath for the library "/vendor/lib64/egl/eglSubDriverAndroid.so". Will use given name.

I guess the interesting part of the log is this, but there are a lot of errors previously that can trigger failure. So I will post some of those since there are too many too fit them all here:
02-03 22:31:05.642 520-10471/? E/mm-camera-isp2:isp_module_start_session:178 session id 1
02-03 22:31:05.645 520-10472/? E/mm-camera: tcc_init: TCC ver.150418
02-03 22:31:05.646 520-10472/? E/mm-camera: q3a_port_init:2727  q3a_port_init: 3A VERSION --> 4.1.0.r2
02-03 22:31:05.647 520-10475/? E/mm-camera: module_faceproc_start_session:1752] session cnt 1
02-03 22:31:05.649 520-10471/? E/mm-camera-isp2: isp_module_start_session:347 num_session_opened 1
02-03 22:31:05.652 520-10472/? E/mm-camera: sensor_laser_init:117  Failure opening sensor library! Error: dlopen failed: library "/system/lib/hw/sensors.hal.tof.so" not found
02-03 22:31:05.652 520-10472/? E/mm-camera: gyro_port_init:1216  Failure initializing laser sensor. Error: 4
02-03 22:31:05.652 520-10472/? E/mm-camera: start_accel_sensor: sensor1_open E
02-03 22:31:05.653 520-10472/? E/mm-camera: start_accel_sensor: sensor1_open X, res = 0
02-03 22:31:05.705 520-10469/? E/mm-camera: module_sensor_init_session:1243flash subdev id = 0
02-03 22:31:05.705 468-814/? E/ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
02-03 22:31:05.707 520-10473/? E/mm-camera-pp: [INFO] base_module_start_session:91, E, session=1
02-03 22:31:05.707 520-10473/? E/mm-camera-pp: [INFO] base_module_start_session:91, E, session=1
02-03 22:31:05.710 520-10469/? E/mm-camera-sensor: sensor_sdk_util_get_kernel_i2c_addr_type:26Invalid addr_type = 0
02-03 22:31:05.710 520-10469/? E/mm-camera-sensor: sensor_sdk_util_get_kernel_i2c_data_type:40Invalid addr_type = 0
02-03 22:31:05.710 520-10469/? E/mm-camera-sensor: actuator_load_lib:491name=lc898122_claf, mode=camera
02-03 22:31:05.713 520-10469/? E/mm-camera-sensor: actuator_load_lib:491name=lc898122_claf, mode=camcorder
02-03 22:31:05.714 520-10469/? E/mm-camera-sensor: eeprom_do_af_calibration:197turn on Cal af(1)
02-03 22:31:05.714 520-10469/? E/mm-camera-sdk: eeprom_autofocus_calibration_claf:137 KSY Kernel original macro hall : 13600, inf hall : -10080, macro_mecha 21000, vcm_type 65
02-03 22:31:05.714 520-10469/? E/mm-camera-sdk: eeprom_autofocus_calibration_claf:141 KSY AF_algorithm convert macro hall : 350, inf hall : 0
02-03 22:31:05.714 520-10469/? E/mm-camera: ois_init:305start: ois_init
02-03 22:31:05.715 520-10469/? E/mm-camera: ois_init:372done: ois_init
02-03 22:31:05.715 520-10469/? E/mm-camera-sensor: proxy_init:71name = LD_AF
02-03 22:31:05.715 520-10503/? E/mm-camera: ois_thread:201ois thread is running
02-03 22:31:05.715 520-10469/? E/mm-camera-sensor: sensor_proxy_on:151enter
02-03 22:31:05.726 3599-3599/? E/PeerForWman: Watch Library is not activated! Call activate() first.
02-03 22:31:05.733 520-10469/? E/mm-camera-sensor: sensor_proxy_thread_on:198enter
02-03 22:31:05.733 520-10469/? E/mm-camera: module_sensor_init_session:1354tcs_sensor init Enter **
02-03 22:31:05.735 468-814/? E/ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
02-03 22:31:05.746 468-814/? E/ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
02-03 22:31:05.760 520-10469/? E/mm-camera-sensor: tcs_thread_create:291tcs_thread, thread_id 0
02-03 22:31:05.760 520-10469/? E/mm-camera: module_sensor_start_session:1626SUCCESS
02-03 22:31:05.760 520-520/? E/mm-camera: sensor_get_cur_chromatix_name:2417Error: Load default preview chroamtix
02-03 22:31:05.761 520-520/? E/mm-camera-isp2: isp_resource_query_mod:145 num_isp_preallocate 1 num_session_opened 1 dual_vfe_enabled 0
02-03 22:31:05.761 520-520/? E/mm-camera: module_faceproc_query_mod:1904] Caps ROI 5 scene_mode_cnt 1 HW analysis supported 0
02-03 22:31:05.761 520-520/? E/hdr: module_hdr_lib_query_mod:181] Supported scenemode cnt 2
02-03 22:31:05.761 520-520/? E/mm-camera: isp_port_check_caps_reserve:737 port 0xf4c7f0a0 ide 1000f type 10 dim 0 0
02-03 22:31:05.762 520-520/? E/mm-camera: int_link = 0xf41b76c0
02-03 22:31:05.763 520-520/? E/mm-camera: Interleaved flag is 0, identity 65551 port type 0
02-03 22:31:05.763 520-520/? E/mm-camera: pproc_port_add_modules_to_stream:454] X rc: 1
02-03 22:31:05.769 468-814/? E/ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
02-03 22:31:05.769 468-814/? E/ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.778 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.779 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.779 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.779 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.779 10487-10487/? E/AppUp4:MvnoProfileEntry: getIdByRule : not matching
02-03 22:31:05.797 450-450/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*):HeapMemsize 656704
02-03 22:31:05.798 450-450/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*):Memsize 656704
02-03 22:31:05.798 450-450/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocEnd(size_t) 656704
02-03 22:31:05.798 450-450/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocEnd(size_t) 656704
02-03 22:31:05.802 450-450/? E/LGCameraParameters: void qcamera::QCameraParameters::initDefaultParametersEx(): multi_window_af_supported = 1
02-03 22:31:05.802 450-450/? E/LGCameraParameters: createMultiWindowString: (-280,-280,0,0,1),(-140,-420,140,-140,1),(0,-280,280,0,1),(-420,-140,-140,140,1),(-140,-140,140,140,1),(140,-140,420,140,1),(-280,0,0,280,1),(-140,140,140,420,1),(0,0,280,280,1),(-220,-220,220,220,1)
02-03 22:31:05.802 450-450/? E/LGCameraParameters: createMultiWindowString: (720,720,1000,1000,1),(860,580,1140,860,1),(1000,720,1280,1000,1),(580,860,860,1140,1),(860,860,1140,1140,1),(1140,860,1420,1140,1),(720,1000,1000,1420,1),(860,1140,1140,1420,1),(1000,1000,1280,1280,1)
02-03 22:31:05.802 450-450/? E/LGCameraParameters: int32_t qcamera::QCameraParameters::setBeautyLevel(int) : [ARC_BEAUTY] beautylevel = 20
02-03 22:31:05.803 520-10518/? E/mm-camera: sensor_set_frame_rate:1082max fps 30.030001 min fps 2.000000,fixed_frame_rate=0
02-03 22:31:05.803 520-10518/? E/mm-camera: iface_util_set_hfr: can't find hw stream, only save hfr mode
02-03 22:31:05.807 450-10465/? E/QCameraStateMachine: int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): cannot handle evt(31) in state(0)
02-03 22:31:05.807 450-10465/? E/QCameraStateMachine: int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): cannot handle evt(31) in state(0)

Other informations about the phone is that it is not rooted and has no custom ROM installed by me.
I really hope there is someone who can help me with this because this camera would serve me well!

I am exactly in the same situation with my LG G4. I tried:

rebooting the phone
deleting cache
deleting app data
doing a factory reset
removing the camera and installing a brand new one bought in a phone devices store and STILL NOT WORKING. I wonder if you could finally solve the issue. Thanks for sharing.

Turns out that my problem was in the hardware. There was some kind of power supply, in the phone motherboard, that was broken. Basically, the people at the repair shop substituted the motherboard, which is almost the same as a substituting the phone.
There are a lot of possibilities, but I hope that helps somehow. @nuantagi


text:
What manages dual sim phones
So about dual sim phones, what manages their work is that app, or kernel support, or maybe ROM support (support has to be built into rom). Or some combination of all mentioned?

Certainly at least on ROM level - if ROM doesn't have dual SIM management UI and libs, you won't even see the 2nd SIM and the phone will appear single-SIM. This is obvious for some devices that have both single-SIM and dual-SIM variants and have a flashable ROM for the single-SIM variant.

@AndyYan In that case how could I build ROM for dual sim (theoretical question don't mark question as off topic), because I don't know any rom that supports that.?

I don't really know about that... I ain't a dev either :/ Better wait for a complete, backed-up answer to show up.

There is no such thing as ROM support. A rom is just a collection of partitions. The kernel needs to be aware of the hardware, and be able to talk to the modem. The manufacturer should provide the device source that handles this.

@jiggunjer yes, but there has to be some app with UI so you can 'switch' or turn off sim card. I tought it was a ROM support because when you use custom in most cases you lose dual sim support. Manufacturer should provide source for kernel or for that particular software which manages cards?

There doesn't have to be any UI, but in many cases the settings app offers access to the SIM management. It may use a vendor app under the hood. Such apps should be part of the device tree, but might not be open source.

@jiggunjer Hm, so, what for i'm looking for, .apk file, .so file or something else?

an apk, if it exists. I don't know the technical details of SIM cards, but there might be special protocols involved. The app may also depend on a specific kernel version that supports your RIL. In other words there could be many dependencies and requirements for such an app to work on your phone.

@jiggunjer only .apk that I could find that maybe suits description is "Dual sim status" but it seems like it only provides widgets, apk is ~500kb..

authors: Једноруки Крстивоје


text:
Backup/dump kernel image without root or twrp/cwm
Is there any way to backup/dump kernel image without root or twrp/cwm ?

Without recovery? Use dd. Without root? Guess not.

@AndyYan That's sad, I will wait maybe someone have some trick.

Same - I do hope so.

It is possible to dump device partitions without root or custom recovery - if your device has "fastboot" mode and is boot unlocked. I'm not going to describe unlocking the boot loader, but with a fastboot device it is usually pretty easy - search the internet for instructions for your specific device.
You will need a TWRP recovery image for your device, but you don't need to actually install it on the device - we'd just temporarily boot into it to get access to the raw boot partition. Look at https://twrp.me/Devices/ and download the image for your device.
Preparations:
You need to find out which partition you want to backup from the device's storage. Usually there is a by-name directory somewhere under the devices tree that lists all the operating system's partitions with names and physical partition identifiers.

Install ADB and Fastbook command line tools.
On your device, enable "Developer Mode" and then go into the developer settings and enable "USB debugging".
Connect your device to your computer.
On your computer run adb devices and verify your device is listed. You may need to authorize access on the device itself in a popup that will appear.
Run adb shell to go into the device's command line shell
Run find /dev -name 'by-name' 2>/dev/null to find the by-name directory. It should list one, though if there are a couple, it shouldn't be a problem and both should work.
Take the directory name and run ls -la <by-name-directory> (replacing the place holder with the actual directory name)
Find the name of the partition you are interested in - if you want just the kernel, the name is boot, or if your device has multiple slots, it is probably boot_a - and record the physical partition path listed for it. It should be something like /dev/block/mmcblk0p22 (this is on my Mi A1 device - if you have a different one, the number after "p" will be different and possibly even the number before "p").

If you do not have a by-name directory on your device, you might want to search the internet for the correct device name, though there are ways to detect the correct partition from within the device - comment if you need help.
Steps to Backup

Reboot your device to the fastboot boot loader. There's usually a boot time key combination for this, on my Xiaomi Mi A1 its POWER + VOLUME-DOWN, but you can also use ADB to do that: execute adb reboot-bootloader to go directly to fastboot mode.
Use fastboot to boot into the TWRP image you downloaded, without installing it on the device: fastboot boot recovery-3.2.1-1.img . It will take a couple of minutes for the device to boot into TWRP, so be patient.
On your computer, run adb pull /dev/block/mmcblk0p22 boot.img, replacing "mmcblk0p22" with the correct boot device path you found in the preparations stage, and "boot.img" with where you actually want to save the kernel boot image.

If your device has multiple boot slots, its probably a good idea to backup both (on my device, for some reason, after a clean install and update, they are not identical).
Good luck.

First to be honest I can't even remember why I needed to dump these images this way. However in your answer you are using twrp (you don't install it but you are using it, we are not lawyers to use loopholes like that :) ), one more thing you have provided a link to download twrp from official site, but much of phones (those not so famous or not high end devices) doesn't even have an unofficial build, so tough luck for a lot of people. However I appreciate the effort, cheers.

Well, if we can't load any custom boot code, then the answer would have to be "no, you can't". You don't have to use official TWRP - you can use any recovery that offers adb access. You didn't mention which device your using, so I had to go with a generic solution. That being said, I wrote this for my own needs, which BTW is using a Xiaomi Mi A1, that is not a high end not overly famous, and it has a TWRP release. I hope this answer helps other people, and if you still want to try it and your missing something (like a TWRP release) - please give more details on your device and I'll try to help

BRILLIANT!! Excellent Answer!

+1 You might find convenient to list candidate partitions in one shot with:
ls -al --color $(find /dev|grep by-name$)

On some devices this won't work due to bootloader lock. E.g., on my bootloader locked OnePlus 9 when I try to boot twrp, I get "boot is not allowed in Lock State".

I just used
dd if=/dev/block/mmcblk0p15 of=test_boot.img

and then used adb to download the file for a backup of the boot ramfs

To do this you'd need root access on your device (for raw block access through the device tree), and busybox (for dd) - which you'd also need root access to install, through most rooting manuals and/or "su applications" include it. Also, mmcblk0p15 may be right for your device but is unlikely to be correct for devices from other manufacturers (or even the same manufacturer). In my answer I describe a method to find the correct block device for any Android phone.

authors: Једноруки Крстивоје


text:
Warning message after doing backup in TWRP on Honor 8 (FRD-L09)
When I do a backup in TWRP on my Honor 8 (FRD-L09), it invariably end with a message saying that it failed to unmount /system due to device or resource being busy. The header still says that the backup is complete, and that it was successful.
In case it makes a difference, I'm running FRD-L09C432B131, which is EMUI 4.1, Android 6.0. Kernel is 3.10.94 from 11 October 2016. This is what was installed on the phone when I got it. I got the bootloader unlock code from Huawei, by registering and applying for it. TWRP is 3.0.2-0 downloaded from here and flashed using fastboot on Windows 10.
Here's a photo of TWRP after finishing the backup:

Need I worry about this?

Can you boot properly after this? If yes, no worries.

To be more sure, reboot into recovery again and see if this warning persists (it shouldn't).

@AndyYan I'll try that later. Right now I'm off to bed. Thanks again.

@AndyYan I just tested. Did a backup. Then I tried to manually unmount /system, both from the TWRP menu and from its built-in terminal. Both failed with the same message. Then I rebooted, selecting Recovery from TWRP's menu. When it came back up, /system had not been mounted, and no error/warning messages appeared. And rebooting the system after this works normally.

It's quite obvious that the recovery itself is buggy. Not unexpected for Kirin devices... I'll post the above as an answer.

To isolate the problem, 1) reboot into Android and see if it does so properly, and 2) reboot back into recovery and do the same operations.
Judging from your response on the 2 points, it seems your recovery is at fault here. Not unmounting /system is usually not a problem: that step is done as a safety precaution to prevent accidental modification to /system when not flashing. As long as you don't do that yourself you should be fine.


text:
executing adb shell commands as root
I am using the following command from Java and it works with my old phone
 adb shell svc data disable

But with my new phone I am required to change to root (su command) in shell before I can successfully execute svc data disable
Is it possible to do this in one command? I use Java's Process exec method to run this command, and I'm not how to make it work with my new phone since I am required to change the shell to root first.

On terminal emulator putting && between the two commands works (second command executed only on successful completion of first). Alternatively  ; between two commands. I don't know if it same for Java

I tried adb shell && su on windows command line manually but it only tries to execute su after I press ctrl-d, I think su does not get executed since the shell command has not really finished executing while we are still in shell.

found the answer on stackoverflow http://stackoverflow.com/questions/8761992/launch-a-script-as-root-through-adb

You can answer the question yourself :)


text:
How to move installed apk from phone memory to sdcard on android 6.0.1 without root
Move installed apk from phone memory to sdcard on android 6.0.1 without root and install new apk to sdcard.
My device is Samsung Galaxy J5 (SM-J500H os updated to 6.0.1). Phone's memory is too small to use install big applications and games. I installed asphalt 8 but cache files are too big for phone memory. What can i do?

Add SD card as adoptable sorage, here is how to: http://www.modaco.com/news/android/heres-how-to-configure-adoptable-storage-on-your-s7-s7-edge-r1632/

Basically, unless your OEM did something very nonstandard, you can't.
Marshmallow has no facility to move apps to the SD card as that feature was removed in favor of adopted storage in the core operating system. In adopted or internal storage mode, the SD card is essentially "adopted" or brought into the internal storage as if it is built into the device. This method is not without drawbacks though, your SD card will become encrypted and can only be read by that device (not in another phone or computer) and it will put significantly more wear on the card which is a concern because SD card storage has a finite number of writes before becoming unusable. Adopted storage is also slower than standard internal storage in general.
Even with adopted storage you don't chose what to move, the operating system does that... And some apps cannot reside on the SD card even with adopted storage.

Is there a way to take a phone that comes with this awful OS "feature" (typical Google "all your belongs to us" totalitarian-behavior) and revert it to Android 5.x, so we can have workable SD-Storage (readable in other devices, separate, etc) again?  My wife got a phone with this on it, and it is also 1/2 the speed of my same-Ram/Cpu phone, that runs on Android 5.x, so there is performance to be gained, as well.

@JosephK Depends on the specific device, there is no blanket answer, but in general OEMs do not support downgrading. You do not have to adopt the SD card, when you insert it you can leave it as External Storage, and it can be read in any computer or device like it always could, the drawback is apps cannot be moved to it.

"apps cannot be moved to it..."  Exactly, so the phone runs out of space almost instantly, making it worthless.  But it's so slow with this version of Android, it's not far from worthless right out of the box.  I suppose saying, "Comes with new Android" (keeping up with the Jones's) sells more phones than, "Doesn't hang for a long time when you do something."  The best workaround we found was to disable all the Google-ware that came on it, which helped a lot (those, auto-updated, had it full without any "actually desired software" installed).

The actual .apk itself is never on the SD card, and there is no need to do that either. The data can be moved (at times only partially) to the SD card.
If thats what you intended in asking, then see if your phone supports move to SD in the settings under applications. If not, you can root (at your own risk) and use Apps2SD or similar apps.

You can't move apps at all without root, but you can use apk editor pro to change the storage to prefer external on other device whose storage is free ,it does not require rooting.
And there is no other way without rooting.

authors: Једноруки Крстивоје


text:
Mount sdcard partition as /data
I originally wanted to comment here to ask a clarification question. But as I haven't enough reputation and it seems there isn't any private messaging possible, I opened this new question.
The device is a Moto G2 with 8GB storage. I configured it under cm13 to use a 64GB sdcard as adoptable storage.
After a few weeks my sister called, the device disconnects the sdcard very often and wants it to be reinserted.
In the hope that it's only the sdcard giving up, I ordered a new one and copied the whole disk with dd if=/dev/oldCard of=/dev/newCard.
Have to wait, if the problem is gone or not. But I thought about, if the adoptable storage option of Android isn't that brilliant and therefore googled if I could somehow mount an ext4(/or f2fs) partition on the sdcard under /data.
The answer I found here on Android Enthusiasts, sounds interesting, but I can't believe that this works this way, as of my understanding...
So, in the linked answer, it says:

This is the way to have /data on the SD Card directory:

Copy all /data to the SD Card directory: /mnt/sdcard/data
Delete /data
Create a symlink that points to the SD: ln -s /mnt/sdcard/data /data

So, my problem/confusion with this are the following points:

If I create a symlink in the root dir to something else, this link is gone up on a reboot. So how am I supposed to make the link from /data to some other place persistent?
If I make /data point to /sdcard/data, wouldn't the mount command now mount the partition in which the data is really stored under /sdcard/data? So the data would still be placed in the internal memory, but the point where it's mounted in the system is a different/wrong one, right?

My aim would be, to have a sdcard formatted with ext4/f2fs and get it mounted as /data like mount /dev/block/mmcblk1p1 /data instead of the internal data partition. But can I do that WITHOUT modifying the fstab of the kernel for every update I want to do manually?
L

Why don't you simply use adoptable storage fetaure?

As said, I am at the moment. If the new sdcard fixes the problem of disconnecting card, all fine. But because of that, I got curious if it is possible to directly mount it under /data easily

I have done the exact same thing in the past with a Samsung Galaxy Y DuOS S6102 by replacing all the mount lines concerning the data partition in the init scripts and fstab file.
I couldn't find better solutions (think as future-proof) for the problem because once you look at the boot process for a generic Android device in Wikipedia, you'll notice the kernel runs the init scripts which makeup the directory tree and mount certain stuff that lay the foundations for Dalvik/ART runtimes to kick-in.
So by making a few tweaks to these scripts and partitioning the 8GB SD card into 1GB and 5.6GB, I was able to make it work boot.
Note: The device I used runs on ancient technology with little security features as compared to modern techniques. Hence, you might wanna be careful before making changes.

So I'm right that the linked solution can't work?  Maybe it'd be possible to place a script in system somewhere, that remounts the partition from an sdcard to /data before the os actually boots up? But I have no idea where and/or how to that

But isn't that happening in my answer? Before the OS boots up is before Dalvik/ART kicks in and the kernel is where I'm targeting mount scripts to work. :/

Yeah, your solution does that. The one I linked in my original question won't work^^. But the aim was a way, without editing the kernel. Because else, I would have to edit the kernel of each update manually before flashing

This should work since what the symlink does is it looks at the /data as a folder but it actually works on the folder that the symlink is referring to.
About your issue of it disappearing after reboot. You can run a script at startup that creates the symlink. (Or you can probably mount your data directly to /data without having to use a symlink)
I have done something similar to make my Termux file system work from a SD Card. Take a look at this answer.

authors: Једноруки Крстивоје


text:
gallery thumbnail
I accidentally deleted the contents of .thumbnails folder in DCIM in sdcard. After deleting it I am unable to access MediaStore.Images.Thumbnails._ID however MediaStore.Images.Media.DATA is having all the images. How do I regenerate thumbnails in the .thumbnails folder to get the details of MediaStore.Images.Thumbnails._ID?
I initially had the idea that the gallery app in Android generates thumbnails in the .thumbnails folder so what I did was clear the cache of gallery app. Unmounted the sdcard and mounted it again in the hope that .thumbnail folder will have all the thumbnails when I relaunch the app
I am using Infocus M535 phone

Usually, the .thumbnail folder is autogenerated periodically.
If the clearing cache didnt work, did you try clearing the data for the gallery app? This ideally shouldnt actually erase your photos and videos, but on the safer side do take the backup.
Alternatively, if that doesnt work and if you want a quick fix, then go Play Store and download great alternatives to the stock gallery such as QuickPic.


text:
Eject SD card via ADB
Is it possible to emulate physical eject/cut power supply for SD card in Android via ADB terminal?
What I'm looking for is something similar to the functionality achieved on GNU/Linux for USB devices via /sys/bus/* files.
However, if there is other "Pure Android" way, it will also suffice as long as it works.
The important point is that SD card should not be properly unmounted, but rather appear to the system as a sudden eject.

Any specific reason why?

@GokulNC for stability testing in case of sudden storage removal.


text:
CPU-Z shows 8 cores, but 4 of them are stopped
I am using CPU-Z to test basic things about the J7. It reports an Exynos Octa 7580, 8 cores, 8x ARM Cortex-A53 @ 1.5GHz, r0p3, 28 nm.
At all times that I checked, only cores 0-3 are active, and cores 4-7 are stopped. Power saving is disabled.
Is there any way of activating all cores?
Is there any way of at least seeing all of them active, for testing purposes?
I have found a few posts around (here and here) mentioning that it may be the way the phone + OS kernel keep temperature in check, but I am not sure it applies to J7, and if so, how to circumvent it.
PS:
I find some times that my J7 is sluggish, so I wonder why would it have 4 processors idling if they could work (assuming the causes are processing several apps, which could be tackled by assigning different processors).

One time I played a high graphics game that got stuck, quickly went to cpu z and still saw a cpu core not working, but RAM 90%. I was furious, hoping to show you how to force all cpu cores to run

Is there any way of activating all cores?

You can't.
The hardware is not designed to have all 8 cores active. The reason for this is that this Octacore CPU is actually based on big.LITTLE technology, where there are two sets of four cores: a powerful big cores used for heavy processing (e.g. gaming) and energy efficient LITTLE cores used for low load applications. The system will automatically switch between the two sets depending on system load, but you can't activate all 8 cores at the same time (it'll likely overheat beyond its intended design if you somehow managed to do so).

Does this mean the other answers are mostly wrong?

That is perfectly fine. Why would 8 cores be active if you are in cpu-z app. Four cores are let's say active all time, and other four are jumping in if needed, cpu-z don't need 8 cores trust me. Try runing some heavy process like video convertor or unziping huge file, and in time of converting/unziping open cpu-z and see.

Were you refering to Video Converter Android?

It all depends on how the apps that are running are written and if they can actually make use of multiple cores.
Even if you are running a heavy application, if it cant make use of all the cores, the other cores might still be appearing as off. Most system apps these days can use all the cores that the hardware has to offer.
Bottom Line: You do not at all need to worry about number of cores running. Let OS do its thing!

Do you know of any specific app that one could use to see the 8 processors running?

Actually the core usage depends on the usage of particular apps. Like, if you use high graphics game you'll usually find that the number of core in use are more whereas if you use simple applications like WhatsApp Messenger the number of core in use will be 3-4 maximum. Hope it helped you.

If you switch to other apps and then back to CPU-Z, you would briefly see all the cores working.

Yep, same here thought which brought me here but then noticed also if you fire few apps and then switch between these and back to CPU-z it will shortly show activity on all cores.

Try running a benchmark app from play store. It will test your CPU to it's maximum potential and give you a report that will specify what each of the cores are doing.


text:
Why "format as internal storage" is not working when installing new apps?
I use my SD card with "format as internal storage".
When I plug my mobile on the PC I see a single huge storage with 10gb free.
But when trying to install a new app, is says that storage is full, and the "settings"->"storage" shows separated internal storage full and SD card with 10gb free.
Why it's not working? Is this a known issue?
I have a Moto G3 with Android 6.0.

Tap on SD card from screen on screenshot than tap on 3 dot menu or menu key if you have it and then choose migrate data.

@ЈеднорукиКрстивоје I haver only "rename", "eject" and "Format as portable" options there.

Well, in that case your  sd card is primary storage, and why you see only one storage when connect to pc - that is normal when you adopt whole sd card. I don't know why but is seems like android is little messed up in your case it should install new apps to SD.  However if you want to be able to install apps than you'll havr to move some apps from internal to adopted storage. Maybe cleaning cache could help you but that is temp fix.

Can you reformat as internal again ? If need be after making it portable and then internal. Also it appears that it is a 32 Gb card which is fine but if it is 64Gb card then it is a known problem

Eject SD card and if the phone works or if contents of SD readable on a laptop then you can be sure that adoptable-storage didn't work as expected. Hence above recommendation to reformat as portable and then adoptable-storage

on the next day, the sdcard did stop working, I had to buy a new one, now I'm using as external storage.

All the apps you install go into Internal Storage by default.
You need to move them to your SD Card, even if you formatted it as internal storage.
Go to Settings -> Apps -> (Any Individual app) -> Storage -> Change -> SD Card.

PS : But you can't do this for most Google Apps and System Apps

Isn't the "format as internal" suppose to treat the sdcard as internal, and show me a single storage, so I shouldn't care bout sdcard vs internal storage?

authors: Једноруки Крстивоје


text:
'Engineer mode test tool' app - What do the codes do?
I was curious and installed the Engineer mode test tool app. It listed 'codes' and for most of them it wasn't written what they do. I couldn't resist stupidity and entered a few of them.
After entering one of the codes (listed under Google Service Framework in the app) my phone rebooted and the Android icon was shown and it said "erasing". I had a mini heart attack because I thought I had reset my phone. A white screen showed up saying something like "Enter password to unlock device". It said I have 30 attempts so I tried entering every password that I could remember but nothing worked. The counter said that I used just one guess no matter how many passwords I entered.
In the end I had to factory reset my phone because I needed it, but my data was on the SD card; as it was adopted I lost all my data.
What have I done by entering that code?

What was that screen that I saw?

What was the code? Where did you enter it?

@Dan Hulme I can't remember the code. I enter it in dialer

This looks like a case for Sherlock Holmes.
You can try reinstalling the app, and checking / trying a few things that will help you remember what you did and what you got (the object of your question), in what you would consider a harmless way.
The follwoing lists of codes may also help you remembering; there are many other lists around. Keep in mind that some of the codes are exclusive to specific manufacturers and may not work on all brands/models/carriers.
Showing details on your case in the OP might help.
Comparing with the codes listed under Google Service Framework in the app would help narrowing down the hunting.

110 Android Secret Codes, Hidden Menu, and Dialler Codes.
Secret Codes : Use at your own risk.
Hidden Android Secret Codes & Their Usage.
Android Hidden Codes.

Once you know the code you entered, it is likely trivial to answer your questions:

What have I done by entering that code?

  What was that screen that I saw?

I'm not much interested in discovering what code it was, than what it done, I described what screen look like, I'm curios and sure I'm not the only one who been there.

@ЈеднорукиКрстивоје - Finding out the code is clearly not the goal. But it will put you on the verge of it. See updated answer.

Yeah I could reinstall app but in that app when tap on some code it has same effect like you entered it in a dialer, and I don't have nerves for factory sesrt again. I took a look on theese codes but none of them is responsible for screen I've gotten.

@ЈеднорукиКрстивоје - Using the little information you have... How many codes are listed under Google Service Framework, in the app? Are the numbers for those codes also listed, or only a description of their action?

There is 9 codes under google services, first one is lg hidden menu (or at least it says that) for other codes it only says google services framework or google play services. I tried googling some of them but didn't fin anything usefull.

@ЈеднорукиКрстивоје - A few carifications are likely needed: 1) I guess "There is 9 codes under google services" means "There is 9 codes under Google Service Framework", is that so?. 2) Still you did not mention if the dialer codes are listed. 3) It would be useful if you post images of whatever you see under Google Service Framework. Posting as much information as possible helps others help you.

authors: Једноруки Крстивоје


text:
How to port-forward internet using Android Hotspot to PC?
I have a Moto G3 Turbo with Android 6.0.1 Marshmallow. I use the phone to make WiFi hotspot so I can use internet on my laptop.
I was able to do a successful Metasploit over WAN/Internet, and for that I need to port-forward to my laptop. But the problem is, I don't have any modem or router to actually go to setting login with admin password or anything like that.
What can I do? Is there any app that can do this and whether it needs root permission?

Generally you can't, not because Android isn't capable, but because in general carriers don't allow inbound traffic of any kind to mobile devices. You may get an IP address from your carrier, but that is just for outbound traffic, unsolicited inbound traffic (the kind you need port forwarding for) is nearly always blocked by every carrier world-wide. Add to that most carriers don't give you a public IP anyway, so even if you did get port forwarding to work, you likely couldn't use it.

That's not true, if your application could not receive inbound traffic how you getting message to your phone.

@ShawnThomasRheal by opening an outbound connection and keep it open for replies. That's what most apps use GCM for – so not every app has to keep its own connection open.

In most cases you won't be able to make inbound connection when using Mobile Data because of CGNAT and firewalls at ISP level, as explained by acejavelin in comment. To know the problem in detail and how it can be worked around see How to connect to Android through SSH over 3G/4G public IP?
However if you can reach your phone from internet, extending this access to a connected host (PC in your case) is not a problem. Port forwarding is done with routers, and when being used as a Wi-Fi hotspot (or with USB tethering), your phone is in fact acting as a router.
ROOT SOLUTION:
In order to forward port, you need to do Destination Address Translation (DNAT) using Linux kernel's builtin firewall userspace tool iptables.
First make sure that kernel is configured to forward internet traffic (already set when hotspot is ON):
~# echo 1 >/proc/sys/net/ipv4/ip_forward

Let's say the IP address assigned by hotspot to PC is 192.168.43.10 and you want to forward SSH default port (22):
~# iptables -t nat -I PREROUTING -p tcp --dport 22 -j DNAT --to 192.168.43.10

This is the simplest form of Port Forwarding.
If default POLICY of FORWARD chain in FILTER table is not ACCEPT, define rules explicitly to accept the forwarded packets:
~# iptables -I FORWARD -p tcp -d 192.168.43.10 --dport 22 -j ACCEPT

Also accept outbound forwarded traffic if needed.
NON-ROOT SOLUTION:
On non-rooted devices you can use adb or some other minimal TCP/UDP server like netcat or socat for port forwarding. Note that this won't work for ports under 1024. To forward port 2222:
~$ adb reverse tcp:2222 tcp:2222

Or on phone:
~$ nc -lk -p 2222 -e nc 192.168.43.10 2222

* nc is a busybox applet. But make sure that you get the right binary, there are multiple implementations of netcat.
* Use -u option to forward UDP port.

However nc accepts only a single connection at a time. Use socat or ncat for more advanced options, e.g. from Termux:
~$ socat tcp-l:2222,fork,reuseaddr tcp:192.168.43.10:2222

See Using netcat for port forwarding.
There are also apps like Fwd (it's open-source, I have no affiliation) meant for port forwarding.

SOURCE:

NAT-HOWTO

However if you can reach your phone from internet. What do you mean by this line. How do I know whether I can reach internet or not?

@AkashKarnatak see the line above: How to connect to Android through SSH over 3G/4G public IP?

Wasn't able to do that through 'adb reverse' (although it should work from what I've read), but ncat worked beautifully right from the first time! I am already running multiple instances of it, for redirecting multiple ports, like RDP and SMB.


text:
How to unhide apps that has been hidden in the play store?
On the play store, I can hide apps I previously installed/bought by clicking on the "x".
How do I reverse this process? Thanks

Well pressing the install button will make they appear there again, duh.


text:
How to disable speaker independent of volume settings
I'm a deaf person with a Nexus 5X.  I almost never want my phone emitting any kind of sound.
When I had a Samsung Galaxy S4, there was a configuration option to mute all sounds independently of the various volume settings.
Since then, Android has released their do-not-disturb mode.  That doesn't really fit in with my usage because that ties in with the whole notification system.  I want my phone to function as if it was not in the DND mode, just without sound.
I looked into key remapping solutions to prevent accidental buttonpresses (phone holder, pants, whatever), but that doesn't prevent applications from changing the volume.  e.g.  Google Duo assumes that all videophone calls users will want audio regardless of the audio settings prior to opening the app.  That absolutely makes complete sense, so that's why I'm asking for a lower-level way to disable the speaker.
I did look at several muting-related questions, but those seem to be more of one-time actions - "I want to turn off sounds right now, but I'll adjust them later"
So, the question is, as the title states, how to selectively stop the speaker from functioning that cannot be overridden by any app.  How would I proceed to go about doing that on a Nexus 5X?

Simple solution is get someone to physically disable/damage the speaker by taking off the screen and removing it or cutting it off the battery supply. Probably get a tech friend to do it, or one of those phone repair shops. That way it's impossible to make any sound

That would also egfectively disable phone calls.

I recently updated and found a similar "mute all" function missing as well, so I feel your pain :/
My recommendation is to use a very powerful app: Automate
Automate allows you to monitor various activities on your phone and then respond to them. The catch-all method to accomplish what you want would be to create a simple loop of: if volume change -> set volume zero
While that sounds easy enough, there are some pitfalls: multiple loops based on ringtone, notification, media, etc., and, depending on how your phone implements it, possible high battery drain.
So on to my actual recommendation (still using Automate): monitor for a specific app, e.g. Google Duo in your example, and automatically set volume to zero when it changes it. This is what I do.
In conjunction with that, to alleviate the issue of accidental button/toggle pressing: you can set default ringtones, notifications, etc. to "silent" (go into sound setting and pick a sound. "Silent" should be first on the list). If that's not satisfactory, Automate can also save the day. It can detect if the phone ever leaves vibrate mode and set it back to vibrate (or silent, etc.).
You've got a few options, but I highly recommend the app. It's a very powerful tool that I believe is fit for just this sort of application. Right tool for the job :) Lemme know if you need any clarifications or extra help getting it set up, and best of luck!

just use a dummy audio jack without speakers


text:
mt6537M Resize Partitions
I've a rooted smartphone with lollipop 5.1 and chip mt6537M...
Store:

Emulated legacy (5.35 gb media + store) and 1gb for system rom (300 free T_T)

Objective:
I would like change the size of partitions... Note: It haven't EBR Instead has tee1 and tee2, but I don't know about tee partitions...
Possible way and question:
I was thought maybe with cat or dd command could clone mmbclk0 and resize in a pc or with internal tools from recovery mode (TWRP 3.0)
example:
 "cat /dev/block/mmcblk0 > /external_sd/allpartitions.cat"

Someone could guide me by the best way...? Thanks

What do you mean to clone with 'cat' command?  'cat' is used to display, merge files.. I think if you want to resize partitions you'll have to deal with kernel and maybe hard brick phone if you don't do it right.

clone with cat /dev/block/mmcblk0 > /external_sd/allpartitions.cat

@ЈеднорукиКрстивоје Can you guide me ? thank you dude

You won't manage to do anything with 'cat'. Sorry I can't guide you this is mostly guess, but accurate one I think. Ask on XDA maybe there is someone who can help you, or google it there must be some tutorial.

I don't understand you. Of course you need an accont to open thread there..

Yes but If i want publish a post, I must win points with answers xD @ЈеднорукиКрстивоје

authors: Једноруки Крстивоје


text:
Removable MicroSD card detected but not mounted
I have recently switched from the stock ROM (4.4.2) for my Samsung Galaxy S3 Neo+ to Cyanogen 11 (4.4.4 - I wiped data, system and cache partitions before doing this). I have a 64GB external sd card formatted to FAT32 which was working fine when using my stock ROM but Cyanogenmod will not mount it anywhere. It detects the presence of the removable sd card as I am offered to erase it in the storage section in the settings. However, there are no files under /external_sd or /storage/sdcard1.
Is there any way I can fix this and mount my external sd card?

I solved this by converting my external SD card from FAT32 to NTFS using MiniTool Partition Wizard.


text:
Change headphone left-right balance on Android 7
What is the best way to set the left-right balance on a pair of earphones/headphones? I've looked into it, but I can't seem to find an easy way to do this.
I am on a rooted Nexus 6P on stock android 7.1.1
Does anyone know of a way to do this? I know very little about android development, so a simple solution would be best (preferably an app).
Thanks in advance for any help.

Got the same problem.
My solution: root the phone with Magisk, install de Viper module and set the settings.
There's a lot of tutorials in xda, and it's pretty simple.

If you don't have root, there are many apps on the Play Store which can do this. Just search for stereo balance controller and pick up an app which can run as a service and equalise the system audio.


text:
Android: Where does android store system properties key/value
I want to change device's serial number. I have researched and finding some places that android stores prop file:
/default.prop
/system/build.prop
/system/default.prop
/vendor/build.prop
/data/local.prop
/factory/factory.prop

On my device, there are just 2 places for storing prop file:
/default.prop
/system/build.prop

But I view those two files and don't see serial number storing here. I also see that serial number is storing at: /data/property/. But as I researched, this directory is just a memory mapping. So I have tried modify and reset device, all values come back to normal value.
Please tell me where android store imei/serial number ...
Thanks

Device Serial
I have several devices sharing the same serial (namely the phantastic 0123456789ABCDEF), so I've been looking for a solution as well a few years ago, and found it. Of course, it requires a rooted device.
adb shell
su
mount -o remount,rw /system
vi /system/etc/install-recovery.sh
# edit, save and exit
mount -o reount, ro /system

And here comes the line to add to /system/etc/install-recovery.sh to make the magic happen:
echo -n NEWSERIAL123 > /sys/class/android_usb/android0/iSerial

Of course, replace NEWSERIAL123 by the serial you want the device to use. After the next reboot, this should be in effect.

Device IMEI
As for the IMEI, you'd better not touch that. Legal issues – apart from the fact that different brands deal with it differently.

thanks. about serial number, I have updated as you said but no effect. I use some APIs such as get value from BUILD.SERIAL or ro.serialno ril.serialnumber sys.serialnumber ... so it returns my original serial number.  Which API do you use to get above value?
About IMEI,  it's more important in my case. Can you give some detail about changing those or teach me your method to find out those things. thanks :D

I've tried via setprop as well as by adding it to one of the *.prop files without success. The only way it worked for me is what I described in my answer. And sorry, I cannot give any advice towards IMEI, never played with that (no need).

sn is stored in same private partion(such as misc). And it's read by bootloader and passed to kernel by boot cmd(ro.boot.serialno). Then init will set it to prop ro.serialno.
See this:
http://androidxref.com/5.1.1_r6/xref/system/core/init/init.c#752

I don't think that changing IMEI is done like that. It's not stored in any .prop file. Maybe even if you change it you'll screw your phone badly. If you still want to change it you have xposed module called 'IMEI changer. I'm curios why do you want to change it?

I have read source code of IMEI changer. I change only Build.SERIAL and hooking some methods and it is not enough. In other word, if the real value of serial number (ro.boot.serialno) doesn't really change, always have a non-rooted method for getting real value.

about your last question, you can find out why IMEI changer (and other apps for chaning imei, serial number ..) have many downloads. You will answer that by yourself. In my case, I need to change for hiding some information.

@hqt so you want to change a serial number? I guess that isn't stored in system files because manufacturer determinates s/n and imei. Well I know that IMEI has relationship with SIM card so every network provider have all imei's of phones in which that sim card was. And also know how many sim's was in particular phone. So however is someone have resources to look up on you with IMEI - changing will not help you too much.

@Izzy he asked "where android store imei/serial number" in the end. But however you are right, I have missed the point.

authors: Једноруки Крстивоје


text:
How to type a curly brace ("{") in CyanogenMod 13?
By chance, I got hold of a Samsung Galaxy S III (S3) Mini, rooted it, and upgraded it to CyanogenMod 13 (Android 6.0.1). When trying to connect it to my WiFi network, I could not do so because my WiFi password contains a curly brace, and it seems I can't type that with the virtual keyboard.
I am quite sure there is a way to do that, so how to type a curly brace in CM 13's AOSP keyboard? Should I install another keyboard?

On Samsung keyboard:
Touch Sym, then 1/2 the curly braces are under 7 and 8.
On AOSP Keybord, Google Keyboard, Gboard:
Touch ?123,  then =\< you'll get all symbols there.


text:
Oppo F1s stuck at Boot logo or Bootloop
I flashed Stock Rom on my Oppo F1 using Sp Flash tool. software indicate green right but phone didn't boot. Now what i have to do? how to solve this

what rom did you flash?


text:
How do I make reverse tethering work?
I've been trying this for a couple of days and I've to say it's not getting any better. I've tried stuffs from here and here, but unfortunately none helped.
So if there is any alternative solution to use internet on my phone from my laptop please do humor me.

Please do not suggest opening a hotspot from my laptop as my hardware doesn't support the hostednetwork capabilities.

Note : I'm running lollipop.

Have you already checked with out reverse-tether tag-wiki and followed up to How to use PC's internet on Android phone through USB cable? Several detailed instructions there. Tried them?

Please take a look here for more related methods: http://android.stackexchange.com/a/171049/209414

After being confused and helpless for couple of days I found a very clean and simple solution that only involves installing a small app that neither needs root nor configuring anything on your laptop. (It needs drivers though.)
Fun fact: You can run this on all operating systems(Mac, Linux, Windows).
Things to download

Reverse tethering app for android (This app is free for download and gives 10 minutes of connection every 30 minutes.)
Reverse tethering server app on Laptop

ReverseTethering Server Requirements

Java Runtime Environment 1.7 or newer (Download here)
x86 Processor

Instructions

Enable USB Debugging in the Developer System Settings on your device.

Connect your device to your computer via a USB cable.

If you are using Windows, you have to install USB drivers for your Android device now. These drivers are typically provided by the device manufacturer as a download. For some devices, Windows can automatically find, download and install the drivers when you connect your Android device for the first time. Please note there is a difference between MTP drivers (for file exchange) and ADB drivers (which RevTet needs). Many computers automatically install the MTP drivers, but not the ADB drivers. In order to find the appropriate ADB drivers for your device, please do an Internet research.
(If need be: Download ADB drivers from here.Takes less than a minute to install.)

On Linux, you have to set up your system to recognize the Android device.
Download the right archive of the Reverse Tethering server application from above mentioned link.

Unzip the downloaded file
On macOS: Double-click ReverseTetheringServer.app
On Windows: Double-click ReverseTetheringServer.exe
On Linux: Double-Click ReverseTetheringServer.jar

Also remember
Transfer rates are below average. You won't be getting A-one performance using this method.

I'm the author of this app. The speed should actually match that of a Wifi connection.

@FD_ you are a life saver. Awesome work with the app. There is a small problem - Internet worked fine(Browsing through play store and instagram) but downloading from play store is not possible. Is there anything I should do?

Check out Gnirehtet from Genymotion. It's the most simple solution I've come across.  There's no root required. The only requirements are that you should have Java 8 and recent version of adb configured.
Root: Not required
OS: Linux, Mac, Windows
Android device : Android 5.0+ [API 21]
Steps

Download the latest version of gnirehtet from this link.
Extract the zip
Connect the phone to computer with usb debugging enabled
Run ./gnirehtet rt
Accept the VPN request on phone and enjoy.
To stop, Ctrl+C

References:

https://github.com/Genymobile/gnirehtet
http://openjdk.java.net/install/index.html


text:
Is there a cache memory in android smartphone as there is in laptop/desktop?
I know there are l1/l2/l3 cache in laptops but is the same kind of cache memory available in android smartphones. Also here in this link when website writes about lrucache what does that mean ?

Look at the Wikipedia disambiguation page for different definitions of cache.
Speaking of cache memory: yes there is, in a similar way to desktop processors. Take Qualcomm Snapdragon 820 as an example:

L1 Instruction Cache per Core:    32 Kbyte I-Cache
L1 Data Cache per Core:   32 Kbyte D-Cache
Total L2 Cache:   1536 Kbyte L2

As for the "lrucache" you talked about, it's merely a part of memory space allocated to store content (in that context, bitmaps). It's much more similar to the other caches e.g. Web Cache on the page, in that it's purely software based - no dedicated software, dynamically allocated and released on storage. Different concept.

Yes, there is a cache, but depending on your phone, I can't tell you exactly where yours are. In the Samsung Galaxy Series (they're similar across the line), you go into your app manager. The recent download makes it really difficult to clear your caches, but, you go into each app, wait for it to come up, click on the storage option, and at the bottom of each app, you will see "clear cache". Do not clear your data, unless you're uninstalling the app. Hope this helps!

-1: different concept of "cache" here.


text:
How to register new extensions as text files (.Rmd)
I have R markdown (.Rmd extension file, uses Markdown syntax) file on my Dropbox. Regardless of trying to open it directly from Dropbox application or exporting it to my Android device, I see information that I have no application to open this file.
There was question about many extensions:
How do I open a text file of any extension in Android?
but suggested answer does not work for me - I have DroidEdit, but my Android phone still claims that it is unable to open .Rmd file.
Obviously I can change an extension from .Rmd to .txt, but this is rather not efficient way of seeing files.
Is there any possibility to say Android 6, please treat .Rmd as text files / register new files extensions?
Please note that Dropbox app does not show me open file possibility as suggested in following thread:
How to open text files with DropBox on Android?
EDIT:
Sample R Markdown file content:
---
title: "Mateusz"
author: "Sample R markdown file"
output: pdf_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

## Including Plots

You can also embed plots, for example:

```{r pressure, echo=FALSE}
# Here is R! code:
plot(pressure)
```

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

Try opening with Markdown X

An alternative is using ES Explorer: you can open any extension as text.

Unfortunately it seems that Markdown X is not handling .Rmd extension. On the other hand ES Explorer workaround works.


text:
Gparted for android
I would like to partition my sd cards using gparted on android.
I would like NTFS support along with the standard EXT formats.
Is this possible?

Why would you want to have NTFS on Android? Afraid even if you could create an NTFS partition, Android wouldn't be able to use it. AFAIK there is no native NTFS support, at least not on most devices. Might help if you specified your device and Android version.

Why don't you just use a pc to partition them with gparted?

@jiggunjer interesting because it sounds like a fun idea.  Honestly I am partly trying to use Phoenix OS as a boot cd so I would like to see if I could get gparted run on the boot cd.

@Izzy I don't care if I can access it from android just looking to partition.  I'm running KitKat on a motorola.

@Izzy Not native, but there is. Paragon made their NTFS driver available on android long ago: https://play.google.com/store/apps/details?id=com.paragon.mounter They claim it also works for SD cards.

@TJJ Yeah, there are even some more :)

old and effective method ... just follow the steps https://forum.xda-developers.com/crossdevice-dev/sony/ntfs-mount-tool-android-t2920856

Android surely don't have GParted. However a CLI version of GNU parted is available in a variety of custom recovery builds. Even if not, you can find a static build of parted easily with a little Googling. Transfer it to your phone, reboot to recovery and run it with 'adb shell'.

Well, there's AParted on Android ;)

In most Android kernels is the header file "(Kernel root)/fs/ntfs/ntfs.h" already there, but nothing else. You have to download ntfs-3g and compile it together with the kernel - what means, you have to dig into the Android/ARM Kernel development for your device. But beside of that, for (Micro) SD/SDXC storage devices, NTFS (as long with other Journaling Filesystems) is the worst recommendation (SD Flash difference to SSD Flash,  Wearleveling etc.)