Skip to content
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

Guide on ADB commands #217

Open
nesquena opened this issue Sep 20, 2016 · 5 comments
Open

Guide on ADB commands #217

nesquena opened this issue Sep 20, 2016 · 5 comments

Comments

@rogerhu
Copy link
Member

rogerhu commented Oct 3, 2016

https://docs.google.com/presentation/d/1VJ988Hdq-EAwsXBdLti-FtkxFPA0ZgXKvIAU90n9kUI/edit

@aemxn
Copy link

aemxn commented Oct 19, 2016

If anyone could provide a one-line command for pulling data from a device, that would be the best :D

Normally, I would do as follows to pull a database file from app data:

$ adb shell
$ shell@user:/ $ run-as myapp.com.android
$ shell@user:/ $ cat databases/mydb.db > /mnt/sdcard/db.db
$ shell@user:/ $ exit
$ adb pull /mnt/sdcard/db.db .

@Hanif-abuvani
Copy link

If you are pulling your own app db then better to create the db on sdcard
only while creating the db in code, just give the path of sdcard, simple.

On 19-Oct-2016 13:02, "Aiman B" notifications@github.com wrote:

If anyone could provide a one-line command for pulling data from a device,
that would be the best :D

Normally, I would do as follows to pull a database file from app data:

$ adb shell
$ shell@user:/ $ run-as myapp.com.android
$ shell@user:/ $ cat databases/mydb.db > /mnt/sdcard/db.db
$ shell@user:/ $ exit
$ adb pull /mnt/sdcard/db.db .


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#217 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGDWx2CUFZWCCxAuhsywn5eejqNvFAaLks5q1ceegaJpZM4KB9Tw
.

@aemxn
Copy link

aemxn commented Oct 26, 2016

@Hanif-abuvani don't you think there will be a security issue with that approach? But it could be done by creating the db on debug mode only.

@Hanif-abuvani
Copy link

Yes, I am saying to go for this only at development time, while publishing
you can again change to conventional and more secure way. This is just a
way to skip a drudgery of pulling the db everytime via command.

On 26-Oct-2016 08:56, "Aiman B" notifications@github.com wrote:

@Hanif-abuvani https://github.com/Hanif-abuvani don't you think there
will be a security issue with that approach? But it could be done by
creating the db on debug mode only.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#217 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGDWx1umEW8Lnso9W-xVkC7WfH_RrQ9fks5q3shSgaJpZM4KB9Tw
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants