New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Intent to trigger restore #40
Comments
i have considered having this for some time, and my first thought would be to do it via intents. a security issue to consider here (if we go with intents) is how best to set up permissions for the broadcastreceiver. it needs to be permissive enough to be actually useable, but it probably wouldn't be a good idea to just let everybody (every other app, that is) send an intent to e.g. restore all apps. |
It seems like receiving intent can be conditioned on having some permissions, see: http://developer.android.com/reference/android/content/BroadcastReceiver.html#Security Quoting: To enforce a permission when receiving, you supply a non-null permission when registering your receiver -- I'm not sure how to acquire such a permission from 'am broadcast' though... maybe being root is sufficient. /Simon |
Hi, is there any update on this? |
I want to script re-installing my phone as much as possible, and one of the manual steps right now is starting oandbackup and selecting the apps to restore and clicking go.
In email, you suggested that one approach would be to use Intents to trigger this. I think this seems like a good approach: have an Intent to trigger restore of all apps in the configured path.
Then my script to automate re-install of my phone could be something like:
adb install dk.jens.backup-1.apk
adb push oandbackups /sdcard/oandbackups
adb shell am ... # trigger intent here
This issue is to make it easier to track progress around this. :-)
The text was updated successfully, but these errors were encountered: