yashsingh1/xdaforums huggingface dataset:
[Fire TV General] gazdaman.:
So, I ran in to some difficulty allowing apps saving to external storage.

As it turns out Google changed the default permissions to external storage in Android 4.4 (API 19)

I found a guide that solved this problem for me so thought it would be good to share on here

(All credits go to Android Revolution for the guide)

Procedure

Note: root required!

Start up your device normally and wait for the system to be fully loaded.

Open any files manager of your choice (Root Explorer, ES File Explorer, Total Commander) and make sure it runs with superuser permissions.

Mount your system partition as R/W (Read/Write) to perform any changes.

Navigate to the /system/etc/permissions/ folder and look for the platform.xml.

Copy and make a backup of the platform.xml file naming it platform.xml.bak

Open the original platform.xml file with any text editor on your device and search for the following line:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE">

It should look like this:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >

<group gid="sdcard_r" />

<group gid="sdcard_rw" />

</permission>

Now you need to add a 3rd GID (Group ID): <group gid="media_rw" /> and you need to make it looks exactly like this:

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >

<group gid="sdcard_r" />

<group gid="sdcard_rw" />

<group gid="media_rw" />

</permission>

Using ES File Explorer or any other Files Manager of your choice make sure that the platform.xml file has proper permissions:

Owner R-W | Group R | Others R (0644 rw-r--r--).

You can also use adb shell to set permissions with a chmod 0644 /system/etc/permissions/platform.xml command.

Reboot your device and enjoy!

In case of problems with OTA update just remove modified platform.xml and rename platform.xml.bak to its original name.

For those who just want my already modified, file click to download here

Confirm this works great on FTV2 and fixed my apps write problems
[Fire TV General] Ludacrisvp:
What apps need this? It's good info to have out there just looking for an example of what situations need it.
[Fire TV General] gazdaman.:
As examples,

Some emulators that save game saves to external storage (If configured that way)

UAE4ALL2 (Amiga Emulator) when using WHDLoad setup (Dos error if no write access to WHDLoad folder)

Titanium Backup to save backups to external storage location.

No doubt there are lots of other scenarios.
[Fire TV General] Fruchttiger00x0:
Hi,

just tried it but i'm not able to remount rw the system part.

I test it with ES File Explorer, RB, and over adb shell

mount -o remount,rw /system

Error: invalid argument

The root partition just works fine

What was your trick?

Regards
[Fire TV General] gazdaman.:
You need root, obviously.

Open ES File Explorer.

Scroll down to tools and select Root Explorer.

Grant SU permissions.

Now make /system R/W access

You can then amend / replace the file platform.xml file
[Fire TV General] Fruchttiger00x0:
Device is rooted

And yes, tried exact what you say but it did not work. The ES FE didn't even show up an error message. Any ideas?
[Fire TV General] gazdaman.:
Are you using ES File Explorer from Amazon Market?

No idea why it would not work.

Are you getting the Super User request when you click on Root Explorer in the tools menu?
[Fire TV General] Ludacrisvp:
If you can't remount system as rw just reboot and try again. When I used abdFire to install system tools I was unable to remount system until reboot.
[Fire TV General] Fruchttiger00x0:
Yes, i did recieved the request for su but as i already tried other root apps or commands during the last days, I'm almost sure that root works as design.

For ES FE the same, tried the Amazon Version and 2-3 apks which I deployed via sideload. Could you maybe post the output of that after a /system remount:

cat /proc/mounts

Would be helpful

[MENTION=1414283]Ludacrisvp[/MENTION]

Hm, actualy I rebootet several times but the reason for failing could be something which is coming up again in the background. I'll take a look in that
[Fire TV General] gazdaman.:
Good advise.

As a rule of thumb, I always do a clean reboot before I start to mess with stuff.
[Fire TV General] Fruchttiger00x0:
That's right. But in my case it makes no difference. I just reboot und connect to adb shell as soon as the device was recognize. No way

su

mount -o remount, rw /system

mount: invalid argument

What the...

Have you something installed after rooting? Toolkit, busybox for example?
[Fire TV General] gazdaman.:
I do have busybox pro sideloaded, but don't know if that makes a difference
[Fire TV General] Fruchttiger00x0:
Installed to ../xbin ?
[Fire TV General] gazdaman.:
yes
[Fire TV General] Fruchttiger00x0:
Installation was ok but the error is persistent

