[FIX] Data Encryption Problem AOSP Roms - One (M8) General

I think I should open a post just for this and to save some people
When it happens reboot to recovery connect phone to PC
Run ADB shell and put this command
Code:
e2fsck -f -y /dev/block/mmcblk0p47
That's all
None of your data gets deleted you keep it all
Just restart and you will be back to normal!

Not saying this isn't a good topic and I'm sure people will find this useful but probably doesn't belong in Original Development. May want to ask a mod to move it to General.
Sent from my HTC One_M8 using Tapatalk

Tiffany84 said:
Not saying this isn't a good topic and I'm sure people will find this useful but probably doesn't belong in Original Development. May want to ask a mod to move it to General.
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
I posted it here because all people having this problem are using AOSP, IDK it's just me

maxrdlf95 said:
I think I should open a post just for this and to save some people
When it happens reboot to recovery connect phone to PC
Run ADB shell and put this command
Code:
e2fsck -f -y /dev/block/mmcblk0p47
Click to expand...
Click to collapse

Do you lose data doing this?
Sent from my One M8 using Tapatalk

Darknites said:
Do you lose data doing this?
Sent from my One M8 using Tapatalk
Click to expand...
Click to collapse
Looking up the command itself and the switches, I don't think it will. This is like running a chkdsk for Windows or running ScanPST on a Outlook PST file. Seems to fix the corrupted header on the internal card. Glad this was found since now I can flash an AOSP ROM without worries. Thanks to the OP! :highfive:

asianflavor said:
Looking up the command itself and the switches, I don't think it will. This is like running a chkdsk for Windows or running ScanPST on a Outlook PST file. Seems to fix the corrupted header on the internal card. Glad this was found since now I can flash an AOSP ROM without worries. Thanks to the OP! :highfive:
Click to expand...
Click to collapse
Ya was thinking that but wanted to be sure.
Sent from my One M8 using Tapatalk

Darknites said:
Ya was thinking that but wanted to be sure.
Sent from my One M8 using Tapatalk
Click to expand...
Click to collapse
No problem... here's the site that I found that explains all the switches.

I just updated to the latest TWRP 2.7.1.0 and got the encryption bug running the latest PA build. This thread saved me. Thank you so much
Sent from my One M8 using XDA Premium 4 mobile app

Nice find. Thanks for the information.
Sent from my One M8 using Tapatalk

Can this or will be incorporated in the Roms in future coz I don't have a computer .
I broke mine.
Sent from my 831C using XDA Premium 4 mobile app

pantmunu said:
Can this or will be incorporated in the Roms in future coz I don't have a computer .
I broke mine.
Sent from my 831C using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No because you only use this when you have the problem it could still happen again this fix it
It's not a permanent fix, but it's always a fix if you understand I mean every time you get the problem, you use the command every time you use it it will work!

Okay here is a question. Is it possible to run that command from a updater script? So it could be made into a flashable zip 9n it's own and could fix bugs when user is not around a computer? That would be awesome.
Sent from my HTC6525LVW using Tapatalk

pimpmaneaton said:
Okay here is a question. Is it possible to run that command from a updater script? So it could be made into a flashable zip 9n it's own and could fix bugs when user is not around a computer? That would be awesome.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
You may want to check this old thread from the Desire. Looks like the dev did have a flashable zip to do this. Not sure if it needs to be updated to match our partition for the internal card. If I have time, I'll can look at the zip to see this does and update it for the M8. I am trying to finish moving to my house, build a swing set for my kids, get my network up and running so I can get back some MIUI porting... gonna be a fun weekend.

pimpmaneaton said:
Okay here is a question. Is it possible to run that command from a updater script? So it could be made into a flashable zip 9n it's own and could fix bugs when user is not around a computer? That would be awesome.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
The very problem itself encrypts your storage... I presume what you are implying is to put it on the external storage, but without that this is no help.
If the zip that fixes it is on your storage, it's not available till you actually run the fix manually suggested in the OP.
Sent from my One M8 using XDA Premium 4 mobile app

kickassdave said:
The very problem itself encrypts your storage... I presume what you are implying is to put it on the external storage, but without that this is no help.
If the zip that fixes it is on your storage, it's not available till you actually run the fix manually suggested in the OP.
Sent from my One M8 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Exactly you would need to put it on Ext SD to run it

Would this work? for script if yes I will upload zip
Code:
show_progress(0.1, 0);
ui_print("Fixing /data Partition");
ui_print("HTC One (M8)");
ui_print("maxrdlf95");
ui_print("ef2sck on /data");
run_program("ef2sck", "-f", "-y", "/dev/block/mmcblk0p47");
ui_print("");
ui_print("Partition is fixed you can now use your phone");
ui_print("XDA-Developers");
show_progress(0.100000, 0);

maxrdlf95 said:
Would this work? for script if yes I will upload zip
Code:
show_progress(0.1, 0);
ui_print("Fixing /data Partition");
ui_print("HTC One (M8)");
ui_print("maxrdlf95");
ui_print("ef2sck on /data");
run_program("ef2sck", "-f", "-y", "/dev/block/mmcblk0p47");
ui_print("");
ui_print("Partition is fixed you can now use your phone");
ui_print("XDA-Developers");
show_progress(0.100000, 0);
Click to expand...
Click to collapse
Have you seen the change log for TWRP 2.7.1.0?
TWRP said:
Add GUI option to change or repair file systems on individual partitions. The change is destructive so backup your data including internal sdcard first. This option should make it a little easier to migrate a device from ext4 -> f2fs, for instance. You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button. If a developer has added f2fs support for your device and we don't have it in TWRP, please contact me via PM to arrange for it to be added.
Click to expand...
Click to collapse
So maybe this is the same thing.

