[How To]ADB&ANDROID - HD Mini Android Development

Hi all,
Today i will tell you about ADB.
1. What's ADB?
ADB (Android Debug Bridge) is a versatile COMMAND LINE TOOL that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:
* A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
*A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
*A daemon, which runs as a background process on each emulator or device instance.
2. How Can i Get it?
For Windows...You can Download the Attachment...For Other OS you Have to Install SDK and After go to <SDK>\platform-tools to get the same file of Windows but now for Linux or Mac!
NOTE: SOMETIMES ADB DON'T WORK TO BE SURE IT WORK INPUT IN CMD adb devices (no caps) ---> If After "List of..." You Get a Code with Device is all Ok.
0123456789ABCDEF device
But if You don't Get the code you have to install HTC SYNC for Android....
And After Retry with "adb devices" and if you get the code you can Use Adb..
In my Opinion you can Put the folder in C:\Android and made a link on Desktop...
3. Command to Use ADB and Their Function:
Android Debug Bridge version 1.0.26
(**MOST USED**)
Code:
adb push <local> <remote> - copy file/dir to device
Code:
adb pull <remote> <local> - copy file/dir from device
Code:
adb sync [ <directory> ] - copy host->device only if changed (see 'adb help all')
Code:
adb shell - run remote shell interactively
Code:
adb shell <command> - run remote shell command
Code:
adb emu <command> - run emulator console command
Code:
adb logcat [ <filter-spec> ] - View device log
Code:
adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
Code:
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
Code:
adb version - show version num
Code:
adb -w - wipe the data partition
Code:
adb -d - flash the data partition
Code:
adb wait-for-device - block until device is online
Code:
adb start-server - ensure that there is a server running
Code:
adb kill-server - kill the server if it is running
Code:
adb get-state - prints: offline | bootloader | device
Code:
adb get-product - prints: <product-id>
Code:
adb get-serialno - prints: <serial-number>
Code:
adb status-window - continuously print device status for a specified device
Code:
adb remount - remounts the /system partition on the device read-write
If You Need Help Ask Here.
I Hope This Thread will Be Usefull...

Related

ADB

ok.
i run adb through cmd.
but it doesn't work, i can't enter any commands.
i'm a noob.
sorry.
-Ernest.
Open your cmd window and just run adb without any arguments. It will give you a list of possible arguments and their usages. The most important two would be adb install and adb shell. With adb install, you can install a package, and with adb shell you get an interactive shell access to Dream's filesystem. Here is a part of the help listing from sdk 1.5-pre's adb:
Code:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> <local> - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
when i try to run a command it says.
"'adb' is not recognized as an internal or external command, operable program or batch file"
Whatever folder you put adb in is not in your system's PATH. In order to run a program not in your current working directory without specifying its absolute location, that location has to be one of the ones specified in the PATH. Let's say for example you put adb.exe and adbwinapi.dll in c:\ When you type cmd in XP, by default it will open a prompt at c:\Documents and Settings\%username%\. If you now type adb, the os will look for a file called adb.exe or adb.bat or adb.com in the Documents and Settings folder. Since you placed the file in a different folder, it will give you an error. You have two options:
A. Type c:\adb.exe every time you want to run adb
B. Add c:\ (or whatever directory adb is in) to the PATH. Here is a quick tut on how to do that.
C. Move adb.exe and adbwinapi.dll to c:\Documents and Settings\%username%\
To a programmer or experienced computer user, A would be a stupid method, B would be the proper method, and C would be a hacky or dirty method.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Admin>"C:\Documents and Settings\Admin\Desktop\G1 Deve
lopment\android-sdk-windows-1.0_r2\tools\adb.exe"
Android Debug Bridge version 1.0.20
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> <local> - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] <file> - push this package file to the device and instal
l it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-product - prints: <product-id>
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PDP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be u
pdated.
- If it is "system" or "data", only the corresponding partition
is updated.
C:\Documents and Settings\Admin>adb shell
'adb' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Admin>
this is what i get.
The first time you executed it with the full path, which is correct. However, the second time you didn't. If you are going to execute it with the full path then you have to do it every single time. Alternately, type cd c:\Documents and Settings\Admin\Desktop\android-sdk-windows-1.0_r2\tools\ then you can do whatever you want without specifying the full path (because the executable is now in your working directory)
i specified the path.
in Enviorment Variables.
but it doesn't work in cmd.
m00b3rt said:
i specified the path.
in Enviorment Variables.
but it doesn't work in cmd.
Click to expand...
Click to collapse
After changing PATH you need to reboot too.
oh. ok.
Thanks.
i'll try this tommorow.
i have school.
lol.

Used roach's new CWM recovery, now can't intall rom

