DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 10 of 10

Thread: Failing at adb

  1. Senior Droid
    jtydroid's Avatar
    Member #
    62421
    Join Date
    Apr 2010
    Location
    Milwaukee, WI
    Posts
    123
    Phone
    Motorolla Droid
    #1

    Failing at adb

    Hello all,

    I'm trying to do something that, I think, should be rather easy. Use adb to reskin the powercontrol widget.

    I pulled the /system directory and unpacked the Settings.apk package. I did this by changing the name to .zip and unzipping on windows.

    I then edited several of the images and rezipped the folder. I renamed the folder to be Settings.apk and then (because windows loves me), gave User permissions on the file so it wasn't 'locked'

    Then I used adb to push the file back to the phone and rebooted it.

    When the phone came back up, the widget was broken and trying to open the widgets menu from a long-press FC'd helixlauncher.

    Not sure what I did wrong, any thoughts would be valued.

    If I'm a complete numbskull and have done something ridiculously wrong, I shall endure your lashings.
  2.  
     
     
     
  3. Theme Developer
    icculusX's Avatar
    Member #
    36395
    Join Date
    Feb 2010
    Location
    The Moon
    Posts
    2,541
    Liked
    2 times
    Phone
    RAZR!
    DroidForums.net Theme Developer
    Premium Member
    #2
    Hey again man, try to push the files back while in recovery mode. Youll want to go to 'partitions' or something like that in clockwork to mount the /system so you can write to it... also I highly suggest you download 7zip to edit the APKs cause then you dont have to change them to ZIP - sometimes this brings issues....
  4. Senior Droid
    jtydroid's Avatar
    Member #
    62421
    Join Date
    Apr 2010
    Location
    Milwaukee, WI
    Posts
    123
    Phone
    Motorolla Droid
    #3
    Quote Originally Posted by icculusX View Post
    Hey again man, try to push the files back while in recovery mode. Youll want to go to 'partitions' or something like that in clockwork to mount the /system so you can write to it... also I highly suggest you download 7zip to edit the APKs cause then you dont have to change them to ZIP - sometimes this brings issues....
    Oh yeah, I did forget to mention that I mounted the fs before pushing, and then again after.

    I will get 7zip for editing the apk's, but I'm a bit confused by the 'partitions' portion of your directions. Are you just reminding me to mount, because I used adb mount to do it....

    And, just to confirm, I should first adb reboot recovery before trying to push back onto the phone?
  5. Master Droid
    ashkev843's Avatar
    Member #
    7743
    Join Date
    Nov 2009
    Posts
    321
    Phone
    Enter Current Phone Here
    #4
    Quote Originally Posted by jtydroid View Post
    Quote Originally Posted by icculusX View Post
    Hey again man, try to push the files back while in recovery mode. Youll want to go to 'partitions' or something like that in clockwork to mount the /system so you can write to it... also I highly suggest you download 7zip to edit the APKs cause then you dont have to change them to ZIP - sometimes this brings issues....
    Oh yeah, I did forget to mention that I mounted the fs before pushing, and then again after.

    I will get 7zip for editing the apk's, but I'm a bit confused by the 'partitions' portion of your directions. Are you just reminding me to mount, because I used adb mount to do it....

    And, just to confirm, I should first adb reboot recovery before trying to push back onto the phone?
    No your phone has to be in recovery mode. Power it off and then hold the x button on the keyboard and the power button until the M logo comes up. Then if you are in clockwork go under the partitions menu and chose mount system. Then connect your phone to your cpu and run the adb push command. then click on your phone again to unmount the system and the reboot the phone and see if that works.....if not you probably have the wrong compression on the .apk
  6. Theme Developer
    928Droid's Avatar
    Member #
    8566
    Join Date
    Nov 2009
    Location
    Western North Carolina Mountains
    Posts
    3,753
    Phone
    Motor Droid & Droid Eris
    DroidForums.net Theme Developer
    Premium Member
    #5
    Moving to Hacking Help area for better assistance..

    HANG ON!!
  7. Senior Droid
    jtydroid's Avatar
    Member #
    62421
    Join Date
    Apr 2010
    Location
    Milwaukee, WI
    Posts
    123
    Phone
    Motorolla Droid
    #6
    Ok, well... progress of a sort.

    I was able to push my updated Settings.apk to the droid and reboot without error... but no changes showed.

    When I use 7zip to recompress the apk, I can name it apk but I have to choose 7zip, zip or bzip as the compression format. Does that part matter?
  8. Senior Droid
    jtydroid's Avatar
    Member #
    62421
    Join Date
    Apr 2010
    Location
    Milwaukee, WI
    Posts
    123
    Phone
    Motorolla Droid
    #7
    This is just plain baffling, I know I must be doing SOMETHING wrong because even if I just pull the apk, decompress it, recompress it, then push it back I still get FC's on the launcher.

    Does anyone have any inkling what I might be doing wrong?

    Sorry to be so dense, I'd just really like to further customize the look and feel like I've hit a dead end.
    Last edited by jtydroid; 04-29-2010 at 09:50 AM.
  9. Droid Ninja
    cupfulloflol's Avatar
    Member #
    12086
    Join Date
    Dec 2009
    Posts
    1,898
    Liked
    65 times
    Phone
    Galaxy Nexus
    #8
    I never actually decompress the apk. If you open it with 7zip, you can open the .png files or whatever from within it, then push the modified ones back. Meaning you never actually decompress it, technically. You then can push it back and it should work.

    I assume that is your problem you are trying to recompress the files. The files actually aren't compressed. They use zero, or nearly zero, compression (store in 7zip). Using anything higher than that may have confused the phone, and caused the errors you experienced.
  10. Senior Droid
    jtydroid's Avatar
    Member #
    62421
    Join Date
    Apr 2010
    Location
    Milwaukee, WI
    Posts
    123
    Phone
    Motorolla Droid
    #9
    Quote Originally Posted by cupfulloflol View Post
    I never actually decompress the apk. If you open it with 7zip, you can open the .png files or whatever from within it, then push the modified ones back. Meaning you never actually decompress it, technically. You then can push it back and it should work.

    I assume that is your problem you are trying to recompress the files. The files actually aren't compressed. They use zero, or nearly zero, compression (store in 7zip). Using anything higher than that may have confused the phone, and caused the errors you experienced.
    This is fantastic news... except that I can't seem to save files back into the apk. I open them just fine, but when I try to save, it says the location can't be found. Is it a problem with Windows 7?

    If I did have to decompress/recompress should I use 7z format then? I can select the compression rate, but the names don't really mean much.

    EDIT: Never mind, i found a way! Thanks so much, this works and I am a happy camper. Now to learn about signing.
    Last edited by jtydroid; 04-29-2010 at 07:34 PM.
  11. Droid Ninja
    cupfulloflol's Avatar
    Member #
    12086
    Join Date
    Dec 2009
    Posts
    1,898
    Liked
    65 times
    Phone
    Galaxy Nexus
    #10
    Glad you got it working. I don't use 7zip on my W7 PC, so I can't comment on if would be the problem. I would assume it is something simple like that.

    Signing apps is pretty easy, http://www.droidforums.net/forum/dro...ding-them.html <-- that thread just got bumped recently. I use the first method, actually if you go to that full post [HOW TO] Manuals for creating a theme - xda-developers <-- there, there is much more information.

    Anyhow, good luck, and if you get stuck I am sure someone here can set you straight.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. 2 apps failing install
    By beneharris in forum Rescue Squad Help
    Replies: 7
    Last Post: 04-07-2010, 03:09 PM
  2. ROM Manager / BB ROM Install Failing
    By Vulcan1600 in forum Rescue Squad Help
    Replies: 5
    Last Post: 03-26-2010, 06:43 PM
  3. Wireless Tether FAILING
    By dredge in forum Android Hacks and Help
    Replies: 6
    Last Post: 03-11-2010, 08:31 PM
  4. failing email
    By jlghertner in forum Motorola Droid
    Replies: 1
    Last Post: 02-07-2010, 03:38 PM
  5. Bluetooth failing to start up
    By Lennyd in forum Android Tech Support
    Replies: 1
    Last Post: 11-28-2009, 06:48 PM

Search tags for this page

adb hang up

,

adb hanging

,

adb hangs on push

,

and adb hang up

,

can't push file back adb

,

hacking win usb fie for nexus 7 adb on w7 pc

Click on a term to search our site for related topics.
Find us on Google+