Next question, will it matter that CM is now Android 4.4.3, with the newest nightly? Will that change the commands?

Repairing it's the same command? It's same it's destructive but I'm not sure if it's the change or the repair
Enviado desde mi One M8 mediante Tapatalk

Related

ClockworkMod 5

ClockworkMod 5 is available through ROM Manager.
Sent from my PG06100 using XDA App
I suggest asking a mod to move this to general asap..
Sent from my PG06100
I don't want to be "that guy" but every single device's Development forum (including this one) has a sticky thread about not posting questions in this forum. There is a sticky thread titled:
Thread DELETED/Locked??? >>>> This is DEVELOPMENT section not Q&A/General!!!! <<<<
This isnt a question, its a statement
Learn to read punctuation.
Sent from my PG06100 using XDA App
Anywho, is it good to flash?
Evo SHIFT
Enraged21 said:
Anywho, is it good to flash?
Evo SHIFT
Click to expand...
Click to collapse
I've flashed it. No issues thus far. It's blue!
HTCotta said:
I've flashed it. No issues thus far. It's blue!
Click to expand...
Click to collapse
Hate blue but seems to work fine.
gigermunit said:
Hate blue but seems to work fine.
Click to expand...
Click to collapse
Well once twrp is released publicly you can choose your color
Sweet thanks
crump84 said:
Well once twrp is released publicly you can choose your color
Click to expand...
Click to collapse
Looking foward to it .
iatedeadpeople said:
This isnt a question, its a statement
Learn to read punctuation.
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
You're right, I absent-mindedly misworded my post. However the point about posts that aren't development to be posted on other subforums still stands.
Since you seem to be getting technical on my post, I will point out that the OP didn't have any form of punctuation in the post
Anyway, here is the official changelog from Koush's Google+ page:
Major changes:
Backups now use tar over yaffs for everything except mtd partitions. Backups got way faster.
Backups now preserve the filesystem type at time of backup. Restores will restore the appropriate filesystem type at restore.
Click to expand...
Click to collapse
Also post bug reports here
Flashed this on wifey's shift last night, tried to run a backup from recovery. Was going good, then failed on /system. Tried running it again and it failed on /boot. Rebooted and phone is fine, however, I didn't have time to try anything else.
Has anyone else experienced back up issues with the new recovery?
Edit in: Resolved, her SD card was full...
jefbal99 said:
Flashed this on wifey's shift last night, tried to run a backup from recovery. Was going good, then failed on /system. Tried running it again and it failed on /boot. Rebooted and phone is fine, however, I didn't have time to try anything else.
Has anyone else experienced back up issues with the new recovery?
Click to expand...
Click to collapse
I back up through rom manager, not recovery. And its pretty solid.
Evo SHIFT
Enraged21 said:
I back up through rom manager, not recovery. And its pretty solid.
Evo SHIFT
Click to expand...
Click to collapse
You will retract that statement after it fails... lol
Sent from my PG06100 using Tapatalk
Enraged21 said:
I back up through rom manager, not recovery. And its pretty solid.
Evo SHIFT
Click to expand...
Click to collapse
Rom Manager is just a front end for the recovery. When you back up thru Rom Manager, it just scripts a reboot into recovery and run the nandroid backup...
jefbal99 said:
Rom Manager is just a front end for the recovery. When you back up thru Rom Manager, it just scripts a reboot into recovery and run the nandroid backup...
Click to expand...
Click to collapse
Correct so skip all the app non-sense and just boot into recovery and do your nandroid... One sure fire way to have **** go bad is taking too many unnecessary steps, i.e. using an app to start a nandroid... I have had so many issues with cwm borking nandroids that I barely trust it, if at all... and adding an app to that equation, you are setting yourself up for an epic fail... I trust my fingers and brain to hit the right buttons... Not an app...
Sent from my PG06100 using Tapatalk
I use Rom Manager to do backups only when I need to name them. I've had good luck with it on my phone. But that being said. I've also had real bad experiences on other devices, really bad . Like every backup made thru RM being bad, and failing. But if I went thru recovery all was good. So it's not a failsafe method IMO.
MikShifted on XDA Premium APP
TEAM MiK
Mik ROMs Since 3/13/11
Yeah well that's what I meant.
Evo SHIFT
Prboy,fyi don't really need RM to name backups just ooen root explorere or any file manager go to cwm > backup > and rename
Sent from my PG06100 using xda premium
FdxRider said:
Prboy,fyi don't really need RM to name backups just ooen root explorere or any file manager go to cwm > backup > and rename
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
+ 1... I usually add an abbreviation at the end and have had no probs...
Sent from my PG06100 using Tapatalk

HTC Desire V porting with Sense 4.0a. Anyone?