So I used his new recovery and I had my zip files on my sd card... wiped everything and come to find out that it doesn't read external sd card. How can I mount the internal sdcard so I can put something on it?
You can use adb to push your files to either /sdard/ or /data/media (???)
gee one said:
You can use adb to push your files to either /sdard/ or /data/media (???)
Click to expand...
Click to collapse
Mind throwing me a walkthrough for adb? its been since july since I rooted and haven't used any of adb/nvflash stuff
bukithd said:
Mind throwing me a walkthrough for adb? its been since july since I rooted and haven't used any of adb/nvflash stuff
Click to expand...
Click to collapse
Do you have an SBK v1 TF to use NVFlash? (Serial # of your TF?)
This is a good thread to set up ADB
http://forum.xda-developers.com/showthread.php?t=1071584
Just hoping that you can get it working after the fact, is your USB debugging turn ON?
If you type adb, you'll get this:
Code:
Android Debug Bridge version 1.0.25
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
envivornment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> <local> - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
You want to "push" your zip ie "adb push /your/rom.zip /sdcard/" or maybe the last argument is /data/media - I flash from the external sdcard, so take this for what it's worth. Good luck.
baseballfanz said:
Do you have an SBK v1 TF to use NVFlash? (Serial # of your TF?)
This is a good thread to set up ADB
http://forum.xda-developers.com/showthread.php?t=1071584
Just hoping that you can get it working after the fact, is your USB debugging turn ON?
Click to expand...
Click to collapse
I have an older tf B50 I'm pretty sure but I'll just do this through adb and be done with it. I need to learn something new anyways...
bukithd said:
I have an older tf B50 I'm pretty sure but I'll just do this through adb and be done with it. I need to learn something new anyways...
Click to expand...
Click to collapse
That's good you have a B50, it's NVFlash compatible.
Do what gee one posted and see if you can push the ROM file to internal.
bukithd said:
I have an older tf B50 I'm pretty sure but I'll just do this through adb and be done with it. I need to learn something new anyways...
Click to expand...
Click to collapse
screw it, I'm nvflashing prime so I don't have t deal with this all night

I have a One Mini, help needed.

Hello there people,
I am lucky enough to be in possession of a newly un-released HTC One Mini (proof seen below).
I am your loyal servant so let's get this thing rooted. Tell me what to do and I will do anything I can to help. :good:
guywithdesire1992 said:
Hello there people,
I am lucky enough to be in possession of a newly un-released HTC One Mini (proof seen below).
I am your loyal servant so let's get this thing rooted. Tell me what to do and I will do anything I can to help. :good:
Click to expand...
Click to collapse
would you mind getting in touch with me so i can assist in full system dump
thanks bud
Check your PMs mate.
Sent from my Evita
timmaaa said:
Check your PMs mate.
Sent from my Evita
Click to expand...
Click to collapse
Yeah
Sent from my HTC One S using xda premium
https://github.com/zarboz/android_vendor_htc_m4
https://github.com/zarboz/android_device_htc_m4
Just need to grab his zImage and should be set
How u like that mini bro?
Sent from my HTC One XL using Tapatalk 4 Beta
Moved To Q&A​
Please do not open question threads in a dev section​
https://mega.co.nz/#!Q4Q2CIBY!bLmngjjawQueqw3_y_WTPl5BqGVChnIj2MHGXvPgQ6Q
HTC One mini dump
OP,
Could you run the following commands and then post the file and zip up the folder they make? (Run the first from terminal emulator, second from computer)
Single file (will be in sdcard)
Code:
dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img
Folder (will be on computer, zip up and upload please)
Code:
adb pull /data/preload
Sent from my buttered S3
CNexus said:
OP,
Could you run the following commands and then post the file and zip up the folder they make? (Run the first from terminal emulator, second from computer)
Single file (will be in sdcard)
Code:
dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img
Folder (will be on computer, zip up and upload please)
Code:
adb pull /data/preload
Sent from my buttered S3
Click to expand...
Click to collapse
the boot partition is read protected and so is /data without root
we need temp root to dump the boot partiion for me to build him a working recovery
CNexus said:
OP,
Could you run the following commands and then post the file and zip up the folder they make? (Run the first from terminal emulator, second from computer)
Single file (will be in sdcard)
Code:
dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img
Folder (will be on computer, zip up and upload please)
Code:
adb pull /data/preload
Sent from my buttered S3
Click to expand...
Click to collapse
Cannot run, permission denied.
C:\Users\Dan>cd c:\android
c:\android>dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img
'dd' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
c:\android>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]:/ $ adb pull /data/preload
adb pull /data/preload
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
1|[email protected]:/ $ ^C
c:\android>adb pull/data/preload
Android Debug Bridge version 1.0.31
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <specific device> - directs command to the device or emulator with
the given
serial number or qualifier. Overrides ANDROID_S
ERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic
es.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --
iv <hex-encoded iv>] <file>
- push this package file to the device and instal
l it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
('--algo', '--key', and '--iv' mean the file is
encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
stem] [<packages...>]
- write an archive of the device's data to <file>
.
If no -f option is supplied then the data is wr
itten
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks
themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the defau
lt is noshared.)
(-all means to back up all installed applicatio
ns)
(-system|-nosystem toggles whether -all automat
ically includes
system applications; the default is to inclu
de system apps)
(<packages...> is the list of applications to b
e backed up. If
the -all or -shared flags are passed, then t
he package
list is optional. Applications explicitly g
iven on the
command line will be included even if -nosys
tem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup
archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be u
pdated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.
c:\android>
Click to expand...
Click to collapse
You didn't type the second command correctly...there should be a space between "adb" and "/data/preload".
For the first command, run this instead (from your computer)
Code:
adb shell
dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img
exit
adb pull /sdcard/boot.img
And then upload the boot.img that should be in your current folder on your computer
If still nothing, please PM me so we can set up a team viewer and I can try to pull those files and I can also try to root your phone (safe, nothing bad will happen if it fails)
Sent from my buttered S3
Deodexed dump
Thank OP
http://www.androidfilehost.com/?fid=23060877489997282
Hi,
scine some days I own a htc one mini and I need to "root" it.
What is the best place to get started?
I'm very firm with linux, so I think i can do something
(I switched back from ios after some years of using iphone)
fvdaak said:
Hi,
scine some days I own a htc one mini and I need to "root" it.
What is the best place to get started?
I'm very firm with linux, so I think i can do something
(I switched back from ios after some years of using iphone)
Click to expand...
Click to collapse
PM me so we can set up teamviewer and try to root your phone
What's in it for me is that I really need the One mini's boot.img
CNexus said:
PM me so we can set up teamviewer and try to root your phone
What's in it for me is that I really need the One mini's boot.img
Click to expand...
Click to collapse
Would be great if you could get the recovery.img also.
Flyhalf205 said:
Would be great if you could get the recovery.img also.
Click to expand...
Click to collapse
If I can dump the boot.img then he can dev unlock and I'll pass him an insecure boot.img through which he can gain root.
Or if he gains root through another method, then we can still dump everything.
After that, life is good.
Anyway, still waiting for a response.
Hi,
I can confirm, what guywithdesire1992 said:
There is no permission to open the device.
When I do "dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img", I get the following error:
/dev/block/mmcblk0p32: cannot open for read: Permission denied
Do you have any suggestions?
btw:
There is no "su" on the device.
I've tried to install static linked su from "SuperUser.apk" and also from "CWM-SuperSU" - without success.
I have stored the su executables to /data/local/tmp and gained executable-rights (chmod 777). After that I was able to execute it, but i does nothing.
No error, just nothing
PM me so we can set up teamviewer and try to get you rooted.

[Q] Need help using ADB to push files to my MAXX HD

I have a stock factory ROM, ROOTED, MAXX HD. It's on the latest firmware pushed by VZW. After rooting, I had removed a bunch of apk's I knew I wouldn't need. The problem happened when I did a factory reset due to some minor GPS issues. I had forgotten that I removed the Setup.apk. (Yes I'm kicking myself regarding backups... but too late now).
Now my MAXX HD has no launcher. It states the Setup Wizard has stopped working. I have no access to files or applications. I can access the notification bar and the systems menu and such and can see the standard programs running under APPS. Wifi works, etc. I even signed into my gmail accounts, but I don't have access to any apps. Pressing the home button does nothing except bring up the error message again.
I've been trying to use ADB to push the missing files into the /system/app folder and that is described below. If anyone has any other ideas on what I can do, I'm all ears.
This part is for those that know a thing or two about ADB. I'm a noob at this so please correct away!
So, my ADB exploits... I've tried to push the setup files to /system/app via adb but have had no luck. I keep coming across access denied or this action is not allowed in production phone, etc.
The commands I've used are:
adb push setup.apk /system/app/setup.apk (This just gives the copy protected blah blah)
remount and root don't work.
in shell, when I type "su" the "$" does change to "#"
I've remounted the system as rw but pushing the file still gives me a not allowed value.
I'm just going to list the commands I've used now. If anyone has any suggestions or if I'm doing it wrong, please correct away. Thanks!
adb shell (this gives me a @Vanquish:/ $)
su (this changes the $ to a #)
mount | gret system (this gives me a long device-system name. it indicates it is now rw. it was originally ro)
mount -o rw, remount <device name from the previous command> /system
exit
exit (back to C:/adb)
adb push setup.apk /system/app/setup.apk (still says not allowed) (the root and remount commands still don't work)
I read that I need to type in "adb shell su push..." but I cannot get that command line to work at all.
Any help is extremely appreciated. Thanks!
Solved it myself
I guess I need to brush up on my ADB.
I got it to work by pushing the files to /sdcard/, then in shell, used # cp /sdcard/<file> /system/app/<file>
To all the ADB guys out there, how could I have done this in 1 step? I definitely don't have the syntax down.
T0ked said:
I guess I need to brush up on my ADB.
I got it to work by pushing the files to /sdcard/, then in shell, used # cp /sdcard/<file> /system/app/<file>
To all the ADB guys out there, how could I have done this in 1 step? I definitely don't have the syntax down.
Click to expand...
Click to collapse
Android Debug Bridge
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> <local> - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.

[Q] HELP bootloop

Hello everyone, my name is Massimiliano, I'm Italian and I have a problem with my MWG409, I modified the build.prop (but luckily I have a backup) and now the phone is in bootloop I can get into the stock recovery, but I have a problem the phone considers the internal memory Esternal like that and I do not know how to solve. thanks in advance
bamcam92 said:
Hello everyone, my name is Massimiliano, I'm Italian and I have a problem with my MWG409, I modified the build.prop (but luckily I have a backup) and now the phone is in bootloop I can get into the stock recovery, but I have a problem the phone considers the internal memory Esternal like that and I do not know how to solve. thanks in advance
Click to expand...
Click to collapse
Hi,
Can you see your Excite MGWG409 when you connect it to your PC and can you use cmd line commands.
if yes, use it and especially those are red => adb reboot
Code:
ode:
C:\Users>adb /?
Android Debug Bridge version 1.0.26
-d - directs command to the only connected USB device returns an error if more than one USB device is present.
-e - directs command to the only running emulator. returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with the given serial number. Overrides ANDROID_SERIAL environment variable.
-p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used, which must be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed (see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
[COLOR="Red"][B] adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program[/B][/COLOR]
[B][COLOR="Red"]adb reboot-bootloader - reboots the device into the bootloader[/COLOR][/B]
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> <localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partitionis updated.
philos64 said:
Hi,
Can you see your Excite MGWG409 when you connect it to your PC and can you use cmd line commands.
if yes, use it and especially those are red => adb reboot
Code:
ode:
C:\Users>adb /?
Android Debug Bridge version 1.0.26
-d - directs command to the only connected USB device returns an error if more than one USB device is present.
-e - directs command to the only running emulator. returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with the given serial number. Overrides ANDROID_SERIAL environment variable.
-p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used, which must be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed (see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
[COLOR="Red"][B] adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program[/B][/COLOR]
[B][COLOR="Red"]adb reboot-bootloader - reboots the device into the bootloader[/COLOR][/B]
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> <localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partitionis updated.
Click to expand...
Click to collapse
On ADB appears an error when i use sideload "installation aborted" help i need my phone
Please you don't need to post several OP for your problem.
You have already opened an OP and I gave you an answer.
You do not need to open an another OP because your old one is no longer on the first page.
If someone can give you an answer, he will answer
And if I remember its' not:
Code:
adb push update.zip \ sdcard \
but its
Code:
adb push update.zip/sdcard
Thanks in advance for your comprehension
philos64 said:
Please you don't need to post several OP for your problem.
You have already opened an OP and I gave you an answer.
You do not need to open an another OP because your old one is no longer on the first page.
If someone can give you an answer, he will answer
And if I remember its' not:
Code:
adb push update.zip \ sdcard \
but its
Code:
adb push update.zip/sdcard
Thanks in advance for your comprehension
Click to expand...
Click to collapse
sorry, but I am very worried about the phone, however only works in adb sideload, in other ways it appears "error: closed", in sideload tells me installation aborted when I go to install my "update.zip" that contains the build.prop I need to replace, maybe I created the wrong "update.zip"
bamcam92 said:
sorry, but I am very worried about the phone, however only works in adb sideload, in other ways it appears "error: closed", in sideload tells me installation aborted when I go to install my "update.zip" that contains the build.prop I need to replace, maybe I created the wrong "update.zip"
Click to expand...
Click to collapse
Go to your recovery
Code:
adb shell
mount -o remount,rw /system
this mounts your /system partition to read and writable extract the build.prop from your update.zip and paste it in desktop
Code:
cd desktop
adb push build.prop /system/build.prop
This should push the build.prop from update.zip right back to system
Regards
MasterAwesome

Categories

Resources