Git Product home page Git Product logo

android-system-core's People

Contributors

andre-rosa avatar bdcgoogle avatar bradfitz avatar cco3 avatar colincross avatar cwhuang avatar digit-android avatar ducrohet avatar egnor avatar enh-google avatar fadden avatar jackpal avatar jham avatar jmtrivi avatar joneschrisg avatar jserv avatar kruton avatar midodd avatar mikeandroid avatar mirabilos avatar mmc28a avatar moistmoist avatar nickkral avatar oddcowboy avatar pixelflinger avatar ralf-at-android avatar reed-at-google avatar saurik avatar swetland avatar taleks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-system-core's Issues

a simple example

Hi,

can you give me please a simple example, how i can use jadb.jar service?
i want to send a simple command like "pm list packages"

thanks

Getting the state of a device

When getting the list of devices (with JadbConnection.getDevices()), ADB closes the connection (as per protocol), so the next call (to JadbDevice.getState()), fails with

se.vidstige.jadb.JadbException: command failed: closed

    at se.vidstige.jadb.Transport.verifyResponse(Transport.java:39)
    at se.vidstige.jadb.JadbDevice.getState(JadbDevice.java:46)

That is also true with a device acquired with JadbConnection.getAnyDevice().
There doesn't seem to be any other way getting hold of a device.

What gives? Are there circumstances in which JadbDevice.getState() works?

PS: Thanks for this library. Installing packages work, so it does help quite a lot.

Getting permission error when pulling from device

	//String path = "/data/user/0/com.package/files/";
           String path = "/data/user/0/com.package/files/";
	String file = "TEST2.txt";

	JadbConnection jadb = new JadbConnection();
	JadbDevice device = jadb.getDevices().get(0);

	device.executeShell("run-as", "com.package");
	try {
		device.pull(new RemoteFile(path), new File(file));
	} catch (Exception e) {
                    //Keep getting a Permission denied exception
		System.err.println("Error while pulling: " + e.getMessage());
	}

I keep getting Permission denied error when trying to pull a file from the device.
Do you have any ideas on why this is happening and how to solve it?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.