摘要:
fastboot oem part-resize misc:2fastboot oem part-resize recovery:16fastboot oem part-resize boot:5fastboot oem part-resize sboot:5fastboot oem part-resize system:250fastboot oem part-resize cache:44fastboot oem part-resize userdata:611fastboot oem part-commitROM的大小为1G,实际大小为933,所以就按上面的大小重新对系统的分区进行划分. 阅读全文
摘要:
#git tag commandgit tag [-a | -s | -u ] [-f] [-m | -F ] [ | ]git tag -a v1.0.1 -m "version 1.0.1" 4b0706d4c#create local tagsgit tag -a v1.0 -m "new tag"#check local tagsgit tag#push local tags to remotegit push --tags#delete local taggit tag -d v1.0#delete remote taggit push ori 阅读全文
摘要:
用于自动同步CM源代码 阅读全文
摘要:
Frequent issues: ---------------------If you report an issue without a log and/or without details, that's not very helpful in tracking down that issue, so, eventually, don't expect any assistance cause I am not a medium.If you get a "status 2" error when installing a recovery-updat 阅读全文
摘要:
git commit -m 注释换行 阅读全文
摘要:
basename作用是得到特定的路径中的最后一个'/',后面的内容如/usr/bin,得到的内容就是bin如果/sdcard/miui_recovery/backup得到的内容就是backup如果是/sdcard/update.zip得到的内容就是update.zip----------------------------------------------------dirname作用是 截取给定路径的目录部分如/usr/bin,得到的内容就是/usr如/sdcard/miui_recovery/backup,得到的内容是/sdcard/miui_recovery如/sdca 阅读全文
摘要:
下面的是实例内容目标是把OpenRecovery Script输入的内容进行修改当有下面的输入:(作用是安装/emmc目录下面的update-signed.zip 刷机包)install /emmc/update-signed.zip但是twrp 中只定义了/sdcard作为内存卡,面没有定义/emmc所以就要进行目标的更换了。用到的代码如下所示 1 /* 2 * 修改给定的字符串中相应的内容 3 * 例如 '/usr/bin' -> '/home/bin' 4 */ 5 #include 6 #include 7 #include 8 #include 阅读全文
摘要:
学习linux kernel中对结构体的初始化方法
linux kernel struct init method 阅读全文