yashsingh1/xdaforums huggingface dataset:
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
No it's because three devices are showing up. Only localhost and emulator should be showing. I'm going to modify my script to see if I can kill that behavior please standby. I will edit this post in a few minutes for you to try again. In the meantime run the following

rm camera*

rm Camera*

Reboot your device and enable Wireless USB debugging again.

Okay, I just edited my script, rebooted, waited 5 minutes, redownloaded the camera installer, and verified the ./camera script works.

I've made some tweaks to target the emulator when there are multiple entries (which shouldn't happen anyway).

Please re-run the camera installer after following the instructions above and let me know the results.
[OnePlus 8 Pro  Guides, News, & Discussion] xinfinityoO:
./camera

* server not running *

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

error: no devices/emulators found

unable to connect to localhost:5555: Connection refused

error: no devices/emulators found

error: device 'emulator-5554' not found

$ adb devices

List of devices attached

I give up...:(
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
This is the same error you were getting before when your wireless ADB was not detected. So now we are back to that... Usually you just need to wait 5 minutes and try again. We know it works because your wireless ADB was showing devices before. We are back at the mercy of your phone not serving up a wireless ADB server. Make sure wireless ADB is enabled since you did a reboot and wait a little longer before trying again. If that doesn't work, all I can say is your phone is wonky.
[OnePlus 8 Pro  Guides, News, & Discussion] Cyanyxel:
Once everything is installed, isn't it possible to create an app that simply execute ./camera ?

Like a terminal but who exclusively execute this command in order to have a "working camera app" ?
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
After update to 10.5.12 on IN2020 my colourfilter cam is gone. Same error messages as above. Now trying to get everything clean, remove dev-status, remove termux apk. Reboot. Now I got new dev-status, installing termux apk and trying to install your scripts again.

All installs correctly.

By starting ./camera I get

"$ ./camera

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }

Error type 3

Error: Activity class {com.oneplus.factorymode/com.oneplus.factorymode.camera.manualtest.CameraManualTest} does not exist.

connected to localhost:5555

error: more than one device/emulator

Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }

Error type 3

Error: Activity class {com.oneplus.factorymode/com.oneplus.factorymode.camera.manualtest.CameraManualTest} does not exist.

"

I installed the factorymode apk maybe this is the problem?
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
Uh... Yeah something definitely broke in your software environment. It says factorymode camera test is missing. When you switch apps does it not show up?

I don't think you should have installed any outside factory software. It may have effected / broke your environment.

Like I said, many times previously, I can't support environments that have been modified, hacked, flashed, or side loaded with third party stuff.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
I thought the app is necessary....in app switcher it doesn´t show up. In app listening it is existant.

What can I do?
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
The app should have been included in your firmware, but just hidden. There shouldn't have been a need to install any APK besides termux. What is the link to APK you installed?

Edit:

Yep.. I just went to APK mirror and manually installed it which broke it. So that's what did it. Now I am getting the same error you are. I need to now factory reset my phone as I don't see any clear way to reverse it.

In short don't download factory mode. The APK is built into your phone. In none of the instructions does it say to install a factory mode APK.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
uuuh mental shortcut...anyway: thanks...
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
Fixed it.

run

adb uninstall com.oneplus.factorymode

That should get you back up and running.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
I thought to do that, but did a full system factory reset. After install all new, there seems (!) to be no wireless adb (as shown in error messages). I launched the factory mode cam via usb adb from my Linux computer. That works. Maybe I should do more testing the wireless adb... perhaps longer waiting....

edited:

Now it works as intended. Thank you for your support! IN 2020 with 10.5.12IN11AA and the color filter can be accessed via comand shell.
[OnePlus 8 Pro  Guides, News, & Discussion] sportytony:
Updated to 12 in the States and no longer works. Sad
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
Yes it does....
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
Just suggesting: execute "adb kill-server" and try again.
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
Happy to help, glad you were able to get it working.
[OnePlus 8 Pro  Guides, News, & Discussion] texasaggie1:
I still can't get it to work. I've tried everything suggested in the last 20 or so posts. I'm 100% locked stock. I get the following no matter what I do:

