[Q] How does the Eclipse emulator deal with root access? - Android Software Development

I'm working on (really about to start) an app that will require root access. Does the emulator in Eclipse already handle that or do I need to do something special?

I've seen some CM 4.x system images but haven't been able to successfully run them.
Would be cool if someone is able to create a 2.2 system image for the emulator with root.

Are you saying that you can't really write an app that requires root in eclipse, or that it wont run in the emulator?
Either way, so how do you test an app that requires root access?

you can use eclipse as normal, but you will need a custom emulator image to test it ( or a physical device).

Thanks for the help britoso. I can test it out on my own X, but I still wonder what everybody else that develops root apps runs it on through the development stage? Transferring it over to your phone for testing seems both time consuming and potentially risky.

Related

testing a root app on emulator with custom rom

quick question...i want to start writing a root app, but i want to test it on the emulator through eclipse. i suppose i'd need the device to emulate the rooting too. is that accurate and even possible?
can i "flash" cyanogen's mod to one of the android virtual devices?

[Q] Unable to run Terminal Emulator on adam

Alright,
I'm starting to feel like a complete fool, as I seem to have lost all of the knowledge or ability to solve complications that I had gained from working with XDAndroid on my phone.
I'm trying to use the wpa_supplicant directions as mentioned in the other thread I started in the wrong section, here: http://forum.xda-developers.com/showthread.php?t=930163
I need either adb access(Which I can't get working right[Edit: This may be issues from the first time I installed it in win7, I'll keep fiddling with this, but I'd still love to see others chime in on terminal usage]) or terminal access to get in and modify the file to allow ad-hoc tethering.
However, when I run terminal emulator, it force closes with "Sorry! The application Terminal Emulator (process com.android.term) has stopped unexpectedly. Please try again."
Has anyone been able to get any terminal to run on the adam? Everything I've read says that it's pretty much superuser access already, but that could be wrong.
All help appreciated.
You should be changing the supplicant on your phone not Adam to get Wifi tether to function right...
But to get Android Terminal to function with root on Adam you need to be root and unlocked by using the Eden Plus guide or some similar method. Once you have root and unlock you will need superuser app to give root permissions to Android Terminal. Then Android Terminal should function as expected.
Forgot to add, you could also use ADB instead of Android Terminal on Adam. Would probably give you the same thing but might be easier to use.

app got FC in phone, but works in Emulator

Hi there,
I wrote a small program for my phone, and it runs well on the android emulator. But when I install it on my phone, it got FC.
This program requires root authorization. My phone is rooted of course.
I just started learning the android programing. So wondering is there any method to debug on phone?
Thanks a lot.
geeti said:
Hi there,
I wrote a small program for my phone, and it runs well on the android emulator. But when I install it on my phone, it got FC.
This program requires root authorization. My phone is rooted of course.
I just started learning the android programing. So wondering is there any method to debug on phone?
Thanks a lot.
Click to expand...
Click to collapse
Logcat is your friend or try the tools from the SDK
First off, make sure the phone isn't just waiting for the debugger to attach... this has confused me in the past (and I've closed out before the FC thing went away).
Otherwise it might be a permission you forgot to give the app, something simple. (Usually it's the simple stuff, actually.)
You should be able to debug the app using eclipse.
Other than that logcat is really an invaluable tool for crashes. If you can't decipher it yourself, feel free to upload it here and we'll take a look.
geeti said:
Hi there,
So wondering is there any method to debug on phone?
Thanks a lot.
Click to expand...
Click to collapse
The debugger should work on your phone exactly the same way as it does in the emulator. Just make sure you have USB Debugging turned on.
The most common reason for FCs is that the app does not have the permission to do something. AFAIK the app does not require all the permissions when executed in the emulator. (e.g. vibration)

[Q] VZW Galaxy S5- Android 5.0- Root question

it has become brutally obvious Towelroot will not work on my device (Galaxy s5 Android 5.0 Verizon )
I have successfully rooted a few Android devices but sadly no longer have access to a windows machine.
is it possible to root one Android device using another? i.e. using an Asus Transformer tablet to root S5 manually?
obviously Android devices cannot run .exe files - this is where I have a problem. Assuming this is impossible, is there anyway to utilize Terminal alone to gain SU access, or is this simply NOT a stand-alone process?
all I want is to enter "$ ls /sbin" and see the magical "#" appear =) - rather than the scathing "permission denied."
hopefully I won't get deleted, almost everything on rooting the s5 on google is completely outdated for older android versions. I know there is a way to backdoor with an older software version (before the OTA rendered Towelroot useless) and somehow move from there.... this seems like a ton of work just to get root...
thanks!

Non-root acccess to /proc/net/{tcp,tcp6,udp,udp6} in Android Q

Up until Android Pie it was possible to read the /proc/net/{tcp,tcp6,udp,udp6} files from apps targeting API level < 28. Access from apps no longer seems to work in Android Q, although the files are still readable using adb shell as a non-root user.
Is there a new permission or something else that apps need for that access?

Categories

Resources