Hi guys,
I've just came across this new device for the Chinese market and here are the specs: http://www.gsmarena.com/htc_desire_v-4805.php
It has almost the same hardware as our old N1, above all NOTE that it has the same Adreno200 for graphics :good:
For now I have downloaded a European RUU (RUU_PRIMO_DS_ICS_40A_HTC_Europe_1.59.401.1_Radio_1.05.34D.25_20.20.30.22U_release_263747_signed) for this Desire V (codenamed Primo?), and I have extracted the system.img.
Now to extract the content of that image I have to play with a Linux environment..
I've tried with unyaffs.exe but this image won't extract with that utility. I think the only solution is to "mount -o loop system.img" or something like that.
Do you think it's possible to do something?
Please remember that I'm only a cooker, with some (a little) experience, but with NO Java knowledge..
Iperzampem0 said:
Hi guys,
I've just came across this new device for the Chinese market and here are the specs: http://www.gsmarena.com/htc_desire_v-4805.php
It has almost the same hardware as our old N1, above all NOTE that it has the same Adreno200 for graphics :good:
For now I have downloaded a European RUU (RUU_PRIMO_DS_ICS_40A_HTC_Europe_1.59.401.1_Radio_1.05.34D.25_20.20.30.22U_release_263747_signed) for this Desire V (codenamed Primo?), and I have extracted the system.img.
Now to extract the content of that image I have to play with a Linux environment..
I've tried with unyaffs.exe but this image won't extract with that utility. I think the only solution is to "mount -o loop system.img" or something like that.
Do you think it's possible to do something?
Please remember that I'm only a cooker, with some (a little) experience, but with NO Java knowledge..
Click to expand...
Click to collapse
I'm up for that. I think if a lot of devs work together we can do it. I dunno about java experience
Sent from my HTC Desire using xda app-developers app
**** Shaky. He stopped all his job =(
But good idea and good luck
I can be your tester if you want of course
Sent from my Nexus One using Tapatalk 2
Iperzampem0 said:
Hi guys,
I've just came across this new device for the Chinese market and here are the specs: http://www.gsmarena.com/htc_desire_v-4805.php
It has almost the same hardware as our old N1, above all NOTE that it has the same Adreno200 for graphics :good:
For now I have downloaded a European RUU (RUU_PRIMO_DS_ICS_40A_HTC_Europe_1.59.401.1_Radio_1.05.34D.25_20.20.30.22U_release_263747_signed) for this Desire V (codenamed Primo?), and I have extracted the system.img.
Now to extract the content of that image I have to play with a Linux environment..
I've tried with unyaffs.exe but this image won't extract with that utility. I think the only solution is to "mount -o loop system.img" or something like that.
Do you think it's possible to do something?
Please remember that I'm only a cooker, with some (a little) experience, but with NO Java knowledge..
Click to expand...
Click to collapse
can you please upload the system.img file somewhere? (or post the link to the original RUU_PRIMO_DS_ICS_40A_HTC_Europe_1.59.401.1_Radio_1.05.34D.25_20.20.30.22U_release_263747_signed file )
Here you go. It's ruu
http://hotfile.com/dl/158782968/55e3eb6/
Do we need 3.0 kernel ?
Sent from my Nexus One using Tapatalk 2
thanks..
i think shaky's Sense 4.0 alpha rom was based on Desire V dump.. dont know if it is worth the effort to start all over again...
Wait. It was based from One V rom. Not desire V
Sent from my Nexus One using Tapatalk 2
I agree with xeloni. Shaky was using the One V rom dump, which has the Adreno205 gpu!
The great thing of having a device with at least the same GPU is that we can have the right GPU files/drivers and maybe have a complete full gpu rendering. Obviously we gonna have to build a 3.0 kernel and proper cpu drivers...
Cmon dbasabe ! !
And shaky has almost finished thé kernel but he stopped all :/
After Imperzampemo, in this rom delete all useless appartement. Some ringtones. Fast and Light sense
Sent from my Nexus One using Tapatalk 2
i managed to extract system.img, it is 800mb after uncompressing...
one more thing, i couldn't extract the secure boot image. anyone know how to extract that?
xeloni said:
Cmon dbasabe ! !
And shaky has almost finished thé kernel but he stopped all :/
After Imperzampemo, in this rom delete all useless appartement. Some ringtones. Fast and Light sense
Sent from my Nexus One using Tapatalk 2
Click to expand...
Click to collapse
Shaky has not stopped . He continues in silence and won't post on xda again. You better be following him on Twitter.
Also, dbasabe has left a long time ago
Sent from my HTC Desire using xda app-developers app
fake_japanese_guy said:
i managed to extract system.img, it is 800mb after uncompressing...
one more thing, i couldn't extract the secure boot image. anyone know how to extract that?
Click to expand...
Click to collapse
OK, but now the main thing is to extract all the content from system.img!
About boot_signed.img don't know yet.
Anyway I still have to install Linux on my pc, so I'm stuck as of now..
race55 said:
Shaky has not stopped . He continues in silence and won't post on xda again. You better be following him on Twitter.
Also, dbasabe has left a long time ago
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
I'm following him on twitter
If someone wants to add me look in m'y signature
Sent from my Nexus One using Tapatalk 2
Iperzampem0 said:
OK, but now the main thing is to extract all the content from system.img!
About boot_signed.img don't know yet.
Anyway I still have to install Linux on my pc, so I'm stuck as of now..
Click to expand...
Click to collapse
Virtual box
Sent from my Nexus One using Tapatalk 2
xeloni said:
I'm following him on twitter
If someone wants to add me look in m'y signature
Sent from my Nexus One using Tapatalk 2
Click to expand...
Click to collapse
Does shaky have his twitter account protected?
Didn't realise he had quit xda until I read this. Another dev loss; reminds me of Medroid / Samuaz.
Sent from my Nexus One using xda app-developers app
xeloni said:
Virtual box
Sent from my Nexus One using Tapatalk 2
Click to expand...
Click to collapse
Yea, I'm using that but it's really slow and I have problems... wtf! I hate Linux.
cpm said:
Does shaky have his twitter account protected?
Didn't realise he had quit xda until I read this. Another dev loss; reminds me of Medroid / Samuaz.
Sent from my Nexus One using xda app-developers app
Click to expand...
Click to collapse
No itsnt protected
Sent from my Nexus One using Tapatalk 2
i managed to extract boot_secure.img also.. it had 256bytes of some security key on the beginning.. i had to tail it and then extract.
any way, after extracting, the system.img is more than 600mb.. we need to reduce it to less than 200mb to install to nexus one...
meanwhile im trying to boot with the kernel from the dump.. as of now, its not working.. kernel panic..
fake_japanese_guy said:
i managed to extract boot_secure.img also.. it had 256bytes of some security key on the beginning.. i had to tail it and then extract.
any way, after extracting, the system.img is more than 600mb.. we need to reduce it to less than 200mb to install to nexus one...
meanwhile im trying to boot with the kernel from the dump.. as of now, its not working.. kernel panic..
Click to expand...
Click to collapse
Try to boot with the kernel included in shaky rom
Sent from my Nexus One using Tapatalk 2
ill try that. but before that, need to find some applications to remove the the dump so that i can reduce the /system size to less than 200mb...

[GUIDE] How to keep the old CM10 partition layout & stay up to date with changes

OK, so the debate over partitioning in CM10 is all but done and I'm not going to discuss it here.
I've been building CM10 for my own use with the partition layout change reverted and this works nicely for me. But what about people who can't compile the source for themselves (for whatever reason)?
That's why I'm posting this brief guide to what I'm calling "fudgedating" (its like updating). Using the method below you will be able to stay up to date with all the CM10 nightly updates (except kernel changes) without compiling or doing anything difficult.
ALWAYS MAKE A NANDROID BEFORE FLASHING
I'VE TESTED THIS WITH CM10 NIGHTLIES FROM 23082012 & 22082012 BUT IF IT FAILS TO WORK FOR YOU THEN I'M SORRY, THAT'S LIFE. RESTORE YOUR BACKUP & MOVE ON
What you'll need:
1. My cm-10-20120918-FISHEARS-galaxysmtd.zip file (my nightly that has a working kernel with the old partition layout)
2. Any current Nightly zip of CM10
3. A computer with a Zip-capable archive tool
What you need to do:
1. Make a copy of cm-10-20120918-FISHEARS-galaxysmtd.zip and call it something like CM10-FUDGEDATE.zip
2. delete the /system folder from within CM10-FUDGEDATE.zip (or whatever you called it)
3. extract the /system folder from your official CM10 Nightly
4. add that /system folder to your CM10-FUDGEDATE.zip (or whatever you called it)
Now you have a CM10-FUDGEDATE.zip (or whatever you called it) containing the kernel and partition layout from cm-10-20120918-FISHEARS-galaxysmtd.zip and the system from the CM10 Nightly.
Copy CM10-FUDGEDATE.zip (or whatever you called it) to your SD card and flash it in CWM.
Reboot & profit
NOTE: currently you can NOT flash any custom kernels because there aren't any that support the latest CM10 while still having the old partition layout.
Whenever you want to repeat the process for a new Nighly, just do steps 2,3 & 4 again and flash it as before.
Please don't flame this thread. If you think its a bad idea then please state only technical objections to support your view.
All credit to Team Hacksung & Pawitp for the awesome effort that continues to go into CM10.
Well... old partition nightlies worked very good for me.So I will try this.
Anyway I noticed there are some jb ROMs with less changes than yours calling theirselfs stable so far etc.
Will you make thread of cm10 (or call it like you want) with old partition and newest nightly?
Thanks. Sorry for poor English.
Sent from my GT-I9000 using xda premium
---------- Post added at 12:36 AM ---------- Previous post was at 12:26 AM ----------
Sent from my GT-I9000 using xda premium
Thanks but I don't want to start the hard work of maintaining a ROM thread. This is just instructions to stay up to date.
I do compile my own CM10 which you can download by clicking on my signature. Again, I won't be starting a thread for this as its really just for me but I don't mind sharing.
I will change the thread title though.
Sent from my GT-I9000 using Tapatalk 2
Well.works good for me no deference betwin this or other layout.Thank you very much
Sent from my GT-I9000 using xda premium
slaj76 said:
Well.works good for me no deference betwin this or other layout.Thank you very much
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
That's good to know. I think we both must have phones with the faster NAND because I didn't see any improvement when the official partition layout changed.
fishears said:
That's good to know. I think we both must have phones with the faster NAND because I didn't see any improvement when the official partition layout changed.
Click to expand...
Click to collapse
2011.3.10 my phone's production date.
http://forum.xda-developers.com/showthread.php?t=1818372
You can check your's.
Sent from my GT-I9000 using xda premium
slaj76 said:
2011.3.10 my phone's production date.
http://forum.xda-developers.com/showthread.php?t=1818372
You can check your's.
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Yeah, mine was made April 2011. No reason for us to lose all that data space
Sent from my GT-I9000 using Tapatalk 2
thanks for sharing this with us
i'll try this
fishears one more question can i flash your latest rom without wipe?
Thanks.
slaj76 said:
fishears one more question can i flash your latest rom without wipe?
Thanks.
Click to expand...
Click to collapse
No need to wipe.
If you are flashing a new build over a previous one then you also don't need to reflash gapps
fishears said:
No need to wipe.
If you are flashing a new build over a previous one then you also don't need to reflash gapps
Click to expand...
Click to collapse
Thanks.
thanks
Lorog said:
thanks
Click to expand...
Click to collapse
Hit thanks to fishears.
Sent from my GT-I9000 using xda premium
Managed to install your rom, and I got what I want. However I have a probler with Adaway said: /data/data/host not enough spare. Try Adfree solve the problem. Anyway thank you for the idea and rom.
Edit: Just discovered that System had only 300k free space out of 350MB. Maybe I have to delete some not important apk (like those live wallpapers) & unused ringtones.
Edit2: After deleting Chinese & Korean fonts Droidsansfallback , MTL* & Nanum Gothic, I got 12MB free space and Adaway runs smoothly.
sawari said:
Managed to install your rom, and I got what I want. However I have a probler with Adaway said: /data/data/host not enough spare. Try Adfree solve the problem. Anyway thank you for the idea and rom.
Edit: Just discovered that System had only 300k free space out of 350MB. Maybe I have to delete some not important apk (like those live wallpapers) & unused ringtones.
Edit2: After deleting Chinese & Korean fonts Droidsansfallback , MTL* & Nanum Gothic, I got 12MB free space and Adaway runs smoothly.
Click to expand...
Click to collapse
Good I also deleted cmwallpapers and DSP manager.
Sent from my GT-I9000 using xda premium
slaj76 said:
Good I also deleted cmwallpapers and DSP manager.
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
I usually have around 15mb free on /system after deleting only Exchange & Movie Studio
Sent from my GT-I9000 using Tapatalk 2
fishears said:
I usually have around 15mb free on /system after deleting only Exchange & Movie Studio
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
Never mind, your released rom should be as is, let us delete whatever we want. Easier for you and less trouble for us.TQ
Sent from my GT-I9000 using Tapatalk 2
sawari said:
Never mind, your released rom should be as is, let us delete whatever we want. Easier for you and less trouble for us.TQ
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
That's fine. I think pawitp might get a bit lazy with the system size now that his build has a 2gb /system
Maybe I'll have to trim it down in the future.
Sent from my GT-I9000 using Tapatalk 2
A rom more in line with the Slim Bean philosophy (about 280mb system with google apps) would even allow you to create a larger datadata partition (at the expense of unused system partition space, circa 80mb) and improve usability. Using this mind-frame i guess we could gain some 50mb to datadata while still keeping 30mb free in system for people who want to add some removed system apps.
Nevertheless, this is your rom and ultimately your decision.
AlexandreT said:
A rom more in line with the Slim Bean philosophy (about 280mb system with google apps) would even allow you to create a larger datadata partition (at the expense of unused system partition space, circa 80mb) and improve usability. Using this mind-frame i guess we could gain some 50mb to datadata while still keeping 30mb free in system for people who want to add some removed system apps.
Nevertheless, this is your rom and ultimately your decision.
Click to expand...
Click to collapse
Its a good idea & perfectly possible. Pawitp just asked for some chip id data in the CM10 thread. It looks like lags could be associated with phones having the older Samsung MoviNand chip. Newer devices have a Sandisk iNand (same as Nexus S). I have the Sandisk so that's why the new partition layout made no difference to me. I'm not sure that increasing datadata would help. I don't use it because I don't see any gain in practice.
Sent from my GT-I9000 using Tapatalk 2

[DUALBOOT MOD] Shared Apps

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. :silly:
charsleysa said:
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. :silly:
Click to expand...
Click to collapse
Good work keep it up!
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
Good works.
this method run with the contact and message also???
very thanks for this.
I will try.
gazou_hb said:
Good works.
this method run with the contact and message also???
very thanks for this.
I will try.
Click to expand...
Click to collapse
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.
Looks like good work, will give it a go later and/maybe congratulations
Sent from my GT-I9300 using xda premium
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
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 would like to have the data linked to, any way to do that?
Sent from my GT-I9300 using xda app-developers app
lightning18 said:
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
Click to expand...
Click to collapse
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.
Interesting, will give it a try
Great! Just waiting to full sync between ROMS
I love the concept but cannot get this to work. No matter what I do it won't work
Drew071
Sent from my GT-I9300 using xda app-developers app
it is not working... initially the app dir was loaded as /data/app/app tweaked the script to load the app directory ( dataapp ) .. still i am not able to see the apps in the launcher .. .
drew071 said:
I love the concept but cannot get this to work. No matter what I do it won't work
Drew071
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
smartvinu said:
it is not working... initially the app dir was loaded as /data/app/app tweaked the script to load the app directory ( dataapp ) .. still i am not able to see the apps in the launcher .. .
Click to expand...
Click to collapse
Could you please tell me what ROM's you are using and whether or not they are fresh installs.
Just tried this with Omega v28 and PA 2.2 as 2nd, didn't work but not a fresh install. I'm swapping then backing up PA to try again now and see if it works.
Edit: Just formatted 2nd rom and reinstalled as per OP's instructions and it worked. So that's the key I guess Awesome work OP!!
Tried this and didn't work, tried numerous times.
1st ROM: Paranoid
2nd ROM: Omega 28 (did a fresh install)
Does not show any of my apps in omega ROM from paranoid ROM.
I did encounter a problem in the terminal stage, on the moving file part its says can not find the file, I have to do it manually.
Sent from my GT-I9300 using xda app-developers app
jayc1980 said:
Tried this and didn't work, tried numerous times.
1st ROM: Paranoid
2nd ROM: Omega 28 (did a fresh install)
Does not show any of my apps in omega ROM from paranoid ROM.
I did encounter a problem in the terminal stage, on the moving file part its says can not find the file, I have to do it manually.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Perhaps it's related to that? Make sure you put it in the right spot and have the permissions right.
Sent from my GT-I9300 using xda premium
Its very strange, all else seems fine.
Just that one error, all else is fine. Moved to the location stated but still nothing??
Sent from my GT-I9300 using xda app-developers app
---------- Post added at 07:10 PM ---------- Previous post was at 06:57 PM ----------
If I set the permissions manually what's the correct set up, currently it's:
These parts are ticked -
User: read, write, execute
Group: read, write, execute
Other: execute
jayc1980 said:
Its very strange, all else seems fine.
Just that one error, all else is fine. Moved to the location stated but still nothing??
Sent from my GT-I9300 using xda app-developers app
---------- Post added at 07:10 PM ---------- Previous post was at 06:57 PM ----------
If I set the permissions manually what's the correct set up, currently it's:
These parts are ticked -
User: read, write, execute
Group: read, write, execute
Other: execute
Click to expand...
Click to collapse
Yeah the permissions are the same as mine. Hmm bit weird
Sent from my GT-I9300 using xda premium

Dirty installiation | Flash other roms without losing your apps

My newest developement
This will delete all rom releated confilicting stuff and will leave your apps and data
Code:
ui_print("");
ui_print("Dirty Installer");
ui_print("Cleaning up for dirty installiation");
ui_print(" General cleanup");
delete("/data/ISP_CV");
delete("/data/anr");
delete("/data/app-asec");
delete("/data/app-private");
delete("/data/backup");
delete("/data/baro.dat");
delete("/data/cfw");
delete("/data/dalvik-cache");
delete("/data/data");
delete("/data/dontpanic");
delete("/data/drm");
delete("/data/gg_address");
delete("/data/gldata.sto");
delete("/data/gps");
delete("/data/lbsdata-000.sto");
delete("/data/local");
delete("/data/log");
delete("/data/lost+found");
delete("/data/misc");
delete("/data/property");
delete("/data/radio");
delete("/data/resource-cache");
delete("/data/rngd.pid");
delete("/data/ssh");
delete("/data/st_gbias.dat");
delete("/data/system");
delete("/data/tombstones");
delete("/data/user");
delete("/data/xposed");
ui_print(" Cleaning /data/data");
#Auto generated
delete("/data/app/com.android.backupconfirm");
delete("/data/app/com.android.bluetooth");
delete("/data/app/com.android.calculator2");
delete("/data/app/com.android.calendar");
delete("/data/app/com.android.cellbroadcastreceiver");
delete("/data/app/com.android.certinstaller");
delete("/data/app/com.android.contacts");
delete("/data/app/com.android.defcontainer");
delete("/data/app/com.android.deskclock");
delete("/data/app/com.android.development");
delete("/data/app/com.android.dreams.basic");
delete("/data/app/com.android.dreams.phototable");
delete("/data/app/com.android.email");
delete("/data/app/com.android.exchange");
delete("/data/app/com.android.facelock");
delete("/data/app/com.android.galaxy4");
delete("/data/app/com.android.gallery3d");
delete("/data/app/com.android.htmlviewer");
delete("/data/app/com.android.inputdevices");
delete("/data/app/com.android.inputmethod.latin");
delete("/data/app/com.android.keychain");
delete("/data/app/com.android.lmt");
delete("/data/app/com.android.location.fused");
delete("/data/app/com.android.magicsmoke");
delete("/data/app/com.android.mms");
delete("/data/app/com.android.musicvis");
delete("/data/app/com.android.nfc");
delete("/data/app/com.android.noisefield");
delete("/data/app/com.android.packageinstaller");
delete("/data/app/com.android.phasebeam");
delete("/data/app/com.android.phone");
delete("/data/app/com.android.providers.applications");
delete("/data/app/com.android.providers.calendar");
delete("/data/app/com.android.providers.contacts");
delete("/data/app/com.android.providers.downloads");
delete("/data/app/com.android.providers.downloads.ui");
delete("/data/app/com.android.providers.drm");
delete("/data/app/com.android.providers.media");
delete("/data/app/com.android.providers.settings");
delete("/data/app/com.android.providers.telephony");
delete("/data/app/com.android.providers.userdictionary");
delete("/data/app/com.android.settings");
delete("/data/app/com.android.sharedstoragebackup");
delete("/data/app/com.android.smspush");
delete("/data/app/com.android.soundrecorder");
delete("/data/app/com.android.stk");
delete("/data/app/com.android.systemui");
delete("/data/app/com.android.vending");
delete("/data/app/com.android.videoeditor");
delete("/data/app/com.android.voicedialer");
delete("/data/app/com.android.vpndialogs");
delete("/data/app/com.android.wallpaper");
delete("/data/app/com.android.wallpaper.holospiral");
delete("/data/app/com.android.wallpaper.livepicker");
delete("/data/app/com.cyanogenmod.CMWallpapers");
delete("/data/app/com.cyanogenmod.filemanager");
delete("/data/app/com.cyanogenmod.lockclock");
delete("/data/app/com.cyanogenmod.samsungservicemode");
delete("/data/app/com.cyanogenmod.settings.device");
delete("/data/app/com.google.android.apps.genie.geniewidget");
delete("/data/app/com.google.android.apps.maps");
delete("/data/app/com.google.android.apps.plus");
delete("/data/app/com.google.android.apps.translate");
delete("/data/app/com.google.android.apps.uploader");
delete("/data/app/com.google.android.backup");
delete("/data/app/com.google.android.configupdater");
delete("/data/app/com.google.android.feedback");
delete("/data/app/com.google.android.gm");
delete("/data/app/com.google.android.gms");
delete("/data/app/com.google.android.googlequicksearchbox");
delete("/data/app/com.google.android.gsf");
delete("/data/app/com.google.android.gsf.login");
delete("/data/app/com.google.android.inputmethod.latin.dictionarypack");
delete("/data/app/com.google.android.location");
delete("/data/app/com.google.android.marvin.talkback");
delete("/data/app/com.google.android.onetimeinitializer");
delete("/data/app/com.google.android.partnersetup");
delete("/data/app/com.google.android.setupwizard");
delete("/data/app/com.google.android.street");
delete("/data/app/com.google.android.syncadapters.bookmarks");
delete("/data/app/com.google.android.syncadapters.calendar");
delete("/data/app/com.google.android.syncadapters.contacts");
delete("/data/app/com.google.android.talk");
delete("/data/app/com.google.android.tts");
delete("/data/app/com.google.android.voicesearch);
ui_print(" Cleaning /data/app-lib");
#Auto generated
delete("/data/app-lib/com.android.backupconfirm");
delete("/data/app-lib/com.android.bluetooth");
delete("/data/app-lib/com.android.calculator2");
delete("/data/app-lib/com.android.calendar");
delete("/data/app-lib/com.android.cellbroadcastreceiver");
delete("/data/app-lib/com.android.certinstaller");
delete("/data/app-lib/com.android.contacts");
delete("/data/app-lib/com.android.defcontainer");
delete("/data/app-lib/com.android.deskclock");
delete("/data/app-lib/com.android.development");
delete("/data/app-lib/com.android.dreams.basic");
delete("/data/app-lib/com.android.dreams.phototable");
delete("/data/app-lib/com.android.email");
delete("/data/app-lib/com.android.exchange");
delete("/data/app-lib/com.android.facelock");
delete("/data/app-lib/com.android.galaxy4");
delete("/data/app-lib/com.android.gallery3d");
delete("/data/app-lib/com.android.htmlviewer");
delete("/data/app-lib/com.android.inputdevices");
delete("/data/app-lib/com.android.inputmethod.latin");
delete("/data/app-lib/com.android.keychain");
delete("/data/app-lib/com.android.lmt");
delete("/data/app-lib/com.android.location.fused");
delete("/data/app-lib/com.android.magicsmoke");
delete("/data/app-lib/com.android.mms");
delete("/data/app-lib/com.android.musicvis");
delete("/data/app-lib/com.android.nfc");
delete("/data/app-lib/com.android.noisefield");
delete("/data/app-lib/com.android.packageinstaller");
delete("/data/app-lib/com.android.phasebeam");
delete("/data/app-lib/com.android.phone");
delete("/data/app-lib/com.android.providers.app-liblications");
delete("/data/app-lib/com.android.providers.calendar");
delete("/data/app-lib/com.android.providers.contacts");
delete("/data/app-lib/com.android.providers.downloads");
delete("/data/app-lib/com.android.providers.downloads.ui");
delete("/data/app-lib/com.android.providers.drm");
delete("/data/app-lib/com.android.providers.media");
delete("/data/app-lib/com.android.providers.settings");
delete("/data/app-lib/com.android.providers.telephony");
delete("/data/app-lib/com.android.providers.userdictionary");
delete("/data/app-lib/com.android.settings");
delete("/data/app-lib/com.android.sharedstoragebackup");
delete("/data/app-lib/com.android.smspush");
delete("/data/app-lib/com.android.soundrecorder");
delete("/data/app-lib/com.android.stk");
delete("/data/app-lib/com.android.systemui");
delete("/data/app-lib/com.android.vending");
delete("/data/app-lib/com.android.videoeditor");
delete("/data/app-lib/com.android.voicedialer");
delete("/data/app-lib/com.android.vpndialogs");
delete("/data/app-lib/com.android.wallpaper");
delete("/data/app-lib/com.android.wallpaper.holospiral");
delete("/data/app-lib/com.android.wallpaper.livepicker");
delete("/data/app-lib/com.cyanogenmod.CMWallpapers");
delete("/data/app-lib/com.cyanogenmod.filemanager");
delete("/data/app-lib/com.cyanogenmod.lockclock");
delete("/data/app-lib/com.cyanogenmod.samsungservicemode");
delete("/data/app-lib/com.cyanogenmod.settings.device");
delete("/data/app-lib/com.google.android.app-libs.genie.geniewidget");
delete("/data/app-lib/com.google.android.app-libs.maps");
delete("/data/app-lib/com.google.android.app-libs.plus");
delete("/data/app-lib/com.google.android.app-libs.translate");
delete("/data/app-lib/com.google.android.app-libs.uploader");
delete("/data/app-lib/com.google.android.backup");
delete("/data/app-lib/com.google.android.configupdater");
delete("/data/app-lib/com.google.android.feedback");
delete("/data/app-lib/com.google.android.gm");
delete("/data/app-lib/com.google.android.gms");
delete("/data/app-lib/com.google.android.googlequicksearchbox");
delete("/data/app-lib/com.google.android.gsf");
delete("/data/app-lib/com.google.android.gsf.login");
delete("/data/app-lib/com.google.android.inputmethod.latin.dictionarypack");
delete("/data/app-lib/com.google.android.location");
delete("/data/app-lib/com.google.android.marvin.talkback");
delete("/data/app-lib/com.google.android.onetimeinitializer");
delete("/data/app-lib/com.google.android.partnersetup");
delete("/data/app-lib/com.google.android.setupwizard");
delete("/data/app-lib/com.google.android.street");
delete("/data/app-lib/com.google.android.syncadapters.bookmarks");
delete("/data/app-lib/com.google.android.syncadapters.calendar");
delete("/data/app-lib/com.google.android.syncadapters.contacts");
delete("/data/app-lib/com.google.android.talk");
delete("/data/app-lib/com.google.android.tts");
delete("/data/app-lib/com.google.android.voicesearch);
So what do you do? More info would be good.
Sent from my GT-I9300T using xda premium
Or convert to a script which we could run before flashing
Sent via TCP/IP
gsw5700 said:
Or convert to a script which we could run before flashing
Sent via TCP/IP
Click to expand...
Click to collapse
Easy just copy and paste into the run script of a CWM zip or in AROMA... I assume this will be done?
Sent from my GT-I9300 using Tapatalk 2
This basically removes any rom related files in /data partition
rlorange said:
Easy just copy and paste into the run script of a CWM zip or in AROMA... I assume this will be done?
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
That's what I tried but I get Error Status 6 when I flash it in CWM
Envoyé depuis mon Galaxy S3 avec Tapatalk
Auto Updater Script
Attached a Updater Script Zip for Recovery
Made using GR0S Code and based in an updater zip by mike1986 (SuperWipe Script for Android Revolution HD).
Thanks for your work GR0S.
I haven't try it, so NO warranty
If you're deleting /data/data, you're losing app data so would still need to add titanium restore to this process surely? So its only saving you restoring the apks?
Sent from my GT-I9300 using Tapatalk 2
jfrm said:
Attached a Updater Script Zip for Recovery
Made using GR0S Code and based in an updater zip by mike1986 (SuperWipe Script for Android Revolution HD).
Thanks for your work GR0S.
I haven't try it, so NO warranty
Click to expand...
Click to collapse
Thx but i get the same error as with my script
Envoyé depuis mon Galaxy S3 avec Tapatalk
Did someone with higher knowledge could have a deeper look on the script?
If something like that is really possible it will be a real milestone for us, poor flasholics...
ster97 said:
Thx but i get the same error as with my script
Click to expand...
Click to collapse
Thank you for trying it.
This is a good script to save our time
Thanks for your work
jfrm said:
Did someone with higher knowledge could have a deeper look on the script?
If something like that is really possible it will be a real milestone for us, poor flasholics...
Thank you for trying it.
Click to expand...
Click to collapse
If you use Philz recovery there is a complete Rom cleaning script included.
http://forum.xda-developers.com/showthread.php?t=2201860
[02.06.2013]CWM 6.0.3.2 Advanced Edition / PhilZ Touch 5.06.1 + JB 4.2 + exFAT...
Sent from my GT-I9300 using Tapatalk
I use it and for me is the best Recovery I have found.
But I think the CWM cleaning scripts do a full wipe / Dalvik ...
And the one here is a diferent aproach.
I do not think this can really work because most of the time, the data that is saved is for system specific data like settings and such. When you flash a new rom which has a different set of settings and system built in apps, the data that is from the old conflicts with the new.
I only dirty flash when I am moving between same based roms but going from CM to Stock it makes sense to do a full wipe.
jetbruceli said:
I do not think this can really work because most of the time, the data that is saved is for system specific data like settings and such. When you flash a new rom which has a different set of settings and system built in apps, the data that is from the old conflicts with the new.
I only dirty flash when I am moving between same based roms but going from CM to Stock it makes sense to do a full wipe.
Click to expand...
Click to collapse
If you look at the script, it deletes /data/data where that "system data" is stored. It deletes pretty much everything except /data/app, which is why it seems pointless to me
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
If you look at the script, it deletes /data/data where that "system data" is stored. It deletes pretty much everything except /data/app, which is why it seems pointless to me
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Exactly... Its pointless to even try this
Sent from my GT-I9300 using Tapatalk 4 Beta
Maybe someone is looking for some thanks to fill up their meter!
rootSU said:
If you look at the script, it deletes /data/data where that "system data" is stored. It deletes pretty much everything except /data/app, which is why it seems pointless to me
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
It's my mistake. I intented it to delete system related libs, data and cache from /data

Categories

Resources