• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[OP8P] PhotoChrom enabled - Without PC - Non Root

Search This thread

superchilpil

Senior Member
Sep 26, 2009
4,274
1,424
Texas
OnePlus 8 Pro
For those wanting to run this quicker

Copy this to a text file and the rename it photochrome.sh (or whatever you want) then place it on the root of sdcard.
Bash:
#!/bin/sh
adb shell am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

Then give termux permissions to access files and media and run this (changing Photochrome.sh to whatever you named it)

Bash:
cp /data/media/PhotoChrome.sh /data/data/com.termux/files/home/

Now set up wireless adb like you would and run
Bash:
 ./PhotoChrome.sh
 

mhex

Member
Nov 11, 2015
35
1
It's a 5 megapixel color filter camera. It's intended to be used in conjunction with the other lenses not standalone.
Also you need ample infrared light for it to perform well, indoor lighting won't cut it. It's the equivalent of taking a photo at night with a regular sensor.
Thanks for the info.. What lighting condition would you recommend best for that lens?.
 

mhex

Member
Nov 11, 2015
35
1
It's a 5 megapixel color filter camera. It's intended to be used in conjunction with the other lenses not standalone.
Also you need ample infrared light for it to perform well, indoor lighting won't cut it. It's the equivalent of taking a photo at night with a regular sensor.
This steps are working. But sad, it cannot give good quality photo though. I wish this feature can be enabled again someday.
 

freddy85

Member
Jul 19, 2008
26
1
This didnt work for me, IN2023, OS 11.0.4.4
When input the command adb devices it was not able to find anything.
I enabled the dubugging in right order, also tried to clear chace but no luck :(
 

drbest

Senior Member
Hello everyone.
This is a guide to enable the Photochrom camera without using a PC.


Steps:
1. Install Termux - https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US

2. Run this command on Termux:

apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh

Wait for a while and let this command complete. (Needs internet connected)

3. Run this command in Termux:
adb devices

4. Go to developers settings. We need to change 3 settings:
First turn all of them off:
a) Wireless debugging
b) Wireless ADB debugging
c) USB debugging

Now you have to turn them on in this order (Yes the order is important)
a) Wireless debugging (Also click allow on prompt)
b) Wireless ADB debugging
c) USB debugging (Also click allow on prompt)

5. Go back to Termux and type:
Adb devices

You phone should show up with the IP

6. In termux run:
Adb shell

and then run:

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



CONGRATS!! The camera runs now.
Change camera to camera 4. This is the photochrom camera.
Now go to recent apps and lock this camera app.
Now you never have to worry again.
This app will always be available in recent apps.




EXTRA STEP. If "adb shell" command does not run.
You need to do one extra step after step 5

5.5. If your ip is 192.168.2.3:5555
run this command

adb connect 192.168.2.3:5555

then do step 6


DOESN'T WORK?
Uninstall Termux and repeat procedure again. Follow the video attached.

VIDEO TUTORIAL
For Video Tutorial please follow the link

great work iamtalha :)
 
For those wanting to run this quicker

Copy this to a text file and the rename it photochrome.sh (or whatever you want) then place it on the root of sdcard.
Bash:
#!/bin/sh
adb shell am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest

Then give termux permissions to access files and media and run this (changing Photochrome.sh to whatever you named it)

Bash:
cp /data/media/PhotoChrome.sh /data/data/com.termux/files/home/

Now set up wireless adb like you would and run
Bash:
 ./PhotoChrome.sh
Will this work on op9 or is it relient on old files living there ex do I need the op8pro factory mode?
 

tomer1981

Senior Member
Dec 14, 2011
277
52
This doesn't work for me... After the first command, it returns to this after 1 second:
WhatsApp Image 2021-06-28 at 15.26.20.jpeg

Any thoughts?
 
Last edited:

roxzshakeer

Member
Mar 4, 2019
8
1
24
OnePlus 8 Pro
Hello everyone.
This is a guide to enable the Photochrom camera without using a PC.


Steps:
1. Install Termux - https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US

2. Run this command on Termux:

apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh

Wait for a while and let this command complete. (Needs internet connected)

3. Run this command in Termux:
adb devices

4. Go to developers settings. We need to change 3 settings:
First turn all of them off:
a) Wireless debugging
b) Wireless ADB debugging
c) USB debugging

Now you have to turn them on in this order (Yes the order is important)
a) Wireless debugging (Also click allow on prompt)
b) Wireless ADB debugging
c) USB debugging (Also click allow on prompt)

5. Go back to Termux and type:
Adb devices

You phone should show up with the IP

6. In termux run:
Adb shell

and then run:

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



CONGRATS!! The camera runs now.
Change camera to camera 4. This is the photochrom camera.
Now go to recent apps and lock this camera app.
Now you never have to worry again.
This app will always be available in recent apps.




EXTRA STEP. If "adb shell" command does not run.
You need to do one extra step after step 5

5.5. If your ip is 192.168.2.3:5555
run this command

adb connect 192.168.2.3:5555

then do step 6


DOESN'T WORK?
Uninstall Termux and repeat procedure again. Follow the video attached.

VIDEO TUTORIAL
For Video Tutorial please follow the link

No Command adb found
 

Attachments

  • Screenshot_20210702-103608.jpg
    Screenshot_20210702-103608.jpg
    511.6 KB · Views: 53

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    Hello everyone.
    This is a guide to enable the Photochrom camera without using a PC.


    Steps:
    1. Install Termux - https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US

    2. Run this command on Termux:

    apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh

    Wait for a while and let this command complete. (Needs internet connected)

    3. Run this command in Termux:
    adb devices

    4. Go to developers settings. We need to change 3 settings:
    First turn all of them off:
    a) Wireless debugging
    b) Wireless ADB debugging
    c) USB debugging

    Now you have to turn them on in this order (Yes the order is important)
    a) Wireless debugging (Also click allow on prompt)
    b) Wireless ADB debugging
    c) USB debugging (Also click allow on prompt)

    5. Go back to Termux and type:
    Adb devices

    You phone should show up with the IP

    6. In termux run:
    Adb shell

    and then run:

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



    CONGRATS!! The camera runs now.
    Change camera to camera 4. This is the photochrom camera.
    Now go to recent apps and lock this camera app.
    Now you never have to worry again.
    This app will always be available in recent apps.




    EXTRA STEP. If "adb shell" command does not run.
    You need to do one extra step after step 5

    5.5. If your ip is 192.168.2.3:5555
    run this command

    adb connect 192.168.2.3:5555

    then do step 6


    DOESN'T WORK?
    Uninstall Termux and repeat procedure again. Follow the video attached.

    VIDEO TUTORIAL
    For Video Tutorial please follow the link

    1
    Hi mate, great job. But I have a doubt, if I follow all the steps my stock camera version will still be the newest? or do I go back to an older version?
    You stock camera will not be changed
    1
    You need to disable all your magisk modules to use it.
    Tried, no x ray effect :(
    Xray effect is very slight. It is just hyped
    1
    Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
    plus.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.

    $ adb devices
    List of devices attached
    10.16.xxx:5555 device
    emulator-5554 device


    $ adb disconnect
    disconnected everything
    $ adb devices
    List of devices attached
    emulator-5554 device

    $ adb disconnect
    disconnected everything
    $ adb shell
    OnePlus8Pro:/ $
    am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
    OnePlus8Pro:/ $
    mode/.camera.manualtest.CameraManualTest <
    Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
    $
    1
    if your adb devices doesn't show anything, try closing termux, clear cache and rerun again. worked for me