Hi,
I am trying to figure out if I can grant write permissions to the external sdcard on my phone, to an app within an app. To be specific, ES Note Editor, which is a component of ES File Explorer.
Background: I recently loaded a custom rom (resurrection remix 6.0, by lox2013), upgrading to marshmallow. I now am dealing with all the fun permission issues associated with marshmallow.
I was able to figure out how to grant permissions to the patent app. I'm able to create files with it, rename, and move stuff. But if I open a text file, on my external sdcard using Es Note Editor, I get a permission error when trying to save.
Doing some research I learned how to grant permissions by command line:
example:
#pm grant com.estrongs.android.pop-2 android.permission.WRITE_EXTERNAL_STORAGE
And I believe the full name of the app to be com.estrongs.android.pop-2.app.BTPopNoteEditor
But when I try to execute the command, using the full name for the app, in a terminal, as su, it returns the description of the command, along with options. Just like when you type a command wrong in Linux.
Any thoughts?
Any possible ideas would be much appreciated, thanks.
Related
aruangra said:
This approach works with non-smart keyboards.
1. Install your preferred keyboards from Market
2. Use ES file explore (with Root feature and RW mount enabled in the advanced setting) or use Root Explorer to copy the keyboard .apk file from /data/app to /system/app
3. Reboot and select the keyboard by pressing and holding at any text input box.
4. (optional) Sideload and install "Nookcolor Tools" from http://forum.xda-developers.com/showthread.php?t=868366. You will have an option to set keyboards.
So far this method does not work with
- SlideIt
- Thumb keyboard (thanks fr4nk1yn)
Click to expand...
Click to collapse
I have neither a /data/app folder nor a /system/app folder... My KF is rooted (I'm successfully using the Google Play store, permanent Live Wallpapers and Avast Mobile Security Anti-Theft with root access) so I don't really understand why I am missing those folders. I can even create them without any complaints by Windows, there are no hidden objects. Did the 6.3.1 update change the folder structure?
Can anyone help me?
Okay, while I have still no possibility to access the root level via Windows, I managed to access it with the ES File Explorer (I had to change a setting to make the root level visible).
Now I have a /system/app folder and a /data folder - but unfortunately no /data/app folder; the /data folder is empty!
Furthermore I cannot copy APK-files in the /system/app folder. I get informed that the copy process failed, if I try to. Shouldn't normally a popup of the Superuser app show up with the option to grant root access?
I'm looking forward to any help! Thanks in advance.
I don't like to push threads, but... is there really no one able to help me?
When all else fails, reinstall the ROM.
Uhm, I did not install a custom ROM. Or do you mean, that I should reinstall the stock ROM?
Oh, in that case, I'm sure its your ES File Explorer that is messed up. If you have Terminal Emulator, you can check to see what directories you actually have. Enter:
ls /system
...and...
ls /data
I'll be willing to bet you they are still there.
$ export PATH=/data/local/bin:$PATH
$ ls /system
lost+found
app
bin
build.prop
etc
fonts
framework
lib
media
tts
usr
vendor
xbin
$ ls /data
opendir failed, Permission denied
$
That's what Terminal Emulator says...
How is it possible that I can open /system without having permission for /data?
Type :
$ su
$ ls /data
Envoyé depuis mon GT-I9000 avec Tapatalk
Thanks a lot! I now can see the contents of /data via Terminal Emulator.
But how can I grant superuser permission to ES File Explorer?
hi, pls help. any advise thks.
any ideas how to get rid (delete) pre-load app file name EzLinkAndroid_v1.0_(2).apk.
it give this syntax error: "(" unexpected when i try to manual remove it (in system/app folder).
i use "root uninstall" app to removed most of pre-load apps tat i dun need.
left this persistent app tat cant be delete.
manually try to delete under "su", cant delete.
cant change filename, cant chmod, came out with syntax error: "(" unexpected.
stock GB 2.3.6, kernel 2.6.35.7 dxlm3.
LOL SBS doesn't want you to remove its stuff. Anyway, check if you mounted R/W. Try other root uninstaller like ES File Explorer. Try Terminal Emulator.
iDelta said:
LOL SBS doesn't want you to remove its stuff. Anyway, check if you mounted R/W. Try other root uninstaller like ES File Explorer. Try Terminal Emulator.
Click to expand...
Click to collapse
i tried with several root uninstaller apps, manually terminal emulator too.
now try to access phone root with pc/android commander but not able to get root with the program need to hard root the phone with boot.img hack.
my phone is already rooted, i removed several pre-loaded apps, only one left.
saintsoh said:
i tried with several root uninstaller apps, manually terminal emulator too.
now try to access phone root with pc/android commander but not able to get root with the program need to hard root the phone with boot.img hack.
my phone is already rooted, i removed several pre-loaded apps, only one left.
Click to expand...
Click to collapse
Seems like your filesystem got corrupted somehow. Probably formating the system partition and restoring a backup or reflashing the rom will be the only solution that will work.
thks anyway.
i suspect its the font of the file name tat causes the syntax error.
happen b4 on other files which i was working on, those i can correct by renaming it.
in this case, i just leave it be. since i had ridden most of unwanted apps my phone.
my phone is running faultlessly.
thks guys.
I just uprgraded to the lollilop gpe OTA. Everything is working as normal, camera, Infrared, light, wifi, LTE radio, etc... I am also rooted.
However, ES File Explorer is still unable to modify the contents of the External-SDCard. I tried doing a simple copy operation from the internal-SDCard to the External-SDCard and there was a prompt that came up (looks like it is from android OS and not from the application) which asks me to select the "root folder" of the External-SDCard.
Following that prompt, I get to the screen where I should click on the "External SDCard" icon on the left of the screen, but the when I do that, the application named "Documents" reports that it has stopped and then it sends me back to the paused copy operation in ES File Explorer and then that operations fails...
Anyone have any clue if this is supposed to work straight out of the "box"? Or do I need to download kernel patches or go modify platform.xml again like in 4.4.4 GPE?
Thanks!
r2d-two said:
I just uprgraded to the lollilop gpe OTA. Everything is working as normal, camera, Infrared, light, wifi, LTE radio, etc... I am also rooted.
However, ES File Explorer is still unable to modify the contents of the External-SDCard. I tried doing a simple copy operation from the internal-SDCard to the External-SDCard and there was a prompt that came up (looks like it is from android OS and not from the application) which asks me to select the "root folder" of the External-SDCard.
Following that prompt, I get to the screen where I should click on the "External SDCard" icon on the left of the screen, but the when I do that, the application named "Documents" reports that it has stopped and then it sends me back to the paused copy operation in ES File Explorer and then that operations fails...
Anyone have any clue if this is supposed to work straight out of the "box"? Or do I need to download kernel patches or go modify platform.xml again like in 4.4.4 GPE?
Thanks!
Click to expand...
Click to collapse
FAQ
Google Play Edition 5.0.1
SdCard
Q.)
The sdcard not being visible via PC is annoying.
Is there any fix for this yet?
A.)
Yes, here is a work-around
Install Terminal Emulator then type:
Code:
su
restorecon -FR /data/media/0
Some say the KK sdfix works also
clsA said:
Q.)
The sdcard not being visible via PC is annoying.
Is there any fix for this yet?
A.)
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Thanks. Although the above says it resolves an issue with "The PC" not being able to see the sdcard, and my issue is with an android application (ES File Explorer) not being able to write to the sdcard, I still went ahead and ran the suggested command and although the command succeeded, the android application still can't write to the sdcard...
although it won't solve all your problems with writing to external SD card on the HTC One Lollipop, you can fix the crashing of the "Documents" app you described by making sure your micro SD card has a label (name): put the sd card in a sdcard reader in your PC/Laptop and give it a name.
Hi. Yes, you are correct I found out about the label being blank causing the crash and adding a label to the external sdcard partition fixed the crash in ES File Explorer. With the crash now gone i was able to grant ESFile Explorer write access to the entire external SDCard, and the app is now working flawlessly.
I also found this thread: https://code.google.com/p/android/issues/detail?id=67570#c4444
So, based on that thread's discussion, it looks like the app developers of any app that needs/wants write access to the external sdcard just need to change their applications to start using the new API, just like the ESFile Explorer guys did.
adb commands
Try running these adb commands one after the other
adb shell
su
restorecon -FR /data/media/0
Sent from my Viper Bitten M8
rooted tab, Android 9, kernel:4.4.153-WETA-4.0, build BSD1, using total commander, trying to paste a file into private storage of another app. Temporarily I have set permissions to 777 (of parent folder), still get unable to write file. see screenshots for more info
To find the problem you need the LogCat
Hey - Sorry if this is the wrong forum, but I'm stuck. I've installed an app via Google Play, and I'd like to move it from /data/app to /system/priv-app (I was instructed to do this to enable extra features on the app). I can browse to /data/app and I see a big list of crazy-character folders, and I locate the one with the folder inside I need. I try and cut/paste that file into system/priv-app using Root Explorer. It prompts me "The current file system is read-only. Do you want to remount as read-write and continue?" I click yes, and then the move fails.
I'm using Magisk and I've granted Root Explorer superuser permissions.
Am I missing something painfully obvious here?
Try it from the console and see what error it gives you. You can also provide output of a couple of commands, "mount" (show the mount parameters for all mounted filesystems) and "df -h" (show free space).
This a factory system image or AOSP?
system partition is write protected.
You might have luck using Magisk module for privileged apps
Yep, someone in another thread in this section had the same or similar problem, but I believe it was completely solved by a magisk module. I haven't used that module, and can't remember what it's called, so I can't be more specific.
While is is possible to edit the system partition, I highly recommend you don't do that. In order to do that, you would need to edit the super and vbmeta partitions. There is a scripted solution to do that (here), but I've never used it.
A much easier solution would be to use Magisk's mirror partitions that allow you to virtually override/add/remove elements for the system/vendor/product partitions. Create a simple Magisk module or use /data/adb/magisk (read the Magisk documentation)