Is it possible to have "profiles" to switch between 2 themes? - G1 Themes and Wallpapers

well like the title says I am wondering if I can set things up the way I want them and have another profile setup for when my wife uses the phone. I'm hoping these profiles could be saved with different organizations of icons and stuff she would use just like I would have for my profile. Thanx for any advice ahead of time. Cheers!

Simple Answer, Android is not designed for Multiple users, buy her her own device

I don't get your logic that android is designed for a single user. It seems android is designed to provide whatever functionality people want so I don't see why it's beyond its capability and your answer does not reflect whether that functionality exists, and only gives a very narrowminded point of view. Thanx for your answer but does anyone know if it's possible to switch between themes on the G1? Sorta like profiles.

Because as much as you want this to be a computer its not its a PHONE.

I'm voting this for stupidiest question of the year BTW.

XwXDv8XwX said:
well like the title says I am wondering if I can set things up the way I want them and have another profile setup for when my wife uses the phone. I'm hoping these profiles could be saved with different organizations of icons and stuff she would use just like I would have for my profile. Thanx for any advice ahead of time. Cheers!
Click to expand...
Click to collapse
well the only way i could see this working is setting up a script that will do a nandroid backup, then copy it somewhere safe, and then restoring a previous backup (another profile) .. and then this can just keep going on
the only downside to this one is that constantly flashing your phone will wear your phone out
but yea the nandroid method should solve your dilemma
to do it only from your phone ... eh thats not happening

Honestly, you want too much from a phone.
If at the very least, you could not "turn on theme one, turn on theme two", the phone would have to reboot for changes to take effect. What you CAN do however...
1. get the two themes you want on your sdcard
2. Get a file managing program that allows file renaming
3. Rename the theme you want to use to update.zip
4. reboot in recovery (home + power), flash the update, reboot. Now you're on theme 1.
Now two change themes again
5. Open the file manager, rename your update.zip to w/e you want, but something so you know that its "THIS" theme not "THAT" theme, if you catch my drift.
Repeat steps 3 and 4. Now you're on theme 2. Rinse, and repeat for every time you want to change themes. honestly thats a lot of work.
And lastly, make her get her own phone. I have never understood the concept of sharing a cell phone. I HATE calling one person, and someone else answers.

You can install a home app like dxtop, ahome or open home. They all support themes and are easily switchable. But it won't act as a profile where it remembers your different icons etc.

Can we all say?
imbonez9 said:
I'm voting this for stupidest question of the year BTW.
Click to expand...
Click to collapse
I AGREE!!
Sorry but its just the way it is

Profile
imbonez9 said:
I'm voting this for stupidiest question of the year BTW.
Click to expand...
Click to collapse
Kinda harsh don't ya think. Its only a question and how else will he find out unless he asks. But as many others have previously stated you're asking or possibly expecting too much from your phone. Buy your wife her own phone. What do you guys do? I get the phone, no I get the phone today, its my turn... Its not a car. Lol. Keep it simple guy.

Profile
How the Hell can you stand to share this phone. I specifically bought my wife a BB 8900 which she loves and got me a G1. Though if my wife new all that this phone could do she still wouldn't want it. Too complicated for her. Anyway the more I think about your question the more it annoys me. But then again I don't share. Your best solution is to get her a phone of her own. Maybe a different color huh. That way you won't confuse who's is who's.

XwXDv8XwX said:
different organizations of icons and stuff she would use just like I would have for my profile.
Click to expand...
Click to collapse
Since this hasn't been addressed in some of the ideas given here, there's not a way to do this specifically. Yes a nandroid backup will put the icons back in place, but booting into different themes would not change icon placement. One thing you might be able to do is take advantage of a home replacement or theme that has more than 3 home screens and just set up certain ones on the left for you and on the right for your wife.

Soon
I have been trying to explore HERO, and I found a buried menu, using BetterCut. If you add new activity you will find "theme setting - theme selector".
The BetterCut icon will not show up under Rosie, so you will have to go into settings and disable the default settings so when you hit the home button, it asks if you wanna use Home or Rosie.
Once you open Theme Settings, you will find this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Press "Set"
Select OK...then you get the never ending "launching settings"
I was excited, I assume that his would change the default color from green to a blue?
Anyone want to try and get this to work?

