yashsingh1/xdaforums huggingface dataset:
[Magisk] Didgeridoohan:
What app are you using to check SafetyNet? I've seen several of the apps that haven't been updated for the new API to wrongly report an invalid response as a failed check (when I haven't been able to use the Magisk Manager, I've always turned to SafetyNet Helper Sample)... And I'm assuming that the "invalid response" result is from the Magisk Manager, or?

You hint at having been able to pass SafetyNet previously on your device (with Magisk installed). If so, what changed between passing and failing? What did you do to your device?

You've already seen my troubleshooting guide, so you have everything there at your disposal... I can add that if you have confirmed that MagiskHide actually works (hiding root from a root app) and you still see a failed SafetyNet check (both CTS and Basic integrity), that likely means there's something about your device that triggers SafetyNet. You'll have to find out what...

Lastly, it's usually a good idea to use the latest Canary build when troubleshooting. There might be bugs in the stable and beta releases that have been fixed in the Canary build. And if you're going to be providing logs, make sure to use the debug channel. I don't think that it'll have any impact on your case, but it's generally a good practise.
[Magisk] oddcast:
I've also used the same app to check SN. It reported failed in both basicintegrity and ctsprofilematch.

However I've tried reverting all my non-systemless modifications on the /system partition, and sometimes Magisk Manager would report that my phone passed SN, but then hours later it's back to failed.

I've also noticed that my SELinux permissive mode seems to not get hidden by Magisk. Was it supposed to hide permissive, or to set it back to default enforcing? I've read an outdated part on your guide that Magisk Hide uses a pseudo-enforcing SELinux state to mask a permissive kernel. I've just toggled it from permissive to enforcing in a terminal emulator, and now Magisk says I'm passing SN again. I'm not really sure if it's the SELinux mode that trips my SN...

Also i'm getting rather confused that I can install Netflix even when i'm not certified on the Play Store.
[Magisk] Didgeridoohan:
It very much sounds like it's SELinux. There have been a couple of reports that Magisk can have trouble hiding a permissive SELinux on some devices...

Just keep it at enforcing and you should be good.
[Magisk] oddcast:
Okay now i've kept it at Enforcing and SN passed, but just half an hour later it's back to failed. I've reverted all the non-systemless modifications I've possibly made but nothing seems to work. Im back to being clueless.
[Magisk] Didgeridoohan:
If you can repeat that same process with the Canary debug build and afterwards provide the Magisk log, it might show what's going on.
[Magisk] oddcast:
Okay I've installed the canary debug build and here are the logs.

Thank you for putting up with me.
[Magisk] Didgeridoohan:
At any time during the timeframe the log was saved, did SafetyNet first work and then fail (like you described earlier)?
[Magisk] oddcast:
And right now I seem to be passing SN, but minutes ago I wasn't. I think SN would fail again minutes from now.
[Magisk] oddcast:
I saved the log when SN didn't work since it's originally like that, and then I toggled SELinux again. Right now i seem to pass SN.
[Magisk] oddcast:
And now it's back to failed.
[Magisk] Didgeridoohan:
And I'm assuming you don't have a Canary debug log showing the transition from passing to failing?

Without any kind of detailed info as to what's actually happening, there's not much anyone can do...
[Magisk] oddcast:
I do have the debug log
[Magisk] oddcast:
Okay, so after almost three weeks of waiting I haven't gotten an answer so I'm just going to attach another debug log (from 17.4 Canary) and hope someone does...?

I'm truly at loss here; all I've just wanted to do was to use Google Pay and get my Play Store certification back. But since SN still doesn't pass I've just switched to the latest 18.0 Beta - yet with no luck.

Have absolutely no idea what to do now.

(Also I've uninstalled the stock YouTube app before i switched from SuperSU to Magisk because I used the root version of iYTBP. But now when I try to install YT from the Store i get the 504 error. I don't know if this has something to do with my SafetyNet failing.)

I have also attached the 18.0 Beta install log. Please help.
[Magisk] Didgeridoohan:
There's not much to say, that's likely why you haven't gotten any further answers...

The logs you've provided show nothing but a functioning Magisk and MagiskHide. It's likely that at this point, the only one that can figure out what's causing it is you.

I looked back a bit but didn't see if you've done a complete wipe of your device and started from a clean slate. I'd advice that if you haven't done it already.
[Magisk] oddcast:
Okay...

I've done a factory reset and flashed my stock ROM, installed TWRP 3 and then Magisk 18.0 stable. Still getting "response is invalid" from Magisk Manager.

