yashsingh1/xdaforums huggingface dataset:
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
"Especially it sounded like hal being some acronym for 'hardware secrets'."

Point taken....

More like hardware difficulties I guess.

I will try find this video of a camera HAL developer who was talking about how he finally managed to write (I think ) an alternative HAL to make the camera of a custom ROM work. It had been giving them a lot of problems and was not working while everything else was working. The phone company was not helping.

And because I might be coting it wrong I will let you see the video and then you can clarify.

By the way , it wasn't for a jiayu s3 phone.

"All those 'secrets', also known as the source code had been shared by jiayu China"

I guess you are talking about the camera driver source code... And how the HAL interacts with that driver in the particular ROM.

This is part of what I thought the companies generally didn't share, something like trade secrets !!!

But asyou say ,in the case of jiayu s3 everything was shared and we are taking of KK and at most LP.

As I understand it , you have to do the same process again for every ROM - MM, Nougat , Oreo - and that is the reason the camera in MadOS Oreo (video at least ) is not fully functional.

Am I correct ?

"TF actually didn't know what to do with the source code..."

TF is just the Spanish reseller/shop. I suppose they should have access to the driver source code too if they are to make a European version of the ROM.

"And, as far as I know, shared it with sandstranger."

They recognized a great developer !!!!

"So, from the people working on s3, no one has to guess anything..."

Cool !!!!

So please explain why the camera , especially in the early stages of the ROM does not work well.

The camera in MadOS Oreo is subfunctional , at least Asif waiting.

"The initial source code still is lp based and just old..."

I am assuming driver source cord.

Tell me something , is it such a huge task to improve the driver if you have the old source code?

---------------

I found the information about the"secrets" I was talking about and it's from xda !!

The link is below.

And yes developers work in the dark on HALs and that's the reason the camera takes a long time to be fully functional.

This is true for all ASOP based ROMs with apparently the Jiayu s3 exception if what you say is true ...

And if what you say is true , then what is the alternative explaination of why the camera in Mad Oreo is subfunctional right now ?

https://www.xda-developers.com/came...s-make-hardware-work-without-source-code/amp/
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
I found the information about the"secrets" I was talking about and it's from xda !!

The link is below.

And yes developers work in the dark on HALs and that's the reason the camera takes a long time to be fully functional.

This is true for all ASOP based ROMs with apparently the Jiayu s3 exception if what you say is true ...

And if what you say is true , then what is the alternative explaination of why the camera in Mad Oreo is subfunctional right now ?

https://www.xda-developers.com/came...s-make-hardware-work-without-source-code/amp/
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Problem with TWRP v.3.1.1

I have a problem flashing or launching TWRP v.3.1.1-0 which is mandatory for ROM 7.1.2 and which is provided via download link in the General FAQ section in the header of the discussion:

When booting into recovery mode TWRP does not start but after a short while the system starts, as if no recovery were installed at all.

I have already tried flashing the recovery.img file with the newest Flashify from SD-Card, with my old TWRP 2.8.6.0 (install from SD-Card to recovery partition), and also with SP Flash Tool v5.1728 via USB cable: Flashing seems to work, at least I got a success message from Flashify and from SP Flash Tool, but TWRP will not start.

Same mystery with the previous version S3_h560_TWRP_3.0.2-0 .img, which is also provided for download.

When powering up the boot manager (using the hardware key combination) the boot manager shows the Recovery option, but if I select Recovery, the boot manager boots Android from the system partition.

Finally I flashed back my old version TWRP 2.8.6.0 and was able to boot into the old recovery again, which proves that I can flash.

Can anyone help me please to update TWRP ?

My device is a Jiayu S3 advanced (3GB, S3S, H560)
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] 1testi:
I had similar problems with either twrp opens, but doing nothing or not open at all with both 3.0.2-0 and 3.1.1-0.

For me it was corrupt formatted sd card.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
Don't flash with flashify , orany other app that starts from a runnin ROM, over fifty percent of the time you will get issues...

To be on the safe side redownload twrp 3.1.1-0.

Please double check to make sure it's the CORRECT twrp for your jiayu ( twrp for just s3 and jiayu s3 advanced)

Since I'm not sure how you are using SP Flashtool and which scatter file you are using ( you don't provide these details) ,to be on the Safe Side re-download repack RC5 which uses SP Flashtool to flash.

I don't remember what the recovery is but it's probably twrp 3.1.1-0

https://xdaforums.com/devdb/project/?id=19077#downloads

You can first try the default flash of RC5 and see if it flashes twrp 3.1.1-0.

If not or if you need to used the MadTeam twrp 3.1.1-0 (which is usually necessary for MadOS) then do the following:

After SP Flashtool loads your scatter file , click on the recovery file option and choose the twrp 3.1.1-0 that you downloaded. Flash.

