FORUMS

[DUALBOOT MOD] Shared Apps

24 posts
Thanks Meter: 55
 
By charsleysa, Junior Member on 11th October 2012, 01:46 PM
Post Reply Subscribe to Thread Email Thread
Hello everyone!

First of all, I am posting here as I am not able to post in the Development Forum. If a moderator sees this fit could he/she please move this thread to the Development forum.

This is a mod to Siyah's Kernel which allows Dual Booting.
Currently you are unable to share apps between your two ROM's and to me that is really annoying.
WELL, after much research and testing I have devised a script to allow sharing of apps between ROM's.
WARNING: Should only be used on freshly flashed 2nd ROM's otherwise you will lose all your downloaded apps for your 2nd ROM!!!

They way this works is to mount the data from your 1st ROM in your 2nd ROM, then symbolic link the app folder.
Now for all you people that are going to nag saying it has issues, stop it! If it has issues fix it yourself! I tested this on Omega ROM and ParanoidAndroid and it works fine.

First go through the process of flashing your 2nd ROM. Once that is completely boot into your 1st ROM again and download the attached file and extract its contents to "/data/media" otherwise known as the root of your internal SD Card.
Once completed, reboot into your 2nd ROM and download/open your Terminal app and type in the following commands
(lines starting with # are comments so don't type those into your terminal, also hit enter at the end of each line):

Code:
# Escalate to root (hit grant if a dialog pops up)
su

# Remount the system so you can write to it
mount -o rw,remount /system

# Now copy the file from your SD Card to /system/etc/init.d
cp /data/media/01userinit.sh /system/etc/init.d/01userinit.sh

# Change working directory to /system/etc/init.d
cd /system/etc/init.d

# Rename the 01userinit.sh to 01userinit
# If 01 is already used then choose the next lowest number e.g. 01banner so choose 02
rename 01userinit.sh 01userinit

# Change permissions just to make sure (remember to use your number if you changed the 01 part)
chmod 771 01userinit
After doing this close the terminal and reboot the phone into the 2nd ROM again. This time it should take a little longer and might say its upgrading a few apps.
This is largely untested so there is no guarantee it will work.

WARNING!!!! MUST READ THIS WARNING!!!!
Uninstalling an application from either ROM WILL uninstall it from the other ROM as well!!!
You are sharing apps directly, no mimics or anything!!!


Thanks for reading! Feedback is much appreciated, if there are issues I will be glad to listen and see if I can fix them but I make no promises.
Attached Files
File Type: zip 01userinit.zip - [Click for QR Code] (348 Bytes, 688 views)
The Following 27 Users Say Thank You to charsleysa For This Useful Post: [ View ]
 
 
11th October 2012, 02:01 PM |#2  
zoot1's Avatar
Recognized Contributor
Flag Navi Mumbai
Thanks Meter: 2,479
 
Donate to Me
More
Quote:
Originally Posted by charsleysa

Hello everyone!

First of all, I am posting here as I am not able to post in the Development Forum. If a moderator sees this fit could he/she please move this thread to the Development forum.

***deleted**

Thanks for reading! Feedback is much appreciated, if there are issues I will be glad to listen and see if I can fix them but I make no promises.

Good work keep it up!
11th October 2012, 02:27 PM |#3  
Senior Member
Thanks Meter: 257
 
More
Exactly what I was looking for! Will try this when I'm home, will give feedback then! Thanks

Sent from my GT-I9300 using xda app-developers app
11th October 2012, 03:15 PM |#4  
Senior Member
Flag besak
Thanks Meter: 12
 
More
Good works.

this method run with the contact and message also???

very thanks for this.
I will try.
11th October 2012, 03:25 PM |#5  
OP Junior Member
Flag Palmerston North
Thanks Meter: 55
 
More
Quote:
Originally Posted by gazou_hb

Good works.

this method run with the contact and message also???

very thanks for this.
I will try.

This script won't do that. I can create a script to do that if I have time but first I need to work on assignments.
11th October 2012, 03:28 PM |#6  
NatTheCat's Avatar
Senior Member
Flag Manchester
Thanks Meter: 94
 
More
Looks like good work, will give it a go later and/maybe congratulations

Sent from my GT-I9300 using xda premium
11th October 2012, 04:04 PM |#7  
Senior Member
Flag besak
Thanks Meter: 12
 
More
I try this with Samsung ROM xxdlib ans cm10 ROM. All application have present.
Your method and file work perfectly.

I thinks that it's better to make a recoevry install for easy method. If it's possible.

Good works.
Sorry for my bad english.

For my request concerning the same method for the contact and messages (SMS) talk me when i test...

Sent from my GT-I9300 using xda premium
11th October 2012, 04:16 PM |#8  
Member
Flag Quezon City
Thanks Meter: 11
 
More
Nice mod! It is worth noting that the script only links the apps (APKs) between ROMs. It does not link the data (databases/preferences) used by these apps.

I'm trying to link the sms messages across ROMs but the db seems to be different between Samsung and CM ROMs. I would like to see what would you do here

Sent from my GT-I9300 using Tapatalk 2
11th October 2012, 04:26 PM |#9  
Senior Member
Thanks Meter: 257
 
More
I would like to have the data linked to, any way to do that?

Sent from my GT-I9300 using xda app-developers app
11th October 2012, 05:47 PM |#10  
OP Junior Member
Flag Palmerston North
Thanks Meter: 55
 
More
Quote:
Originally Posted by lightning18

Nice mod! It is worth noting that the script only links the apps (APKs) between ROMs. It does not link the data (databases/preferences) used by these apps.

I'm trying to link the sms messages across ROMs but the db seems to be different between Samsung and CM ROMs. I would like to see what would you do here

Sent from my GT-I9300 using Tapatalk 2

I just tried linking contacts, sms and calendar and I managed to corrupt my entire 2nd ROM so I don't think it's possible without providing a 3rd app to run in the background.
12th October 2012, 04:21 PM |#11  
Member
Flag Ashqelon
Thanks Meter: 9
 
More
Interesting, will give it a try

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes