[Q] ADB android to android? - Asus Transformer TF700

Hi I was wondering if it were possible to run adb on my infinity so I can hook my phone up to it.
I'm getting real tired of firing my old laptop to use adb for my phone.

shaggydiamond said:
Hi I was wondering if it were possible to run adb on my infinity so I can hook my phone up to it.
I'm getting real tired of firing my old laptop to use adb for my phone.
Click to expand...
Click to collapse
I found this a while ago, but never tried it:
http://forum.xda-developers.com/showthread.php?t=2033722

_that said:
I found this a while ago, but never tried it:
http://forum.xda-developers.com/showthread.php?t=2033722
Click to expand...
Click to collapse
Thanks, but this won't work for me, it's a flashable zip and I don't want to unlock my bootloader(yet)

shaggydiamond said:
Thanks, but this won't work for me, it's a flashable zip and I don't want to unlock my bootloader(yet)
Click to expand...
Click to collapse
Shouldn't need to flash anything. Just download the zip file, extract the contents, copy the `kadb' file to /system/bin (or /system/xbin), and finally set permissions (chmod 0755 /system/bin/kadb). To use, just open a terminal emulator and run the binary.
Haven't tried it myself, but it looks like what you're looking for.

becomingx said:
Shouldn't need to flash anything. Just download the zip file, extract the contents, copy the `kadb' file to /system/bin (or /system/xbin), and finally set permissions (chmod 0755 /system/bin/kadb). To use, just open a terminal emulator and run the binary.
Haven't tried it myself, but it looks like what you're looking for.
Click to expand...
Click to collapse
Oh i might have misread it then. i'll give it a go this weekend

Related

updae script to remove apks

im getting tired of having to pull apks every time i flash a new rom. i found a thread that said that you can add a few lines to the update script to remove the apks prior to boot. how do you do that? when i added the lines in the thread i got a wrong digest meta-inf/comgoogle/android/update-script verification failed instillation aborted
i think my issue is i unpacked my signed zip modded the updatescript and rezipped it.
anyone have a better way to remove those apk, not one by one!
please if you could detailed instructions
recognize_atm said:
anyone have a better way to remove those apk, not one by one!
Click to expand...
Click to collapse
Why would you need to modify the ROM? You *do* realize that if you were going to go to the trouble of modifying the ROM to add removing things via the update script, you could just remove what you wanted removed in the first place?
No, of course you don't.
please if you could detailed instructions
Click to expand...
Click to collapse
Gods, that's what adb and a batch file (or a shell script, if you think you should be using Linux) are for.
you can create a .bat file to run and remove all the apks you dont want. here is mine
RemoveApp.bat said:
cd C:\android-sdk-windows\tools
adb remount
adb shell rm system/app/Facebook.apk
adb shell rm system/app/Gallery3DMT.apk
adb shell rm system/app/GenieWidget.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/SocialNetworkProvider.apk
adb shell rm system/app/Sprint_TVWidget.apk
adb shell rm system/app/Sprint_TV.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Stock.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
adb shell rm system/app/Flickr.apk
adb shell rm system/app/FriendStream.apk
adb shell rm system/app/com.htc.FriendStreamWidget.apk
Click to expand...
Click to collapse
posguy99 said:
Why would you need to modify the ROM? You *do* realize that if you were going to go to the trouble of modifying the ROM to add removing things via the update script, you could just remove what you wanted removed in the first place?
No, of course you don't.
God, that's what adb and a batch file (or a shell script, if you think you should be using Linux) are for.
Click to expand...
Click to collapse
your username suits you well... minus the 99.
don't be mean like that man.
I figured it out thanxs
Yea its best to make a seperate update.zip with an edited script that you can flash any time with any rom. So if you flash a new rom, you can then flash the update.zip. Mine would remove a bunch of apps and install a theme and a bootscreen after installing a new rom.
I also see that you got it, but yea you have to resign the zip after you change something in it.
And to the posguy.. If you are NO where near a computer, you can always run the .zip file with the edited script. Comes in handy if you download a rom from your phone, like a rom from DamageControls Updater or just on the web.
Yes i know you can do a terminal, but thats just long and dumb. Make a update script.
Jus10o said:
Make a update script.
Click to expand...
Click to collapse
Yes, that's a good idea. Of course, that's not what the OP thought he should do, he thought he should modify the script in the original ZIP file.
Jus10o said:
And to the posguy.. If you are NO where near a computer, you can always run the .zip file with the edited script. Yes i know you can do a terminal, but thats just long and dumb. Make a update script.
Click to expand...
Click to collapse
my point! thats why i wanted to edit the script. i know how to do it with the terminal/ .bat file. but i cant figure out how to get the zip to work
recognize_atm said:
my point! thats why i wanted to edit the script. i know how to do it with the terminal/ .bat file. but i cant figure out how to get the zip to work
Click to expand...
Click to collapse
Here is a update zip that removes some apps already.. Its my old one.
If you edit any of the lines then you must re-sign the .zip.
If you cant figure it out, or just want someone to sign it really quick. Post your .zip here and I will sign it for you so it will be flashable.
View attachment update.zip
hey thanks... i normailly sign zips using the old fresh kitchen but it doesnt seem to sign roms and im guessing zips that have meta-inf already in them cant get signed thru kitchen. i think i might be wrong, but ho do you sign your zips?
recognize_atm said:
hey thanks... i normailly sign zips using the old fresh kitchen but it doesnt seem to sign roms and im guessing zips that have meta-inf already in them cant get signed thru kitchen. i think i might be wrong, but ho do you sign your zips?
Click to expand...
Click to collapse
http://androidforums.com/developer-101/8665-how-signing-roms.html

