{"id":3930,"date":"2015-01-05T15:27:54","date_gmt":"2015-01-05T05:27:54","guid":{"rendered":"https:\/\/www.flamingspork.com\/blog\/?p=3930"},"modified":"2015-01-05T15:27:54","modified_gmt":"2015-01-05T05:27:54","slug":"cyanogenmod-with-encryption-on-a-sony-z1-compact","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2015\/01\/05\/cyanogenmod-with-encryption-on-a-sony-z1-compact\/","title":{"rendered":"Cyanogenmod with encryption on a Sony Z1 Compact"},"content":{"rendered":"<p>So, new personal surveillance device (it&#8217;s pink! No more BORING black phone!).<\/p>\n<p>Needed to be able to load my own firmware on it and have encryption. It turns out I had to go and do things like this: <a href=\"http:\/\/forum.cyanogenmod.org\/topic\/82292-cm102-encryption-does-not-start-stuck-at-splash-screen\/page__hl__+encryption#entry460839\">http:\/\/forum.cyanogenmod.org\/topic\/82292-cm102-encryption-does-not-start-stuck-at-splash-screen\/page__hl__+encryption#entry460839 <\/a>which is, in fact, repartitioning my phone.<\/p>\n<p>It&#8217;s been a while since I&#8217;ve had to do math on partitions to get a Linux installed somewhere&#8230; but if you don&#8217;t change where the filesystem is, you can&#8217;t run with encryption.<\/p>\n<p>Basically, if enabling encryption isn&#8217;t working, run &#8220;adb logcat&#8221; on your computer and look for &#8221; E\/Cryptfs ( 1890): Orig filesystem overlaps crypto footer region.\u00c2\u00a0\u00c2\u00a0Cannot encrypt in place.&#8221; if you see that, you&#8217;re going to need to boot into recovery and &#8221; adb shell&#8221; before finding what block device \/data is (check the output of &#8220;mount&#8221;) and then check the number of blocks it is in \/proc\/partitions before running mkfs.ext4 on it but with a device size of a few kb less than the device (I think I picked 16kb less. After doing that, everything &#8220;just worked&#8221;.<\/p>\n<p>how do I deal with OTA updates? Quite easily &#8211; copy the zip to the SD card and install from there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, new personal surveillance device (it&#8217;s pink! No more BORING black phone!). Needed to be able to load my own firmware on it and have encryption. It turns out I had to go and do things like this: http:\/\/forum.cyanogenmod.org\/topic\/82292-cm102-encryption-does-not-start-stuck-at-splash-screen\/page__hl__+encryption#entry460839 which &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2015\/01\/05\/cyanogenmod-with-encryption-on-a-sony-z1-compact\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[448,572,571,618,619,620,621],"class_list":["post-3930","post","type-post","status-publish","format-standard","hentry","category-general","tag-android","tag-cyanogenmod","tag-phone","tag-sony","tag-z1","tag-z1c","tag-z1compact"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-11o","jetpack-related-posts":[{"id":3739,"url":"https:\/\/www.flamingspork.com\/blog\/2014\/05\/24\/custom-all-of-the-things-on-a-galaxy-nexus\/","url_meta":{"origin":3930,"position":0},"title":"Custom all of the things on a Galaxy Nexus","author":"Stewart Smith","date":"2014-05-24","format":false,"excerpt":"Not being afraid to completely brick a phone is a good thing, and lets you go and play with a bunch of cool stuff. There's the well known cyanogenmod project - which does awesome things like have a more recent Android build for a Galaxy Nexus than what google provides.\u2026","rel":"","context":"In &quot;cool gadgets&quot;","block_context":{"text":"cool gadgets","link":"https:\/\/www.flamingspork.com\/blog\/category\/cool-gadgets\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2451,"url":"https:\/\/www.flamingspork.com\/blog\/2012\/01\/25\/textsecure-secure-sms-for-android\/","url_meta":{"origin":3930,"position":1},"title":"TextSecure &#8211; secure SMS for Android","author":"Stewart Smith","date":"2012-01-25","format":false,"excerpt":"So... having secure SMS really isn't hard. Onec upon a time you may have been forgiven to think that your SMS messages weren't recorded forever by\u00c2\u00a0telecommunications\u00c2\u00a0companies or various government agencies, but those times have long passed. At the very least you should be concerned about somebody getting hold of your\u2026","rel":"","context":"In &quot;linux.conf.au&quot;","block_context":{"text":"linux.conf.au","link":"https:\/\/www.flamingspork.com\/blog\/category\/linuxconfau\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1153,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/07\/18\/mysql-online-backup-with-encryption-preview-release\/","url_meta":{"origin":3930,"position":2},"title":"MySQL Online Backup with Encryption Preview Release","author":"Stewart Smith","date":"2008-07-18","format":false,"excerpt":"Head on over to the OnlineBackup - MySQL Forge Wiki and your able to get a built preview release with Encryption support. I welcome and encourage feedback!OnlineBackup - MySQL Forge Wiki","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1131,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/07\/01\/mysql-encrypted-online-backup-preview-1\/","url_meta":{"origin":3930,"position":3},"title":"MySQL Encrypted Online Backup Preview 1","author":"Stewart Smith","date":"2008-07-01","format":false,"excerpt":"I've just pushed to launchpad, a set of patches that implement AES encryption support for MySQL Online Backup. You will need to build --with-ssl to get support for encrypted online backup. Encrypted backup files have no recognisable header - they're just a stream of random bytes. Encryption and compression also\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3302,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/04\/20\/the-memory-storage-engine\/","url_meta":{"origin":3930,"position":4},"title":"The MEMORY storage engine","author":"Stewart Smith","date":"2013-04-20","format":false,"excerpt":"I recently wrote about\u00c2\u00a0Where are they now: MySQL Storage Engines\u00c2\u00a0and\u00c2\u00a0The MERGE storage engine: not dead, just resting\u00e2\u20ac\u00a6. or forgotten.\u00c2\u00a0Today, it's the turn of the MEMORY storage engine - otherwise known as HEAP. This is yet another piece of the MySQL server that sits largely unmaintained and unloved. The MySQL Manual\u2026","rel":"","context":"In &quot;drizzle&quot;","block_context":{"text":"drizzle","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/drizzle-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75,"url":"https:\/\/www.flamingspork.com\/blog\/2003\/03\/25\/poptop-pptp-and-the-vpn-issue\/","url_meta":{"origin":3930,"position":5},"title":"poptop, pptp and the VPN issue","author":"Stewart Smith","date":"2003-03-25","format":false,"excerpt":"VPNs are just plain annoying IPsec isn't remotely easy enough to configure yet (i.e. it's not easy point and click or at least point and type). PPTP is butchery and icky and all wrong and not really *that* secure, but, MS OSs have support for it, and there's a suppossedly\u2026","rel":"","context":"In &quot;work et al&quot;","block_context":{"text":"work et al","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/3930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=3930"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/3930\/revisions"}],"predecessor-version":[{"id":3931,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/3930\/revisions\/3931"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=3930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=3930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=3930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}