Does ADB require rooting your phone? - Android Software/Hacking General [Developers Only]

I'm trying to delete the GenieWidget from my phone, and it won't install from Applications > Manage, the uninstall option is not highlighted anymore. It use to be, but not any more, very odd. I tried Terminal, Root Explorer but those require root and I'm on stock 2.2 Froyo (Evo 4G). I tried ADB, install it, everything is fine, I even type in "adb devices" in the cmd prompt and it finds my phone. When I type "adb shell" a "$" appears and whatever I type says "permission denied".
When I type "adb" all the adb info comes up fine, when I tried to type "adb uninstall [insert apk here] I get a "failed" or I get some Java error telling me to put Java in the path (same path as the Android SDK Tools) but I have and its still not working.
Please help!

The GenieWidget lives on /system/ and requires root to access that partition. ADB itself does not require root, but the action you want does.

Any other way to get to it? This is stressing me out. I just want to delete it and add a modify one, thats all.

Like I said, it requires root.

Dude I installed it on my phone, I've deleted it multiple times, all the sudden now I can't uninstall it.
The only thing I can think of is, it came preloaded on my phone with the 2.2 Froyo update which would make since that I can't delete it without root access.

Related

Side Loading Apps

Will we be able to put Side Loading Apps on the captivate without rooting?
Yes, you download and extract the android sdk, connect the phone to your computer and make sure you can detect it with command promt (or terminal in linux or equivalent in mac) by changing to the sdk directory then tools and type adb devices. If it comes up then type the command adb install name_of_the_file_your_trying_to_install.apk.
This worked for aria before root and has worked for the backflip community for some time, no reason to think it won't work for the Captivate. (Sorry for bad explanation, tired and might be a few mistakes in there but thats the quick version of it)
i thought rooting was required?
cropythy said:
Yes, you download and extract the android sdk, connect the phone to your computer and make sure you can detect it with command promt (or terminal in linux or equivalent in mac) by changing to the sdk directory then tools and type adb devices. If it comes up then type the command adb install name_of_the_file_your_trying_to_install.apk.
This worked for aria before root and has worked for the backflip community for some time, no reason to think it won't work for the Captivate. (Sorry for bad explanation, tired and might be a few mistakes in there but thats the quick version of it)
Click to expand...
Click to collapse
wouldn't necessarily call that "side-loading" you still wont be able to backup all your apks to the sd card and install them from the sd card if u need to wipe.
Is it not possible to pull the SD card, and copy apps to it from PC, and then put back in and install?
That would be the definition of side-loading ATT is refering to. Some people just need to be told a third, fourth, fifth time.
Thanks for the adb mention.

Let's root the i858 - ADB access is here!

Okay, I have been able to get ADB access to the I-Mobile i858; but I cannot get root. There is an SU program and Busybox pre-installed on this device. I tried changing the permissions of SU to 4755 and 6755 without success. It looked like it was trying but something is interfering with root. Maybe if we work together we can figure this out. I even modified a flash image to set the permissions when it flashed the new image. That still did not give me root.
Here is how you get ADB to connect. It is kind of a pain but at least now we can talk to the device.
1. Install the "Android Terminal Emulator" by Jack Palevich from the Android Market to your device.
2. Download the Android ADB device drivers from this link and un-rar them.
http://www.generalmobile.com/support/dstl1/DSTL1_USB_Driver.rar
3. Open Device Manager on your computer.
4. Make sure debugging is turned off on your device in Settings>Applications>Devices.
5. Open the Terminal Emulator you downloaded in step 1 and type in the following command "<enter>setprop persist.service.adb.enable 1<enter>".
6. Go back to Settings>Applications>Development on your device and turn USB Debugging on. Click OK when prompted to confirm.
7. Plug the USB cable into your i858 and then your computer's USB port. In my tests using a reliable hub is okay.
8. You will see a device under Universal Serial Bus Controllers that says either "USB Mass Storage Device" or "USB Composite Device." Watch that section in Device Manager to see which one is the new one when you plugged in your device.
8. Uninstall the Mass Storage or Composite Device that was added to Device Manager when you plugged in your computer. You do this by right-clicking it and selecting "Uninstall".
9. On Device Manager Click the Actions pull down menu and click "Scan for hardware changes".
10. If you are lucky an unknown Android Device will no be listed in the Device Manager as not working due to no drivers installed. Go to properties of this device and update drivers browsing to the folder when you unzipped the drivers downloaded in step 2 above. The Android ADB drivers will now install.
11. If that doesn't work keep uninstalling the Mass Storage or Composite Device and rescan until the Android Device appears in Device Manager.
12. If you unplug it you will have to go back to step 4 but you can skip step 5.
13. If you reboot or turn off your device you will have go to back to step 4.
14. Unfortunately, I have to do this ritual every time I want to connect to the device by ADB; but heck it sure beats having no ADB access at all.
Now that you guys have ADB access let's rock this device, root it and have some fun. I spent all day trying to root it without success. I did manage to make the phone do some weird things and reboot a couple of times. I was changing permissions for the pre-installed "su" program in "/system/bin" but obviously there is something else that needs to be done to root this device. At least we are one or two steps closer now.
Thanks for sharing with us your work
For me i just delete apps befor i flash the rom because after when the apps installed i can t delet them because there are protected.
closer66 said:
Thanks for sharing with us your work
For me i just delete apps befor i flash the rom because after when the apps installed i can t delet them because there are protected.
Click to expand...
Click to collapse
If the device was rooted then you could delete them on the phone.
I-Mobile i858 has been rooted!!!
Okay, the I-Mobile i858 comes pre-rooted but there is something wrong with the way it was setup and root doesn't work. You download a program called Universal Androot and let it re-root the device so that it corrects whatever mistakes the ODM put in that made root not work. In your browser go to the following URL and install the program.
http://bit.ly/cwNm9u
When you run the program it says the device is already rooted; but there is some problem as the rooting is not complete. So you tell the program to root the device again. After it is done the device is rooted and stays rooted after reboot. Programs like Boot Control that require root access now work. There is a SuperUser Authorizer app that will intercede the first time and ask you if you want to give root permission to that app. That is a good thing and will protect you from malicious programs getting root that can cause you all kinds of nightmares.
But, I am root and I still cannot uninstall the pre-installed apps. How do you do that even as root? I am missing something.
hey great new s thanks for your work today i went to the i-mobile shop in samui and there say rom update is official confirm to 2.1 or maybe 2.2 there dont know excactly
Now i have root thanks. But following problem when i try to delete some apps that pre installed.
Says delete it but in real do not delete the app ummm
do you have any id why i can not delete the apps??
closer66 said:
Now i have root thanks. But following problem when i try to delete some apps that pre installed.
Says delete it but in real do not delete the app ummm
do you have any id why i can not delete the apps??
Click to expand...
Click to collapse
Any pre-installed apps cannot be deleted the normal way. Install Titanium Backup from the Android Market and let it have root when requested. You can use that program to uninstall pre-installed apps with root.
Rooted! ADB! Now this device gets much more useful! Great work jboxer, thanks!
BTW the rooting app has been updated to v1.6.1
Home page:
http://blog.23corner.com/tag/universalandroot/
Download:
http://bit.ly/aa4jxJ
Follow this Link droidsans.com/node/4018

[Q] Editing file in /etc/wifi.., how?

Hi all,
Maybe some kind person can give me a hand with this:
I am trying to edit /etc/wifi/wpa_supplicant.conf (need this for some extra auth method in my university) on a HTC Desire (non HD) with 2.2 Froyo.
I rooted the phone using "revoked", and have Astro as file explorer and a shell terminal installed on the phone, and the Android SDK with abd.exe on Win764bit.
I tried editing the file directly with Astro (which does not seem to get root rights), no success.
'tried using adb, but I always end up having a no access. adb says the daemon is started successfully, but with "remount failed: operation not permitted".
Similar things happen with adb sysrw.
I googled some and a site mentioned a cat <some-file-name-i-forgot>
that should yield a 0, but yielded a 1.
Firewall on the Windows machine is off ofc. Bear with me, I'm new to Android.
anyone?
was rooting only partially done? any ideas?

[Q] how to use adb in command prompt?

Getting the SDK installed didn't come without a couple issues, but I managed finally to get it working. Now, how do I transfer files to and from my g2x? I tried "adb push c:\users\eric\downloads\Pink Floyd /sdcard/music" and nothing happens. It doesn't give me some error in the command prompt or anything it just sits there indefinitely. I saw some videos that showed a success message after the files were transferred.
Should I be in "c:\sdk\" or "c:\sdk\platform-tools" to execute the push/pull commands? Does it even matter? I tried doing it from both and I got the same results from both. I'm thinking it's just something small that I'm missing, but unfortunately I can't seem to find what that may be. HELP PLEASE!
e4e5nf3nc6 said:
Getting the SDK installed didn't come without a couple issues, but I managed finally to get it working. Now, how do I transfer files to and from my g2x? I tried "adb push c:\users\eric\downloads\Pink Floyd /sdcard/music" and nothing happens. It doesn't give me some error in the command prompt or anything it just sits there indefinitely. I saw some videos that showed a success message after the files were transferred.
Should I be in "c:\sdk\" or "c:\sdk\platform-tools" to execute the push/pull commands? Does it even matter? I tried doing it from both and I got the same results from both. I'm thinking it's just something small that I'm missing, but unfortunately I can't seem to find what that may be. HELP PLEASE!
Click to expand...
Click to collapse
For ADB Push/Pull, I place my files in the "platform-tools" folder.
It should be something like this. -
cd \AndroidSDK\platform-tools
adb devices
adb remount
adb push Whatever.apk /system/app
adb remount
adb reboot
I was using the wrong slashes like a moron. Too much Sunday beer I guess.
Sent from my LG-P999 using xda premium

[Completed] [Q] XXX Video / Droid Porn Ransomware Removal via ADB

Hello,
So long story short my brothers an idiot and installed a "Flash Player" because he thought he needed it. Now he has the "Prism FBI Child Porn/Bestiality" ransomware installed. I can get into safe mode and I am unable to uninstall the app. It is listed as "XXXVideo Droid Porn." It does not exist in safe mode under "Device Administrators" so the uninstall button is locked in normal and safe mode. I have since rooted his phone and I can gain access via ADB, I figure removing the package via ADB is my only option at this point. Within the shell I can gain Superuser access and can navigate fairly well having just learned how to do all this in an hour. So far I am having no luck locating the package or where to go at this point to remove this for him. I have tried Avasts ransomware removal tool as well as some others but none of them are working. I can get into these apps and run them normally but after about 30 seconds the ransomware starts and cuts off any progress made, and none are available in safe mode. About the only thing I can find is when I connect through the ADB Shell and list the packages I recognize all but one. It is labeled "package:ysvv.dvvsg.bfydrij." I cannot find any information online regarding this package, I even hail mary-d and tried to uninstall the package but it failed. I have also searched through the root folders looking for some hint of where it could be. If there is a way to enable one of these in safemode to try and have them run it then i cant find it. Or if there is some shell command to list packages by install date, I can try to uninstall it that way.
So any help at this point would be appreciated. Sorry if this is the wrong area but after a few hours working on it I am at a loss.
Phone: Galaxy S3
Carrier: Tmobile
Model: SGH-T999
Android: 4.1.2
vyletrakun said:
Hello,
So long story short my brothers an idiot and installed a "Flash Player" because he thought he needed it. Now he has the "Prism FBI Child Porn/Bestiality" ransomware installed. I can get into safe mode and I am unable to uninstall the app. It is listed as "XXXVideo Droid Porn." It does not exist in safe mode under "Device Administrators" so the uninstall button is locked in normal and safe mode. I have since rooted his phone and I can gain access via ADB, I figure removing the package via ADB is my only option at this point. Within the shell I can gain Superuser access and can navigate fairly well having just learned how to do all this in an hour. So far I am having no luck locating the package or where to go at this point to remove this for him. I have tried Avasts ransomware removal tool as well as some others but none of them are working. I can get into these apps and run them normally but after about 30 seconds the ransomware starts and cuts off any progress made, and none are available in safe mode. About the only thing I can find is when I connect through the ADB Shell and list the packages I recognize all but one. It is labeled "package:ysvv.dvvsg.bfydrij." I cannot find any information online regarding this package, I even hail mary-d and tried to uninstall the package but it failed. I have also searched through the root folders looking for some hint of where it could be. If there is a way to enable one of these in safemode to try and have them run it then i cant find it. Or if there is some shell command to list packages by install date, I can try to uninstall it that way.
So any help at this point would be appreciated. Sorry if this is the wrong area but after a few hours working on it I am at a loss.
Phone: Galaxy S3
Carrier: Tmobile
Model: SGH-T999
Android: 4.1.2
Click to expand...
Click to collapse
Your best bet is gonna be to fully wipe the device. Then reload the rom.
[Solved!]
zelendel said:
Your best bet is gonna be to fully wipe the device. Then reload the rom.
Click to expand...
Click to collapse
Actually I was able to do it without wiping the phone.
I just navigated to /data/app and did the "rm" command on the suspicious package and it worked. The prism ransom ware became broken and I was able to boot up normally and delete the broken piece of the app.
-----
adb shell
su
pm list packages -3 [found the start of the ransom ware]
cd /system/app
ls [found the ransomeware .apk file here]
rm /system/app/ysvv.dvvsg.bfydrij-2.apk
------
Then it worked

Categories

Resources