• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Launch failed: Installation failed. Failure [INSTALL_FAILED_TEST_ONLY

Hi everybody.
Android Studio is much too heavy for my laptop...so...
I 'm trying to build an android app using VSCode with Android extension by adelphes.

upload_2022-3-8_20-23-58.png


I connect my phone to the usb port and with the command line:
upload_2022-3-8_20-27-22.png


In my VSCode I have opened the project and have made the launch.json:

Java:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [   
        {
            "type": "android",
            "request": "attach",
            "name": "Android Attach",
            "appSrcRoot": "${workspaceRoot}/src/main",
            "adbSocket": "localhost:5037",
            "processId": "${command:PickAndroidProcess}"
        },
       
        {
            "type": "android",
            "request": "launch",
            "name": "Android launch",
            "appSrcRoot": "${workspaceRoot}/src/main",
            "apkFile": "${workspaceRoot}/build/outputs/apk/debug/app-debug.apk",
            "adbSocket": "localhost:5037"
        }
    ]
}

I run it and get this message:
Checking build
Searching for devices...
Found 1 device
Deploying current build...
Installing...
Launch failed: Installation failed. Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

What can I do to fix it? (I think on my phone I should see some message asking me if I allow to install the app, but no such message appears)

Help Play Store free up space issue, is there a fix?

A few months ago Play Store started showing a warning about freeing up space to install app updates. At first, I uninstalled some apps and it solved that. But now it happens repeatedly, and cleaning cache, deleting large files etc. with Files or manually won't work. The only solution that works is to clear the cache and data of the Store itself, wait a few minutes and only then the app updates are downloaded and installed.

Now, if that solves it, there must be a problem with the Store app, not with my phone... Besides, the free space of the internal storage is more than 50%! How is it possible that there is not enough space?

Screenshot-20220307-121222-thumb-png-dff9d18d2840d232c13428d9724fedb0.png


Does anyone know any definitive solution to this annoying problem? TIA.

Asus Zenfone ASUS_X00RD
Android 8.0.0

If you need more information about the device and the system, just ask.

Pixel Android phone: need info/advice

I received a Pixel XL phone from a Lifeline company- no user manual, no charger, and as there were scribbles inside the box I'm guessing the phone belonged to one of their previous customers, so I'm even more concerned about security issues.
Initially, I noticed the photo section said 'no longer supported,' and there's no sound recorder.
When I checked system, it says there have been no updates- security or otherwise- since 2019. It also says the version is Android 10.

I am not tech-savvy. Is it possible to update/upgrade to a newer Android version- and, if so, is it free?
Any info or advice would be appreciated.

Help How to get preloaded lock screen multi-pack from A20 on A12?

just got a galaxy A12, and the preloaded multi-pack lock screen wallpaper is ugly and I hate it.
My A20 came with a dope preloaded multi-pack lock screen wallpaper, but I can't find it anywhere in the galaxy store, I can't find where it's stored in my phone, a couple files were labeled "...wallpaper" ,but it wasn't in there.
I don't know if it's possible to send it to my new phone, I've tried long pressing on it and all that but nothing popped up with sharing option.
Anyone know a way to get the wallpaper pack on my new phone? Or am I stuck with this ugly lock screen wallpaper pack?
20220308_025829.jpg Screenshot_20220308-025703_Wallpapers.jpg

Help Upgrade or service loss deadline approaching

Well, damn it. Now I'm in a pickle.

Got one of those cursed letters saying that our phone(s) are going to lose service if we don't upgrade by July. Which sucks for me because, I work in public schools, so Summer is the worst time of year regarding income. Even if I can get something lined up, I never make as much as I do during the normal school year.

Anyways, it was the wife's phone afflicted first; within a week of its (the letters') arrival, she could no longer get a signal at work. To survive in the meantime, she's since taken to borrowing my old(er) lg g4 to still get signal. She still keeps my note 4, because good stylus and she likes using the drawing apps from time to time.