quick boot animation question

this boot animation right here http://forum.xda-developers.com/showthread.php?t=670476&highlight=boot+animation i really like. but i dunno how to dab stuff. i try to use the terminal emulator on my nexus one (which is rooted) but it keeps giving me permission denied. im working on a macbook pro and idk how to dab things my question is can i download this zip and flash it through RA Recovery?
xXJay_RXx said:
this boot animation right here http://forum.xda-developers.com/showthread.php?t=670476&highlight=boot+animation i really like. but i dunno how to dab stuff. i try to use the terminal emulator on my nexus one (which is rooted) but it keeps giving me permission denied. im working on a macbook pro and idk how to dab things my question is can i download this zip and flash it through RA Recovery?
Click to expand...
Click to collapse
No you can not.
But you can find information on ADB (not dab) here ie Android Debug Bridge
http://forum.xda-developers.com/showthread.php?t=619153
also, if you try to do things like this with the terminal emulator, you have to type su first. To obtain super user permissions
oh im sorry i was typing quick so i messed it up. i flashed one of them through recovery and i thought i could do that to all but ill read up on it. thanks
get root explorer app it makes doing this easy. make sure the new file is named bootanimation.zip copy then paste into system/media and your done. i have a folder with different ones when i want a new one i just swap it out.
Dhappiness said:
get root explorer app it makes doing this easy. make sure the new file is named bootanimation.zip copy then paste into system/media and your done. i have a folder with different ones when i want a new one i just swap it out.
Click to expand...
Click to collapse
i figured out how to do it through adb but i will try this also when i get the chance

[Boot Screen] Custom EVO animation

