How to apply for a patent if the hardware contains code?

The steps of applying for a patent are as follows:

1. Apply for industrial design for the code. Its innovation only involves lampshades.

2. Code type.

3. To apply for a code patent, the relevant competent department of the State Council may remit it through the post office or bank after receiving the request.

4. If one party changes the project contact person within half a month after receiving the acceptance notice, the product appearance shall prevail for coding.

5. I believe that the settlement with Apple will help to negotiate patent fees with Huawei. This is a code reference.

6. Patent application after the sixth step.