I am assuming you know how to use the SP Flashtool correctly , but if this doesn't work , then you will have to give details of exactly how you used the SP Flashtool.

----Twrp for your s3 advanced not for the original s3----
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Hello pfavayi, thank's for your reply. I've been using "MT6752_Android_scatter.txt" which was included in the ROM package "S3S-20150507-083407". I flashed this ROM back in 2015 and it worked fine for me (thx to Sorix). With SP Flash Tool I tried both modes "download only" and "firmware update" (which wipes), just for the recovery patition.

I will follow your proposals today and get back with a report.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Hello 1testi,

Thank you for your hint ... I reformatted the sd card and tried to flashify, but withot success :(
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Hello pfavayi, dear all,

remember I had problems to flash the mandatory 3.1.1. version of TRWP on a S3S. I followed your hints and I am back with findings, but with no breakthrough unfortunately ...

- I have no glue how I could double check if the TWRP 3.1.1. is valid for the S3S (3GB) variant of the JiaYu S3, because JiaYu phones are not officially supported by TWRP. Perhaps superdragonpt, who provided the link for download, can tell, or anyone who successfully flashed on a S3S, can tell if the file is valid for S3S.

- I compared the clear text scatter file from the RC5 Lollipop ROM with my approved source S3S-20150507-083407, and found differences in various partition addresses, except of the recovery partitions which are equal. For this reason I gave no try to the RC5 recovery. The compliant "recovery" address is:

- partition_index: SYS9

partition_name: recovery

file_name: recovery.img

is_download: true

type: NORMAL_ROM

linear_start_addr: 0x2d20000

physical_start_addr: 0x2d20000

partition_size: 0x1000000

region: EMMC_USER

storage: HW_STORAGE_EMMC

boundary_check: true

is_reserved: false

operation_type: UPDATE

reserve: 0x00

- I made a readout of my actual memory addresses with MTKdroidTools (saving as a scatter file failed because of the "TotalBytesPerChunk Not Fond" error):

recovery

Scatter 000003AB00

Size 0000016900

Byte size 92416

device emmc_p8

This looks pretty much different, but how exactly MTKdroidTools compares to the earlier scatter file I cannot tell because I missed the math lesson about converting hex addresses :cool:

- I found two posts of fellows who suffer from similar problems. The common thread seems to be that TWRP versions 3.0 and higher do not run on the S3S, but which is not confirmed yet. Sources:

https://xdaforums.com/jiayu-s3/help/help-installing-recovery-to-jy-s3s-t3615899

https://xdaforums.com/jiayu-s3/help/update-twrp-to-3-0-t3731993

I may apply to the the xda community to agree or disagree from individual experience.

- My concluding hypothesis is that the S3s parition might simply be be to small for version 3.X TWRP recoveries, whereas S3 partitions might be large enough.

- Final question: Can this be changed somehow?

Hopefully these questions find answers in the community. Thank you in advance for your support.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] 1testi:
That's nonsense. TWRP 3.1.1-0 is needed to install Oreo on the S3A, so everybody in the 8.0.0 / 8.1.0 thread is using it.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
Don't use flashify - 80% of the time it will fail .
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Hello pfavayi,

yes I have the 3GB version, lets call it S3A to be conform.

I will try the RC5 today and then report.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] misosofos:
First boot?

Do you know how long does it take for the first boot ? I'm waiting since an hour ago...
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
It should take some minutes , much less than 5.

Reboot ....

If the problem continues , boot into recovery and wipe cache , dalvick cache.... This is what is universally recommended.

But I also wipe data and internal storage just to be on the safe side because problems with these partitions can affect your phone.

In my personal experience , wiping cache and dalvick cache will solve 80% of your problems.

Wiping cache, dalvick cache, data, internal storage will solve 99,99999999% of your problems.

The other 0,0000000001 % , you have to reflash your ROM.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] misosofos:
So it's not working... I already tried to wipe everything and it takes... forever !

Maybe it's an issue due to the fact that I come from stock rom 4.4 ? Should I install the rom 5.5 rc ? Or trying another recovery ?

Thank you in advance for your replies.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
Thats what happens in you don'tt give enough info!!!!

This is what I think you are doing ( you didn't tell us that)- You are flashing MadOS Oreo.

I have written a detailed explanation of what you should be aware of when installing Oreo. Look in the previous posts for that detailed post.

Before you do that , try doing a factory reset from recovery.

If that doesn't work , flash twrp 3.1.1-0 and wipe cache, dalvick cache, data and internal storage.

Then flash twrp and do a factory reset and then flash your ROM

If that doesn't work then look for my post and read it ..

Good luck !!!
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] krkmastav:
If you come from KK you have to flash rc5 before installing N or O.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
Tell me something , since you are going to wipe cache, dalvick cache, system , data and internal storage BEFORE you flash, why is it important to flash RC5 first ?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] krkmastav:
Wiping doesn't change the partition and its size. It only deletes all content. When you're on KK, you have to flash RC5 with SPFlashtool to create a new partition table.