$ adb kill-server

$ ./camera * daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

error: no devices/emulators found

unable to connect to localhost:5555: Connection refused

error: no devices/emulators found

error: device 'emulator-5554' not found

$ ./camera

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

error: no devices/emulators found

unable to connect to localhost:5555: Connection refused

error: no devices/emulators found

error: device 'emulator-5554' not found

$ ./camera

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

error: no devices/emulators found

unable to connect to localhost:5555: Connection refused

error: no devices/emulators found

error: device 'emulator-5554' not found

$ adb disconnect

disconnected everything

$ ./camera

disconnected everything

* daemon not running. starting it now at tcp:5038 *

* daemon started successfully *

error: no devices/emulators found

unable to connect to localhost:5555: Connection refused

error: no devices/emulators found

error: device 'emulator-5554' not found
[OnePlus 8 Pro  Guides, News, & Discussion] Eremitus:
Did you try this, disable and re-enable developers options? https://xdaforums.com/showpost.php?p=83120723&postcount=61

That fixed it for me. Now it asks debugging permissions in Termux when writing commands and everything works just fine.
[OnePlus 8 Pro  Guides, News, & Discussion] emudem:
Color filter enabled but laser disable equal disaster...no "x-ray plastic"...
[OnePlus 8 Pro  Guides, News, & Discussion] texasaggie1:
Yes I did try that :(
[OnePlus 8 Pro  Guides, News, & Discussion] Ibbyxda:
I am using I0.5.12 on IN2020 and got to factory mode camera with this method but it has no option for photochrome!

It shows four options

Photo video Potrait 48M Photo
[OnePlus 8 Pro  Guides, News, & Discussion] JonnyJaap:
You need to click on the switch button on the lower right, it switches though all cameras, selfe, wide, tele, ir.
[OnePlus 8 Pro  Guides, News, & Discussion] belfastraven:
I notice that I have had to wait much longer than 5 minutes for wiresless adb to fully engage. I have no idea yet why this is. Have you tried waiting for say, 1/2 hour, for this to work? I was excited, when after I got it working I was able to turn the camera script into a bash script and use the termux widgets addon to create a widget for it. It's not very helpful though, if you need to turn on adb wireless debugging so far in advance of actually using the camera. In the next couple of days, I'll try to look at a logcat and see what is happening......
[OnePlus 8 Pro  Guides, News, & Discussion] IIlI:
Is there a chance that there will be a convenient way to use the fourth camera?

I used the magisk module for google camera, the fourth module is unlocked but when I select it, the app crashes.
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
The convenient way is my local phone script on page 2. That being said it doesn't support magisk modules and whatever modifications you may have done to your phone. Since you are using root, just download termux from the app store and run

su

Then run the command in the first page.
[OnePlus 8 Pro  Guides, News, & Discussion] popclem:
First of thank you to everyone on this thread, lllsondowlll and piskel, I used lllsondowlll's instructions and got it to work!

Secondly, does anyone have guidance on how to make an app/program that can capture photos from the IR camera and normal camera at the same time? I know nothing about writing an app or if this is currently possible.My interest in this is to make a NDVI camera. In simple terms a NDVI camera allows for you to image the health of plants ( for more information you can search: physics open labs ndvi). Essentaily healthy plants reflect more IR light, so using an IR photo and a visible light photo you can image plant health. I was interested in making an app that would take a normal image and an IR image at the same time and then do processing to make an NDVI image. I have been able to do the image processing part in matlab but it requires me to take a IR photo and normal photo in factory mode then upload the images to matlab and then run the analysis. I was hoping to make an app/program that would do it, potential in real time, if at all possible.

Any input is greatly appreciated and thank you again!
[OnePlus 8 Pro  Guides, News, & Discussion] tipuban:
Why don't you just create a shortcut to the "com.oneplus.factorymode/.camera.manualtest.CameraManualTest" command? Wouldn't it be easier?
[OnePlus 8 Pro  Guides, News, & Discussion] stuclark:
I was playing with the 11 DP3 release earlier, and have just reverted to 10 (10.5.11 as I'm in the EU) because I was getting fed up with various bugs, when I noticed the following:

On reverting to 10 - yes, I did use the system image supplied by OnePlus - I NOW HAVE PROPER PHOTOCHROME FUNCTIONALITY back in the camera app. No crappy hidden behind the main camera viewfinder; no completely disabled filter - it is working EXACTLY as we all want it to (and how it was originally intended). I haven't done anything to enable this, it is default behaviour!

(camera app version is 4.0.422 although I'm sure this isn't the only thing worthy of noting)
[OnePlus 8 Pro  Guides, News, & Discussion] Pierre118:
Looks like you have a newer camera app version. I have version 4.0.281 on my IN2023 10.5.11.IN11BA.

Maybe the system image supplied by OnePlus was updated?
[OnePlus 8 Pro  Guides, News, & Discussion] stuclark:
Unfortunately, my system got an OTA to what seemed like the same firmware, and once it applied that, the Photochrome filter reverted to the "usual 10.5.11 / 12 behaviour)
[OnePlus 8 Pro  Guides, News, & Discussion] Pierre118:
What camera version you have now?
[OnePlus 8 Pro  Guides, News, & Discussion] stuclark:
4.0.281

(I think previously it was probably 4.0.244 and I just typed it the wrongv way round)
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
No because of permission errors. ADB runs at a limited elevation.

Use my script all you have to do is type ./camera
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
10.5.12 EU and .13 have been released today for the 8 pro, has brought an end to this method.
[OnePlus 8 Pro  Guides, News, & Discussion] materoid:
I've just updated to that firmware version and now termux commands are not working do get the factorymode camera app working.

It's asking me debug permissions for two times each time I type ./camera, but I get stuck at "Warning: Activity not started because the current activity is being kept for the user."

I tried rebotting, all commands commented in different orders, clear cache and data for factorymode app...

My tought is: Before updating I had the app loked at the app manager to avoid to be entering the command each time I wanted to use ot or reboot the phone, and I updated it without unlocking factorymode app from manager.

After firmware update app was still at the app manager, locked, but it was not being able to be opened. Once I unlocked it, it disappeared from there, and now I'm not able to launch it agan.

So, is there any possibility to close that app (factorymode) activity and unlock or forget from app manager even if it's already unlocked/invisible at the app manager?

Any command for that? To avoid trying with a factory reset?
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
This fault now
[OnePlus 8 Pro  Guides, News, & Discussion] vpoppo:
I have the same problem...had it open and locked in background got the new update and then wouldn't work - closed out of it and now can't reopen it - "warning: activity is being kept for the user." not sure if they disabled the ability to use it or if it was because I had it open and then the OTA. And I tried a factory reset didn't fix the issue.
[OnePlus 8 Pro  Guides, News, & Discussion] Rgar:
factory mode camera app (ROOT required)

I have found this app for ROOT devices:

rgmvision.com/infrared-cameras/
[OnePlus 8 Pro  Guides, News, & Discussion] Wbxhc:
Same happened to me as well. Updated to oxygen os 10.5.13.in 11 aa and now I can't use the adb command. I unlocked my previous locked factory camera because I was unable to access it. Now I can't add it back. Frustrating. I wonder if this was OnePlus' way of eliminating the bypass.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
Will your script run on last OOS update?
[OnePlus 8 Pro  Guides, News, & Discussion] lllsondowlll:
Apparently not considering the reports. Right now it is working on Android 11 beta, but it seems they have blocked the built in factorymode app from ADB on the latest stable OOS 10 meaning OnePlus is becoming super anti-consumer. Honestly, OnePlus removing IR camera is just like when Sony PS3 removed Linux support. It ended in a class action lawsuit, and OnePlus has made it clear they are now battling any attempts to use our IR Camera. At this point I feel like a similar case may be coming for OnePlus as well.

Right now Root may be the only way moving forward.
[OnePlus 8 Pro  Guides, News, & Discussion] hurlube:
I don't trust this.
[OnePlus 8 Pro  Guides, News, & Discussion] SjDU:
Can anybody who is on Android 11 can share their Camera and Camera service Apk?
[OnePlus 8 Pro  Guides, News, & Discussion] Rgar:
It worked for me!
[OnePlus 8 Pro  Guides, News, & Discussion] thucphamchonguoibenh:
hi
[OnePlus 8 Pro  Guides, News, & Discussion] PrameetNayak:
Any solution for this? I am also getting the ser error. My version is 10.5.13.IN11DA.

Hi

---------- Post added at 09:05 AM ---------- Previous post was at 09:01 AM ----------

I am also getting the ser error. My version is 10.5.13.IN11DA.
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
Aye ive used it, it doesn't work on xXx on .5.12

Freezes when opening the second camera.

All it does it run the script in the OP.

Exactly the same outcome.
[OnePlus 8 Pro  Guides, News, & Discussion] JonnyJaap:
Have not updated yet to the 10.5.12 EU, but that sucks. I hope they get some serious trouble.. marketing with 4 lenses and then disabling one and make it to a filter, I'll bet some smart filter programmer could get something very similar without the lense..

I'm really disappointed and angry. As you say, they made it clear that they want to suppress there hardware and not fight for there product and dessisione.

But the command still works with root?

I don't use the script just the command to open it in termux after going su.

Edit,

But I doubt OnePlus will take any conseqensus,as only a small amount of people actually use/want use it to take weird & awesome pictures. A lot don't care,other want to use "X-RAY" for "looking tough stuff".
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
As far as I understand the message, it is a warning, not an error message. It says, that the app is already running (by someone else, perhaps root) and cannot be restarted by you. If someone manages to stop the factorymode app one should be able to start it as the current user.
[OnePlus 8 Pro  Guides, News, & Discussion] A.Priori:
Has anyone tried this?
[OnePlus 8 Pro  Guides, News, & Discussion] Rgar:
For me it worked up to 10.5.11 and ROOT. It seems that OnePlus has blocked access with the 10.5.12 update :crying:
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
Yep it's the same as the command. Just runs from an app
[OnePlus 8 Pro  Guides, News, & Discussion] lordnini:
it's a shame they did this, I was using this to look for hidden cameras in hotel/airbnb , it made the camera a bright red circle
[OnePlus 8 Pro  Guides, News, & Discussion] dionisboss:
Had the solution work once. Then after reboot get the same warning. Tried killing the process. Had no effect
[OnePlus 8 Pro  Guides, News, & Discussion] SjDU:
Anyone on dev preview ? Can they post their camera apk and camera service apks
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
Oh wow, that's awesome.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
Were you successful in killing the process (what is its name?)?
[OnePlus 8 Pro  Guides, News, & Discussion] whybagels:
why does it say "Warning: Activity not started because the current activity is being kept for the user" when i enter the code?
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
There is already another process running from another user (root) which cannot be killed.
[OnePlus 8 Pro  Guides, News, & Discussion] Suslo:
What to do?
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
Normally, I think (!): become root and start the process... no chance for non root users. Maybe someone finds the shellscript, where everything begins and a way to patch that script?
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
It hasn't been disabled in the latest Dev preview (DP4) hopefully it will not be in OOS11 but time will tell.
[OnePlus 8 Pro  Guides, News, & Discussion] nigdsa:
Hi, I have done it using the adb shell from my pc and got this error:

OnePlus8Pro:/ $ am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }

Warning: Activity not started because the current activity is being kept for the user.

can somebody help?
[OnePlus 8 Pro  Guides, News, & Discussion] cyberbandit1998:
On the update they disabled it. So on the new 10.xxx you can't. Update to android 11 dp4 and can access it again using that command.
[OnePlus 8 Pro  Guides, News, & Discussion] cyberbandit1998:
Example
[OnePlus 8 Pro  Guides, News, & Discussion] dionisboss:
Update

How to do that? Would love to
[OnePlus 8 Pro  Guides, News, & Discussion] cyberbandit1998:
Just update to dp3 then update to dp4. After up and running run the command in the op and it works.
[OnePlus 8 Pro  Guides, News, & Discussion] ranjib:
I did that and Im happy now!
[OnePlus 8 Pro  Guides, News, & Discussion] rineshpuvathour:
Can anyone confirm if this method works on open beta 1?
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
Yes it does. Have it running no problem
[OnePlus 8 Pro  Guides, News, & Discussion] medo159:
Yes, Beta without Root and running fine
[OnePlus 8 Pro  Guides, News, & Discussion] W_lv:
I got it working on beta 1

When cycling I can get to the fourth camera (without the x-ray part) . But as soon as I try to switch again it freezes

And says Boken Effect with 1x 2x below
[OnePlus 8 Pro  Guides, News, & Discussion] eregev:
Little fun fact... If you run the command then swipe to the task switcher, you can pin the app that comes up just like any other. So even if you click "close all", it will stay in your multitask list next time you swipe up. Now you can always select it on the go. :)
[OnePlus 8 Pro  Guides, News, & Discussion] Oracle365:
Lock app

