Hello all,
I'm attempting to fix an issue I've had since updating to Android 4.3 on the Nexus 4 (clean wipe) and restoring some apps with Titanium. Since then, I noticed I cannot download any apps from the Amazon Appstore. I receive the following:
There was an error while downloading XXXXXX . Please try again. <OK>
Click to expand...
Click to collapse
Deleting data, cache, Dalvik cache, uninstalling the app, and re-installing, do not solve the issue. Research indicated the issue could be caused by the 1-click settings for Amazon, but enabling and changing both that and the Mobile 1-click did nothing.
So I went into the logcat, and found this:
Code:
E/AmazonAppstore.DownloadTask(12529): ... 9 more
I/AmazonAppstore.DownloadTask(12529): finish(FAILED, DownloadTask:MSG_EXCEPTION:
/storage/emulated/0/Android/data/com.amazon.venezia/files/apks/1272d3ae-4a98-46
bc-a73f-0df13367f194.apk: open failed: EACCES (Permission denied)) called
I/AmazonAppstore.DownloadService(12529): downloadTaskComplete, id = 20
I went into the Shell of my device, and found the following as my /storage/ directory:
Code:
[email protected]:/storage $ ls -l
ls -l
dr-xr-xr-x root root 2013-08-17 10:28 emulated
lrwxrwxrwx root root 2013-08-17 10:28 sdcard0 -> /storage/emula
ted/legacy
It looks like the Amazon Appstore is trying to hit a directory that doesn't exist: /storage/emulated/0/Android/data/
I don't know if anyone else has this issue, or why my Appstore keeps trying to hit a directory that doesn't exist, but I'm going to attempt to symlink the path it is looking for. Please advise if there's any issues with this, or if anyone has any suggestions.
Weird, why would the directory show as root, but not as the shell?
Code:
[email protected]:/storage/emulated # ls -l
ls -l
drwxrwxr-x root sdcard_rw 2013-08-11 18:29 0
drwxrwxr-x root sdcard_rw 2013-08-11 18:29 legacy
[email protected]:/storage/emulated # exit
exit
[email protected]:/storage/emulated $ ls -l
ls -l
lrwxrwxrwx root root 2013-08-17 10:28 legacy -> /mnt/shell/emul
ated/0
Resolved
After further inspection, the folder exists but can't be accessed. I tried making a now folder to the com.amazon.venezia folder but kept getting permission denied. So I uninstalled all Amazon apps and tried to get rid of the directory.
I tried removing the folder with a file manager, no go.
I tried with root, no go.
Finally I rebooting to recovery and from a shell I rm -rf'd the mofo.
I'm going to install the Appstore and see if it works now.
Update: Yup, I'm able to install everything now. Hopefully my little adventure here helps anyone else that runs into this same odd problem.
xantonin said:
After further inspection, the folder exists but can't be accessed. I tried making a now folder to the com.amazon.venezia folder but kept getting permission denied. So I uninstalled all Amazon apps and tried to get rid of the directory.
I tried removing the folder with a file manager, no go.
I tried with root, no go.
Finally I rebooting to recovery and from a shell I rm -rf'd the mofo.
I'm going to install the Appstore and see if it works now.
Update: Yup, I'm able to install everything now. Hopefully my little adventure here helps anyone else that runs into this same odd problem.
Click to expand...
Click to collapse
I've flashed four roms today to try and resolve this, can you please detail exactly what you did?
Thank you
edit
OK I couldn't find /storage from TWRP command line so I booted back up, uninstalled the amazon app, using root explorer I renamed the folder. Reinstalled amazon app and it worked.
So thank you for the heads up
Glad you got it working! The issue is definitely related to the Amazon folder permissions being messed up.
Seems the solution is completely removing the folder or renaming it.
I'm glad my documentation helped.
Question...
I am having the same issue, and I would like to get your help, if I may.
Which folder are you refering to in this post, are you pointing to the com.amazon.venezia folder?
Where can I find this folder?
xantonin said:
After further inspection, the folder exists but can't be accessed. I tried making a now folder to the com.amazon.venezia folder but kept getting permission denied. So I uninstalled all Amazon apps and tried to get rid of the directory.
I tried removing the folder with a file manager, no go.
I tried with root, no go.
Finally I rebooting to recovery and from a shell I rm -rf'd the mofo.
I'm going to install the Appstore and see if it works now.
Update: Yup, I'm able to install everything now. Hopefully my little adventure here helps anyone else that runs into this same odd problem.
Click to expand...
Click to collapse
cso5874 said:
I am having the same issue, and I would like to get your help, if I may.
Which folder are you refering to in this post, are you pointing to the com.amazon.venezia folder?
Where can I find this folder?
Click to expand...
Click to collapse
I believe I was referring to:
/storage/emulated/0/Android/data/com.amazon.venezia/
If you are re-installing it, you may delete any com.amazon.venezia folder.
Related
Hi,
I tried to copy an API to /system/app, but when I did that, the screen just blinks, and the file is not pasted into the directory.
I had temp root, and had remounted R/W.
I eventually was able to do the copy by using ES Explorer, but not with RE itself.
Does anyone have any idea what might be wrong?
Thanks,
Jim
Don't know if this helps but... I recently tried to do some copying of files using AndRootFile, and RootExplorer. And like you they did not "take". I finally figured out that after I selected a file to copy, I would use the back arrow button to move to the target folder. This was the problem. When I used the Parent folder icon instead to move back out of the folder, and move to the destination folder without using the back arrow button. the file copied just fine. Hope this helps.
Reggie,
Thanks for the suggestion, but, no, I wasn't using the "back" to get to the /system/app directory. I was clicking on the parent dir, etc.
Jim
I also am having that problem. I tried both the back buttons and the parent directory. Ive tried factor data reset as well. I wander if it has anything to do with the update yesterday?
Until we/someone figures why, you can use root explorer to mount, then the built in es explorer to do the copy...
Jim
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native 'cp' command, so you have to use 'busybox cp' instead. I wonder if that's why the RE copy/paste doesn't work?
Jim
SOLVED - it was no native 'cp'
jimcpl said:
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native Cp command, so you have to use 'busybox cop's instead. I wonder if that's why the RE copynpasre doesn't work?
Jim
Click to expand...
Click to collapse
Hi,
I just tried a test, where I created a softlink for 'busybox cp':
ln -s /system/bin/busybox /sbin/cp
I then was able to use RE to copy/paste into /system/app !
CAVEAT: I don't know if busybox is on Gtab by default...
Jim
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
NMCBR600 said:
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
Click to expand...
Click to collapse
Hi,
That was a typo on my part. The 'cp' command (lowercase c) was really missing in my Gtab .
I've been experimenting w/alternate keyboards, and keep making typos ...
Jim
P.S. I fixed the typos ...
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
butchconner said:
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
Click to expand...
Click to collapse
Hi,
BTW, to create the softlink (using ln), you'll need to use adb shell. Or, you could use a terminal, if one's installed (kind of catch 22, since you'd need market to get a terminal).
Otherwise, what might work is:
- z4root to get root
- root explorer to make /system R/W
- kill then restart es file explorer and use that to copy the apks to /system/app
Jim
SIGH ... softlink doesn't survive a reboot
It looks like the softlink that I created disappears after a reboot... then RE can't copy again.
Sorry...
Jim
Alright so here's my problem: After rooting my phone, I started to play around with a couple of camera apps from different ROMs such as MIUI. Me being an idiot though, deleted the stock Blur camera Apk. Using a system dump of the Atrix, 2 I tried to reinstall it, by placing it in system/app. For some reason. It wouldn't install (show up on my app directory). Anybody have any idea as to why this is happening? Any help would be greatly appreciated, because I really need a camera app.that's supports 1080p video. Thanks in advance!!!
farshad525hou said:
Alright so here's my problem: After rooting my phone, I started to play around with a couple of camera apps from different ROMs such as MIUI. Me being an idiot though, deleted the stock Blur camera Apk. Using a system dump of the Atrix, 2 I tried to reinstall it, by placing it in system/app. For some reason. It wouldn't install (show up on my app directory). Anybody have any idea as to why this is happening? Any help would be greatly appreciated, because I really need a camera app.that's supports 1080p video. Thanks in advance!!!
Click to expand...
Click to collapse
Push the sick app via adb. I read somewhere that with apps such as root explorer it doesn't work for some reason. Hope this helps.
Sent from my MB865 using Tapatalk
Yes, always use adb to push system apps. Root Explorer will not work.
Sent from my mAtrix2!!
For some reason i get permission denied whenever i try to push through adb. How do i get around this?
farshad525hou said:
For some reason i get permission denied whenever i try to push through adb. How do i get around this?
Click to expand...
Click to collapse
To copy anything to /system/app, you need root access.
This will be a 2 step process.
1) push the file from your computer to your phone in a directory that the shell has access to, i.e. /data/local for instance.
2) adb shell into the phone and su, remount /system as rw, then cp the file from /data/local/ to /system/bin
That should elimiate the issue with permission denied, with adb push.
jimbridgman said:
To copy anything to /system/app, you need root access, have you rooted the phone?
If you have rooted the phone, this will be a 2 step process.
1) push the file from your computer to your phone in a directory that the shell has access to, i.e. /data/local for instance.
2) adb shell into the phone and su, remount /system as rw, then cp the file from /data/local/ to /system/bin
That should elimiate the issue with permission denied, with adb push.
Click to expand...
Click to collapse
Yes my phone is rooted. How do I remount /system as rw? Then how do i cp the file? Thanks for your help!
I figured out how to push the file with adb, but the app still does not show up. Any other ideas?
farshad525hou said:
Yes my phone is rooted. How do I remount /system as rw? Then how do i cp the file? Thanks for your help!
Click to expand...
Click to collapse
Ok, run EVERYTHING between Code:, and End code from the command line. Just make sure you are in the directory you saved your backup camera.apk to, from your windows command prompt, before you run the commands below.
Code:
adb push BlurCamera.apk /data/local
adb shell
su
mount -o remount, rw /system
cd /data/local
cp BlurCamera.apk /system/app
chown root /system/app/BlurCamera.apk
chgrp root /system/app/BlurCamera.apk
chmod 644 /system/app/BlurCamera.apk
mount -o remount, ro /system
exit
exit
End code
That should hopefully fix it.
jimbridgman said:
Ok, run EVERYTHING between Code:, and End code from the command line. Just make sure you are in the directory you saved your backup camera.apk to, from your windows command prompt, before you run the commands below.
Code:
adb push BlurCamera.apk /data/local
adb shell
su
mount -o remount, rw /system
cd /data/local
cp BlurCamera.apk /system/app
chown root /system/app/BlurCamera.apk
chgrp root /system/app/BlurCamera.apk
chmod 644 /system/app/BlurCamera.apk
mount -o remount, ro /system
exit
exit
End code
That should hopefully fix it.
Click to expand...
Click to collapse
Sadly this didn't work either. I don't know what I'm doing wrong. Btw, thanks for your help so far!
Quick question....is the blurcamera.odex file still in the system/app. If you have deleted it also you will have to replace it as well.
JRW 28 said:
Quick question....is the blurcamera.odex file still in the system/app. If you have deleted it also you will have to replace it as well.
Click to expand...
Click to collapse
I could only find a deodexed system dump
Here ya go, zip has both camera.apk and odex. Try using file explorer again and make sure it is r/w . Hope it helps
http://db.tt/v0FQKpKr
JRW 28 said:
Here ya go, zip has both camera.apk and odex. Try using file explorer again and make sure it is r/w . Hope it helps
http://db.tt/v0FQKpKr
Click to expand...
Click to collapse
Thanks for the files! But once again sadly the file doesn't appear under my app drawer. I tried using adb and root explorer, with no luck. Is there anything I'm missing? Btw, JRW are those files from the atrix 2?
There both straight off of my phone...that's weird cause I have removed both of them trying out various cameras and never had a problem reinstalling them?
Are you rebooting afterwards?
JRW 28 said:
There both straight off of my phone...that's weird cause I have removed both of them trying out various cameras and never had a problem reinstalling them?
Are you rebooting afterwards?
Click to expand...
Click to collapse
Yeah I am. Can you walk me through what you do when you re install the apps? I am really confused. Is there anything that might be interfering?
Go into file explorer and make sure your system folder is r/w along with both the blurcamera.apk and blurcamera.odex.... then drop both of them into system/app and reboot. Wouldn't think anything else would be interfering?
JRW 28 said:
Go into file explorer and make sure your system folder is r/w along with both the blurcamera.apk and blurcamera.odex.... then drop both of them into system/app and reboot. Wouldn't think anything else would be interfering?
Click to expand...
Click to collapse
How do I make sure that BlurCamera.apk and BlurCamera.odex are both r/w?
Im not sure if it really matters on them but long pressing on either of them in file explorer should bring up the permissions and you can change from there. Do the same on your system folder just to double check that the permissions are correct
JRW 28 said:
Im not sure if it really matters on them but long pressing on either of them in file explorer should bring up the permissions and you can change from there. Do the same on your system folder just to double check that the permissions are correct
Click to expand...
Click to collapse
Yeah still no luck... no idea whats wrong
Try pushing them with ADB .....usually that will take care of it
Alright I want to move my location spoofer app to /system/app so I can watch my hometown team on MLB.tv. This worked fine on my LG Nitro running CM10, but when I tried on my stock infinity (rooted, not updated), it won't let me. It just says "paste failed" when I try to move it. Anyone have any advice as to how to fix this?
Have y o u tried mounting the directory as rw so you can paste in there?
Sent from my ASUS Transformer Pad TF700T using xda premium
Sinker1345 said:
Have y o u tried mounting the directory as rw so you can paste in there?
Sent from my ASUS Transformer Pad TF700T using xda premium
Click to expand...
Click to collapse
No I haven't, but just to clarify the app is currently installed on the internal memory, not sd card. I am just trying to move it from one folder to a different folder. Is this still necessary?
It may be, if the directory is mounted as read only you won't be able to copy into it
Sent from my SCH-I535 using xda premium
mgoblueno1 said:
No I haven't, but just to clarify the app is currently installed on the internal memory, not sd card. I am just trying to move it from one folder to a different folder. Is this still necessary?
Click to expand...
Click to collapse
In normal operation, /system is mounted read-only, so you need to remount it as writable first. Root-enabled file managers usually have an option for that.
Thanks guys, will try this out tonight
Alright I tried editing permissions on the system folder, the app, and the root manager app, but they were already all checked (read, write, execute). I also tried just cut/pasting a picture i took to /system/app and I didn't work either...
EDIT: I just tried the remount app, and rewrote the /system folder as rw and it still didn't work
If anyone else has any suggestions on how to fix this let me know!
mgoblueno1 said:
If anyone else has any suggestions on how to fix this let me know!
Click to expand...
Click to collapse
mgoblueno1 said:
Alright I tried editing permissions on the system folder, the app, and the root manager app, but they were already all checked (read, write, execute). I also tried just cut/pasting a picture i took to /system/app and I didn't work either...
Click to expand...
Click to collapse
That's not how you do it. Those are chmod permissions for files and directories. That controls which user groups have rwx permissions for access; nothing to do with mounts. To allow for rw access to /system you need to either do it from within a root browser (ES file explorer, tools), the remount app, or type this into the terminal:
Code:
su
mount -o remount,rw /system
Copy your file or directory, then remount the system back as ro (so you don't accidentally delete something - that's why its mounted ro by default)
Code:
su
mount -o remount,ro /system
mgoblueno1 said:
EDIT: I just tried the remount app, and rewrote the /system folder as rw and it still didn't work
Click to expand...
Click to collapse
I just tried this and it works fine. After you made your selections for /system and rw, did you click the top "Remount" button and get a small pop-up "Success!..." notification that it completed its operation? I also verified that I could copy a test file into /system/app after toggling these settings. You are doing something wrong. Read this all again.
[Edit] The only reason I can think of that it might be failing is you are really not rooted or have a corrupt root. If all else fails, run the Root Checker app to see if you really have valid root. Open up your su app and see if it prompts you to update its binaries and let it if it does (superSU).
elfaure said:
That's not how you do it. Those are chmod permissions for files and directories. That controls which user groups have rwx permissions for access; nothing to do with mounts. To allow for rw access to /system you need to either do it from within a root browser (ES file explorer, tools), the remount app, or type this into the terminal:
Code:
su
mount -o remount,rw /system
Copy your file or directory, then remount the system back as ro (so you don't accidentally delete something - that's why its mounted ro by default)
Code:
su
mount -o remount,ro /system
I just tried this and it works fine. After you made your selections for /system and rw, did you click the top "Remount" button and get a small pop-up "Success!..." notification that it completed its operation? I also verified that I could copy a test file into /system/app after toggling these settings. You are doing something wrong. Read this all again.
[Edit] The only reason I can think of that it might be failing is you are really not rooted or have a corrupt root. If all else fails, run the Root Checker app to see if you really have valid root. Open up your su app and see if it prompts you to update its binaries and let it if it does (superSU).
Click to expand...
Click to collapse
Thanks this worked!
mgoblueno1 said:
Thanks this worked!
Click to expand...
Click to collapse
Glad you got it worked out. Which way worked for you?
Setup: CROMI 3.4.7 with Data2SD
I am having issues deleting folders and files within the /data/data/ portion of my file structure. I have tried with both th File Manager HD and ES File Explorer but I keep getting messages saying that I am unable to delete those folders and files.
The reason I am trying to delete this is because I was unable to install certain apps, and continually got an error message during installation that said:
Unknown error code during application install: "-24"
From searching forums, I found that the issue is that previous installations (I guess I forgot to do a factory reset before reflashing a ROM) left certain system folders and files for certain applications, which prevented a fresh installation from taking place. Other users have resolved this issue by deleting the relevant files in the /data/data/ section of their tablet.
I have circumvented the issue by renaming those folders (which for some reason works), but still cannot delete those renamed folders. I've tried messing with the permissions, but still no luck.
Any ideas?
Possibly an ownership problem?
Boot into recovery, plug in the USB cable, go into adb shell. Make sure that /data is mounted. Then do something like:
cd /data/data
chown -R media_rw.media_rw *
Might wanna backup first...
danger-rat said:
cd /data/data
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
Don't do that if you want any apps to work afterwards.
Eeeeek, good catch!
I was thinking data/media.
You could do this just for the specific folders you want to delete, but not all...
The obb folder is hidden in android 5.0. Searched a lot on web and XDA and found out no one has found this problem yet. The obb folder is hidden throughout the system, i have tried to connect it via pc but no use. In pc you can see the obb folder but all the folders within it are empty! I have rooted and used even root explorer. No use. Anyone can help please? :fingers-crossed:
same here
need solution
juve2lia said:
same here
need solution
Click to expand...
Click to collapse
Hey i have found the solution! Just go to es file explorer and search for obb folder and you can see the obb folder and copy and paste filess too! that is the loop hole in the security...! you cant access it normally but when you search it via es you can access it
Sent from my XT1033 using XDA Free mobile app
obb location is at /data/media/obb
vikasb32 said:
obb location is at /data/media/obb
Click to expand...
Click to collapse
Sorry sir.... but its not... its under Android/obb only just hidden from external access but when you try to search it... it is shown..
Sent from my XT1033 using XDA Free mobile app
It only visible at /data/media/obb if you are rooted device
Fixed
Malyaj said:
Sorry sir.... but its not... its under Android/obb only just hidden from external access but when you try to search it... it is shown..
Sent from my XT1033 using XDA Free mobile app
Click to expand...
Click to collapse
Doesnt matter anymore, its fixed in android 5.0.1
bhumik147 said:
Doesnt matter anymore, its fixed in android 5.0.1
Click to expand...
Click to collapse
Yes man... yesterday only i updated to 5.0.1 brazilian ota... its fixed
Sent from my XT1033 using XDA Free mobile app
yaaahhhh
yes it fixed guys. now 1ly flashed 5.0.1. it rockzzz.
Terminal?
If anyone is still stuck on 5.0.0...
if you get the Terminal Emulator, the following instructions will work; supposing you have a folder in download you want to move to obb:
cd /sdcard/Download
Let's say our folder is com.sample.folder
cp -r com.sample.folder /sdcard/Android/obb
If you want to check it
cd /sdcard/Android/obb
ls (or ls -l)
thisUnkn0wn said:
If anyone is still stuck on 5.0.0...
if you get the Terminal Emulator, the following instructions will work; supposing you have a folder in download you want to move to obb:
cd /sdcard/Download
Let's say our folder is com.sample.folder
cp -r com.sample.folder /sdcard/Android/obb
If you want to check it
cd /sdcard/Android/obb
ls (or ls -l)
Click to expand...
Click to collapse
I've tried many ways to do this, but in all of them it seems i don't have the permission to do that (write on this folder) i can't delete what's in the folder, i mean i can, but when i refresh the folder nothing changes.
i can copy archives there but it seems they all turns into 0kb files when i do so, i can't move stuff there.
i'm stuck, and i can only see this folder searching with ES or creating it with root explorer (but then it vanish when i leave the folder)
In the way you said above terminal writes that i don't have permission to do that, and i have a rooted device.
IGNORE
---------- Post added at 10:17 PM ---------- Previous post was at 10:12 PM ----------
marquesini said:
I've tried many ways to do this, but in all of them it seems i don't have the permission to do that (write on this folder) i can't delete what's in the folder, i mean i can, but when i refresh the folder nothing changes.
i can copy archives there but it seems they all turns into 0kb files when i do so, i can't move stuff there.
i'm stuck, and i can only see this folder searching with ES or creating it with root explorer (but then it vanish when i leave the folder)
In the way you said above terminal writes that i don't have permission to do that, and i have a rooted device.
Click to expand...
Click to collapse
Download and install the latest version of TWRP for your phone. Then boot your phone into recovery. From there go into advanced and click terminal the input
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
That should fix this issue (when you reboot your phone it should be there but be aware that whenever you reboot you have to do this or at least I do)
Hope I Helped