If you want more information i think the devs can help you better with that.

But the fact is you can't switch from KK to N/O.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
From what you are saying the partitions in KK are different from the partitions in LP, MM, N, O and that is why you need the sp Flashtool with LP rc5 to change the partition table.

If so , do you know why Google changed the partition scheme from LP onwards ?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] krkmastav:
As i already told you, contact the devs for more information please. Im really not in the mood to start a discussion with you. Sry.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] misosofos:
Thank you ! That worked !
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] krkmastav:
You're welcome.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Hello pfavayi,

thanks to your instructions I could flash the 3.1.1. MAD version of TRWP on my S3A. Now I'm stuck again:

TRWP does not offer to flash the system partition. Details:

- I compared the recovery image provided with the initial post with the one you shared with me, proven identical on binary level, and flashed it with SP flash tool and the RC5 scatter file.

- I unzipped madOS_7.1.2_s3_h560_20170819.zip to a formatted SD card

- In TWRP "Advanced Wipe" menu I wiped Dalvik, Cache, System, Data, Internal Storage (that's everything except MicroSDcard).

- In TWRP "Mount" menu I got selected:

Cache, System, Data, Micro SDcard.

- In the "Install" menu I've choosen "install image" and selected the file boot.img from the external SD card. Then I got asked to "Select Partition to Flash Image":

Boot, Uboot, Logo, Secro, Recovery.

There is NO System partition beeing offered.

I guess I should flash Boot, Uboot, Logo, Secro one after the other.

- Not surprising - when I attempt to boot, TWRP warns me "System" is missing.

What am I doing wrong?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
You gave an explanation of why RC5 has to be flashed first...It's natural to follow through with questions relating to your explanation.

You immediately refer me to someone else.!!!

I can understand if you don't know the answers to my questions or the real explanation of why (if at all) RC5 has to be flashed first.

If you don't, I can Google on my own or ask someone else who knows , or someone will see this comment and if they know the answer - comment.

No need to tell me two or more times to go to the devs !!!! That's the whole purpose of this forum!!!

As an academic exercise I will flash KK with the SP Flashtool and then try flash Oreo without going through LP....
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
from KK it's a mandatory to flash any LP rc's, it's based from the source code released by jiayu itself. and yes there's the partition thing that's needed that can be done through spflash.

...

MM, N, and O, were all based on LP, so you can't just jump from KK to O.

Beside there's no released MM, N nor O that's flashable to spflash.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] jaunedoeuf:
Do not unzip the firmware. You flash the zip file and it will flash the system by itself.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] matakan:
Does NFC work for Google Pay Payments?

I have JiaYu S3 ROM madOS 7.1.2 and I can not pay via NFC.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
"Hello pfavayi,

thanks to your instructions I could flash the 3.1.1. MAD version of TRWP on my S3A."

I am very happy I could be of service. It's my honor that you succeeded.

"Now I'm stuck again:

TRWP does not offer to flash the system partition. Details:

- I unzipped madOS_7.1.2_s3_h560_20170819.zip to a formatted SD card"

Firstly, it's excellent you gave a detailed description of what you did. It's extremely helpful in debugging your problem.

MadOS_7.x is an image that should be flashed through recovery as a zip file.

So do not unzip the file. Just flash it as a zip file from the sdcard.

All (or nearly all) custom ROMs made for the Jiayu s3 from LP (lollipop) onwards are zips that should be flashed through recovery.

Only two ROMs are flashable through the SP Flashtool - the Italian and Germany official jiayu s3 LP ROMs (extreme ROM and rc5)

Otherwise continue with the rest of the flashing as you describe -and you will succeed !!!
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Thank you for this hint, that way it worked, great :):):)
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] onoakino:
I'm on 7.1.2 and as far as I know, NFC has never worked in madOS.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
Hello everybody. Is there any option how to get info about ampers during charging? Thx.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] barbarossa.:
Update to Oreo, there it is included in the ROM.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
And if I dont wan't update to O?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] codewell:
Settings - madOS Extras - Quickcharge (my translation), its's the first item in the System cathegory - Powerplug (my translation)
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
I know about QuickCharge funcnionality but I mention about getting info amper value during charging.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] olivierboro:
I doubt it is possible in software for our phone. I bought a USB amperage meter for few euros in China for my s3. Charging amperage is very fluctuent depending on the charger, the cable...
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] barbarossa.:
Sorry no idea.

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
OK than, thx both of you for your opinion.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] RWolf70:
Po naistalování 7.1.2 jsem zjistil že je nefunkční OTG dá se něčím zapnout (root atd. )předem dík za info
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] 250045229:
Hope to fix BUG: can not switch network standard (LTE 3G 2G), such as switching to 2G under LTE. It has been no signal. Only open the flight mode, to restore the signal