How do you lock the app?
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
Press the square so that it brings up the page to close the apps then long press on the camera and it will give you the option to lock.
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
Need factory mode to appear like this then press and hold and it gives you the choice
[OnePlus 8 Pro  Guides, News, & Discussion] HaronM:
Tested and working on the OP8 Pro with Android 11 Beta1
[OnePlus 8 Pro  Guides, News, & Discussion] galaxys:
Also seems working for me on 11B1...
[OnePlus 8 Pro  Guides, News, & Discussion] RivAngE:
I had something very interesting happen today that made the camera work like night vision!

I'm on Android 11 Beta 1.

Just after the update, I rushed to check the factory mode to see if the Photochrom camera works, and I was surprised to see a constant spherical light in the front of whatever the camera was showing!

It was like it wwas emitting IR to 1.5 to 2 meters away, lighting up anything within that distance and making it visible even in absolute dark areas!

It's the same thing I can achieve by pointing a remote controller forward and holding down any button so that it'll emit IR signal, but without the need of the remote!

The problem is.... It doesn't work anymore. I'm not sure if I did something to enable it by accident or if it was a bug that was not meant to happen. Hopefully someone will figure it out.
[OnePlus 8 Pro  Guides, News, & Discussion] sonydesouza:
Same sadly did everything... Tried everything . I'm on oxygen os 10.5.12.IN11BA

