[GUIDE] Access color-filter through command shell

Search This thread

piskel

Member
Jul 16, 2020
7
15
0
I'm running on the 10.5.10.IN11BA build.

Just get a command shell to your OnePlus 8 Pro through adb, no need for the device to be rooted or anything.

Once you get there, just type:
Code:
am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

It will launch the FactoryMode app and get you directly to the manual camera test view.

Just press the bottom right icon until you get to the color filter.

I have no doubt there is easier and quicker ways to get the same result, maybe through an apk.

Edit:
As far as I know, this workaround could work on any OnePlus 8 Pro model.

Also, as pointed out by ster88, you also can take videos with the filter, which was not possible with the camera app.
 
Last edited:

piskel

Member
Jul 16, 2020
7
15
0
I tried not working. I used th terminal app from google playstore.

Can u specifically provide which app and where.

And anything to enable on developer mode.

Sure !
To enable developper mode, go to "Settings > About phone" and tap the "Build number" until they tell you have developper mode enabled.

Then go to "Settings > System > Developper options" and under "Debugging" enable "USB Debugging" and "Wireless ADB Debugging".

Once that is done, on your computer, download the platform-tools, containing adb here :
Code:
https://developer.android.com/studio/releases/platform-tools

Once it is downloaded, go inside it with your command line.
If you are doing this wirelessly, get your phone IP address and type:
Code:
adb connect <your-phone-ip-address>

Then if it worked, to know what the transport id of our device is, type :
Code:
adb devices -l

Once you have the transport id, type this to get a shell to your phone:
Code:
adb -t <transport-id> shell

You can get more details on how adb works here:
Code:
https://developer.android.com/studio/command-line/adb

Then when you have access to the shell, just type:
Code:
am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
If everything went fine, you should get access to the camera !
 
  • Like
Reactions: moreko and Ryptahi

piskel

Member
Jul 16, 2020
7
15
0
I could not use a terminal app to run the command, usually because the terminal app doesn't want to let the camera application to take over the view, or something like that, not sure.

The ideal would be to have a dedicated apk to run the command, at least for the time being.
 

GiveMeAnthony

Member
Jun 28, 2015
7
3
0
Tried to launch using an app called Activity launcher and it didn't work.

play.google.com/store/apps/details?id=de.szalkowski.activitylauncher

imgur.com/a/BS9Wqzc

I'm not rooted, are you sure this works for non rooted devices? I'll try later with adb to see what happens.
 

lllsondowlll

Senior Member
Mar 2, 2012
52
28
0
Here is the error from Termux. Hope it can be loaded via apk, not sure if it suffers same restrictions:

$ 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.
 

piskel

Member
Jul 16, 2020
7
15
0
From what I understood, you need to run the command from an adb shell. You cannot run it from within the phone as far as I know.

You can still run it from adb and "lock" the application so it stays in the background.
 

piskel

Member
Jul 16, 2020
7
15
0
And I tried with multiple Terminal apps, the command works with none of them (Termux, Terminal Emulator, Material Terminal, etc...)

Apparently, you have some rights on the adb command shell that you don't get as a simple user on the phone.
 

Ryptahi

Member
Apr 21, 2020
6
0
0
You man are genius. I found easy way also to keep it running if needed. After getting the camera test to run, you can lock the app so phone will not close it and always return to it. Thanks, finally I can enjoy my camera
 

lllsondowlll