parmijo11 said:
Kinda harsh don't ya think. Its only a question and how else will he find out unless he asks. But as many others have previously stated you're asking or possibly expecting too much from your phone. Buy your wife her own phone. What do you guys do? I get the phone, no I get the phone today, its my turn... Its not a car. Lol. Keep it simple guy.
Click to expand...
Click to collapse
Don't get me wrong I've asked some neeb questions but come on this is a P-H-O-N-E, not a computer. If he wants to share which i don't understand install DxTop and when ever you press home don't make it the default. but like everyone else has said... GET HER HER OWN DAM PHONE!

I dont understand how this is a stupid question? As I posted before, it looks like this will be possible. It's Lifestyles in the new Hero ROM. if on the main screen you select lifestyles, it gives you four options.
default
communicaton
internet
multimedia
If you select one of these it will change your home screen icons and widgets to the default for that "lifestyle".
You then have the option to change and adjust it to your likes.
If you then switch back to Default it returns to the previous Rosie layout.
Back to internet or whatever you choose before and ALL your changes are still there.
This combined with the theme changer that has not been implimented 100% yet gives the OP the option to do EXACTLY what he wanted to do, easy as pie.
So I believe that this is far from a stupid question, let alone the STUPIDEST.
thanks.

All you have to do is get the script that allows you to load boot recovery.
#!/system/bin/sh
echo "boot-recovery
--update_package=SDCARD:themes/"$1"/update.zip" > /cache/recovery/command
reboot recovery
Save that as theme.sh with gscript
Go in terminal and do this
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp sdcard/gscript/theme.sh system/bin/theme
cd /system/bin
chmod 755 theme
Now get bettercut so you can backup your desktop
Save each theme update.zip file in a folder for example
sdcard/themes/theme1
sdcard/themes/theme2
Now you can type
theme theme1
And it will load theme1
After reboot restore desktop with bettercut
DONE

XwXDv8XwX said:
well like the title says I am wondering if I can set things up the way I want them and have another profile setup for when my wife uses the phone. I'm hoping these profiles could be saved with different organizations of icons and stuff she would use just like I would have for my profile. Thanx for any advice ahead of time. Cheers!
Click to expand...
Click to collapse
Sweeterhome.
There. It's more complex than a regular desktop replacement, but you can save different layouts and backgrounds, etc...

beagz said:
GScript
Click to expand...
Click to collapse
Best answer in this thread. I keep folders each named after the theme or build then the update.zip in each of them. Keep a script for each update.zip on the SD card appropriately named. Launch GScript, pick the script from the theme directory I want and run it. Bam. Done. No ****ing with file managers or typing. I keep a plain Jane ROM as an update.zip on the root of the SD card in case of nasty things like boot loops even after a wipe.

ok I think this is possible to a degree,
use a rom which mounts the second partition to /system/sd
first do this in a terminal:
Code:
mkdir /system/sd/app1
mkdir /system/sd/app2
mkdir /system/sd/app-private1
mkdir /system/sd/app-private2
mkdir /system/sd/data1
mkdir /system/sd/data2
mkdir /system/sd/dalvik-cache1
mkdir /system/sd/dalvik-cache2
cp /data/app /system/sd/app1
cp /data/app-private /system/sd/app-private1
cp /data/data /system/sd/data1
cp /data/dalvik-cache /system/sd/dalvik-cache1
rm -r /data/app
rm -r /data/app-private
rm -r /data/data
rm -r /data/dalvik-cache
ln -s /system/app1 /data/app
ln -s /system/app-private1 /data/app-private
ln -s /system/data1 /data/data
ln -s /system/dalvik-cache1 /data/dalvik-cache
reboot
install and run gscript
then create gscript with this:
Code:
rm /data/app
rm /data/app-private
rm /data/data
rm /data/dalvik-cache
ln -s /system/app2 /data/app
ln -s /system/app-private2 /data/app-private
ln -s /system/data2 /data/data
ln -s /system/dalvik-cache2 /data/dalvik-cache
reboot
and run it
wait for reboot
once you boot you will notice your phone has been wiped of all settings and apps.
install and run gscript again as it will nolonger be installed
set up the phone for your new user, install gscript and make this (slightly different) script:
Code:
rm -r /data/app
rm -r /data/app-private
rm -r /data/data
rm /data/dalvik-cache
ln -s /system/app1 /data/app
ln -s /system/app-private1 /data/app-private
ln -s /system/data1 /data/data
ln -s /system/dalvik-cache1 /data/dalvik-cache
reboot
run the script and you'll be back to the origional 'profile'
run the gscript again and you'll 'switch' to the new 'profile'
I have not tried this as i have no desire to make profiles.
but it should work. you will be able to switch back and forth between two completly different users, with different email, phonebook, wallpaper, apps... etc.... etc... etc...
with a bit of pissing about you might be able to change the script so that reboot is not needed.
(this version means faster switching than loading an entire image, and less writting to the internal flash)
combine this with beagz's post and you'll change the theme aswell