Hope this isn't against protocol. I posted this in the "HOWTO" thread, but in the event there are people that don't venture into that area...I think it looks pretty nice and it's customized for the Evo.
Here's what I'm using...
I had to cut it down significantly from my original plan because of the boot speed...but this lines up pretty perfect on my Evo. Here are the links if anyone wants to download themselves:
http://www.mediafire.com/file/jadhnz2m3my/bootanimation.zip
http://www.mediafire.com/file/wmnz2ntnxry/SPC_animation_final.mp3
Pretty sure you have to be ROOTED for this to work (I am).
adb remount
adb push bootanimation.zip /system/customize/resource
adb push SPC_animation.mp3 /system/customize/resource
adb shell reboot
ocelot4ark said:
Pretty sure you have to be ROOTED for this to work (I am).
adb remount
adb push bootanimation.zip /system/customize/resource
adb push SPC_animation.mp3 /system/customize/resource
adb shell reboot
Click to expand...
Click to collapse
Good Morning, This was pretty cool so I thought i would do it. Just one thing to add about your adb instructions. Pushing the mp3 is missing "_final".
It should read
adb push SPC_animation_final.mp3 /system/customize/resource
Again thanks
Can this be installed without adb? And if so how please?
I love it so cool. Can the sound be taken out as well tho?
!
rjmjr69 said:
Can this be installed without adb? And if so how please?
I love it so cool. Can the sound be taken out as well tho?
Click to expand...
Click to collapse
I don't believe it can be done without adb. Unless you found a way to navigate to /system folder.
and by not pushing the sound file(.mp3) the sound will be taken out.
I love this nice job!
you can use root explorer if you like..
Besides the fact that it says Droid I like it..it may be my ROM but I had to change the sound file to android_audio.mp3 to get it to play.
Sent from my PC36100 using Tapatalk
papaskispartan said:
Good Morning, This was pretty cool so I thought i would do it. Just one thing to add about your adb instructions. Pushing the mp3 is missing "_final".
It should read
adb push SPC_animation_final.mp3 /system/customize/resource
Again thanks
Click to expand...
Click to collapse
Ooops! Nice catch and thanks for pointing that out!
MrDSL said:
you can use root explorer if you like..
Besides the fact that it says Droid I like it..it may be my ROM but I had to change the sound file to android_audio.mp3 to get it to play.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Hmmm that is weird...The actual mp3 was just edited from an incredible boot up when the file WAS named android_audio.mp3. Glad that you got it figured out, though.
please help
i dont know what im doing wrong but every time i try to push the bootanimation.zip i get
cannot stat 'bootanimation.zip' :no such file or directory
and i have both the bootanimation.zip and the mp3 file in my tools folder and help would be greatly appreciated thanks in advanced
rjmjr69 said:
Can this be installed without adb? And if so how please?
I love it so cool. Can the sound be taken out as well tho?
Click to expand...
Click to collapse
Terminal Emulator app in the market will do this.
su
cat /sdcard/download/bootanimation.zip > /system/customize/resource/bootanimation.zip
Tried that using beterterminal and I get an access denied error read only???
From adb I get cannot stat no such such file or directory "bootanimation.zip"
rjmjr69 said:
Tried that using beterterminal and I get an access denied error read only???
From adb I get cannot stat no such such file or directory "bootanimation.zip"
Click to expand...
Click to collapse
I have never used beter terminal. Try the terminal emulator from jack palevich. It is in the market place for free.
Denied access, read only in the emulator sounds like you didnt put in 'su' first. Once you enter type su in the prompt should change to #
your adb error sounds like you need to either mount the sdcard or change it to charge only.
I put the files in there but the damn SPRINT animation which I hate with a passion keeps playing. I can adb shell into my phone and see the files in /system/customize/resource but it doesn't pick it up automatically. Is there anything else I need to do to get rid of the SPRINT one?
I am rooted using the 2 root safe versions of the OTA updates, but otherwise stock build. I have also tried using the boot animation replace utility someone else on here developed ... it says it worked as well ... but then the stupid sprint one plays. Any ideas? I have a bunch of stuff in my resource folder I also have these files in my customize folder:
AAInfo.txt
COMMON.xml
cid_map.xml
resource
1_00_sample.xml
CID
mccmnc.xml
MNS
default.xml
mns_map.xml
I didn't know if maybe one of these tells it to point at the sprint boot instead of the custom one I put in... ?
what would be cool is if at the end when it says droid the word evo falls from the top and crushes the droid word. lol just a suggestion.
**EDIT** Problem resolved.
By the way I got mine to work, I had to boot into recovery and adb mount /system in order to get it working...
My favorite is the decepticon one but it is too small and I couldnt get it to work after resizing the png's and modifying the text...
timkdodson said:
I put the files in there but the damn SPRINT animation which I hate with a passion keeps playing. I can adb shell into my phone and see the files in /system/customize/resource but it doesn't pick it up automatically. Is there anything else I need to do to get rid of the SPRINT one?
I am rooted using the 2 root safe versions of the OTA updates, but otherwise stock build. I have also tried using the boot animation replace utility someone else on here developed ... it says it worked as well ... but then the stupid sprint one plays. Any ideas? I have a bunch of stuff in my resource folder I also have these files in my customize folder:
AAInfo.txt
COMMON.xml
cid_map.xml
resource
1_00_sample.xml
CID
mccmnc.xml
MNS
default.xml
mns_map.xml
I didn't know if maybe one of these tells it to point at the sprint boot instead of the custom one I put in... ?
Click to expand...
Click to collapse
Does this work with Froyo? Sound also?
ocelot4ark said:
Hope this isn't against protocol. I posted this in the "HOWTO" thread, but in the event there are people that don't venture into that area...I think it looks pretty nice and it's customized for the Evo.
Here's what I'm using...
I had to cut it down significantly from my original plan because of the boot speed...but this lines up pretty perfect on my Evo. Here are the links if anyone wants to download themselves:
http://www.mediafire.com/file/jadhnz2m3my/bootanimation.zip
http://www.mediafire.com/file/wmnz2ntnxry/SPC_animation_final.mp3
Pretty sure you have to be ROOTED for this to work (I am).
adb remount
adb push bootanimation.zip /system/customize/resource
adb push SPC_animation.mp3 /system/customize/resource
adb shell reboot
Click to expand...
Click to collapse
It would be better without the Droid part! Can you do one?
**EDIT**
Never mind, i just deleted the EYE folder and edited the .txt, but now i have one question,where is the original botanimation.zip located? i push yours to /system/customize/resource using root explorer (since i hate adb shell) and it didn't ask for overwrite so...it wasn't there.
This has potential to ber the best boot animation around but I don't like how it says droid. That's the only thing keeping me from switching right now.
Dredge said:
This has potential to ber the best boot animation around but I don't like how it says droid. That's the only thing keeping me from switching right now.
Click to expand...
Click to collapse
I pushed it without the mp3
ummm when using adb do i transfer the zip file to the root in sdcard? im new at this, i know how to open shell but i just dont know exactly where to put the file after i download it.
mikevillarroel said:
I pushed it without the mp3
Click to expand...
Click to collapse
I dont mean literally "says" I mean the text...

ApkMultiTool

Anybody know how to change the destination folder when installing the modified apk?
wileout said:
Anybody know how to change the destination folder when installing the modified apk?
Click to expand...
Click to collapse
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
santod040 said:
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
Click to expand...
Click to collapse
I was trying to use the tool to push iy becaude i cant get adb to push it at all...but the tool keeps trying to push it to data/app or something like that and i need it to go to system/priv-app
ok tried adb pushing it again and no go even doing it with your command. any ideas?
wileout said:
ok tried adb pushing it again and no go even doing it with your command. any ideas?
Click to expand...
Click to collapse
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
santod040 said:
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
Click to expand...
Click to collapse
I did that man it just restarts adb like i put in a bad command or it says cannot stat blah blah blah file or directory not found
Ive had tigerstown tryin to help me out too and he has no idea whats going on
well got adb to push it but I lost my clock widget all together lol
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
Using stock data cable? Had that be a problem on other devices when pushing files.
Sent from my HTC6525LVW using Tapatalk
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
jsaxon2 said:
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
Click to expand...
Click to collapse
Do i replace test with the name of the file?
wileout said:
Do i replace test with the name of the file?
Click to expand...
Click to collapse
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
jsaxon2 said:
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
Click to expand...
Click to collapse
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
wileout said:
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
Click to expand...
Click to collapse
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Ok ill try that...thanks for your help ill report back
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Tried that and im still getting force closes so its something on my end im assuming

