ADB from Download or Recovery - Galaxy Tab 7.7 General

Tab won't boot
Is it possible to get adb shell access from download or recovery?
Need to run fsck but can't seem to get adb to recognize device
Thanks in advance

Moved to general​
This in no way can be considered development, post in the correct section.​

original_ganjaman said:
Moved to general​
This in no way can be considered development, post in the correct section.​
Click to expand...
Click to collapse
Figured this out you can access mount points from adb while in clockworkmod recovery in the mounts and storage section

Related

Easy Root For All Eris Devies

USE ARE YOUR OWN RISK.
http://www.multiupload.com/DXQVBXB93G
http://www.multiupload.com/KS2JCAMGBH
Credit to wag3slav3 and a donate link for him so morons cant claim I am stealing his donations. http://forum.xda-developers.com/showthread.php?t=724741
adb push recovery.img /data/local/
adb push flash_image /data/local/
adb shell chmod 777 /data/local/recovery.img
adb shell chmod 777 /data/local/flash_image
adb shell rm /data/local/rights/mid.txt
adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
adb reboot
then once booted
adb shell /data/local/flash_image recovery /data/local/recovery.img
This work for non-leakers only right?
Holy crap, it's really that simple? That's amazing.
Should work for EVERYONE.
jcase said:
Should work for EVERYONE.
Click to expand...
Click to collapse
is this just root? it wont wipe out data? i just want to overclock
v941726 said:
is this just root? it wont wipe out data? i just want to overclock
Click to expand...
Click to collapse
Do that then flash SU
Dc_striker said:
Do that then flash SU
Click to expand...
Click to collapse
sorry but, how do you flash su? and you didnt answer if it wipes out my data.
v941726 said:
sorry but, how do you flash su? and you didnt answer if it wipes out my data.
Click to expand...
Click to collapse
sir im saying this in the most friendly way possible
but i was once just like you new to hacking and lots of questions
but you must understand all the questions you have can be answered by reading on here or google search
everyone is tired of answering the same question of the newbies and trust me i have been flamed
also check out the forum rules about posting questions certain questions go in certain places if you want quick answers....all love bro i want to see you rooted and happy
if you have root
su is Super User access
you need to get the su.apk go here and take a look http://forum.xda-developers.com/showthread.php?t=682828
su allows certain apps to do rooted things including overclocking
btw you will alos new the setcpu app to overclock go here http://forum.xda-developers.com/showthread.php?t=505419
but before that you still should do some research
good luck to you brother
Oooh, don't anger the gods.
v941726 said:
sorry but, how do you flash su? and you didnt answer if it wipes out my data.
Click to expand...
Click to collapse
They really do get upset in here when you don't know as much as they do.
Let me help...
Run to this thread and read up:
forum.xda-developers.com/showthread.php?t=724741
There is an automated script that will help you with the root. Many users, including myself had to run it a couple of times before it took - so if it doesn't go off the first time, don't lose faith, just try again.
As for whether or not it wipes, that's moot - You should, after you run the hack flash a custom rom - this will wipe your data. Any ROM you like from the dev forum will do. I am using Froyo v21. But you can certainly try any one you like. As for non-Froyo roms, I like the Cyannogen ELB builds. But again it is your preference that matters.
To flash the new rom, you need to boot into recovery mode. If you run the script from the above thread, it will boot you into recovery mode. If you use the instructions in this thread, type "adb reboot recovery" at your command prompt immediately after you are done. Once there, you can do the following:
-Do a NAND backup
-Put your phone into USB SD mode and copy over your ROM of choice to the root of your SD card.
-Do a factory wipe and a dalvik cache wipe
-flash your new rom
When you flash the new rom, depending on which one you do, you should have su or root. You can then download and install apps that require root.
Remember, you should back-up your data before you try to do anything to your phone. It's just a good idea.
If you have any ROM specific issues, try looking through that ROM's thread for answers. Also, if you have any other questions about how to do anything, the first sticky thread in this forum is a great collection of how-tos. You can also PM Me and I will be happy to help.
Don't forget that a lot of hard work went into rooting leak. Do like many of us have and donate to those responsible.
i understand what your saying about asking here. but seriously, i searched and it seems like every thread says the same thing. so i jump all over the place and end up going in circles. i did my sons moto droid yesterday pretty easily. he now has root and a smoking droid w/o disturbing anything else. so, sorry, but it is tough. thanks for your reply. i got this particular thread from android forums and it looked like the one. a new one at that. but i spent several hours going around in circles. googling and everything. i am a noob with linux based phones. yes. but i'm very capable and dont need baby steps. just need some straight answers. so sorry. i will check your links. thanks for your reply
Works just as good as the automated method. Good deal.
Father_Vic said:
They really do get upset in here when you don't know as much as they do.
Let me help...
Run to this thread and read up:
forum.xda-developers.com/showthread.php?t=724741
There is an automated script that will help you with the root. Many users, including myself had to run it a couple of times before it took - so if it doesn't go off the first time, don't lose faith, just try again.
As for whether or not it wipes, that's moot - You should, after you run the hack flash a custom rom - this will wipe your data. Any ROM you like from the dev forum will do. I am using Froyo v21. But you can certainly try any one you like. As for non-Froyo roms, I like the Cyannogen ELB builds. But again it is your preference that matters.
To flash the new rom, you need to boot into recovery mode. If you run the script from the above thread, it will boot you into recovery mode. If you use the instructions in this thread, type "adb reboot recovery" at your command prompt immediately after you are done. Once there, you can do the following:
-Do a NAND backup
-Put your phone into USB SD mode and copy over your ROM of choice to the root of your SD card.
-Do a factory wipe and a dalvik cache wipe
-flash your new rom
When you flash the new rom, depending on which one you do, you should have su or root. You can then download and install apps that require root.
Remember, you should back-up your data before you try to do anything to your phone. It's just a good idea.
If you have any ROM specific issues, try looking through that ROM's thread for answers. Also, if you have any other questions about how to do anything, the first sticky thread in this forum is a great collection of how-tos. You can also PM Me and I will be happy to help.
Don't forget that a lot of hard work went into rooting leak. Do like many of us have and donate to those responsible.
Click to expand...
Click to collapse
thanks. this may be dumber yet but, i cant find a way to pm you or anybody her
This should get a sticky
sawah said:
This should get a sticky
Click to expand...
Click to collapse
The topic should get deleted...
...and wag3slav3 should just copy/paste this into the bottom of his first post. To me this thread, even with the credit, looks like it's trying to steal his "thunder."
jcase said:
USE ARE YOUR OWN RISK.
http://www.multiupload.com/DXQVBXB93G
http://www.multiupload.com/KS2JCAMGBH
Credit to wag3slav3 http://forum.xda-developers.com/showthread.php?t=724741
adb push recovery.img /data/local/
adb push flash_image /data/local/
adb shell chmod 777 /data/local/recovery.img
adb shell chmod 777 /data/local/flash_image
adb shell rm /data/local/rights/mid.txt
adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
adb reboot
then once booted
adb shell /data/local/flash_image recovery /data/local/recovery.img
Click to expand...
Click to collapse
wow!? are you serious. thats it. . . that took 8 months, it looks so simple now that its in writing. =(
sad for life
hey better late then never though =) glad you leakers can get root now.
xnatex21 said:
The topic should get deleted...
...and wag3slav3 should just copy/paste this into the bottom of his first post. To me this thread, even with the credit, looks like it's trying to steal his "thunder."
Click to expand...
Click to collapse
Since when does jcase try to steal anyone's thunder. He watches out for the dev community more than anyone.
v941726 said:
thanks. this may be dumber yet but, i cant find a way to pm you or anybody her
Click to expand...
Click to collapse
Just click on the user name.
Father_Vic said:
Just click on the user name.
Click to expand...
Click to collapse
i did. no way to pm there
C:\android\tools>adb push recovery.img /data/local/
856 KB/s (3926016 bytes in 4.477s)
C:\android\tools>adb push flash_image /data/local/
507 KB/s (9640 bytes in 0.018s)
C:\android\tools>adb shell chmod 777 /data/local/recovery.img
C:\android\tools>adb shell chmod 777 /data/local/flash_image
C:\android\tools>adb shell rm /data/local/rights/mid.txt
C:\android\tools>adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
C:\android\tools>adb reboot
C:\android\tools>adb shell /data/local/flash_image recovery /data/local/recovery
.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00020000 (Out of memory)
mtd: read error at 0x00040000 (Out of memory)
C:\android\tools>adb shell
$ su
su
su: permission denied
Click to expand...
Click to collapse
Anyone else get this?
v941726 said:
sorry but, how do you flash su? and you didnt answer if it wipes out my data.
Click to expand...
Click to collapse
Everyone, if you don't want to do a wipe and install a custom ROM, you can just flash EngTools.zip, courtesy of jcase, and it will add su and superuser.apk without disturbing your existing data (apps, settings, etc).
jcase said:
Get follow root tutorials and get amon's recovery installed. If you want to skip installing a new rom after rooting, You can flash EngTools.zip will root your device.
Click to expand...
Click to collapse