Can this be done? Create a script to just replace (and resign or something) the desired *.png images?
I assume there are signing issues with this or something but it sure would make life easier.
Edit: Also if this were done we could get themes down to around 3mb in size(that's to to swap every *.png located in the Ion update rom). And for another 3mb you could replace all the default /media/ sounds with special theme_sounds.

Related

JF 1.5 theme "template"

Does anyone have the slimmed down version of 1.5 we can use just for theming? All the "themes" I see here are the whole 1.5 update, which is close to 40MB.
Here ya go, enter these commands into Terminal Emulator...
Code:
mkdir /sdcard/media/audio/ringtones
mkdir /sdcard/media/audio/notifications
cp /sytem/media/audio/ringtones /sdcard/media/audio/ringtones
cp /system/media/audio/notifications /sdcard/media/audio/notifications
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
bmfc187 said:
Here ya go, enter these commands into Terminal Emulator...
Code:
mkdir /sdcard/media/audio/ringtones
mkdir /sdcard/media/audio/notifications
cp /sytem/media/audio/ringtones /sdcard/media/audio/ringtones
cp /system/media/audio/notifications /sdcard/media/audio/notifications
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
Click to expand...
Click to collapse
That just moves your notifications to the sd card, and has nothing to do with creating a template for theming, but thanks for the effort.
I've been trying with process of elimination of what can be removed and what can't, and not loop your phone. Unfortunately I don't know enough about it to know how to properly make the template, and haven't had much luck in trying to make one. I'm sure there will be one when the RC build is released.
The important thing to remember, is you need to change the update-script - otherwise it formats the /system partition causing loops when you remove files.
I could throw a JF1.5 template together that only contains the system apps and the framework-res.apk, but I'd rather not host it for too long. If I put it up, PM you a link, would you download it and take care of the hosting part?
Edit - Alright, I threw something together, should work as a template. Like I said above, all it contains are the system apps, and framework-res.apk. The install script is only to copy those files over, and it is signed. I will PM you a link, please let me know when you have it downloaded.
tehseano said:
That just moves your notifications to the sd card, and has nothing to do with creating a template for theming, but thanks for the effort.
Click to expand...
Click to collapse
Does anyone have the slimmed down version of 1.5 we can use just for theming? All the "themes" I see here are the whole 1.5 update, which is close to 40MB.
Click to expand...
Click to collapse
Sounded to me like he was requesting a "lite version"...
Alright, I have made one, this will also restore the default theme (quicker than re-flashing the full update), including stock text colors. I am going to post a new thread for it though - to get better attention.
Here is the thread I started with the template.

Remove apps from Sprint HTC Hero

Ok fist of all I'm sorry if this was posted before but I was having a hard time finding the correct answers to my problem and now that I know how to I give them to you.
I'm not a cooker I'm just a Power User I have been member of XDA from the days of HTC Mogul AKA PPC-6800 then I had a Touch Pro AKA PPC-6850 and now a Hero long story short as power user I use custom ROM for every phone I have had... including the new Hero and I hate my phone having stupid apps on inside and I hate even more the phone company preventing me to do what I want with the phone I have paid for. So I wanted to remove the amazon app the NFL and the Nscar so after a long research try and error I discover a simple app that is called Gscript Lite so if you want to remove this apps just:
1. Download Gscript app it is free in the market
2. Open the app Hit the hard Key Menu in your Phone
3. Add script
4. Put the name of the script you whant to create and here I will give to you the scripts to remove them:
PS you don't have to enter su if you have checked Needs su?
I hope this makes someone happier. BTW I'm not a coder so the simplest way I found to understand the structure of the script and the app that I wanted to remove was installing a file browser called Astro and navigating to system/app and looking for the correct name of the app in some non Sprint Phones the amozon app it is called com.amazon.mp3.apk so a little thing to keep an eye on.
su
Mount –o rw,remount –t yaffs2 /dev/block/mtdblock03 /system
rm –r /system/app/amazonmp3.apk
su
Mount –o rw,remount –t yaffs2 /dev/block/mtdblock03 /system
rm –r /system/app/Sprint_Nscar.apk
su
Mount –o rw,remount –t yaffs2 /dev/block/mtdblock03 /system
rm –r /system/app/Sprint_NFL.apk
thank you for the help it worked wonderfully.
Thanks for the info, it worked great, except for one thing that I haven't been able to figure out.
After I remove the apps, my available memory doesn't increase. In fact, every time I remove something, the available memory actually decreases slightly, 10-100 KB. Anybody know what's going on? The .apk is no longer in the apps folder, and the icon is gone, but I'm not freeing up any room. While I was searching for the answer I read that there may be files in the /data/data folder that need to be deleted, but when I search the folder I don't see anything that seems related to what I'm trying to remove. I'm running DamageControl 2.09.01 if that helps.
Any help would be appreciated.
I think I found the answer. I guess it doesn't show up because they're different partitions. It still seems strange that I lose space though.

How can I remove programs (Fresh ROM)

I'd like to remove some of the bloat which is still in Fresh.
RSS Reader
Peep
Flickr
BlueTooth Share
I was able to remove some of the programs but the above I can't remove.
well, you can try using adb. use the command:
rm /system/app/<application-name>.apk
You will need to reboot. You may not want to remove the bluetooth share though, as some apk's are required for the system to function correctly. I have never tried to remove that app, so I don't know how the system will react. If anything messes up though you can just push the apk back, or do a nandroid backup before you remove anything
I removed Peep, Flickr, and RSS using this method with Fresh and all is well. Didn't touch the BT app.
you can also get a program like root explorer. And delete the apk from the system>app folder. Well worth the $1-2 for this program.
OK cleared off some junk.
adb shell
rm /system/app/Flickr.apk
rm /system/app/RSS.apk
rm /system/app/NewsReader.apk
rm /system/app/HtcTwitter.apk
rm /system/app/com.htc.TwitterWidget.apk
rm /system/app/Bluetooth.apk
rm /system/app/Calculator.apk
rm /system/app/Calendar.apk
rm /system/app/VoiceDialer.apk
rm /system/app/htccalendarwidgets.apk
rm /system/app/com.htc.rosiewidgets.*
rm /system/app/htcbookmarkwidget.apk
rm /system/app/HtcStreamPlayer.apk
Did you not have any problems with the widgets afterwards? When I did app removal using that method my widgets list was all messed up showing strange icons and displaying text such as #bf00070
Very frustrating...
Sent from my PC36100 using XDA App
You have to reboot after you do it to let it clear that junk out.
Hrm, I believe I tried thats well I'll give it another go.
Sent from my Evo using XDA App
My personal recommendation, at least until you are 100% positive removing an app won't break something (or even if you are not 100% sure you don't in fact want the app) is to use root explorer. highlite the apps (individually of course) you don't want and rename to something like "calculator.apk" to "calculator.apk.bak". This way if, down the road you are having issues that may be tied to the app you removed, you can easily remove the ".bak" part and everything is back to normal. This way you can also be more aggressive on what you are removing and still have a backup plan.
You can also do this completely free via adb, but i am often-times screwing around with stuff like this on the road... root explorer easily allows me to do all that and more. any app that you rename with "bak" (or "old" or any thing else for that matter.. pick a system that works for you and go with it) will look like its no longer in place.. so unless you need the space you could just leave it there for future use.
terminal
you can also download a FREE terminal and:
su
cd /system/app
rm packagenamehere.apk
tonyh703 said:
you can also download a FREE terminal and:
su
cd /system/app
rm packagenamehere.apk
Click to expand...
Click to collapse
Or you can do as the guy above me said and rename them:
su
cd /system/app
mv filename.apk filename.apk.bak

