[NEED MORE TESTERS]ARcore working on Axon 7 (also for non-rooted users) - ZTE Axon 7 Guides, News, & Discussion

First of all READ THE WHOLE OP, PLEASE. Also pay attention to the "PS" at the bottom of this post.
(This post is still a work in progress)
WE NEED MORE TESTERS. Anybody with an A2017G and stock oreo(and the cam2 api patch below). Also more A2017U users on stock oreo need to help and test this.
Please report back if it works or not.
Requirements:
Selinux set to permissive (idk why but with enforced, ARcore doesn't work)
Camera 2 api is required. A2017G users need to flash this patch by @raystef66 https://androidfilehost.com/?fid=11410932744536993784
This won't be any simplified how to guide from me (more on that later).
Instead im gonna link 2 github issue posts which anyone with a little know-how about adb, sideloading/restore, root etc can follow to get ARcore working (reminder that it's also possible for non-rooted users).
First the main post
https://github.com/tomthecarrot/arcore-for-all/issues/139
IMPORTANT QUOTE and reason for not making a personal simple tutorial by myself (PAY ATTENTION TO THE LAST 2 SENTENCES PLEASE):
"Finally, we really only intended this mechanism for internal development use. We're mentioning it here because we see users super excited about running ARCore on additional devices, and agree that having to root your phone to do that is dumb. That said, we really only want to expose this to users already familiar with adb, side-loading, rooting, and the instability and wackyness that can arise from those things. Don't go out of your way to make it easy for novice users run ARCore on unsupported devices, and don't ask for support through official channels. If either of those start happening, we may have to cripple or remove this capability, and I think that's a loss for everyone involved."
What i think they are trying to prevent is "novice" users which don't know much about the matter in general, from flooding/spamming the official channels seeking for help. Also don't treat github as a forum. Don't ask the official devs for help. This is an UNSUPPORTED gift from the devs after all.
INSTEAD ask your questions here on this very xda thread and respect the official ARcore devs and the ARcore-for-all project. Thank you
I recommend reading through the whole github post as it's very informative on the matter and you might learn a thing or two.
Second post with instructions for rooted devices:
https://github.com/tomthecarrot/arcore-for-all/issues/139#issuecomment-466587565
For non-rooted users, please read through the github post. You need to know how to operate ADB restore properly.
Again, if you have any questions, ask here.
ARcore isn't working perfectly as of now since the calibration file we will be using isn't property tweaked yet (as the file itself was created for max compatibility for as many devices as possible). So let's work together, experiment with the values inside the calibration file (if you know how and what each value does, unlike me lol) and maybe, one day, we will have a proper, stable and smooth ARcore experience for our device.
Here is an example gif of me trying it out
https://thumbs.gfycat.com/GleefulShortBordercollie.webp (cant use IMG BB code to embed it into the post since its not in an actual gif format)
PS: i made this post on the phone and it's still a work in progress (especially now since xda labs messed up and only posted half of the OP for some reason). I plan to edit it later on pc for more clarity to make it visually easier and more appealing to read (currently sick, but i was so excited that i got ARcore working and really wanted to share it with you guys).
Since xda labs messed up with the post, some sentences are written differently than i originally intended. So i tried to fix it by re-writing the missing parts from memory and copy-pasting the whole text and posting it through the browser version of xda. So sorry if it is a little messy. All the more reason to edit it on pc later on xD.

Did everything the second post says to do for rooted users. Still a no go for me. When I load arcore measure it just flashes "acore keeps stopping"
Then it says ArCore is not able to run on this device.
What did you edit in your custom device profile?
Thanks bud

kountry83 said:
Did everything the second post says to do for rooted users. Still a no go for me. When I load arcore measure it just flashes "acore keeps stopping"
Then it says ArCore is not able to run on this device.
What did you edit in your custom device profile?
Thanks bud
Click to expand...
Click to collapse
I didn't edit anything yet since i have no idea what these values accomplish.
Do you have installed the camera2 api patch by @raystef66 ? Its needed, otherwise ARcore can't work. I edited OP and put the link to it at the top. (Totally forgot to add that this is the requirement)
Have you followed the steps exactly as they say? Quote: "Install the "arcore-modified-preview.apk" from*the "service-mod" branch*(it's linked in the README)"
See attached screenshot.
Download latest Arcore (from apmirror for example) and install that.
It doesn't have to be 1.7. You can just download the latest up to date version.
Follow the steps until he asks you to open the ARcore apk. What he now means by that is use any zip file viewer (i used rar for example) and with it open the official ARcore apk you downloaded (not the modified preview) and extract the textproto file from there.
Other than that i don't see any confusion coming from the rest of the instructions (renaming the file, putting it in the right folder etc)

GodOfPsychos said:
I didn't edit anything yet since i have no idea what these values accomplish.
Do you have the camera2 api patch installed by raystef66? This is necessary since it won't work without camera 2 api.
Have you followed the steps exactly as they say? Quote: "Install the "arcore-modified-preview.apk" from
Click to expand...
Click to collapse
I haven't installed raysteff66's camera2api patch but I have level_3 camera2 API and I went by the instructions you linked for rooted devices. I installed and modified everything it tells me to do.
P.s. I am using a ZTE Axon 7 A2017U on Oreo stock.

kountry83 said:
I haven't installed raysteff66's camera2api patch but I have level_3 camera2 API and I went by the instructions you linked for rooted devices. I installed and modified everything it tells me to do.
P.s. I am using a ZTE Axon 7 A2017U on Oreo stock.
Click to expand...
Click to collapse
Im sorry read my reply again, xda labs doesn't post my full replies for some odd reason so i used the browser version.

Also don't worry about the camera2 patch since you have an A2017U device. Its already camera2 api enabled

Added link of a demonstration gif to the OP

I'm running stock B20 Oreo and followed the instructions accurately. Do I need to clear the cache? I don't understand why it's crashing. I posted the screenshots of what I have.

kountry83 said:
I'm running stock B20 Oreo and followed the instructions accurately. Do I need to clear the cache? I don't understand why it's crashing. I posted the screenshots of what I have.
Click to expand...
Click to collapse
Hmm. Did you also set the permissions from the "files" folder as same as the others?
I didn't need to clear the cache and it worked for me.

@kountry83 if the "files" folder have the right permission and it still doesnt work. Could you maybe try a different camera ID?
Open the textproto file inside the files folder and edit the line camera_id: and change the 0 to 1.
Maybe this will do it.
See screenshot below
Maybe 0 is the front and 1 could be the back on the A2017U

GodOfPsychos said:
Hmm. Did you also set the permissions from the "files" folder as same as the others?
I didn't need to clear the cache and it worked for me.
Click to expand...
Click to collapse
/data/data/com.google.ar.core/files
My files folder is set to 2771 and the custom_device_profile.textproto file in the files folder is set to 644 permission.

kountry83 said:
/data/data/com.google.ar.core/files
My files folder is set to 2771 and the custom_device_profile.textproto file in the files folder is set to 644 permission.
Click to expand...
Click to collapse
My textproto file is set to 0666

We need more A2017G and U users with stock oreo to test ARcore. Please if any of you have already tested it and it works or not, please just say so in a reply and mention which device you used (G or U).
Edited OP as well to mention this

GodOfPsychos said:
We need more A2017G and U users with stock oreo to test this. Please if yoh have already tested it and it works or not, please just say so in a reply and mention which device you used (G or U)
Click to expand...
Click to collapse
Set the file to 0666. Still crashes with arcore measurement app. Even restarted and still crashes. What is your files folder permission?
Do you think you could make a flashible please with set permissions?

kountry83 said:
Set the file to 0666. Still crashes with arcore measurement app. Even restarted and still crashes. What is your files folder permission?
Do you think you could make a flashible please with set permissions?
Click to expand...
Click to collapse
My folder permission is the same as yours, 2771
Did you try changing camera ID as i mentioned in a previous post?

I tested the root method and it doesn't work as well. Probably need to tweak the custom_device_profile.textproto file

mickey36736 said:
I tested the root method and it doesn't work as well. Probably need to tweak the custom_device_profile.textproto file
Click to expand...
Click to collapse
Which device are you using? And which rom?
Also by "doesn't work as well" do you mean it doesn't work (crash) or its twitchy?

GodOfPsychos said:
Which device are you using? And which rom?
Also by "doesn't work as well" do you mean it doesn't work (crash) or its twitchy?
Click to expand...
Click to collapse
A2017G stock B01 with patch. I get with device not supportin mesure app.
Pokemon go also freeze the app when turn on ar+.

@GodOfPsychos changed camera ID to 1.
Same error, ArCore keeps stopping.

mickey36736 said:
A2017G stock B01 with patch. I get with device not supportin mesure app.
Pokemon go also freeze the app when turn on ar+.
Click to expand...
Click to collapse
Maybe its because you are still on the oreo beta. Im on b02

Related

[MOD] XposedWifiFixer - Change WiFi region to US (enable most 5GHz frequencies)

I wrote this for myself but here it is in case anyone is also interested.
Google sets the wifi country code to whatever is in your sim card. If the country does not have a corresponding list of enabled 5GHz frequencies, then a lot of these frequencies get disabled. This mod simply sets the country code to US. There is no GUI or anything, just enable and restart and you're all set. Android marshmallow only. I tested it on my S7 edge and it's working fine.
Enjoy.
Edit: Added OREO 8.1 version. Testing working on Pixel 2 XL.
madmack said:
I wrote this for myself but here it is in case anyone is also interested.
Google sets the wifi country code to whatever is in your sim card. If the country does not have a corresponding list of enabled 5GHz frequencies, then a lot of these frequencies get disabled. This mod simply sets the country code to US. There is no GUI or anything, just enable and restart and you're all set. Android marshmallow only. I tested it on my S7 edge and it's working fine.
Enjoy.
Click to expand...
Click to collapse
android4.4 cannot open
madmack said:
I wrote this for myself but here it is in case anyone is also interested.
Google sets the wifi country code to whatever is in your sim card. If the country does not have a corresponding list of enabled 5GHz frequencies, then a lot of these frequencies get disabled. This mod simply sets the country code to US. There is no GUI or anything, just enable and restart and you're all set. Android marshmallow only. I tested it on my S7 edge and it's working fine.
Enjoy.
Click to expand...
Click to collapse
awesome thankx
我是一个卒 said:
android4.4 cannot open
Click to expand...
Click to collapse
did you read OP's post properly ?
There is no GUI or anything, just enable and restart and you're all set.
BytesReverser said:
did you read OP's post properly ?
There is no GUI or anything, just enable and restart and you're all set.
Click to expand...
Click to collapse
sorry,my english is poor
I've been trying to find a fix ever since i got this phone and your module fixed it with no hassle
Thank you very much
Can i have your permission to share this on Mi A1 forums and xiaomi subreddit?
berezker said:
I've been trying to find a fix ever since i got this phone and your module fixed it with no hassle
Thank you very much
Can i have your permission to share this on Mi A1 forums and xiaomi subreddit?
Click to expand...
Click to collapse
Sure thing. If I can ask you to please link to this post and not share the APK.
madmack said:
Sure thing. If I can ask you to please link to this post and not share the APK.
Click to expand...
Click to collapse
No problem
Thank you again so much
Hi!
Are you actively working on this still? and did you get around to testing it on a oneplus of any kind? I got the 5T, this does nothing on it sadly, and i'm desperate for a fix
thanks!
Amornik said:
Hi!
Are you actively working on this still? and did you get around to testing it on a oneplus of any kind? I got the 5T, this does nothing on it sadly, and i'm desperate for a fix
thanks!
Click to expand...
Click to collapse
I can't say I'm "working on it still" but whenever I have a need for it, I update it. I actually have the pixel 2 xl running latest oreo 8.1 and needed the added 5 GHz access points at work to have higher speeds (780 MBps beats 54 Mbps any day!)
Works fine here. Just make sure your xposed is working fine and that this module is loaded correctly. Reboot, profit. should work on all 8.1 ROMs given that I'm only modifying a simple framework method which should exist in all variants out there.
Hi,
thanks for the reply!
I have installed the latest Xposed, and your module (downloaded from there, not the file here) & rebooted. nothing happens. I do not see my 5GHZ when it's on the 148 and up band. When I switch it to the lower bands (38 and up) works just fine. this is driving me insane. Any chance you could help me out ?
In another post, someone offered me to replace a file, and that seemed to work for a bit, but now it has also stopped working
Link: https://forum.xda-developers.com/oneplus-5t/help/wifi-region-5ghz-question-5t-t3776003#post76220330
Thanks! appreciate any and all help.
Edit: Actually it would help to understand what it is exactly your addon is changing ? since the above file does have something that seems relevant. is this the same value being changed?
Amornik said:
Hi,
thanks for the reply!
I have installed the latest Xposed, and your module (downloaded from there, not the file here) & rebooted. nothing happens. I do not see my 5GHZ when it's on the 148 and up band. When I switch it to the lower bands (38 and up) works just fine. this is driving me insane. Any chance you could help me out ?
In another post, someone offered me to replace a file, and that seemed to work for a bit, but now it has also stopped working
Link: https://forum.xda-developers.com/oneplus-5t/help/wifi-region-5ghz-question-5t-t3776003#post76220330
Thanks! appreciate any and all help.
Edit: Actually it would help to understand what it is exactly your addon is changing ? since the above file does have something that seems relevant. is this the same value being changed?
Click to expand...
Click to collapse
Maybe use my file here instead? Not sure what's on the xposed modules repo.
madmack said:
Maybe use my file here instead? Not sure what's on the xposed modules repo.
Click to expand...
Click to collapse
Hi,
Thanks for the reply! I thought I had mentioned I already tried it, did not change anything.
Maybe if you told me which file this is editing and which value is being changed, I might be able to debug and see if it's actually changing the value it needs to.
Works fine on my xiaomi a1 !!! thx so much!!
madmack said:
I wrote this for myself but here it is in case anyone is also interested.
Google sets the wifi country code to whatever is in your sim card. If the country does not have a corresponding list of enabled 5GHz frequencies, then a lot of these frequencies get disabled. This mod simply sets the country code to US. There is no GUI or anything, just enable and restart and you're all set. Android marshmallow only. I tested it on my S7 edge and it's working fine.
Enjoy.
Edit: Added OREO 8.1 version. Testing working on Pixel 2 XL.
Click to expand...
Click to collapse
cleberjb said:
Works fine on my xiaomi a1 !!! thx so much!!
Click to expand...
Click to collapse
It would be great if you could specify which version of Android (8.0, 8.1) and which ROM (or stock).
thanks!
Amornik said:
It would be great if you could specify which version of Android (8.0, 8.1) and which ROM (or stock).
thanks!
Click to expand...
Click to collapse
Sorry my inconvenience. Works on Android 8.0 stock.
Amornik said:
Hi,
Thanks for the reply! I thought I had mentioned I already tried it, did not change anything.
Maybe if you told me which file this is editing and which value is being changed, I might be able to debug and see if it's actually changing the value it needs to.
Click to expand...
Click to collapse
Sure, editing method setCountryCode in com.android.server.wifi.WifiServiceImpl
Setting the parameter to US manually.
madmack said:
Sure, editing method setCountryCode in com.android.server.wifi.WifiServiceImpl
Setting the parameter to US manually.
Click to expand...
Click to collapse
Cool, thanks!
Just as a follow up..
1. is this com.android.server.wifi.wifiserviceimpl a file (.jar?)or db file?
2. where is it located?
3. does your fix change it every time on reboot? or is it a one time change? (meaning, does the phone update this from the SIM occasionally?)
thanks again!
Amornik said:
Cool, thanks!
Just as a follow up..
1. is this com.android.server.wifi.wifiserviceimpl a file (.jar?)or db file?
2. where is it located?
3. does your fix change it every time on reboot? or is it a one time change? (meaning, does the phone update this from the SIM occasionally?)
thanks again!
Click to expand...
Click to collapse
no man, it's a framework class that xposed can tap into and change the behavior. Take a look at the source code of Android AOSP for that class. it's not a simple file in /system that you modify. It is changed every time this method is invoked, it's how xposed works.
Lol, just goes to show how much I know about how rhis works, which is nothing
Its working with the update to 8.1 btw.
Thanks for all your work and patience!

[MOD] [MAGISK] NFC-SIM Enabler for 1+3/t oreo (7/8/2018)

Hi all,
I just modified the module from @snowwolf725 to have a newer template so it can run on oreo rom
If you need to use nfc-sim on oneplus 3/3t you could try this module.
[Install]
1. Get Magisk
2. In the download area search for "OnePlus 3/t NFC Sim Enabler"
3. Reboot
4. If your manage app require permission you can give it at settings-apps-app permissions-additional permissions, toggle smartcardservice for it
I only test it on OOS Oreo ROM, it may not work on custom rom due to different framework built in.
You can report here so I'll check what other MOD have to add to make other ROM work.
the smartcardservice is modified from SEEK for Android by Johnzweng
Repo link
crazymika said:
Hi all,
I just modified the module from @snowwolf725 to have a newer template so it can run on oreo rom
If you need to use nfc-sim on oneplus 3/3t you could try this module.
[Install]
1. Get Magisk
2. In the download area search for "OnePlus 3/t NFC Sim Enabler"
3. Reboot
4. If your manage app require permission you can give it at settings-apps-app permissions-additional permissions, toggle smartcardservice for it
I only test it on OOS Oreo ROM, it may not work on custom rom due to different framework built in.
You can report here so I'll check what other MOD have to add to make other ROM work.
the smartcardservice is modified from SEEK for Android by Johnzweng
Repo link
Click to expand...
Click to collapse
Any chance that this mod used on htc m9 with aicp 13.1, rooted with magisk?
tombbb said:
Any chance that this mod used on htc m9 with aicp 13.1, rooted with magisk?
Click to expand...
Click to collapse
I don't think so, it's NFC chip specified so if you have a different device it's xml config would be different.
For m9 you could look through it's stock rom to adjust configuration, I believe the M9 stock ROM support NFC-SIM card.
What does nfc sim means?
prasant737 said:
What does nfc sim means?
Click to expand...
Click to collapse
In some places we have our payment/transportation card integrated in SIM card.
so we can use our phone to pay/take public transportation.
hi sir able to update it for oneplus 6t android pie?
laocheebye said:
hi sir able to update it for oneplus 6t android pie?
Click to expand...
Click to collapse
according your ID I assume you are Taiwanese, there is modification for oneplus 6 on mobile01, i think that will also work for 6t
I didn't have 6t so I can't test on it.
crazymika said:
according your ID I assume you are Taiwanese, there is modification for oneplus 6 on mobile01, i think that will also work for 6t
I didn't have 6t so I can't test on it.
Click to expand...
Click to collapse
i am singaporean actually. can u link me the thread? i can read chinese so its fine. thank you deep deep.
---------- Post added at 02:27 PM ---------- Previous post was at 02:12 PM ----------
i found the thread and the download link if anyone is interested to try for oneplus 6 or 6t.
forum link in chinese
flashable zip
i havent tried cos there is no decrypt twrp for 6t yet so at your own risk people.
I had asked about it to the author directly on github since since my test are not successful. No update since then...
https://github.com/Magisk-Modules-Repo/oneplus3simnfc/issues/2
NoobZik said:
I had asked about it to the author directly on github since since my test are not successful. No update since then...
https://github.com/Magisk-Modules-Repo/oneplus3simnfc/issues/2
Click to expand...
Click to collapse
I'll update this to pie compatible when oos pie released
crazymika said:
I'll update this to pie compatible when oos pie released
Click to expand...
Click to collapse
Hello, any news ?
Hi, just tried the latest v1.2.1, but it seems HamiPay detects root even MagiskHide enabled for it. Would you please share how to prevent HamiPay from detecting root? Thank you.
jekyll530 said:
Hi, just tried the latest v1.2.1, but it seems HamiPay detects root even MagiskHide enabled for it. Would you please share how to prevent HamiPay from detecting root? Thank you.
Click to expand...
Click to collapse
I think they changed the root detection, now it's can only use with iPASS, EasyCard or icash.
Creditcard function have been lock with rooted devices.
crazymika said:
I think they changed the root detection, now it's can only use with iPASS, EasyCard or icash.
Creditcard function have been lock with rooted devices.
Click to expand...
Click to collapse
Thank you for replying. The above seems work fine. Can this module be ported for OP5/T, 6/T (OOS 9.0) or even 7/Pro?
Cuvillier said:
Hello, any news ?
Click to expand...
Click to collapse
I've update to Pie rom, and confirm that we still can use sim NFC at it, just need some path adjustments, use the attached zip file replace your system/vendor/etc/libnfc-nxp.conf, put the SmartcardService folder in system/priv-app folder
add this line "persist.nfc.smartcard.config=SIM1,eSE1" in system/build.prop file, and should work as before.
I forgot how to make it into proper Magisk Module~the module i made tonight can't not be installed.... so strange. I'll update once i get it to work.
P.S.
I tried custom ROMs, they have many differences about NFC config, I can not get it to work even replace the framework and permission file, tried everything I know but still failed, maybe they missed something at more lower level.
updated for OOS Pie
I just found what's wrong.
Here's the updated Module for OOS Pie.
Later i'll update to Modules-Repo
jekyll530 said:
Thank you for replying. The above seems work fine. Can this module be ported for OP5/T, 6/T (OOS 9.0) or even 7/Pro?
Click to expand...
Click to collapse
@snowwolf725 have created the OP5 module, 6/6t have other method to make it working,but I need check some of it's file to make sure, op7 should work in theory, but it still depend on some rom configuration. I only have a op3t, do don't know how other models work.
Currently OOS have proper components (driver, config, frameworks...) installed, so it easier to enable them, for custom rom or future builds(which OP3 won't have)
I believe that require more adjustments to have this feature working.
crazymika said:
@snowwolf725 have created the OP5 module, 6/6t have other method to make it working,but I need check some of it's file to make sure, op7 should work in theory, but it still depend on some rom configuration. I only have a op3t, do don't know how other models work.
Currently OOS have proper components (driver, config, frameworks...) installed, so it easier to enable them, for custom rom or future builds(which OP3 won't have)
I believe that require more adjustments to have this feature working.
Click to expand...
Click to collapse
The OP5/T module is not available via Magisk download now. I'm currently using OP5 and will buy a 7 Pro. If you need, I can help testing.
crazymika said:
@snowwolf725 have created the OP5 module, 6/6t have other method to make it working,but I need check some of it's file to make sure, op7 should work in theory, but it still depend on some rom configuration. I only have a op3t, do don't know how other models work.
Currently OOS have proper components (driver, config, frameworks...) installed, so it easier to enable them, for custom rom or future builds(which OP3 won't have)
I believe that require more adjustments to have this feature working.
Click to expand...
Click to collapse
thanks but it doesn't work on lineage os 16. in logcat i get keymaster operation failed and unsupported digest on km1 hal issue. i hope you can fix it
regards

[ROM][9.0][N960FXXU2ZRKQ] PieBase (based on DevBase)

Mod Edit:
Thread closed due to no link provided, as well as rude, disrespectful OP statement.
So apart from F/DS devices, would it work on a N?
How about vendor, is it included?
Thanks
bober10113 said:
So apart from F/DS devices, would it work on a N?
How about vendor, is it included?
Thanks
Click to expand...
Click to collapse
I don't believe it would work on an N because the firmware I used is specifically for an F/DS device. Has it even been released on the N yet?
The vendor needed for Android Pie *is* included, as is modem, kernel, etc.
chrisaw said:
I don't believe it would work on an N because the firmware I used is specifically for an F/DS device. Has it even been released on the N yet?
The vendor needed for Android Pie *is* included, as is modem, kernel, etc.
Click to expand...
Click to collapse
Usually Fs and Ns are identical hardwarewise except system partition size is a tad smaller I believe.
I'll give it a shot and report back.
edit:
i checked script and bootloader and mdem are being flashed wich is a big no no for N devices.
plus as i can see there have been a complaint so...
chrisaw said:
If anyone takes offence to this ROM for any reason - please let me know and I'll take it down immediately.
Click to expand...
Click to collapse
Yes I have objection.
You can not use my modified images. You want to make your own then there is one thread in geneneral section. Get pie beta on your device and then dump it yourself.
Its my request to remove my work and meanwhile you make your own, remove the link.
chrisaw said:
Description
I really love this new Android 9.0 beta from Samsung with the One UI. I also really love DevBase!
With that in mind - I've created PieBase which is simply a combination of:
- Latest DevBase release (from here - thanks _alexndr)
- Latest Magisk release (from here - thanks topjohnwu)
- Latest Samsung Pie firmware (from here - thanks drketan)
If anyone takes offence to this ROM for any reason - please let me know and I'll take it down immediately. As soon as official DevBase is released - I'll remove this post and direct any visitors to his thread. I'm not even remotely interested in stealing people away from DevBase - it's an awesome ROM - just looking to fill the void for now.
SafetyNet Pass
In order to get SafetyNet to pass with Magisk you will need to:
Download Busybox magisk module
Download MagiskHide Props Config magisk module
Reboot your device
Download and open a terminal app of your choice
Switch to root by entering the "su" command
Enter "props" then enter: 1, f, 13, 24, y, y
Once your device has done rebooting - you should now be passing SafetyNet. The reason this is needed is simply because beta versions of Samsung ROMs never pass SafetyNet so we're claiming to be an 8.0 running device to Google so they'll pass us as running a known Samsung ROM.
Warnings
App names and dependencies have changed around a lot in this release so your old configs likely wont work!
You are welcome to try to attempt to dirty flash this ROM but it's VERY likely you will need to clean flash (sorry!)
If you have a /sdcard/devbase directory - rename this before flashing.
If you have a /sdcard/options.prop file - rename this before flashing.
This ROM is for F/DS ONLY!!!
Download
Mod Edit: Link removed
Click to expand...
Click to collapse
Hi. Ur rom is almost copy of Dr. Ketan rom. Does not sounds legitimate. Suggest u to rethink & close the thread.
Sent from my SM-N960F using XDA-Developers Legacy app

[MOD][O/P/Q] Front cam raw fix (needed for gcam)

I'll be quick.
This is a lib with SENSOR_DEFAULT_MODE changed to SENSOR_QUADRA_MODE in the hex. On most of the phones, Xiaomi/qcom understands they need to apply this mode on quad bayer sensors. But here, they gave no F. As I'm not surprised, that's all about the trivia of this mod.
How to apply it?
Unpack the zip, replace the original libmmcamera_platina_imx576_sunny/ofilm.so in /vendor/lib/. And ensure the file permissions are rwrr/0644.
Any side effects?
The front cam photos will come out as 6 MP. But, that's not a real disadvantage, since IMX576 is a quad bayer sensor, meaning it is technically made to be used in quarter of the resolution.
MIUI Camera is dead if you switch to the front, every other app works as intended.
Any requirements?
Common sense, Oreo/Pie/Q vendor, Sunny/Ofilm module manufacturer.
Great!
Could you be little more precise with procedure, please? How to edit lib, how to replace the original .so file in /vendor/lib/, and how to be sure the file have rwrr/0644 permissions?
Sorry... thanks
nesorsba said:
Great!
Could you be little more precise with procedure, please? How to edit lib, how to replace the original .so file in /vendor/lib/, and how to be sure the file have rwrr/0644 permissions?
Sorry... thanks
Click to expand...
Click to collapse
Lib editing: Because basic copypasting is already tough for you guys, I made this thread with edited lib, so you don't have to understand how to change 01 into 10 in the hex.
Replace trough any file explorer with root access, so for example Solid Explorer.
How the permissions look like is in the attachment.
help dev. i try to copy this custom lib to vendor/lib < here. and after reboot i open the Gcam always force close & miui camera front cam not opened.
stlprm said:
help dev. i try to copy this custom lib to vendor/lib < here. and after reboot i open the Gcam always force close & miui camera front cam not opened.
Click to expand...
Click to collapse
Try harder. (Just follow the system configuration of people who have it working)
j1505243 said:
I'll be quick.
This is a lib with SENSOR_DEFAULT_MODE changed to SENSOR_QUADRA_MODE in the hex. On most of the phones, Xiaomi/qcom understands they need to apply this mode on quad bayer sensors. But here, they gave no F. As I'm not surprised, that's all about the trivia of this mod.
How to apply it?
Unpack the zip, replace the original libmmcamera_platina_imx576_sunny.so in /vendor/lib/. And ensure the file permissions are rwrr/0644.
Any side effects?
The front cam photos will come out as 6 MP. But, that's not a real disadvantage, since IMX576 is a quad bayer sensor, meaning it is technically made to be used in quarter of the resolution.
MIUI Camera is dead if you switch to the front, every other app works as intended.
Any requirements?
Common sense, (probably) Oreo vendor, Sunny module manufacturer.
Click to expand...
Click to collapse
Works in global with Oreo 8.1
Thanks :good:
so you have also the needed apk and needed other patches for gcam which is working for platina?
y2kadir said:
so you have also the needed apk and needed other patches for gcam which is working for platina?
Click to expand...
Click to collapse
Nah, I'm not a platina user myself.
so why are you uploading a patch if you didnt test it before
y2kadir said:
so why are you uploading a patch if you didnt test it before
Click to expand...
Click to collapse
Because someone else wasn't as dumb as this question and tested it for me before I released it.
j1505243 said:
Because someone else wasn't as dumb as this question and tested it for me before I released it.
Click to expand...
Click to collapse
I know also someone who needs a pacifier like a small child. whats your problem? I would never be so dumb to release something which I didnt test before!!?
y2kadir said:
I know also someone who needs a pacifier like a small child. whats your problem? I would never be so dumb to release something which I didnt test before!!?
Click to expand...
Click to collapse
Should I close this thread because some random noob tells me I shouldn't release mods for a device I don't own? Your opinion is worthless to me. It was tested by people before I published it here. And also before you got triggered when I refused to spoon-fed you with gcam info. Learn some respect to the ones who actually contribute.
hi thanks for sharing this, but I tired for searching how to enable camera2api for MI 8 Lite ?
Working! But, which versión of gcam do you use?
Not work on Android pie. Help me.
Here's the magisk module if anyone needs it
With this it is possible to enable gcam for 8lite?
celovitor said:
With this it is possible to enable gcam for 8lite?
Click to expand...
Click to collapse
Nope. It's just a fix for the front cam raw. Do your own search.
Miui 9.5.9 block gcam. I think you should know.
Werewolf 99 said:
Miui 9.5.9 block gcam. I think you should know.
Click to expand...
Click to collapse
As a person unable to access platina, I don't. Either way, I hope this phone has some current reality and future in AOSP ROMs.

Viper4Android working on 7T Pro?

As the title says, has anyone managed to get it to work?
I've tried various methods suggested elsewhere and on the Pixel 4XL forum which involved using the Audio Compatibility and Audio Modification Libs, but none of them has worked. Always ends up booting to the Fastboot screen and that is it.
Have to use ADB to remove the modules to get the phone to boot again.
People seem to have managed to get it to work on the Pixel 4 which also comes with android 10 out of the box, so I would have though it should work on the 7T and 7T Pro.
Has anyone got a method to make it work?
If not, has anyone managed to get JamesDSP to work?
Thanks
I'm in the same boat. Phone stuck at bootloader unlocked warning when I install the driver. I've tried the normal, legacy, xhifi and rootless and nothing works.
Starting to think something it's something with oxygenOS...
Sent from my OnePlus7TPro using XDA Labs
Thanks for your reply.
I thought the same, but there are people on the OP7 Pro on OOS 10 that have got it to work.
So i thought maybe its just devices that ship with Android 10 out of the box with the new partitioning etc, but Pixel 4 XL users seem to have to got it to work (using some workarounds).
So to me it looks like it is only Oneplus devices that ship with OOS 10 out of the box. OP7T seems to be in the same boat.
If I'd known this was going to be a problem I would have ordered the OP7 Pro instead. Too late now though.
Hopefully someone will figure this out. Viper is the only reason I root.
Thanks
I've replied to main Viper thread to see if anyone has any ideas
chiiiiiiippppppp said:
I've replied to main Viper thread to see if anyone has any ideas
Click to expand...
Click to collapse
I think we have to wait until developers to properly update the app. Until then, not much to do until then.
Sent from my OnePlus7TPro using XDA Labs
Removed duplicate
chiiiiiiippppppp said:
By following the below advice on the main Viper thread:-
============================
Remove service.sh (v4a 2.3.x) or post-fs-data.sh (newer ver.) from /data/adb/modules/(v4a folder) if it's stuck at Bootlogo
============================
I have now got past the stuck at fastboot screen after installing the driver. The driver says it is installed but will not process.
Perhaps I need to make it a system app, or maybe install the rootless version of the driver.
Click to expand...
Click to collapse
chiiiiiiippppppp said:
chiiiiiiippppppp said:
By following the below advice on the main Viper thread:-
============================
Remove service.sh (v4a 2.3.x) or post-fs-data.sh (newer ver.) from /data/adb/modules/(v4a folder) if it's stuck at Bootlogo
============================
I have now got past the stuck at fastboot screen after installing the driver. The driver says it is installed but will not process.
Perhaps I need to make it a system app, or maybe install the rootless version of the driver.
Click to expand...
Click to collapse
Yep, I followed to this.
My viper says abnormal status and is not processing, installing the rootless version did nothing for me unfortunately.
Sent from my OnePlus7TPro using XDA Labs
Click to expand...
Click to collapse
Got it working
After days of trying numerous different ways I've finally managed to get Viper to work my Oneplus 7T Pro
First I removed the any previous Viper module in Magisk and rebooted.
I then uninstalled the Viper App and rebooted again.
So I then had a clean starting point.
I installed The SELinux Switch app from XDA to set SELinux mode to Permissive:-
https://forum.xda-developers.com/android/apps-games/app-selinux-switch-t3656502
I turned off Google Play Protect.
I then installed the version 2.7.1.0 module in Magisk.
Installed driver and it rebooted.
Stuck at Fastboot screen.
Reboot to Recovery
I then did the following in adb to delete the post-fs-data.sh file which is the file that stops the phone booting.
1) adb shell
2)cd to /data/adb/modules/ViPER4AndroidFX
3)rm post-fs-data.sh
4)exit
reboot to Fastboot and then Start
Then it just worked.
After a subsequent reboot I has to try a few things to get it to work again. e.g. close Viper and music app and then open SELinux Switch and then start Viper again.
After a 2nd reboot it just seemed to work.
I think it might be a timing thing where you have to wait for SELinux Switch to get granted Root before trying Viper.
Anyway I'm a very happy chappy.
Hopefully this will help others get it working.
Finally, got it working with your method!
Will be listening to lots of music tonight, thanks!
Sent from my OnePlus7TPro using XDA Labs
Lossyx said:
Finally, got it working with your method!
Will be listening to lots of music tonight, thanks!
Sent from my OnePlus7TPro using XDA Labs
Click to expand...
Click to collapse
Thanks, now you confirmed that it works as well, then I will create a Guide post and link it in the 7T forum and the main Viper thread.
chiiiiiiippppppp said:
Thanks, now you confirmed that it works as well, then I will create a Guide post and link it in the 7T forum and the main Viper thread.
Click to expand...
Click to collapse
I don't think this works for the 7T because you need a modded stock recovery with adb in order to remove post-fs-data file. Which I think you should also mention in the guide,
Lossyx said:
I don't think this works for the 7T because you need a modded stock recovery with adb in order to remove post-fs-data file. Which I think you should also mention in the guide,
Click to expand...
Click to collapse
Good point.
I'll update the guide post and the 7T post.
Thanks
I wanna do this on the 7t . I have magisk and elementalx kernel running. I hope I won't have to wipe my stuff
chiiiiiiippppppp said:
Good point.
I'll update the guide post and the 7T post.
Thanks
Click to expand...
Click to collapse
THREAD CLOSED! If interested in this subject, please follow this thread: https://forum.xda-developers.com/7t-pro/themes/installing-viper4android-t4001045
XDA Forum Rules (excerpt):
...
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
...
Click to expand...
Click to collapse

Categories

Resources