Senior Member
Mar 2, 2012
52
28
0
Launched it without a computer by using ADB from temux
--no root required
https://github.com/MasterDevX/Termux-ADB
*Enable wireless debugging (wireless doesn't actually need to be on)
Note wireless debugging --takes some time to take effect, sometimes up to 3-5 minutes for me.
*Run the installer above in termux,
*Type adb devices
*Type adb connect 127.0.0.1
*Accept the trusted key
*type adb shell

Troubleshooting:
*If you get an error about multiple devices type adb kill-server
*type adb devices
*type adb shell
*Accept the trusted key


*then paste in: am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
 
Last edited:

aishkumar

New member
Dec 10, 2014
1
0
0
kharagpur
Here is the error from Termux. Hope it can be loaded via apk, not sure if it suffers same restrictions:

$ 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.
Did you get any solution for this ?
 

lllsondowlll

Senior Member
Mar 2, 2012
52
28
0
Did you get any solution for this ?

...

Launched it without a computer by using ADB from temux
--no root required
https://github.com/MasterDevX/Termux-ADB
*Enable wireless debugging (wireless doesn't actually need to be on)
Note wireless debugging --takes some time to take effect, sometimes up to 3-5 minutes for me.
*Run the installer above in termux,
*Type adb devices
*Type adb connect 127.0.0.1
*Accept the trusted key
*type adb shell

Troubleshooting:
*If you get an error about multiple devices type adb kill-server
*type adb devices
*type adb shell
*Accept the trusted key


*then paste in: am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest



I've made a script that allows you to launch the Camera from your phone by just typing ./camera in Termux. No root needed. It can be found here: https://github.com/lllsondowlll/OP8_Camera/blob/master/README.md
 
Last edited:

babsvsphudi

Member
Jul 16, 2020
5
0
0
can u make a video on this how u used termux and what to do whole process screen recording will be helpful coz i am new to this and i dnt wanna mess up with my phone if i lost some files or smthing please make a video i really want to play with IR camera
 

vinod210383

Senior Member
May 25, 2013
82
18
0
It works but not really required

It's working, but have few questions to myself.
1. Does it really needed?
Ans: No, you won't keep clicking pics of plastic material to see inside.
2. Is it handy?
Ans: yes, once opened you can pin/lock it in recent app and open whenever required.

It is just a IR camera and nothing wrong in it, I believe OP will enable it in future, because it really doesn't show through the clothes and even if you want to see for some black thin clothes, you need to go near.
So if you are thinking to click the nude people and go closure you will be slapped.

Few images I have taken.
 

Attachments

  • Screenshot_20200717-114952.jpg
    Screenshot_20200717-114952.jpg
    243.5 KB · Views: 941
  • 1594966781388.jpg
    1594966781388.jpg
    244.6 KB · Views: 937
  • 1594966742906.jpg
    1594966742906.jpg
    246.5 KB · Views: 926

pcningen

New member
Jul 16, 2020
2
1
0
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


I ran it as the video shows. But I got an error like above.
Is there any way to solve this problem or is it not possible with IN2020? Please forgive me for using a translator.
 
Last edited:

pcningen

New member
Jul 16, 2020
2
1
0
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


I ran it as the video shows. But I got an error like above.
Is there any way to solve this problem or is it not possible with IN2020? Please forgive me for using a translator.

I was able to resolve this issue by reinstalling factory mode. I apologize to you for a fuss over. Many thanks to the developers of this method.
 
  • Like
Reactions: lllsondowlll

w1n5t0ngr

Member
Sep 6, 2012
5
1
0
Since I can't get termux to work for now, another idea if you want to have it accessible all the time(*), is to run this (beautiful) command with an adb shell from a computer and then lock the app so you can't accidentally close it.
After that you can always go back to it whenever you want it!

*App won't remain locked after reboot, obviously.
 
Last edited:

Truant_Luce

Senior Member
May 14, 2016
133
43
28
Launched it without a computer by using ADB from temux
--no root required
https://github.com/MasterDevX/Termux-ADB
*Enable wireless debugging (wireless doesn't actually need to be on)
Note wireless debugging --takes some time to take effect, sometimes up to 3-5 minutes for me.
*Run the installer above in termux,
*Type adb devices
*Type adb connect 127.0.0.1
*Accept the trusted key
*type adb shell

Troubleshooting:
*If you get an error about multiple devices type adb kill-server
*type adb devices
*type adb shell
*Accept the trusted key


*then paste in: am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

I wanna piggyback on this some, since this is similar to the process I just did.

So while this works for nonroot users (I didn't actually test the nonroot version myself), if you are rooted, AND using magisk, I personally install ADB and fastboot binaries from the repo from zackptg5(?) And then just told termux to run an elevated shell (su) and then pasted in the command linked in OP:

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

It then loaded the testmode camera app, and (xXx caused it to crash, I had to disable it but I don't know if it's a setting with my config) voila. It worked! Thank you.

Edit: I wanna say just running termux in root would solve the issue either way still, but, my point still is there.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    I'm running on the 10.5.10.IN11BA build.

    Just get a command shell to your OnePlus 8 Pro through adb, no need for the device to be rooted or anything.

    Once you get there, just type:
    Code:
    am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

    It will launch the FactoryMode app and get you directly to the manual camera test view.

    Just press the bottom right icon until you get to the color filter.

    I have no doubt there is easier and quicker ways to get the same result, maybe through an apk.

    Edit:
    As far as I know, this workaround could work on any OnePlus 8 Pro model.

    Also, as pointed out by ster88, you also can take videos with the filter, which was not possible with the camera app.
    7
    Launched it without a computer by using ADB from temux
    --no root required
    https://github.com/MasterDevX/Termux-ADB
    *Enable wireless debugging (wireless doesn't actually need to be on)
    Note wireless debugging --takes some time to take effect, sometimes up to 3-5 minutes for me.
    *Run the installer above in termux,
    *Type adb devices
    *Type adb connect 127.0.0.1
    *Accept the trusted key
    *type adb shell

    Troubleshooting:
    *If you get an error about multiple devices type adb kill-server
    *type adb devices
    *type adb shell
    *Accept the trusted key


    *then paste in: am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
    4
    Did you get any solution for this ?

    ...

    Launched it without a computer by using ADB from temux
    --no root required
    https://github.com/MasterDevX/Termux-ADB
    *Enable wireless debugging (wireless doesn't actually need to be on)
    Note wireless debugging --takes some time to take effect, sometimes up to 3-5 minutes for me.
    *Run the installer above in termux,
    *Type adb devices
    *Type adb connect 127.0.0.1
    *Accept the trusted key
    *type adb shell

    Troubleshooting:
    *If you get an error about multiple devices type adb kill-server
    *type adb devices
    *type adb shell
    *Accept the trusted key


    *then paste in: am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest



    I've made a script that allows you to launch the Camera from your phone by just typing ./camera in Termux. No root needed. It can be found here: https://github.com/lllsondowlll/OP8_Camera/blob/master/README.md
    2
    I tried not working. I used th terminal app from google playstore.

    Can u specifically provide which app and where.

    And anything to enable on developer mode.

    Sure !
    To enable developper mode, go to "Settings > About phone" and tap the "Build number" until they tell you have developper mode enabled.

    Then go to "Settings > System > Developper options" and under "Debugging" enable "USB Debugging" and "Wireless ADB Debugging".

    Once that is done, on your computer, download the platform-tools, containing adb here :
    Code:
    https://developer.android.com/studio/releases/platform-tools

    Once it is downloaded, go inside it with your command line.
    If you are doing this wirelessly, get your phone IP address and type:
    Code:
    adb connect <your-phone-ip-address>

    Then if it worked, to know what the transport id of our device is, type :
    Code:
    adb devices -l

    Once you have the transport id, type this to get a shell to your phone:
    Code:
    adb -t <transport-id> shell

    You can get more details on how adb works here:
    Code:
    https://developer.android.com/studio/command-line/adb

    Then when you have access to the shell, just type:
    Code:
    am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
    If everything went fine, you should get access to the camera !
    2
    Here is the error from Termux. Hope it can be loaded via apk, not sure if it suffers same restrictions:

    $ 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.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone