Hey guys,
Since I cant post in the Dev Forum, i thought I'd leave this here...
If you're running into issues with apps being able to write to the SD card when using the conversion, like I had with stuff like beyondPod and Rdio, this should help it out.
The simple solution, if you're rooted, is as follows:
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Reboot
saw this in the galaxy tab plus forums and it worked on my oG!
Related
This is a question for Zach, but as a new user I did not have access to his thread. First, congratulations on developing a great ROM. You do great work, I love XTRSense 5.01. However, I have come across two small glitches, both related to your GScript app.
After running the Apps2SD script, all of the other scripts disappear. There is a note to find them on the SD card, but I haven't been able to find any scripts there. I specifically want to install the battery life script. Is there a way to recover access to the scripts?
Second, I accidentally ran the script that deleted HTC Teeter. Is there any way to get it back short of reinstalling the ROM?
Thanks in advance ...
TexasBadger said:
This is a question for Zach, but as a new user I did not have access to his thread. First, congratulations on developing a great ROM. You do great work, I love XTRSense 5.01. However, I have come across two small glitches, both related to your GScript app.
After running the Apps2SD script, all of the other scripts disappear. There is a note to find them on the SD card, but I haven't been able to find any scripts there. I specifically want to install the battery life script. Is there a way to recover access to the scripts?
Second, I accidentally ran the script that deleted HTC Teeter. Is there any way to get it back short of reinstalling the ROM?
Thanks in advance ...
Click to expand...
Click to collapse
Hi! Just to note, I'm not currently running xtrSENSE or xtrROM, but I have quite a lot in the past and probably will again someday, so I thought I'd answer what I can.
1. I don't know what's going on with scripts disappearing, are you sure you actually added them to GScript's list of available scripts? When you load GScript, initially it's blank, and you have to tell it to load each script individually. Make sure the checkbox for run as root is checked for each one. Then the first time you run one from the main GScript screen, it'll prompt you for SU access. Sorry if I'm including info you already know, just making this answer friendly for anyone who happens to find this thread. There should be a folder called gscript on the SD card.
Note: Different folder listing programs list files and folders in different sorting orders. Linux is case sensitive so you can have both a folder named gscripts and one called GScripts (only the first should exist, I'm just using it as example). What I'm getting at is that some programs list all the files and folders with starting with the lower-case letters first, and then the upper-case ones after, so if you look for the folder gscript, make sure and search everywhere in the listing.
Also, if you must, you can open the ROM zip file on your computer and look in the sdcard folder in it and you'll see the gscript folder there with all the scripts inside. Just copy the gscript folder to your SD card if they got deleted somehow.
2. Same as the last suggestion, you can open the ROM zip file on your computer and in the system\app folder there you'll find "teeter.apk". You can use Root Explorer off the Android Market to put that back in system\app, or you could just install it from your file manager (Astro, File Manager...) for it to reside in normal user memory.
Partial Success
"Also, if you must, you can open the ROM zip file on your computer and look in the sdcard folder in it and you'll see the gscript folder there with all the scripts inside. Just copy the gscript folder to your SD card if they got deleted somehow."
This worked perfectly. The GScript folder on the SD card was empty. Not anymore, and the scripts work fine.
"Same as the last suggestion, you can open the ROM zip file on your computer and in the system\app folder there you'll find "teeter.apk". You can use Root Explorer off the Android Market to put that back in system\app, or you could just install it from your file manager (Astro, File Manager...) for it to reside in normal user memory."
I put teeter.apk on the SD card, but my attempts to intall it with ES File Manager failed. Maybe related to Apps2SD?
TexasBadger said:
"Also, if you must, you can open the ROM zip file on your computer and look in the sdcard folder in it and you'll see the gscript folder there with all the scripts inside. Just copy the gscript folder to your SD card if they got deleted somehow."
This worked perfectly. The GScript folder on the SD card was empty. Not anymore, and the scripts work fine.
"Same as the last suggestion, you can open the ROM zip file on your computer and in the system\app folder there you'll find "teeter.apk". You can use Root Explorer off the Android Market to put that back in system\app, or you could just install it from your file manager (Astro, File Manager...) for it to reside in normal user memory."
I put teeter.apk on the SD card, but my attempts to intall it with ES File Manager failed. Maybe related to Apps2SD?
Click to expand...
Click to collapse
You don't want it on the SD card. You need to navigate to /system/app in internal storage on the ROM. Apps2sd moves third party apps that you install from the market to the SD card, but does not move the internal apps in /system/app.
You may need to restart after you pop that .apk back in /system/app to get it back in your app drawer.
EDIT: This issue was supposedly fixed with the release4 update. I'm a little behind in the times, but thought this was good info for xperia tablet s users none the less.
This is not about installing and running apps from the sdcard2, although this might help. This is about writing files, move, copy, paste, etc....to the sdcard2 from file managers (astro, etc...), office apps, and any other app installed on the tablet that you want to move or write to the external sdcard2. I found this method elsewhere on xda-developers and other forums so this is not my work and credit goes to them, but I have done this mod and edit and it works great.
Must be Rooted tablet:
1. Using 'File Expert' file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml in a text editor and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
That's it. After this you will be able to write to the sdcard2 from any app that is able. As far as installing apps to the sdcard2 and running them from there, this may now be possible using some play store apps designed for such activities.
Hope this helps. It did for me.....
EDIT: This issue was supposedly fixed with the release4 update. I'm a little behind in the times, but thought this was good info for xperia tablet s users none the less.
This was created in response to several people asking the safest way to reinstall user apps after flashing a ROM.
**This post shows you how to do it yourself.
**Please check out the second post to see apps verified to work that will perform this for you.
As the title implies, this will show you an easy and safe way to reinstall your apps after a clean ROM flash. I made this easy to do and easy to understand, so experts and new users can figure it out.
YOU WILL OBVIOUSLY NEED TO BE ROOTED FOR THIS.
To do this you will need 3 or 4 things things on your phone.
1. Download the attached file below named "AppBackup.zip". This is the file structure to correctly flash user apps. I built it to only install apps in /data/app. More advanced users may edit it to include system files, but that is beyond the scope of this tutorial (for now).
2. From the Play Store, install a file explorer with root access capability. For this tutorial, I will be using ES File Explorer. (ROOT REQUIRED)
3. From the Play Store, install ZArchiver. this app creates zip and other format archive files.
4. (Optional) From the Play Store, install ZipSigner. This app signs the zip file.
View attachment 2547107
>>ES File Explorer
To enable ES File Explorer's root functions:
Open the app and press the menu key. Select tools, and Root Explorer
View attachment 2547108
Your super User app will request permissions for ES File Explorer. Allow it, then choose "Mount R/W"
View attachment 2547109
Make sure that "/" and "/system" is chosen as r/w.
View attachment 2547110
ES File Explorer is now able to r/w your /data folders
Click to expand...
Click to collapse
----continued
In the file explorer app, navigate to where "AppBackup.zip" is located and decompress (upzip) it.
In the file explorer app, navigate to /data/app, and select all the apps you want to copy.
View attachment 2547137
Then navigate to the "AppBackup" file and post them into data/app.
View attachment 2547138
Click to expand...
Click to collapse
>>ZArchiver
**Note: ZArchiver's default location for completed zip files is in /storage/emulated/0/archives. You may change the destination in settings.
Using ZArchiver, navigate to INSIDE the "AppBackup" file! If you navigate only to the folder that "AppBackup" is inside, the zip will not work.
Choose the multi-select button.
View attachment 2547146
Select data and META-INF folders, then press the checkmark
View attachment 2547147
Press the tools button and select compress
View attachment 2547148
In the resulting pop up menu, ensure the highlighted values are selected. Press OK.
View attachment 2547149
This will take a minute or two, depending on how many apps you chose. When finished you will have a zip file!
View attachment 2547182
Click to expand...
Click to collapse
>>Optional ZipSigner
I list this as optional, because the "AppBackup" file should flash fine without being re-signed. But, I will show it to you, nonetheless!
Open ZipSigner and select "Choose in/out"
View attachment 2547191
Navigate to the new zip file you created.
View attachment 2547192
Select Sign the file. It will take a minute or two depending on how big the zip file size is.
View attachment 2547193
When it is done, close the app and navigate to where the original new zip file was (using the file explorer app). You will see one with the same name + "-signed".
View attachment 2547194
This is your new zip, and you may delete the old one and delete the "AppBackup" file if you wish to free up space.
Click to expand...
Click to collapse
YOU ARE DONE!
If you have questions or suggestions on how to make this tutorial better, please let me know!!
View attachment AppBackup.zip
Apps that can do it for you:
>> Titanium Backup w/Pro Key.
A Pro version feature will allow you to create an Update Zip file for any backed up app. There are many other features that make the purchase of the Pro Key worth the $$!
>> ZipMe
A stand alone program by JRummy. This program is listed as in beta, but has not been updated since mid 2013. It seems to work, but may have bugs. JRummy's main focal app "ROM Toolbox Pro" has this functionality slated to be included in a future update.
Other useful tip regarding backup of files and data:
-You never know what may happen. So when you back up anything, put it on your external sd card (odin wipes everything internal, including internal sd storage - thanks @Grompy ).
-Any experienced PC owner has lost things and learned to back up to cd or external hard drives. SD cards can fail. I make it a habit to back up my ext sd card at least once a month. My laptop then gets backed up to an external hard drive. Trust me. Don't learn this habit the hard way!
Will this work for apps that require lib files in /data/app-lib/? Like chrome, adobe reader, es file explorer etc..
Sent from my SM-N900V using Tapatalk
Yes. I use this method to install tibu and es file explorer after a rom flash, and never have problems.
Check out a new app from JRummy Apps called ZIPme. It is in beta but seems to work great and does it all.
Sent from my SM-N900V using XDA Premium HD app
This is very useful.
Frank
Updated. 2nd post now lists apps available to create recovery flashable zip files for you, rather than manually creating them.
<Note3>
Hey guys after losing all my backed up data, I just wanted to warn everyone to make sure that you back up everything to your external SD card when you use odin. I backed up everything using this method and using titanium backup, but both were saving to my internal SD card. When I odined everything was lost. I've since changed my backup location of titanium backup to my external and urge you all to do the same.
Sent from my SM-N900V using Tapatalk
This is helpful, thanks.
I just rooted Note 3 NC4 rom and I'm able to use Titanium Backup again.
But when I tried to backup the system, I got the error message "batch backup interrupted: insufficient storage space" even though there are enough external storage space left. It seems like it's a bug of TB because External SD is blocked to media_rw group. By simply changing the planform.xml file and reboot, TB started working again.
All credit goes to levi_jm at http://forum.xda-developers.com/showthread.php?t=2391363&page=4
(I create this thread because the original thread is located in S4 section)
1. Using a root-enabled file manager like root explorer, navigate to /system/etc/permissions
2. Edit platform.xml file and find the WRITE_EXTERNAL_STORAGE permission.
3. Add this group definition: <group gid="media_rw" />
4. Save changes.
5. Reboot
Worked perfect. Thank you!!
Sent from my Note 3
You could also just download this https://play.google.com/store/apps/details?id=jrummy.sdfix
It fixes the 4.4 SD card access bug.
Changed title so people can better catch what the thread is about. Good info.
garwynn said:
Changed title so people can better catch what the thread is about. Good info.
Click to expand...
Click to collapse
Thanks Garwynn! Glad to see you in here!
Since PA Gapps doesn't have any more support I've been trying my self to integrate the Gapps updates into system partition, and with Android 5.x i found it's easy because in previous versions the libraries had to be integrated but they were in separate directories, now the apk and the libraries are in the same directory, so it's just question of moving the whole directory to the system partition, reboot and voiala! In my case I use Root Explorer, just use the one you want, hope this helps out the ones with the same problem and sadness of no more PA Gapps.
Here the steps:
1. Locate your user app/update at data/app
2. It should appear as com.example.app folder
3. Highlight it and select "Move"
4. Now put in system/app
5. Reboot
Note 1: At step 3 you must move the whole folder and not just the apk
Note 2: I found that some AOSP Apps are in system/priv-app, like the Keyboard, so, for avoiding troubles, if you replace an AOSP app move it to his corresponding AOSP directory
Note 3: Also, you can de-bloat your ROM by deleting Apps (whole directory) with a root explorer, if you want to find an app PM me or ask what a apk is for before deleting it
This is my first post, if I made a mistake please tell me and sorry if I have bad english.