{"id":1031,"date":"2013-01-20T23:10:39","date_gmt":"2013-01-21T05:10:39","guid":{"rendered":"http:\/\/www.threshold-zero.com\/cblog\/?p=1031"},"modified":"2016-02-02T10:32:48","modified_gmt":"2016-02-02T16:32:48","slug":"startup-script-for-cm9-on-the-droid-incredible-2","status":"publish","type":"post","link":"https:\/\/www.threshold-zero.com\/cblog\/2013\/01\/startup-script-for-cm9-on-the-droid-incredible-2\/","title":{"rendered":"Startup Script for CM9 on the Droid Incredible 2"},"content":{"rendered":"<p>There&#8217;s a small bug when running Cyanogenmod 9 (Android 4.0.4) on the Droid Incredible 2 &#8212; every time you reboot, you have to run the command &#8220;killall drmserver&#8221; as root, or you won&#8217;t be able to install or upgrade any applications.<\/p>\n<p>Now, why this isn&#8217;t baked into the OS, I don&#8217;t know, but in lieu of having to start a terminal every time you start up your phone and run this command, you can actually create a startup script.<\/p>\n<p>It&#8217;s never that easy on linux (seems to be different on every distro), but the way it seems to be done on CM9 is:<\/p>\n<p>1) First, create the directory &#8216;\/data\/local\/userinit.d&#8217; with the following command:<\/p>\n<blockquote>\n<pre><strong>mkdir -p \/data\/local\/userinit.d<\/strong><\/pre>\n<\/blockquote>\n<p>2) Then, create your script in this directory and make sure and make it executable (chmod 755, at least) &#8212; I had something like:<\/p>\n<blockquote>\n<pre><strong>#!\/system\/bin\/sh\n\nkillall drmserver<\/strong><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a small bug when running Cyanogenmod 9 (Android 4.0.4) on the Droid Incredible 2 &#8212; every time you reboot, you have to run the command &#8220;killall drmserver&#8221; as root, or you won&#8217;t be able to install or upgrade any applications. Now, why this isn&#8217;t baked into the OS, I don&#8217;t know, but in lieu [&hellip;]<\/p>\n","protected":false},"author":4,"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":[105,11],"tags":[],"class_list":["post-1031","post","type-post","status-publish","format-standard","hentry","category-android","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2ZUZG-gD","_links":{"self":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/comments?post=1031"}],"version-history":[{"count":1,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":2071,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1031\/revisions\/2071"}],"wp:attachment":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}