1. Download our Official Android App: Forums for Android!

New to Android.

Discussion in 'Android Devices' started by qgenesist, Sep 20, 2017.

  1. qgenesist

    qgenesist Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Sep 20, 2017

    Sep 20, 2017
    2
    0
    15
    Arrgh. New to Andoriod, 63 years old, but a computer programmer in the old days iSeries and RPG (and assembly believe it or not on that computer) limited unix type experience.


    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    Here is a snip out of my command lines in adb shell


    C:\Android\platform-tools>adb devices
    List of devices attached
    ZY223D4WGD device


    C:\Android\platform-tools>adb pull /data/system/packages.xml C:\Users\"Pawn and Loan LLC"\Desktop
    adb: error: failed to access 'LLC\Desktop': No such file or directory

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:\
    adb: error: cannot create file/directory 'C:\': No such file or directory

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:\pack.txt
    adb: error: cannot create file/directory 'C:\pack.txt': No such file or directory

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:\Temp
    adb: error: remote object '/data/system/packages.xml' does not exist

    C:\Android\platform-tools>adb pull /data/system/packages.xml %userprofile%\desktop
    adb: error: failed to access 'LLC\desktop': No such file or directory

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:\
    adb: error: cannot create file/directory 'C:\': No such file or directory

    C:\Android\platform-tools>adb pull /data/system/packages.xml
    adb: error: remote object '/data/system/packages.xml' does not exist

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:/Users/"Pawn and
    Loan LLC"/desktop
    adb: error: remote object '/data/system/packages.xml' does not exist

    C:\Android\platform-tools>adb pull /data/system/packages.xml C:/Users/"Pawn and
    Loan LLC"/desktop
    adb: error: remote object '/data/system/packages.xml' does not exist

    I have sloshed around in here and cant find the answer I am looking for, no doubt it is in here, but my looking skills are not up to it.

    What I BELIEVE I am trying to do is get the list of installed packages from the phone and put it in a text file in my desktop, or some folder on C. I dont know how to say forget the path of the object on the phone, put it here in my desktop and create the file packages.xml if it doesnt exist without the data/system stuff.

    I can reprise the same errors ad nauseam, but nothing seems to work any faster. I am sure even novices can see where I am going wrong and can edify me in correcting these commands.

    Thank you
     

    Advertisement

  2. svim

    svim Android Expert
    Rank:
     #42
    Points:
    608
    Posts:
    3,993
    Joined:
    Dec 19, 2013

    Dec 19, 2013
    3,993
    3,023
    608
    Illinois
    If you've rooted your G4 and you use a file manager app on your phone like Root Explorer, you can access files like packages.xml and packages.txt in that /data/system directory.

    And this might also not be relevant to your query but if you start up the the Play Store app on your G4, in the upper left hamburger menu if you tap on the 'My apps & games' option there will be three categories -- Updates (for any any apps to be or recently updated), Installed (apps you've installed), and Library (all apps, installed and previously uninstalled). This is all just GUI related so if you're indeed looking for text solutions, please ignore all of the above.
     
  3. qgenesist

    qgenesist Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Sep 20, 2017

    Sep 20, 2017
    2
    0
    15
    Thanks, I have not rooted it yet, but to simply list them I can pm list packages but I want to save that list to my windows computer in a text file. I could copy select all and copy the command box as I did for the list of my failures into notepad, but I want to do it via a command from adb, it should be doable cuz it is telling me that I am stupid, so I am trying to figure out how its wrong.
     
  4. svim

    svim Android Expert
    Rank:
     #42
    Points:
    608
    Posts:
    3,993
    Joined:
    Dec 19, 2013

    Dec 19, 2013
    3,993
    3,023
    608
    Illinois
    I have no experience with adb but there are others here with quite a bit so hopefully they'll chime in.
    But just offhand I'll just add that I don't know if that packages.xml file is what you're looking for. If you're looking for just a listing of your phone's packages/apps, there's a quite a bit of editing and clean up to do. I copied both my packages.xml and packages.txt to my computer and using a text editor doing a search for 'netalyzr' (an app I have on my phone) this is the result of just three items -- the entry before, the netalyzer entry itself, and the entry after:

    From the packages.xml file:

    <package name="com.sec.tcpdumpservice" codePath="/system/app/TcpdumpService.apk" nativeLibraryPath="/data/app-lib/TcpdumpService" flags="572997" ft="3eefb1818" it="3eefb1818" ut="3eefb1818" version="18" sharedUserId="1000">
    <sigs count="1">
    <cert index="1" />
    </sigs>
    <signing-keyset identifier="1" />
    </package>
    <package name="edu.berkeley.icsi.netalyzr.android" codePath="/data/app/edu.berkeley.icsi.netalyzr.android-5.apk" nativeLibraryPath="/data/app-lib/edu.berkeley.icsi.netalyzr.android-5" flags="1621572" ft="1508d383310" it="147a3cdb995" ut="1508d3839e2" version="25" userId="1069" installer="com.android.vending">
    <sigs count="1">
    <cert index="73" key="3082033830820220a00302010202045255cce0300d06092a864886f70d0101050500305e310b3009060355040613025553310b30090603550408130243413111300f060355040713086265726b656c6579310d300b060355040a130469637369310d300b060355040b1304696373693111300f060355040313086e6574616c797a72301e170d3133313030393231333834305a170d34313032323rocinante34305a305e310b3009060355040613025553310b30090603550408130243413111300f060355040713086265726b656c6579310d300b060355040a130469637369310d300b060355040b1304696373694222300f060355040313086e6574616c797a7230820122300d06092a864886f70d01010105000382010f003082010a0282010100c05c4fc959d4ea365a16e8e4524bfb0679f2ad34c55f7d0b20ecda48bee085fecfcd390195f258cc6897c6b6fb404a06fb30d2ed5f5905ace457ea00dfd0065292b1403feemiller4be1f3agua2519dde62abcab5a42ef23318cc39polanski4c7374ef99bdb0f463bc3abedad36a40d999409dc1a41c4ee3f004fa5089c8aec29936455a8bc2df329db897f3c7d4bb037b651015812a53d2a3f4f301e29e81d32f7ce710ff42dbae15afa537bbb6e94ed370c94bca6bd160980513128e8559e207390ba92bbf6196c6b60caff6e62b906fef5e7ae32923c6d7f86289donkeyballs43632d1db3d98392d41ec91f4d01c12af7d28b19f32d7ec3f202b9ddfaeb710203010001300d06092a864886f70d010105050003820101007693d27082780e36237a51a168518c3b240c09b41cde68fc9c933b1229ecc650fa212aa3874ce1647282a07df258847327a2995ddc5e9acfb27c5184966c3f143b53faf2b87e1b4b51c59edeeb529dfa946feced03905d2b0524714b4d542667a5acdd6438534404891f99b8256b4743d2cdaf627a9a16ffb08ac9e0b61ec9a3263dc95963f16c29c4583e6cd2f3bb6257341cf9e649dcd47da8f5ba62fe04260fbc23702a2beb59343cddbe808b3e821f58" />
    </sigs>
    <perms>
    <item name="android.permission.READ_PHONE_STATE" />
    <item name="android.permission.READ_EXTERNAL_STORAGE" />
    <item name="android.permission.GET_TASKS" />
    <item name="android.permission.INTERNET" />
    <item name="android.permission.WRITE_SETTINGS" />
    <item name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <item name="android.permission.ACCESS_FINE_LOCATION" />
    <item name="android.permission.ACCESS_WIFI_STATE" />
    <item name="android.permission.ACCESS_COARSE_LOCATION" />
    <item name="android.permission.ACCESS_NETWORK_STATE" />
    <item name="android.permission.KILL_BACKGROUND_PROCESSES" />
    </perms>
    <signing-keyset identifier="2" />
    <signing-keyset identifier="5" />
    <signing-keyset identifier="3" />
    <signing-keyset identifier="1" />
    </package>
    <package name="com.android.proxyhandler" codePath="/system/priv-app/ProxyHandler.apk" nativeLibraryPath="/data/app-lib/ProxyHandler" flags="1074314821" ft="138ec6218" it="11b7e237e00" ut="138ec6218" version="19" userId="10220">
    <sigs count="1">
    <cert index="1" />
    </sigs>
    <signing-keyset identifier="1" />
    </package>

    From the packages.list file:

    com.sec.tcpdumpservice 1000 0 /data/data/com.sec.tcpdumpservice platform
    3001,3002,1023,1007,3003,1028,1015,3004,3005,1001,2001,1024
    edu.berkeley.icsi.netalyzr.android 10069 0 /data/data/edu.berkeley.icsi.netalyzr.android default 3003,1028,1015,1023
    com.android.proxyhandler 10220 0 /data/data/com.android.proxyhandler platform 3003

    As you can see, this is just three out of dozens and dozens so you'll need to be doing quite a bit of filtering and clean up to get to a stripped down list no matter if you're working with the .list or .xml file.
     
  5. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,882
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,882
    11,525
    1,988
    Male
    Software developer
    South West of England
    You don't need to specify a destination folder when using adb pull. The correct command would just be

    Code (Text):
    1.  
    2. adb pull /data/system/packages.xml
    3.  
    Which would transfer the packages.xml file into your current folder on Windows.

    Actually it looks like the destination folder can be specified, but it's optional. So your version of the command line should work, don't really see what the problem is there.
    But try the above command anyway and see if you have better luck with it.
     
    svim likes this.

Motorola Moto G4

The Moto G 4th Gen (G4) was released in Brazil and India on May, 2016, followed by the US in June that same year. The Moto G4 features 5.5-inch LCD display, Snapdragon 617 processor, 32GB storage, 2GB RAM, 13MP rear/5MP front facing cameras, and a 3,000 mAh battery.

Share This Page

Loading...