[method] change play store download location

Hi guys, today i am here to tell you a method only tested on a galaxy y, but i hope it will work for all. this is a method to change the download location for play store.
WARNING!!!
1. WARRANTY IS NOW VOID.
2. NOT MY PROBLEM IF SOME APP FAIL.
3. PLEASE, PLEASE, PLEASE DO A NANDROID BACKUP BEFORE THIS.
This is a simple code but it needs root for sure. now the necessities are as follows:
1. A complete nandroid backup
2. Root Permissions
3. Any terminal emulator. e.g https://play.google.com/store/apps/details?id=hecticman.jsterm
4. You need to know the default download location and the mount point of sd card( if that is where you want the new download location )
Now let's start.
Just know this that mnt/sdcard will have to be replaced by your sdcard mount point and data/app will have to be replaced by the default download location. i underlined them for easy understanding.
NOT MY PROBLEM IF THIS FAILS AND YOUR PLAY STORE CRASHES. JUST DO A NANDROID RESTORE.
THERE WILL ALREADY BE A $ AT START SO U DON'T HAVE TO PUT IT.
$ su
# mkdir /mnt/sdcard/playstore
# cp -r /data/app/* /mnt/sdcard/playstore
# rm -rf /data/app
# ln -s /mnt/sdcard/playstore /data/app
Click to expand...
Click to collapse
what the code does:
1. Grant super user permissions
2. Make a directory in sdcard named playstore.
3. Copy all items (recursively) from data/app to sdcard/playstore
4.Symlink the new location to fake the original.
Hitting Thanks can help.
and once again PLEASE BACKUP BEFORE THIS AND RESTORE IF NOT SUCCESSFUL.
This is based on the code used by link2sd.
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
thanks dude
DThought said:
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
Click to expand...
Click to collapse
looks like i was drunk making so much mistakes . corrected it.
It's not so simple if you use Link2SD. If you link some apps to sdext partition, some files in /data/app are symlinks which cannont be copied to /mnt/sdcard/playstore as it's FAT32. You have to try to symlink /app/data to folder on sdext partition. Create a folder /data/sdext2/playstore, copy /data/app/* there, delete /data/app and symlink /data/sdext2/playstore as /data/app. Sdext partition uses linux filesystem and all symlinks should work properly. I haven't tested it yet, but will do in a minute.
EDIT:
It doesn't work with Link2SD. Phone hangs on boot. It's probably cause Link2SD app must be directly in internal memory (so in real /data/app, not symlinked). I'll try to symlink /data/data or /data/dalvik-cache to save some internal memory but I doubt it'll work.

[HOW-TO]Full USB OTG on Media Players in Marshmallow

It's my first relevant post in here so please be benevolent and friendly to me .
Hello everyone,
After long hours of roaming around on the internet, Moto forums, PowerAMP forums (you wouldn't believe how many people posted this problem in there), huge exchange of emails and debugs to the Nexus Media Importer dev, and checking out many many topics here on XDA, I finally came across the only way to use an USB-OTG pendrive as a music library, and having Android detect it (through the Media Service) and build the music library for other media apps to use.
tl dr; Problem: You wanted loads of music without wasting precious internal memory. You tried using an USB pen but no mp3 apps were able to find the files, nor stickmount, nor whatever.
This is so far the only way to do this on android Marshmallow.​
Believe me, I've tried almost everything one can do, including using the Nexus Media Importer, Stickmount, OTG Helper, etc (spoiler alert, none of these worked).
Why is this happening, you ask? Well, Google changed things on Android 6.x.x so much regarding filesystems and USB support that full read/write on USB OTG with other apps no longer works, although I've never tested on previous versions of Android. But I finally managed to find a way to do it, and here I intend to share it with you guys.
Requirements - Rooted phone and permissive SELinux (what is that and how do I do it? don't worry, it's easy and I'll explain a bit later)
1st step - Verify that your phone is capable of using USB-OTG. If it is not, check on play store for other apps that supposedly can enable USB Host support on your phone, although I've never tried them because I never needed, so I can't say anything. My phone is a Moto X 2014 and it comes with OTG support embedded.
2nd step - Format your pendrive as NTFS. This is very important because...
If you use your pendrive as Fat32, Android will mount it to a folder in /data/media_rw/blablabla with GID and UID 1023 (media_rw), which most apps don't have permissions to access, thus they won't be able to find your pendrive and build a music library. Why? Well, glad you asked...
...Since Fat32 doesn't support the linux permissions system, Android mounts the pendrive with the FUSE fs wrapper, which cloaks a permission system hard-coded into some file in the Android system that I wasn't able to tell how could I modify it in order to set the pen permissions as 777 root root.
You can do so by plugging your pen on a Windows PC and right clicking -> Format. Remember to backup your data, otherwise you will lose everything. Your pen will still be able to be used on Windows pcs and Macs. You could also use other fileformats...
... like EXT4 or f2fs or exFAT or whatever, but do it at your own risk. I have no idea if those would work, despite them being able to use the linux permission system.
3rd step - Install the wonderful app Paragon HFS and NTFS mounter from appstore or whatever. They say it isn't compatible with marshmallow but it is, the only issue is that it can't mount a pendrive automatically but it's very easy to do it manually. In the settings menu, you can set SELinux as permissive. Since I'm not an android dev, only an ambicious amateur, I can't really explain what it does or what happens when you do that. So far, neither me or my phone died because of that, so.
Oh by the way, whenever you insert the pen , Android will say it's corrupted and ask you to format it. DO NOT DO IT! That happens because Android doesn't natively support NTFS (hence using an external app to solve that). Oh, and since we're talking about that, there is a way for Android to natively support NTFS...
..., just search it up on XDA. Beware that it's outdated and it won't work on Marshmallow either, unless you edit the copymodulecrc script, but that goes beyond my knowledge. For now, stick to the plan.
4th step - You need to choose the folder which you want to mount the pen to, which will be a folder in the root Android folder (I chose /pen so that I wouldn't forget)
You are now probably thinking, "That's insane! You need to edit init.rc in order to do that!" Well, you're kinda right, but there is a workaround for that. Why do I do this? Well...
... if you mount the pen in another random folder such as /storage/emulated/0/pen it won't work because all the folders underlying that one have certain permission issues that don't let other media apps be able to search for music files.
So here I'll show you two ways of accomplishing this.
4.1 Editing init.rc - This is very complex and NOT RECOMMENDED unless you're very comfortable with messing with boot files. PLEASE DO NOT DO THIS if you aren't sure of what you're doing, don't tell me I didn't warn you.
So in order to do this, well, I won't explain it to you. Search it up on the internet, it's very complex and too big for me to post here. But in the end what you want to do is edit the init.rc file, adding two lines:
"mkdir /pen" and "chmod 777 /pen".
4.2 Creating a script that runs on boot - This is the one method I recommend since it's harmless, but you have to install yet another app, that allows you to run scripts at boot. I used script manager. Then create a script that mounts the / folder as rw, creates the folder /pen, chmods it to 777. I used the following:
#!/system/bin/sh
su -c mount -o rw,remount /proc /
su -c mkdir /pen
su -c chmod 777 /pen
I tried other mount -o commands with rootfs instead of /proc but they didn't work. I don't know the difference but I hope it's harmless. Anyways, let's move on.
Run the script to see if it works, and to create the folder. Use a rooted file explorer to verify if the folder was created.
5th step - Reboot your phone if you had to set SELinux as permissive, and type on the Terminal "su -c getenforce" to confirm that your SELinux is permissive.
VERY IMPORTANT - On the Paragon app, open settings and disable FS access rights, otherwise it's the same as mounting a Fat32 pendrive - not what we want.
On the Paragon app, choose the folder we created before as the folder to mount the pen to, and mount the pendrive. If you followed all the previous steps correctly, the app won't have any issues mounting the pen.
6th step - Find a way to enforce Android building a media library with the new files in the USB OTG pendrive. There are many ways to do this and I recomment the one I used, but I will tell you other ways.
I used the app jetAudio which is a media player that can also forceably build a media library. On jetAudio settings menu, press "Rebuild media library" and point to the /pen folder. It will start reading all the files and Android now detects your pendrive as a media library.
Another way would be to use an app called FolderMount, and creat a symlink from the /pen to another folder in your emulated SD storage (you know, the only folder you have access to if you're not rooted), and wait for some time until hopefully Android detects your new music. If you don't want to use FolderMount, do a symlink with another method (like the ln command)
EDIT - Another cool way I found elsewhere on StackExchange is to run this command (through a script or whatever):
am broadcast -a android.intent.action.MEDIA_MOUNTED -n com.android.providers.media/.MediaScannerReceiver (-d file:///pen)
which forces Android to run a media scan. The part on parenthesis is optional, you can use it to choose the folder in which Android runs the media scan.
Hurray! Congrats for reaching this part of the post. If you did everything correctly, all media apps will finally be able to find the files. I posted some screenies to orientate you.
Feel free to ask anything and I will try to answer or explain. Remember that I'm no Android dev so my knowledge is limited. Feel free to thank me, if you want too.
reserved post
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
AndDiSa said:
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
Click to expand...
Click to collapse
It's not as straight-forward as you're saying.
Most media player apps that weren't updated to support Android 6's native USB OTG support will not be able to read a pen's contents. This topic that I made is aimed to circumvent the issue by mounting the pen in a different way. That bug you mentioned is not something I want to solve, and even if a new kernel solved the issue that I'm talking about, most manufacturers wouldn't update their devices...
Ok, you may be right with apps which are not yet updated to support Marshmallow, I didn't check that.
gaferreira13 said:
It's not as straight-forward as you're saying.
Most media player apps that weren't updated to support Android 6's native USB OTG support will not be able to read a pen's contents. This topic that I made is aimed to circumvent the issue by mounting the pen in a different way. That bug you mentioned is not something I want to solve, and even if a new kernel solved the issue that I'm talking about, most manufacturers wouldn't update their devices...
Click to expand...
Click to collapse
Oh, and maybe now that I think of it, this could solve the problem, since mounting/unmounting is done with the Paragon app instead of Android. Give it a shot
AndDiSa said:
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
Click to expand...
Click to collapse
Using native otg function, you can only copy files between phone and otg dive. To open a file e.g. To install apk from otg, you have to first copy it to phone's storage. On many media player, video can only be played sequentially (seek bar doesn't work).
Stuck at step 4.2, folder is not created
kashinath said:
View attachment 3746340Stuck at step 4.2, folder is not created
Click to expand...
Click to collapse
Hey, is there any way for you to determine the path of your root folder? Maybe using ES File Explorer. For some phones, the root folder isn't pointed to /.
EDIT - If you can't do that, try replacing the first of those commands with the following:
su -c mount -o rw,remount,rw /system
I'm also getting the same issue as kashinath, won't let me create pen. I've also tried pointing the mounter to a directory in /storage/emulated/0/pen but it seems to just crash and restart the app.
EDIT:
Okay so I've solved the problem completely differently. The otg storage is found in /mnt/media_rw, so I used the app "FolderMount [ROOT]" to point the folder "pen" (in the internal storage) to the /mnt/media_rw/*random string* folder. I then used the app "media.Re.Scan:" to force the media scanner to scan that folder as it didn't seem to want to do it. Now all apps seem to be working.
What tipped me off about this was this post: http://forum.xda-developers.com/nexus-6/help/marshmallow-usb-otg-mounting-media-t3230588
It seems you have to turn the folder mount on/off every time you plug/unplug the USB drive otherwise it won't play the files.
Thanks for the detailed instructions nonetheless.
Viridis said:
I'm also getting the same issue as kashinath, won't let me create pen. I've also tried pointing the mounter to a directory in /storage/emulated/0/pen but it seems to just crash and restart the app.
EDIT:
Okay so I've solved the problem completely differently. The otg storage is found in /mnt/media_rw, so I used the app "FolderMount [ROOT]" to point the folder "pen" (in the internal storage) to the /mnt/media_rw/*random string* folder. I then used the app "media.Re.Scan:" to force the media scanner to scan that folder as it didn't seem to want to do it. Now all apps seem to be working.
What tipped me off about this was this post: http://forum.xda-developers.com/nexus-6/help/marshmallow-usb-otg-mounting-media-t3230588
It seems you have to turn the folder mount on/off every time you plug/unplug the USB drive otherwise it won't play the files.
Thanks for the detailed instructions nonetheless.
Click to expand...
Click to collapse
Yeah forget mounting anything in the /storage/emulated/0...
According to the post you linked in your comment, "6.0 mounts to /mnt/media_rw/ but I can't seem to get any media players to see it. I tried creating a symbolic link in /storage/emulated, but I get an error with root explorer about symbolic links not being supported" which is exactly what happened to me
If you don't like the folder mount alternative you can always do a bind command (but i'm not sure how it works), search it up and see if you get any results.
Is your pen in Fat32 though?
There is a workaround for the pen thing... If you use Total Commander and want to edit any files in /, it asks you to run a command that mounts the / folder. Try to see what command it is and replicate it into the script, then the rest might work.
Thank you so much !! It worked on my XT1033 falcon dual sim - MM6.0 identity crisis 1.3a . I can finally restore all my nandroid backups.
Just to correct shouldn't the last command in the script be
su -c chmod 777 /pen
instead of
su -c chmod /pen 777
4k5blr said:
Just to correct shouldn't the last command in the script be
su -c chmod 777 /pen
instead of
su -c chmod /pen 777
Click to expand...
Click to collapse
No, thank you
And, damn you're right, lol I'll correct it ASAP, thanks a lot for pointing it out
I'm a complete newbie at this, in fact I rooted my device just to do this
Anyways I'm getting the same issue kashinath is getting and tried the other command you recommended (su -c mount -o rw,remount,rw /system ) wich also didn't work
In that reply you also said that the root folder is different between devices so, if I determine the path to my root folder, where exactly in the script do I have to put it? (Again I'm a newbie)
Arcane35 said:
I'm a complete newbie at this, in fact I rooted my device just to do this
Anyways I'm getting the same issue kashinath is getting and tried the other command you recommended (su -c mount -o rw,remount,rw /system ) wich also didn't work
In that reply you also said that the root folder is different between devices so, if I determine the path to my root folder, where exactly in the script do I have to put it? (Again I'm a newbie)
Click to expand...
Click to collapse
For my phone the Root folder's path is "/" so I'll put 2 arrows where the path to root is in the command:
" su -c mount -o rw,remount /proc --> / <-- "
So imagine your root path is /root
The command would look like this: " su -c mount -o rw,remount /proc /root " (without "" of course)
If you still can't find the path to your root folder, try searching on the internet "root folder for xxxxx phone"
Hope it helps
gaferreira13 said:
For my phone the Root folder's path is "/" so I'll put 2 arrows where the path to root is in the command:
" su -c mount -o rw,remount /proc --> / <-- "
So imagine your root path is /root
The command would look like this: " su -c mount -o rw,remount /proc /root " (without "" of course)
If you still can't find the path to your root folder, try searching on the internet "root folder for xxxxx phone"
Hope it helps
Click to expand...
Click to collapse
Turns out my phone's root folder is also / , and I'm still getting the same error (mount: '/' not in /proc/mounts)
Maybe its because I have Nougat :/
EDIT: So I think I managed to kinda work around that, I change the command to " su -c mount -o rw,remount / " and it ended up making the pen folder and no errors came out. So I then proceeded to open Paragon, disabled FS access rights, ensured that SELinux was permissive (it is) and change the mount point to the /pen folder, I finally proceeded to manually mount the thing BUT even tough that in my notifications says that I mounted it, on the app it still says that my Flash Drive is still not mounted (even tough it detects it and know that it is an NTFS file system). Basically whenever I try to mount my Flash Drive it wont work even tough the app detects it.
Arcane35 said:
Turns out my phone's root folder is also / , and I'm still getting the same error (mount: '/' not in /proc/mounts)
Maybe its because I have Nougat :/
Click to expand...
Click to collapse
Ooooh. Remember the topic is called "Full USB OTG on Media Players in Marshmallow"
I can't help you then, sorry. The only thing I can tell you is to open the /proc/mounts file as text on the top there should be a command that tells android to mount the root folder as rootfs I believe.
Maybe that could help.
Arcane35 said:
EDIT: So I think I managed to kinda work around that, I change the command to " su -c mount -o rw,remount / " and it ended up making the pen folder and no errors came out. So I then proceeded to open Paragon, disabled FS access rights, ensured that SELinux was permissive (it is) and change the mount point to the /pen folder, I finally proceeded to manually mount the thing BUT even tough that in my notifications says that I mounted it, on the app it still says that my Flash Drive is still not mounted (even tough it detects it and know that it is an NTFS file system). Basically whenever I try to mount my Flash Drive it wont work even tough the app detects it.
Click to expand...
Click to collapse
Try to open the /pen folder, try to see in the properties of /pen if the permissions are set to 777.
gaferreira13 said:
Try to open the /pen folder, try to see in the properties of /pen if the permissions are set to 777.
Click to expand...
Click to collapse
It is set as 0777, so yes (if the 0 is not supposed to be there)
Arcane35 said:
It is set as 0777, so yes (if the 0 is not supposed to be there)
Click to expand...
Click to collapse
Hmm... If you can open the folder fine and maybe create a file in there or something then I can't help you any further. The paragon app doesn't let you do much regarding troubleshooting.
Try using the methods that other people did like using Foldermount or something like that.

Categories

Resources