Hello!
I am trying to print UIDs under which the currently running apps/processes run and i am having problems since android doesn't have files like /etc/passwd. I want to know if it is possible to get UID(number) from "system","radio","root", ... in adb shell.
Thanks!
Related
I would like to log into the phone from the desktop. I had hoped that it would be able to start an ssh or telnet deamon on the phone?
Yes this is possible via dropbear.
I had it installed to autostart when phone booted until recently
I'ts kind of useless though since it's a lot laggier than adb shell so I got rid of it.
So i recently flashed the new "stock" gingerbread ROM, but it comes with all the bloatware. I was trying to remove the bloatware through windows command prompt/adb but after i push the old hack to get root (psneuter) and try to run it, i get the error: Failure to set prot mask <Inappropriate ioctl for device>. How do i get root access though adb with the new gingerbread rom (The adb shell still shows # instead of $)?
My TB is still rooted on the phone, i just want to remove the stock apps from my computer which is a lot faster. Thanks
Why don't you just flash a debloated gingerbread rom? And if your phones rooted just use root explorer from market to delete system apps.
So I don't use adb push/install all that often but since I deleted mobile hotspot on my phone (I thought I had it frozen but apparently I didn't) I cannot upgrade my system.
I am rooted, and have tried installing from an emulator on the phone (and shell) as well as installing from and adb on the PC.
When I try to adb remount I get the following error:
remount failed: Operation not permitted
I have re-rooted thinking that an early version of root wasn't rooted for adb and also hoping that would let me install via shell. How can I get Mobile Hotspot back on?
Ok, so I was able to run a mount from terminal and copy the files and get the upgrade to go through.
So does anyone know why adb remount doesn't work? Is it because of the Moto Blur?
I read somewhere that in order to get Wi-Fi working you need to ssh in to the phone and then run some commands? anyone know specifically how this is done?
Plays2 said:
I read somewhere that in order to get Wi-Fi working you need to ssh in to the phone and then run some commands? anyone know specifically how this is done?
Click to expand...
Click to collapse
You're not going to be able to ssh into it until after you get wifi working. You can port ssh through adb but you may as well just use adb shell.
As root:
Code:
adb shell
adb ubuntu_chroot shell
You can then debbug the networking (hopefully you have more luck than I'm having.
Dear Sirs/Madams,
I'm new to Android development and I'm writing my very first Android apps but recently I have encounter the below problem:
I want to call reboot command in non-rooted phone but as you know, reboot command needs root permission.
I want my app to run in both rooted and non-rooted phones. For rooted phones there is no problem.
However for non-rooted phones, I am trying to find a way to restart it without root permission.
I have been thinking of calling shell command in non-rooted phones (E.g, adb shell reboot), but I don't know how to put the script file
to an apk file and excecute the script within java code.
Therefore I'd like to ask for your help to solve this problem.
Thank you very much