I don't know what the heck is wrong now...

Also my Play Store is still not updating itself even after Play Services have updated. Is this related to SN's "response is invalid"?
[Samsung Galaxy S7 Questions and Answers] jeti88:
Hi Everybody,

my phone was working with latest twrp and lineage os 15.1 without issues until 2 weeks ago. I got a /efs error, as I was on my way to the airport, I just rebooted a couple of times. This put the phone in the loop that it now only boots into this, which roughly needs 2 hours to get there:

[IMG="Downloading"]https://i.postimg.cc/kgzh4yfB/IMG-0204.jpg[/IMG]

from restarting (Volume-Down and Power Button) it takes roughly 2 hours to get back into the same state.

any other button combinations not working, so no Access to twrp...

I Think the screen does not change during Odin Upload tries, so no status or other writing on the screen...

What i have tried so far:

Samsung KIES:

in "emergency recover" -> "phone model is not supported" (after adding Model and SN: ) in Main screen it is stated as an "unsupported device"​

Samsung Smart Switch:[/INDENT]

roughly the same error as in Kies does not show up in list in emergency recovery, in Main screen it is stated as an "unsupported device"
​

Odin:

Downloaded latest firmware from sammobile

1st try: it failed (after several hours) with a log stating re-partition not possible ( I have not saved that log...)

2nd try (with Option Re-Partition enabled) log static for 1 hour EDIT: now it failed:

<ID:0/004> Added!!
<ID:0/004> Odin engine v(ID:3.1301)..
<ID:0/004> File analysis..
<ID:0/004> Total Binary size: 3981 M
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Set PIT file..
<ID:0/004> DO NOT TURN OFF TARGET!!
<ID:0/004> Can't open the specified file. (Line: 1892)
<OSM> All threads completed. (succeed 0 / failed 1)

any hint in which direction i need to go, as trial an error takes so much time with the telephone being that slow...

thanks in advance
[Samsung Galaxy S7 Questions and Answers] jeti88:
Next Try:

Odin:

Downloaded latest firmware from sammobile

3rd try:

<OSM> Leave CS..
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/004> Odin engine v(ID:3.1301)..
<ID:0/004> File analysis..
<ID:0/004> Total Binary size: 3981 M
<ID:0/004> SetupConnection..
<ID:0/004> Initialzation..
<ID:0/004> Set PIT file..
<ID:0/004> DO NOT TURN OFF TARGET!!
<ID:0/004> Re-Partition operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)

next I will try flashing TWRP with odin

any other ideas?
[Samsung Galaxy S7 Questions and Answers] diagonals:
hello, have you tried unzipping the sammobile file first? firmwares consist of 5 different files
[Samsung Galaxy S7 Questions and Answers] jeti88:
-> Yes i did, and i allocated them as the are named (BL -> BL;AP -> AP;CP -> CP;CSC_DBT -> CSC)
[Samsung Galaxy S7 Questions and Answers] jeti88:
Status:

after many tries to get into Download mode i can not mange it...

The Phone only reboots when volume down + Power is presse, this takes two ours and only gets me to the screen shown in first post, so it looks something like Download mode but it is not 100%, it shows up in ODIN but is not accesable

Volume down + power + home (holding for 10s upto several minutes) results in blank screen and I need to wait several hours to start over again

Vollume up + power + home results in blank screen and I need to wait several hours to start over again

I also had once a distorted screen, looking like a RAM-Hardware Problem

any Ideas on how to proceed?

thanks in Advance!
[Samsung Galaxy S7 Questions and Answers] jeti88:
Thanks for your message:

Sounds good!

What is your approach?

Thanks
[Samsung Galaxy S7 Questions and Answers] ukero:
He doesn't have any approach. He just likes to waste others time. In my thread, https://xdaforums.com/galaxy-s7/help/samsung-s7-edge-stuck-powered-android-t3859791 he did the same message. When I contacted him on WhatsApp, he wanted the picture of the phone in download mode that I provided. Then he stopped replying and seeing any of my messages. God knows what is his intentions.
[Samsung Galaxy S7 Questions and Answers] jeti88:
:rolleyes: thats what i thought, hence I only answered in the post not contacting him directly...

I am getting frustrated with the phone always trying to enter Download mode, waiting 2 Hours and trying over...
[Asus ZenFone Max Pro M1  Questions & Answers] asitgujar2:
Hello guys !

I have Zenfone Max Pro M1 ,3gb variant

