[Q] Help with ADB Commands... - EVO 4G Q&A, Help & Troubleshooting

Hey guys, my noob side is coming out again... I did some searching and all, but nothing.
Running Synergy RC2 Godmode, trying to delete data/data and system/apps... can anyone help me with commands? My adb language is pretty limited. And using adb in recovery would probably be best, as I'm stuck at a "Force Close: HTC Loggers" popup.
Thanks for the help!

Just try installing QtADB. It's a graphical interface and makes it super easy to do things like you are trying to do.
http://qtadb.wordpress.com/download/

tropicalbrit said:
Hey guys, my noob side is coming out again... I did some searching and all, but nothing.
Running Synergy RC2 Godmode, trying to delete data/data and system/apps... can anyone help me with commands? My adb language is pretty limited. And using adb in recovery would probably be best, as I'm stuck at a "Force Close: HTC Loggers" popup.
Thanks for the help!
Click to expand...
Click to collapse
Do you mean you want to delete everything from those folders? You definitely do not want to do that with /system/app. You can do it with /data/data if you really want. That'll wipe all app data. adb shell rm -r -f /data/data/*. In recovery, mount /data first. But I'd probably just wipe everything in recovery and reflash the ROM if I was having issues like that.

bkrodgers said:
Do you mean you want to delete everything from those folders? You definitely do not want to do that with /system/app. You can do it with /data/data if you really want. That'll wipe all app data. adb shell rm -r -f /data/data/*. In recovery, mount /data first. But I'd probably just wipe everything in recovery and reflash the ROM if I was having issues like that.
Click to expand...
Click to collapse
I want to wipe all of data/data and delete a few system/app. I always try to make my ROM Senseless/HTC-less/Sprint-less
My usual routine is wipe 3x, flash ROM then kernel. Reboot, sign into Google, go to market and install other launcher and Root Explorer, go into Root Explorer and delete files I know to be safe to delete. From there, if I'm fast enough, I can navigate to data/data and delete and reboot. Usually after deleting HTC Loggers it takes a half-minute or so until it pops up with "Force Close" and comes up immediately after I close the window.
I'm looking into putting Linux on my machine, so I can experiment in a kitchen to repackage and whip up my own modified ROMs.
Thanks for all the help!

Related

[q] adb question!!

