[Q] Editing file in /etc/wifi.., how? - Android Software/Hacking General [Developers Only]

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?

Related

ADB USB Driver

the USB driver for windows is available at:
http://dl.google.com/android/android_usb_windows.zip
It seems to work... I will update this thread with what I find.
Thanks for posting the driver!
I've tried a few things with adb, and so far I can't get an install to work over usb. I tried the following command.
C:\...\android-sdk-windows-1.0_r1\tools>adb install OperaMini.apk
579 KB/s (0 bytes in 278155.000s)
pkg: /data/local/tmp/OperaMini.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Click to expand...
Click to collapse
http://www.android-freeware.org/tutorial/how-to-install-apk-files-on-android-device-emulator Had some basic info about the emulator, not sure what would be different for the G1.
The "adb shell" option allows you to access a shell on the phone over USB, which is really great but it appears you don't have root privileges. Any ideas on how to obtain root priveleges? Also, is there a command to install from the android shell? When i cd to /sbin i get access denied. I'm trying to figure out some kind of way to invoke an install either from the device or over USB.
I have the same problem... working on it now...
I don't know about the USB installs, but it seems to be something with the APK as well. I also have the OperaMini.apk and it does nothing. I downloaded the iTunes remote via the G1 and it installed just fine without getting a PC involved.
It looks like you have to put the phone into a "Debug on USB" mode to use ADB. It's working for me now.
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Thank you dagentooboy!
Can someone explain this for this not so savvy person?
chrimage said:
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Click to expand...
Click to collapse
I think that is caused by an issue with the the AndroidManifest.xml file within the APK having to do with going from "beta" to "live" Android. The same reason most of the apps were pulled from the store. I don't believe it takes a major change to make it compatible, but it's fully compiled so, unless you have a decompiler, I think we may be out of luck on that particular one. I have installed other apk's successfully using the same method.
Mikey1022 said:
Can someone explain this for this not so savvy person?
Click to expand...
Click to collapse
ADB is the Android Debug Bridge that comes as a part of the SKD. I don't think it was really intended as an end user tool. It has to be called from a command line. I know people have built basic UI's for it for file manipulation when the SDK was the only thing out there. If a better solution isn't found shortly I think we'll see one be made, or else I'll make one myself. In the end it seem to make a big difference of what you're trying to install some things work and some don't, there are some differences between the beta SDK and the G1.
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Valicore said:
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Click to expand...
Click to collapse
the su command and sudo su returns "no permission" or "access denied" or something like that. That is also the same message i get when typing arbitrary commands that shouldn't be anything. And like i said earlier, /sbin along with many other directories are inaccessible. Hopefully someone will find a way to access the root account on the G1 pretty soon.
yes... must... have.... root...
Also a normal shell would be helpful esp when looking thru /proc/ for information.
Please help (ahhhhhh)
Okay So I am pulling my hair out here... I just booted android on my Vogue for the first time, everything works great, voice calls and sms.. But I can get a Inet connection but I am using Cricket not sprint so I added the username and password lines in default.txt and can connect, but Cricket uses a proxy for all http connections. So I found this article http://fggarcia.blogspot.com/2007/11/setting-up-proxy-for-android-emulator.html , which basicly says to use the adp app that comes in the sdk to add some lines to make the proxy. NOW, here is my problem... I can not for the life of me get my come (in windows or linux) to see my vogue while its in android..
In windows it does not appear ANYWHERE in the device manager... So I cannot install the driver, and in Linux it doesnt make a blip in dmesg..... USB debugging is marked and so is use adb....
It does charge when plugged in to the comp running linux.....
Can anyone please help me... And thanks to DZO and everyone else for there hard work on this project..
check too make sure your Android isnt listed under usb mass storage devices in device manager.
Ya USB isn't possible on Vogue yet, I just extracted data.img and added the proxy that way, but it still doesn't work. My Problem is I need all connection to use the proxy wap.mycricket.com:8080. I am not trying to be cheap or anything like the tzones thing for tmobile. Its just the only data plan cricket have use this proxy. So any Ideas would be greatly appreciated.
my computer already had a driver installed and when i try to update it with this one it says there is no better match for my hardware
anyone got a solution for this
Im really sorry to bump this old thread up but i need the r3 drivers and i dont know why they are nowhere to be found on the official page... i think its a region lock thing...

Does ADB require rooting your phone?

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.

best way to sideload on mac?

hello. ive been reading on different forums on the best way to sideload apps on captivate on mac. ive read about sideload wonder machine but seems ppl have problems... seems ppl r being more successful on pc.... if i were to run parallels then win 7 and try to use sideload wonder machine on pc will it work? im still reading on how to use commands, and terminals and cmd lines and all that . im new to android but familiar with winmo phones and jailbreaking iphones. so if anyone can help me or point me to the right direction, it is greatly appreciated! on a side note, i use parallel's and ran win 7 and dl droid explorer to try and delete some at&t bloatware but no go. when i try to delete it nothing happens... so i dont know what to do! lol. im rooted and all. i wanna have sideload next! thanks again guys!
1. Install Android SDK for Mac
2. Using Terminal CD to android-SDK/Tools directory
3. place your apk file in the tools directory
4. In terminal type: adb install file.apk <where file.apk is what you want to install>
This is the manual way on windows and this is what sideload wonder does for you. If you want to learn - this is the best way to start. ADB is easy, and it opens up the gateway for everything else.
YOu can probably find a more detailed tutorial on using ADB commands in Mac.
ADB is what lets you copy system files off the phone, change permissions, get access to the systems.db where you can allow sideload from phone, etc.