Seeing that happen, already has me seeing the metaphorical writing on the wall with my phone.

So, here's how it breaks down.

The wife, simply, doesn't like either android or iOS. She still laments the loss of her Windows phone to not being able to buy a replacement battery when hers started to swell finally after some years of service. She only tolerated the note 4, because, I had since rooted and flashed resurrection remix on it; the customizability let her set it up to at least appeal to her workflow. And she hates the g4 because I literally can't root it (all relevant download links on XDA are dead).

That said, her job doesn't mind if she brings an outlet or power bank and she can stash them in her bag to go out and about. She at least has so far said she might just pick up a secondhand surface phone to get that back.

As for myself, well, I'm a lot pickier. A phone for me, is first and foremost a utility tool. And needs to be as reliable as such. A typical working day has me out of the house, and away from an outlet, for about twelve hours a day. And that's not including the occasional field trip. Either way, I end up with hours where I got eff all else to do. With the aux port on my car, I use the headphone jack daily. I try to set up the phone to move media and downloads to the SD card so I can migrate them about wherever or however I need to. And I've been burned too many times on "mainstream" and budget phones not even being able to install Pokémon go, for instance; or crash while running it. It's not an exaggeration to say, that 10+ hours of screen on per charge is about enough to make it through a normal working day for me. Obviously, more is better.

I don't even like buying phones every other year, much less every week like phone makers apparently want me to do. I'm also not exaggerating when I say I've had nothing but disastrous and outright dangerous experiences with sealed battery phones; anything I could've said positively about any of them disappear the moment the battery wants to fuss. And I've never forgotten how awful the moto x pure was. If not for YouTube constantly crashing my v20, I would've attempted to ride it out.

If it's a sealed battery phone, I basically don't want to spend any serious amount of money on it. Honestly, the only such that were ever "tolerable", was because they were cheap; like $50 with taxes, cheap. As soon as I'm in triple digits for a phone, I'm inclined to think of it as an investment. And why would I invest in a design that I know ahead of time is going to piss me off? If it ever reached four digits? At that point... I'd rarhwr just switch back to a landline and use the money for a gaming notebook. Even with the meme of poor battery life, I'd get much more mileage out of a suitably strong notebook than I ever will out of a phone.

Or to put it another way, if I can't justify four digits for a GPU that I know I would use every single day (for some years), why the hell would I spend that on a phone to disappoint me?

Help Buying S22 for Overseas Wife

Thanks for providing this forum.

I have Verizon, and I use a Samsung Galaxy S8. My wife is overseas, and she has a cheap phone she hates. She wants me to bring her a new phone. We are looking at the S22, figuring it should be okay because my other Samsungs have been okay.

Her carrier is some mysterious foreign outfit, and using a big name like Verizon or Sprint will not be possible until she moves to the US later this year. She says I should just get her an S22, and she'll stick her own SIM card in it until she moves.

Is there any reason why this won't work?

So far, it looks like I can upgrade my S8 to an S22 cheaper than I can buy an S22 outright. I was thinking I might upgrade through Verizon, keep my S8, and give her the S22, assuming her card would work in it. Is this a good plan? Is there a better way to get an S22?

Android Studio starting two apps at a time

When I run app A from project A it also starts app B from project B even though project B is not loaded. Why is app B starting and how to prevent it?

Android Studio Bumblebee | 2021.1.1 Build #AI-211.7628.21.2111.8092744, built on January 18, 2022 Runtime version: 11.0.11+0-b60-7590822 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.1 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 12 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: com.knziha.vectorpathtweaker (1.9.1), Dart (211.7808), io.flutter (65.1.2), org.intellij.plugins.markdown (211.7142.37)

Help |SOLVED] [Android 12, Evolution X] Camera app crashes in video mode

Hello,

I got a second-hand Xiaomi Redmi Note 5 running Android 12 through the Evolution X ROM.

While the app works fine when taking pictures, it crashes when recording a video.

