{"action":"created","issue":{"url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/30","labels_url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/30/comments","events_url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/30/events","html_url":"https://github.com/patcon/mission-impossible-android/issues/30","id":61259861,"number":30,"title":"Templates based MIA","user":{"login":"SchnWalter","id":2186426,"avatar_url":"https://avatars.githubusercontent.com/u/2186426?v=3","gravatar_id":"","url":"https://api.github.com/users/SchnWalter","html_url":"https://github.com/SchnWalter","followers_url":"https://api.github.com/users/SchnWalter/followers","following_url":"https://api.github.com/users/SchnWalter/following{/other_user}","gists_url":"https://api.github.com/users/SchnWalter/gists{/gist_id}","starred_url":"https://api.github.com/users/SchnWalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SchnWalter/subscriptions","organizations_url":"https://api.github.com/users/SchnWalter/orgs","repos_url":"https://api.github.com/users/SchnWalter/repos","events_url":"https://api.github.com/users/SchnWalter/events{/privacy}","received_events_url":"https://api.github.com/users/SchnWalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-13T21:42:48Z","updated_at":"2015-03-25T22:15:27Z","closed_at":null,"body":"I've created a [branch](https://github.com/SchnWalter/mission-impossible-android/tree/templates) on which I've started up change MIA (or however you want to call it) in order to make use of template files so that one can build various update.zip files depending on the needs...\r\n\r\nOn my opinion there should be a minimal template that should include some\r\n* Cal/CardDav for contancts/calendar.\r\n* email client\r\n* a web browser\r\n* security related apps\r\n\r\nFor this template would like to suggest DAVdroid, K-9 Mail and the stripped down version of FF (Fennec FDroid) -- *but I'm not sure how secure the apps are and whether or not there was a security audit on those apps*\r\n\r\nAm I missing something that someone would want on a minimal \"working\" and \"secure\" system? (maybe maps?!? - after all it's a smartphone)\r\n\r\nThen have a default template which might look more or less like the current list of apps.\r\n\r\nAnd maybe also implement a way to remove apps out of the original CM build. What do you think?\r\n\r\nAnd for the workflow of using these templates I was thinking something on the lines of [weevee](https://github.com/jedi4ever/veewee) (but in python3)\r\n\r\nBasically instead of the current `make` workflow you would have a tool that you could run anywhere onto your system and you would do something like this:\r\n```\r\nmia definition --template=minimal my-tablet-image\r\n# configure the settings.ini\r\nmia build my-tablet-image\r\nmia install my-tablet-image\r\n```\r\nWhere `mia` would be the name of the script and the first parameter the command name.\r\n\r\nThe first step would generate a definition folder which would basically be a copy of the template that you could then configure to your liking or just go with the defaults.\r\nAfter the configurations were made you could then build/create a update.zip file. and the last one would push that file to your attached device.\r\n\r\nThen in the same folder you could work on a template for a different device\r\n```\r\nmia definition --template=default my-nexus-phone\r\nmia build my-nexus-phone\r\nmia install my-nexus-phone\r\n```\r\nAnd then you could just archive the definitions and keep them for the next time you want to reset your phone/tablet. Or just delete it and use a new fresh template.\r\n\r\nSomeone would need to compile a list of trustworthy apps... and... I'm opting out of this! :D\r\n\r\nI've already played with command line arguments and I'm confident I can make the scripts, just need some suggestions. And I'm going to ditch Bash... and use it only where it is really necessary."},"comment":{"url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/comments/86234618","html_url":"https://github.com/patcon/mission-impossible-android/issues/30#issuecomment-86234618","issue_url":"https://api.github.com/repos/patcon/mission-impossible-android/issues/30","id":86234618,"user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T22:15:27Z","updated_at":"2015-03-25T22:15:27Z","body":"Just to make sure you're not waiting on me, don't forget to submit a PR when you're ready to submit. As I said, the sooner the better -- would be great to get something in from this large task, feature-complete or not, and perhaps preferably not :)\r\n\r\nThanks for your enthusiasm on this Schneider!"}}