I hope that one day, N will be perfect.

MAD Thank you for your company
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] choybel:
Possible Bug: Can't connect to wifi with hidden SSID on the latest 7.1.2. If anybody could help pls do. TIA!

More Power MADOS!
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] gnjavator:
You should use program like Hidden SSID Enabler to connect to hidden WiFi
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
Hello, I have problem with unstable BT connecting with my earphones. I try two models but by the time when I using earphones it's disconnet and I have to turn on/off earphones and wait some time while earphones got connection. Any idea what is wrong? Thanks alot for possible help.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] pfavayi:
CAN THIS TREAT EXTERNAL STORAGE LIKE INTERNAL STORAGE ?

My userdata partition is mounted on

/data

and is formatted as ext4

(about 5 GB size)

My Micro SD card is mounted on

/storage/1A23-D76C

And formatted as FAT32

(32 GB size)

My question is:

Can I format

/storage/1A23-D76C

as ext4

Then Move data from /data to /storage/1A23-D76C

Then make a hard link or a symbolic link

ln -s /storage/1A23-D76C /data

Or

ln /storage/1A23-D76C /data

After doing this will my Micro SD card be recognised and work as internal storage ?

Will I have a 32 GB internal storage that I can see in Windows when I plug in my computer?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
Hello, I'm fighting with random reset of phone. I mind that is due to latest madOS Oreo based, but seems to there is problem in the something else. I'm currently running at latest 7.1.2 madOS build and I've got several random boots too. Before that I'm running at some old 7.0 release with no problem but for now I'm completed confused what is going now. I very like latest 7.1.2 and don't want to way back to old Nougat version.

Can anybody help me what I can try to catch the problem? I flashed madOS with latest OpenGApps at once, before that flashed default LL RC5 and after that wiping ROM before install 7.1.2 madOS. Currently running with Magisk v14.5 instead of SuperSU. Thanks for any info that could helps.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] cheikemate:
I have the same issues.

I tried to collect then catlog outputs but the reset is really hard to catch and happens in random situations with different applications.

I am clueless for now.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
Exactly... very randomly is my experience too. I though that was due to some app, but I'm running at app minimum and without positive effect :( What a pity.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] cheikemate:
I think we need a developer.

A bit difficult to find one interested in good old Jiayu s3.

Anyway I think this behavior is known since the first versions of some 7.1.2 roms.

[emoji3525]
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
I tried to uninstall Magick and instead of it use SuperSU. But I guess that is a desperate move.

Anyway tried to fresh install without any backup and the situation is still the same. A little bit frustating.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] sepiroth0278:
This Happen also in 5.x.x releases.....

I got this in all Roms.... Sometimes after this Crashes... Screen is flickering after reboot... Also in twrp.... So maybe IT IS an Media Problem..... Think The only full working Rom was original 4.x.x .... But ist wasnt the best....
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] l0ll15:
I had that issue only on M, never on L or N (and I've been using N by MAD for about 6 months)
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
And what version of madOS' N do you use?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] l0ll15:
the last 7.1.2
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
So I'm running exactly the same ROM.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
what version of magisk you guys were using?

i'm currently using version 16.2, i tried 17.1 but didn't work.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] cedricboquiren:
I believe Magisk 14 below are versions that should work.
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
magisk 14 were too outdated. last time i tried modules doesn't pop up

...

so, anyone tried 16.3 - 16.7?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Firestone_cz:
So I'm running with SuperSU v2.82 for three days without random reboot & crashes. Before that I uninstall Magisk v14.5 with uninstalling tool via TWRP. After that wipe cache&dalvik and flash SuperSU. Maybe the problem is the combination of ROM with Magisk?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Dampirby:
I use Magisk 17.1, there is no problem. :)

Отправлено с моего S3 через Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] krkmastav:
Last i remember was 14 i think.

16 and 17 aren't working in my phone. The apps are freezing.

So i took my 2nd S3 and installed MM. With MM Magisk 16 is working.

My mainphone has Oreo and is not rooted.

I think i will get a new phone next month :/

Gesendet von meinem S3 mit Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
how did you install 17.1?
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Dampirby:
I installed 14.1, then put all the updates.

Отправлено с моего S3 через Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
failed at 16.6 it say's 'Magisk is not installed' in magisk manager
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] Dampirby:
Flash from twrp

Отправлено с моего S3 через Tapatalk
[JiaYu S3 ROMs, Kernels, Recoveries, & Other Develo] ak0ztik:
i flashed it through twrp but still no good.

maybe because i'm using mados May 2017 release, i don't want later updates because i can't use gameguardian, later updates has memory access issue.