text:
ADB server version (40) doesn't match this client (41) {Not using Genymotion}
Disclaimer: this is not a duplicate to this SO question as the source of the question is different and the answers don't apply.* I hope, it is correctly placed in AE and that the note about not using Genymotion does not confuse the reader. The reason to include it in the title is that it is so dominantly present in other answers, but it does have nothing to do with this question, as I don't use any emulator including Genymotion.

So I'm trying to install LineageOS on my Fairphone FP3+ using Windows 10. But: This also applies to other products with other respective versions - in this case, the device uses Android 10 (with Build number 8901.3.A-0054.20200929). For the installation I need ADB - at first to access the fastboot mode. For that, I first installed the latest Android Studio from here but actually only needed the SDK Platform Tools, which you can find here (not to be mistaken with the Command line tools from the link before). I unlocked the bootloader and  ran the following command which is displayed with it's output:
D:\Setups\XXXXX\Lineage FP3\platform-tools_30.0.5(ADB_1.0.41)>adb devices
adb server version (40) doesn't match this client (41); killing...
* daemon started successfully
List of devices attached

This SO question I mentioned in the disclaimer didn't help, as abd didn't even print any devices - so the setting is quite different.  I also went through these linked questions: link 1, link 2, link 3 and link 4 among others. Genymotion is as said not used here, but referred to in almost any Q/A except here, but also no soulution for me to be found there. I already checked the PC for any software that could have installed another adb version, but neither me nor cmd's where could find any (4, 7, 8; 9, 11 or 10).

adb kill-server
adb start-server

Did also not change a thing as suggested here or here. I restarted all devices and software multiple times and tried getting rid of all adb processes too (6, 13 or 12).
I also reinstalled Android Studio to try it without using the cache as suggested in this SO answer from a possibly related question that unfortunately also has no leads. I can imagine that some questions like that one or this SO one could also be helped here.

This might be considered a follow-up

Since this adb server version (XX) doesn't match this client (YY); killing... seems to be a very prominent question, let me present the quite straight forward solution - I actually wonder why it wasn't answered anywhere else or at least, I couldn't find it. To find the version of ADB you are using, type adb version to get something like:
Android Debug Bridge version 1.0.41
Version 30.0.5-6877874
Installed as D:\Setups\XXXXX\Lineage FP3\platform-tools_30.0.5(ADB_1.0.41)\adb.exe

The Android version simply doesn't match the adb version. Android 11 for example uses the API 30 and ADB 41. Android 10 (API 29) and that phone needs ADB 40. You can check your Android version to find the corresponding ADB version to get or easily read the error message above to find XX (in this case 40).
I was able to find ADB version 1.0.40 from here and it works like a charm:
D:\Setups\XXXXX\Lineage FP3\platform-tools_28.0.1(ADB_1.0.40)>adb devices
List of devices attached
A2XXXXXXXXX1    unauthorized

There is one simple rule to avoid such problems: Do only use adb from installed Android SDK (and use SDK updater to get the latest version). Do delete all adb versions that come with other versions.

The latest version was not suited in this case - can you also downgrade that way?

ADB server and client both are running on your PC and this had happen because you had more than one adb version installed. You had executed the version v40 client which started the v40 server on your PC and later you used v41 client which caused the error message you posted.

Actually, I don't have anything installed right now, just the out-of-the-box (or .zip) SDK Platform Tools (right now also only one exists on this system).

I still believe that for this problem the Android version of your device is irrelevant. It is just the two versions of the adb serverthat is running (see adb.exe task in taskmanager) and the used adb.exe as client (usually adb server and client are provided by the same exe file they are just started in different modes). The error says that those two versions are incompatible. What device is attached (and it's Android version) is irrelevant for this error. The error can even occur if you don't have a device attached at all.

@Robert exactly. furthermore it run two different instances of the same binary (multiple versions handler internally for compatibility reasons). no need to downgrade

I just encountered this error and this QA thread did help me, although it wasn't the exact answer for me. I had recently added a second copy of adb to my computer, so that was causing a conflict between the two copies of adb. I needed to update the Path in my Environment Variables to point to the newer platform-tools directory.

Having had this issue after an update and I wasn't able to solve this in the usual way. Through @Cadoiz's answer I was able to find another adb.exe instance running om my windows, which was the one used by SuperDisplay, which I use to run an Android Tablet as a secondary screen.

Hello @Cameron - you can also consider this similar answer by jhocking.

This adds nothing to the existing answers.


text:
Email app displays messages in "Sent" by "From:" instead of "To:"
I configured my Email app to point to an existing Yahoo Mail account.
When I go into the Sent folder, I see that the Android-composed messages display the recipient (To:), but the older messages display the sender (From:)
I checked the headers on several messages. It seems that Email app is selecting first occurrence of "From:" or "To:".
So my older messages say...
From:
To:
...and the "From:" is displayed in the message list
The new messages I composed in Froyo have:
To:
From:
...and the "To:" is displayed in the message list.
Is this the expected behavior? I know that some things are different in mobile world, but classically, the "Sent" folder has been special cased to show who the message is being sent to, because that is the most useful information to display in this context.

source: Stack Exchange

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

sort: votes


text:
Configuring WiFi Proxy Settings
Where can I find the WiFi proxy settings?  I have the Motorola Electrify M with Android 4.1.2.  I would have expected the proxy settings to be under the advanced WiFi options, but they're not there.

Long tap on the network you want to configure. Then select 'modify network'. Scroll down and check ' show advanced settings'

Keep in mind this is not available before ICS (just to mention it for other readers). +1 from me, I didn't discover that yet -- good hint!

@Izzy I found out about that here:http://support.google.com/android/bin/answer.py?hl=en&answer=1649770

@JasjeevSingh Thanks for the link, too! I just cannot upvote again, so +1 to your comment :)

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


text:
Upgrade Cyanogenmod from 9.1 to 10.1 without losing information?
I am running Cyanogenmod 9.1 on my Samsung Galaxy SII, and would like to upgrade to version 10.1. Is there a way to do this upgrade without wiping all my apps and settings from my phone?
If not, is there a good backup strategy (what should I backup, and how) for relatively easy restoration after upgrading the Cyanogenmod rom?
Thank you.

Thanks for all three answers so far, I plan to try it with Titanium Backup and will report back. Thanks!

Here's some advice for moving between any two Android ROMs that will serve you well:

First, do a full nandroid backup if you're not feeling completely confident. You can do this in CWM Recovery, or via ADB (Android Debug Bridge). This will create an "image" of your entire device.
Now that you're safe from screwing anything up beyond repair, go ahead and use TitaniumBackup to backup all your system settings and your user apps (I usually don't backup system apps as this might cause problems). Backups will be saved on your /sdcard/ and will not disappear when you wipe.
(Before this step, make sure you have the ROM zip files on your sdcard, otherwise you'll have to add them via ADB) Go into CWM Recovery and wipe your device (cache and data). Remember, /sdcard/ is still fine. Now install your shiny new ROM.
When you've booted your new ROM, install TitaniumBackup first of all. It will recognize that there's already TitaniumBackup files on the sdcard (from before), and you'll be able to batch install your apps and restore system settings.

Some advice on restoring backups: be conservative. Start by restoring apps without user data, as old data may break the app. If somethings missing and it annoys you, restore that app only with data. Same goes for restoring system settings, deselect everything and just restore what you really want (usually just WiFi hotspots for me).

I followed your instructions and they worked. Thank you everyone for your answers and comments!

Glad to hear you found it informative, if anything is unclear feel free to edit it as I'm marking it "community wiki" now.

First of all, do a nandroid backup from recovery to have a backup of your current phone.
Since you're upgrading not only from a Cyanogenmod release but also an Android release, it is recomended to do a full wipe (/cache, /system and /data) to avoid boot loops and general problems with the upgrade.
If you want to backup all your data, despite doing the nandroid, you can use Titanium Backup, as it will let you backup your apps, data and also some system information (accounts, call log, sms, wifi settings, ...). Just take some care as some system information might not work if you restore it directly when upgrading from ICS to JB. User applications and its data files should be safe to restore.

It is not recommended to back-up apps from CM9, and load it to CM10. This can cause problems.

User apps shouldn't be a problem if they're supported in JB. Also you can redownload the app from Play Store and use Titanium Backup to restore its data.

geffchang: incorrect. Even if you were correct, updates would show up instantly via the Google play store. It's primarily not about backing upp your apps, it's about not having to install them again manually.

Upgrading from CM9 to CM10.1 usually requires a FRESH install. I had to do it this way too. It's not recommended to use Titanium Backup because of possible issues. Read the WARNING at the bottom.
Here are the steps recommended by DonAndroid.

Download the CyanogenMod 10.1 ROM for your device.
Copy the downloaded zip file on root of your SD card.
Boot your device into custom Recovery mode.
Perform a NANDROID Backup from Recovery.
Now wipe the data by selecting “wipe data/factory reset”.
Also wipe the cache partition from “wipe cache partition” option.
Select install zip from sdcard > choose zip from sdcard.
Select the CyanogenMod 10.1 zip file to kick off the installation.
After installation is complete, select “reboot system now”.

Your phone will now reboot to update CM9 to CM10.1.
WARNING
# CM 10.1 is based on Android 4.2.1. Any and all proprietary applications that you have installed outside of CM should be updated to their 4.2.1 counterparts. Do not use the 4.1 versions of proprietary applications, else you will experience difficulties.

# Finally, we always advise that you create a backup before any update. Do note, however, that due to Android 4.2 changes to support multi-user mode, your backups will automatically be transferred to /sdcard/0/[backup folder]. Remember this when attempting to restore 10.0.

It annoys me how people still say "wipe data, then cache". The "wipe data/factory reset" has wiped the cache partition as a part of that forever, just look at the prompt right in front of you. Also, your answer does not adress backing up settings and apps at all, just making a nandroid backup.

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


text:
Is there a way to hide pictures from being shown in Gallery
How can I hide a jpeg image in Android Gallery?
or is there a way to hide a folder of pictures for Gallery only?

If you add a file with the name .nomedia (note the period at the beginning) to the folder, the automatic media scanner will skip that folder in the future. Thus no images from there will appear in the Gallery.
You can do this by tethering to your computer or by using one of the several folder-browsing apps in the Play Store (e.g., ES File Explorer, ASTRO).

thanks, it works. just need to change the folder name once to take effect on current folders


text:
What’s the best way to migrate data from multiple user profiles on a Samsung tablet?
I have a Samsung galaxy tab s4 with several user profiles.  I bought a new Samsung galaxy tab s6 lite that I would like to migrate to.  However, when I used smart switch, it only transfers the admin account without the additional user profiles.  Smart switch does not seem to support user profiles at all.  Third party apps like CloneIT don’t seem to connect. Is the normal method in this case manually copying everything by hand?   What is the best way to migrate multiple user profile data to a new Samsung tablet?

I believe the answer is there is no native support for backups or migration because of isolated mount namespaces so one method is to use the adb as shown here

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


text:
Switch from Wifi to mobile data while roaming
We use international SIM cards in our our standard Android phones (SAMSUNG XCover4s). When they opperate in a weak Wifi environment, we would like them to be supported by the mobile data connection or even switch to the mobile data connection (even though its on roaming), so my question is:
Is there a way to activate the "Switch to mobile data" option in the "intellegent Wifi" option of Android (10), when the device is roaming?
We have full access to the devices. Android Version 10.
Thanks for any help/hint.
Unfortunately I only have the screenshot in German:

According to the gsmarena database this device only has Android 9/10, "current" would be Android 11. So which version do you really have?

Automate app from Llama labs has a feature to detect if the phone is in roaming. There is also the option to check signal strength of Wifi. You can use them to turn wifi off or on. But you have to always have mobile data enabled because Automate app cannot toggle mobile data without root access.

True, Robert, it is Android 10. I updated the description.
@Firelord: Thanks for pointing me to that app - it looks promising. Our issue is that the wifi is availiable (wifi strength is good) put the internet connection is slow/bad. I just did update the description of my question. I will try the "Network throughput" and "ping" block. Thanks

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


text:
prevent android device from creating folders on otg storage
I know similar questions have been asked, but I haven't found a satisfying answer yet.
Whenever I connect a storage device to my phone, it creates the following folders on that device:

Alarms
Audiobooks
Documents
LOST.DIR
Music
Pictures
Ringtones
Android
DCIM
Download
Movies
Notifications
Podcasts

I need none of these. Is there a way to not have this happen every time? Possibly a magisk module or something.
Edit:
Additional information:
Rom: oxygen os 11
Device: OnePlus Nord CE

I would assume that this is a bug of your device (the details about hardware. ROM, Android version is missing in your question). It seems like it misinterprets the OTG device as internal storage. On my devices only the LOST.DIR is created.

Does this answer your question? How to stop apps writing to "Android" folder on the SD card?

@iHnR - did you figure this out? Have same issue with LineageOS 18.1 (Android 11).


text:
recover data from unbootable phone with broken touch
My Oneplus3 touch screen stopped working yesterday. I did some googling and was told that erasing cache through fastboot could be a solution so I did using.
fastboot erase cache

Now my phone just hangs on the boot screen when trying to boot into android...
I can still get into TWRP and connect through adb I would like to create a backup with:
adb backup --twrp

but I'm just greeted with the message
Now unlock your device and confirm the backup operation...

which of course isn't possible without using the touch screen.
Any ideas on how I could recover data?
Edit: I feel like I could get a long way by repairing the cache partition, which would enable me to boot to android and use a USB-OTG mouse or something. Not sure how to do it though.

TWRP adb backup is started immediately, no confirmation needed. You can ignore that message and check backup.ab file is growing
fastboot erase cache

will erase the file system from partition. what you want is
fastboot format:ext4 cache

that will allow you to boot to android and use a USB-OTG mouse


text:
How can I restore Google Chrome after I deleted it on my rooted phone?
I have a rooted Mototrola G6 Play, and today I deleted google chrome because I don't use it, but once I deleted it a bunch of apps stopped working like LastPass and Coursera just to name a few...
I tried downloading it back from the play store but that didn't fix it.
I also tried making it a system application again using Lind2SD but it asks me to reboot and when I do it gets deleted.
I also tried manually installing the apk and placing it in /system/app/ and in /system/app/Chrome/ but that didn't work either!
How can I fix this problem?????
Edit: I was able to make chrome a system app again by changing the permission to rw-r-r after putting the apk in /system/app/Chrome but the apps are still broken!
Edit 2: I've just uninstalled and reinstalled the broken apps and they started working again!

Hi, looks like you've found the solution by yourself, which is great! Consider post it as a proper answer since self-answering is not only allowed, but even encouraged!. Thanks!

Chrome may be installed on system partition but as far as I know it doesn't matter if you use it from system or as a regular user app. It does not have any system permissions and also does not require them.

Have you tried reinstalling those broken apps?

@WrichikBasu yes and they actually worked, I edited the post and mentioned it, but some sicko edited it after and removed it

@SafwanLjd sorry, perhaps I should have been clearer. Unlike forums, and since this is a Q&A site, solutions belong to the Answers section, not the question. Please post your solution on the Answer below to make the question solved. Thank you.


text:
Google assistant activate after pressing button on headphones
I'm using Redmi Note 8 Pro (Android 10, MIUI 12.0.2, not rooted) and headphones with one button.
I have turn off Google assistant, however when I press button it activate Google assistant (or some other assistant).
When I listen music and want pause player, I press button on headphones, and instead of pause music, it activates some assistant. This assistant after few seconds say, that didn't understand and music play again.
How to turn off activating this assistant after press button on headphones?

Is the device rooted?

@RockPaperLz-MaskitorCasket No, it's not rooted,


text:
SAMSUNG a10s boot loop after TWRP flash
I have bought a SAMSUNG A10s phone and tried to install TWRP according to this instruction. I was able to unlock the bootloader and enter the 'Downloading' mode.
I disabled time sycro and automatic updaten, set the time to a few weeks ago and connected the wifi in order to overcome this issue.
I used a Debian computer and the Heimdall tool to flash this TWRP image into the recovery partition (which replaced the existing recovery.img, I took no backup - daft, I know).
Caused by the unlocked bootloader I got a warning with every startup. The usual key-combination for the bootloader menu did not work. So, after a few boot procedures, I tried the offered option to lock the bootloader and perform a factory reset.
Unfortunately, this brought me to bootloop. I was only able to enter the 'Downloading'-mode again. Now, the bootloader is locked again but the images are invalid. I get this error message:
<!>
Partition recovery
Reason recovery: Eroor verifying vbmeta image: invalid vbmetaheader
SAMSUNG recovery, A107FXXU7BTL1, 36415554R
SAMSUNG vbmeta, A107FXXU7BTL1, 36415554R

Quitting this 'Downloading' mode brings me back to the loop which reaches the SAMSUNG logo before it boots angain.
Can anyone explain this situation? Has anyone an idea for a solution? Using Heimdall, I can still read the PIT. So, maybe I can also flash any images. I am very glad for help!

I am already downloading the corresponding firmware from sammobile.

Does this answer your question? How to use ODIN with more than a dozen of mbn, bin, img, ext4 files?

after unlocking bootloader (and necessary factory reset) one must connect wifi and oem unlock again to disable vaultkeeper

@alecxs thanks for your comment. Indeed, I had to disable automatic updates, to set the time longer than 7 days ago and to connect the wifi. This was before I was able to flash anything.

be aware bootloader is not downgradable, therefore i recommend to flash U7 as higher bootloader level may lead in non-unlockable bootloader

@alecxs - I can see the U7 in the error message as a part of the checked image, isn't it? But what does it mean that here, it refers to U7?

yes that is your current bootloader level i am refering to. i don't know which stock ROM you have downloaded but there might be a risk after flashing latest available version your bootloader is locked down entirely and the 7 days trick won't work any longer. therefore flash oldest possible stock ROM (which is U7 already in your case) https://android.stackexchange.com/questions/234025/how-we-can-know-from-download-mode-screen-if-device-galaxy-tab-s6-is-factory-n#comment310253_234025

@alecxs Unfortunately, I know the message "only official released binaries are allowed to be flashed" you quoted yesterday. This was shown in the Downloading Mode after failing to access the TWRP menu. So, can you recommend any strategy for solving this issue without causing remaining damage?

but vaultkeeper is a different story - basically just don't forget to unlock bootloader twice before actually flashing custom binary

@alecxs I am not sure. I missed the unlock field in the developer menu, so I followed this recipe.

Let us continue this discussion in chat.

@alecxs - I am still in the same situation. Right now, I installed JOdin. The phone is connected but I cannot access the PIT. Furthermore, I am not sure about the firmware offered here .. it is just 32 MB. Do you have any ideas?

both download links provided work (2.8GB) you probably clicked the wrong link for boot.img only. unzip the download (3.2GB) and flash the four tar.md5 files according to it's prefix


text:
LineageOS and /e/OS fail to detect SIM card in 2 Xperia XZ2c devices
For my Sony Xperia xz2 compact I used the LOS builds for years. At June 28th, the GSM stopped working caused by missing sim.

I went back to lineage-21.0-20240621-nightly-xz2c
I ordered a new SIM card from my provider -> not detected
I took another xz2c device -> same phenomenon
I tried lineage-21.0-20240706-nightly-xz2c and lineage-21.0-20240712-nightly-xz2c -> still SIM not detected
SONY Xperia z3c (with outdated LOS) and iPhone 11 -> SIM detected
Installed /e/OS on xz2c -> SIM not detected

To sum up: SIM seems to be okay. Two devices of the same type with different Android-bases OSs cannot detect (more than one) SIM Card. I doubt an identical hardware crash in two independent devices at the same time. Any ideas for further investigations? Any chance that there is a systematic bug in the current android-based builds? Any similar experiences with xz2c?

Have you tried to find a log that shed some light onto the problem? If I am not mistaken the RIL should be the one communicating with the SIM card. Trying to "wiretap" (on software level) the APDU communication with the SIM may also be helpful to see which command is going wrong.

I have the same problem. I have not yet found a solution. I run lineage-21.0-20240720-nightly-xz2c. I tried the suggestions here: 1. Enter the APN details manually (which I cannot because the system will not allow me to enter these details because the system detects no sim card) 2. Remove the lock screen & password altogether (which does not fix the issue). I also tried cleaning the surface of the sim card and even lightly sanding it down. The problem doesn't seem to be hardware related though. I can confirm sim is still working in another phone.

I just installed lineage-21.0-20240720-nightly-xz2c (from stock image) and in the first run the sim card was detected and worked. But after the first reboot, no sim card detected. This has been the case for 2 days now. I tried installing the previous version lineage-21.0-20240712-nightly-xz2c, but no luck.

@user434586 - thanks for sharing. Another hint that it is not a hardware damage but a structural bug.

Now, this issue is tracked here: https://gitlab.com/LineageOS/issues/android/-/issues/7474


text:
Effect of removing the -k part in the ADB command
I uninstalled two services using adb command without the -k switch, in particular I typed:
pm uninstall --user 0 com.android.bips
pm uninstall --user 0 com.android.printspooler
Is there a a proper command to restore them back? I tried: pm enable --user 0 & all it said "enabled" (as shown in screenshot), but I can't find them anywhere. I know that if I removed the user 0 switch then I'm out of luck but I kept this switch and just took the -k switch off to clean up any residual files with these services. Am I still out of luck?
one more question: Will factory resetting my device using the option found in Settings>System>advanced on my pixel 4a phone is enough to restore everything back to the state before applying ADB commands?
P.S. My device is non-rooted

Can you please edit your question and include the full command you have executed for uninstalling the services?

@Robert this seems the continuation of OP's previous question

@AndrewT. No matter if this is a continuation question, IMHO every question has to contain all relevant information. Therefore I asked the author to include all the relevant information. As he is not to stackexchange I thought some "critics" may be good for learning how to ask good questions.

@Maged Please do not use comments to add essential information instead edit your question. You can edit your question at any time if you want to add important information. A reader encountering your question should be able to understand it without having read all the comments.

@Robert Yeah very sorry for all the confusion. I edited the original post and added a screenshot of the exact feedback I got from ADB commands but I'm still confused why I can't find these services if I got "enabled"?!

@Maged Thanks, but for future posts please don't post screenshots of a terminal just showing text. You can simply copy the text and paste it into your question and format it as code, this way it can be processed by Internet search engines.

Sure I will. I'm not just not as geeky as you guys so I find it harder to select text from a terminal. Anyway, I just wanted to show everything as it is for your analysis.

Is my situation mysterious to figure out what is going on? At least, is it possible to have these two services shared with me via that app "APK extractor" or something similar to it from a Pixel 4a device (US version)?

@Maged try adb install-existing com.android.bips. You didn't really uninstall the app from the device (just made it invisible for the user), so it's still there.

it didn't work as it gave me: inaccessible or not found

from your screenshot i see you forgot 'cmd package' nevertheless the 'pm enable' looks successful. you maybe just don't see icons in app drawer even already enabled (btw in windows terminal you can mark text with mouse cursor and copy to clipboard with enter key)


text:
Is it possible to change the Android ID with root access? (On Android 10)
I have an Android 10 phone (Motorola Moto G9 Play) and I want to change the Android ID (I think that's what apps use to identify you sometimes).
I have a cell phone with: ROOT + Magisk + EdXposed
I always changed my "Android ID" using "Titanium Backup". But there is currently no option to change.
Is it possible to change the "Android ID" just using a few tools, command line, applications, something that can modify the "Android ID"?
Please, I need it so much.
Reason: Some applications when they are going to ban accounts, they block the "Android ID" and I need to modify it and then use it again!
(By Google Translator, sorry!) =(

Is it possible to change Android ID without root access nor factory reset?

Where is the “android_id” stored and when does it change?

Thank you very much for the 2 responses.

If I change an application's SSAID from "aaaabbbbcccc1111" to "aaaabbbbcccc2222" for example. After I update it, or reset the settings, does it lose "aaaabbbbcccc2222" and go back to the original SSAID "aaaabbbbcccc1111"?

What exactly happens if I delete the line with (name = "userkey")?

Your device already uses the app-specific persistent ANDROID_ID. I have not checked the AOSP source code how this is implemented but based on your experience I would assume that for each app that has been ever installed in some SQlite or XML file the generated ANDOIRD_ID is kept.


text:
Need to lock Genymotion SaaS appliance to run only 1 app in restricted user by default and prevent install 3rd party apps and access to settings
(solved)
I need to run an app in Genymotion that is used for data entry and upload of the entered data into 3rd party sites. The logins to 3rd party sites are stored in this application (probably encrypted). The application will store multiple logins for my different customers of who need to have the data uploaded into the 3rd party sites. The data into the app will then be entered by other people to whom I outsource the data entry.
So I created Genymotion appliance, installed the app and in this application I entered logins for sites such as ebay. I am looking for suggestions on what can I do to secure the appliance to prevent the data being copied out from it.
I want to prevent the person to whom I outsource data entry to be able to install and load 3rd party other apps, modify system settings, install other apps, copy the system directory, copy the login and password information saved by the application.
Let's assume the worst possible case here when application is well written but the passwords mentioned above (for the ecommerce sites like ebay) is saved in plain text in this application in the internal application directory. What I know about the application is it doesn't support access to SD Card, only can read and write data to the internal memory.
What can I do in Gennymotion to improve the security of my appliance. Genymotion virtual machines are rooted. So I looked at following steps already:

Setup restricted user on Android
Set restriction for the restricted user to only be able to use the one application. Disable anything else (including disabled browser, email, youtube etc..)
Try to get the restricted user loading on boot of Android. When Android restarts, however, it doesn't allow choice to login into the restricted user or the admin user, sort of like a Windows or MacOS login menu. To get the appliance to always start with restricted user by default, I need to add a script and the scripted will need to start using Tasker or MacroDroid.

However, how do I prevent the user from installing 3rd party apps? Is it good enough to disable all user apps (except that one used for data entry) from the restricted user? Is there any other way the user could abuse the access to the virtual appliance and load something there? Are there any system android apps I need to disable for the restricted user to prevent the user to be able to do anything bad with it?
The application used for data entry can not download any application or data, however, I believe it does use the webview because it loads sites like ebay and fills the forms on those sites. It only interacts with select websites only like Ebay to enter data into Ebay forms..
Is there anything I can do to secure Genymotion appliance any other than what I already mentioned. I would like to send the link to the Genymotion SaaS Android to people who will do data entry for me into Ebay and other sites. So I need to make sure the virtual appliance is secured as much as possible from tinkering with it. I need to make sure somebody doesn't get hand on the stored login details.
Just to clarify for the login credentials:
I am not sure how the user credentials are stored and I will find it out, however, for now, I go from the worst case scenario when the credentials are stored in plain text in the app settings. The user name and password is stored in the application with exception for Ebay because the many other sites do not have API key or any webservices interface, so the application would access those sites simply via a webview, and when it goes to login there it will do that by filling in the login information on the login form (simulates keystrokes). The user name and password is entered into the login form for the site. That's why the login info is stored in the application itself.
This question is not about how to secure the specific application I will be using, but how to secure the actual whole Android appliance from tinkering with.
I am aware I will the risks here, just want to do as much due diligence as I can.
Update:
Done some digging so this cannot be done. Neither Genymobile or Appetize or other online Android emulators can offer fine-tuning in terms of user access. The closest is Genymobile because at least allows adding and removing access of users to individual appliances. That is however not resolving the issue with Android and in particular rooted Android, since all online emulators run rooted Android and I am not sure how that is secured against potentially malicious actors who receive access link.
The only easy way to solve it, kind of in a mickey-mousy way is to install Kiosk mode application. That kiosk app will run at every boot and it only shows the specific application. There is always risk of course the malicious user would do something to crash the application and the Kiosk app, but if the application is not a web browser or email client or similar it should be relatively safe.
There are plenty of Kiosk mode apps for Android but none of them is free (don't try to look, no chance to find one), the cheapest cost about 7 USD one-time purchase, the more expensive ones cost 20 per month per device or more and come with remote control etc... Not cheap but kiosk mode apps are almost exlusively used by businesses so that's why there is lack of free apps.
Anyhow I believe this is the closest as I could get to deal with this.

Sources for Genymotion restricted user setup ..
How to set restricted user as default user on reboot?
https://docs.genymotion.com/paas/10_Using_root_access/

Genymotion is an emulator that is installed on  local PC. It is based on VirtualBox so you have an Open Source emulator running on a PC the user may have admin/root permissions. Thus no matter what you do the user can modify everything and every limitation you implement can by bypassed. If you want to limit something you need to run everything on a server where you are the only one who has root access. But in general using an app in n emulator for data entering is a bad idea. better develop a website based on Python or PHP (server side execution).

Thanks for response. Sorry I didn't explain perhaps clearly. 1.  I am not using Genymotion desktop, but their SaaS product, which is server hosted on Genymotion server for which I pay subscription by minute. 2. I am already using Airtable for manual data entry collection and then it goes to the Android App. From there the Android app is entering data into Ebay/Amazon etc.  So did you mean develop website to enter data into Amazon/Ebay?

Resolved by installing Kiosk mode app on Android. Details in the original post.

Looks like you found a solution by yourself, which is great! Since this site is a Q&A site, consider posting it as a proper answer instead since it's encouraged by the site, thanks!


text:
Change DNS on Android - via Settings/Network&Internet/Advanced/Private DNS ... or via Settings/Wi-Fi/Modify network/Advanced options/IP Settings?
Device is on Android 9. NOT rooted.
I want to set the DNS to CIRA (or Cloudfare or whatever, not the point). Yes my wifi router is already set to proper DNS. If I am not at home I want the device to have set DNS.
Question 1:
Is how do I do I set DNS on Android for Wifi but also for Mobile connection?
I looked at a couple of sites recommend to modify the Wifi setting as the easiest method. I don't want to install 3rd party VPN loopback tool because I use extenral VPN so I don't know how that will work together.
This talks about 8 methods to set the DNS. Only handful would apply to me:
https://forum.xda-developers.com/t/guide-how-to-change-dns-in-android-device-8-methods.3273769/
However, this page talks about setting up yet another way.
https://www.zdnet.com/article/how-to-turn-on-private-dns-mode-on-android-and-why-you-should/
So I am a bit confused. It looks like the 2nd link is not setting the specific Wifi. Is it going to apply to LTE mobile connection? My device offers both ways to set up:
via Settings/Network&Internet/Advanced/Private DNS ...
or
via Settings/Wi-Fi/Modify network/Advanced options/IP Settings
So is this the best way to setup via the Private DNS?
Question 2:
What do I enter in the box "Private DNS", is both word domain and the IP address okay?
Question 3:
If I root my device, do the rooted methods work better?

Anyways disregard the questions. I found the answer. The new setting was introduced in Android 9.
https://www.xda-developers.com/block-ads-on-android/
[https://www.xda-developers.com/block-ads-on-android/][1]

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:
Google Play Store without payment method issue
My mother has retired and is using a cash account. Her account no longer can provide payment details to Google Play Store. When she opens the Play Store, to update her apps on the phone, it advises the following,
"You haven't set up purchase verification".
It gives you the option of biometrics or password to press on.
I reckon it had two do with Two Factor Authentication.
Does anyone know how my mother can proceed without providing this information, as my mother has no account that allows internet payments any more.

What worked for me was clearing the Play Store cache several times and re-trying the app until it finally let me into the Store.
I can't set up passwords or biometrics on my elderly mother's phone either--she wouldn't be able to use the phone!

"Payment details" and "purchase verification" are two different topics that have no relation to each other.
A purchase verification in the Google Play Store app can be configured for every purchase in Play Store no matter if you have a credit card or another payment system configured. This payment verification is simply a measure that allows you to protect yourself against accidental Google Play purchases.
As you mentioned, it can be configured to use biometrics or password.
Biometrics means the Android biometric authentication is identical to the one you can use on the lock screen.
Password means your Google password.
Note that purchase verification has nothing to do with two-factor authentication. It is simply a measure to prevent you from "accidental" Google Play purchases.

It sounds like its asking for verification, not the method.  Just use password or biometrics.
If for some reason that doesn't work, and it wants card details, then enter details of your card.  Once successful, delete your card.


text:
How to hide a whatsapp contact for calls and sms
I am using two Whatsapp accounts on a dual sim phone.  I really want to keep the contacts separately.  I managed to set one contact as Whatsapp only, so it's not visible from the contacts app.
I am trying to replicate this, whenever I create the contact from WhatsApp, its visible in the contacts app.  Yet the previous one is not.
How can I do it again?  There must be a method to do it.
This is the reverse of what I want
I am using Samsung Note 20 with Android 13.  I can see from answers to different questions on this site that there are other possible solutions for earlier versions of Androids.

As posted in the question, I managed to what I wanted the first time.  But the second and subsequent ones would appear in contacts (for calls and SMS).
I tried deleting them from contacts and adding them from WhatsApp, but no luck.
Eventually I used the Contacts Optimizer App.
I had already installed the pro version a few years ago.  It is great to find duplicates and delete/merge them.
Using the app, I noticed that the errant contacts appeared under the email account as well as under WhatsApp.  I deleted them from the email account.  They still stayed under WhatsApp, so all good.
Note, I am not associated with this app in any shape or form.


text:
Is it possible for an individual to update his/her android v10 to 11 or above
My current Android version 10 has no wireless debugging option and I want to modify my gaming performance through lowering or disabling battery usage. Also my phone its an Infinix smart HD brand.

Android Updates have to be distributed by the phone manufacturer, because they have to integrate it with thier custom software.
If you are willing to root it, then you may be able to find a solution.


text:
How do I boot into recovery mode on an HTC Dream/G1?
I'm trying to revive and root an old HTC Dream. According to every ten-year-old tutorial I've been able to find, you should be able to boot into recovery mode by holding the Home + Power button as you boot the phone up. This simply doesn't work for me - the phone just boots up normally.
Is there anything else I can try? Does it differ for different specific HTC Dream models, or something?
It might be relevant that I've downgraded this phone down to Android 1/RC29 following tutorials. I've also noticed that the Call + Menu + Power combination to reboot the phone doesn't work, either.

adb (shell) reboot recovery or adb reboot bootloader and from bootloader menu select recovery maybe?

@alecxs Yup - since posting this question I found out about the reboot recovery, reboot fastboot etc family of commands. They don't work over ADB in my use-case, but they do work over the root telnet session (a long story, but anyone in the middle of trying to root an HTC dream will know what I'm talking about). I would love a clarification on why the keyboard commands don't work on my device, but I doubt anyone will know. I'll post an answer in a while.

maybe home button is not functional

Press the Power button to switch off the device.

Press and hold the Home button + Power button at the same time.

Keep holding the buttons until a black screen with a warning sign appears.

Next, press ALT + L.

Then Alt + W for 'wipe data/factory reset'.

Press the Home + Back key.

Device will restart and after that, you can use it.

Appreciated the images, but looks like images 3 & 4 and 5 & 6 are the same?

Sadly, These tips will not work at all for this problem with the HTC Dream G1.


text:
How to make calls ring (with sound) while messages vibrate?
This seems like a fairly basic thing but I'm having trouble nonetheless. I'd like my calls to ring (with sound) while messages vibrate (no sound). How do I do this?

Setting sound mode to "sound" and turning notification volume down means calls ring, but I get no vibration.
Setting sound mode to "vibrate" means messages vibrate, but I get no ringing for calls.

I am using Android 11 and have a Samsung Glaxy A71.

Grant Messages app the VIBRATE permission while disallow to the Phone app: https://android.stackexchange.com/a/215658/218526. Or replace the stock Phone app with some other app which provides control over vibration behavior.

There is a very simple solution

The Ringtones (used by Calls) and Notification sounds (used by Messages) can be set to different audio.
For Notifications (under Settings->Sounds and Vibration), select a tone without audio.

As an example Zedge has such ringtones.


text:
Is the code that detects phantom button presses part of Android
On one of my Samsung Tablets this morning, after signing in, the device would go to the lock screen after a second or so.  If I was quick, I could then press and hold the power button (intending to restart it).  Again, it would go back to the lock screen.  Sometimes I would see the Power Off / Restart buttons, but I was not fast enough to press them.
When I Googled I found this

If you know the tablet is charged and it still won’t turn on, the standard method for resetting Samsung Tablets is to hold down the Power button and the Volume Down button until the boot cycle starts (about 10–15 seconds). Then release the buttons.

How Do You Reset Your Samsung Tablet If It Won’t Turn On?
Question - Is this amazing code that detects phantom button presses a feature of Android?  Or is it a Samsung artifact ?
EDIT
It does not appear to be hardware, here is another link from 2017 Complete Guide to Fix Samsung Tablet Problems.  There are many more, and only in one case was it the hardware (digitizer).

I am sorry but your last sentence about phantom button presses doesn't fit to the rest of your question. If the power button doesn't work correctly the chance is high this is caused by a defect button.

If it was a defective button, the above sequence would not work.  And these solutions have been out there for years.  It is definitely a software issue.

It's unclear what is the relation between phantom button press with the quoted paragraph. The quoted paragraph didn't mention about the behavior that you described. Holding power + volume down will just force restart (not reset) the phone, if the buttons are working (I just tried it on Samsung Galaxy M21). Have you tried it?

On the other hand, to detect phantom/ghost touch on digitizer, turning on "Show taps" on "Developer options" will show the symptom.


text:
Why can't i turn on installation from unknown apps on my androidtv

I went to settings, then security and restrictions, then unknown sources. After that i couldn't press on a single thing except back. They're all in gray

Which Android phone and Android version are you using?


text:
Importing messages from Whatsapp to Telegram has size and count limitation
Telegram has recently announced that you can transfer chat history from Whatsapp and some other apps to Telegram. I tried to export a chat from one of my contacts in Whatsapp but I realized that it has not been exported completely.
On Whatsapp website, it says there is 10,000 messages limitation if you include media and a 40,000 messages limitation if you don't include media.
But actually after some research I found this post that says there is also a size limitation (how many megabytes) which can limit the number of messages to be exported way below 10,000 if you include media because you might have many images or voices.
Is there a workaround that I can export all the messages in a Whatsapp chat to Telegram?
For example a possible workaround might be that first I export to Telegram then come to Telegram and see what has been exported. After that, I go to Whatsapp and delete the previous exported messages and do this process for the remaining messages until no messages remains in Whatsapp. But I have not tried such a workaround.


text:
How to receive email when missing or receiving call or sms?
I have a couple of phones with their own sim cards and provider (for many different reasons) and so, given I don't want to:

Hear different ringtones
Hear the same ringtones but multiplied
Monitor all of those different sim cards/phone
etc

I thought of knowing how to get/receive alerts through email when receiving or/and missing phone calls and (if possible) SMS...
Is there an application existing for this? or some sort of setup? I'm well aware of the reverse existing (eg: sending phone calls/SMS for email) but after searching for a while, I didn't find much if anything that would do the above.
Any advice/answer/feedback is welcome. I'm on the latest android (but I don't mind using the older version).

User [tag:automation] // with MacroDroid set up a macro with trigger :missed call and actions 1.send email 2. Send sms//configure your email in settings

That's Nice...How come I never heard of this before? Thanks!

This answer is somewhat related

Yeah, but don't think mine is a duplicate given this is mainly about "direct" phone calls (eg: without whatsapp etc) and sms notification through email..But it is somewhat related yeah @beeshyams

That was just to give some pointers (not a dupe) //In my first comment I addressed missed calls only //you can tackle sms similar way, I have  SMS portion set up on my phone for selected originators (Bank etc)


text:
DNS name resolution for local hostnames does not work anymore after android 9 > 10 change
I use my android phone(s) as a wifi hotspot, clients get IPs from the 192.168.43.0/24 network.
Previously, when the phone was running android 9, internal name resolution for those clients worked fine, as those were configured to:
[root@laptop1 username]# cat /etc/dhclient.conf
send host-name = gethostname();

and nslookup laptop1 yielded 192.168.43.xxx on laptop2.
Now, after the change to android 10 (new phone), this no longer works.
It seems like it is because dnsmasq was replaced with something else in A10 (Hotspot mobile network tethering and DNS). How do I get the original behavior back? Thanks.
Rooting is not an option, unfortunately.

Unfortunately you cannot force/configure Android's new Java DHCP server to remember host names of DHCP clients for later name resolution by DNS server (which is dnsmasq). Explanation on how things work is in my answer to https://android.stackexchange.com/a/215878/218526

Did not find anything about new java dhcpd in android 10 on the page you've linked, unfortunately. To cut it short - a bugreport should be filed against A10 dhcpd, right? This is a clear regression from A9-. Thanks

Android stack exchange is not the right place to discuss Android's internal functioning of DHCP. See the source code for that: https://android.googlesource.com/platform/packages/modules/NetworkStack/+/refs/tags/android-11.0.0_r1/src/android/net/dhcp/DhcpServer.java. But the DHCP server is not configurable as I already stated. You can rebuild your ROM though, with modified source code. My answer linked above explains how DHCP/DNS works regarding local host name resolution. Knowing the inner details, in some cases, you can hack the standard functionality according to your needs.

Thanks for link to the dhcpd source! I'll check what could be done there..

https://issuetracker.google.com/u/1/issues/189684136


text:
Manual screen rotate via terminal isn't working
I want to fix the custom ROM (android 7.1.1 Resurrection Remix) issue on my tab TB2-X30L (portrait orientation instead of landscape on startup), but when I write the command content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1, the screen doesn't rotate (on my phone with android 9, sm-j600f, this command is working).
Autorotation is working. Root access and TWRP are present.
Any way to rotate the screen via terminal?

Can you please edit your question and give more details on on the two devices you mention? At least the Android version would be good to know and the device model would be good, too. As you are running custom ROM the used ROM way also have an influence on your problem.

Have you actually ascertained that your custom ROM is using the same key "user_rotation" and expect the same value you are supplying to act on rotation? It is best if you toggle auto-rotation through quick settings and watch what changes it make to a Settings' key, using logcat.


text:
Motorola One Power - corrupt and wouldn't unlock bootloader
My Motorola One Power went blank recently and when I switched it off and then switched it on, an error message was displayed that my device was corrupt, it can't be trusted and it won't boot again. The message asked me to go to Motorola's unlock bootloader page.
So I went on and installed minimal ADB and fastboot, Android SDK. Then I proceeded as stated. I opened cmd there and went for the unlock code and it was failing a number of times.
Next, I downloaded Lenovo's Motorola smart and rescue assistant and tried to rescue my phone but that also was failing.
So on further surfing, I think that I haven't enabled USB debugging and haven't toggled OEM unlocking.
Then I tried downloading the twrp image and booting thru it. So when I run fastboot boot recovery.img
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot recovery.img
downloading 'boot.img'...
OKAY [  0.636s]
booting...
(bootloader) permission denied!
FAILED (remote failure)
finished. total time: 0.639s

So what can I do now? Please help me as I don't want to lose this phone. Also, can the data in it be retrieved in any way?

You cannot boot a recovery image with a locked bootloader. Do you have the full firmware archive that is equal or higher version? If not, your only option is to send/take it to a service center for repair. As far as the repair tool, I haven't seen that work for any phone made after about 2013, give or take (like original Moto G timeframe).


text:
Android O VirtualBox can't set up device - Google Play services keep crashing
I have an Android O Virtualbox and when I go to set it up, it asks if I want to set it up with data from my old phone or start new. I've tried both options, and it says that the Google Play Services have stopped, every time I try. I don't know what to do.

Tested for ubuntu 16.04.

You can use this link to follow steps.,

https://www.howtogeek.com/164570/how-to-install-android-in-virtualbox/

for 32-bit system use this link for latest Android-orio.,

https://osdn.net/projects/android-x86/downloads/69704/android-x86-8.1-r2.iso/

for 64-bit system i used this link for latest Android-orio.,

https://osdn.net/projects/android-x86/downloads/69704/android-x86_64-8.1-r2.iso/
and at one step there is no Primary or Logical partition option as mention in the post, there you have to create a partition, you have to enter some values too, where there is default just let it be like it, and enter 8300 for linux. Actually that and name of the pariton is the only value i've entered in rest i just pressed enter.

I'm afraid I don't see this answering the question. The question is about Google Play Services on Setup Wizard, not about installing Android in VirtualBox.

@AndrewT. you want me to delete the answer?


text:
How to set an Android tablet so that it is not possible to exit a Chrome tab?
We need to set up an Android tablet so that it can only be used to browse a Chrome tab set by us. It must not be possible for the user to exit Chrome or do anything other than fill in the fields of the web page opened in the Chrome tab. Can anyone tell us how this can be done?
We just searched on google for a solution with no success.

Unless I'm wholly off on this the solution is a dedicated app which should load a given page in webview and makes sure the webview cannot be closed. The app also needs to set itself as a default home launcher app so that home button presses doesn't dismiss the app. You might want to look into Kiosk type app to see if they provide the features you need. Else you might have to get somebody to develop a custom app for this.

Possibly related (but old): Set Kiosk mode in Chrome for Android

Kiosk seems a possible answer to this problem. I’ll keep you updated about it.


text:
Enabling Multi User Feature on Realme 3
Can anybody help me with enabling the multiple user feature like stock Android without rooting. I've tried getting the default.prop through adb and changing some properties and then replacing the copy on the phone with that but it wouldn't let me, cause my phone is not rooted and it's telling that I don't have permission. I don't wanna try rooting the phone just yet, cause it's a relatively new unit.So there's probably no stable root guide for it yet and so I don't wanna accidentally hard brick my phone.
Please somebody help me with this.If you have any suggestions and thank you in advance.

Multi-user feature must be enabled in Android framework while building ROM: https://source.android.com/devices/tech/admin/multi-user#applying_the_overlay. If the OEM/ROM developer didn't, you need to modify framework-res.apk file at least which is not possible without root.

No, multi user feature is not available in Realme 3 containing Coloros 6.And you cannot enable it without rooting. Realme 3 is based on Mediatek chipset, so you will not get good support for third party ROMs. But in future this phone will get RealmeUI update, which may bring multi user feature.


text:
Philips Android TV 43PUT7791/v1 boot loop issue
I have Philips Android TV 43PUT7791/V7 which stuck at logo and rebooting continuously. I want to enter into recovery mode . I have tried with pressing and hold  down key and plugged the power and waited for 1 minute and also tried combination present in joystick keys.
Kindly, someone help me to enter into recovery mode.


text:
Is ROM of both P60 & P70 variant of Realme 3 same?
The Realme 3 smartphone, developed by Oppo, comes in two variants: one with the Mediatek P60 chipset and another with the Mediatek P70 chipset. The global variant has the P60 chipset, while the Indian variant has the P70 chipset. The model numbers for these variants are RMX1821 for P60 and RMX1825 for P70.
The question revolves around the compatibility of the ROM (Read-Only Memory) for two different chipsets. According to Realme's official website, the ROM version 'RMX1821EX_11.A.22' seems to be intended exclusively for the RMX1821 device with the P60 chipset. The concern is whether it is feasible to install this ROM on the RMX1825 device, which has the P70 chipset, and whether it will function correctly. Alternatively, it would be helpful to know if there is a separate ROM available specifically designed for the P70 chipset.

Both are different. Consider the example of Xiaomi devices. Xiaomi devices have two types of OS(rom) one global and other is chinese. Global contains Google apps, and chinese is without Gapps. Likewise, i think realme also have changes in rom.

@RahulGopi If Gapps are not available or something like that there is no problem . But my main concern is that If I flash the P70 device with P60's ROM; will it brick the device

both will be different. I am using moto x4 indian version(XT1900-2) which is retail, and in US(XT1900-1) is android one, both rom is different.

Hi, are you using an AI assistant when rewriting this question? Just curious because some of the wording is peculiar, though it's not really a problem if the original question was written manually, but still be careful with possible hallucinations if not fact-checked manually. Some considerations: Is attribution required when using LLMs to improve the grammar/formatting of a post?

@AndrewT. yes, and fact checked manually.


text:
How to modify possible values screen timeout on rooted devices?
I've managed to root my device.
I wanted to keep my screen awake forever. However when I looked around the Settings, the maximum value is 1 hour in the Display settings. There's a 'never' in Developer settings, but only when device is being charged. I used Tasker to set the timeout to Never, but it gets changed back when I click the  Display Settings. I used Android wakelocks but they stop working when they're removed from the memory.
I know those settings are practical enough, but as a geek I would like to know how to get 'Never' appear in my Display Settings.
EDIT: To repeat again, I DO NOT want to use an app or a wakelock to accomplish this. I just would like to have my ROM (/system partition) modifed so that 'Screen timeout: Never' appears in my Settings.

TheDarken's Wake Lock (link) had always worked fine for me for the purpose. Never had it removed from memory either.

@AndyYan Thanks for the reply, but I've expressed in my question that I simply want a 'never' in the settings.  For keeping deviceawake, Tasker is perfect enough because it can detect when I changed display settings.

I'm currently researching this exact question, with pretty much the same parameters as you (my sympathies for the frustrating responses).  One app I've found to be quite promising: SetEdit.  This app -- after using ADB to grant additional permissions -- allows you to directly access and modify the settings' values saved in their respective .db containers, many of which are not accessible through the frontend UI.  Of course, the trick is finding the correct one and not bricking your device in the process...

In order to keep screen awake forever:

Download No Screen Off app and install it.
(Ignore this PLEASE) If you know android programming, you can use this snippet in your app:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

Some phones have "Keep screen turned on" option in Screen timeout
settings.
(Requires Root) You can use PerApp for making change in Screen timeout
settings and add your own value.(customize)
There is a stay awake option in "Developer Options" to Stay awake
while USB debugging and charging.

Apart from the second, I have ALL methods mentioned in my question body... I just would like to be able to use the third method. (The 4th method seems mostly the same as Tasker and does NOT survive a Settings change)


text:
Where is the main website connection log?
Is there a log/database of all the sites visited on my device, across all apps even in private modes? If not specific sites, just the domains/IPs connected to?
If so, where do I find it? How far does it go back? I would like to see it.

There is nos such think as a app overall browsing history. Webbrowsers do maintain a browser history but only if they are in non-private mode.

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

@Robert is there no system-level log of connections, then? Not even just the domains connected to?

No main stream OS (Windows, MacOS, Android, iOS, Linux, ...) maintains a connection log. Having one is just a wet dream of politicians and people from police and intelligence.

@Robert oh, I guess that makes sense. I thought that Windows did maintain one though, as I believe that I've accessed one before in cmd. But I think it gets wiped every time it shuts down.

@Robert may I just confirm, that is true of all Android devices (ie. Sony, Samsung, Motorola etc)? I believe the OSs of each of these can be quite different from each other?

Related: How to view network traffic requested by a specific app?

@user1829u2 Not sure about those Chinese brands but in general such a log or database would decrease phone speed and cause flash degrade therefore no manufacturer would implement something like this at free will, only if forced by a government would bring a manufacturer to implement this.


text:
Questions Before I Sell My Phone (Too Late To Encrypt Drive?)?
I'm pretty strapped for cash and I need to sell my phone (Motorola Moto G7, Android 10). However, there are some... sensitive... photos of myself on it that I'm not suuuper comfortable with the next owner recovering. I'd also rather not have them recovering my search history, emails, passwords etc.
My original plan to "sanitize" my phone was to factory reset it, fill the drive with large files to overwrite everything, and factory reset it again. However, I've done a bit more research into SSDs and have realised that, because of wear-levelling, this will leave as much as 15% of my drive unaffected.
My new plan is basically to do this multiple times. In my head, this should accommodate for the wear-levelling, and will eventually result in almost everything being overwritten.
Will my method be at all effective? If not, any suggestions? By the by, encrypting the drive doesn't seem to be an option for me, as I have already factory reset my phone once, so that data is already deleted-but-unencrypted.
Please keep in mind that a. My phone needs to be working as normal and b. I can't root it if I want to sell it.
As a side note, I saw in an earlier post that there are some read/write Android partitions that remain even after a factory reset. Should these be of any concern to me?

We can provide details if you tell us phone model and android version. Most likely factory reset is enough. I recommend to delete a single file and try to recover right after, you will get a feeling what we are talking about

@alecxs sorry, done.

@alecxs so I'm already okay? I don't need to do anything more?

Does this answer your question? Note 20 Ultra, deleted files

@alecxs that's helpful, but I don't quite understand the linked discussions. Is FBE and F2FS already on my phone by default?

Yes, according to fstab that is the default for Moto G7 (river)

@alecxs awesome, thanks a lot. Out of interest, if those security measures weren't in place, would my method have worked?

Not quite sure. if you fill up whole storage with random data (up to 100%) everything get overwritten regardless of wear-leveling, but depends on what FTL declares as 100% (might be there are 300% reserved cells extra to increase life time, idk)

@alecxs alright, thanks. Any way to check how much is reserved?

practically? no. from hypothetical perspective it would probably require access to controller firmware. some links in chat will lead you to more advanced users than me (no clue)


text:
How to factory reset when /data cannot be mounted?
My phone shows "Encryption unsuccessful" message after trying to open and the "Factory reset" button below it does nothing. I tried to boot into recovery mode (Power + Volume Up + Home) and chose "wipe data / factory reset", but it results in messages like this:
- wiping data..
- failed to mount /data
- wipe complete

Although it feels like the wipe is not complete, since the same errors keep happening..
I wonder if I should (if it is even possible) connect the phone to my PC with a USB cable and manually delete everything? Other than that, I'm not sure how to do a factory reset. Assuming this is not a hardware failure of course..
My phone is not rooted, and I don't care about data loss. I just want a way to reformat and be able to use the phone..
Edit: If possible, I would prefer to format the phone so that it does not encrypt the file system anymore, in order to prevent a future error of the same kind.
Thanks for any help!

I'm not sure, what that is :) The phone is not rooted. I just want to factory reset it. I can install ADB to my PC, I guess, if that's necessary. Although I prefer to do it with a built-in Ubuntu tool like dd or something if it's possible.
Edit: the device is 5ish years old i think, and it has been turned off for a while so it might have caused hardware issues. It got stuck while trying to open and I removed the battery, maybe that's what caused the encryption issue.
I could try Odin, I guess.. Not sure how to check the bootloader..

Sure, it wasn't a great device to begin with so I don't have my hopes up :p Just trying to see if it's saveable.. OK, I will try Odin. Thank you so much! I wish I could upvote your comments, though at this point, they are as good as any answer.. So you might want to post an answer :)

Will Odin root my phone? I don't really want to root it unless it's absolutely necessary. Edit: That's OK, I could work with another encrypted installation, if it works :p

I guess. The phone is not a Samsung, I actually doubt if i can even find its model since I cannot open the phone :) Wish there was a way to backup/restore the current firmware..

Connecting the phone to PC, Windows started downloading MT65XX drivers but I'm not sure what the XX part is..

Does this answer your question? Backup/dump kernel image (and full ROM) without root for Mediatek Devices

I found that the phone model is MT6572. Phone brand is ZTE but I'm not sure about that.. I'm trying to find a stock rom for MT6572 now.. I think I need to use SP Flash Tool for this phone. The recovery screen looks very similar to this one: https://forums.androidcentral.com/attachments/general-help-how/84075d1380718778t-android-recovery-3e-3e.jpg

Mine doesn't show that. it just says "Android system recovery <3e>" then "Volume up/down to move.."

you can enter bootloader mode, install bootloader interface drivers and type 'fastboot getvar all'

could be ZTE Blade with unlocked bootloader - 'fastboot format:ext4 userdata' should work. or create your own scatter file with Wwr_MTK and format userdata from SP Flash Tool

how/where do i enter that command? thanks by the way :)

enter bootloader mode, install Android Bootloader Interface drivers, download platform-tools and type 'fastboot devices' in cmd.exe


text:
Is is possible to send files from smartphone to a PC via USB (Export commanded from the smartphone)?
I have files (mainly pictures) selected under android file manager or photo viewer.
Is it possible to send them to a PC via an USB connection ?
My aim is to do the file selection on the android device, and export this selection of files from the android device to the PC.
I know how to connect the PC via USB to the android device, and to  copy using the PC file manager. However with this procedure I have to retrieve the file from the PC on the memory of the android device, which I would like to avoid (because it's time consuming and prone to errors)
(Running Android >=9, PC with Linux OS)
Best Regards

no, there exist no method to send files to PC

If the PC is running Linux, set-up an SSH server on it and copy the files via an SCP capable file-manager or Termux SCP command-line/script.


text:
Password method changed on nexus 4
I just got a nexus 4 and have been trying out a couple of 'lost phone' apps. I was using the face/pattern authention for the lockscreen, but now it prompts for a password. I tried my google account password and I still can't get on.
I'm not really sure what caused this, but I'd obviously like to get back on my device. How can I recover (or reset) my password?

The prompt for the password is probably caused by one of those apps. Try to remember the password you may have used for them.
 Or else please provide a list of the apps you've tried. (This can be achieved by going to the Google Play website and clicking on my apps.
As a last resort you can restore your phone to it's factory settings by entering the recovery.
To boot into the recovery press and hold power and volume up

I ended up doing a hard reset. The problem actually happened after I removed the apps(Android Lost and Wheres My Droid). I also had prey installed, but the password from that didn't on the phone, but it did on the site.


text:
How do I transfer files in ClockworkMod between my phone and my computer if my phone doesn't have an SD card slot?
So the phone can only boot to "ClockworkMod Recovery" due to unknown reason.
Is there a way to transfer files between my phone's internal memory and my computer? There is no SD card slot on the phone.
I don't have any other ROM in my phone which means I can't flash anything but the official ROM (through download mode) which I think will remove all the files.

This suggestion assumes familiarity with connecting to the phone via ADB
I had a similar situation on my previous phone. I was able to pull the important stuff over ADB when the phone was in recovery. In my case I had to mount some of the filesystems to access everything I wanted to retrieve.
I'm not sure if it is dependent on the phone whether the ADB service is available in recovery. On mine it was available in both recovery and download mode.
If ADB on your computer recognizes and can connect to your phone you should be able to retrieve and save any files you need.
If you aren't familiar with ADB this is a good place to start: http://www.xda-developers.com/android/all-in-one-guide-to-adb/
If you need any help with it let me know, ADB is a whole other topic so keeping it simple here.

Also interesting for an introduction to ADB, providing further links to tutorials etc: What's ADB and why is it used for? How do I install it on my device?

On my CWM I have "mount USB storage" option under the menu "mounts and storage".

but this option does not necessarily working. It may not be responding at all

This video shows you how to do it with links to programs you need to download.
https://www.youtube.com/watch?v=NaK5OxUeDKM


text:
Is there an efficient way to calibrate the battery than using some apps?
Is there an efficient way to calibrate the battery of my tablet in order to prove or disprove the very low battery backup than using some Apps.?
The context is that my tablet is giving a very low battery back up and when I contacted customer care, they are asking me to do a battery calibration by using some app. But, by some other posts in this forum and other help, I was able to understand that Battery Calibration apps does not make a much difference in battery backup improvement or to prove that my battery is really problematic. And there rises this question.
Thanks for your suggestions in advance.

And did you try that app? Because maybe, it could help, and then you could answer your own question just by doing it?

the app is on trial. It will take some time to get to know the exact result after some full cycles of discharge and recharge right? So this question is intermediary to that.

Ah ok, makes sense :-)

The best method is the manual DIY method :D
Step 1: Drain your battery by using it normally until it turns off by itself
Step 2: Power-on your phone, if it wakes up and you see some power left, do step 1
Step 3: If phone is now drained to the point it can't wake up, Charge it to 100%
Step 4: Once fully charged, power-on phone, and charge it again. Leave it until completely charged
Step 5: Unplug, use, and enjoy.
This makes the phone remember the minimum and maximum voltage, discharge rate and other factors that constitute the battery capacity
WARNING: Do not do this frequently! It will put strain on Li-ion batteries that majority of phones use now. Do this if and only if you are noticing shutdowns on yellow battery bar, cannot charge 100%, and erratic battery capacity display. But still I do this once a month to keep my battery calibrated.

Actually I had done these steps after doing the recalibration using an app. But, it doesn't show any better improvement in battery backup. So may be my battery is running in bad state or these steps are not enough.

If your tablet is a year old or more, and you're a heavy user, then it might be the battery that needs replacement. Are you experiencing fast battery drain?

My tablet is just only 4 months old

Then the problem is not with the battery. Have you recently installed some app(s) before the problem manifested? If yes, try freezing or temporarily uninstalling that app, then use ur tab normally for a day and check the battery level

probably I am misguiding you. This is not an issue which I started facing recently. This was almost like this from start. But, my customer care people told me that it was due usage of calling facility in my tab. I didn't investigated about it much then. Now without any connectivity also it was giving only very less backup. So, I started with all these investigations so that I can claim my warranty full proof :)

I see. So tablet already has a faulty battery meter. You can use android's built-in battery graph in settings or other battery logging apps to convince them of consistently low readings

that is a good suggestion. I will try some other battery logging app as well. Do you have any suggestions on this?

@RinoTom: JuicePlotter + BetterBatteryStats

@RinoTom You may find this article useful http://www.blogtechnika.com/optimize_battery_life_on_android/

@forums One remark: LiIo batteries don't take it well being fully drained, it shortens their life-time. So I'd for sure skip step 2; it should be more than enough if it is below 5% of its charge. Reference: Wikipedia: Li+ batteries last longer if not deeply discharged (depleted) before recharging. The smaller the depth of discharge, the longer the battery will last.

@Izzy My phone went from 11% to 10% and then 1 second later to 0% and shut off, so I'm trying to recalibrate.  I did step 2 twice, each time I saw the logo for about 8 seconds before it shut off.  The third time it actually stayed on about two seconds longer.  If the gauge is really off (i.e. since it dropped nearly instantly from 10% to 0%), any chance I might have to repeatedly make it auto turn off to reach 5%?

@Michael there might be apps to achieve that (I think e.g. of [tag:tasker]). But honestly, I rarely let my devices get that low. Usually they go to the charger long before they're down at 20% (i.e. even before the battery low alert fires).


text:
mp3 from email to player
I want to download an mp3 from email and listen to it through the google music player.  I currently do it through yahoo mail and jelly bean 4.2.2.  However after downloading I have to turn off and back on phone for it to show in player.  Closing the player and restarting player does not get it to recognise the newly downloaded file.
There must be a better way?

There is. All that has to be done is having the Media Scanner run and update the index. Turning the device off and on again triggers this, but (as you said) is not a very convenient way. Unmounting/mounting the SD card would trigger it as well (and can be done via Settings→Storage) -- already a little better, but still not very user-friendly.
The most easy way would be to have an app like e.g. Rescan Media taking care for it. Rescan SD might be even more convenient, as it offers a widget. Just tap it, wait for the scan to finish, and your MP3 file should be visible from your music players.

sweet.  Im using nexus so there is no sd card.  Rather than install to test - would you know if the rescan sd will also rescan internal GB through widget?

AFAIK all it does is trigger the Media Scanner, which in turn should take care for all locations. Hence the name is a little misleading. Just give it a try (what could go wrong?), and report back so we know for sure next time :)