Currently I have flashed pie roms and each roms give me the same bug that Pixel camera is not working even though camera 2 API is enabled. The same happens with Stock cam also . Anyone who have fixed this problem please leave the solution here it will help a lot . 3rd Party camera apps are working.

I have flashed Gapps Aroma Package 9.0

Aex and Liquid remix rom.

Before rooting I have enabled camera2 API without root.

Solution is required.
[Asus ZenFone Max Pro M1  Questions & Answers] adityaon:
same with me too.

gcam not working in pie builds

#3gb varient
[Xiaomi Mi A2 / 6X Questions & Answers] Kanazord:
Hello everyone,

My gf have a mi A1 and I love the pictures taken with Gcam, the colors especially are very good!

I wanted to compare Xiaomi A1 Gcam and A2 Gcam, however I can't find anything on the internet.

Does anyone here have both and have made a comparison with a few daylight shots?

Thanks!
[Xiaomi Mi A2 / 6X Questions & Answers] Neel@1234:
Will try to do one as I have both the devices.
[Xiaomi Mi A2 / 6X Questions & Answers] Kanazord:
Thanks, that would be awesome!:)
[Xiaomi Mi A2 / 6X Questions & Answers] hackwerk:
Would love that! Exactly what I am looking for (before Xmas).

Any update on this? Thnx!
[Xiaomi Mi A2 / 6X Questions & Answers] Kanazord:
Haven't seen any comparison, so I took the A1 and i am very happy with it.

