4.3 sd card issues fixed - Galaxy S 4 i9505G Android Development

I am currently working on a solution to fix 4.4 with more stable results.
I have created a flashable zip that works in an aftermarket recovery. It replaces the platform.xml file with modified file that has the necessary permission line to make the sd card writable now. That is the only thing changed. I added the under WRITE_EXTERNAL_STORAGE.
You need to be on a custom recovery. This update only applies to I9505G. If you do not have an S4 GOOGLE EDITION PHONE, then please disregard and move on.
Warning; You are flashing this at your own risk. I am not responsible for broken devices, deleted memory cards, phones thrown from raging, or WW3.
Download the flashable from here: http://d-h.st/Eif
Download the modified platform.xml to replace the original from here if you would rather push it: http://d-h.st/ooU
(this is not needed with zip, already included)
1. Place the zip the on your internal or external drive.
2. Reboot to your custom recovery, ie ( twrp, cwm)
3. Create a backup, have a restore point if it does not work.
4. Wipe dalvik and cache
5. Install the zip file
6. Wipe the dalvik and cache just to be sure.
7. Reboot phone.
Test to make sure it worked by using any file explorer, ie(solid explorer, root explorer, etc.) and creating a new folder, text document, or whatever. Do this through the phone, not a p.c. If it does not work, reboot to recovery, restore back to previous point and let me know asap.

I like it
Sent from my SGH-I317 using Tapatalk 2

cdshepherd said:
I like it
Sent from my SGH-I317 using Tapatalk 2
Click to expand...
Click to collapse
Thanks I will incorporate this on the 4.3 if you don't mind with credit.
Sent from my GT-I9505G using Tapatalk 2

I don't mind at all. Use what ya need.
Sent from my GT-I9505G using Tapatalk 4

I did use Samurai's Odin package to update to mh5. I figures it would revert the permissions. My zip still works.
And TWRP 2.6.3.0 is out.
Sent from my GT-I9505G using Tapatalk 4

occupational_hazard said:
I have created a flashable zip that works in an aftermarket recovery. It replaces the platform.xml file with modified file that has the necessary permission line to make the sd card writable now. That is the only thing changed. I added the <group gid="media_rw"/> under WRITE_EXTERNAL_STORAGE.
You need to be on a custom recovery. This update only applies to I9505G. If you do not have an S4 GOOGLE EDITION PHONE, then please disregard and move on. This is only for the MH1 4.3 firmware that does not allow you to write to the sdcard.
Warning; You are flashing this at your own risk. I am not responsible for broken devices, deleted memory cards, phones thrown from raging, or WW3.
Download the flashable from here: http://d-h.st/Eif
Download the modified platform.xml to replace the original from here if you would rather push it: http://d-h.st/ooU
(this is not needed with zip, already included)
1. Place the zip the on your internal or external drive.
2. Reboot to your custom recovery, ie ( twrp, cwm)
3. Create a backup, have a restore point if it does not work.
4. Wipe dalvik and cache
5. Install the zip file
6. Wipe the dalvik and cache just to be sure.
7. Reboot phone.
Test to make sure it worked by using any file explorer, ie(solid explorer, root explorer, etc.) and creating a new folder, text document, or whatever. Do this through the phone, not a p.c. If it does not work, reboot to recovery, restore back to previous point and let me know asap.
Click to expand...
Click to collapse
You're welcome.
http://forum.xda-developers.com/showthread.php?p=44370296
When dialog fails, it's time for violence.

Really I would have never thought of doing that. That's ground breaking. Extraordinary!
Now do more research and you will see people have trouble writing to that file with root and trying a multitude of file explorers. And mounting system r/w. I still couldn't. Hence the links to the flashable in the op.
So....
Your welcome.
Sent from my GT-I9505G using Tapatalk 4

occupational_hazard said:
Really I would have never thought of doing that. That's ground breaking. Extraordinary!
Now do more research and you will see people have trouble writing to that file with root and trying a multitude of file explorers. And mounting system r/w. I still couldn't. Hence the links to the flashable in the op.
So....
Your welcome.
Sent from my GT-I9505G using Tapatalk 4
Click to expand...
Click to collapse
My sincere apologies. I'm having a bad day. I'm glad I could contribute to your work.
When dialog fails, it's time for violence.

Its all good and understandable.
Sent from my GT-I9505G using Tapatalk 4

That worked great, thank you!
Sent from my GT-I9505G using Tapatalk 2

apollokid said:
That worked great, thank you!
Sent from my GT-I9505G using Tapatalk 2
Click to expand...
Click to collapse
Works well on 4.4 also.

This is good to know
Sent from my GT-I9505G using Tapatalk

wilbarger said:
Works well on 4.4 also.
Click to expand...
Click to collapse
I had read that some folks were having troubles with the 4.4 update, can you update and then edit that file again the same way as before?

Prior to updating, I was running CM 10.2. I flashed back to stock 4.3 from here http://forum.xda-developers.com/showthread.php?t=2442445 and then flashed 4.4 from here http://forum.xda-developers.com/showthread.php?t=2544056. After that (which went flawlessly), I copied the SD card fix from this thread and then installed it. No issues at all and everything works perfectly.
We are lucky to have SamuriHL and MJHawaii helping us out with our phones. Sorry, left out occupational_hazard. No disrespect meant.

