recovery

Android系统Recovery工作原理之使用update.zip升级过程分析(九)---u...

社会主义新天地 提交于 2019-12-06 07:49:53
Android系统Recovery工作原理之使用update.zip升级过程分析(九)---updater-script脚本语法简介以及执行流程 目前update-script脚本格式是edify,其与amend有何区别,暂不讨论,我们只分析其中主要的语法,以及脚本的流程控制。 一、 update-script脚本语法简介: 我们顺着所生成的脚本来看其中主要涉及的语法。 1. assert(condition):如果condition参数的计算结果为False,则停止脚本执行,否则继续执行脚本。 2. show_progress(frac,sec):frac表示进度完成的数值,sec表示整个过程的总秒数。主要用与显示UI上的进度条。 3. format(fs_type,partition_type,location):fs_type,文件系统类型,取值一般为“yaffs2”或“ext4”。Partition_type,分区类型,一般取值为“MTD”或则“EMMC”。主要用于格式化为指定的文件系统。事例如下:format(”yaffs2”,”MTD”,”system”)。 4. mount(fs_type,partition_type,location,mount_point):前两个参数同上,location要挂载的设备,mount_point挂载点。作用

Android系统Recovery工作原理之使用update.zip升级过程分析(五)---u...

老子叫甜甜 提交于 2019-12-06 07:49:39
Android系统Recovery工作原理之使用update.zip升级过程分析(五)---update.zip包从上层进入Recovery服务 文章开头我们就提到update.zip包来源有两种,一个是OTA在线下载(一般下载到/CACHE分区),一个是手动拷贝到SD卡中。不论是哪种方式获得update.zip包,在进入Recovery模式前,都未对这个zip包做处理。只是在重启之前将zip包的路径告诉了Recovery服务(通过将--update_package= CACHE:some_filename.zip或--update_package=SDCARD:update.zip命令写入到/cache/recovery/command中)。在这里我们假设update.zip包已经制作好并拷贝到了SD卡中,并以Settings-->About Phone-->System Update-->Installed From SDCARD方式升级。 我们的测试开发板是TCC8800,使用的Android源码是gingerbread0919,在这种方式下升级的源码位于gingerbread/device/telechips/ common/apps/TelechipsSystemUpdater/src/com/telechips/android/systemupdater/下。

Android系统Recovery工作原理之使用update.zip升级过程分析(四)---A...

怎甘沉沦 提交于 2019-12-06 07:49:25
Android系统Recovery模式的工作原理 在使用update.zip包升级时怎样从主系统(main system)重启进入Recovery模式,进入Recovery模式后怎样判断做何种操作,以及怎样获得主系统发送给Recovery服务的命令,这一系列问题的解决是通过整个软件平台的不同部分之间的密切通信配合来完成的。为此,我们必须要了解Recovery模式的工作原理,这样才能知道我们的update.zip包是怎样一步步进入Recovery中升级并最后到达主系统的。 一、 Recovery模式中的三个部分 Recovery的工作需要整个软件平台的配合,从通信架构上来看,主要有三个部分。 ① MainSystem:即上面提到的正常启动模式(BCB中无命令),是用boot.img启动的系统,Android的正常工作模式。更新时,在这种模式中我们的上层操作就是使用OTA或则从SD卡中升级update.zip包。在重启进入Recovery模式之前,会向BCB中写入命令,以便在重启后告诉bootloader进入Recovery模式。 ② Recovery:系统进入Recovery模式后会装载Recovery分区,该分区包含recovery.img(同boot.img相同,包含了标准的内核和根文件系统)。进入该模式后主要是运行Recovery服务(/sbin/recovery

Why does Aries perform a redo before undo in database management recovery?

半城伤御伤魂 提交于 2019-12-06 06:07:24
Why does Aries algorithm apply a redo before an undo if it already knows what transactions to undo after the analysis phase? I know(think) it has something to do with the Lsn numbers and maintaining consistency in the sense that undoing a transaction given that the data flushed on disk may not be the same as undoing a transaction at the time of the crash (due to dirty pages), but I can't find any sort of 'formal' answer to this question (at least one that I can understand). Because there may be unflushed pages on the buffer even if a transaction is committed. ARIES uses no-force in the buffer

Elasticsearch failed to recover after crash

拟墨画扇 提交于 2019-12-06 02:31:40
问题 Ran out of diskspace and that screwed the elasticsearch shards. Three nodes are now in red, two got recovered and their state is yellow. ES is running 150% on CPU and high on memory, trying to recover them. But looks like there is some version match conflict. I cleared up the disk space and deleted the translog for a shard to stop loading from translog. But surprisingly the translog gets created again! Please share how can I stop this attempt to recover from translog and resume normal index

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

怎甘沉沦 提交于 2019-12-06 00:03:54
执行recover操作时: RMAN> recover database; Starting recover at 28-NOV-19 using channel ORA_DISK_1 starting media recovery channel ORA_DISK_1: starting archived log restore to default destination channel ORA_DISK_1: restoring archived log archived log thread=1 sequence=7 channel ORA_DISK_1: restoring archived log archived log thread=1 sequence=8 channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3 channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete,

快速学习AOPR使用方法的小技巧

谁说我不能喝 提交于 2019-12-05 22:51:09
Advanced Office Password Recovery是一款专业级别的Office密码破解工具,可以破解十几种Office文档的各种密码。更多AOPR密码破解工具新入门的使用者担心掌握这样一款应用的方法十分困难,本篇文章中小编教你一个快速学习Advanced Office Password Recovery使用方法的秘诀,那就是神奇的“What’s this?”(这是什么)按钮,赶快来跟小编一起学习吧! AOPR密码破解软件“What’s this?”按钮的使用方法是:如果用户对页面对话框中某个菜单命令或者按钮的使用方法不了解,可以将鼠标置于该命令或按钮上,然后右击就会出现“What’s this?”按钮,单击后即会弹出对该命令或按钮的使用方法指导。 AOPR的“What’s this?”按钮 如果用户在页面空白处右击也会出现What’s this?”按钮但是点击按钮后也不会出现什么指导内容,如果是具体的菜单命令或者按钮的话,就会出现用户需要的帮助信息或者指导方法。如下图所示: OPR密码破解软件使用指导 温馨提示:由于Advanced Office Password Recovery默认的语言环境是英文,所以弹出的What’s this?”按钮信息也是英文。 虽然Advanced Office Password Recovery破解密码功能很强大,但是菜单设置并不复杂

HowTo zdb -e poolname to recover data from a single ZFS device

天涯浪子 提交于 2019-12-05 22:43:49
I have the following situation: 1*10TB Drive, full of data on a ZFS I wanted to add a 100GB NVME partition as a cache instead of using zpool add poolname cache nvmepartion I wrote zpool add poolname nvmepartition I did not see my mistake and exported this pool. Neither the NVME drive is availeable any more, nor the system has any information about this pool in the ZFS cache (due to export). current status: zpool import shows the pool but I cannot import the pool using any way found on the internet. zdb -e poolname shows me what i know: the pool, its name, that it (sadly) has 2 children which

VS code Delete my Unity project (OS X)(git clean all)

若如初见. 提交于 2019-12-05 18:36:08
I don't use git but Visual Studio Code has a git icon. So I clicked 'clean all' then my unity project has been deleted. How can I get my project back? I'm using OS X. You can't get it back using git or Visual Studio Code. May be OSX can help you to restore the files (for example via Time Machine). Short explanation of what you have done: You opened a folder (which was not a git repository). You clicked on the git icon in the menu bar on the left side As the opened directory wasn't a git repository there was only the option "Init git repository" that you clicked on. A list of files appeared and

POJ 2255 Tree Recovery

早过忘川 提交于 2019-12-05 18:08:40
  重建二叉树   给定一棵二叉树的前序遍历和中序遍历的结果,求其后序遍历。   输入输入可能有多组,以EOF结束。   每组输入包含两个字符串,分别为树的前序遍历和中序遍历。每个字符串中只包含大写字母且互不重复。输出对于每组输入,用一行来输出它后序遍历结果。样例输入   DBACEGF ABCDEFG   BCAD CBAD   样例输出   ACBFGED   CDAB#include<stdio.h>#include<iostream>#include<string.h>#define maxn 1001using namespace std;char s1[maxn],s2[maxn];int fa=0,root,n1,n2,step=0,father[maxn],chilrd[maxn][2];int search(int l,int r,char v){ for(int i=l;i<=r;i++) if(s2[i]==v) return i; return -1;}void jianshu(int l,int r,int me){ if(me==-1) {step--;return;} chilrd[me][0]=search(l,me,s1[++step]);//printf("%d %d %d %d<-->%d\n",l,r,me,step,chilrd[me][0