Adb help please - Android

Trying to pull all of my system/app directory to my pc what's the proper command to.get all at once.
Sent from my PG86100 using Tapatalk

Code:
adb pull /system/app/
That will pull all of the apk files from /system/app and place them in your current directory. If you want to direct them somewhere else, here's an example:
Code:
#Windows
adb pull /system/app/ c:\android\apps\
#Linux & Mac
adb pull /system/app ~/Downloads/apps/

Thank u I'm on tapatalk or I would hit the button.
Sent from my PG86100 using Tapatalk

MongooseHelix said:
Code:
adb pull /system/app/
That will pull all of the apk files from /system/app and place them in your current directory. If you want to direct them somewhere else, here's an example:
Code:
#Windows
adb pull /system/app/ c:\android\apps\
#Linux & Mac
adb pull /system/app ~/Downloads/apps/
Click to expand...
Click to collapse
Does moving installed apps require root???

ri123 said:
Does moving installed apps require root???
Click to expand...
Click to collapse
Ofcourse you need rooted phone..
Only rooted phone can mount system and data partition as READ-WRITE
#Windows
This is for full system folder
adb pull /system c:\android\system (blue colour to create folder on desktop)
This is for full data folder (which include all installed apps and your personal data too)
adb pull /data c:\android\data (blue colour to create folder on desktop)
Etc....

Related

[Q] Framework-res Not Recognised

So this is my issue.
I've not got a typical problem with how to edit the apk or what not, but my modified frameworks changes aren't taking effect on the device.
I've used AutoAPKTool to decompile, do my changes then compile and ADB to transfer the apk across to my System/Framework folder, but the changes aren't showing on the device, for instance if I change an image.
This is what I'm using to transfer via ADB,
"su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /storage/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start"
I've tried doing a normal "adb push" function but each time I get "Permission Denied" dispite having SU privelages and yes I'm rooted. I've google every possible permission problem but no luck.
I'm using the Archos 70, I hope this is the right forum and I appreciate all help.
Regards.
Anyone please?
You have to put your updated image in the _custom_res folder with the correct folder structure.
HTH
Did you mount system as read/write before copying?
Sent from my HTC Glacier using XDA Premium App

[Q] Trying to replace a system apk

Hi,
I'm attempting to replace Email.apk on my miui rom. This is the method I am using:
Code:
adb push Email.apk /sdcard/
adb shell
su
rm /system/app/Email.apk
rm /system/app/Email.odex
mount -o rw,remount /dev/block/mmcblk0p9 /system
cp /sdcard/Email.apk /system/app
reboot
When the phone has rebooted, my changes do not take affect. To check, I pulled the /system/app/Email.apk back, and found it to be the original version.
Can anyone tell me what I'm doing wrong here?
Thanks,
Have figured this out...
adb appears to send some kind of cached version over. Renaming the file before transferring forced adb to use the correct file, and all is well.
jimhaddon said:
Have figured this out...
adb appears to send some kind of cached version over. Renaming the file before transferring forced adb to use the correct file, and all is well.
Click to expand...
Click to collapse
How? I like to know too, guide step by step....thanks
You mean renaming the original file first to any name then copy the moded file with the original name ?
If that what u mean , so I better to delete the original one first then but enstead my moded file . Is that right ?
Sent from my GT-I9100 using XDA App
Just use something like root explorer, no need for adb...
Joey2o11 said:
Just use something like root explorer, no need for adb...
Click to expand...
Click to collapse
I tried to use root explorer to change phone.apk, it didnt work.. i changed the file but it kept on crashing all the time ...
Sent from my GT-I9100 using XDA App
hielo_te said:
I tried to use root explorer to change phone.apk, it didnt work.. i changed the file but it kept on crashing all the time ...
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
You'll get lots of FCs until you reboot the phone then it should be fine.

[Q] [q]about rebooting my phone