Below is the text from the platform.xml that is on my phone after I updated. There shouldn't be any need to flash on 4.4. But please let me know if I am wrong. I also can make the original 4.3 platform.xml file to flash so you can update through recovery of that is the issue
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.BLUETOOTH_STACK" >
<group gid="net_bt_stack" />
</permission>
<permission name="android.permission.NET_TUNNELING" >
<group gid="vpn" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
<permission name="android.permission.NET_ADMIN" >
<group gid="net_admin" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
<group gid="net_bw_stats" />
</permission>
<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
<group gid="net_bw_acct" />
</permission>
<permission name="android.permission.LOOP_RADIO" >
<group gid="loop_radio" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
</permissions>
Sent from my GT-I9505G using Tapatalk

I think you may be mistaken. After flash, it is as you stated. From what I understand, you will need to add (either by editing or by using your file in this thread) to change platform.xml to have <group gid="media_rw" /> statement under WRITE_EXTERNAL_STORAGE
Are you saying that you can store to external SD without this statement? I could not until I made the change.

occupational_hazard said:
Below is the text from the platform.xml that is on my phone after I updated. There shouldn't be any need to flash on 4.4. But please let me know if I am wrong. I also can make the original 4.3 platform.xml file to flash so you can update through recovery of that is the issue
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.BLUETOOTH_STACK" >
<group gid="net_bt_stack" />
</permission>
<permission name="android.permission.NET_TUNNELING" >
<group gid="vpn" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
<permission name="android.permission.NET_ADMIN" >
<group gid="net_admin" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
<group gid="net_bw_stats" />
</permission>
<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
<group gid="net_bw_acct" />
</permission>
<permission name="android.permission.LOOP_RADIO" >
<group gid="loop_radio" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
</permissions>
Sent from my GT-I9505G using Tapatalk
Click to expand...
Click to collapse
Are you sure about this? I think this is wrong and that the platform.xml file does not have that line in 4.4

That's the platform.XML I have after updating to 4.4 with no sdcard fix.
Sent from my GT-I9505G using Tapatalk

You can check it under /etc/permissions/platform.xml
Sent from my GT-I9505G using Tapatalk

Maybe since I did not use your file on 4.3 and did the text edit of the file instead, it didn't carry forward when I upgraded. I do know that when I flashed your file, it changed the statement to "media" instead of <group gid="sdcard_r" />.
Here is what I now have <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
<groud gid="media_rw" />
</permission>
Just to clarify, you can create a new folder on the SD card without the "media" statement??

Related

[WIP] a firefox os ext4 multiboot image