Maybe it was already too late. Busybox should be the first to install :silly:

OK,i guess i should reset, what do you think?
[Fire TV General] Ludacrisvp:
Does busybox add its own mount command?

Maybe try calling out the full path:

# /system/bin/mount -o remount,rw /system
[Fire TV General] Fruchttiger00x0:
damn, doesn't work :rolleyes:

tried it also with the 2 argument method but same story

here's some output, maybe i'm blind and others can see it :p

did it via ssh to get a root shell. "adb root" comes up with no root in production system.

root@sloane:/mnt/sdcard # mount -o remount,rw /system

mount: Invalid argument

255|root@sloane:/mnt/sdcard # mount -o remount,ro /system

root@sloane:/mnt/sdcard #

root@sloane:/mnt/sdcard # which mount

/system/bin/mount

root@sloane:/mnt/sdcard # cat /proc/mounts

rootfs / rootfs ro,seclabel 0 0

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,seclabel,relatime 0 0

selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0

none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0

none /sys/kernel/debug debugfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

/dev/block/dm-3 /mnt/asec/berserker.android.apps.sshdroid-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

/dev/block/dm-2 /mnt/asec/com.estrongs.android.pop-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 ro,seclabel,noatime,commit=1,data=ordered 0 0

/dev/block/platform/mtk-msdc.0/by-name/userdata /data ext4 rw,seclabel,noatime,commit=1,data=ordered 0 0

/dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 rw,seclabel,noatime,commit=1,data=ordered 0 0

/dev/block/loop0 /mnt/sqfs squashfs ro,context=u:object_r:squashfs_file:s0,relatime 0 0

/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,mode=050,gid=1028 0 0

/dev/block/vold/179:129 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:129 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
[Fire TV General] staryob:
Thanks for share

Gửi từ SM-N910C của tôi bằng cách sử dụng Tapatalk
[Fire TV General] gazdaman.:
Not sure why [MENTION=7154214]Fruchttiger00x0[/MENTION] is having so much trouble with it.

I just used ES File Explorer (root explorer) to mount r/w no issues.

Another option for you to try is via adbfire.

It has a simple 1 click button to make /system r/w

Other than that, maybe your root is not complete for some reason
[Fire TV General] elemenopee7:
I ran into the same problem mounting /system as rw. Banged my head for quite some time. I had rooted using the video tutorial by ultimate spy binns. So I rooted it again the same exact way and that solved the mount issue. So I was able to set platform.xml to fix the permissions but alas, my apps still cant write to external hdd.
[Fire TV General] deanr1977:
I too rooted with Ultimate Spy Binns tut on 5.0.3.1 but I am staying here till Rbox finishes his Custom Recovery with a prerooted 5.0.4 Rom! & then just flash the recovery & then flash the new rom. Ment to be ready after the end of January so he & another site suggests, I can't wait, plus no 2hr root ether (Result!)
[Fire TV General] KLit75:
I'm struggling with this. I can mount system r/w through ES but last night it still wouldnt allow me to mkdir for thumbnails on sdcard. So thought I'd try adb to change to modify platform file, like suggested in the OP, but I still get the same error saying it's a read only file system. It's Not. As far as I know I should be able to modify anything in there.

So I'm going to try to use the OP's modified file and just insert it manually. But to verify, I'm running 5.0.4. I'm not certain it matters, probably not. Mostly I'm just confused as to why I can't write to this.

Update - it was my sdcard. Weird because aftv mounted it, formatted it AND was discovering it. But that was the issue. Its an adata c6 64gb i bought awhile back for cheap. When i put in a different card i was able to write to it. Sucks cuz now ive only got 8 gb external space. Im looking into seeing if i can fix the 64gb sd. If it worked once im not sure why it stopped.

Another thing got me curious... when i inserted the new 8gb card the aftv mounted it and saw it as a 64gb sdcard. Not sure what it means but so far seems i cant use the bigger sdcard.
[Fire TV General] KLit75:
Running Kodi from SDCARD