Have the same message again...
[OnePlus 8 Pro  Guides, News, & Discussion] sonydesouza:
Now after trying again I have this error message can someone explain to me what to do exactly?

Thanks
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
Access was blocked in the latest update, the only way to access it now is to roll back or update to OB1
[OnePlus 8 Pro  Guides, News, & Discussion] sonydesouza:
Thanks for the info.

Thought there was another way.

Anyway cheers
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
This method still works with stable 11 for now
[OnePlus 8 Pro  Guides, News, & Discussion] Rgar:
Good news!:good:

So...this app should work on Android 11 + Root... :confused:

https://play.google.com/store/apps/details?id=rgm.oneplus8pro_ircamera
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
No idea if it would work, can't see why not once updated for 11
[OnePlus 8 Pro  Guides, News, & Discussion] :
Doesn't work with OB2
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
Did not work on stable 11
[OnePlus 8 Pro  Guides, News, & Discussion] Steve436:
I used the method using termux posted on page 4 and it works so this app will need adjusting to work with 11.
[OnePlus 8 Pro  Guides, News, & Discussion] sukhi376:
Is it working on OnePlus 8 pro OOS 11 Stable (India)
[OnePlus 8 Pro  Guides, News, & Discussion] B3n_Huxtable:
I'm using stable Android 11 and it does indeed work.
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
How did you manage that? I'm on EU 11 and it's not working.
[OnePlus 8 Pro  Guides, News, & Discussion] :
That's what i got with OB2.
[OnePlus 8 Pro  Guides, News, & Discussion] B3n_Huxtable:
I did it from my pc. Just brought up CMD and typed in "adb shell" then typed in what's stated by the op and it worked for me.
[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
EU/UK firmware? I'm running xXx so may be why
[OnePlus 8 Pro  Guides, News, & Discussion] B3n_Huxtable:
Yep that's what I'm running the EU version. I'm not rooted or anything.