Home | History | Annotate | Download | only in uncrypt

Lines Matching defs:uncrypt

43  * In addition to the uncrypt work, uncrypt also takes care of setting and
46 * uncrypt is triggered as init services on demand. It uses socket to
48 * init (i.e. created prior to the service starts, and destroyed when uncrypt
51 * Below is the uncrypt protocol.
53 * a. caller b. init c. uncrypt
58 * uncrypt
61 * /dev/socket/uncrypt
124 // uncrypt provides three services: SETUP_BCB, CLEAR_BCB and UNCRYPT.
131 // UNCRYPT service still needs files on /cache partition (UNCRYPT_PATH_FILE
137 static const std::string UNCRYPT_SOCKET = "uncrypt";
209 // If socket equals -1, uncrypt is in debug mode without socket communication.
465 static int uncrypt(const char* input_path, const char* map_file, const int socket) {
514 // Initialize the uncrypt error to kUncryptErrorPlaceholder.
530 int status = uncrypt(input_path, map_file, socket);
536 // Log the time cost and error code if uncrypt fails.
615 fprintf(stderr, "%s [<package_path> <map_file>] Uncrypt ota package.\n", exename);
621 enum { UNCRYPT, SETUP_BCB, CLEAR_BCB, UNCRYPT_DEBUG } action;
630 action = UNCRYPT;
646 LOG(INFO) << "uncrypt called in debug mode, skip socket communication";
649 LOG(INFO) << "uncrypt succeeded";
651 LOG(INFO) << "uncrypt failed";
656 // c3. The socket is created by init when starting the service. uncrypt
681 case UNCRYPT:
691 LOG(ERROR) << "Invalid uncrypt action code: " << action;
695 // c13. Read a 4-byte code from the client before uncrypt exits. This is to