just tried out the rescan media.  I had to close play, do rescan, and then open play, and there it was. It closes itself so dont see how a widget would improve my life further than the icon.  It works.  Sweet.  Saved so much time....

@Jon I fully agree! It's just that I had not tested either, so I wanted to give you both options :)

I switched to HTC one (m7) and the included HTC player updates its files automatically.  It also has a nice circle round the play button saying how far into the track it currently is.  Google should play catchup.


text:
Volume controller and screen size controller missing from Youtube app
I have Samsung P-3100 Tab. I have youtube android application installed. I am having the following complaints with youtube player (Probably I do not know how to  get to these, so this question! )
1) If I hold the Tab in Landscape orientation, then the video occupies the whole screen (which is as expected). However, I cannot see the screen size icon on the screen, to change the screen size from "Full Screen" to normal screen Mode. I have to rotate the Tab to Vertical orientation to see see any comments or related videos. (this is very annoying!) :(
2) There is no volume controller on the screen anywhere. Is it because youtube app rely on the volume controller on the Tab?
I am sure other people might have faced the same issue. I googled for this issue but I couldn't find anything helpful.

The question-and-answer format of this site works best if you put each question in a separate question post. If you bear this in mind next time you have several related questions, you'll get better answers.

There isn't a non-fullscreen layout for YouTube for 7in tablets, only for 10in tablets. There's no button there because there's nothing to switch to. The developers evidently think there's not enough room to see the video and display other information usefully at the same time.
You're right about the volume control. Because Android already has separate volume settings for media, notifications, and the phone ringer, and it guarantees the presence of hardware volume controls, it's considered bad design to put additional volume controls on the screen.