Updated:
Use the following instructions above.
This is not any build. It's just a wip.
Read the following code and instructions to compile for archos 80 gen9 devices.
device/archos/archos-g9 rename it for device/archos/gen9
To compile it sucessfully.
Hi there!
I have a question.
Is it possible to do a firefox os wip as multiboot ext4 image?
For 80 g9 turbo also turbo hdd?
I have a hdd version archos 80 g9.
Sent from my L9000 using xda app-developers app
For compiling Firefox OS for Archos G9.
Do the following steps:
1 - git clone the b2g project
2 - cd B2G
3 - ANDROIDFS_DIR=~/B2G/BACKUP/system ./config.sh archos-gen9 archos-gen9.xml
4 - ./build.sh
5 - fixes for our archos gen9 see the bizcuite posts. He helped me a lot.
Other steps:
archos-gen9.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch="https://android.googlesource.com/" />
<remote name="b2g"
fetch="git://github.com/mozilla-b2g/" />
<remote name="linaro"
fetch="http://android.git.linaro.org/git-ro/" />
<remote name="caf"
fetch="git://codeaurora.org/" />
<remote name="mozilla"
fetch="git://github.com/mozilla/" />
<remote name="mozillaorg"
fetch="https://git.mozilla.org/releases" />
<remote name="archos-ics" fetch="git://gitorious.org/archos-ics/" />
<remote name="apitrace" fetch="git://github.com/apitrace/" />
<default revision="refs/tags/android-4.0.4_r2.1"
remote="caf"
sync-j="4" />
<!-- Gonk specific things and forks -->
<project path="build" name="platform_build" remote="b2g" revision="master">
<copyfile src="core/root.mk" dest="Makefile" />
</project>
<project path="dalvik" name="fake-dalvik" remote="b2g" revision="master" />
<project path="gaia" name="gaia.git" remote="mozillaorg" revision="master" />
<project path="gecko" name="gecko.git" remote="mozillaorg" revision="master" />
<project path="gonk-misc" name="gonk-misc" remote="b2g" revision="master" />
<project path="rilproxy" name="rilproxy" remote="b2g" revision="master" />
<project path="external/moztt" name="moztt" remote="b2g" revision="master" />
<project path="external/valgrind" name="valgrind" remote="b2g" revision="fxos" />
<project path="external/VEX" name="vex" remote="b2g" revision="fxos" />
<project path="external/apitrace" name="apitrace" remote="apitrace" revision="master" />
<!-- Stock Android things -->
<project path="abi/cpp" name="platform/abi/cpp" />
<project path="bionic" name="platform/bionic" revision="aosp-new/ics-plus-aosp" />
<project path="bootable/recovery" name="platform/bootable/recovery" />
<project path="device/common" name="device/common" />
<project path="device/sample" name="device/sample" />
<project path="external/apriori" name="platform_external_apriori" remote="b2g" revision="master" />
<project path="external/bluetooth/bluez" name="platform/external/bluetooth/bluez" />
<project path="external/bluetooth/glib" name="platform/external/bluetooth/glib" />
<project path="external/bluetooth/hcidump" name="platform/external/bluetooth/hcidump" />
<project path="external/bsdiff" name="platform/external/bsdiff" />
<project path="external/busybox" name="platform/external/busybox" remote="linaro" revision="linaro-1.20" />
<project path="external/bzip2" name="platform/external/bzip2" />
<project path="external/dbus" name="platform/external/dbus" />
<project path="external/dhcpcd" name="platform/external/dhcpcd" />
<project path="external/dnsmasq" name="platform/external/dnsmasq" />
<project path="external/elfcopy" name="platform_external_elfcopy" remote="b2g" revision="master" />
<project path="external/elfutils" name="platform_external_elfutils" remote="b2g" revision="master" />
<project path="external/expat" name="platform/external/expat" />
<project path="external/fdlibm" name="platform/external/fdlibm" />
<project path="external/flac" name="platform/external/flac" />
<project path="external/freetype" name="platform/external/freetype" />
<project path="external/giflib" name="platform/external/giflib" />
<project path="external/gtest" name="platform/external/gtest" revision="aosp-new/master" />
<project path="external/harfbuzz" name="platform/external/harfbuzz" />
<!-- icu4c is missing the default tag in caf, that's the *only* reason for the hardcode -->
<project path="external/icu4c" name="platform/external/icu4c" revision="0fa67b93b831c6636ca18b152a1b1b14cc99b034" />
<project path="external/iptables" name="platform/external/iptables" />
<project path="external/jhead" name="platform/external/jhead" />
<project path="external/jpeg" name="platform/external/jpeg" />
<project path="external/libgsm" name="platform/external/libgsm" />
<project path="external/liblzf" name="platform/external/liblzf" />
<project path="external/libnfc-nxp" name="platform/external/libnfc-nxp" />
<project path="external/libnl-headers" name="platform/external/libnl-headers" />
<project path="external/libpng" name="platform/external/libpng" />
<project path="external/libvpx" name="platform/external/libvpx" />
<project path="external/mksh" name="platform/external/mksh" />
<project path="external/opensans" name="platform_external_opensans" remote="b2g" revision="master" />
<project path="external/openssl" name="platform/external/openssl" />
<project path="external/protobuf" name="platform/external/protobuf" />
<project path="external/safe-iop" name="platform/external/safe-iop" />
<project path="external/screencap-gonk" name="screencap-gonk" remote="b2g" revision="master" />
<project path="external/skia" name="platform/external/skia" />
<project path="external/sonivox" name="platform/external/sonivox" />
<project path="external/speex" name="platform/external/speex" />
<project path="external/sqlite" name="platform/external/sqlite" />
<project path="external/stlport" name="platform/external/stlport" />
<project path="external/strace" name="platform/external/strace" />
<project path="external/tagsoup" name="platform/external/tagsoup" />
<project path="external/tinyalsa" name="platform/external/tinyalsa" />
<project path="external/tremolo" name="platform/external/tremolo" />
<project path="external/webp" name="platform/external/webp" />
<project path="external/webrtc" name="platform/external/webrtc" />
<project path="external/wpa_supplicant" name="platform/external/wpa_supplicant" />
<project path="external/wpa_supplicant_8" name="platform/external/wpa_supplicant_8" revision="6dd24fc3792d71edccef9b09140f9a44b063a553" />
<project path="external/zlib" name="platform/external/zlib" />
<project path="external/yaffs2" name="platform/external/yaffs2" />
<project path="frameworks/base" name="platform/frameworks/base" />
<project path="frameworks/opt/emoji" name="platform/frameworks/opt/emoji" />
<project path="frameworks/support" name="platform/frameworks/support" />
<project path="hardware/libhardware" name="platform/hardware/libhardware" />
<project path="hardware/libhardware_legacy" name="platform/hardware/libhardware_legacy" />
<project path="hardware/ril" name="platform/hardware/ril" />
<project path="libcore" name="platform/libcore" />
<project path="ndk" name="platform/ndk" />
<project path="prebuilt" name="platform/prebuilt" />
<project path="system/bluetooth" name="platform/system/bluetooth" />
<project path="system/core" name="platform/system/core" />
<project path="system/extras" name="platform/system/extras" />
<project path="system/media" name="platform/system/media" />
<project path="system/netd" name="platform/system/netd" />
<project path="system/vold" name="platform/system/vold" />
<!-- Archos Gen9 specific things -->
<project path="device/ti/panda" name="android-device-panda" remote="b2g" revision="master" />
<project path="device/archos/archos-g9" name="device-g9" remote="archos-ics" revision="master" />
<project path="hardware/ti/omap4xxx" name="platform/hardware/ti/omap4xxx" />
<project path="hardware/ti/wlan" name="platform/hardware/ti/wlan" revision="60dfeb6e4448bfed707946ebca6612980f525e69" />
<project path="hardware/ti/wpan" name="platform/hardware/ti/wpan" revision="3ece7d9e08052989401e008bc397dbcd2557cfd0" />
<project path="external/negatus" name="Negatus" remote="mozilla" revision="master" />
<project path="external/orangutan" name="orangutan" remote="b2g" revision="master" />
</manifest>
Code:
echo A80:
mkdir -p /home/pedro/firefox_tmp
mount -o loop ./archos.ext4.update /home/pedro/tmp
mount -o loop ./firefox.ext4 /home/pedro/firefox_tmp
rsync -rlpgotvDH --progress --delete ./root/ /home/pedro/tmp/
rsync -rlpgotvDH --progress --delete ./system/ /home/pedro/tmp/
mkdir -p /home/pedro/tmp/data/test /home/pedro/tmp/mnt /home/pedro/tmp/home/pedro/tmp/storage
ln -sf /home/pedro/tmp/storage /home/pedro/tmp/storage
chmod 0777 /home/pedro/tmp/home/pedro/tmp/storage /home/pedro/tmp/data/test
chown -R root:root /home/pedro/tmp/
chmod 0755 /home/pedro/tmp/system/framework/
chmod 6755 /home/pedro/tmp/xbin/su
chmod 0755 /home/pedro/tmp/media/
chmod 0755 /home/pedro/tmp/usr/share/alsa/
chmod 0755 /home/pedro/tmp/lib/dsp/
chmod 0644 /home/pedro/tmp/lib/libOMX.*
chmod 0755 /home/pedro/tmp/lib/
chmod 0755 /home/pedro/tmp/bin/
mkdir -p /home/pedro/firefox_tmp/system/media
cp -R /home/pedro/tmp/media/* /home/pedro/firefox_tmp/system/media/
mkdir -p /home/pedro/firefox_tmp/system/usr/share/alsa/
cp -R /home/pedro/B2G/device/archos/gen9/prebuilt/alsa/ /home/pedro/firefox_tmp/system/usr/share/alsa/
cp -R /home/pedro/B2G/device/archos/gen9/init.rc /home/pedro/firefox_tmp/init.rc
mkdir -p /home/pedro/firefox_tmp/system/lib/dsp
mkdir -p /home/pedro/firefox_tmp/lib
cp -R /home/pedro/tmp/lib/* /home/pedro/firefox_tmp/system/lib/
cp -R /home/pedro/tmp/* /home/pedro/firefox_tmp/
cp -R /home/pedro/tmp/lib/* /home/pedro/firefox_tmp/system/lib/
cp -R /home/pedro/tmp/lib/* /home/pedro/firefox_tmp/lib/
rm -rf /home/pedro/firefox_tmp/system/system/
cp -R /home/pedro/B2G/out/target/product/gen9/system/ /home/pedro/firefox_tmp/
rm -rf /home/pedro/firefox_tmp/app/
rm /home/pedro/tmp/app/Phone.apk
chmod -R 0777 /home/pedro/tmp/system/app/
chmod -R 0755 /home/pedro/tmp/system/bin/
chmod -R 0755 /home/pedro/tmp/system/lib/
chmod -R 0777 /home/pedro/firefox_tmp/app/
chmod -R 0755 /home/pedro/firefox_tmp/system/bin/
chmod -R 0755 /home/pedro/firefox_tmp/system/lib/
sync
Tuesday a working release rom image.
For archos gen9 project path for device gen9 i'll update it soon.
This week a working rom. I think.
I've been working today to give us all a working rom.
Instructions for testing:
copy system.img for /data/local
or
copy system.img for /mnt/storage using adb push system.img /mnt/storage
Link:
[LINK]
https://www.4shared.com/file/vtkG1TbF/system.html
[/LINK]
PS: New version attempting as archos.ext4.update
It's will be released a ext4 attempt friday or saturday.
I'm trying to boot with the new kernel archos.
Welcome to XDA.
Both of your topics seem to be in wrong section, as they should be in general.
Having Firefox Os in ext4 is possible in theory, but no one has ported it to archos G9 series.
Sent from my GT-I9100 using xda app-developers app
thanks a lot.
astronfestmon said:
Hi there!
I have a question.
Is it possible to do a firefox os wip as multiboot ext4 image?
For 80 g9 turbo also turbo hdd?
I have a hdd version archos 80 g9.
Sent from my L9000 using xda app-developers app
Click to expand...
Click to collapse
julle131 said:
Welcome to XDA.
Both of your topics seem to be in wrong section, as they should be in general.
Having Firefox Os in ext4 is possible in theory, but no one has ported it to archos G9 series.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Hi Guys,
It's possible to have multiboot with archos tablet (i am sure with Gen8, i have made it ^^).
Firefox OS can be compiled easily with the device folder from Gen 9 CM9/10.
I start it like CM7 = SDE => Kernel=> Initramfs => OS choice's
With my folder (Gen8 - CM9 CyanoBiz) i have compile it yesterday and my first release works today (3D, Wifi, TS and sound works)
I have just modified an include path in an android.mk in /external folder (don't remember exactly the name).
No modification in the kernel (except all made to run ICS)
On my tab (A70S2 Froyo Gen8) it works well, i haven't try the video playing or other, because i haven't navigation button
On Omap44xx you have already a base with pandaboard based on the same CPU.
I don't know how is started yours alternatives OS, but i can give informations about the compilation of Firefox OS for Archos.
I have passed 1 day to port it (just start the system, not fix all bugs )
Bizcuite
Thanks for telling me.
The kernel ICS from archos gen9 making the defconfig can be possible to run an hdd turbo version. If i'm wrong.
The ext4 if possible we can make a dd with the following system as:
dd if=/dev/zero of=firefox.ext4 bs=1024
I'm just saying that.
Supposing.
astronfestmon said:
Thanks for telling me.
The kernel ICS from archos gen9 making the defconfig can be possible to run an hdd turbo version. If i'm wrong.
The ext4 if possible we can make a dd with the following system as:
dd if=/dev/zero of=firefox.ext4 bs=1024
I'm just saying that.
Supposing.
Click to expand...
Click to collapse
For the kernel, just compile and use the kernel on archos gitorious, you have a 3.0 kernel for archos 80 hdd version.
If you want to compile it:
-Download all sources from B2G git
-Just try to copy/paste the device folder from archos CM9 (see the post of Quinny if he has a git)
-you will have an error (header missing) i have the fix, but i don't remember the path.
-compile by those commands:
. build/environment
lunch (choose the device)
choosecombo (i choose userdebug)
make -jx (x = number of threads)
Bizcuite
Thanks a lot.
I'll try it now.
I'll tell it more later.
astronfestmon said:
Thanks a lot.
I'll try it now.
I'll tell it more later.
Click to expand...
Click to collapse
Another thing:
I have added this lines in init.rc to have a boot of system (i know that is a Viking method, but it works lol) :
Code:
service fakesched /system/bin/fakesched
class main
user root
service b2g /system/bin/b2g.sh
class main
onrestart restart media
service rilproxy /system/bin/rilproxy
class main
socket rilproxy stream 660 root system
user root
group radio
on boot
exec /system/bin/rm -r /data/local/tmp
exec /system/bin/mkdir -p /data/local/tmp
# set RLIMIT_NOFILE to increase soft limit from 1024(default) to 2048.
# Hard limit keeps default value(4096).
setrlimit 7 2048 4096
It's not very different of an Android compilation.
I will made a how to, to port a device to Firefox OS.
PS: I don't know which hardware is used to run wifi (WL127x?) if yes maybe you have to copy and paste the wpa_6_supplicant from CM9 sources to have a working wifi
This is my script to copy and paste all tools/app (Viking Method again ):
Code:
echo A70S:
qemu-img create -f raw ./CYANOBIZ_BETA2.x_A70.img 300M
mkfs.ext4 -qF -O ^huge_file ./CYANOBIZ_BETA2.x_A70.img
mount -o loop ./CYANOBIZ_BETA2.x_A70.img /mnt/
rsync -rlpgotvDH --progress --delete ./root/ /mnt/
rsync -rlpgotvDH --progress --delete ./system/ /mnt/system/
mkdir -p /mnt/data/test /mnt/mnt /mnt/mnt/storage
ln -sf /mnt/storage /mnt/storage
chmod 0777 /mnt/mnt/storage /mnt/data/test
chown -R root:root /mnt/
chmod 0755 /mnt/system/framework/*
chmod 6755 /mnt/system/xbin/su
chmod -R 0755 /mnt/system/media/*
chmod -R 0755 /mnt/system/usr/share/alsa/*
chmod -R 0755 /mnt/system/lib/dsp/*
chmod -R 0644 /mnt/system/lib/libOMX.*
chmod -R 0755 /mnt/lib/*
chmod -R 0755 /mnt/system/bin/*
mkdir /mnt/system/media
cp -R ../../../../device/archos/g8/media/* /mnt/system/media/
mkdir /mnt/system/usr/share/alsa
cp -R ../../../../device/archos/g8/system/usr/share/alsa/* /mnt/system/usr/share/alsa/
cp -R ../../../../device/archos/g8/init.rc /mnt/init.rc
mkdir /mnt/system/lib/dsp
cp -R ../../../../device/archos/g8/system/lib/* /mnt/system/lib/
mkdir /mnt/lib
cp -R ../../../../device/archos/g8/lib/* /mnt/lib/
rm /mnt/system/app/Phone.apk
chmod -R 0777 /mnt/system/app/*
chmod -R 0755 /mnt/system/bin/*
chmod -R 0755 /mnt/system/lib/*
sync
If you have an error with buffer.h in external/negatus/src folders, just add this lines in the android.mk:
LOCAL_C_INCLUDES:= \
$(shell nspr-config --includedir) \
external/stlport/stlport \
gaia/xulrunner-sdk/include \
gaia/xulrunner-sdk/include/nspr \
bionic
Click to expand...
Click to collapse
Bizcuite
It's working the port compliant. Thanks.
I'll try on a mt6577 dual sim ics phone too.
astronfestmon said:
It's working the port compliant. Thanks.
I'll try on a mt6577 dual sim ics phone too.
Click to expand...
Click to collapse
I have just a question, How control the tab without any Nav. buttons?
Firefox has any Nav Bar like android?! Is exist under FF OS? (yes if i/other guy try to implement it of course)
There was only 2 days that i have begun my researches on Firefox OS.
Bizcuite
bizcuite said:
I have just a question, How control the tab without any Nav. buttons?
Firefox has any Nav Bar like android?! Is exist under FF OS? (yes if i/other guy try to implement it of course)
There was only 2 days that i have begun my researches on Firefox OS.
Bizcuite
Click to expand...
Click to collapse
I'm fixing the same issue you told on xulrunner.
Tomorrow Ii'll tell you if it is working my build and we can discuss it.
It's still compiling since yesterday since i told the latest post.
I'm using a pentium d 2.8GHZ with 2GB RAM.
It's finishing the compilation.
More i will tell this afternoon. GMT.
Tomorrow I'll release a proofing video also my build.
You said it's happening to me.
I'll try and test it better.
Tomorrow i'll release my build for archos gen9 also the instructions in this topic.
I've need to make Viking method.
astronfestmon said:
Tomorrow I'll release a proofing video also my build.
You said it's happening to me.
I'll try and test it better.
Tomorrow i'll release my build for archos gen9 also the instructions in this topic.
I've need to make Viking method.
Click to expand...
Click to collapse
Have you any problem with wifi?
Because i cannot choose one and loop on "connectivity/data search" screen...
I have "fix" it by a modification in the wpa_supplicant.conf. I have include directly my own wifi parameters directly into it.
Bizcuite
Me too.
I've made a script to get work the image now it's not booting. Oh My God!
Topic updated.
archos-gen9.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch="https://android.googlesource.com/" />
<remote name="b2g"
fetch="git://github.com/mozilla-b2g/" />
<remote name="linaro"
fetch="http://android.git.linaro.org/git-ro/" />
<remote name="caf"
fetch="git://codeaurora.org/" />
<remote name="mozilla"
fetch="git://github.com/mozilla/" />
<remote name="mozillaorg"
fetch="https://git.mozilla.org/releases" />
<remote name="archos-ics" fetch="git://gitorious.org/archos-ics/" />
<remote name="apitrace" fetch="git://github.com/apitrace/" />
<default revision="refs/tags/android-4.0.4_r2.1"
remote="caf"
sync-j="4" />
<!-- Gonk specific things and forks -->
<project path="build" name="platform_build" remote="b2g" revision="master">
<copyfile src="core/root.mk" dest="Makefile" />
</project>
<project path="dalvik" name="fake-dalvik" remote="b2g" revision="master" />
<project path="gaia" name="gaia.git" remote="mozillaorg" revision="master" />
<project path="gecko" name="gecko.git" remote="mozillaorg" revision="master" />
<project path="gonk-misc" name="gonk-misc" remote="b2g" revision="master" />
<project path="rilproxy" name="rilproxy" remote="b2g" revision="master" />
<project path="external/moztt" name="moztt" remote="b2g" revision="master" />
<project path="external/valgrind" name="valgrind" remote="b2g" revision="fxos" />
<project path="external/VEX" name="vex" remote="b2g" revision="fxos" />
<project path="external/apitrace" name="apitrace" remote="apitrace" revision="master" />
<!-- Stock Android things -->
<project path="abi/cpp" name="platform/abi/cpp" />
<project path="bionic" name="platform/bionic" revision="aosp-new/ics-plus-aosp" />
<project path="bootable/recovery" name="platform/bootable/recovery" />
<project path="device/common" name="device/common" />
<project path="device/sample" name="device/sample" />
<project path="external/apriori" name="platform_external_apriori" remote="b2g" revision="master" />
<project path="external/bluetooth/bluez" name="platform/external/bluetooth/bluez" />
<project path="external/bluetooth/glib" name="platform/external/bluetooth/glib" />
<project path="external/bluetooth/hcidump" name="platform/external/bluetooth/hcidump" />
<project path="external/bsdiff" name="platform/external/bsdiff" />
<project path="external/busybox" name="platform/external/busybox" remote="linaro" revision="linaro-1.20" />
<project path="external/bzip2" name="platform/external/bzip2" />
<project path="external/dbus" name="platform/external/dbus" />
<project path="external/dhcpcd" name="platform/external/dhcpcd" />
<project path="external/dnsmasq" name="platform/external/dnsmasq" />
<project path="external/elfcopy" name="platform_external_elfcopy" remote="b2g" revision="master" />
<project path="external/elfutils" name="platform_external_elfutils" remote="b2g" revision="master" />
<project path="external/expat" name="platform/external/expat" />
<project path="external/fdlibm" name="platform/external/fdlibm" />
<project path="external/flac" name="platform/external/flac" />
<project path="external/freetype" name="platform/external/freetype" />
<project path="external/giflib" name="platform/external/giflib" />
<project path="external/gtest" name="platform/external/gtest" revision="aosp-new/master" />
<project path="external/harfbuzz" name="platform/external/harfbuzz" />
<!-- icu4c is missing the default tag in caf, that's the *only* reason for the hardcode -->
<project path="external/icu4c" name="platform/external/icu4c" revision="0fa67b93b831c6636ca18b152a1b1b14cc99b034" />
<project path="external/iptables" name="platform/external/iptables" />
<project path="external/jhead" name="platform/external/jhead" />
<project path="external/jpeg" name="platform/external/jpeg" />
<project path="external/libgsm" name="platform/external/libgsm" />
<project path="external/liblzf" name="platform/external/liblzf" />
<project path="external/libnfc-nxp" name="platform/external/libnfc-nxp" />
<project path="external/libnl-headers" name="platform/external/libnl-headers" />
<project path="external/libpng" name="platform/external/libpng" />
<project path="external/libvpx" name="platform/external/libvpx" />
<project path="external/mksh" name="platform/external/mksh" />
<project path="external/opensans" name="platform_external_opensans" remote="b2g" revision="master" />
<project path="external/openssl" name="platform/external/openssl" />
<project path="external/protobuf" name="platform/external/protobuf" />
<project path="external/safe-iop" name="platform/external/safe-iop" />
<project path="external/screencap-gonk" name="screencap-gonk" remote="b2g" revision="master" />
<project path="external/skia" name="platform/external/skia" />
<project path="external/sonivox" name="platform/external/sonivox" />
<project path="external/speex" name="platform/external/speex" />
<project path="external/sqlite" name="platform/external/sqlite" />
<project path="external/stlport" name="platform/external/stlport" />
<project path="external/strace" name="platform/external/strace" />
<project path="external/tagsoup" name="platform/external/tagsoup" />
<project path="external/tinyalsa" name="platform/external/tinyalsa" />
<project path="external/tremolo" name="platform/external/tremolo" />
<project path="external/webp" name="platform/external/webp" />
<project path="external/webrtc" name="platform/external/webrtc" />
<project path="external/wpa_supplicant" name="platform/external/wpa_supplicant" />
<project path="external/wpa_supplicant_8" name="platform/external/wpa_supplicant_8" revision="6dd24fc3792d71edccef9b09140f9a44b063a553" />
<project path="external/zlib" name="platform/external/zlib" />
<project path="external/yaffs2" name="platform/external/yaffs2" />
<project path="frameworks/base" name="platform/frameworks/base" />
<project path="frameworks/opt/emoji" name="platform/frameworks/opt/emoji" />
<project path="frameworks/support" name="platform/frameworks/support" />
<project path="hardware/libhardware" name="platform/hardware/libhardware" />
<project path="hardware/libhardware_legacy" name="platform/hardware/libhardware_legacy" />
<project path="hardware/ril" name="platform/hardware/ril" />
<project path="libcore" name="platform/libcore" />
<project path="ndk" name="platform/ndk" />
<project path="prebuilt" name="platform/prebuilt" />
<project path="system/bluetooth" name="platform/system/bluetooth" />
<project path="system/core" name="platform/system/core" />
<project path="system/extras" name="platform/system/extras" />
<project path="system/media" name="platform/system/media" />
<project path="system/netd" name="platform/system/netd" />
<project path="system/vold" name="platform/system/vold" />
<!-- Archos Gen9 specific things -->
<project path="device/archos/archos-g9" name="device-g9" remote="archos-ics" revision="master" />
<project path="hardware/ti/omap4xxx" name="platform/hardware/ti/omap4xxx" />
<project path="hardware/ti/wlan" name="platform/hardware/ti/wlan" revision="60dfeb6e4448bfed707946ebca6612980f525e69" />
<project path="hardware/ti/wpan" name="platform/hardware/ti/wpan" revision="3ece7d9e08052989401e008bc397dbcd2557cfd0" />
<project path="external/negatus" name="Negatus" remote="mozilla" revision="master" />
<project path="external/orangutan" name="orangutan" remote="b2g" revision="master" />
</manifest>
It's compiling as bizcuite told. My research now it's to try compiling with build.sh on a 32bit machine. On 64 bit it's working.
Sent from my L9000 using xda app-developers app
To have a home button, just see this https://github.com/lfont/blog/blob/master/pages/firefox-os-on-the-galaxy-nexus/content.md
Read the section about "Fix the key mapping".
I will try to map the volume up to the Home key.
Bizcuite
bizcuite said:
To have a home button, just see this https://github.com/lfont/blog/blob/master/pages/firefox-os-on-the-galaxy-nexus/content.md
Read the section about "Fix the key mapping".
I will try to map the volume up to the Home key.
Bizcuite
Click to expand...
Click to collapse
I have tried and it works well. Volume up can permit me to return back home screen.
After many test whats work (on gen8)
Sound
Wifi
Bt (turn on but not tested fully)
Adb
Doesn't worked
Video (only test by internet browser)
Int/ext Sdcard cannot be seen (it lakes an equivalent of root explorer)
Auto rotation
Internet navigation bugs when you zoom
Is it the same thing on gen9?
Can you share me your script to fix the pb with wifi please?
Thanks in advanced.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Desktop formatted
bizcuite said:
I have tried and it works well. Volume up can permit me to return back home screen.
After many test whats work (on gen8)
Sound
Wifi
Bt (turn on but not tested fully)
Adb
Doesn't worked
Video (only test by internet browser)
Int/ext Sdcard cannot be seen (it lakes an equivalent of root explorer)
Auto rotation
Internet navigation bugs when you zoom
Is it the same thing on gen9?
Can you share me your script to fix the pb with wifi please?
Thanks in advanced.
Bizcuite
Sent from my GT-N7100 using xda app-developers app
Click to expand...
Click to collapse
I'll give but i'm formatting my desktop because the hard disk blew. Now, I'm giving back whole data into it. As soon as possible I'll give it.

[Q] Camera not available

Greetings,
After modifying platform.xml to allow airdroid to upload files to my SD card I've encountered an error - whenever I try to use my camera I get the error "camera not available".
these are the modifications I've made(added bold lines):
Code:
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
[B]<group gid="media_rw" />[/B]
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
[B]<group gid="media_rw" /> [/B]
</permission>
Physical button and the camera app and 3rd party apps don't work. I tried to clear data/cache on anything that has to do with the
camera but with no success any advice?

[Q] Lollipop ROM failed to write external SDCard

does anyone has experienced this?
seems no problem when write on internal
I had that problem too... Decided to try KitKat External SD Card Patch from Google Play to see if it would work and it did. Requires Root, though, as I'm sure any sort of fix for this would.
I used ES file explorer, I had to allow SD card access before I was able to use it normally. No root require. I tried to moved some apps to my sd card works too. You should try to move apps to sd. If that doesn't work then its either your SD card is dead or the writer is dead.
nyongrand said:
does anyone has experienced this?
seems no problem when write on internal
Click to expand...
Click to collapse
If you have root access.
1. As Root, Browse to "system/etc/permissions" (I recommend using FX File Explorer)
2. Open the file "platform.xml" for Edit.
3. Under "android.permission.WRITE_EXTERNAL_STORAGE", add the line "<group gid="media_rw" />".
From:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
to:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
4. Save and reboot.
You'll have normal SD card access for all your apps.
IaguCool said:
If you have root access.
1. As Root, Browse to "system/etc/permissions" (I recommend using FX File Explorer)
2. Open the file "platform.xml" for Edit.
3. Under "android.permission.WRITE_EXTERNAL_STORAGE", add the line "<group gid="media_rw" />".
From:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
to:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
4. Save and reboot.
You'll have normal SD card access for all your apps.
Click to expand...
Click to collapse
Hi @LaguCool, I decided to do what you write, unfortunately I can't save the file after I edit the file, I use ES File explorer, I swear I have root, is this called half root?
nyongrand said:
Hi @LaguCool, I decided to do what you write, unfortunately I can't save the file after I edit the file, I use ES File explorer, I swear I have root, is this called half root?
Click to expand...
Click to collapse
Before you open the file for edit, you need to "remount system as R/W". I'm not sure where to do that in ES, but it's really straightforward in FX.
EDIT: See here how to do that:
http://www.guidingtech.com/14709/es-file-explorer-edit-modify-system-files-android/
IaguCool said:
Before you open the file for edit, you need to "remount system as R/W". I'm not sure where to do that in ES, but it's really straightforward in FX.
EDIT: See here how to do that:
http://www.guidingtech.com/14709/es-file-explorer-edit-modify-system-files-android/
Click to expand...
Click to collapse
I have never experienced this before, FS always work for me,
I already do the step on the link too, maybe I should try other file explorer.
nyongrand said:
I have never experienced this before, FS always work for me,
I already do the step on the link too, maybe I should try other file explorer.
Click to expand...
Click to collapse
Well, in FX File Explorer you just go into "System (Root)", then to "system" folder and click the lock icon on the action bar to remount as read/write. After editing you click that icon again to remount as read-only. Really simple.
IaguCool said:
Well, in FX File Explorer you just go into "System (Root)", then to "system" folder and click the lock icon on the action bar to remount as read/write. After editing you click that icon again to remount as read-only. Really simple.
Click to expand...
Click to collapse
OK, thats working, thanks..
IgorEisberg said:
If you have root access.
1. As Root, Browse to "system/etc/permissions" (I recommend using FX File Explorer)
2. Open the file "platform.xml" for Edit.
3. Under "android.permission.WRITE_EXTERNAL_STORAGE", add the line "<group gid="media_rw" />".
From:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
to:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
4. Save and reboot.
You'll have normal SD card access for all your apps.
Click to expand...
Click to collapse
in my htc M8 i have not <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
i have only <permission name="android.permission.WRITE_MEDIA_STORAGE" >
so i add the llines manually and save chmod 0644 restare the phone but not work
any suggestion ?
Samy6699 said:
in my htc M8 i have not <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
i have only <permission name="android.permission.WRITE_MEDIA_STORAGE" >
so i add the llines manually and save chmod 0644 restare the phone but not work
any suggestion ?
Click to expand...
Click to collapse
If your file don't have it you could inject these lines in to your file at
Code:
Starting at line 65 or 66
<permission name=android.permission.WRITE_EXTERNAL_STORAGE >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Starting at line 76
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
I looked at platform.xml on both my honami and Endeavoru (HTC) and they are very similar, the HTC starts one line below each 65.
If you keep those lines inside the same area I think it will be okay.
source:
https://android.stackexchange.com/q...ternal-sd-card-on-htc-one-m8-running-lollipop
https://forum.xda-developers.com/xp...ailed-to-write-external-t3083401/post75536106
https://forum.xda-developers.com/showthread.php?t=2687734
SUPERUSER said:
If your file don't have it you could inject these lines in to your file at
Code:
Starting at line 65 or 66
<permission name=android.permission.WRITE_EXTERNAL_STORAGE >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Starting at line 76
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
I looked at platform.xml on both my honami and Endeavoru (HTC) and they are very similar, the HTC starts one line below each 65.
If you keep those lines inside the same area I think it will be okay.
source:
https://android.stackexchange.com/q...ternal-sd-card-on-htc-one-m8-running-lollipop
https://forum.xda-developers.com/xp...ailed-to-write-external-t3083401/post75536106
https://forum.xda-developers.com/showthread.php?t=2687734
Click to expand...
Click to collapse
It work for lollipop and kitkat but not in android 6
Samy6699 said:
It work for lollipop and kitkat but not in android 6
Click to expand...
Click to collapse
Yes I know. In marshmallow it changed to per-app basis prompt when the request is sent.
https://developer.android.com/training/permissions/requesting.html

[me176c/x] [K013] How to install on SD Card ?

Who can help me ? How i can install aps on microSD card ?
I installed https://play.google.com/store/apps/details?id=nextapp.sdfix&hl=en and ran it to make my sd card writable. You can also edit files by hand if you prefer. see: http://forum.xda-developers.com/showthread.php?t=2524277
HI
I have ASUS MeMO Pad 7 ME176C (K013) - rooted.
(Android 5.0 WW_V12.10.1.36_20151230)
I can't save to SDcard. I'm trying to unlock it. I used SDfix - card still locked.
I manually changed:
/system/etc/permissions/platform.xml
to:
<permission name=”android.permission.WRITE_EXTERNAL_STORAGE” >
<group gid=”sdcard_r” />
<group gid=”sdcard_rw” />
<group gid=”media_rw” />
</permission>
<permission name=”android.permission.WRITE_MEDIA_STORAGE” >
<group gid=”sdcard_rw” />
<group gid=”media_rw” />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
and I set permissions to 644 and 777 - also does not work.
Anyone know how to unlock writting on the card ?

Writing right on SD card is gone

Hi,
since few days i have a problem : i can not write on my sdcard.
when i'm deleting files, they reappear few minutes later, and when creating files they disappear...
i tried to format sd card from my phone it's not working.
I still can read data on SD card.
i checked the etc/permission/platform.xml file, and here what i have :
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
I've read internet that it is not good ?
But it was working few days ago and for few months...
My phone is not rooted, and I don't have access to a computer to do it.
What can I do ?
Thank you
Phone is a XT1068 running Android 5.0.2 stock and SD card is a sandisk 32go.
Getting same problem here
jmi303 said:
Hi,
since few days i have a problem : i can not write on my sdcard.
when i'm deleting files, they reappear few minutes later, and when creating files they disappear...
i tried to format sd card from my phone it's not working.
I still can read data on SD card.
i checked the etc/permission/platform.xml file, and here what i have :
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
I've read internet that it is not good ?
But it was working few days ago and for few months...
My phone is not rooted, and I don't have access to a computer to do it.
What can I do ?
Thank you
Phone is a XT1068 running Android 5.0.2 stock and SD card is a sandisk 32go.
Click to expand...
Click to collapse
I am also getting same problem here please help us anyone :crying:

Categories

Resources