Cross Link Error

I am trying to install a .apk thru adb shell. I go into recovery and mount the system and the sd card.. i cmd adb shell and i get the ~# and i type in the following command /system/bin/mv CityID.apk /sdcard/CityID.apk.bak as per one of the other threads. I am trying to move this over to my sdcard and i get "Cross Link Device Error' am i missing something...any help is greatly aprreciated. I am running clockwork 2.5.01
if you are installing, just adb install CityId.apk
sent from my friggin phone
tbh the way i have gotten around the cross link device error is by using busybox.
busybox mv CityID.apk /sdcard/CityID.apk
thanks for the responses guys..i am actually trying to install the Launcher.apk that comes with Jagerroms rom..i was able to move the file to systems/app but it didnt install its there in the folder as it shows up in astro..thanks again
Thread moved to General.

Cannot get ADB shell working

Hi guys, so I've done tons of searching & I still can't seem to get this work.. I'm running CM7 #21 & I'm trying to install adfree using the tutorial here.. For some reason I just can't seem to get ADB shell commands working.. I can put my phone into recovery via ADB, no problem, but that's about it.. When I try running recovery-windows.bat I get "directory not found" errors, from what I can see it's looking for a "files" folder, which I don't have, & I've downloaded the SDK 3 times! Initially I didn't even have a recovery-windows.bat file, I found it somewhere & modified it.. Anyway, I've attached pics of the steps I've done, could someone tell me what I'm doing wrong, or guide me in the right direction...? thanks in advance...
Using fakeflash will get you to recovery more easily. Look in the roll up sticky for that Once in recovery the adb push syntax is thus:
adb push [file on PC] [location on phone]
For pushing a directory, c:\foo to the phone's data partition you'll want this:
adb push C:\foo /data/
Or you could use wildcards:
adb push C:\foo\* /data/foo/
The latter option is probably easier
EDIT:
I notice that this was your first post. Welcome!
Thanks for the help & welcome! What I didn't realize all this time was that I had to reboot in ClockworkMod recovery & not normal recovery, but by you directing me to the fakeflash post I figured it out.. Btw, the download link at modaco.com for the update.zip file is dead...
Rename to update.zip: http://dl.dropbox.com/u/3382637/recovery-update.zip

