I'm trying to sideload a pandora apk and i'm running into an adb error that i don't understand.
Steps taken:
adb installed on PC
drivers installed on PC
phone has USB debugging ON
phone connected via USB to PC
adb devices: shows my device attached properly
adb shell generates a prompt: "OnePlus6T:/$
pm install -i "com.android.vending" -r /sdcard/download/pandora.apk
The last command to install generates the following error: <avc: denied (read) for scontext=u:r:system_server:s0... (see attached screenshot).
I've tried different locations such as /sdcard/pandora.apk and tried different apk files with the same result.
Thoughts?
Related
Hey Guys,
I Clockwork3'd my Aria, but I wanted to update my sources (thread 730398) so I can get non market apps. When I follow the instructions in that post I get an error:
Code:
./adb remount
remount failed: operation not permitted
'adb devices' does show my Aria's SN, I'm su'd and I'm running in debug mode. I also chowned everything in the android sdk tools and its subdirectories.
Here's the question -
In searching, I found (thread 614645) that suggested ro.secure wasn't set properly, and sure enough if I do:
Code:
./adb shell
$ getprop ro.secure
1
$
Shouldn't applying clockwork have set that properly? Would the instructions at (thread 8041739 post 9 ) be the right steps to resolve this on an Aria?
Thanks!
PS - sorry I can't post direct links.
if you have all the drivers installed, it should work...
which OS are you using?? (Mac, Win7, etc)
dont rund SDK command in Clockwork, with phone on connect data cable and select "charge only" when asked.
the ./ command is used for Linux i think, i never got that command to work either. just go to the folder where SDK/Tools is located in CMD prompt or Terminal(depending on the OS) and run the following command:
adb remount
hope this helps a bit
I had a lot of issues with driver installs on Windows 7, so I'm doing this on a netbook with Ubuntu netbook remix. Also tried the reflash CD, similar issue.
Right, so with Ubuntu, and the cable my phone came with (have tried a few others just in case)
1. phone on and operational
2. plug in to laptop
3. phone gives happy USB connected and Charge Only notifications
4. fire up terminal window, and su
5. type ./adb remount
and I get the error above. If I do kill-server to refresh it, I get the demon starting successfully on port 5037.
Yeah, I was hoping I'd just missed something stupid. Should I need to modify the boot.img file outside of what Clockwork did?
My symptoms match those described in thread 685146 post #3, however, I've only applied Clockwork (which seems to work) not done anything else funky.
I have my windows 7 machine at the same point now -
adb remount gives 'remount failed: operation not permitted'
and
getprop ro.secure at the adb shell returns 1.
I think this means there's something wrong on the phone, if both machines act the same.
One other data point, I noticed the new Superuser Permissions app that installing clockwork gave me is asking to give superuser permissions to /system/bin/sh when I try to run the adb shell, but it doesn't trigger that when I do the adb remount.
Not sure what this means, any ideas most welcome - TIA!
steps here fixed it, thanks - http://forum.xda-developers.com/showthread.php?t=730398
ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere
I am running on a Mac (OSX Lion) and have installed android-sdk-macosx.
I am trying to connect to a Kindle Fire 6.2.2
However, this is as far as I can get:
Code:
bash-3.2# ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
bash-3.2#
As you can see, no devices show up.
I have tried switching cables, USB ports, reboot the device and my machine... banging my head against the wall.
Nothing works.
I have read about 29 pages of posts through this forum, and Googled it.
No dice.
Any suggestions?
would not use the sdk at all - if you use the mac/linux version of kfu you save a lot of time and space - you don't need to use kfu if you don't like to - but all commands you'll ever need are in the tools folder of kfu - it also includes drivers and setup scripts - maybe give it a try:
http://forum.xda-developers.com/showpost.php?p=21369040&postcount=653
mkdir ~/.android
echo 0x1949 >> ~/.android/adb_usb.ini
ADB needs this entry to see the Kindle Fire no matter what OS you're on.
right - there is also a installation script for this included in the pack - install.sh if i remember right
took the advice above and it's still not working for me. i have the same exact problem. when i try to run install_drivers.sh i get:
cp: drivers/adb_usb.ini: No such file or directory
Done!
logout
[Process completed]
When I run KFU i get:
/Users/donaldclark/kfu/run.sh: line 84: seq: command not found
please help
as far as i know (don't own a mac) you have to call the commands with
./ from terminal window - eg ./run.sh
I also got the same error message at line 84 running the install script in OSX 10.6.8
-E
it's from eratosthene - give him a pm - i'm shure he can help you
http://forum.xda-developers.com/member.php?u=1616763
Try remove the usb driver from your device and re-install gain.
I use Kindle_Fire_Utility_MacLinux_0.9.2 3 with adb.mac
and its located right inside my root directory (not under users) step before.
I went to the files and I opened file called
install_drivers.sh
I did deleted everything behind -p and just dragged
the adb_usb.ini (its located in drivers) into that install_drivers.sh script and I hit save.
thats how it looks like
mkdir -p /Kindle_Fire_Utility_MacLinux_0.9.2 3/drivers/adb_usb.ini/adb_usb.ini
Than I just run adb.mac and all is operational
my kindle was rooted with burittoroot2
If you need those files send me a pm I have them in my dropbox.
somboonr said:
Try remove the usb driver from your device and re-install gain.
Click to expand...
Click to collapse
there is no uninstalling drivers like in windows.
line 84 SOLUTION
Incarnate609 said:
took the advice above and it's still not working for me. i have the same exact problem. when i try to run install_drivers.sh i get:
cp: drivers/adb_usb.ini: No such file or directory
Done!
logout
[Process completed]
When I run KFU i get:
/Users/donaldclark/kfu/run.sh: line 84: seq: command not found
please help
Click to expand...
Click to collapse
Regarding the "run.sh: line 84: seq: command not found", I found out that the "seq" command is not recognized with MAC OS... so I did a search and replace, replacing "seq" with "jot -". Now it works.
Reference: Search google for seq and mac
What worked for me.
I had the same problem after updated the sdk on my MacBook Mac OSX 10.6.8
cd to the tools directory (where android program is located)
run:
./android update usb
./android update adb
then edit the ~/.android/adb_usb.ini file and add 0x1949 as the last line (your previous adb_usb.ini file is overwritten by the above commands).
I am trying to sideload the new 7.1.1 OTA image from Google. When I run the command adb sideload [PATH TO UPDATE]\updatefile.zip it comes back with:
loading: 'update.zip'
* cannot read 'update.zip' *
File Permissions are all OK
The platform-tools have been updated using sdk-manager
ADB devices shows the device.
The phone is encrypted (I am guessing this is the issue)
Any help would be appreciated.
hideous said:
I am trying to sideload the new 7.1.1 OTA image from Google. When I run the command adb sideload [PATH TO UPDATE]\updatefile.zip it comes back with:
loading: 'update.zip'
* cannot read 'update.zip' *
File Permissions are all OK
The platform-tools have been updated using sdk-manager
ADB devices shows the device.
The phone is encrypted (I am guessing this is the issue)
Any help would be appreciated.
Click to expand...
Click to collapse
Just checking the obvious....but updatefile.zip is in your computer that's executing the ADB command, not on you phone, correct?
edit: Also, is your ota file actually named updatefile.zip?
Phone's encryption doesn't matter here.
Yes, I am running this from my computer. I have tried the original name for the OTA (also tried downloading it multiple times)
Also the phone is completely stock with a locked bootloader.
EDIT:
I turned on Tracing and this is the full error:
c:\Users\user\Nexus6P\ROMS\OTA>adb sideload angler-ota-nmf26f-61b4a915.zip
adb I 15200 3428 adb_trace.cpp:169] Android Debug Bridge version 1.0.36
adb I 15200 3428 adb_trace.cpp:169] Revision 302830efc153-android
adb I 15200 3428 adb_trace.cpp:169]
loading: 'angler-ota-nmf26f-61b4a915.zip'adb I 15200 3428 sysdeps_win32.cpp:145] load_file: could not allocate 1331770063 bytes
* cannot read 'angler-ota-nmf26f-61b4a915.zip' *
Are you on Windows 10? Experienced this issue yesterday and I also searched a long time.
In the device manager, my device showed up as "LeMobile Android Device", because this seems to be the newest Android driver. ADB is not working correctly with the LeMobile drivers. Had to switch back via "Use previous drivers" to the Nexus 6P drivers, then it worked like a charm.
The OTA image needs to be in the platform-tools folder along with the adb executable. Then Shift/right- click in the folder and select "Open command prompt here". Next type the command "adb sideload angler-ota-nmf26f-61b4a915.zip" without the quotes, this after selecting "Apply update from ADB" from the recovery menu. You may need to unplug your phone, and then plug it back in if the command fails.
Hi everybody, i'm trying to install adb on my linux pc but when i launch the command adb devices, the list of the attached devices is empty, how can i solve it?