GithubHelp home page GithubHelp logo

Write RPMB fails about mtkclient HOT 7 OPEN

komenkHp avatar komenkHp commented on August 16, 2024
Write RPMB fails

from mtkclient.

Comments (7)

KeuntaeShin avatar KeuntaeShin commented on August 16, 2024

Today, i added statements for calling it you want, but i'm not sure it will work or not:

/git/mtkclient/mtk

                elif subcmd == "rpmb":
                    rpmb_subcmd = args.rpmb_subcmd
                    if rpmb_subcmd is None:
                        print('Available xflash rpmb cmds are: [r w]')
                    '''
                        Keuntae Shin: add rpmb_subcmd for writing
                    '''
                    if rpmb_subcmd == "r":
                        mtk.daloader.read_rpmb(args.filename)                        
+                  elif rpmb_subcmd == "w":
+                      mtk.daloader.write_rpmb(args.filename)

Also, i added several statements to respond unexpected exception of original code, that is raised by return code from devices. I'm afraid that it would depend on target devices, so i omit it.

And the command i used:
python3 mtk xflash rpmb w --filename /git/mtkclient/rpmb_image

from mtkclient.

bkerler avatar bkerler commented on August 16, 2024

The current payload has a small bug, support should be added on the next release

from mtkclient.

jamb84 avatar jamb84 commented on August 16, 2024

i really don't want to be one of those "weneta" people, but i am curious if you have an idea of when the payload fix might be released? will it allow us to clean the rpmb?

from mtkclient.

jamb84 avatar jamb84 commented on August 16, 2024

is there any indication of what the bug is? i've done everything i know to reverse the payloads myself and i'm struggling.

from mtkclient.

bkerler avatar bkerler commented on August 16, 2024

Yes. It's the way how some devices create the rpmb key. I will soon have a closer look

from mtkclient.

bkerler avatar bkerler commented on August 16, 2024

Write RPMB was added, but there is a bug in Init RPMB right now.

from mtkclient.

bkerler avatar bkerler commented on August 16, 2024

Keeping this issue alive ... work is in progress.

from mtkclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.