text:
Will factory-reset delete custom downloaded app's folders?
I need to know something. For example an app like Telegram that is a custom downloaded app uses two ways of keeping the data,

in the cache folder and since it is stored in /data

it will be removed

internal storage>Telegram>Telegram Images/audio/...

will this folders be deleted too?

btw I'm using an Android Tablet, I don't know if it makes any difference.

I don't know about factory resets performed from a stock recovery, but resets performed from CWM and TWRP will leave the internal storage (/data/media) be, unless you explicitly format it.

I mean the factory reset option in the android tablet settings..

+1 because it has concerned me in the past... Welcome to Android.SE!

Yes it would delete.
Although if you have a Google account signed in to the device, and the app is written in a way, the app data may be backed up to your Google Drive and can be restored the next time it is installed (given this feature isn't turned off in settings.)
some older devices/android versions may give you the option not to clear internal storage.

Thank you so much. Telegram doesn't have this feature, does it?

I'm not sure tbh. I think later android versions do this automatically? Apps can opt-out, rather than the old way of opting-in. So it's likely the app supports it.

I think it has its own cloud servers. Thank you soooo much.

you're welcome. Please mark as answer if it solved the issue. thanks :)

I am so sorry to ask again but there is an option for the factory reset that can keep internal storage untouched.. and also when I manually uninstall the app the latter isn't deleted. I mean if we expect factory reset to delete this folder just because the app is uninstalled, it won't be.
so are you sure that by factory reset both the cache and the other folders related to that app and are not in /data will be deleted?

Actually the later models doesn't give you that option. (my devices doesn't) If you have an older version, or a custom ROM, it may give you the option. (See http://forums.androidcentral.com/asus-fonepad/302368-will-factory-reset-recovery-delete-internal-storage.html)Although I wouldn't rely on it. Always take a back up. It can't hurt.


text:
LOTS of red pixels Meizu M2
I've had lots of red pixels with my Meizu M2 (Flyme 5.1.6.0G) when I increased luminosity
I tried JScreenFix with luminosity at 100% but I just got some more when luminosity is at 0%...
Anyone knows how to fix this ?
Thanks.
PS: It does not appear in screenshots

If it does not appear in screenshots then it's the hardware. Get your screen replaced.

Oh, isn't  there any other way to fix it ?

Let's wait for others to post a solution if any - that's why I posted mine as a comment.

I just had to make the color temperature a bit colder... and I see no red pixels, and rarely some blue ones !

Why downvoting ? It's the right answer


text:
How can I get voice control like my Moto X 2nd Gen had?
My last phone was a Moto X 2nd Generation. The Moto Voice app was great - I could say "Away Team to Voyager (my custom command phrase) - what's up?" and it would read me all current notifications without unlocking, just like if I were looking at the phone. I could also unlock the phone to do Google searches and other stuff by saying my PIN if no one else was around. But, other features were pretty limited because the assistant AI wasn't that great in 5.1.
Just bought a shiny new Moto X5 with Android 7.0, and while Google Assistant has improved, the new Moto Voice app is crap. There's no command phrase at all - granted that the customization was aesthetic, but having no interactive activation at all means you're limited to a dozen "show me" commands that A. are already covered by Google Assistant and B. only display the info on the screen - and if I were holding the phone and looking at it, I wouldn't need voice control!
I got this thing in large part to use as assistive technology, but it seems needlessly throttled in that department; as far as I can tell, the built in "OK Google" can't consistently unlock the phone, read notifications, or otherwise enable a truly hands-free experience.
Is there some way to get the "real" Moto Voice app back? (When I look at the entry in the App Store, it says "installed", even though the functionality is a mockery of what's shown in the video.) Failing that, is there some other way to read notifications out loud, and/or use a reasonable set of controls without touching the phone to unlock it? (Bonus points if there's also a way to bring back the "custom command phrase" functionality.)

Listen to my day

@beeshyams That's... not the same at all. Though, since you bring it up, my "Home" app doesn't seem to have a More Settings menu or really any meaningful settings beyond the normal account picker.

I know it's not what you are asking  for but somewhat related, so limited that out, ideally should have explained but was in a hurry


text:
Phone to computer without computer install
I want to display my phone screen on my computer so that it can be projected on a screen.
I am not allowed to install any software on the computer or alter any setting of the browser. I have tried various tools such as Airdroid, but they require software installation or Chrome additions (again, something which I can't use).
I don't really want to go down the road of dedicated cables for a particular phone because I will have to change my phone at some time.
I just thought: although I can't install any software, self-executing .jar files do seem to work on our current network.
Edit: I don't want to ROOT my phone if possible: it is too expensive to take the risk.

If your computer is running Windows 10 and supports Miracast, you can use the new pre-installed Connect app. Just start the app with your phone and computer connected to the same wireless network. Your computer should then show up on your phone in the list of devices you can cast to.

More info here: http://betanews.com/2016/08/07/windows-10-anniversary-update-cast-android/

I'm afraid it isn't Windows 10 -- it is a network version of Windows 7, I think. I'll look out for that if we ever get to Windows 10.

I have found an answer that works: Screen Mirror. When you run the app it generates a URL. You type that address (a little fiddly because it is all numbers) into a web browser and the page appears. You can alter the resolution and run it full screen in landscape mode to fill your computer screen. I didn't notice any lag (looking from the phone to the screen) and so any gap is too small to be any worry.
I was running the phone wirelessly and the computer through a wired network -- they are the same network, but both aren't wireless, something required by many products.

Have you tried something like VNC for Android?  I have had great luck using VNC over the years. One example of a server app is https://play.google.com/store/apps/details?id=org.onaips.vnc.
You can view, and indeed completely control, the computer running the VNC server by running the VNC viewer on your computer. This can either be an installed viewer (not possible in your case), as an uninstalled program like TightVNC or by running the Java applet that the server will serve up to your browser, if you have Java installed ov the viewing computer.

I will try this out tomorrow at work. TightVNC seems to be a bit dead (2014) but I will see whether it is okay on our network.

I can't get this to work. Perhaps another version of VNC might work (though I can't see how without installing software on the computer), but TightVNC didn't.

I'm not sure if how this works but have you tried this?  http://www.guidingtech.com/36734/mirror-android-display-pc-tv/

I can't install any software or extensions, including those for Chrome. Therefore the suggestions in this link(s) won't work. Thanks for trying.

How about streaming your phone screen to YouTube (with something like Gusher), then watch it on your PC?

Thanks, but I can't see this working as streaming is slow, particularly on the wireless network (which the phone would have to use).


text:
How to flash something if the data partition is encrypted?
Problem
The data on my phone is encrypted and I do not know how to flash something without decrypting it by using Disable Force Encryption.
When the data partition is decrypted I can just copy a file to be flashed to data, boot to recovery and flash it via recovery. But if the data partition is encrypted I cannot find/flash that file in recovery

Disable Force Encryption cannot 'decrypt' your phone (see answer). TWRP / OrangeFox / Redwolf can (if maintainer has implemented right)

TWRP (Recommended)
TWRP allows you to temporarily decrypt your data by using your phone's password
Why is this solution recommended?
Flashing incidents
I was trying to uninstall NikGapps by renaming .zip file to UnInstall.zip as it is recommended, but for some reasons OrangeFox was doing something under the hood and NikGapps was not understanding that the zip file has uninstall.zip name and it must uninstall Gapps instead of installing. When I tried the same on TWRP everything was working. The same story was with Magisk uninstalling where I have to rename it to uninstall.zip too
Decryption
It is much harder to use your phone when you cannot go to recovery and flash something without a PC or Sd-Card
Magisk flash from OrangeFox (Inaccurate, possibly my fault)
When I tried the Add magisk feature from OrangeFox instead of flashing it manually I got bootloop. Possibly I have done something wrong and it is my fault. Please write in the comments if it is working fine and I will delete this story with magisk

Sd-Card
If you move your files to Sd-Card and connect Sd-Card to your phone you will be able to flash the files that are located on in

Adb sideload

Connect your phone to a PC with installed adb.
How or where to install adb
Reboot to recovery and enable adb sideload feature there.
How to open recovery? Disable your phone and hold Power button and Volume Down button. If it does not work find how to open recovery on your phone
Execute adb sideload PATH_TO_FLASHABLE_FILE in your terminal/command line. Do not forget to change PATH_TO_FLASHABLE_FILE to your real path.
How to open terminal
See logs in your recovery and wait until it is successfully complete
Congratulations. Your file is flashed without decrypting the data partition

@Robert, you said You simply flash the system partition and hope that the new system can also decrypt the data partition., why do you think that is the thing I am doing? I was flashing files that I cannot just put in my storage and flash them via twrp so I showed how to do it by using adb sideload

"Your file is flashed on your encrypted ROM without decrypting it" this read like the ROM is encrypted which is not the case, the data partition is encrypted.

First, let's clarify the terms 'decrypted' and 'unencrypted':

When data on the phone is encrypted, one must (online) decrypt it with the proper PIN/pattern/password in order to access files.
When encryption is disabled, data remains unencrypted. Only possible after formatting, (offline) access to plain files is possible.

The latter can be achieved with Disable Force Encryption but requires formatting (data loss). You don't need to decrypt userdata in TWRP recovery, you can just copy files to RAM or MicroSD Card via adb.
$ adb push ./no-verity-opt-encrypt-6.1.zip /tmp
$ adb shell twrp install /tmp/no-verity-opt-encrypt-6.1.zip

Note: this zip won't change the encryption state. In order to become unencrypted, factory reset or formatting is required (WARNING: all data lost!)
$ adb shell twrp format data

Wow! I have found out that encrypted data can be decrypted yesterday when installed TeamWin Recovery instead of OrangeFox. Thank you for information
Your solution with adb shell twrp install is excellent. I did not know that I can do such things if the data is encrypted

source https://twrp.me/faq/openrecoveryscript.html


text:
Why alarms in "To-do" applications are shown as notification
I am not sure whether my understanding about alarms is wrong, so I thought of posting this question. I keep forgetting tasks so I thought of installing the best "To-Do" android app. What I simply wanted from the application is this:
If I want to set a reminder, say on May 19th 2013, at 9.00 A.M and I want a a loud alarm that will keep ringing until I dismiss it or snoop.
Every famous app that I tried (Astrid, Wundrelist etc),  provide a reminder feature to be associated with Tasks, but these reminders to go Notification area. Some of the "to-do" apps takes the reminder date/time as alarms, but they again send these alarms as notifications. The problem with notification is that, it only makes a very simple sound (as if a message has arrived), that too only once. I want these reminders to ring as alarms not as notification. Do you know any apps that does this?. For example, the alarm that we can set in clock.( but clock doesn't provide a specific date/time)

Astrid has this functionality. Add a task by giving it a title and then clicking ADD A DUE DATE if you wish. This opens a page where you can tap a due date + time. Click OK after making the necessary changes. Click the blue + sign on the right to add the task to your list.
Now tap the task to edit it - Scroll down if you need to and select DETAILS and then REMIND WHEN DUE & OVERDUE
Choose the options as you see fit and ensure that the RING/VIBRATE TYPE is set to UNTIL I DISMISS ALARM.
Click ADD AN ALARM and choose when you want to be reminded.
To avoid this rigmarole in the future, you can choose to set by default that reminders should ring constantly until you dismiss them. Click SETTINGS > NEW TASK DEFAULTS > DEFAULT RING/VIBRATE and then select UNTIL I DISMISS ALARM
Also see REMINDER SETTINGS where you can choose a ringtone of choice.

I tried this, but it is still a notification that gets notified repeatedly unless I dismiss it. It doesn't sound like an alarm.

Choose the ringtone of your choice to make it sound like an alarm, Pradeep.