I delete framework-res apk in system/framework with root explorer,and cannot turn on my phone (s5830)How can I turn on my phone again?(I have a backup up off the apk)
Hei123 said:
I delete framework-res apk in system/framework with root explorer,and cannot turn on my phone (s5830)How can I turn on my phone again?(I have a backup up off the apk)
Click to expand...
Click to collapse
you need is adb and command prompt
adb remount
adb push framework-res.apk /system/framework
optional ones
adb shell chmod 644 /system/framework/framework-res.apk
adb shell chown 0 /system/framework/framework-res.apk
adb shell chgrp 0 /system/framework/framework-res.apk
Just reflash the rom from recovery!
Without wiping data!
Sent from my GT-S5830 using xda premium
well I'm with Amit here. You must have the original ROM's flashable zip file you were currently using?
Simply extract it. Get to PATH_TO_CURRENT_LOCATION\system\framework\framework-res.apk after extracting it. Get the file and push it via adb. Easy as 123.
Reflashing again restores all the system files...? Happened with me... N I use to flash again! Lol Never tried Amits Method
Sent from my GT-S5830 using xda premium
Rushyang said:
well I'm with Amit here. You must have the original ROM's flashable zip file you were currently using?
Simply extract it. Get to PATH_TO_CURRENT_LOCATION\system\framework\framework-res.apk after extracting it. Get the file and push it via adb. Easy as 123.
Click to expand...
Click to collapse
I have only the apk ,and what is adb,and how to push it
Hei123 said:
I have only the apk ,and what is adb,and how to push it
Click to expand...
Click to collapse
!!!! if that the case, just reflash ur rom as stated by pvrx. SOLVED!

[Q] Is there an easier way to move files?

Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
pmterp said:
Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
Click to expand...
Click to collapse
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
NilsP said:
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
Click to expand...
Click to collapse
Or I think he can push with adb. I don't know the exact commands so if anyone can help with the commands...
Sent from my ADR6425LVW using Tapatalk
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
NilsP said:
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
Click to expand...
Click to collapse
Probably need to adb remount first. Here's my suggestion, make a batch file/script something like this:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
MrSmith317 said:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
Click to expand...
Click to collapse
That works great. Thanks everyone. Now, what about the reverse? Is there a way to get the files (default wallpapers, apks, etc.) pushed to my computer? I tried running the same script and reversing the file and destination but that did not work.
Edit: Never mind, found it. adb pull
I haven't used adb commands since I was rooting my eris, thanks guys.

Replacing SystemUI.apk in ADB

So I flashed the wrong .zip and now SystemUI.apk is force-closing. Rather than reflash the ROM I'm just going to replace SystemUI.apk using adb (I happen to have the ROM unzipped on my laptop), but want to make sure I have the procedure right.
Reboot to recovery
Then
adb shell
su
rm system/app/SystemUI.apk
exit
And then to push the SystemUI.apk
just
adb push SystemUI.apk system/app/SystemUI.apk
reboot
Do I need to mount system as writable before all of this?
Yes I believe you do
You could put the system.apk into a flashable zip by itself and flash that tho
Less room for error
Sent from my ADR6425LVW using Tapatalk 2
superchilpil said:
Yes I believe you do
You could put the system.apk into a flashable zip by itself and flash that tho
Less room for error
Sent from my ADR6425LVW using Tapatalk 2
Click to expand...
Click to collapse
Thanks.
Now I'm wondering if the permissions will be all mucked up if I just push the file. Is there a way to set permissions in adb?
never mind, got it, chmod 644 system/app/SystemUI.apk
Worked too!
tekhna said:
Thanks.
Now I'm wondering if the permissions will be all mucked up if I just push the file. Is there a way to set permissions in adb?
Click to expand...
Click to collapse
There is, I can't remember the command off the top of my head
Sent from my ADR6425LVW using Tapatalk 2
Adb remount will mount as rrw and you don't have to set permissions the folder already has it. You can also just use a root file explorer app to place it in their
Sent from my ADR6425LVW using XDA
tekhna said:
So I flashed the wrong .zip and now SystemUI.apk is force-closing. Rather than reflash the ROM I'm just going to replace SystemUI.apk using adb (I happen to have the ROM unzipped on my laptop), but want to make sure I have the procedure right.
Reboot to recovery
Then
adb shell
su
rm system/app/SystemUI.apk
exit
And then to push the SystemUI.apk
just
adb push SystemUI.apk system/app/SystemUI.apk
reboot
Do I need to mount system as writable before all of this?
Click to expand...
Click to collapse
hi, i have the same problem. i flashed the wrong zip from here http://forum.xda-developers.com/showthread.php?t=2526039&page=2 and now when i put the usb cable into the pc to backup from nexus root toolkit, it says that driver are not installed, and when i make the test for the drivers systemui crash. so i cant go back to stock rom or restore backup. any ideas? please help me

Categories

Resources