I know everyone is busy so I will apologize in advance!!
I just read for hours and I found out how to push/pull apps via ADB but what I can't find out is "say I wanna switch to a new ROM" do I just put all my apps on my computer (using adb) then hit exit, flash my new rom then re-connect and put them back?
Thanks, Josh_Evo
Josh_Evo said:
I know everyone is busy so I will apologize in advance!!
I just read for hours and I found out how to push/pull apps via ADB but what I can't find out is "say I wanna switch to a new ROM" do I just put all my apps on my computer (using adb) then hit exit, flash my new rom then re-connect and put them back?
Thanks, Josh_Evo
Click to expand...
Click to collapse
Or, you can download Titanium back-up, have the app back everything up for you on you SD card, and then have it put everything back in one batch operation after you flash the new rom.
If what you want to do is practice your ADB skills, then go ahead. I only use ADB when I get stuck and I have no choice, so sorry if I can't help to answer your original question, but if what you want to do is get it done, you can definitely go the with Titanium. It backs up your apps with data, so all your settings, game saves, etc. will remain intact.
Nope. If you wana switch roms:
1. Backup apps using titanium backup.
2. In recovery, backup your current rom
3. Wipe factory/data, cache, and dalvik cache
4. Flash rom, reboot
5. Sign in...blah blah
6. Open titanium backup, press menu > batch > then run restore apps and data. Do NOT restore system settings.
teh roxxorz said:
Do NOT restore system settings.
Click to expand...
Click to collapse
Good call......that is an important bit of info.
rugedraw said:
Good call......that is an important bit of info.
Click to expand...
Click to collapse
Yea, seen too many people mess up because they do that...so trying to save the community, one user at a time.
rugedraw said:
Or, you can download Titanium back-up, have the app back everything up for you on you SD card, and then have it put everything back in one batch operation after you flash the new rom.
If what you want to do is practice your ADB skills, then go ahead. I only use ADB when I get stuck and I have no choice, so sorry if I can't help to answer your original question, but if what you want to do is get it done, you can definitely go the with Titanium. It backs up your apps with data, so all your settings, game saves, etc. will remain intact.
Click to expand...
Click to collapse
Yeah i do use Titanium, I just want to know how to do it using adb...because I didn't want to save everything by copying my sd to my computer, I wanna change sd cards. Just wondering if anyone could tell me how to do it using adb...
Thanks all
Josh_Evo said:
Yeah i do use Titanium, I just want to know how to do it using adb...because I didn't want to save everything by copying my sd to my computer, I wanna change sd cards. Just wondering if anyone could tell me how to do it using adb...
Thanks all
Click to expand...
Click to collapse
I don't think there is like a pull all command for the apps, you'd have to do it manually. The easiest wasy would be to copy your sdcard to your pc, then copy those files to the new sdcard, then place inside the phone.
teh roxxorz said:
I don't think there is like a pull all command for the apps, you'd have to do it manually. The easiest wasy would be to copy your sdcard to your pc, then copy those files to the new sdcard, then place inside the phone.
Click to expand...
Click to collapse
Pull apps off phone onto computer
Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
can't I just enter the above cmds and then exit out switch my sd card then re-connect to adb and,
Push apps back to phone from the computer
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Josh_Evo said:
Pull apps off phone onto computer
Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
can't I just enter the above cmds and then exit out switch my sd card then re-connect to adb and,
Push apps back to phone from the computer
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Click to expand...
Click to collapse
If those are the commands, then that should work. Only think is I personally don't know where the apps, well the data is held when you pull, so if you swap, I don't know what will happen, But that process would work. I strongly recommend copying it to your computer before you do, just in case.
teh roxxorz said:
If those are the commands, then that should work. Only think is I personally don't know where the apps, well the data is held when you pull, so if you swap, I don't know what will happen, But that process would work. I strongly recommend copying it to your computer before you do, just in case.
Click to expand...
Click to collapse
yeah i will, Thanks again!! It seems like it should work I guess I will find out
No problem, and let me know what happens.

[Q] Going Nuts with "Application not installed"