Here are a 3 gcam pictures + 1 panorama (1st image: default app for Panorama, it's better than Gcam) retouched with lightroom mobile:
[Xiaomi Mi A2 / 6X Questions & Answers] paulozullu:
Really nice pics
[Xiaomi Mi A2 / 6X Questions & Answers] Kanazord:
Glad you like them!

Personally, I will wait for the A3 or A4 before upgrading, depending on the camera improvements.

If someone have nice shots taken with A2, I would love to see too!
[HTC Wings] amaric:
If i insert microSD card into my phone i loose 4.5MB of RAM! If i remove it i get it back. Can anyone else try this and confirm? What could be the reason for that?
[HTC Wings] rsawoseyin:
4.5MB of RAM because of microSD

I just tried it and what I lose is 0.82MB (that is, 820k) when I plug in the microSD card. I believe what you lose depends on the format of your microSD card. As in normal PC's, every attached drive takes up some RAM, the RAM size depending on the cluster size of the attached drive. MicroSD and other memory cards are generally factory-formatted to FAT. This is inefficient. As a rule, I always reformat my memory cards to FAT32 before using them. This drastically reduces the cluster size and so makes storage more efficient.
[HTC Wings] amaric:
I just tried what you said. After i format my microSD (2GB SanDisk) to FAT32 there is no difference. I still loose 4.5MB.

That's too much!
[HTC Wings] rsawoseyin:
Did you restart the device after reformating the microSD card?
[HTC Wings] amaric:
Yes, i did. I even tried other microSD card (128MB), it's the same.

16MB of free RAM is way to little! And to loose more than 25% of that just by inserting memory card is unbelievable!
[HTC Wings] 10332007:
do you have the phone set to dump anything onto the card or just as raw storage? something from the factory might be set to check the card, that is definately a new one.
[HTC Wings] amaric:
Pictures from camera are stored on my storage card by default if that's what you mean.
[HTC Wings] rsawoseyin:
I must say this is an unusual problem. What brand of microSD card do you have? Does it have an auto-encryption/decryption which runs immediately the card is inserted?
[HTC Wings] amaric:
SanDisk Ultra II 2GB. I don't know about an auto-encryption/decryption.
[HTC Wings] 10332007:
Hmm I could see it being the higher speeds that the ultra touts that the phone might not be able to handle? Sounds weird and un likely but this is a very weird issue. However if your other card wasnt Ultra II then that nerfs that idea.

It could be a defect in the hardware itself.
[HTC Wings] amaric:
I tried to hard reset my phone and then when i insert microSD card i loose around 850kb. So, it must be some application that's causing this. I'll have to uninstall one by one application to figure it out which one is it.
[HTC Wings] amaric:
Problem solved...HKLM\System\StorageManager\FATFS\EnableCache - set to 0 !
[HTC Wings] playerkiller:
What about cachesize value? mine is set to 0 so it shouldn't eat ram.
[HTC Wings] amaric:
I am not sure, mine is set to 8192.
[HTC Wings] kid1988:
It's not just the SD card.

Also the SIM card, When I removed my SIM card and booted the phone it was more responsive and I failed to get the Out of memory error (launching IE, all sorts of apps, and the camera) wich I consistently got with the sim card inserted.
[MTCD Software Development] jimimatthews:
Hi everyone.

As people are aware, upgrading to Android 8.0 Oreo broke the functionality of Bluetooth for users with the MD725 Type 2 Bluetooth module. I have now found the driver file that will likely repair all lost Bluetooth functionality - the sdsdk file. This should also fix any external USB WiFi/Bluetooth devices that use the MD725 Type 2 module.

I have tested this on my MTCD HA unit running Hal9k's Oreo ROM and can confirm that the following features now work:

- A2DP

- Calling

- Call History

- Contact sync

Note: This fix requires root access.

Installation Instructions:

1. Download the attached sdsdk.zip file.

2. From the sdsdk.zip file, extract the "sdsdk" file.

4. Copy the sdsdk file to a USB drive or SD Card to be plugged into your headunit

5. Install a Root file explorer.

6. Copy the sdsdk file from your external storage device to the location:

/system/bin

7. Reboot your headunit.

The working sdsdk file is from the MTCD_HA_20170726 ROM provided by [MENTION=7621504]f1x[/MENTION] in their "Solution for the bluetooth echo v2":

https://xdaforums.com/android-auto/...neral/px5-solution-bluetooth-echo-v2-t3661284

I hope that this fix works for you!
[MTCD Software Development] glenb83:
[MENTION=3590033]Malaysk[/MENTION] perhaps you can try to incorporate this fix in your rom if tested to work OK?
[MTCD Software Development] switchboy:
The command "ps | grep sdsdk" just returns the line(s) containing sdsdk (grep command) from the running processes list (ps command). So I think that that step is not necessary.

Also where did you find a working sdsdk for android 8, substituting the one from android 6 was tried before and did not work.

Regardless I will try to flash my android 6 HU to HALK's Oreo to comfirm this working on a MTCD KGL (v2.83)
[MTCD Software Development] jimimatthews:
Okay, I've removed that part of the step. I had a feeling it wasn't necessary but left it in.

The working sdsdk is from the MTCD_HA_20170726 ROM, which was collected by [MENTION=7621504]f1x[/MENTION] for the "Bluetooth echo solution".

Thanks! Please reply with your results!
[MTCD Software Development] switchboy:
I am afraid it did not work for me. Added the files to 'system/bin/'

Gave the the file 777 permission just to be sure (read write execute)

Did a reboot, no luck

As you can see sdsdk is not running when I search for it with 'ps | grep sdsdk'

I added photographs of the situation.

This is a fresh upgrade to HALK's Oreo rom from Android 6.0 do i need to select the MD725 as my BT adapter somewhere? Because that might be causing my issues? I will check the factory setting later (although they should not have been touched and BT was working on android 6)

It will have to be another time though. It's getting cold now that it is dark and I don't want to burn petrol while waiting on the HU. Already used a bit too much battery power while waiting on the update process.

Edit:

OP, did you also install the libraries (.lib files) provided by f1x? That might be the reason why it did not work and sdsdk doesn't run on my system right now.
[MTCD Software Development] ipgoogle:
hello . i have mtcd px5 , MX , Bluetooth MD725 type 2 , i am now at malaysk rom 6 v7 , want to ask if this fix will work with me ? till now i didn't try android 8 because of Bluetooth problem ?
[MTCD Software Development] switchboy:
Have been playing around with this idea some more. First off I checked if for some reason the Bluetooth adapter in the factory settings was changed. So I double checked and it was still set to MD725. So that was not the reason why sdsdk is not running. Secondly I thought maybe sdsdk is missing other files it depends on to run so I went ahead and made sure I copied the .lib files and the .ini file from f1x to the right folders and made sure all of them were executable. After that I did a reboot of my device and nothing. The Bluetooth name and pin are not populated in the settings menu and the process sdsdk is still not in the running processes list. This could either mean:

- The process sdsdk isn't started by the system on boot and we need a way to start it manually

- The process sdsdk is started but crashes soon after being started because it is still missing dependencies

- The implementation of sdsdk is not compatible with android 8 anymore (which would mean the end of the line for this approach)

After these tests I was a bit disappointed and had ran out of time for today. I need some way to check if sdsdk is doing anything and if so what it is actually doing. So on a PC my next logical step will be to try and run the program manually from the command line and see if it spits out an error. If it does I might be able to solve the problem.

Because of digging work by f1x we know that the init.hct.rc script does contain the commands to start sdsdk: (so this makes the first scenario unlikely)

on property:bt.md725.type=1
start gocsdk

service gocsdk /system/bin/gocsdk
class main
user root
group root
disabled
seclabel	u:r:shell:s0

on property:bt.md725.type=2
start sdsdk

service sdsdk /system/bin/sdsdk
class main
user root
group root
disabled
seclabel	u:r:shell:s0

I think the second scenario is the most likely scenario and sdsdk is missing the right (versions) of other files the program depends on. So we need to figure out what those files are. Furtermore I think the simple terminal command '/system/bin/sdsdk' probably wont start the service in a way that is useful for the OS, however I am hoping it wil output a usefull error code. So that will be the fist thing I will try next time I got some spare time to play with the HU.

Unfortunately I am a bit of a Windows guy and hobby developer (with limited C++, PHP and Java knowledge) so my Linux knowledge is limited. I would love to be able to decompile sdsdk to see what it actually does that might make fixing this software mess a bit easier. At this point I am not expecting a manufacturer to do it for us. As for now I just making guesses why it doesn't work and I don't like that.
[MTCD Software Development] ishyesh:
You can test this by, first, running '/system/bin/sdsdk' in a terminal. Even if this step works, I would see the missing libraries by running 'ldd /system/bin/sdsdk'. The assumption in the 'ldd' step is that the binary gets libraries dynamically attached to it when it runs, as opposed to coming packaged with the binary.

Feel free to paste the output and I can help interpret it. I would do this myself, but at the rate at which I'm going, I won't get to it until next year :D

P.S. you may need to find a binary for ldd on Android. Termux has an ability to get such, just type in the command, and if it knows it can download a binary for a missing program, then it will tell you how to do it
[MTCD Software Development] Arjen-S:
Hello Switchboy, i did put the files in the locations as showed in youre zip file.

It does not work on my HU.
[MTCD Software Development] switchboy:
The sdsdk executable is currently not working because of text relocations which aren't allowed in Android in userland anymore. So we either need to find a way to run sdsdk outside userland or find an sdsdk executable without text relocations. A version from android 7 might work.

See attached logcat
[MTCD Software Development] marchnz:
Great detailed summary and investigation into the issue.

Thanks for taking the time and sharing with the forums.

Until these blobs are updated or other software solution is found, we may have found a supplier for genuine GOC-MD-725.
[MTCD Software Development] ishyesh:
I love your persistence!

Did you also copy over the associated libraries? Typically, one can copy over the entire web of libraries required by a specific binary, and use those only for such binary, while leaving the rest of the system libraries alone. However, such solution may make things work, but may break integrations that Android may have had.

If only we had the source code ........ :D

Seems like https://source.android.com/reference/hal/structaudio__policy may references audio_offload_info_t.... I'll take a look. I might as well just scrape all the symbols to get a layout of what's calling what
[MTCD Software Development] switchboy:
If only we had the sourcecode of sdsdk I could debug it against current libraries rewrite it a bit and then compile a working version.
[MTCD Software Development] jimimatthews:
[MENTION=3260627]switchboy[/MENTION] I am really impressed with the level of debugging and research you went into! Thank you!!

It makes it more confusing that my BlueTooth works for around 30 minutes or so (or until I end a call) before my phone disconnects (but the HU still thinks it is connected).
[MTCD Software Development] jimimatthews:
I am very interested in this supplier!
[MTCD Software Development] switchboy:
Could you by any chance upload the sdsdk which is in your bin folder on the hu? To double check if it is the same one from the OP.
[MTCD Software Development] ishyesh:
Check the md725 module 1 and 2 swap thread
[MTCD Software Development] binchillaxen:
I'm getting a similar issue with my Bluetooth.

A2DP, Call History and Contact Sync all work

but Calling does not work properly. People can hear me, but I cannot hear them through my speakers.

I'm using an AVIN PX5

MCU version: MTCE_GS_V2.94_3 Sep 13 2018 11:26:51

I'm wondering if any MCU updates are available to resolve this issue?
[MTCD Software Development] ipgoogle:
Any update to fix this problem ??!
[MTCD Software Development] elniper:
I've installed the Hal9k Oreo ROM version 3.11. He mentions in his notes that the Bluetooth may not work because of Oreo if you have the Bluetooth module in question.

I upgraded coming from marshmallow 6.0 1. Before I installed and updated the ROM I install the latest MCU which I think resolved this issue which is MTCD/E MCU v2.99. I'm on Oreo now and all my Bluetooth works, phone music contacts OBD and such... :good: