{"id":389,"date":"2018-02-25T20:41:42","date_gmt":"2018-02-25T11:41:42","guid":{"rendered":"https:\/\/pg-mana.net\/blog\/?p=389"},"modified":"2024-09-09T17:14:16","modified_gmt":"2024-09-09T08:14:16","slug":"bootanimation_zip","status":"publish","type":"post","link":"https:\/\/pg-mana.net\/blog\/bootanimation_zip\/","title":{"rendered":"bootanimation.zip\u899a\u66f8"},"content":{"rendered":"\n<p>\/system\/media\/bootanimation.zip<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u7121\u5727\u7e2e\u3002<br>\u3088\u3063\u3066desc.txt\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3067\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip -0qry -i \\*.txt \\*.png \\*.wav @ ..\/bootanimation.zip *.txt part*<\/code><\/pre>\n\n\n\n<p>\u3068\u3067\u3082\u3057\u3066zip\u3092\u4f5c\u308b\u3002<br>\u6b21\u306b\u3001rw-r&#8211;r&#8211; root:root\u306b\u3057\u3068\u304b\u306a\u3044\u3068\u8aad\u3093\u3067\u304f\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nchown root:root \/system\/media\/bootanimation.zip\nchmod 644 \/system\/media\/bootanimation.zip\n<\/code><\/pre>\n\n\n\n<p>\u3053\u3046\u3057\u3068\u3051\u3070\u826f\u3044\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u30b5\u30a6\u30f3\u30c9\u3002\u30b5\u30a6\u30f3\u30c9\u306f\u5404part\u5185\u306baudio.wav\u3092\u7f6e\u3044\u3068\u304f\u3068\u3001\u305d\u306e\u30d1\u30fc\u30c8\u306b\u5dee\u3057\u639b\u304b\u3063\u305f\u3068\u304d\u518d\u751f\u3057\u3066\u304f\u308c\u308b\u304c\u3001\u30bf\u30a4\u30e0\u30e9\u30b0\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u4ed6\u3001bootanimation.zip\u306e\u66f8\u304d\u65b9 :<a href=\"https:\/\/android.googlesource.com\/platform\/frameworks\/base\/+\/master\/cmds\/bootanimation\/FORMAT.md\" target=\"_blank\" rel=\"noopener\">bootanimation format<\/a><\/p>\n\n\n\n<p>\u305d\u3044\u3067\u3001\u6700\u8fd1\u306eAndroid\u3067\u306f\/data\/local\/bootanimation.zip\u3092\u8aad\u307e\u306a\u3044\u3002<br>\u3068\u3044\u3046\u3088\u308aAOSP\u3067\u3069\u3063\u304b\u3089\u304b\u6d88\u3048\u305f\u3089\u3057\u3044\u3002\u3067\u3082\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u305f\u3073\u306b\u713c\u304d\u76f4\u3059\u306e\u306f\u9762\u5012\u3002<br>\u3093\u3067\u3001Cyanogenmod\u7cfb\u5217(LineageOS\u306a\u3069)\u306f\/system\/addon.d\/\u4ee5\u4e0b\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u304f\u3053\u3068\u3067\u3001\u6d88\u3048\u306a\u3044\u3088\u3046\u306b\u3067\u304d\u308b\u3089\u3057\u3044(\u307e\u3060\u672a\u78ba\u8a8d)<br>\u9069\u5f53\u306bupdate.zip\u66f8\u304d\u63db\u3048\u3066\u3001(addonsu-arm.zip\u3042\u305f\u308a)\u3001install\u7528zip\u4f5c\u308b\u304b\u3001\u3044\u3063\u305d\u81ea\u529b\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3082\u826f\u3044\u304c\u3001<br>\/system\/addon.d\/81-bootanimation.sh\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n#!\/sbin\/sh\n# Bootanimation\u8a2d\u5b9a\n\n. \/tmp\/backuptool.functions\n\nlist_files() {\ncat &lt;&lt; EOF\nmedia\/bootanimation.zip\nEOF\n}\n\ncase \"$1\" in\n  backup)\n    list_files | while read FILE DUMMY; do\n      backup_file $S\/\"$FILE\"\n    done\n  ;;\n  restore)\n    list_files | while read FILE REPLACEMENT; do\n      R=\"\"\n      &#91; -n \"$REPLACEMENT\" ] &amp;&amp; R=\"$S\/$REPLACEMENT\"\n      restore_file $S\/\"$FILE\" \"$R\"\n    done\n  ;;\n  pre-backup)\n    # Stub\n  ;;\n  post-backup)\n    # Stub\n  ;;\n  pre-restore)\n    # Stub\n  ;;\n  post-restore)\n    chown root:root \/system\/media\/bootanimation.zip\n    chmod 644 \/system\/media\/bootanimation.zip\n  ;;\nesac\n<\/code><\/pre>\n\n\n\n<p>\u3068\u66f8\u304f\u3089\u3057\u3044\u3002post-restore\u306e\u3068\u3053\u308d\u306f\u3044\u3089\u306a\u3044\u304b\u3082\u3002<\/p>\n\n\n\n<p>Galaxy Nexus\u3067\u8272\u3005\u5b9f\u9a13\u3057\u3066\u308b\u3068\u697d\u3057\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/system\/media\/bootanimation.zip \u307e\u305a\u3001\u7121\u5727\u7e2e\u3002\u3088\u3063\u3066desc.txt\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3067\u3001 \u3068\u3067\u3082\u3057\u3066zip\u3092\u4f5c\u308b\u3002\u6b21\u306b\u3001rw-r&#8211;r&#8211; root:root\u306b\u3057\u3068\u304b\u306a\u3044 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":0,"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"wp:attachment":[{"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pg-mana.net\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}