What is going on with this. I am on caulkins el29.
I have just installed it and I wanted to put Digitalclock.apk back on the phone.
I tried one I downloaded.
I tried one that was in my apps backup..
I tried one that was in uninstalled system apps.
Nothing works.
I even tried pulling my external sd card. I tried installing with the cable plugged in.
I tried unmounting and reformatting my sd card.
Nothing will get this stupid app to install. I have now dedicated 4 hours to trying to install a clock.
Does anyone have an idea of what is happening? I am on an epic touch, rooted with caulkins el29
You need to paste it into system/apps then install it...you will need root explorer or other app ...I think Esfile explorer may work also
Sent from my SPH-D710 using xda premium
Reboot bro.
Epix4G said:
You need to paste it into system/apps then install it...you will need root explorer or other app ...I think Esfile explorer may work also
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Androzip says that it can't move it due to system restrictions.
esfile explorer won't let me get off of the sd card.
phatmanxxl said:
Reboot bro.
Click to expand...
Click to collapse
Not trying to be a wise guy, but do you really think that I haven't tried rebooting the phone?
22350 said:
Not trying to be a wise guy, but do you really think that I haven't tried rebooting the phone?
Click to expand...
Click to collapse
That's the only thing you didn't say you did, wipe cache and dalvik, reflash the rom, don't wipe data. It'll be back on there no problems.
phatmanxxl said:
That's the only thing you didn't say you did, wipe cache and dalvik, reflash the rom, don't wipe data. It'll be back on there no problems.
Click to expand...
Click to collapse
OK, went into recovery. Wiped cache and dalvik cache. Reinstalled the rom.
Same thing. None of the apk's on the sd card will install.
I've used root explorer to copy and paste it into system apps. Changed permissions to rw-r-r and sometimes need to reboot.
I have the version from an ics theme that has the green replaced with blue.
If youdd like to try that one I can upload and post.
jfcooley said:
I've used root explorer to copy and paste it into system apps. Changed permissions to rw-r-r and sometimes need to reboot.
I have the version from an ics theme that has the green replaced with blue.
If youdd like to try that one I can upload and post.
Click to expand...
Click to collapse
that would be great
PM sent.
http://db.tt/pqzSankn
Just incase someone else may want.
jfcooley said:
PM sent.
http://db.tt/pqzSankn
Just incase someone else may want.
Click to expand...
Click to collapse
Well that didn't work... I see a lot of posts from people about this issue, but no one seems to know what's going on.
I don't know then. I'm on Caulkins ICS and have just copied it over.
May be stupid question as I'm sure you've tried everything but did you try deleting the old first?
Sorry it didn't help.
none of the system apks (put in the uninstalled folder) will install.
stuff on the market installs fine.
Gotta get root explorer bro, always works for me use the same method with it and be sure to toggle read/write settings, if not, make sure you have full root access and not partial, you may want to reflash the rom too.
Getting errors while trying to install apks from the Removed_App/system_app folder on the Bare ROM?
Be sure to install them through ADB, root explorer, etc. Don't try to install them by clicking on it like you would a normal apk
Ex. ADB command
Code:
remount rw
cat /sdcard/Removed_Apps/system_app/App.apk > /system/app/App.apk
chmod 644 /system/app/App.apk
chown 0.0 /system/app/App.apk
reboot
Copied straight from Calk.
i have the same issue, some of the stuff from titanium back up wouldn't install, and the same files won't install from the market either.
these are some of the stuff i've tried but yet failed
1. wipe cache and delvic
2. tried on other ics roms
3. formated sd card.
4. rebooted the phone.
it justs says, couldn't install on usb drive or sd card.
I would really like a fix.
it happened ever since I've install ICS. i do not feel like going back to GB
1. because of chances of bricking.
2. because it's a hassel.
With TBU try preferences/App Processing Mode
if it's set for direct change to indirect or vice versa. Might help. Supposed to help if app hangs on restore
whats tbu?
---------- Post added at 03:12 AM ---------- Previous post was at 03:11 AM ----------
jfcooley said:
With TBU try preferences/App Processing Mode
if it's set for direct change to indirect or vice versa. Might help. Supposed to help if app hangs on restore
Click to expand...
Click to collapse
how do you do this? in the market or titanium?
Sorry, Titanium Back Up..= tbu.
Open Titanium, menu, prefrences, scroll down to "App Processing Mode"
Once you open it there are 3 choices. Direct, Indirect and a third I cantt remember.
The FAQ for Titanium recommends indirect if you have problems during restore (like it hangs).
Not sure this will help. Did for me on an app so thought I would offer.
jfcooley said:
Sorry, Titanium Back Up..= tbu.
Open Titanium, menu, prefrences, scroll down to "App Processing Mode"
Once you open it there are 3 choices. Direct, Indirect and a third I cantt remember.
The FAQ for Titanium recommends indirect if you have problems during restore (like it hangs).
Not sure this will help. Did for me on an app so thought I would offer.
Click to expand...
Click to collapse
thank you but it's only for pro users.

[Q] People App deleted accidentally how to re-install it???

My Phone HTC Wildfire S A510e
Android version 2.3.5
HTC Sense 2.1
Software number 2.26.707.2
I have rooted my phone, bootloader is unlocked. I accidentally deleted my people app via link2sd. Now whenever I try to add a contact, it gives an error....
"android.process.acore has stopped unexpectedly. Please tell............"
I tried another custome ROM "Wildchild", on that ROM there was no problem adding people, and it was working fine. But I had to switch back to original, so I did. Now I am stuck again. I tried to install the app by HTC sync but there also it gives an error Not enuf space or something.
Have someone using the same rom send you people.apk or whatever it's called, push or manually copy the apk in system/app, fix permissions, reboot.
If you did a backup your stock rom after rooting, Simply restore with cwm recovery.
If not, flash a stock ruu with same radio version & software number.
Asmaul001 said:
If you did a backup your stock rom after rooting, Simply restore with cwm recovery.
If not, flash a stock ruu with same radio version & software number.
Click to expand...
Click to collapse
That's pretty extreme.
omnomnomkimiiee said:
That's pretty extreme.
Click to expand...
Click to collapse
If you have made a backup with CWM then just restore it and do a factory reset.
I don't think there isn't a way to recover it but if you can just tell me what app it is I can send it to you.
Dude, the easiest, simplest solution is to just grab the contacts apk and push it to system. I don't see why you want him to do a full restore :what:
I tried to push
I tried to push contactsprovider.apk to system, with <es file explorer> it gives error, not copying or installing it.
ANd with other <system apps installer> it shows that it installed it but, after doing with this my phone is giving more errors. , Now I cannot make even a call or see SIM contacts which I was able to do b4.
And about cwm backup,,,,,, ,,,,,,,,,, I did take the backup after rooting it and uninstalling the people app.
Muhammad_Qasim said:
I tried to push contactsprovider.apk to system, with it gives error, not copying or installing it.
ANd with other it shows that it installed it but, after doing with this my phone is giving more errors. , Now I cannot make even a call or see SIM contacts which I was able to do b4.
And about cwm backup,,,,,, ,,,,,,,,,, I did take the backup after rooting it and uninstalling the people app.
Click to expand...
Click to collapse
You have to mount system as r/w before copying. Don't forget to check permissions.
Also, be sure it's the right apk.
Workeddddd
omnomnomkimiiee said:
You have to mount system as r/w before copying. Don't forget to check permissions.
Also, be sure it's the right apk.
Click to expand...
Click to collapse
Mounting as r/w and then copy pasting worked......................Thanks people. Thanks a lot. The app missing was HtcContacts.apk..........Why on earth I deleted that app in past............Anyways now its all good.
omnomnomkimiiee said:
You have to mount system as r/w before copying. Don't forget to check permissions.
Also, be sure it's the right apk.
Click to expand...
Click to collapse
Mounting as r/w and then copy pasting worked......................Thanks people. Thanks a lot. The app missing was HtcContacts.apk..........Why on earth I deleted that app in past............Anyways now its all good.

[Q] gt18160- adb pull sdcard file permission problem!

Hello lovely android people,
I am a newbie, so im guessing this probably isnt the right place to post this type of question. Please feel free to guide me to the right place.
So the question...
I rooted my galaxy ace2 (gt18160) and install Pimp My Rom app from the market. Did some changes with it and now the phone wont start up, stuck in the bootloop where the logo appears and it does not go anywhere from there.
Ive been researching for solution since yesterday, and found out that I could re-flash the firmware using o2 stock using odin.(although im not quite sure this is a correct solution)
Since there's a possibility of all the data getting deleted, I want to get some files out of the device using ADB pull.
I used adb shell to look for the files I need. At first I could see the sdcard in the root directory / but could not access it without su. After doing su command I can go inside the sdcard directory (where my files are), but it appears to be empty.
ls -l /mnt lists the sdcard with unusual d--------- permission.
Im stuck and dont know how I can grab my files from the sdcard folder.
any suggestion will help.:cyclops:
Thanks
mnt/sdcard is only a symlink to storage/sdcard0 (mount for the internal sdcard) so it does make sense that adb can't cope with that path.
Still, it is impossibibble to delete stuff from either of your sdcards via odin or recovery. Flashing via odin doesn't wipe the data partition either, so as ong as u select the right firmware for our phones, nothing can go wrong really
Thanks for your reply Carpe-Dimi.
after checking /prop.partiitons, it seems that sdcard hasnt been mounted.
The problem now is that there are 18 partitions and I dont know which is the sdcard?
I tried mounting the first mmcblk0. Give me the 'device or resource busy' error.
Excuse my arrogance but I would have liked to find out why I cant access the sdcard or why I cant mount the partitions.
...and thanks again for letting me know that flashing does not wipe the data. :good:
SOLVED!
As Dimi said, flashing does not wipe data partition. But I was able to recover my files in recovery mode as it automatically mounted the mmcblk0p8 partition.
Then installed stock firmware.... tried new jelly bean, then went back to stock as its slow and laggy.
Cheers