Quick way of accessing screen to broken devices.

Hi,
So my screen broke yesterday and I needed to check my phone for missed important calls. I know there is lots of solutions out there, but I needed a way access your screen without the installation of any software on your phone. I was lucky because my digitizer still works so I can still use the touch feature and figure out on my screen where to press . I figured i would post it, might save someone someday....
Note: Works on Android 4.0 +
You need to have have developper options enabled so this can work. So first of all, I need to enable ADB from recovery. There is lots of post on the forum and google, so I will not cover this part.
Once I had ADB enabled, I wrote a small batch file that would take a screenshot from my phone, then pull it to my pc, wait 1 sec, then restart. After I used chrome and a auto-refresh extension to refresh the image every second. I will assume that you have ADB installed and all drivers for adb working. Here it goes
1. You will need to create a batch file. Open notepad and paste this into it.
Code:
:start
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
timeout 1
goto start
Save it as ss.txt, or whatever you like. Then go to desktop and rename ss.bat or "whatever you like.bat"
This may vary a bit if you do not have an SDcard, or if your directory is not named the same way, So change SDcard to the name of your storage folder.
Copy it to your adb directory.
2. Open a Command Prompt as Admin change directories to ADB folder. Once you are there, just type ss and the batch should start.
3. Open chrome and install an auto-refresh extension. I used this one:
HTML:
https://chrome.google.com/webstore/detail/easy-auto-refresh/aabcgdmkeabbnleenpncegpcngjpnjkc?hl=en
4.Then open your c:\ drive in chrome (type in the address bar file:///C: ). Navigate to your adb folder and open screen.png.
5. Start auto refresh on screen.png opened in chrome and set to 1 second.
Now you will have a screenshot of your phone being refreshed every second! I agree its slow, but its an easy way to get on your phone and configure other applications such as vnc or other stuff or just to get the phone number of that hot date you had last night.
Other thoughts: I your digitizer is broken, you can always just get a USB on the go adapter and plug-in a mouse and use ADB over wifi.
I guess you can also use an usb micro to hdmi adapter and plug it in to a monitor, they have them at bestbuy for 20$ if you dont want to make your life complicated.
Have Fun!
Need busybox do you not? screencap is not in my /system/xbin nor /system/bin folder
kirito9 said:
Need busybox do you not? screencap is not in my /system/xbin nor /system/bin folder
Click to expand...
Click to collapse
What phone and what rom are you using? What I read is that some vendors do not include screencap in their stock rom. ..
Steph_D said:
What phone and what rom are you using? What I read is that some vendors do not include screencap in their stock rom. ..
Click to expand...
Click to collapse
Using Blu Dash Jr D140a, stock ROM ( Gingerbread 2.3.6)
kirito9 said:
Using Blu Dash Jr D140a, stock ROM ( Gingerbread 2.3.6)
Click to expand...
Click to collapse
Should of mentionned, dosen't work with gingerbread, you need 4.0+ if i recall correctly. Maybe, if your lucky, the manufacturer may have included their version instead of screencap since it did not exist back, i would take a look in the bin folder to try to find an equivalent if not you are out of luck with this method.
Steph_D said:
Should of mentionned, dosen't work with gingerbread, you need 4.0+ if i recall correctly. Maybe, if your lucky, the manufacturer may have included their version instead of screencap since it did not exist back, i would take a look in the bin folder to try to find an equivalent if not you are out of luck with this method.
Click to expand...
Click to collapse
OP should be updated then and here's my bin folder.
kirito9 said:
OP should be updated then and here's my bin folder.
Click to expand...
Click to collapse
Ya, I don't believe it will be possible for you using this method. :/ Sorry Will update original post...
Steph_D said:
Ya, I don't believe it will be possible for you using this method. :/ Sorry Will update original post...
Click to expand...
Click to collapse
No problem, I will try on my 4.2.2 device.
EDIT: It works bro. Nice little guide of doing it manually

Categories

Resources