[Solved) Need Help - I have formatted my Nex7 using TWRP

Hi,
I have been trying to educate myself by using TWRP (ver 2.3.2.1) and loading custom ROM's
I have used the format option in TWRP and now I can no long load or push any files to the SD card. I am able to use WegFresh Root Tool Kit (ver 1.6.1) and get to TWRP and to the bootloader (Android laying on it's back - chest open)
How do I re-create the proper file structure to be able to load ROM's once again. As an example..... "/system" is completely empty.
Thank you....
Update - The problem has been solved and it was due to the driver between my laptop and the Nex7. In Device Manager it was showing up as "Andriod Phone - Andriod Bootloader Interface" THIS WILL NOT WORK!
Your device manager has to say - "Android Phone - Android ADB Interface" for it to be able to push files to the Nex7
Thanks to all who helped me.
Have you reflashed your ROM of choice?
- Sent from my US Cellular SGS3
RMarkwald said:
Have you reflashed your ROM of choice?
- Sent from my US Cellular SGS3
Click to expand...
Click to collapse
Thank you for the reply. I am unable to push any ROM (zip file) using TWRP or adb push.....
When I use a DOS prompt and type - "adb push rom.zip /sdcard" I get a reply "error: device not found" It seems as thought I can't write any files to the sdcard since I formatted the sdcard. Is it a permission issue? How can I restore the proper file structure of the sdcard so that a rom can be pushed and loaded?
Thanks
Dekan54 said:
Thank you for the reply. I am unable to push any ROM (zip file) using TWRP or adb push.....
When I use a DOS prompt and type - "adb push rom.zip /sdcard" I get a reply "error: device not found" It seems as thought I can't write any files to the sdcard since I formatted the sdcard. Is it a permission issue? How can I restore the proper file structure of the sdcard so that a rom can be pushed and loaded?
Thanks
Click to expand...
Click to collapse
How does the device show up in Device Manager? I assume you're using Windows.
- Sent from my US Cellular SGS3
Yes - I am using Windows 8 (64bit)
In Device Manager it shows as "Andriod Phone - Andriod Bootloader Interface"
I have no OS on the NEX 7 so I can't turn "debug mode" on......
TWRP see the device id......
Thanks
Dekan54 said:
Yes - I am using Windows 8 (64bit)
In Device Manager it shows as "Andriod Phone - Andriod Bootloader Interface"
I have no OS on the NEX 7 so I can't turn "debug mode" on......
TWRP see the device id......
Thanks
Click to expand...
Click to collapse
I've heard that Win8 causes issues, specifically with fastboot flashing files. I've heard you can install the drivers and is recommended to turn off driver signing.
Debug mode only works when the device is booted in the OS, not recovery. Do you have access to another OS, like Linux or Win7? This may be easier to do.
- Sent from my US Cellular SGS3
I will fire up my old Win 7 laptop in the morning and give that go.....
Thank you for your help this evening.
Dekan54 said:
I will fire up my old Win 7 laptop in the morning and give that go.....
Thank you for your help this evening.
Click to expand...
Click to collapse
No problem! The reason I've suggested this is I've worked with someone for three hours and in the end it was Win8. Win7 worked in minutes.
Good luck! Post with an update!
- Sent from my US Cellular SGS3
---------- Post added at 08:39 PM ---------- Previous post was at 08:37 PM ----------
And honestly, I'd flash to stock 4.2.1 from Google, re-root, flash recovery, then flash ROM of choice. With the latest version of Recovery of your choice you shouldn't run into this issue in the future.
- Sent from my US Cellular SGS3
if still not working reflash stock rom from google
Sent from my Nexus 7 using XDA Premium HD app
ngoralph said:
if still not working reflash stock rom from google
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
I would love to reflash any rom.... (cwm 10, Google, etc....) but my NEX7 will not except (push) any files to it. If I could just get a rom.zip file over to it I could then load it via TWRP.
I am open to suggestions from anyone.
Thanks
RMarkwald said:
No problem! The reason I've suggested this is I've worked with someone for three hours and in the end it was Win8. Win7 worked in minutes.
Good luck! Post with an update!
- Sent from my US Cellular SGS3
---------- Post added at 08:39 PM ---------- Previous post was at 08:37 PM ----------
And honestly, I'd flash to stock 4.2.1 from Google, re-root, flash recovery, then flash ROM of choice. With the latest version of Recovery of your choice you shouldn't run into this issue in the future.
- Sent from my US Cellular SGS3
Click to expand...
Click to collapse
Just an update....
I am getting the same results with Win7 OS that I was getting last night when you were helping me. My Nex7 is displayed in the device manager as - "Android Phone - Android Bootloader Interface" in Win7 just as it is in Win8.
I have been using Wegfresh's Nexus Root Toolkit (1.6.1). It will show me the device ID went I click the button - show device id. I am able to reboot into bootloader. I am able to boot into recovery and get to TWRP and navigate around.
If I could just get a stock or custom ROM file to the NEX7 I would be in good shape. But I am unable to "adb push" anything to the nex7.
I will be glad to go "step by step" to trouble shoot this with you.
Thanks
I've not mypc, so I can't help you step by step.
You can use the advanced options of the toolkit to flash a zip or use the sdk to use the adb sideload.
google will help you to found how use "adb sideload", as the option you can see in recovery.
ADB Sideload
What is ADB sideload?
--------------------------------------------------------------------------------
ADB sideload is a new feature that was added to AOSP recovery in Jelly Bean. As of version 2.3, TWRP now supports ADB sideload mode. ADB sideload is a different ADB mode that you can use to push and install a zip using one command from your computer. Most likely ADB sideload won't be very useful for your average recovery user, but ADB sideload can be a huge time-saver for a ROM developer.
How do I use ADB sideload?
--------------------------------------------------------------------------------
1.Have a recovery installed on your device that supports ADB sideload like TWRP 2.3 or higher
2.Have newer ADB binaries installed on your computer. If it's been a while since you installed ADB on your computer, you may need to get the latest ADB binaries in platform-tools from the Android SDK. You will need version 1.0.29 or higher. You can find your current version by typing "adb version" at the command line.
3.Set the device into ADB sideload mode. In TWRP you do this by going to Advanced then ADB Sideload.
4.From the command line, type adb sideload /path/to/rom.zip
The file will be copied to your device to whatever the current storage location is that you have selected in the mount page. It will always be placed in the root of that storage location and named sideload.zip (e.g. /sdcard/sideload.zip) and it will automatically delete / overwrite any existing sideload.zip you may have on your device. As soon as the file is copied to your device, it will automatically be installed. When the install is finished you will be presented with a reboot system button so that you can reboot to test your zip.
Note that sideload mode is a separate ADB mode. While in sideload mode, regular ADB commands will not work. Once the zip has been copied to the device and the install starts (or if you hit the cancel button) regular ADB mode will resume.
Blackdragon77 said:
I've not mypc, so I can't help you step by step.
You can use the advanced options of the toolkit to flash a zip or use the sdk to use the adb sideload.
google will help you to found how use "adb sideload", as the option you can see in recovery.
Click to expand...
Click to collapse
Thank you for the reply. I have tried the "adb sideload" option in TWRP and it fails. I get the error - "error - device not found"
I welcome anyone who might have some idea's for me to try.
Thanks
Thy to see my edit upon how to run sideload.
You must not use the tookit, but you must install android sdk and use the true adb
Blackdragon77 said:
Thy to see my edit upon how to run sideload.
You must not use the tookit, but you must install android sdk and use the true adb
Click to expand...
Click to collapse
I will load the true adb sdk toolkit and give that a shot. Thank you for your help.
No problem! Tell me if that's the solution!
Inviato dal mio Nexus 7 con Tapatalk 2
I was having the same problem also. Correct me if I'm wrong, but I believe in Fastboot mode (Android laying on it's back - chest open), you cannot use adb. Here you can use Fastboot. Adb is use when in Recovery mode. Have you tried using fastboot.
Dekan54 said:
I would love to reflash any rom.... (cwm 10, Google, etc....) but my NEX7 will not except (push) any files to it. If I could just get a rom.zip file over to it I could then load it via TWRP.
I am open to suggestions from anyone.
Thanks
Click to expand...
Click to collapse
Do you connect your N7 with adb ? if yes, try the clockworkmod recovery v6.0.1.9 , it has a fuction very good to push rooms, it is the "instal zip from sideload"
---------- Post added at 08:25 PM ---------- Previous post was at 08:21 PM ----------
Dekan54 said:
I will load the true adb sdk toolkit and give that a shot. Thank you for your help.
Click to expand...
Click to collapse
follow this videos :
1º How to Install ADB Drivers for Google Devices
http://www.youtube.com/watch?v=vUSRmtexmUo
2º How To Install ADB and Fastboot for Windows
http://www.youtube.com/watch?v=Yc4z-KYypgY
it worked for me
tabbiex said:
I was having the same problem also. Correct me if I'm wrong, but I believe in Fastboot mode (Android laying on it's back - chest open), you cannot use adb. Here you can use Fastboot. Adb is use when in Recovery mode. Have you tried using fastboot.
Click to expand...
Click to collapse
You are correct, the OP needs to go into recovery (TWRP recovery is fine) and use adb to push files to the device- you can't use adb from fastboot.
I have used exactly the same method myself as I was in exactly the same situation myself.
Of course the OP needs adb on his PC from the SDK as mentioned earlier in the thread.
Still having the same error after installing adb from the sdk on my Win7 computer. I also made sure I installed JAVA and downloader the updates for the adb sdk.
The error is still - "error - device not found"
When I use TWRP to look at the files on my Nex7 the following folders are present
cache
data
dev
proc
res
root
sbin
sdcard
sys
system
tmp
usb-otg
default.prop
fstab.grouper
fstab.qcom
init
init.rc
ueventd.goldfish.rc
ueventd.grouper.rc
uevent.rc
The folder "sdcard is empty except for a twrp folder....
Any other things I should try?
Thanks