[Q] su errors when trying to root

hello, I have been trying to root my motorola backflip 1.5 for over a week now with no luck. I have been trying the rageagainstthecage-arm5.bin method and it seems to run fine but when I run su in the terminal emulator it gives me the following error:
bionic/linker/linker/.c:1581| ERROR: 7265 could noot load ´libbinder.so`
bionic/linker/linker/.c:1641| ERROR: failed to link su
bionic/linker/linker/.c:1741| ERROR: cannot link executable `su`
I am trying to root my phone so I ca update it to 2.3 but I can't complete the rooting process, can someone please help me!
try superoneclick
I tried superoneclick, same results!
god damn it....... search xda for rooting methids then if you keep getting su errors then you might not be able to root the phone
jose_am said:
hello, I have been trying to root my motorola backflip 1.5 for over a week now with no luck. I have been trying the rageagainstthecage-arm5.bin method and it seems to run fine but when I run su in the terminal emulator it gives me the following error:
bionic/linker/linker/.c:1581| ERROR: 7265 could noot load ´libbinder.so`
bionic/linker/linker/.c:1641| ERROR: failed to link su
bionic/linker/linker/.c:1741| ERROR: cannot link executable `su`
I am trying to root my phone so I ca update it to 2.3 but I can't complete the rooting process, can someone please help me!
Click to expand...
Click to collapse
Well bionic is the android version of the libc programming library and libbinder.so is a library of some kind, which it can not load, either because it is not there, or not where it is looking for it, or not accessible due to permissions or an incompatible library for your system.
No idea how to fix it though, but thought i would shed some insight.
Hello there well I'm using superoneclick and I found that its not putting the su exe in the right place it puts it in (/system/xbin/) and where it should go in /system/bin where all the commonds are.?
Are you sure that you're rooting it correctly?
Please make use of the instructions below .
Download Super One Click, make sure you have the Android debugger (SDK developer kit) running, expand the Super One Click zip file and click the SuperOneClick icon to run it. When SuperOneClick launches, you’ll see several large buttons at the top of the screen. Make sure your phone is connected to the computer via USB and that the debugger can “see” it (activity will start logging). Make sure your SD card is not mounted, and go ahead and click “Root” in SuperOneClick.
You’ll see the scrolling activity as SuperOneClick does it’s job, with “OK” appearing after each task. You may see warnings, but so long as it doesn’t “hang” on waiting for device, things should keep scrolling until it finally returns the “Success!” message. If you're stuck , go to your phone and enable usb debug and disable again . Until you get past it , that's how i got it to work for my phone.
At this point, check out the installed apps on your phone and you should see a “Superuser” icon that looks like a Droid skull and crossbones. If you see it, you’re rooted. If you don’t see it, reboot the Droid. In fact, I’d suggest rebooting even if you do see it, as I had some issues getting rooted apps to work until I actually rebooted my own device.

android rooting without a pc ?

hi, is it conceivably possible to root a fone with something like connect-bot. since it's local command-line shell has access to the directory tree above /mnt/sdcard , couldnt someone download the files needed for the root to the fone via the web browser and copy them to the correct locations with something like connect bot ?
i am new to android so i am wondering if there is a hole in my theory ?
thanks,
Depends on the phone really. Some need to flash files you normally can't while OS is still up. Some, perhaps?
There are root deployment applications which can be ran on some phones
Sent from my Verizon Supersonic using XDA App
thanks, i wonder if there is a roster of files that need to be updated/ replaced for rooting a 'samsung galaxy s2 epic 4g touch by sprint' (i hate that name).
the reason why i ask is because since android has a perfectly capable linux command-line and file browser then there is no need for windows. (i managed to install heimdall on fedora but i have a suspicion that the apb just runs the commands as if it was run directly on the fone).
Most of the phones need to connect into PC usb port... unfortunatelly
The way of rooting depends on which android version you are using. Some exploits allow applications to get root privilege; others, like psneuter(2.1) or zergRush(2.3.3) work restarting the ADBd with root privileges by making it believe it's running on a test(rooted) phone.
On the first case, I remember an application called "Universal Androot", which I used to root my first Android phone, SE Xperia X10 mini, when using Android 1.6. That app exploited some security error on the system, and gained root itself, so I rooted my phone without need of a computer. Also, for 2.3 API Level 9, I think GingerBreak has an android app which does the same.
For the second type(the most common), it's necessary to use a computer, as the only way to get the root privilege once exploited is via the ADB console "adb shell". The other processes will remain running with their original privileges.
^ thx for the explanation. kinda' like you cant upgrade the kernal of a running system.
hmm that would be nice if someone sort this out..
Like Z4?
HTC Thunderbolt running MIUI
sort of, but more related to android security: exploits like psneuter & zergRush attack ADBd to make it run as root. other exploits, like gingerbreak, give root privileges to the application which run the exploit(somehow equivalent to running "su" on the terminal)
Sent from my MK16i using XDA App

Categories

Resources