Just a heads up, hope people feel it's somewhat on topic....with all the confusion I experienced I accidentally migrated all of my Kodi data to my sdcard (only meant to store thumbs). I'm actually pretty surprised with the performance! There's hardly any lag atm. It might not be feasible for me once I edit my advancedsettings.xml to connect to mysql but maybe it'll be ok. I've got a pretty fast class 10 card. (sandisk ultra extreme)
[Fire TV General] lightykd:
Will this allow for games to be automatically installed to my external hard drive?!?!
[Fire TV General] deanr1977:
No mate you need a app called Folder Mount look in the Play Store for it, the free version allows 3 files/games To mount on your sd card or harddrive, the paid let you have unlimited, then sideload it to your AFTV.

If this helps press that thanks button.
[Fire TV General] lightykd:
you should check out my Fire TV Gaming thread. I've been using Folder Mount for nearly two weeks. Problem is I can't transfer my license for the full version to the Fire TV because of a lack of proper Google Play support. I was really hoping that this mod would allow for games to be installed to the USB drive. That is something, needed BADLY on AFTV2, especially for those of us with legit Android game collections. :(

Quick thought: maybe this mod could be used in conjunction with Directory Bind? There has to be some decent solution.
[Fire TV General] KLit75:
Im not sure how but i really screwed this up. I pushed the modified platform. xml to etc/permissions. When i rebooted i couldnt (can't access) my network through wireless or ethernet and neither my sdcard 1 nor sdcard 0 are showing up IN ES FILE EXPLORER... but the fire tv sees them as well as my apps.

I opened the file and attempted to edit it manually but everytime i reboot it just stays the same (no network, no sdcards)

Suffice to say Im looking for assistance. Not sure what happened. Even if someone could just give me a copy of the stock platform. xml it might save me. YES. i backed up the xml file but if i cant access my sdcard i cant get to it. I cant push the file either but i can copy it manually and hopefully fix it. Thanks.

BTW--If for any reason I can't resolve this--would a factory reset restore everything including platform.xml? I haven't done much to this box in the 3 days I've had it so maybe that'd be the simplest option.
[Fire TV General] kayiman74:
did you back it up before modified it?
[Fire TV General] KLit75:
I did but i cant read my sdcard so it doesn't matter. Even if i saved it off the fire tv i cant access adb so no way to get to it.

Edit--It's been far and few between for me modifying system files, I realize that I could've kept the .bak file right in the root directory and been fine (stupid mistake) instead of moving it to the sdcard. What I don't get though is what that has to do with my network not connecting??? But looking into others issues with editing this file (on different devices) they describe the same things that are happening to me.
[Fire TV General] KLit75:
Id like to do a factory reset but im not certain itll overwrite the system (what i want to happen). I don't make a habit of editing system files but this is the 1st time ive encountered serious issues so its never come up...
[Fire TV General] kayiman74:
put the file you local network or on a share folder on your computer then use es explorer to access it and copy and overwrite the other one.

make sure you turn on root on es explorer.
[Fire TV General] KLit75:
That is pretty damn clever!!! I just used es on my phone and i can actually read my sdcard (1st time ive seen it in 3 days.) But, I cant see root files remotely from the phone. What other alternatives do i have? How do i get the file to /etc/permissions?

update--ok so I pushed the platform.xml backup to my mac. I have adb working. Can i push this file to system/etc/permissions? AND will it overwrite it automatically or should i push the .bak file then manually delete the modded platform.xml?

Would this be the command?--

adb push <platform.xml> /system/etc/permissions/ ?
[Fire TV General] deanr1977:
I don't know the correct adb commands but yes it will overwrite the file with the same name
[Fire TV General] rp201:
use es explorer to back up app then

sideload romtoolbox free version app and use rb text editor.

---------- Post added at 07:01 AM ---------- Previous post was at 06:46 AM ----------

I have stickmount installed on my ftv1stgen. (root required) I believe it creates a symlink from to sdcard_external or usb thumbdrive(physical) to a subfolder /sdcard/usbdrive folder(internal) the ftv1stgen did not read extfat natively but stickmount allowed it to read exfat. I inserted a pny class 10 128gb 65mb/sec exfat microsdcard in this evening on my ftv2ndgen. it asked me to format it fat32, 119gb of free space. I'm also waiting for rbox before getting more testing in. but foldermount and stickmount are in my future.
[G3 Android Development] H@wK11:
Reserved
[G3 Android Development] scaliskano:
Some little settings in chinese and in mokee center i couldn't find to download gapps
[G3 Android Development] mohsinleo05:
Awesome, downloading now, will update the experience very soon. :)
[G3 Android Development] spinoza23:
Thank you, I downloading it now.... open source rocks...!
[G3 Android Development] selo28:
secreen shot ?
[G3 Android Development] tallman43:
Same as most of the other MM roms.
[G3 Android Development] dieterschran:
So far great Rom .

Gesendet von meinem LG-D855 mit Tapatalk
[G3 Android Development] danielxg:
View attachment 3584528

View attachment 3584529

View attachment 3584530

View attachment 3584531

I tesst this ROM is FX nice no bug ..
[G3 Android Development] ps000000:
Nice!

I used Mokee since my previous devices.
[G3 Android Development] mirage-19:
Mokee is a great ROM!

Currently using MK51 release version. In MM I didn't find the possibility to answer calls with the volume button. Hopefully this feature will be aded in the future.

By the way for testing MM I did a dirty flash. Wiped System, cache and the Android directory on SD-card.

sent from my G3
[G3 Android Development] arxxx:
this best rom, i love this, have update ota, but still buggy when u change the themes, and drop down the notif panel, u will see, the panel have half display. but when u pull off and pull it on, will be back to normal..
[G3 Android Development] H@wK11:
CM issue.

Mokee is based Cyanogenmod.

Currently cm source is buggy.
[G3 Android Development] puya.crisan:
rom is pretty good but sound on calls and speaker is bad. this is the only thing bad at first sight.
[G3 Android Development] snir2001:
Strange,

Was working fine for me, till I update yesterday...

Now the charging from USB not working, just show connected, and wireless charging works fine... (?!?)
[G3 Android Development] kabalah89:
Cm bug. U can only charge after reboot your phone or change the kernel
[G3 Android Development] tampitzel:
I think it will not, but still, maybe someone could shed some light on this.

Will this rom work on d858hk? Thanks!
[G3 Android Development] fiki13:
hows ur battery life sir? is there any overheat or random reboots like cm13?
[G3 Android Development] tampitzel:
I didn`t install the ROM, I was asking if it can be installed on d858hk so I am not sure what to tell ya. Thanks!
[Android Q&A, Help & Troubleshooting] COOKIEMONSTER102:
I am on an Acatel OneTouch Fierce and when I try and plug in anything to my headphone jack I have this very annoying clicking and the audio changes. And this happens on anything I plug in for headphones. Bluetooth works fine with though. And I just got a really good pair is Bose headphones and of course it isn't Bluetooth. So it doesn't work with my phone good.
[G2 Android Development] H@wK11:
Reserved
[G2 Android Development] fendaris:
[MENTION=6366138]H@wK11[/MENTION] Are more variants going to be supported?
[G2 Android Development] boromkeurgui:
hello tested just for an hour now and all works fine . i really like the bootanimation . thx
[G2 Android Development] lil-pete:
Download and test ist. Thanks!
[G2 Android Development] H@wK11:
Yes working on other variants.
[G2 Android Development] mandroid717:
Installed the ROM and had some great options. Unfortunately it would not let me restore my titanium backup. :)
[G2 Android Development] android extreme:
Just a question: the rom is now based on aosp code or still based on cm code, right? I ask this because in the op was written that some feature was taken by cm but the rom is based on aosp then i'm not sure
[G2 Android Development] lil-pete:
I know Mokee from my old HTC Desire HD. The rom was fine there. Now on my G2.

First impression:

All works fine. Only known Bugs from CM (OTG, Wifi).

+ Navbar height adjustable

+ No camera problems

+ A lot of custom settings

Thanks for hard work. I hope for long rom development. Greetings from germany
[G2 Android Development] Claudius A.:
Tested.

Works great!

Thanks!
[G2 Android Development] fendaris:
Thanks, I really appreciate it.
[G2 Android Development] cnaukai:
d801 titanum backup doesnt restore my apps. always stuck
[G2 Android Development] vrwmiaris1:
Layers are supported or cm theme engine?

Στάλθηκε από το LG-D802 μου χρησιμοποιώντας Tapatalk
[G2 Android Development] smokerman:
VIDEO REVIEW HD:

[YOUTUBE]CJBNzEFpIik[/YOUTUBE]
[G2 Android Development] mandroid717:
I'm having the same issue. Tried everything.
[G2 Android Development] H@wK11:
Thanks for the video :)
[G2 Android Development] H@wK11:
Themes
[G2 Android Development] H@wK11:
Thanks for testing & reporting.
[G2 Android Development] rafaelsartori:
[MENTION=4879203]lil-pete[/MENTION] Whats that wifi issue that you mentioned as cm bug?
[G2 Android Development] Lawlrus:
If you need a vs980 tester hit me up.

---------- Post added at 09:41 PM ---------- Previous post was at 09:38 PM ----------

There's an issue with the WiFi scan interval that some people are reporting.
[G2 Android Development] liusi522:
http://download.mokeedev.com/?device=f320
[G2 Android Development] H@wK11:
Yes someone already working on f320
[G2 Android Development] liusi522:
Yes:D:D:D

Maybe you can add the download link to your thread.:p:p:p

By the way, you know the news about the next official version?
[G2 Android Development] H@wK11:
Idk about f320 im not working on f320. For other variants build will up soon. Nightly so everyday.
[G2 Android Development] liusi522:
Thank you for your reply.
[G2 Android Development] kkregistro:
hi Alexx_kidd, could you please tell me wich MM ROM have you tested with ambient display working? I use it a lot. Thanks in advance
[G2 Android Development] H@wK11:
OP Updated!!

F320 (Korea) download link is up!!
[G2 Android Development] Espinosa_Rommel:
Is it for three korean variants? F320L/S/K
[G2 Android Development] H@wK11:
Yes.
[G2 Android Development] Espinosa_Rommel:
Ok. Im gonna try this one now. Hope that this one doesnt have an issue with broken nfc ??
[G2 Android Development] colorado109:
Great Rom but automatic brightness is not working. Or anybody know where i can activate it?

Edit: I cant install gapps. After i have flashed the Zip (Slim_zero_gapps.BETA.6.0.build.0.x-20160516-2250.zip). The gapps are not starting. I tried opengapps too. Same problem. What did i wrong?
[G2 Android Development] barrtzz:
How to update supersu binary? I cant manually via apk its error. Also when i try to update supersu 2.65 in twrp its security error and cant boot.

It was on CAF bootloader and LP bumped. Shie***t last think what i need is root HELP.

Edit: I found root in developer options. Just found solution few pages back.
[G2 Android Development] H@wK11:
Try bank gapps
[G2 Android Development] barrtzz:
Is any solution for wifi bug? Cant connect even after few restarts :/
[G2 Android Development] H@wK11:
Flash latest nightly with clean flash.
[G2 Android Development] afri83:
Is there any possibility to change weather provider because mokee isn't quite accurate for my location. Tried yahoo for cm but can't install due incompatibility.

And one little bug to mention.very often pop up message come with "settings stop working".

Beside that ROM is great.ty for your efforts. :good::good:
[G2 Android Development] Espinosa_Rommel:
Try open weather. It works for me
[G2 Android Development] ricarp:
Hello, I need your help please; ¿does the screen mirroring work well with this ROM?

and can you help me with instructions to install it, If I'm on a stock 5.0.2 rooted?
[G2 Android Development] H@wK11:
Multiwindow is there. Checkout installation method
[G2 Android Development] H@wK11:
Guys please use [Q&A] thread for questions, keep orignal thread clean :)

[Q&A]: http://xdaforums.com/lg-g2/help/qa-t3409117/post67559509#post67559509
[G2 Android Development] ricarp:
Does it work for mirror my phone's screen into my LG tv?
[G2 Android Development] xpissio:
Hi, anyone is getting this bug --> (https://drive.google.com/open?id=0B0T9jA_r9eUzOHVXZ3F3M2VVZjg) ? Look the 2nd time I open the app.
[G2 Android Development] ricarp:
Hello I need your help, does anybody knows hot to reduce the earphone volume? i think is too loud.

Thanks

I found the solution, just by editing the file mixer_paths.xml
[G2 Android Development] totos1234:
I have F320K version, and I lost Signal until reset. It is a CM bug or it will be fixed some day? Thanks for all!, if this bug is fixed this ROM can be the better !
[G2 Android Development] bc050400:
fee like stock rom. i previously used bliss 6.4 but its better then bliss

f320s
[G2 Android Development] nguyentai2310:
rom

no support ls 980, please support ls980 , thanks
[G2 Android Development] totofe69:
Is this rom has dt2s ?
[G2 Android Development] H@wK11:
Flash and check your self :/