help, the android removed, i have only twrp

how i can to connect the nexus 7 to me pc and move file ?
Install adb on the PC and push. You can use search or Google to find lots of tutorials. Or boot into twrp and mount SD card while hooked up to USB and drag and drop.
Sent from my Paranoid 3.0 Nexus7 running M-Kernel mr1
travisjustin said:
Install adb on the PC and push. You can use search or Google to find lots of tutorials. Or boot into twrp and mount SD card while hooked up to USB and drag and drop.
Sent from my Paranoid 3.0 Nexus7 running M-Kernel mr1
Click to expand...
Click to collapse
from where i can to download adb for the pc
Here is the SDK which includes adb
http://developer.android.com/sdk/index.html
And a tutorial on using adb
http://forum.xda-developers.com/showthread.php?t=1241935
Sent from my Paranoid 3.0 Nexus7 running M-Kernel mr1
travisjustin said:
Here is the SDK which includes adb
http://developer.android.com/sdk/index.html
And a tutorial on using adb
http://forum.xda-developers.com/showthread.php?t=1241935
Sent from my Paranoid 3.0 Nexus7 running M-Kernel mr1
Click to expand...
Click to collapse
i try it and it's don't work.
i cant to drag to me nexus 7 from the twrp?
Firstly, please dont do anything to the system unless you fist know how to fix it if it goes wrong! these threads are filled with people who have done similar things
Second, use one of the toolkits currently available, they arn't ideal and id much rather do it myself, but for those not quite sure they can do the job in most cases
coffmad said:
Firstly, please dont do anything to the system unless you fist know how to fix it if it goes wrong! these threads are filled with people who have done similar things
Second, use one of the toolkits currently available, they arn't ideal and id much rather do it myself, but for those not quite sure they can do the job in most cases
Click to expand...
Click to collapse
if i have the adb what the code for install the rom?
you need to navigate to where the ADB file is, then type
adb push (file directory) (android directory)
so for example
adb push C:\Users\(USERNAME)\Desktop\Stock.zip /sdcard/stock.zip
then should show in your root of phone to flash
coffmad said:
you need to navigate to where the ADB file is, then type
adb push (file directory) (android directory)
so for example
adb push C:\Users\(USERNAME)\Desktop\Stock.zip /sdcard/stock.zip
then should show in your root of phone to flash
Click to expand...
Click to collapse
i do it like here:
http://forum.xda-developers.com/showthread.php?t=1667929
and i see the file in the sd card but when im install the file its dont work and show me Failed
i'm success
thank you for all!

Categories

Resources