Honor 4C Camera2API - General Questions and Answers

How to enable camera2API on Huawei Honor4c.
I read many posts on camera2API and many says to add "persist.camera.HAL3.enabled=1" in buil.prop, but it didn't work.
Any suggestions?

ahmeddrraza said:
How to enable camera2API on Huawei Honor4c.
I read many posts on camera2API and many says to add "persist.camera.HAL3.enabled=1" in buil.prop, but it didn't work.
Any suggestions?
Click to expand...
Click to collapse
here https://vk.com/wall-111396109?w=wall-111396109_7/all
saying that it is for Qualcomm phones.
If you need RAW photo try to use freeDCam it can get it without camera2 api.

Related

Any Selinux permissives kernels out there?

Bought an M9 two weeks ago ( just went over my buyer's remorse period so i own it now). Love the phone but why isn't there any kernel development on this device?
justthefacts said:
Bought an M9 two weeks ago ( just went over my buyer's remorse period so i own it now). Love the phone but why isn't there any kernel development on this device?
Click to expand...
Click to collapse
Because the sources they gave us break stock camera... The camera works but can't save photos taken.
Selinux is easy to set anyway.
Is there anyway to know the selinux state on this phone without using any apps? (rooted)
justthefacts said:
Is there anyway to know the selinux state on this phone without using any apps? (rooted)
Click to expand...
Click to collapse
'getenforce' command in terminal.
Use 'setenforce 0' for Permissive, 'setenforce 1' for Enforcing.
Setenforce requires su, getenforce does not.
ante0 said:
'getenforce' command in terminal.
Use 'setenforce 0' for Permissive, 'setenforce 1' for Enforcing.
Setenforce requires su, getenforce does not.
Click to expand...
Click to collapse
Do I have to do this on every boot?
justthefacts said:
Do I have to do this on every boot?
Click to expand...
Click to collapse
There are scripts/apps to set it automatically.
Here's one for example: https://forum.xda-developers.com/android/apps-games/app-selinux-switch-t3656502
ante0 said:
There are scripts/apps to set it automatically.
Here's one for example: https://forum.xda-developers.com/android/apps-games/app-selinux-switch-t3656502
Click to expand...
Click to collapse
Scripts don't stick and Selinux switch doesn't work all the time. Have there been any attempts on making Selinux permissive kernels?
justthefacts said:
Scripts don't stick and Selinux switch doesn't work all the time. Have there been any attempts on making Selinux permissive kernels?
Click to expand...
Click to collapse
There's no point if you want a working camera. As I said, Huaweis source breaks camera.
That said, making a kernel with selinux set to permissive is not hard. You can even use hexeditor to modify boot.img to always be permissive.
Check this post https://forum.xda-developers.com/showpost.php?p=59160364&postcount=23
ante0 said:
There's no point if you want a working camera. As I said, Huaweis source breaks camera.
That said, making a kernel with selinux set to permissive is not hard. You can even use hexeditor to modify boot.img to always be permissive.
Check this post https://forum.xda-developers.com/showpost.php?p=59160364&postcount=23
Click to expand...
Click to collapse
If I set selinux permissive in the kernel, would it mess up the camera?
justthefacts said:
If I set selinux permissive in the kernel, would it mess up the camera?
Click to expand...
Click to collapse
No. It's just broken in the source that Huawei released. Hacking it yourself on your firmwares boot image should keep camera intact (depending on your edits of course xD). Building kernel from source breaks the camera app regardless if you edit anything or not.
ante0 said:
No. It's just broken in the source that Huawei released. Hacking it yourself on your firmwares boot image should keep camera intact (depending on your edits of course xD). Building kernel from source breaks the camera app regardless if you edit anything or not.
Click to expand...
Click to collapse
So you can just edit the kennel to be permissive and all good? And no one has tried and reported?
This phone is almost a year old, 6 million users.
justthefacts said:
So you can just edit the kennel to be permissive and all good? And no one has tried and reported?
This phone is almost a year old, 6 million users.
Click to expand...
Click to collapse
What?
You can just edit it. I'm just saying that building a custom kernel from source is no good as it breaks camera. (this has nothing to do with selinux status)
Just edit and flash and you should be good to go.

Magisk Based GCAM Port, AR Sticker Support, Portrait Mode, HEVC Enabled

I have created a Magisk based DIY GCAM port for our PH-1 Phones.
Prerequisites:
Stock Pie 9.0, works on any of the Oreo 8-8.1 builds as well
Magisk 17.1 or newer (Uses 17000 template)
What it does:
It replaces media_profiles_V1_0.xml in vendor/etc : this allows for hevc, slo-mo
It sets postfsdata magisk policy (gives camera_config permissions, and allows it to switch faster when in recents)
Sets the following lines in props:
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
ro.vendor.sensors.dev_ori=true
persist.camera.is_type=5
persist.camera.is_mode=5
This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc..Do with it what you wish. I am not responsible for any of your headaches however....
Thanks:
@bsg - the originator
@Arnova8G2 - for being kind enough to port GCAM to better our lives
@invisiblek and the rest of the hood at discord - everything gets done there
@S4turno - hosting and being a good sport
@emowing - selinux fixes in magisk
@xterminater07 - sending logs, and doing some testing
@cstark27 - building a settings-less version of GCAM to make life easier, and good help (it's hard to find)
@ArtZ IMX258 color profile improvement and excellent GCAM mods
@urikill another GCAM mod contributor
@Tolyan009 another GCAM mod contributor
@SKULSHADY another GCAM mod contributor
@TheIronLefty GCAM Jesus Christ Himself
PH1 GCAM MOD
https://www.androidfilehost.com/?fid=1322778262904008891
RECOMMENDED GCAM IS TOLYAN009 (TINEUN) 1.0.11 HIS REPO CAN BE FOUND HERE:
https://www.celsoazevedo.com/files/android/google-camera/dev-tolyan009/
LINK TO GCAM HOSTING (REPO FOR ALL OF THE GCAM VARIANTS)
https://www.celsoazevedo.com/files/android/google-camera/
OLD FILES
https://www.androidfilehost.com/?w=files&flid=255766 (This is the dump for the V15, V16 flavors)
Enjoy Folks
Instuctions on how to use the PH1_GCAM_MODULE:
Basically, All GCAM ports Mostly, Fully, Sporadically, Sorta, Sometimes, with Caveats, 100% of the time, 60% of the time, more or less...... work with the PH-1. We are lucky to have a phone that doesn't have the headaches of the OP3/5/T, MI5S, and others that need wacky fixes to make GCAM work properly to some degree (This doesn't mean we don't have our own first world problems)
1. Install the latest DIY GCAM Mod from the Post Above.
2. Click on the link in the OP "REPO FOR GCAM VERSIONS" or the link to TOLYAN009 (TINEUN) and pick whatever GCAM you want. it is updated almost daily with new versions, different devs, different features and mods.
2A. If you choose TOLYAN009 (TINEUN) @TheIronLefty aka GCAM JEEZY aka GCAM SUPERBOSS aka KING OF GCAM SETTINGS put together a very nice thread, here: https://forum.xda-developers.com/es...om-gcam-settings-using-tolyans-build-t3829476
Let me be honest, i like making things work, im not very skilled in the way of making things pretty, perfect, noise free, etc. He did a lot of legwork testing all sorts of settings to get here. They look pretty nice. Follow his OP for optimized settings (and he is always testing, he may come up with something better, so check back often)
3. Install the APK and go.
ARCore, ARStickers, TANGO, and other AR related things
ARCore is a pain, since our phone isnt "technically" supported, but works well otherwise. What is included in the DIY GCAM MOD v1 and the full camera zips is a older beta release, that uses calibration_cad files in order to set up the orientation, etc. So now they are using .textproto files located in /data/data/com.google.ar.core/files/device_profile2_database, and they use the buildid from the buildprop to actively select the right textproto file. So anyways, if you want the latest ARCore, here is how.
1. Install this ARCore https://www.apkmirror.com/apk/googl...se/arcore-1-4-180716096-android-apk-download/ its the latest at this time
2. Install this ARStickers https://www.celsoazevedo.com/files/android/google-camera/ar/f/ARStickers_AllPack_ParseErrorFix.apk this is the latest.
3. Open GCAM and try to open AR Stickers (it will crash and FC, it needs to here, this is what it is supposed to do, its creating the device proto location, and the mata textproto isnt there, yet)
4. Using a file explore/adb/whatever browse to here /data/data/com.google.ar.core/files/device_profile2_database and rename a .textproto of your choice, I am currently using device_profile_taimen_colon_9.textproto . Just change the device codename (in this case taimen, to mata). Feel free to try any one you want.
5. Now open GCAM again, and open AR Stickers, it should give you the 3 permission prompts.
Alternatively, now that we have permatwrp, there are twrp flashable zips that do the majority of the work above, see here.
https://www.celsoazevedo.com/files/android/google-camera/ar/
As a bonus, here is the link to the latest Tango Measure app https://www.apkmirror.com/apk/googl...surements-2-1-180728039-android-apk-download/
Good luck, and thanks to @starcms for method of doing this
Congrats @aer0zer0, for this work. I know u will pull it off. By teh way gr8 work.
are the download links working for anyone?
Wickidmasshole said:
are the download links working for anyone?
Click to expand...
Click to collapse
Try without chrome, I name things bad
aer0zer0 said:
Try without chrome, I name things bad
Click to expand...
Click to collapse
Not working for me either. Tried on chrome and edge
sirdicholas said:
Not working for me either. Tried on chrome and edge
Click to expand...
Click to collapse
Try without chrome
aer0zer0 said:
Try without chrome
Click to expand...
Click to collapse
I did try on edge browser. What browser should I use then?
Edit: also tried with dolphin browser. I can select a mirror, after that it says page not found.
Here is the selinux fix for you. GCam must be installed in /system/priv-app/
in post-fs-data... replace your setenforce 0 with.. I gave it all permissions but you can trim these down to only the necessary one if you want to test every single permission.
magiskpolicy --live "allow priv_app { camera_prop unlabeled } file { append create write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon audit_access open }"
magiskpolicy --live "allow priv_app { unlabeled qti_debugfs } dir { append create execute write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon rmdir audit_access remove_name add_name reparent execmod search open }"
sirdicholas said:
I did try on edge browser. What browser should I use then?
Click to expand...
Click to collapse
I use firefox
ok, I'm a n00b, how do i install this after rooted?
emowing said:
Here is the selinux fix for you. GCam must be installed in /system/priv-app/
in post-fs-data... replace your setenforce 0 with.. I gave it all permissions but you can trim these down to only the necessary one if you want to test every single permission.
magiskpolicy --live "allow priv_app { camera_prop unlabeled } file { append create write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon audit_access open }"
magiskpolicy --live "allow priv_app { unlabeled qti_debugfs } dir { append create execute write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon rmdir audit_access remove_name add_name reparent execmod search open }"
Click to expand...
Click to collapse
Everything is moved there, I'll give this a whirl later. Good looks @emowing
xterminater07 said:
ok, I'm a n00b, how do i install this after rooted?
Click to expand...
Click to collapse
download the magisk module (zip file) created by aer0zer0. Open up magisk manager, select modules, click floating +, browse to your downloaded zip, reboot. Make sure you don't have any other gcam by arnova installed. It will not work if you do.
emowing said:
download the magisk module (zip file) created by aer0zer0. Open up magisk manager, select modules, click floating +, browse to your downloaded zip, reboot. Make sure you don't have any other gcam by arnova installed. It will not work if you do.
Click to expand...
Click to collapse
Just figured it out! Thanks . Similar to exposed. Sounds working now with messenger on the microphone without any additional settings. Great work guys! However, with selinux off, are we at any major security risks?
xterminater07 said:
Just figured it out! Thanks . Similar to exposed. Sounds working now with messenger on the microphone without any additional settings. Great work guys! However, with selinux off, are we at any major security risks?
Click to expand...
Click to collapse
Well sure, but one piece at a time
aer0zer0 said:
Well sure, but one piece at a time
Click to expand...
Click to collapse
Also, you got root going, noice
Wickidmasshole said:
are the download links working for anyone?
Click to expand...
Click to collapse
Because the the filename is: "GCAM with AR Stickers, version 3.zip"
the (,) in the filename messes with the URL.
If you click on one of the mirrors it'll give you a broken link like this:
http://qc4.androidfilehost.com/dl/s...0776376/GCAM+with+AR+Stickers,+version+3.zip?
If you delete the '%2C' in the link, the download will start.
corrected link:
http://qc4.androidfilehost.com/dl/s...20776376/GCAM+with+AR+Stickers+version+3.zip?
I've already posted code to not turn off selinux. Just wait for aer0zer0 to make a new package
emowing said:
I've already posted code to not turn off selinux. Just wait for aer0zer0 to make a new package
Click to expand...
Click to collapse
You guy rocks!!!

How to change selinux into permissive in Oppo F1f?

Help me pease, anybodies had try to change enforce selinux into permissive in oppo f1? I had tried for several ways, with init.d, selinuxmodechanger.pak, etc but end up in the same way. Btw, i need this to use Viper4Android... Anybody have solution?

[APP][PORT] ASUS Pixel Master Camera ported from ROG Phone

Guys, I would like to share this app by XDA Recognized Contributor, linuxct
It is Asus Pixel Master Camera ported from ROG phone...
I have tested it on our device and it works awesome...
It can be an alternative for Asus Camera on Custom Roms... Though it is not as feature rich, but it offers good quality pics, Asus Zenfone Watermark, AI Scene Detection, Pro Mode with manual focus etc..
It does not have portrait mode though...
Here is the link:
https://forum.xda-developers.com/android/apps-games/8-0-rog-phone-apps-ports-live-wallpaper-t3850848
Requirements: Camera2Api must be enabled !
Credits: @linuxct
unfortunately, it only supports 4:3 aspect ratio at 3MP max....
shindou01 said:
unfortunately, it only supports 4:3 aspect ratio at 3MP max....
Click to expand...
Click to collapse
You need to enable camera2api for all features to work..
Tyakrish said:
You need to enable camera2api for all features to work..
Click to expand...
Click to collapse
Well, gonna wait until we find a way to enable camera2api without root on pie beta then...
Tyakrish said:
You need to enable camera2api for all features to work..
Click to expand...
Click to collapse
How to enable camera2api
Dausthaansiva said:
How to enable camera2api
Click to expand...
Click to collapse
There is already a full tutorial in the guides section ... Go check there..
Dausthaansiva said:
How to enable camera2api
Click to expand...
Click to collapse
Enable USB debugging on developer options, get adb drivers and platform tools on a computer. Enter fastboot mode on the phone by pressing volume up and power button simultaneously. Connect it to the computer through USB and go to the platform tools folder on the PC. Within the folder open command prompt and type adb devices to check. Then type "fastboot oem enable_camera_hal3 true" without the quotation marks and reboot the phone.
Tyakrish said:
You need to enable camera2api for all features to work..
Click to expand...
Click to collapse
You're right! it works. Thanks!
I installed rog camera. It worked like charm. But super resolution mode with 48 MP shot is taking green picture. Any idea to fix this?
Tyakrish said:
There is already a full tutorial in the guides section ... Go check there..
Click to expand...
Click to collapse
hi link please
Camera force closes when the shutter button is pressed..
On havoc 2.6
Working like charm in max pro m2 4/64Gb varient.
Thanks for sharing.

unpack payload and images or root with rw permissions

hello to everyone​ i,m op8 os12 stock rom user and rooted as well
but i need to modify system few parts like build prop etc
i try many things to get rw access but failed
so there,s my first Q IS THIS POSSIBLE TO GET RW ACCESS IN OS12?
if possible then how? but incase its not possible then is this possible to unpack payload.bin
and modify system/vendor/product?
payload extracting is easy but is there any tool or kitchen which support these partitions unpack repack?
Why not just use a Magisk module?
Also, please make the font on your post more clear. The "black on gray" text is really cumbersome to read.
Xryphon said:
Why not just use a Magisk module?
Also, please make the font on your post more clear. The "black on gray" text is really cumbersome to read.
Click to expand...
Click to collapse
Hi thanks for time and showing your experience may i know which module you talk about and it'll be greatly appreciated if you pass the link
And sorry about font i create thread by pc in pc its looks very good
I'll edit tomorrow by pc
Mr Hassan said:
Hi thanks for time and showing your experience may i know which module you talk about and it'll be greatly appreciated if you pass the link
And sorry about font i create thread by pc in pc its looks very good
I'll edit tomorrow by pc
Click to expand...
Click to collapse
I believe an application is on the Play Store where you can edit your build. prop.
There's modules such as Pixelify that "change" your device into a Pixel.
Xryphon said:
I believe an application is on the Play Store where you can edit your build. prop.
There's modules such as Pixelify that "change" your device into a Pixel.
Click to expand...
Click to collapse
Bro build prop editing is easy once get rw
Ok I'm sure your talk about this module
[MAGISK] Pixelify
Pixelify Magisk Module A magisk module was created to make your android phone close to pixel devices. Current version - 2.2 So Features does this module provide? - Next Generation Assistant - Call Screening - Direct my call - Hold for me - Next...
forum.xda-developers.com
But still there's 2 thing's
1st this module just add few custom thing like boot animations etc not get rw
2nd in thread he already mentions oneplus os12 not support
Mr Hassan said:
Bro build prop editing is easy once get rw
Ok I'm sure your talk about this module
[MAGISK] Pixelify
Pixelify Magisk Module A magisk module was created to make your android phone close to pixel devices. Current version - 2.2 So Features does this module provide? - Next Generation Assistant - Call Screening - Direct my call - Hold for me - Next...
forum.xda-developers.com
But still there's 2 thing's
1st this module just add few custom thing like boot animations etc not get rw
2nd in thread he already mentions oneplus os12 not support
Click to expand...
Click to collapse
Oh. I had assumed you were on a custom ROM. It works best on there.
Xryphon said:
Oh. I had assumed you were on a custom ROM. It works best on there.
Click to expand...
Click to collapse
No no bro its stock rom

Categories

Resources