I'm currently trying to develop an application for Android devices on an Android Emulator. I installed Android 4.3 on a VMWare Workstation, on a Windows 10 OS.
I want to test the app I'm developping on the Android emulator, so I have to create a bridge connection between my phyisical computer where I develop the aps, and the emulator, where I can test it. But when I try to create this bridge, I have to change settings and to be root of the emulator. When I try to do a 'su' command, I have the following error :
'su : uid 10000 not allowed to su'
I tried to follow this tutorial to give me the root acces of the emulator, but it didn't worked for me. The best answer is to execute this commands :
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
How to get root access on Android emulator?
More over, When I did the installation of the Android Emulator, I've done the installation specifying the read-write option.
It is not working for me, because when I try the first row, I obtain this message :
ADB error : 'device not found'
Such as it is described in this link :
How to fix: Error device not found with ADB.exe
But the answer exists for a phone, and not for an emulator. Do you know how to fix it ? How can I be root, and how can I found the 'device not found' ?
Here are the different parameters of the VM
su stands for super users which is available only on rooted device. it is more like using android application with administrator privilege.Try using BLuestacks rooted version.
Related
I am running android app from android studio but failed to installed. Although I have uninstalled the app from mobile and have enough memory space in the mobile.
. Please What should I do. I have attached the alert .
Thanks
If your device is rooted you can try deleting your application's data from the device. To do so, delete /data/data/[app package name] folder or run adb shell rm /data/data/<app-package-name>. Then, try to install your app again.
For non-rooted device:
Change the ApplicationId of the app. Refer this link to change ApplicationId.
Build and install the app. The app will install successfully because it is treated as the new app.
Now uninstall this app which will clear the data.
Now change the ApplicationId to the previous one.
Build and install. It will install.
For rooted device:
Just delete
"/data/data/your.package.name"
on your device
I have just installed android studio on my computer and when im trying to run the basic program of just a blank activity (API 15) with a text box on my LG g4 phone i get this error on the Run section:
Target device: lge-lg_h815-LGH81599f1bbcd
Installing APK: E:\MyAndroid\MyApplication2\app\build\outputs\apk\app- debug.apk
Uploading file to: /data/local/tmp/com.example.yovel.myapplication
Installing com.example.yovel.myapplication
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.yovel.myapplication"
/system/bin/pm[6]: app_process: not found
Launching application: com.example.yovel.myapplication/com.example.yovel.myapplication.MainActivity.
DEVICE SHELL COMMAND: am start -n "com.example.yovel.myapplication/com.example.yovel.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
/system/bin/am[8]: app_process: not found
I have searched all over the internet for a solution but couldn't find anythnig.
Things i have tried :
Restarting Android studio
Reinstalling Android studio
Install everything in the SDK manager
I have also tried to run the project on my brother's phone (LG g3 beat) from the same computer and everything worked out fine..
Help Please :(
I've got a problem with the emulator in Android Studio. I took the version with the ARM Systems Image.
When I started the app, this error came into the run-app console on the bottom:
Target device: Nexus_S_API_23_2_ARM [emulator-5556]
Installing APK:C:\Users\Martin\AndroidStudioProjects\MyApplication4\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/com.example.martin.myapplication.app
Installing com.example.martin.myapplication.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.martin.myapplication.app"
Error: Could not access the Package Manager. Is the system running?
DEVICE SHELL COMMAND: pm uninstall com.example.martin.myapplication.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.martin.myapplication.app"
com.android.ddmlib.AdbCommandRejectedException: device 'emulator-5556' not found
I would suggest you to use Genymotion emulator. Its fast as compared to the emulator provided by Android studio. Search about Genymotion. Its really awesome
I've fully searched this site in order to solve my problem without any success.
My device is Sony Xperia Go (ST27i)
When I want to run my android application in Eclipse, I get this error:
No active compatible AVD's or devices found. Relaunch this
configuration after connecting a device or starting an AVD.
But I can see my device name in "device list" linked to USB ports.
Can you please help me about this problem?
Thank you.
see the
<uses-sdk
android:minSdkVersion="see here"
android:targetSdkVersion="see here" />
for compatibility in your manifest
Can you connect to your device? Try this from the command line:
adb shell
If this fails try this as root:
killall adb
adb shell
For future readers may have this problem:
I've installed Sony PC Companion and now I can use my phone in order to test the application.
Configuration
Os: OSX
IDE: Eclipse Juno
I don't know why but when I try to run again my Android app, the "Android Device Chooser" frame opens but my emulators are not shown in "Choose a running Android device" section. What should I do ?
Goto the DDMS view and try resetting the ADB as shown---
Please check the required API levels of the application and than on the device.
Try to run following commands in terminal that will renew the adb server state :
adb kill-server
adb start-server
You can try to use adb over the wifi and than no cables will needed.