[APP][STOCK][PORT] ASUS Snapdragon Camera from STOCK ROM

Search This thread

shindou01

Senior Member
Sep 24, 2013
155
40
Semarang
I'm having a really weird issue, any setting I changed from the settings gets reverted back every single time. Even turning on the flash for rear cam doesn't work. Tried clearing dalvik and cache but no change. Tried it on my max pro M2 running AEX. Otherwise the port is solid
 

osm0sis

Senior Recognized Developer / Contributor
  • Mar 14, 2012
    14,587
    32,847
    Halifax
    GT-i9250
    Nexus 7 (2013)
    WAYS to fix Depth Mode and Front Flash :
    1) (For fixing only Rear Depth Mode) Set your kernel to permissive using Kernel Adiutor app or use a permissive kernel of your ROM.

    For Advanced users:
    2) (For fixing both bugs) Use Stock Pie Beta Kernel along with your ROM.

    (Please understand that boot.img is not kernel. Directly replacing boot.img might cause bootloops. Make use of Android Image Kitchen by @osm0sis to replace the kernel in the boot image. Kernel is usually in the form of .zimage file)


    THOSE PEOPLE WHO ARE USING THIS CAMERA ON MAX PRO M1, PLEASE DON'T CONTACT ME ON TELEGRAM. It is good that this port is working on your device, but don't come asking me to fix bugs since this camera is meant for MAX PRO M2. And please tell this to the person who shared my work on Telegram, without even informing me before hand, adding my name and misinforming other people that this was ported for Pro M1. It wasn't.


    CHANGELOG:

    23-March-2019
    - Added Camera Calibration app from STOCK Oreo
    - Adjusted locations of libraries

    15-March-2019
    - Fixed Window Animation Scale doubling issue (Ported Stock Asus Camera from STOCK OREO WW-15.2016.1902.192)
    - Latest Asus Camera Improvements and AI Scene Detection

    14-March-2019
    - Initial Release (Ported Stock Asus Camera from PIE BETA WW-16.2017.1901.046)

    Shouldn't you just use AnyKernel2 to replace the zImage on whatever ROM people are using? Would be easier and more automated than asking people to use AIK.
     

    Tyakrish

    Senior Member
    Jun 13, 2016
    430
    288
    Asus Zenfone Max Pro M2
    I don't think it works, I've flashed and when I open the camera it keeps stopping :( how to uninstall it? Or is there anything I can do to make it work?
    Seems like your ROM has not been updated yet... The camera has fully been supported in havoc, arrow, dotos and crdroid...
    Follow any one of the steps given in my 2nd post at the beginning of this thread...
    If it does not work, then dirty flash ROM to restore it to original state, and wait for the ROM to be updated...
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 60
      Asus Stock Snapdragon Camera from the latest Stable Pie...

      Just flash the zip from the link below via any recovery and enjoy ! :)

      Now ported to Android 10 as well !
      Android 10 ROMs on which confirmed to be working:
      CRDroid 6
      EVO-X 3.3
      HavocOS 3

      What's Working:
      - Everything (Please don't read the bug section)

      Bugs:
      Unfortunately I have tried a lot to fix the below bugs, but I lack the kind of reverse engineering knowledge that pro Google Camera Modders have. So I guess just pretend that its bug-free.
      :p
      - Pics can't be saved to External Storage
      - Beauty Mode not working. Please use another app to increase your nonexisting beauty :p
      - (On Android 10 ROMs) The app might not appear in the launcher. Check out troubleshooting section.

      For Pie ROMs -
      Filename: AsusPieCam11.1P.zip
      Download:
      https://drive.google.com/file/d/1bdeOv21pkoTPvKPgIiI1CwZUintuvKyo/view?usp=sharing
      SHA-1: 283f0d517fa14dcf0de1790b8a3ccad1f575b880

      For Android 10 ROMs -
      Filename: AsusPieCam11Q.zip
      Download:
      https://drive.google.com/file/d/10gRbXRrVNbP5cIqKN4rbPkS3lEGAlFow/view?usp=sharing
      SHA-1: 124ea5a1f5212dedefa72273224603231c3d8880

      Special Thanks to these people for helping me out on many occasions:
      @legacy07
      @bauuuuu (Fixing selfie flash and integrating the camera and fixes in device tree)
      @Skssbss

      P.S.
      This is my first work on XDA and I would be highly motivated to continue it, if you hit the thumbs up button... :)
      If you like my work, you can buy me a coffee:
      https://www.paypal.me/tyakrish

      If any problems after flashing zip, pls refer to the Troubleshooting section.
      I take no responsibility of any ports to other devices, if any doubts, contact the porters.
      8
      TROUBLESHOOTING

      General Troubleshooting:
      https://forum.xda-developers.com/ma...us-camera-pie-stock-rom-t3910834/post79522285

      Troubleshooting for people for whom the app does not appear in the launcher:
      https://forum.xda-developers.com/ma...us-camera-pie-stock-rom-t3910834/post81293849


      CHANGELOG

      26-Dec-2019
      - Same zip as 11P, just included the fix apk which I posted before for Pie ROMs. Now the 11.P zip should work on all Pie ROMs regardless of signature.

      21-Dec-2019
      - Ported Camera from 1912.072
      - Camera version has been bumped up to 1457
      - Tighter integration with the Android System, due to changed apk signature, from Asus' signature to Aosp platform signature and small edits to the app.
      - (Q specific) Some more edits were made to the apk, to be able to work on Q. Crashes were fixed.
      - (Q specific) Edited edify flash script, so that the app is installed in the correct location. Due to changes in Android 10, the zip contents are now installed to /system/system.
      - Removed most permissions which have no need to be explicitly granted as priv-app permissions in the xml.

      12-Dec-2019
      - Ported Camera from WW 1910.071
      - Camera version bumped up to 1287
      - Optimized updater script:
      * Properly added symlinks to libs
      * Added proper file system permissions
      - Removed 2-3 unnecessary priv-app permissions

      23-Sept-2019
      - Ported Camera from WW 1908.070
      - Camera version bumped up to 1280
      - Continuous Shot has been fixed in some ROMs based on @kubersharma lineage tree. Tested on CRDroid. Thanks @kubersharma

      14-July-2019
      - Ported Camera from WW(India) 1906.067

      5-July-2019
      - Ported Camera from JP 1906.066

      21-June-2019
      - Fixed high screen brightness in the app. Also the screen brightness is now adjustable via brightness slider.

      22-April-2019
      - Ported Asus Camera from latest Stable Pie 1905.65

      18-April-2019
      - Fixed updater-script to prevent conflicts between old oreo Asus Camera libs and new stuff from Stable Pie Asus Camera

      17-April-2019
      - Ported Asus Snap Camera from latest Stable Pie
      - Added proper priv-app permissions as required by the camera.
      - Fixed storage of media to external sdcard (Media on external sdcard will be stored in "/Android/data/org.codeaurora.snapcam/files". Unfortunately I cannot do anything about it. Its a limitation of Android)
      - Permanently fixed Window Animation Scale doubling issue (Issue was present with the Pie version as well the Pie Beta version of the camera)

      23-March-2019
      - Added Camera Calibration app from STOCK Oreo
      - Adjusted locations of libraries

      15-March-2019
      - Fixed Window Animation Scale doubling issue (Ported Stock Asus Camera from STOCK OREO WW-15.2016.1902.192)
      - Latest Asus Camera Improvements and AI Scene Detection

      14-March-2019
      - Initial Release (Ported Stock Asus Camera from PIE BETA WW-16.2017.1901.046)
      6
      BIG UPDATE:
      I was able to successfully port Snapcam to Android 10.
      From now on, there will be two versions of the camera shared on this thread; one for Pie ROMs and the other for Q ROMs

      Tested on CRDroid 6, EVO X 3.3, HavocOS 3.0 (Android 10) ROMs
      Thanks to @Praveen Pannu for testing

      Bugs: As of now, the bugs are the same as mentioned in the first post of this thread.

      If the camera is not opening up properly or some functions like depth mode is not working or showing a black screen, it maybe due to persist issue after installing Android 10. Learn more here:
      https://forum.xda-developers.com/ma...n-fixing-persist-issues-t4024247/post81288631

      Those people for whom the app does not appear in the launcher after flashing, see this post:
      https://forum.xda-developers.com/ma...us-camera-pie-stock-rom-t3910834/post81293849

      Download links in the first thread.

      CHANGELOG:
      21-Dec-2019
      - Ported Camera from 1912.072
      - Camera version has been bumped up to 1457
      - Tighter integration with the Android System, due to changed apk signature, from Asus' signature to Aosp platform signature and small edits to the app.
      - (Q specific) Some more edits were made to the apk, to be able to work on Q. Crashes were fixed.
      - (Q specific) Edited edify flash script, so that the app is installed in the correct location. Due to changes in Android 10, the zip contents are now installed to /system/system.
      - Removed most permissions which have no need to be explicitly granted as priv-app permissions in the xml.

      It took me many nights to figure out what was not working and why. If you like my work and want to support me, you can buy me a coffee here:
      https://www.paypal.me/tyakrish
      5
      Update:

      14-July-2019
      - Ported Camera from WW(India) 1906.067

      Filename: AsusPieCam8.zip
      Checksum (SHA-1):
      3319c2565a95ecdb241ec6bb82e013e71a2e4864
      5
      Unfortunately I have tried everything to fix the Signature issue which happens in some Android 10 ROMs. But I have run out of ideas. The test apk for Android 10 gives the "Critical Permissions missing" issue which we had seen earlier. The only way that I could fix it was sign the apk with Aosp test keys which are used in most custom ROMs.
      Unfortunately popular ROMs like Lineage and probably Pixel Experience, use their own private keys for signing their ROMs and not the default Aosp test keys. I can't possibly sign the app with keys which aren't accessible to the public.

      The only way, the camera might appear in launcher and work on these ROMs is if it is included in the ROM by ROM developers. So future zips for Android 10 will only work on some ROMs, but others will have to request their ROM developers to include the updates in their ROM.

      Also, I would like to inform users once again that for TWRP users, with the similar issue of app not appearing in launcher, is not related to this issue. So for people using TWRP check the 2nd post of this thread. Even after following the troubleshooting steps, still it doesn't appear then it will be the Signature issue.

      Don't lose hope though. In the future, this might change if I get another idea or when Asus releases Q for our device. But for now, I am concluding this issue. Stay awesome guys :)