text:
Termux closes after loading llama LLM
The same happens with alpaca.cpp.
The model loads and then termux closes.Sometimes it doesn't close, but instead gives final message : " : killed", where it shows some number. I'm not sure it might be PID.
I've created additional swap file. I'm trying to run this on Samsung Note 8 with 6GB ram.I have swap file 4.5GB.
I don't know what i'm missing, on google I see that other ppl, run the same models succesfully just by build-ing the git-project and then run it successfully.
I run Android 12 Lineage OS 19
Do you have suggestion?

Do you use the outdated Termux version from Google Play Store or the version from F-Droid?

Welcome to Android Enthusiasts. For those who are not familiar with it, could you [edit] and add some more details about "Llama LLM" and "alpaca.cpp"? What and how did you try to run it?

I use the F-droid version. I used "make" to build git projects. When i start the script, it loads the model and then termux closes...Or sometimes a messege appers with some number and it says "killed",.

Just making sure you've disabled Android 12's phantom process killer: https://github.com/termux/termux-app/issues/2366 (Not sure if LineageOS changes the default state).

Phantom process killer is disabled


text:
How to solve error in SP Flash Tool?
My operating system: Artix Linux
My image fastboot: XIAOMI REDMI NOTE 9 (MERLIN) MIUI V13.0.2.0 ANDROID 12.0 (merlin_global_images_V13.0.2.0.SJOMIXM_20221013.0000.00_12.0_global)
Phone: Xiaomi Redmi Note 9
Go to folder bypass. And run command:
sudo python main.py

I got output:
[2023-06-16 22:33:10.319185] Waiting for device
[2023-06-16 22:33:38.939744] Found port = /dev/ttyACM0
[2023-06-16 22:33:39.045127] Device hw code: 0x707
[2023-06-16 22:33:39.045223] Device hw sub code: 0x8a00
[2023-06-16 22:33:39.045265] Device hw version: 0xca00
[2023-06-16 22:33:39.045301] Device sw version: 0x0
[2023-06-16 22:33:39.045336] Device secure boot: True
[2023-06-16 22:33:39.045372] Device serial link authorization: True
[2023-06-16 22:33:39.045406] Device download agent authorization: True
[2023-06-16 22:33:39.045440] Disabling watchdog timer
[2023-06-16 22:33:39.045971] Disabling protection
[Errno 5] Input/Output Error
[2023-06-16 22:33:40.403658] Payload did not reply

lsusb output (after bypass):
Bus 001 Device 012: ID 0e8d:0003 MediaTek Inc. MT6227 phone

Now I run SP Flash Tool v5.2228.00 with command:
sudo ./flash_tool.sh

I got that error after clicking download:
ERROR : STATUS_BROM_CMD_STARTCMD_FAIL (-1073348607) , MSP ERROE CODE : 0x00.

Welcome to a Q&A site Android Enthusiasts Stack Exchange. Looks like -1073348607 is 0xC0060001 in hexadecimal. There's a thread on XDA for the same error code, or otherwise read another solution from the linked forum post. Let us know the result, or feel free to post an answer if it solves the issue. Good luck!

source: Stack Exchange

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

sort: votes


text:
How to redirect DNS traffic to dnsmasq on Android
I’m trying filter all DNS traffic using dnsmasq on Android (LineageOS). Here is what I did (thanks to the help of @IrfanLatif):

I installed it using termux:
pkg i root-repo && pkg up && pkg i dnsmasq
Then:
cp /data/data/com.termux/files/usr/bin/dnsmasq /system/bin/

On Linux it's possible to divert traffic to dnsmasq simply by editing /etc/resolv.conf and replacing nameserver 8.8.8.8 with nameserver 127.0.0.1.
But on Android there is no such file, however I can achieve the same using an iptables command (divert all DNS queries to port 5353):
/system/bin/iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5353
/system/bin/iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5353

I create the file /etc/dnsmasq.conf containing:
domain-needed
bogus-priv
no-resolv
no-poll
port=5353 # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< PORT
listen-address=127.0.0.1
no-hosts
expand-hosts
cache-size=500
log-queries

server=8.8.8.8
server=8.8.4.4

# Rules:
# Test block:
address=/bing.com/0.0.0.0

Now I can already start dnsmasq using the command:
/system/bin/dnsmasq --pid-file --conf-file=/etc/dnsmasq.conf <&-
I can also look at the logs and see that dnsmasq is running:
logcat | grep dnsmasq
05-27 19:17:08.039  7988  7988 D dnsmasq : forwarded google.com to 8.8.8.8
05-27 19:17:08.039  7988  7988 D dnsmasq : forwarded google.com to 8.8.4.4

But on the phone there is no internet access. This is the first problem I am having.

The second problem happens when I try to start dnsmasq on startup. Thanks to the input from @IrfanLatif, I flashed Magisk, and I have access to setpriv command.
However, when I try to set a UID to dnsmasq:
/data/data/com.termux/files/usr/bin/setpriv --reuid=999 --regid=999 --clear-groups /system/bin/dnsmasq --pid-file --conf-file=/etc/dnsmasq.conf <&-
I get the error:
dnsmasq: failed to find list of interfaces: Permission denied
This is the second problem I'm having. I'm still trying to figure out what's going on. Any help from anyone will be much appreciated.

Recent Android versions have in the extended network settings an entry to specify a private DNS server. This setting is intended to specify a large DNS server like Google or Cloudflare which is capable of DNS over HTTPS or something similar, so I don't know what happens if you point it to a standard DNS server that uses UDP without further protection.

@ellat it will create a closed loop. You need to run dnsmasq with an unused UID (like 999) and then bypass it from redirection using iptables ... --uid-owner ....

@ellat you need to use something like setpriv or priv_exec (it's mine), not chown. Also you need to do iptables ... --uid-owner 999 ... -j ACCEPT, not ... -j DNAT ... (i.e. send these packets to internet, not to 127.0.0.1:53).

@ellat it's quite simple if you understand the basics of Linux commandline and networking. See explanation in my answer here.

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


text:
Error when running dnsmasq executable on Android
I am trying to build dnsmasq DNS filter on Android (LineageOS). This is what I am doing:
I download the code from here:
https://thekelleys.org.uk/dnsmasq/
I downloaded the Android NDK. Then I export the necessary variables:
export NDK_PROJECT_PATH=/home/myuser/Library/Projects/dnsmasq-Android/android-ndk-r26b/
export ANDROID_NDK=/home/myuser/Library/Engineering/manuals/Android/dnsmasq/android-ndk-r26b/
export PATH=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH

Now I am ready to compile. So I run:
../android-ndk-r26b/prebuilt/linux-x86_64/bin/make clean
../android-ndk-r26b/prebuilt/linux-x86_64/bin/make ARCH=arm64-v8a

Now it compiles fine. So I copy the executable to the phone:
adb push dnsmasq /data/local/tmp/dnsmasq
adb shell 'chmod +x /data/local/tmp/dnsmasq'
adb shell '/data/local/tmp/dnsmasq --version'

When I run the last command, I get the error:
/system/bin/sh: /data/local/tmp/dnsmasq: not executable: 64-bit ELF file
What is going wrong? I tried replacing the make architecture with 'arm64', 'arm64,v7a' but did not make a difference..

Before uploading the binary to the phone you can test the binary using file and/or readelf command regarding which platform /CPU architecture the executable is targeting.

Thank you. file dnsmasq gives this: dnsmasq: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2957f2a589e1b2e1d7ab9c97a89c9121a6bcd5f4, for GNU/Linux 4.4.0, not stripped I have no experience with Android so I can't tell what's wrong about it..

As you can see you have built a 64bit version but not for arm but for x86. I am not a compiler expert but according to this site the first path after prebuilt is the target tag thus it is no surprise you compiled the binary for x86_64 and not for arm64-v8a.

Thanks. I'm sorry but I still can't find the solution for this particular problem.. I found these instructions: https://developer.android.com/ndk/guides/other_build_systems#non-autoconf_make_projects But none helped..


text:
Help: LineageOS 20.0 stuck in boot animation
I have LineageOS on Google Pixel 4A.
Yesterday I restarted it, and it was stuck in the boot animation!
I tried upgrading my LOS 19.1 to LOS 20.0 using instructions here https://wiki.lineageos.org/devices/sunfish/upgrade But it looks the problem isn't solved, and the phone is still stuck in boot animation.
Can someone help me please? I'm currently without a phone and I don't want to lose my data..

I am not familiar with LineageOS but to me it looks like flashing stock Pixel image (and losing data) is the only way now. You can subsequently switch to LineageOS //Choice is between having a functional device or losing data

Thank you, I managed to delete the file, but the phone is still stuck in boot animation! I updated the issue above..

I ended up formatting the phone completely..


text:
ADB Backup without Unlock Notification
I'm trying to use adb with a device running Android 11.
I confirmed it's connected and recognized via adb devices, but I can't get the actual app backup because the device does not display the usual unlock and backup notification screen (it's a Chinese device that might have some custom changes).
Is there any way to force the backup without the notification screen?
EDIT: The device generally doesn't have a lock screen or unlock pin, this might be part of the issue

You can check the backup command implementation on the device by executing adb shell bu help. If adb shell works in general, but this commands fails, then the backup system on your device is bugged.

@Robert 'bu help' displays the usual help dialogue (backup [-user USER_ID] etc.)

Ok, then at least but is present and works. Had once a Lenovo tablet where bu was totally screwed... Then I would recommend to continue using directly bu so may be you get a different message and learn what is going wrong.

@Robert do you have a suggestion for the commands I should try? As per my edit it's potentially an issue with the device running a modified A11 version that doesn't have a lock screen.


text:
How to stop YouTube from auto-translating the audio of some videos?
Now it is possible to add multiple audio files to one video for different languages on YouTube. When I want to listen to an English video, it chooses French audio because I'm French, and I have no way to change that on the Android app.
I changed my location in the settings to the United States, but that didn't change anything. I also set my preferred language to English (United States) in my Google settings, but that didn't change anything either.
How can I listen to the original audio of a video that is not in my native language in the YouTube Android App?

EDIT: The only solution is to change the language of my phone to the original language of the video I want to listen to, which is very annoying. I would like to know if there is a better way.

Welcome to Android Enthusiasts. Possibly related to YouTube and localization: Disable title translation of YouTube videos.

Nope, the only solution is to change the language of my phone to the original language of the video I want to listen to, which is very annoying. @AndrewT.


text:
How to factory reset a bricked Oneplus 3T?
A friend gave me a bricked oneplus 3T and asked if I could do anything.
I assume bootloader is NOT unlocked and usb debugging NOT enabled.
I’ve tried msm download tool but I only was able to use the oneplus 3 one (instead of 3T). any time I try msm I get Sahara error after a few seconds. Looks like the phone changes state when I start uploading OOS.
I did manage to get to adb sideload and upload the OOS but the screen is still black after rebooting.
I’ve tried multiple usb ports 2.0 and 3.0 and different usb cables. I also tried other computers (always win 10).
If anyone would like to help I can provide more informations,
Anyway thanks for reading.
Update : I’ve managed to use fastboot oem unlock and then ‘volume up’ two times then ‘power’ button to accept if anything is displayed on screen and I think it worked because now I can flash recovery and boot. I flashed twrp but when I boot in recovery I get a black screen. When I do adb shell I can use commands like twrp sideload

It works better the other way round.  You provide all the pertinent information and then someone will try and help.

How did you manage to brick the device? Considering the age of the phone it could be a hardware problem like dead Flash memory or some other chip.

Sorry if I did not provided enough info, I’m new to android stack exchange.
I’ve bricked the phone flashing the wrong os (op3 instead of op3T) since then I have a black screen and sometimes vibration. I randomly get access to adb or adb sideload or fastboot while playing with the power and volume keys. The point I don’t understand is why my phone is disconnected when I start the job in msmDownloadTool. I managed to skip the hwid check but then the phone disconnects and instantly reconnects and I get Sahara communication failed error or sometimes it’s stuck on firehose hand check failed.

@Robert yeah it could be but I don’t know how to make sure if it’s hardware or software issue. Would you have any idea of how I could make sure or even get a clue ?


text:
ADB | How do I Authorise Amazon FireTV Stick via. USB? - to run shell script on boot
Goal: Follow this tutorial, to run a shell script on boot.
Despite following the tutorial and trying various solutions, I am still unable to authorise the ADB connection. I'd greatly appreciate any help in resolving this issue.
Linux:
(base) me@laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:    22.04
Codename:   jammy

(base) danielbell@laptop:~$ curl ifconfig.me
109.144.211.17

FireTV Stick is in Developer Mode and I've both turned OFF and ON and restarted several times:

ADB Debugging
Apps from Unknown Sources

In 'My Fire TV' -> 'Network':

'IP Address:' 100.120.226.156
'DNS:' 192.168.22.22

(base) me@laptop:~$ adb version
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb

(base) me@laptop:~$ adb kill-server
(base) me@laptop:~$ adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully

(base) me@laptop:~$ adb devices
List of devices attached
G070L81693920FDB    unauthorized

(base) me@laptop:~$ adb connect 100.120.226.156
missing port in specification: tcp:100.120.226.156
(base) me@laptop:~$ adb connect 100.120.226.156:5555
failed to connect to '100.120.226.156:5555': Connection timed out

(base) me@laptop:~$ adb connect 192.168.22.22
missing port in specification: tcp:192.168.22.22
(base) me@laptop:~$ adb connect 192.168.22.22:5555
failed to connect to '192.168.22.22:5555': Connection timed out

Welcome to Android Enthusiasts. From the output of adb devices, looks like a device is already connected, is that the FireTV stick?

Yes; the device mentioned in adb devices is the FireTV Stick. I kinda doubt that it is connected, given that whenever I run either of the adb connect commands there's a different failure.

Hmm, I was actually curious why it's listed on adb devices then. Was it connected using USB cable instead (I don't know if it's possible or not)?

Yes; it's connected via. USB cable

Did you see this to make adb devices authorised? I saw you are connected on USB but just may help

The tutorial requires using adb shell. That needs your Android device to be in Developer mode, which you've done, and requires you to use its screen to accept the debugging key when it's connected to your computer. Is it offering that? Have you ever used adb shell on any other Android device?


text:
Stuck in a bootloop after unexpected shutdown
Is there any solution for corrupted /data/system/packages files (packages.xml, packages.list) after a unexpected shutdown, without the need of formatting the entire data partition?
My phone ran out of battery, and after that, it got stuck in a bootloop. Searching online, I found this post by the user sbrm1 (Marshmallow not bootlooping, but not starting) with the same issue, and a possible solution posted by the user DvdGiessen. However, as reported in the comments, the solution posted by him no longer works on newer versions of Android (confirmed by me). Instead of generating new UIDs for the apps, the system is deleting all of them.
If anyone has any solution or suggestion for the problem and can assist me in resolving it, please leave a message.


text:
Block whatsapp channels
My phone, a galaxy s20 fe, recently updated whatsapp bringing along with it 'whatsapp channels'. Is there a way to block or get rid of the new whatsapp channels update?
Thanks for your time

Since this is an official feature of WhatsApp, I don't think there's a way to block/get rid of it other than using a 3rd-party/modded WhatsApp app, unless they finally add that options. Using the older version may only borrow some time because WhatsApp usually forces a minimum version after a certain time.


text:
How to set custom boot logo On Samsung a52?
I want to set custom boot logo (Not boot animation) on Samsung A52 (SM-A525F) powered with Qualcomm Snapdragon. There's no logo.bin or splash.bin in my official firmware.

That would most certainly require rooting the phone to get started.
Be noted that rooting the device and messing with the OS could have certain implications like your device failing to pass the Play Integrity API checks. This new API is used by developers and manufacturers to determine if your device is trustworthy and unmodified, which is always a good thing.
As an Android developer I advice against rooting the phone or messing with the OS in general, and specially not for changing a screen you probably haven't seen in months.


text:
What is .Lenovoreaper in Lenovo tablet
In my file manager (of Lenovo tablet) i saw a hidden file with the name .Lenovoreaper when i tried to open it, they asked if I wanted to see the file through html viewer or google chrome, It is a 17 byte file
some ON THE INTERNET say it is malware some say it is of the share it application which I do not have....but I do have to say the file manager which it was in had ads and I guess share it was also used in advertising....what are your thoughts
So what is this file and what is it used for

yes I did some say its malware some say its part of the shareit app which i dont have. I just want to know whether it can access my photos videos and files on internal storage

@beeshyams I did check some say it is malware some say it is of the share it application which I do not have....but I do have to say the file manager which it was in had ads and I guess share it was also used in advertising....what are your thoughts

According to this post and some others I’ve found, it’s something to do with the advertising experience in the ShareIt app. It’s not malware, but it should be safe to delete.
The reason it sometimes gets flagged is because of the advertising service inside of it.


text:
Remapping Wacom Tablet input on Android 11 using .idc files

OS: Android 11 with root access
Tablet: One by Wacom Small CTL-471

The Issue
I'd like to use my Wacom tablet on my Android device. Connected tablet using OTG cable is detected, but it suffers from invalid mapping resulting in heavily squished elipses when circle is drawn on the tablet.

In landscape mode, the tablet input does not cover the full screen area, resulting only in half of the screen being able to be controlled

What I would like to achieve

remap the tablet input so it is rotated counter-clockwise 90 degrees when the device is in portrait mode

and optionally

rotate in other directions in landscape mode aka. 90°/180°
define tablet min/max X and Y to limit the useable tablet area and match the proportions of the display - circle on the tablet = true circle on the device

What I tried
I created Wacom_Bamboo_One_S_Pen.idc file in /system/usr/idc/ with following configuration
touch.deviceType = pointer
touch.orientationAware = 1

The configuration file is detected when using dumpsys input | grep -i wacom
13: Wacom Bamboo One S Pen
  ConfigurationFile: /system/usr/idc/Wacom_Bamboo_One_S_Pen.idc
Device 13: Wacom Bamboo One S Pen

and it does work, as the result when using dumpsys input, the OrientationAware is now true
Parameters:
  ...
  OrientationAware: true

Now the mapping in landscape mode is better, but still invalid

Now I tried to modify xScale yScale and output.x output.y with samples found online to check if anything changes, like this
touch.deviceType = pointer
touch.orientationAware = 1
output.x = (raw.x - raw.x.min) * (output.width / raw.width)

or even using a simple float
output.x = 1.0

Even though the config file is detected in dumpsys input | grep -i wacom it seems to now be ignored as the values are back to default when checking dumpsys input so, OrientationAware: false even though the config file says it to be true.
What am I doing wrong - is it wrong syntax? My knowledge on this topic is very limited, and I've tried to check official documentation, but still without result, so I'm asking for help.
Update
Examining other files found on the web resulted in confirmation that it is the wrong syntax. I tried this instead:
touch.touchPosition.xymix = 1.0
touch.touchPosition.yxmix = 1.0

It seems like xymix and yxmix would allow to flip the input, but dumpsys input reports that these values are still 0.0. OrientationAware stays true with these values, indicating acceptable syntax.

Can this also be used to remap the hardware buttons on a Wacom tablet?


text:
How to stop or cancel download in chrome android
How to stop download in chrome download in Android.

To stop downloading some file in chrome you can do this:
Simply press cancel or x on notification where it shows that file is downloading or it shows remaining time, or you can longpress on that notification (if you don't have cancel button there) and press 'app info' when it opens app in app manager just simply force stop it.

Second method is ok. But first won't work for old version of chrome

@Sagar V  Yes, that's why I mentioned second method.

Here is the short way TO solve this issue.
Go to download FOLDER through Explore app or any files opening app.
Inside you will find the (current) DOWNLOADING file with extension.        .crdownload
Now you try to open the file, it will ask for "open with"
Then select any one to open the file.
Finally wait for sometime, download notification will disappear and download will STOP.

No. It won't. Since chrome lost focus, it is just paused. It will continue when you reopen chrome

Just  clear Chrome  data and cache

I just simply "Restart" my phone. When you on data connection, the downloading will begin automatically and the "Cancel" and "pause" options will appear

Goto to Apps / App Manager
Select Chrome
If Chrome is User Downloaded app You can Press "Clear Data"
If Chrome if System app, You can press
"Manage Space"
Then, Google Chrome Storage will get opened,
Then, Click on Clear All Data.
Note : Please note your all data will be cleared. So Backup your Bookmarks if needed.

Your answer is correct for clearing cache for downloaded files but question is about how to stop a downloading file in android?

Why would he cleared data to stop download?

Because, there is no other option available rather than clearing data right now!

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

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


text:
Rooted my phone now it won't turn on
So a couple of minutes ago I rooted my phone ( well I think I did anyway ). Then all of a sudden, it went to the lock screen. So I tapped the bar where you put in your password and it was kind of glitching, I don't know how to explain it. I put in the first two letters of my password and it switched off. Pressed the power button, and it wouldn't turn on. I held it down for about a minute. Still nothing. I tried pressing the home, volume and power button at the same time but still nothing. I know at least half of you will say "That's why I hate 'one-click' rooting" or "Should have done your research!" but I'm not good at this stuff, and I knew it was a bad idea. I just wanted to get cheat droid for a game I really like. I don't understand these things. I'll give you some information, but I don't know if it will help.
( By the way, my phone doesn't have a sim, it's my moms old phone, I have another question up telling what happened, but that's fixed )
Battery Percentage: 100% and it was charging
Version: 5.1.1
Name of phone : Samsung Galaxy Core Prime
Root app name: 360 Root
Please help me. I'm terrified, I never did this before :( Thank You.
EDIT : Alright, so I just restarted it somehow and it's on, turned out its not even rooted...?
I didn't link it up to my computer, as mine is broken. Does anyone have any idea on good rooting apps that are easy ( KingRoot won't work, and I don't have a computer that's working as I just said )

My number one advice for people that are new to rooting, flashing etc. is, read at least 5 times before you do it. One-click-root Apps are almost a thing of the past nowadays because manufacturers are stepping up their game with securing their phones.
In your case, that means that you would have to reflash the stock ROM (I doubt that everything is still in tact after you tried to root it) and root then root it properly, for both of which you would need a working PC. Also, you will loose all the data that's on your phone.
For reinstalling the stock ROM, you'll first need to download a few things:
Drivers for your phone: http://downloadcenter.samsung.com/content/SW/201306/20130610184736640/SAMSUNG_USB_Driver_for_Mobile_Phones_v1.5.25.0-retail.exe
Odin: http://odindownload.com/
Stock firmware: https://www.sammobile.com/ (I can't link this to you directly since I don't know your model number, just click on firmware and search for your phone)
Install the drivers, unpack the firmware, connect your phone via USB, put it in download mode (turn it off and hold volume down, home and power at the same time) and start odin. On the right, you'll find many buttons named "Modem", "PDA" and so on. Click on the buttons and select the corresponding file in the firmware folder that you extracted earlier (For "PDA" select a file called "PDA" + extension etc). After all buttons have the corresponding path behind them (only leave those out which you don't have a respective file for, differs in some firmwares), click start.
Now your phone should be running stock Android again.
For rooting your phone, you need to download:
TWRP: https://dl.twrp.me/core33g/twrp-3.1.0-0-core33g.img.tar.html
SuperSu: https://download.chainfire.eu/696/SuperSU/
Open up Odin again (after connecting your phone and putting it into download mode), click on "PDA" and open the twrp file you just downloaded, then press start.
Disconnect your phone and restart it holding down volume up, home and power at the same time. You should see TWRP come up. Now connect your phone again and copy the SuperSu zip you downloaded earlier to your phone. Next, on your phone go to "Install" and select the SuperSu zip, then swipe to confirm. After that, click "Reboot System now" and when your phone booted, you should be rooted.
Good luck :D

Nice answer. Plus, the one-tap-rootkit apps tend to step way too over their scope.

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


text:
Galaxy S3 high RAM consumption even on idle
I have a Galaxy S3 International Version, without any modification whatsoever-- no rooting, no nothing. It is as good as a stock phone with a few Play Store apps.
However, of late, I have begun experiencing problems
I do not have background processes (of my own) running and even then all I have left free in the RAM is usually only 300MB of the 800MB that is there. Task killers cannot free more than that.
I experience lag when opening settings. What I mean is this: Say I click on the Battery option under Settings. There is a visible lag between the time I press the option and when the battery information is actually displayed on the screen.
Android Version: 4.1.2
Build Number: JZO54K.I9300XXEMF6

First a few things on the symptoms:

On Unix/Linux/Android, "free RAM" is considered a "wasted resource". If RAM is not occupied by running processes themselves, the system uses it to buffer and cache other things, like the file system. This should speed things up, as usually RAM allows faster access.
For more details, please check out ram tag-wiki.
"task killers" are discussed controversely. While most (if not all) people agree they are fine to stop "rogue processes", it's certainly not their job to "free up RAM" or even "save battery". In these terms, they are rather contra-productive, as most killed processes simply restart themselves (which costs more battery than if they'd kept running, and fills up the "freed RAM" again as well).
For details on this, closer information can be found in the answers on e.g. Do I really need to install a task manager?, Do task killers actually work? and Is it advisable to run a task killer app on Android.

And finally, to the issue itself (experiencing lags). As you describe it as a problem "growing with the time" (i.e. it was not there in the beginning, but slowly became more and more visible), you will probably find some help in the answers to My device is getting slow, apps start misbehaving/crashing. What can I do?

Hi @Izzy this raises a question for me: the free RAM issue. While this is very true in a Linux enviornment (and I know Android is an offshot of Linux), surely High RAM useage is an issue for battery powered devices and the same paradigm isn't exactly true? I know it's not the same as windows "the less used the better" but it can't surely be the "free RAM is wasted RAM" entirely either as the device has a small power supply? This issue has been bothering me for a while!

RAM uses the same amount of power, whether a bit is set to 1 or 0. So no, "high RAM usage" is not an issue here.

Thanks for your reply, so RAM 1 or 0 is not the same as a  processor. Obviously a processor processing 0s more than anything is less power hungry / cooler / more efficient. I never knew that, very interesting.

Though you got that with "processing 0s vs processing 1s" completely wrong: Whether the RAM has stored a 0 or a 1 doesn't matter for power consumption. But if all those 0s and 1s need to be loaded again from any other storage, that would matter. Hence it's buffered/cached in an efficient way, preserving as much battery as possible.

That's what I thought, thanks. I meant processing a 1 on a CPU takes more power as the 0 is literally no voltage, but not on a RAM which is what I was querying. That makes perfect sense, thanks for the clarification.

The lag you're seeing is unrelated to RAM usage. My "international" S3 runs the stock ROM and isn't rooted. Right now it has 277 MB free and it never lags at all.
As Izzy explains, free RAM is not a predictor of performance on Android. Android tries its best not to remove processes from RAM when they stop running, because if the same process needs to run again, it would cost energy and cause lag to load it into RAM again next time.
The only time you get lag as a result of RAM use is after you've used one particular RAM-hungry app. When one app hogs all the RAM, all these "cached" processes get evicted from RAM to free it up. Then, when you switch to a different app (even the launcher or settings), Android has to stop the memory-hungry process and load the new one into RAM from storage.
Oddly enough, this is the behaviour you get for every app, if you use a task killer to keep stopping background or cached processes, or if you force-close every app (or swipe them out of the recent apps list).

Very elegant solution - root the phone, download nobloat app. Disable all unnecesary processes - google for the ones u can disable . My phone is 500% more responsive after this. I am using original samsung 4.3 rom .


text:
How to install Cyanogen without losing data
I've been using ICS on my Samsung Galaxy S3 for a while now, but I can't update to Jelly Bean for multiple reasons.
I've decided to switch to Cyanogen Mod, is there any way I can move to Cyanogen without losing any application data?

As geff described, you cannot avoid a wipe/factory-reset. But you can do a proper backup beforehand, so you can restore most of your data afterwards. This should work without any trouble for the apps you've installed yourself ("user apps"), while special care must be taken for pre-installed apps ("system apps"): As data structures (inside their databases) might have changed, a simple restore (replacing the databases) might break things and even render those apps unusable.
Provided your device is rooted, Titanium Backup is a good choice. Backup all "user apps" and their data, plus the "system apps" and their data. Special care on restore: "user apps" can be restored 1:1. Before goint to the "system apps", make sure to turn on TB's "migration" mode. Then restore only data, and do so one-by-one, after each "data set" verifying there are no side-effects.
An alternative to be named is Helium Backup, which even works on non-rooted devices.
Safest is to stick to your "user apps", and let contacts etc. solve via sync. For several things like SMS, there are special backup/restore solutions which you could use.

Moving from stock ROM to custom ROM usually requires a wipe or a factory reset. Otherwise, you will encounter force closes (FCs), heat issues, and possibly other problems. In short, headaches.
Even upgrading from a CyanogenMod (CM) to a major CM version will require a wipe, especially if it contains a major Android update. This is because the files / directories are now different (layout-wise, etc). I'm sure there are other reasons too.
Most, if not all, will also recommend you to do a wipe. This is the best way to ensure that the installation will be smooth.
Of course, you can still rely on Google Sync to ensure that your contacts (and other syncable data) can be restored.

Resurrecting an old thread.. but see http://forum.cyanogenmod.org/topic/74526-how-do-i-update-cyanogenmod/ which says you don't need to do factory reset/wipe cache etc....

That's discussion related to updating from one version of CM to another. In that case you're right, you generally don't need to do a factory reset. That's not what this question is asking about, however. When installing CM for the first time, it is still recommended (and typically required) to perform a factory reset in order to prevent the device from getting stuck in a boot loop.


text:
Does Samsung Galaxy S II show any indication that sms sending is complete?
If I send an sms from Samsung Galaxy S II, it just shows a toast message saying Sending Message... which disappears in a few moments. Is it possible to set it to show some kind of confirmation that the sms sending is complete? Or ss this dependent on the telephone company?

Open the message thread in the Messages app and it should say "Sent" and the time at which it was sent.

In the default SMS app, it leaves a time stamp at the bottom of the message. e.g 2.16PM, Oct 13.
That is how it appears on my phone (S2 aswell)

Hey make sure you have checked your Delivery Report in the message settings option. I do have samsung galaxy s2 gt i9100 and i did the same to solve my query.

how do I open Delivery Report ?

Delivery report messages are just Notifications which you can say are just Flash messages which just disappear after you clear up your notification. And Delivery message just contains the text that the message is being Sent or Not. So theres no option to open it, but you can check through Notification Panel.


text:
MHL only works for a few minutes on Galaxy S4
I picked up an HML-to-HDMI adapter, and an adapter to get it working on my Galaxy S4.  When I first plug it into a TV, everything is great!  I can get a picture and sound on my TV in the expected resolutions.
After a few minutes, TV reports "no signal".  If I unplug the cable from either the TV end or the phone end, the phone reports the HDMI cable disconnected.  Plugging it back in on both ends, the phone reports that the HDMI cable is connected.  However, I still don't see anything on the TV.
Rebooting the phone (via holding the power button and choosing restart) does not resolve the issue.  If I plug the phone into a power source or USB port, and then switch back to the MHL adapter, it starts to work again.
This problem has occurred with multiple TVs.
I have a couple theories:

Some sort of power management shuts off the video output after a few minutes.  (Note that I can be playing video and the phone screen stays on while TV reports no signal.)
An error condition with the interface that requires it to reset.

Any thoughts on how to fix this?  Am I the only one with this problem?  If so, I suppose I could have a funky adapter.

I purchased 3 cheap MHL cables, same problem than you.  This is the red one.  2 cables disconnect all the time, one works perfectly.  The problem is the crappy cable.

Got a link to the cable that worked for you?

I have used the Rocket Fish MHL-to-HDMI without issue in the past on a Note 4.  Your MHL adapter should have come with an additional input port in USB Micro formfactor.  Try plugging this into a power source as an auxilary power supplement, and see if the issue persists.  If you need to output to multiple displays, you may need to daisy chain another adapter onto the current one to supply adequate power to the peripherals.


text:
Pixel 4a - is it possible to play music (in car) over USB?
Is it possible to play music from my Pixel 4a over USB in my car?
My car is a Ford Focus from 2016. If I plug in an iPhone, the car just starts to play whatever music was last listened to (or just starts playing the first track in the alphabet). This is great.
However, I'd rather use an Android phone than an iPhone, and the Pixel 4a is otherwise great, but the playing over USB feature is important to me; the sound over Bluetooth in this car is rather poor.
Does anyone know if this can be done?
I've tried some different music apps - e.g. USB Audio Player PRO - to no avail; even using the USB OTG extension that came with the phone.
USB Preferences are set to File transfer/Android Auto
I also saw this question: 2012 question from 2012 and thought (hoped) things had moved on since then.

I don't think this is so much an Android question as a question about your headunit... This required the headunit be able to read the media library and playback via USB, it's a feature of the headset (my JVC unit can do this), and a little finesse of allowing USB connections in the device... It's not really an Android thing.

Ok, so do you mean that e.g. something like this might work? https://www.amazon.com/T-Style-Replacement-2012-2018-Wireless-Touchscreen/dp/B09GVPBTS4

You should check if your version of Ford SYNC is supported by Android Auto: https://www.ford.com/support/how-tos/sync/getting-started-with-sync/which-vehicles-are-compatible-with-android-auto/ Additionally you may want to document/edit your post to include which USB Preferences (search in Settings) is configured/has been tested.

Thanks @MorrisonChang, looks like my car is juuust too old; I have SYNC with "My Ford Touch", need SYNC 3 with touch screen or newer. I'll also update the question as you suggest :)

Just another personal experience: I have been listening to music on the Honda HR-V (2017) head unit (not sure about the model) using Nexus 5 (Lineage OS 14.1, Android 7.1.2), micro-USB (somehow Bluetooth was not working), and Spotify app. The head unit doesn't support Android Auto. So, the answer to the title is highly certain "yes", but looks like the answer to the detail in the question is "depend" (as @acejavelin has explained)


text:
Recover bricked unrooted Moto G5 (bootloop)
My Moto G5 got stuck right after booting into Android, screen frozen at my Andorid home screen and was not responding. It was charging but battery was dead, like 1%. Don't know if that caused the issue. I had to remove the battery to turn it off.
After that it never booted again: does start up animations, then asks the PIN, then remains stuck on Motorola logo.I suspect it is bricked?
I really want to  recover data but sadly it is not rooted, with no custom recovery. Just plain stock Android.
I am able to enter fastboot and adb (with Stock recovery). Here's the getvar output
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8937-B8.31
(bootloader) product: cedric
(bootloader) board: cedric
(bootloader) secure: yes
(bootloader) hwrev: P5
(bootloader) radio: 7
(bootloader) storage-type: emmc
(bootloader) emmc: 16GB SAMSUNG QE13MB RV=08 PV=0D FV=000000000000000D
(bootloader) ram: 2GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=1F
(bootloader) cpu: MSM8937
(bootloader) serialno: ZY32256S53
(bootloader) cid: 0x0032
(bootloader) channelid: 0x5b
(bootloader) uid: 153EB23800000000000000000000
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: no
(bootloader) max-download-size: 535822336
(bootloader) reason: Volume down key pressed
(bootloader) imei: xxxxx
(bootloader) meid:
(bootloader) date: 06-13-2017
(bootloader) sku: XT1675
(bootloader) carrier_sku:
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan  1  0: 6:47 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/cedric_timit/cedric:8.1.0
(bootloader) ro.build.fingerprint[1]: /OPP28.85-13/789a:user/release-key
(bootloader) ro.build.fingerprint[2]: s
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.41.12.cedric_timi
(bootloader) ro.build.version.full[1]: t.timit.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: M8937_22.29.02.69R CEDRIC_EMEA_CUST
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-ga19fa3e (hud
(bootloader) kernel.version[1]: soncm@ilclbld34) (gcc version 4.8 (GCC)
(bootloader) kernel.version[2]: ) #1 SMP PREEMPT Fri Aug 17 09:23:26 CDT
(bootloader) kernel.version[3]:  2018
(bootloader) sbl1.git: git=MBM-NG-VB8.31-0-g77d3670
(bootloader) rpm.git: git=MBM-NG-VB8.31-0-gbd76357-dirty
(bootloader) tz.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) devcfg.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) keymaster.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) cmnlib.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) cmnlib64.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) prov.git: git=MBM-NG-VB8.31-1-g26cc248
(bootloader) aboot.git: git=MBM-NG-VB8.31-0-g0b9dae9
(bootloader) frp-state: protected (77)
(bootloader) ro.carrier: timit
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
Finished. Total time: 0.062s