[solved] Andriod upgrading everytime when restarts

Today im Updated 4.3 JB in my Xperia M Dual using SUS...
update was completed successfully...
but everytime when i switch on my mobile it showing,
Andriod is upgrading...
Starting Applications...
What is this?? this is really happen in all mobile or is this any error??
if it is a problem then, how to fix this problem...
Help me experts.....
Try resetting it with SUS and see if it works.
IIRC, this means android is making new dalvik cache for the apps or the one it has on the phone is old version.
This could indicate problem at \cache\
Try a file explorer. post screenshot of what you see.
theperson333 said:
IIRC, this means android is making new dalvik cache for the apps or the one it has on the phone is old version.
This could indicate problem at \cache\
Try a file explorer. post screenshot of what you see.
Click to expand...
Click to collapse
Bro, there is no folder like /cache in my internal and external card...
Pls tell me, the correct path, i will show you immediately...
But, remember one thing my mobile is a rooted one before doing 4.3 update.. Is that the reason for this problem???
Give ans bro..
Try resetting your dalvik-cache... Use a file explorer with root access or adb shell and delete the folder dalvik-cache found inside /data (or rm -r -f /data/dalvik-cache from adb shell). Right after that you should reboot your phone (after deleting that folder all apps will start FCing, it's ok). In the next reboot the "Android is upgrading" screen will show and will take some time since it'll regenerate the cache. This should fix your problem.
If even after resetting dalvik-cache the same thing keep occurring, then inside /system/app you may have an .odex file for an .apk that contains classes.dex inside (e.g. you have an .odex for an APK that already is deodexed). It's common to occur when using apps like Lucky Patcher to apply patches or apps like Titanium Backup that allow integrating dalvik cache of apps inside system partition...
mbc07 said:
Try resetting your dalvik-cache... Use a file explorer with root access or adb shell and delete the folder dalvik-cache found inside /data (or rm -r -f /data/dalvik-cache from adb shell). Right after that you should reboot your phone (after deleting that folder all apps will start FCing, it's ok). In the next reboot the "Android is upgrading" screen will show and will take some time since it'll regenerate the cache. This should fix your problem.
If even after resetting dalvik-cache the same thing keep occurring, then inside /system/app you may have an .odex file for an .apk that contains classes.dex inside (e.g. you have an .odex for an APK that already is deodexed). It's common to occur when using apps like Lucky Patcher to apply patches or apps like Titanium Backup that allow integrating dalvik cache of apps inside system partition...
Click to expand...
Click to collapse
Thanks for ur response bro...
my root access is gone after the update..
now i cant able to use titanium backup or file explorer with root access..
ananthtcr said:
Thanks for ur response bro...
my root access is gone after the update..
now i cant able to use titanium backup or file explorer with root access..
Click to expand...
Click to collapse
If you updated without wiping data and cache it's very likely to be the cause of this problem, while you had root access one of those apps may have changed something in dalvik-cache and now that you don't have root access anymore Android keeps trying to "optimize" that app every time the phone boots...
Problem fixed!!!!!
I uninstall some apps which needs root acces and successfully deleted data/cache folder (Which is in hidden state earlier).
Now the Android Upgrading msg not coming..
Thanks Experts!!! You are really Great!!!
Specially thank to theperson333 and mbc07
android is upgrading on boot up
i did the above steps
wiped dalvik cache using cwm recovery
bt still problem persist
on boot up it show android is upgrading...
lemme tell what exactly happened from beginning
im using xperia l(4.2.2) with root access
i installed a keyboard ported from 4.4 to all xperia running jb.(for that i mounted system n flashed the zip using cwm recovery)
n keyboard is working fine bt problem is that
on every boot up
xl shows android is upgrading n takes 5 min to start..
i even searced for. dex app in system bt there is no app with that extension..

Categories

Resources