It can't be the SD card since files are saved into the phone's memory.

The app access rights seem OK.

FWIW, the following error message pops up when recording a short video: "Can't record — Another app may already be using the device's microphone to record."

Any idea what I could try?

Thank you.

https://i.postimg.cc/sxwXZG5Z/image.png

Help No in-car charging or Android Auto

Previously, both mine and my wife's mobile phones both connected via USB to our cars. Now, the phones still connect via USB for charging and Android Auto in my car but will not connect to my wife's car (Mazda CX-30). When you plug either phone in to the car, it instantly vibrates and the charging icon come up but then within a fraction of a second, it disconnects. This continues every 10 or so seconds, connecting then instantly disconnecting again. You therefore cannot charge the phone or use Android Auto. I replaced the cable and same issue, have reset the cars infotainment to factory settings, uninstalled Android Auto and still no change. I took the car back to the dealer who then connected 3 different mobiles to the car, all of which had no issues and started Android Auto automatically but when I tried to connect my phone to a brand new car there (same model), it replicated the issue I have with our car! So it's not the car and I'm out of ideas! Is there a likely setting on both our phones which may be causing this issue and blocking charging/connection from the car?

Google home not finding android tv

Hi,

I'm having an issue with google home not detecting my Android TV, I've factory reset my phone (not transferring old data) and factory reset TV twice after clearing cache on TV and phone.

Both are logged in under same google account, 2.4ghz network.

I think it might have something to do with oneui 4.1. My old note 10 was on android 12, one ui 4.0 and it worked fine.

Please help me to optimize code in C++.

Now question is when I using large capacity usb flash disk ota(16G,100,000 files) it will reboot.
I check source code finding the reason it was Check function, so I add some code below.Now the flash disk don't reboot .
but how can I opimize code to kill thread and fix large more disk (ex.256G flash disk)?
My os is Android automotive10,ram and rom is 4+32G, cpu is mx8q

the diff file is

diff --git a/system/vold/fs/Vfat.cpp b/system/vold/fs/Vfat.cpp
old mode 100644
new mode 100755
index 4f1e982eb3..d2bac6fc7b
--- a/system/vold/fs/Vfat.cpp
+++ b/system/vold/fs/Vfat.cpp
@@ -41,7 +41,30 @@
#include "Utils.h"
#include "Vfat.h"
#include "VoldUtil.h"
-
+#include "../../core/libutils/include/utils/Thread.h" //wp add
+#include <inttypes.h>
+#include <pwd.h>
+#include <sched.h>
+#include <signal.h>
+#include <stdbool.h>
+#include <sys/cdefs.h>
+#include <sys/epoll.h>
+#include <sys/eventfd.h>
+#include <sys/resource.h>
+#include <sys/socket.h>
+#include <sys/sysinfo.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+#include <cutils/properties.h>
+#include <cutils/sched_policy.h>
+#include <cutils/sockets.h>
+#include <../../core/lmkd/include/lmkd.h>
+#include <log/log.h>
+#include <log/log_event_list.h>
+#include <log/log_time.h>
+#include <../../core/lmkd/libpsi/include/psi/psi.h>
+#include <system/thread_defs.h>
using android::base::StringPrintf;