Is there any way to find out what is causing Android not to boot? which file/partition got corrupted, if any?
I understand that there are several "images" in a Stock ROM, such as gpt.img, boot.img, oem.img... I am not sure about flashing these because I don't want to lose my data forever

If you still have access to Fastboot, you can use Motorola's Rescue and Smart Assistant.
Or if you wanna do it manually, download Motorola's USB drivers and get your firmware from
https://mirrors-obs-2.lolinet.com/firmware/motorola/2017/cedric/official/TIMIT/,
then flash it manually through Fastboot/Bootloader. Make sure you match the fingerprint of the device. There are files in the zip called flashfile and servicefile in XML format. I converted the servicefile to flash instructions. The flashfile includes erasing userdata and cache which I didn't include below.
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.img
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash oem oem.img
fastboot erase DDR
fastboot oem fb_mode_clear

i did it, all commands run with success but still nothing, phone boots, asks PIN then gets stuck on Motorola Logo forever :(


text:
Power problems with Droid Incredible 2
My daughter's Droid Incredible 2 is mostly dead.
Symptoms:

If we can manage to turn it on, it only stays on for a minute or so after it completes all of its start-up tasks. Then turns off and acts like the battery is dead.
When I plug it in, I usually get a rapidly flashing amber light, rather than the steady amber light (for charging) that I would expect. Usually the flashing seems to slow down and then stop (with the light off). There's no indication that it's charging.

There's no water damage, nor is there any physical damage to speak of. (Just some less-than-normal wear-and-tear.)
I've removed the battery and checked the contacts. They're nice, shiny metal. The battery is seated properly.
Have I got a battery that needs replacing? Does it just need to charge longer before turning on? (I am seeing the same issue with two different phone chargers, including one for my Galaxy Nexus that has no issues.)
Any insights?

The Incredible 2 has a defective charging port that does not typically last a long time. It is an extremely common issue with this phone. Chances are, this is what you are seeing.
Disclaimer: I have been using my current dinc2 for ~18 months and haven't had this issue yet, but I did see it on a used phone I attempted to buy. Anyway, my plan for if/when this does happen is:
Repair HTC Incredible 2 USB Charge Port
The part is supposed to be $12 and takes an hour to do. If you're not comfortable doing it yourself, I'd take it to a cell phone repair shop.

Well, my wife pays a stupid amount of money for a service plan, so I brought it in for repair.


text:
Can I send myself push notifications from a server without making my own Android app?
I am making a chat box on my website that sends the text to the server which forwards it to my phone as a push notification. The problem is I have basically zero Android or Java programming skills. However, I'm familiar with how to send GCM notifications from the server. I think if I only had the device ID (and possibly a way to subscribe to the messages?) I'd be fine.
Do I need to do any Android programming? Is there a way to receive custom messages without making a new app? Or an app that already exists to do this?

You mean android device id? If thats the case you may want to check device id apps in playstore

@xavier_fakerat I have to double check, but I need to be able to send myself push notifications from a server. Hopefully the device id is all that's required.

I am not really sure with GCM prerequisites, but a source mentions you need Sender ID, I am not sure if that's the DeviceID or Application ID, but do you want to create an app for this? If you simply want device id  then I could probably write a way of doing this in answers section

I want a way to receive custom notifications from my server on my own device. Seeing if there's a way I can do this without programming an Android app myself, or there's an open-source app I can use.

I reckon you need to use a service called firebase and link with your android app ,a few guides for this have been prepared online. Also please refer: http://stackoverflow.com/a/12560639

@xavier_fakerat I don't have a android app lol. But thanks anyway.


text:
My mom has an iPhone and I have android and I'd like to us my moms hotspot
Can I use my moms iPhone hot spot for my android

It will work normally, just make hotspot (wifi) . And you will be able to connect your phone or your PC, whatever operating system they use.

If the iPhone have feature to WLAN Tethering (Wifi Tethering or Hotspot). The answer is yes, you can. I think it will not depend to operating system what you have. Except if the Hotspot have feature to filter any Operating System that can connected to the Hotspot.


text:
"Sign in to WI-FI network" & "500 Internal Server Error"
Problem is that this occured to my phone, I could not access the internet with my phone but it is fine with other devices. So I am quite sure that it is not the router. It's so weird because awhile ago it was working then after a few minutes after reluctantly trying to forget the network and put the password again and again. There it was  " Sign in to WI-FI network". Then i pressed it and loads. 500 Internal Server appeared. I've tried changing the ip setting, but it still led me to the Internal Server problem. I've tried everthing on the internet but I'm still hopeless.


text:
Max USB Webcam Resolution and Frame rate
What are the maximum resolutions and frame rates for USB camera that a Android device supports. I read that the standard is called as UVC (Universal Video Class).
Is this support dependant on the Android version? Would the type of connector make a difference USB-C vs micro USB?
The best resource I found was External USB Cameras
On that page its mentioned,

With support for webcams, devices can be used in lightweight use cases
such as video chatting and photo kiosks. This feature doesn't replace
typical internal camera HALs on Android phones and isn't designed to
support performance-intensive, complex tasks involving high-resolution
and high-speed streaming, AR, and manual ISP/sensor/lens control.

Also a list is given at the end of the articles regarding frame rates and resolutions as if they were extracted from some code so I'm not sure what they are and whether to consider them as definitive.
<!-- List of maximum fps for various output sizes -->
<!-- Any image size smaller than the size listed in Limit row will report
    fps (as minimum frame duration) up to the fpsBound value. -->
<FpsList>
    <!-- width/height must be increasing, fpsBound must be decreasing-->
    <Limit width="640" height="480" fpsBound="30.0"/>
    <Limit width="1280" height="720" fpsBound="15.0"/>
    <Limit width="1920" height="1080" fpsBound="10.0"/>
    <!-- image size larger than the last entry will not be supported-->
</FpsList>

ok,, thanks for pointing that out, I'm specifically looking for max limits though, for instance would a 1080p webcam successfully stream full frame video to a Android device? If so at what frame rate? Also what about camera resolutions larger than 1080p, eg. a 5MP camera.

It depends on the external camera provider specs.

From External USB Cameras  |  Android Open Source Project

The USB camera HAL process is part of the external camera provider that listens to USB device availability and enumerates external camera devices accordingly.

Webcams generally support USB video class (UVC)
drivers and on Linux, the standard Video4Linux (V4L)
driver is used to control UVC cameras.

Probably, what's quoted is typical or frequently found values but if you want specific information you would need to dig into the code of the device + camera provider.
As asked in the comments maximum limits can be gleaned from

the camera specs and codes

format used  (for example UVC format itself has multiple variations - see linked wiki above)

but whether the device uses full capability or not is the important point.
You would find tons of rooted means and Magisk modules that improve the camera performance with the same device and camera - it's only possible because ROM didn't build in those features.

Would this mean that I can connect a FHD (1080p) camera to a non-rooted android phone USB port and get video at 30fps?
Is there mechanism that the low level API's provide to get data from the USB port. Wouldn't there be upper limit for the USB 2.0 speed itself since it maxes out theoretically at 480 Mbps.

Sorry, I can't answer that - beyond my knowledge


text:
Why the screen lock password no longer matches after using a different disk as /data
I'm using a rooted Android 13 device, and an external SD-card that I mount as /data by editing the fstab. The SD-card is partitioned into few EXT4 partitions, and I can boot with any of them mounted as /data just by editing the fstab. For example, my current fstab entry is:
/dev/block/mmcblk0p2 /data ext4 noatime,nosuid,nodev,discard wait,noflush_merge,fsync_mode=nobarrier,reserve_root=134217,resgid=1065,check,formattable,quota,reservedsize=128m,latemount,resize,checkpoint=fs

And I can change it to mmcblk0p3, to boot with a different partition as /data.
But there is an issue. Each time I boot with a different partition as /data, it works, BUT when I return to my previous one (same way, by editing fstab), it's lock screen password/PIN/Pattern no longer matches. It says like Wrong PIN.
Since I don't use encryption, I easily solve it by deleting the locksettings.db file from /data/system. But if I used encryption, it definitely wouldn't work.
My question is why it happens?
Why, when I successfully unlock a phone booted with different /data, and then switch back to previous /data, the password that was set there no longer matches, and I have to delete it?
EDIT: I made an experiment with a clean, not modded phone (without any SD cards or Root), that uses encryption and everything is stock. I took a full backup of the NAND flash, which includes GPT table, all partitions, and therefore the encrypted userdata too. After taking that full backup, I performed a Factory Reset on this phone, and booted up. Then, I turned phone off again, and flashed my full NAND backup. The phone booted successfully, but yes, the password that was set there didnt match.
This result is very weird. What could even get modified on the phone, if not something on the NAND flash?

Comments have been moved to chat; please do not continue the discussion here. Before posting a comment below this one, please review the purposes of comments. Comments that do not request clarification or suggest improvements usually belong as an answer, on [meta], or in [chat].


text:
How to connect a non-rooted Android phone to an ethernet LAN as a client
How can I connect a non-rooted Android phone to an Ethernet LAN as a client and use it as a host?
I got a public static IP. It's in my optical fiber router and I can assign it to a LAN host of my choice.
Before answering, please read the following points:

I don't want to use the WiFi interface

I tried an USB-to-ethternet cable but that allows me to configure the phone as an Ethernet-to-LTE access point for the LAN attached hosts. It's a tethering service

I want to use my phone as a power-frugal server with a public static IP address.
Ciao

Public IPs don't appeart out of nowhere.So where should this public IP come from? A Ethernet adapter is just a piece of hardware and the used IP address has to match the network it is connected to, so a public IP has nothing to do with the adapter which makes it difficult to answer your question.

I'm paying for a public static IP. I got it. It's in my optical fiber router and I can assign it to a LAN host of my choice.


text:
Switching apps vs 3rd-party launchers on Android 12
Just bought a new phone with Android 12 and found this app switch failure:
I press "square" button, see recent apps list, tap on one of them. So that app came to top for a moment and then hides away.
I tried Nova, Pixel, Microsoft and Niagara launchers, all with the same effect. The problem don't appear only with stock launcher.
I've found that it can be fixed by disabling "Animator Duration scale" in developer options.
The problem is that I literally can't disable that option - I tap on it, select "Animation off", but value still shows "Animation scale .5x".
Oukitel WP18Pro, Android 12, stock launcher is Quickstep, no root, no custom things. Factory reset also does not help.


text:
0-byte partition and storage being inaccessible on a Mediatek device
I have an Infinix Note 10 Pro. I would like to know if there is any way to fix the 0-byte partitions issue and storage being inaccessible. I saw this when I was trying to copy out the vbmeta and boot.bin files for rooting, and for some reason, I got that issue. Prior to the issue, I upgraded my firmware after a full wipe, and that's when the issue popped. It is also to note that I do not have access to my internal memory for some reason either.
I am absolutely clueless about how these Mediatek devices work. I need advice since I have skimmed through multiple forums, and am unable to land on a decisive conclusion. In short, I do not want to ruin more than I already have. Thank you for your time.

all good, resolved by flashing the whole stock rom again. weird stuff.

Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.


text:
Forgot pincode on ulefone
I have a ulefone that I am trying to remove the pin code and bypass the Google account, can someone help me do this


text:
What package/app is actually running when doing dialer codes
I am currently trying to figure out another way to access my Samsung Galaxy S21 Ultra's Secret Menus accessed via the dialer codes. My phone cannot open almost all of the dialer code, probably due to restrictions. I figured out how to open the Phone info(The one with the preferred network Setting) menu via an intent, but I'm now trying to look for the other ones like 4636 and 9090
I then realized I just need to know the package and the class and that stuff to open it. The question is, what are the packages.
I'm basically looking for what package is opening all of these secret menus, and how to execute the dialer codes through that package via intents, or if there is another way to open these secret menus without the dialer.
Please know that I don't actually code intents and use something like automate or Macrodroid to run intents. I am on a un-rooted device, and have no way to access adb. Basically what I'm doing is trying to configure stuff with 4g/5g while just seeing all the menus and what they offer.
Any help would be greatly appreciated!

My guess is that the codes are interpreted by the layer "Phone" or "RIL" as shown in the diagram on this page: https://wladimir-tm4pda.github.io/porting/telephony.html

@Robert Would you please elaborate these layers, and how this info can help?

And based on my research, I am starting to see that there is a package called telephony. Is that actually the package that processes the dialer codes? If it is, how can I actually execute the dialer codes then?

The link contains just a standard Android system layer diagram. Unfortunately I wasn't able to find a recent one, thus I don't know if it matches your Android version. Please see it as a starting point to make yourself familiar with the lower layers of Android. As dialer codes are system specific my guess is that the actual implementation is in the two mentioned layers. If you know where the command sare implemented you can check which APIs are available to access them.


text:
How can I fix a broken os?
I don't actually know if it's a broken OS, but, when I try to turn it on, the Motorola logo keeps flashing (the device is an Motorola G6). But it never actually turns on.

When you press vol down though, it goes into a black screen that says AP fastboot flash mode (secure).

I've tried going into recovery mode, but anything other than the barcodes gets it back into the loop.

lsusb doesn't detect the phone when plugged in

Battery didn't charge past 3% when the phone worked

Did you do anything special before you phone refused to boot? Did the device ran out of free flash storage? I don't think the OS is damaged, in case the OS partition was altered there would be an error message like "vbmeta image verification failed". Android does not contain tools to recover such a situation. The common way is to perform a factory reset.

Not really, it wouldn't charge past 3% tho, but I don't think it has anything to do with that. And it had been factory rested before that happened, so I don't think it was a memory problem. Also, I can't really factory reset it now, since I'd need to go in recovery mode to do that, and I can't.

Then may be the flash memory has reached it's end of life.

How would I know?

Also, when I plug the phone in, on the fastboot screen, it doesn't appear on the my PC, like at all, even when I run "lsusb" or "adb devices"

Adb doesn't work in fastboot mode. But at least lsusb should see something if you compare the output before and after connecting your phone via USB to the PC.

It doesn't tho, that's why I'm so clueless. And no, it's not the cable


text:
My own signed APK now warning of "unrecognised developer" when installing locally
This warning has started showing up literally in the last day or so, whereas previously my own APK (signed with a keystore/password that I have successfully used on currently released software) would just install locally without fuss.
I'm now being told that the play store doesn't recognise my account and requires me to click "continue to install anyway" in order to install it.
What has changed over the last few days?
EDIT: I suspect it is something that's changed in the play store, instead of something I've done, because I went back and tried installing from some previous APKs I built and deployed without incident a few days ago, and they are also showing the same error.

Signing involves a certificate - could your certificate have timed out?

No the certificate expires in 2038

May be this is a message from Google Play Protect - it also checks side-loaded apps.

Weirdly, it's gone away now. I think perhaps my account wasn't being recognised as active or something. I've since logged in and a day later my installs are fine again.


text:
How to receive notifications when an app goes on sale on Google Play store
I would like to know if there's a way to receive notifications on the computer (online) or smartphone (offline) when a customized list of apps goes on sale on Google Play store. (Maybe through e-mail, RSS feed, SMS, etc.)

The implementation of this project could be easily developed if there is an available API from Google. I think there is no free Google API for this purpose. You can receive emails or SMS on your mobile phone when a new Android application is published on the Google Play Store, but you need a special API from Google.

For Android there is an app that does what I need, but if you need to connect to the internet  to receive notifications, then it's the same as manually checking.
For the iOS there is a site that at least allows you to apply some filters and receive notifications through RSS feeds, would be nice to have an Android alternative.
Was hopping to find something even it needs to use IFTTT to combine services.

I do not think you can combine services, only if you will like to create a web service that maybe helps you for your project.

Yeah, sites or apps can only interact with IFTTT if the creators want. I thought about creating something similar to this but just don't want to create something from scratch because there are already similar options that just need filters and notifications.

If I have understood correctly, do you like to implement something similar to  the website such as game archives? This could be easy to implement as a software program.

I have my own website, so as last resort I could probably use the same sources of that site and make my RSS feed with my filters, to see the apps from my list that go on sale.

Yes, exactly. I hope that I helped you with your problem of your program.

Yeah, although I feel that it would be like killing a fly with a bazooka, I will try that option if I can find a place to upload the files like Google Code to avoid changing my website. Thank you.

I do not understand your logic, but if it works is ok. Thank you.


text:
How to access the RecycleBin or trash folders and recover deleted files?
Deleted a file, with the option to delete permanently unchecked. Tried to retrieve it then, only to find out that Android has no visible recycle bin...

When deleting files with the option to delete permanently unchecked, they do go to a RecycleBin folder or trash folder if you delete them using an app that lets you see the files you deleted.
There are actually ways that allow you to access and browse those folders and all invisible folders, even without root access, you can recover images this way using DiskDigger.

Android has no "Trash Folder". Maybe your file manager provides one but with no info provided, we cannot determine how it is. Usually unchecking such an option like "Delete Permanently" just disables file shredding, which is far different from moving to a "Trash Folder".

I have Asus ZenFone Selfie (Z00UD) with Android 6.0.1.
And it allows to view deleted photos from the gallery by unchecking such option, hence my assumption. I thought that there should be a different app to see more files besides photos.

Very sadly the feature of keeping deleted photos is provided by the specific gallery app, not the Android OS. AFAIK very few apps have such a feature.


text:
Removing verification scripts from a stock ROM
I'm not really familiar with Android development so I'm not sure how to go about this, sorry if those questions are basic.
I have successfully flashed a TWRP recovery on my MTK6797 phone (UMI Z Pro) and I can enter it but somehow managed to soft brick it (the ROM itself doesn't boot, - hangs on the boot screen).
So I'd like to install the stock ROM again but keep TWRP recovery since I was planning to tweak the ROM or even perhaps build a custom ROM for this phone since there are none available and probably won't be any in the future.
The problem is that the stock ROM contains some verification scripts, here's a quote from their official forum:

You need the original boot, recovery and system image on your phone
  since the update script checks their integrity before running. As a
  conclusion, if you have a custom recovery on your phone and/or ever
  rooted it, you cannot update it via FOTA but the only way is flashing
  with SPFT.

How would I go about removing those scripts from the stock ROM? Or does anyone know of another solution to this - TWRP recovery + stock ROM on this phone.
Thanks in advance.

I don't quite get it, you already know how to flash TWRP, why not just go ahead and flash that stock ROM the normal way, then flash TWRP again? Side note: next time you do this, after you flashed TWRP, make a backup of the stock ROM immediately.

@AndyYan I'll try repeating it but what could've caused the soft brick?

I can't really pinpoint it, since you know what you did better...

@AndyYan That's the thing, I can't come up with why that could've happened. I know that the recovery is on a seperate disk partition from the Android partition thus completely independent of the Android system.
I flashed TWRP 3.1.0 based on the UMI Z.V3.01_20170116 kernel version of the stock ROM using SP Flash Tool.
The ROM version was V3.01_20170408. I also only flashed the recovery.

One question first your phones a umiz pro and the twrp is based on umi z.V3.xxx.xxxxx  from Google it appears that there is a base and pro model am I correct
If so then I think from your post it sounds like u flashed the base model recovery on. A pro model I have done this on a homtom ht7 I really messed it up but I think that is your problum

They state that the recovery works for both UMI Z and UMI Z Pro although I did use a UMI Z scatter file, I'll try using the UMI Z Pro scatter file. The phones are actually identical except for a dual camera instead of a single one on the Pro.

I try to stay away from mtkxxxx had bad luck with all of the ones I had just have to be really carefully with the scatter file when I messed up my ht7 I made a hard brick of it but threw a guide and I have no idea what it was called or where to find it now but it's basically a tear down of the phone and u have to sodder a wire from one point to a nother so the computer will recognize the phone and it does now for me just having trouble flashing it now  but that's all I got sir sorry couldn't be more help


text:
Stuck at Erasing
I tried doing a factory reset on my Nexus 6 and the device got stuck in "Erasing". All I am able to do now is enter fastboot flash mode but none of the options work as the boot loader is locked.
Tried flashing with a factory image from here but that too failed because the device is locked.
--------------------------------------------
Bootloader Version...: moto-apq8084-72.01
Baseband Version.....: D4.01-9625-05.42+FSG-9625-02.113
Serial Number........: ZX1G524DKM
--------------------------------------------
checking product...
OKAY [  0.002s]
checking version-bootloader...
OKAY [  0.002s]
checking version-baseband...
OKAY [  0.003s]
sending 'boot' (8485 KB)...
OKAY [  0.268s]
writing 'boot'...
(bootloader) Not allowed in LOCKED state!
FAILED (remote failure)
finished. total time: 0.287s

Screwed device with locked bootloader basically means sending for repair.

Try unlocking the bootloader if your rooted

I left it out on charge overnight and it resolved itself. When I did the initial reset, the battery was on full charge so it never occurred to me that it could be a problem.


text:
Is it possible to root directly custom rom?
I have bought Xiaomi Mi 5c (bootloader unlocked) and tried to root it. I think I've used every possible software available on internet for rooting (like TWRP+SuperSU, iRoot, KingRoot), even tried to modify a system and boot image from custom rom by placing there SuperSu app and su binary. Also I have used some script which patches sepolicy and ramdisk with tools available in SuperSU app and do other necessary things to root the device, but after that my device does not even boot (stuck on fastboot).
I was wondering if I can use the same script (with some small modificatoins) to root directly a custom rom and then flash the whole custom rom with available root inside.
Intuition tells me that this should be possible, but till now I did not found any custom rom with root inside (except dev chineese roms which are already pre rooted, but that's a different story).
I want to root directly a custom rom and then flash it as I hope this could be the last chance to make it to work. So again, is it possible?

MI 5C is a fairly new phone and with Xiaomi's in-house SoC (harder to develop for than established ones like Snapdragon), therefore custom ROMs are expected to come out later and in fewer quantities.
Stock MIUI also employs a check on /system partition so as to prevent booting when it's modified, no matter how it's executed (modified before or after flashing).
There are a few tips on XDA about rooting, but I've examined them and none of them seems to be surefire. At this moment, the Developer version of MIUI is your only dependable choice. Since you're already unlocked, flashing it should prove no trouble.

You could try flashing LineageOS in your TWRP recovery (assuming you already have it). LineageOS has a SU add-on that you can flash and it will enable root access and built-in root manager so you don't have to mess around with SuperSU. Please note that you'll need to wipe your device before installing LOS.

I did not know about this OS before. Thanks, I will definitely try!

-1: That's for the MI5, NOT MI 5C! There's no LOS for 5C yet. Potential brick incoming...

@AndyYan +1 for potential brick incoming. MI 5C utilizes Xiaomi's own SoC, which is highly different from Qualcomm Snapdragon's. Even if the system works well, the kernel will halt.


text:
WiFi-Direct using an Access Point
I have some doubts about how the Wifi-Direct (P2P) works. I want to connect an android device to a hardware able to use Wifi. I am not sure if I can use Wifi-Direct to connect the android with the hardware using an extenal wifi with internet (Acces Point) or they need to be only connected without any external wifi.
Question: Can I connect the android and the hardware using Wifi-P2P through an external network (Router) or only with a direct connection between them?

Your question is not very clear. Can you please edit and revise it?

WiFi direct, pretty much by definition, is intended to remove the need for a dedicated access point/router between the devices. The method you're describing just a typical wireless LAN at present. What's the context of your situation? What problem are you looking to solve?

No.
Wifi direct : direct share data between two devices (pictures, video, music, files), without internet.
Acces point by wifi : acces to internet


text:
Is there a way to force authenticated apps to prompt for the password after every screen lock?
I have a password manager set-up and it's really easy to login using it.  I would prefer if certain (or all) authenticated apps required re-entering of credentials after the device has been locked.  Is there a way to accomplish this (or some similar feature/behavior that can be enabled)?


text:
Quickly switch my phone between locked and unlocked without going through the menus?
I want to be able to quickly disable and enable Screen Lock, without having to manually go through Settings -> Security -> Screen Lock every time.
Is there a way to create a button on your home screen where, when you press it, it switches the screen lock from "Swipe" to "Pattern"?

You can download macrodroid from the play store. I looked through it and you can use this to disable/enable the screenlock with a shortcut on the home screen. It is simple to use and you can probably figure it out yourself.

Is this possible to do with Tasker?

@SteveDolan I don't see why not


text:
Is there a minimal installation of ADB?
When it comes to troubleshooting, I often read recommendations like "Use adb logcat to find some more details". Looking for a good way to backup all my apps including their data, Full Backup of non-rooted devices refers to adb backup and adb restore. In several places one can find ways to remotely do on an Android device with the use of ADB, such as transferring files using adb push or adb pull, accessing the command-line via adb shell, and more. So ADB seems to be a good thing to have for an Android user.
But how to get this "ADB thingy" on my computer? Not being a developer, installing the entire Android SDK seems a bit overkill. Is there a more minimalistic approach available?

In fact, it is not necessary to install the entire SDK if one does not want to use it for development. To be able to run basic ADB commands in the context needed by an average user, a rudimentary installation is completely sufficient. I will try to explain how to do this, and hopefully cover the most used computer systems.
Requirements
First, you will need the basic binaries. These can be found e.g. in the Download area of my Android site, where I try to keep up-to-date versions available – for Linux, MacOS, and Windows.1
Windows users
If your computer is running Windows, you will also need the special drivers for your device (no generic solution here, so you need to check this out yourself; usually, those drivers are offered for download on the manufacturer's website).
Linux and Mac OS users
Linux and Mac OS users might need to make their device known to their operating system. For Linux, you find the necessary steps described in my answers here and here. Not being familiar with Mac OS, I can not speak for it.
Installation
Linux
For Linux, this is quite easy: Simply unpack the downloaded binaries into a directory of your choice. At the time I'm writing this, this will only be two files: adb and aapt (the latter being used by QtADB, and not necessarily needed to execute ADB commands directly). Adjust their file permissions to make them executable (e.g. from the command line: chmod 0755 adb aapt). Finally, it's a good idea to include the chosen directory with your $PATH variable, so you can call adb from wherever you are. A good place for that is at the end of your ~/.profile file to include an additional line like export PATH="~/bin:$PATH" (if you extracted the binaries to ~/bin).
Windows
The Windows download holds a couple more files. Also extract them into a directory of your choice. If you want them to be callable from wherever you are, without preceding the complete path, you need to add that path to your environment variables as well. Not being a Windows user, I must leave the "how to do this" to you.
What else?
You should be done at this point, and can use the full powers of the ADB command line.
Alternatives?

on some Linux distros, you can install the packages android-tools-adb and android-tools-fastboot via the resp. package manager. This has the pro of being updated automatically.
on OS X, you can use SimMac's installer
Update 1/2017: Google now offers direct links for the "always latest" platform tools, which include a.o. adb and fastboot:

platform tools for Linux
platform tools for Mac
platform tools for Windows

Further readings

Everything about ADB (A reference for everyone at XDA Developers)
ADB for Dummies (again available via XDA Developers. If you miss the guides as I did firstly: The first article is consisting of links only, colorful as they might look :))
Android ADB Quick Guide
our adb tag-wiki

1: Also see Alex' answer for more alternative sources. My sources are the official Google downloads, just "stripped down".

I made something for OS X, this may be exactly what you are looking for:
Quick ADB/Fastboot installer: ADB and Fastboot binaries with installer

15 seconds minimal ADB, fastboot and drivers installer. This is for Windows only.

No need to navigate to the installation folder in CMD.
It can be installed system-wide.
No need to check for manufacturer specific drivers.
Everything included in 9MB.

Debian makes it extremely simple to get legit, up-to-date installs of adb & fastboot.
If you really just want adb without fastboot:
$ sudo apt-get install android-tools-adb
Or, if you're like me and think that they work better together:
$ sudo apt-get install android-tools-adb android-tools-fastboot

If you're on Arch Linux and you want to do this (following Izzy's answer of course!)...
Enable multilib in /etc/pacman.conf and install the 32-bit dependencies if necessary:
$ sudo pacman -Sy
$ sudo pacman -S lib32-{glibc,gcc-libs,zlib}

get the files:
$ curl -J -O https://android.izzysoft.de/downloads.php?file=adb-binaries-linux-1.0.32.tar.gz
$ tar xf adb-binaries-linux-1.0.32.tar.gz

the commands will install to your current directory, so for instance:
$ ./aapt

on linux Ubuntu/Debian:
sudo apt install android-tools-adb

but for updates, you are at mercy of a distro maintainers...


text:
Wrong phone number for contacts are shown and called
I have a problem with the app 'Contacts' on my Android 7.1 Nougat (Wilefox Swift 2x). In this app both phone numbers from my google account and from whatsapp are synchronized.

Sometimes the app shows the wrong phone number for a contact. When I call this contact, the person the number belongs to is called instead (always another existing contact). At that time I'm not able to see the correct phone number for the contact. When I try to edit the contact, the phone number is not shown or correct.
In other situations an incorrect number (number of another contact) is added to a contact. In this case both the correct and the wrong numbers are shown, only the correct number is visible when I try to edit the contact.
In both cases it says the number is a whatsapp contact. These numbers shouldn't be linked however. I've never done so and I'm not allowed to unlink this.

Recently I removed all contacts and added them manually again. Everytime when adding a new number manually, there was automatically a duplicate added in the contact list from Google Contacts. And again I saw a couple of persons with a number that don't belong to them.
Does anybody know how I can stop this from happening? This is very annoying.
Thanks in advance!
Update: The issue may be caused by a second whatsapp I'm running on this dual sim (in parallel space). Does anyone have more information on how to solve this without removing the second whatsapp?

Go to Contacts>Settings>Contacts and then mark "Only contacts with phones".

Unfortunately this doesn't solve the problem. I already only show contacts that have a phone number. In some cases the correct number is not visible anymore or the incorrect number is added next to the correct number.

This issue is because of WhatsApp. After their latest update (4th Dec) these problems have surged.
Easiest solution is to backup whatsapp and uninstall it. Then reinstall > restore your old chats.

Maybe this is true.  But I did have to clean them up.  I used an App called Contact Optimizer.


text:
4G signal with mobile turned off
Recently I have noticed that my cellular company (TIM, I'm in Brazil) has been charging me for network connections daily. I rarely use cellular network since at home and in my job has wifi and I don't mind being 30 minutes without internet.
I called them and they said it's due the device having its preffered network at 4G, not 3G. When I changed the preffered network to 3g, it stopped charging me. They won't retrieve my money because they received a signal so for them there was an internet connection (even though the data received is like 1kb). It's horrible to keep changing it to 3g/4g every time I need to turn it off or on.
But anyway, my device is a Motorola X Play running Android 6.0.1.
The question is: does Android send 4g signal even with mobile data turned off? If so, is there a way to make it stop?
Edit: Following some comments, I lsoe signal a lot due the subway and closed places. That could explain it?

To me it sounds like a-hole company. It doesn't make sense why would 4g consume data when mobile data is off on that sense 3g should consume too. Or at least no one charges. Let's say someone have prepaid sim card and uses 4g and then run out of credit, in that moment he won't be able to connect to 4g, right? I guess it's just a way to charge you for using 4g for that company.

No, but it is entirely possible that every time you toggle it on and off, it is searching for a signal and connects momentarily with LTE (4G) then drops back to 3G. I don't have any proof or documentation regarding this, but it seems plausible and explains the issue. Is there a way to stop it, probably not.

@ЈеднорукиКрстивоје yes, I believe it's a way for them to get your money by making you tired of complaining.

@acejavelin yes, I thought about that but if I never turn it on for two days and neither turn off the phone or anything, would that still happen?

@Geo possibly... If you lost signal and it had to re-aquire it, or maybe (more remotely) when it switches towers. There is a possibility your carrier is requesting your device to change bands too.

Oh, I lose signal a lot due subway and closed places. That could explain this @acejavelin

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


text:
Android on virtualbox can't move mouse pointer
I installed Android-x86 6.0-r3.iso in VirtualBox Manager 5.1.22_Ubuntu (Ubuntu 17.04). Now if I want to touch anything via mouse pointer I have to move the pointer but I can't move the pointer without clicking left mouse button. But clicking left mouse button represents touch functionality. How can I move the pointer without touching (left click) "display"?

That's probably the "mouse integration" stuff: no "seemless mouse" without the vbox-guest-utilities installed – and AFAIK those are not available for Android. The first "click" inside the Android window should just "capture" the mouse (no other action), and you can "free" it again with "Right Ctrl" (see lower-right corner in your screenshot). // BTW: Could you give some details on how you installed Android in Virtual Box? What image and settings did you use? As you're on Ubuntu, those details could help here.

PS: Also take a look at the existing Debian answer. The step on mouse support might be interesting.

@Izzy, thx for the link change settings "Pointing Device to PS/2 Mouse" solves the problem.

Glad to read! Mind to answer your own question then? Though it's part of the one linked to, it's the part specific to your issue. You could elaborate a little more detailed on this aspect (steps taken etc.).

As it was mentioned in the comments above, there is reference for Android X86 – mouse support in Oracle VirtualBox linked in this answer. AFAIK I had not to install additional packages like vbox-guest-utillities. As you can see the following list is empty:
$ dpkg -l | grep virtualbox-guest
$ dpkg -l | grep vbox-guest

I only had to change the "Pointing Device" under Settings > System > Motherboard to "PS/2 Mouse".


text:
What kind of encryption is required for LineageOS on Xiaomi Redmi Note 5 (whyred) to boot?
Having my Redmi Note 5 stuck at the LineageOS logo, I tried different ROMs like Resurrection Remix OS. They work well. After some reserach, I found a hint to some kind of encryption in the LineageOS release thread on xda-developers. So I re-flashed the stock MIUI ROM (without firmware cause of Xiaomi's devious anti roll-back mechanism) and LineageOS could be installed without problems.
I want to understand this topic:

What are those keys?
Why LineageOS needs them?
Has this anything to do with device encryption?
Is this a Xiaomi specific topic or does it apply to other manufactures as well?

Currently, I know very little about those encryption keys:

It seems that they're generated by the stock MIUI on first boot
They got deleted by formatting in TWRP, not on simply wiping
We don't get any usefull error message, only a endless booting LineageOS animation
Encryption can be bypassed using a zip from here. But without OTA updates and the zip for bypassing must be flashed on each LineageOS update
Other ROMs like MoKee or Resurrection Remix OS don't care

Really interesting question, something which confusing me too. Would be nice if some experienced user or developer could bring light into the dark of this topic.

Format data using TWRP, unmount the data partition, then resize the partition with adb shell :
resize2fs /dev/block/mmcblk0p50 51G
(my original size of filesystem /dev/block/mmcblk0p50 was 52.1G (you can find it with the command "df -h /dev/block/mmcblk0p50")
The encryption process need to take some place at the end of the partition or it will fail - this thread has helped me : github.com/CyanogenMod/android_device_motorola_xt907/issues/3
You can debug also the problem with the adb logcat command.


text:
Is it possible to force a phone to use USB for data but not charge from it?
My plan is to use my phone (Google Pixel) as a screen for a raspberry pi, and I'm worried that my power supply isn't sufficient. Is there a way to prohibit the Pixel from charging while still maintaining data flow? I haven't done much electrical work and I don't know if phones are equipped with this option, let alone if it's even possible. My power source is, if memory serves me, 3000 mWh, capable of 5 volt 2 amp (I can verify later if that turns out to be important).
UPDATE:
Upon some deeper searching, (not sure how I missed it to begin with), I found some posts suggesting commands such as echo 0 > /sys/class/power_supply/batterycharging_enabled/charging_enabled. My updated question is, then does this actually work? How does it work?

When the kernel detects power supply, it just enables the charging_enabled, so that the device gets charged (and the opposite for disconnection of power supply). As a root user, you can manually disable it. That's how it works. What more do you expect? :)

@MarkYisri The kernel can control the charging circuit too.. It's just a matter of what registers are set in the power IC. As an exercise, try disabling that flag when your device is being charged and leave it for an hour, and then enable it again. Do you think the battery level indicator of your device would show a higher value? Nope..

@MarkYisri that's exactly what I was wondering, I wasn't sure whether the charging circuit was capable of being controlled

@GokulNC your second comment gives the clarification I was looking for, I didn't realize that the kernel could control charging. Many thanks!

Considering usb C can send power in both directions, I'm assuming you can set the phone to power an external device using in phone settings, and this way you would avoid it pulling power from your source.
A side note though : 2A is quite a number, unless you're running rpi hot or powering something else my educated guess is that it should be enough for both.

I would tend to agree, except I think the Pixel is capable of charging at 3 amps. Moreover, with just 3000 mWh I'm hoping to make the battery last as long as possible. Even if it could handle it, I'd prefer not to. That's an interesting point you make, thanks!


text:
Why is Outlook for Android using a weird From address?
My wife uses Outlook.com for her email and has an alias assigned from a domain we own.  The alias is the default address. Works great while she is using Outlook.com.
She also uses Outlook for Android (OFA) on the Samsung Galaxy Edge 7. She's signed into the same account, but when she goes to compose an email, the From shows as an odd outlook_398f6...@outlook.com address instead of her alias.
In the drop down of aliases in OFA, her normal outlook.com address appears along with the weird one, but the alias from our domain is not displayed.
Last odd fact is in the OFA account settings, the Account Name is actually listed as our domain alias account.
What I've done.

Swapped the default aliases a couple times on Outlook.com
Reset the account in OFA
Removed and added the account on OFA
Uninstalled and reinstalled OFA

Does this "weird" address also appear on Outlook.com? Have you tried sending an email to your other personal account and checked the From field? My current wild a** guess is that Outlook for Android doesn't support custom domain and that "weird" address is actually the same alias on Outlook.com

On the second thought, are you asking only about the weird From address, or also if an alias is supported on Outlook for Android? Because the answer to the latter seems to be: no, it's not supported (AndroidCentral forum, official feature request), though it seems someone did succeed. (AndroidForums)

I assume the address is an internal alias to the custom domain address.

I guess the question is whether it is supported.  I'm pretty certain it has worked for her in the past, but reviewing the item to referenced, it appears that it does not work now.


text:
Android Wifi Hotspot turn off all the time
Phone: Honor 8 with EMUI 5.0.1 and Android 7.0
Each time I try to turn on my wifi hotspot, it turns off after several minutes. A notification of Android System is sending and tells me that "no device is connected. Wifi Hotspot disabled" while my laptop or other devices are still connected...
Is it possible to deactivate this setting?

Android turns off the hotspot automatically if no device connects to it for "several minutes". Now, since you are connecting your other devices and it still turns off, it seems that the your Honor is unable to recognize the connected devices and continues to feel that no external device is connected to the network.
I'm not sure why it does that, but is definitely an issue. As for Android, there is no way to turn this setting off. It will continue to turn off hotspot if no devices are detected. You can try a "factory reset" if it is possible for you.


text:
Enable charging while in MTP mode on Android
When I connect my Android device (a Samsung Galaxy Tab E with Android 4.4.4) to a PC in MTP mode, the tablet always shows the USB charging being disabled, which makes sense because the USB port of a PC might not be designed to drive a high current.
Now I have a Y USB cable that allows two inputs (one for power connecting wires GND and VCC and one for data connecting wires D+ and D-) to connect to a single output that is my Android device.
I want to force my Android device to both communicate in MTP mode with the PC and charge its battery through the same cable. How can I do that?
FYI I am perfectly OK with the idea of flashing a custom Android image to my device.

I was under the impression that all Android devices charged battery when connected to USB, regardless of mode

Sadly it doesn't seem to be the case with SM-T560 and Kitkat


text:
Using a presentation pointer with Android tablet
I have recently bought the Nvidia Shield Tablet, which happens to have Mini HDMI output. As a PhD student in Maths (potentially staying in academia afterwards), I give and will most likely continue to give presentations on a regular basis and was wondering whether it would be possible to do away with bringing my heavy laptop to conferences and just completely rely on my tablet instead.
It seems like the answer is positive, as there are Android versions of pretty much all the computing software I use and a Bluetooth keyboard should allow for a rather smooth 'working experience'. One final issue that stands out is presentations and in particular the comfort of having a pointer to work with. The way cheap wireless pointers work these days is that you simply plug in a small usb stick to your laptop and immediately it starts to work. Can something similar be achieved with Android? Quickness is key here, I really want to be able to just plug things in and be good to go. I can see two possibilities:
1) Use the so-called USB On-The-Go adapter (micro USB to normal USB) and then plug in the usb stick provided. Any chance of this simple approach being a solution?
2) Buy a more sophisticated pointer which has Bluetooth support and use it to connect it to your device. I guess once it is connected it should work immediately?
King apologies if this question is a duplicate (I sincerely think it isn't, I have done a fair bit of digging) or whether the answer is simply 'both (1) and (2) will work', but I just wanted to be sure before I order relevant accessories.

May I offer a third option?  Buy a ~$30 (USD) Chromecast device and mirror your tablet to a display - using no connecting wires.  Then you can hold your tablet and use your fingers to manipulate your presentations.  A Chromecast is generally smaller than a mouse, too.  This is my go to method for presenting.

This is an interesting idea I haven't thought about. One potential 'deal-breaker' though is that Chromecast appears to require an internet connection, which needs to be set up after connecting to a display- is that correct? Even worse, isn't it true that both the tablet and the chromecast need to be connected to the same wifi? This is somewhat disastrous if I use any sort of 'corporate' wifi, isn't it?

Doesn't necessarily have to be Chromecast - there are lots of Miracast-based solutions (some bearing the shape of a Chromecast, essentially a knockoff), some would create its own local WiFi network for you to connect to and mirror the screen within.

Many thanks, I'll consider it, but probably only if the first option I mention in my question is proven to be not satisfactory. If it is okay though, it looks like the cheapest and most hassle-free way to go about it.


text:
How can I get the official froyo ROM for SGS to use with heimdall?

Possible Duplicate:
Where can I find stock or custom ROMs for my Android device?

I want to upgrade my SGS to froyo, but have given up on Kies which seems to be the most unreliable piece of software I've ever encountered. I've got heimdall running, and now I want to upgrade to the official ROM for my device (GT-I9000/optus). Is there a way of getting hold of the official ROm from somewhere?
Cheers,
Victor

Did you see this? http://android.stackexchange.com/questions/181/how-do-i-upgrade-firmware-on-my-samsung-galaxy-s-without-windows

have you tried one of these solutions to fix your kies problem? http://android.stackexchange.com/questions/3246/fails-to-install-mtp-usb-device

XDA is the best place to look.  This thread even has Optus ROMs for the GT-i9000 Galaxy S.

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

authors: Юра Белоненко


text:
How to turn mobile hotspot off using ADB
I need to turn the mobile hotspot off using ADB. I'm using various Samsung phones with Android 7 & 8.
I'm planning on opening the settings activity and using keyevents. I know the Mobile Hotspot and Tethering settings page is com.android.setting/.TetherSettings but beneath that there is a Mobile Hotspot page. Does anyone know how to open that page with ADB?
I'm open to alternative methods of turning mobile hotspot on and off with ADB.
Suggested solution in How to turn on the wi-fi hotspot using ADB? does not work for the phones I've got.
On Android 7 and earlier you can achieve the desired result by turning on Wifi (which automatically disables the hotspot) and then turning Wifi off again. However Android 8 thwarts this by popping up a warning dialog which has to be dismissed.