namespace android {
@@ -55,10 +78,32 @@ bool IsSupported() {
return access(kMkfsPath, X_OK) == 0 && access(kFsckPath, X_OK) == 0 &&
IsFilesystemSupported("vfat");
}
+//wp add
+class CheckThread:public Thread {
+public:
+ CheckThread(std::vector<std::string> cmd, int fd):
+ mCmd(cmd),mFd(fd) {
+ }
+ virtual ~CheckThread() {
+ }
+
+ virtual bool threadLoop() {
+ //int rc = ForkExecvp(mCmd, sFsckUntrustedContext);//fork进程,check卡等待结果
+ int rc = ForkExecvp(mCmd, nullptr, sFsckUntrustedContext);
+ write(mFd, &rc, sizeof(int));//把结果写入管道
+ LOG(WARNING) << "xwg:rc = " << rc;
+ return false;//返回false,不循环了
+ }
+
+private:
+ std::vector<std::string> mCmd;
+ int mFd;
+}; //wp end
+

status_t Check(const std::string& source) {
int pass = 1;
- int rc = 0;
+ int rc = 3;
do {
std::vector<std::string> cmd;
cmd.push_back(kFsckPath);
@@ -66,9 +111,41 @@ status_t Check(const std::string& source) {
cmd.push_back("-f");
cmd.push_back("-y");
cmd.push_back(source);
-
+ //wp add
+ int pipefd[2];
+ if (pipe(pipefd) < 0) { //管道
+ LOG(INFO) << "xwg 0303 pipe failed";
+ return -1;
+ }
+ CheckThread* thread = new CheckThread(cmd, pipefd[1]);
+ thread->run("");//开启线程,执行fork进程,等待结果,同时把管道一端给它
+ int mEpollFd = epoll_create(2);
+ struct epoll_event eventItem;
+ memset(& eventItem, 0, sizeof(epoll_event));
+ // zero out unused members of data field union
+ eventItem.events = EPOLLIN;
+ eventItem.data.fd = pipefd[0];
+ epoll_ctl(mEpollFd, EPOLL_CTL_ADD, pipefd[0], & eventItem);
+ struct epoll_event eventItems[2];
+ int eventCount = epoll_wait(mEpollFd, eventItems, 2, 10000);//使用epoll机制,设置timeout为5min
+ LOG(WARNING) << "xwg:eventConut = "<<eventCount;
+ for (int i = 0; i < eventCount; i++) {
+ LOG(WARNING) << "xwg:int i = "<<i;
+ int fd = eventItems.data.fd;//有管道数据,说明check好了,返回结果就在管道中
+ LOG(WARNING) << "xwg:fd = "<<fd;
+ uint32_t epollEvents = eventItems.events;
+ if (fd == pipefd[0]) {
+ if (epollEvents & EPOLLIN) {
+ read(fd, &rc, sizeof(int));
+ }
+ }
+ }//end for,直接timeout了,说明10秒还没有check完
+ close(mEpollFd);
+ close(pipefd[0]);//关闭fd
+ close(pipefd[1]);
+ //wp end
// Fat devices are currently always untrusted
- rc = ForkExecvp(cmd, nullptr, sFsckUntrustedContext);
+ rc = 0;

if (rc < 0) {
LOG(ERROR) << "Filesystem check failed due to logwrap error";
@@ -86,6 +163,12 @@ status_t Check(const std::string& source) {
errno = ENODATA;
return -1;

+ case 3://3说明check超时了,wp add
+ //SLOGE("xwg 0303 Filesystem check outime");
+ LOG(INFO) << "xwg 0303 Filesystem check outime";
+ errno = ENODATA;
+ return -1;
+
case 4:
if (pass++ <= 3) {
LOG(WARNING) << "Filesystem modified - rechecking (pass " << pass << ")";

WiFi exclamation mark

I've been having an issue for a while on Poco F3 with WiFi icon having an exclamation mark and thus not being used. The phone automatically switches to mobile data.

The problem is that WiFi works. If I keep the phone in the same position and disconnect mobile data, thus forcing the use if WiFi, internet works just fine. If I switch mobile data back on, the icon comes back and 4G is used again.

I've checked WiFi assistant and have disabled the automatic switching to 4G when WiFi connectivity is "poor".

Any other suggestions about resolving this issue?

The Music player - Mp3 player has a new look!

The Music player - Mp3 player has a new look! Have you tried yet?

With the desire to bring you the most beautiful and best experience, we are constantly improving the application to help you have great listening moments.

How do you see this change, let us know in the comments!

Have a nice day!

Link download: https://play.google.com/store/apps/details?id=com.eco.musicplayer.audioplayer.music

144192-da55213ddd7aca13acb7ef6d65a703cb.jpg

Need Help Getting Music Library on New Galaxy S22+

Long story short:
I have a Galaxy S8 with Samsung Music and a huge music library on my PC as AAC files in iTunes (I used to have an ipod). I would put the music on my S8 by connecting it to the PC, using Windows Media Player and moving my new songs over to the Sync tab on the right sidebar and click the green Sync button. Presto! Songs are added to Galaxy S8 as WMA files and play fine on Samsung Music.

Cut to: Yesterday, I just bought the Galaxy S22+ and it took 13 hours to transfer over my apps, music, etc, however none of the music will play in Samsung Music on the S22+. After Googling all day, I found out that Samsung Music (or is it Android) won't play WMA files on phones made after 2021.

I just want to keep using Samsung Music on the S22+ and don't want to install a third party app (like VLC or Poweramp). So I need to use another audio format like MP3 or AAC but I need to finagle it all quickly and painlessly (I could just move the AACs over but I think they're too big).

Soooo...
Can anyone recommend how to get the songs from my iTunes (AAC) onto my Android phone without losing too much quality or taking up too much space? Please help, I'm desperately in need of a solution.

Help Locate a working Junk Cleaner for Android 11 - Solved

I have the Samsung A02 Smartphone. The phone came with Android 10 and After I updated it is now Android 11.

With Android 7 and earlier the Junk cleaner apps could find a lot of files that are cache or junk.

With Android 10 it was able to find some but not as many.

On Android 11 it no longer finds any files to be cleaned.

I tried several apps that include the top rated apps. One of them is an official Google app.

Can someone shed some light on this and why it does not find any.

Apps on an Android 10 phone

I just downloaded from my pone (rooted, running Android 10) a list of all the apps installed (and their versions). When I went through this list, I found a number of things to discuss.

The vast majority of the apps are from com.android and com.google.android. I presume that these should simply be left alone and that those whose version is simply 10 are a part of the OS?

I was unable to figure out what the following six apps are:
  • com.breel.wallpapers18
  • com.qti.ltebc
  • com.qti.qualcomm.datastatusnotification
  • com.qti.xdivert
  • com.quicinc.cne.CNEService
  • com.tmobile.grsuapp
Should I be concerned about any of these? The ones from qualcomm and tmobile are moderately concerning since my phone is on Google Fi.

The following apps, to me, seem like they should be removed:
  • com.felicanetworks.*
  • com.customermobile.preload.vzw
  • com.qualcomm.*
  • com.verizon.*
  • com.vzw.apnlib
  • org.codeaurora.ims
Does my thought about removing them make sense? If it does, how can these apps be removed?

Magnets in flip cases and stylus pen

Hey I'm browsing for a new case and overheard someone saying magnets make the stylus pen give blind spots -i.e. not working properly anymore.

can someone confirm this?

I was looking for a flip cover case where a soft back cover can be magnetically enclosed in the book case.
but want to make sure this will not give issues

something similar to the attached picture

Attachments

  • Screenshot 2022-03-06 at 18.11.11.png
    Screenshot 2022-03-06 at 18.11.11.png
    1.5 MB · Views: 234

Help Repeat playing same track

Can anyone help me to resolve this. Up till recently when I open BP, select an album it will play the first track then on to the second and so on till end of the album.
Now it plays the first track repeatedly. If I manualy select another track it does the same just plays it repeatedly.
I am not a very technical person so can anybody guide me through how to fix this?

TMG

OnePlus N10 5G Anyone here have one ??

A family member wants to buy one, and asked me if I had any insights on this Factory Locked device. I don't have any info, so I'm posting here if any of you can shed any light on this device and it's features and any issues and or experience.

I've also noticed there a many models BE 2026, BE 2028, BE2029, nit sure the difference other that probably a Carrier device, Factory Unlocked or an International device.

Filter

Back
Top Bottom