Exclude apps from upgrade/installation when flashing - Omni Q&A

Hey together,
is there any chance to exclude single apps from the upgrade/installation process when flashing a new rom (nightlies)?
There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.
Maybe it can be done through a script in /system/addon.d or or a new zip in OpenDelta/FlashAfterUpdate?
Thanks in advance,
klenamenis
Sent from my GT-N7100 using XDA Premium 4 mobile app

you can freeze them and they will still be frozen after upgrade.
来自我的 Find 5 上的 Tapatalk

klenamenis said:
There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.
Maybe it can be done through a new zip in OpenDelta/FlashAfterUpdate?
Click to expand...
Click to collapse
Yep, this can be done easily.
Code:
ui_print("Mounting system partition");
ifelse(!is_mounted("/system"), run_program("/sbin/busybox", "mount", "/system"));
ifelse(!is_mounted("/system"), abort("Failed to mount /system"));
delete("/path/to/app");
run_program("/sbin/busybox", "umount", "/system");

webore said:
you can freeze them and they will still be frozen after upgrade.
来自我的 Find 5 上的 Tapatalk
Click to expand...
Click to collapse
I know, but they shall be removed.
PonsAsinorem said:
Yep, this can be done easily.
Code:
ui_print("Mounting system partition");
ifelse(!is_mounted("/system"), run_program("/sbin/busybox", "mount", "/system"));
ifelse(!is_mounted("/system"), abort("Failed to mount /system"));
delete("/path/to/app");
run_program("/sbin/busybox", "umount", "/system");
Click to expand...
Click to collapse
Thanks, but which update-binary should I use?
Is it possible to prevent that they even got flashed?
Thanks anyway for help.
Sent from my GT-N7100 using XDA Premium 4 mobile app

klenamenis said:
Thanks, but which update-binary should I use?
Click to expand...
Click to collapse
I'd grab a recent one out of OmniROM. Or you could try this update-binary (from http://teamw.in/project/twrp2 )
klenamenis said:
Is it possible to prevent that they even got flashed?
Click to expand...
Click to collapse
Yes, with an addon.d script. I don't feel like making one right now, because that syntax gives me a headache. But you should be able to look at others, (like Chainfire's su one), and see what it does and how it deletes files. After that, you could puzzle it out yourself with some time.

PonsAsinorem said:
I'd grab a recent one out of OmniROM. Or you could try this update-binary (from http://teamw.in/project/twrp2 ).
Click to expand...
Click to collapse
Yep, I already took a sample from someone's guide about creating zips.
Problem solved.
Sent from my GT-N7100 using XDA Premium 4 mobile app

klenamenis said:
Hey together,
is there any chance to exclude single apps from the upgrade/installation process when flashing a new rom (nightlies)?
There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.
Maybe it can be done through a script in /system/addon.d or or a new zip in OpenDelta/FlashAfterUpdate?
Thanks in advance,
klenamenis
Sent from my GT-N7100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Why? Free space in /system has no benefits, and none of those apps autostart, so you gain nothing by removing them.

Entropy512 said:
Why? Free space in /system has no benefits, and none of those apps autostart, so you gain nothing by removing them.
Click to expand...
Click to collapse
Because almost daily backing up and flashing between ROMs needs less time, TitaniumBackup's list of installed apps is shorter and some of the apps I remove have some background services running which I don't want.

Related

[CUSTOM .ZIP]Your own personalized flashable .zip - Inquire within!

I enjoy giving back to this community so I am going to do so in another way - its not a groundbreaking ROM or anything but just something small and helpful
When I flash between ROMs, there are little things I want to change (like the bootanimation, font's, etc) so I made my own update.zip with everything I want in it. It's not very hard to do, but it might be helpful for others.
So, if you would like me to make you your own customized .zip, just post in here telling me what you would like. Now, I'm a nice guy, but I don't want to go fishing for what you want. You need to post links to things and specify exactly what you'd like. It can be pretty much anything that you can currently flash in recovery and maybe even more (nothing comes to mind right now)
I don't know if there will be alot of interest in this or not, but just be patient and I will get you your .zip And this seems like the right place to post this, but if a mod feels it would be better elsewhere, feel free to move it.
Downloads​
dirkyd3rk (Decepticon boot animation with sound and Ubuntu font) - http://bit.ly/k7N8OJ
pamplina (Titanium Backup and Astro to /data/app/) - http://bit.ly/jwxYL0
phatmanxxl (/cache and dalvik-cache wipe) - http://bit.ly/j5lmFb
Rem3dy (Remove shutter sound on CM7) - http://bit.ly/j3wzLG
Sry0fcr (CM7 Launcher2.apk replace with SalvageMod Launcher2.apk) - http://bit.ly/kpqKWJ
You da man viper I should buy you a beer or coffee for your awesome work. Im still rocking your scripts they rule! I'd like a zip, not because I can't make my own but because I've been extremely busy with work and haven't found time to get to a comp. Can I have zip for cm7 that includes the ubuntu font combined with the PlayStation 1 boot animation w/ sound?
Oh yeah and make me a sandwich jk lol
Sent from my PC36100 using XDA Premium App
Can someone point me to a how to / tutorial so i can do it myself?
johnylovejoy said:
Can someone point me to a how to / tutorial so i can do it myself?
Click to expand...
Click to collapse
I second that. a tutorial would be nice.
teach us > give us
dirkyd3rk said:
You da man viper I should buy you a beer or coffee for your awesome work. Im still rocking your scripts they rule! I'd like a zip, not because I can't make my own but because I've been extremely busy with work and haven't found time to get to a comp. Can I have zip for cm7 that includes the ubuntu font combined with the PlayStation 1 boot animation w/ sound?
Oh yeah and make me a sandwich jk lol
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Remember what I said about posting links to stuff? I will look for this one time to be nice, but I shouldn't. Give me a few.
johnylovejoy said:
Can someone point me to a how to / tutorial so i can do it myself?
Click to expand...
Click to collapse
initial said:
I second that. a tutorial would be nice.
teach us > give us
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=717437
A great tool for creating an update.zip. The hard part is the updater-script. One slightly wrong thing and the .zip won't flash. I would recommend looking at the updater-script located in /META-INF/com/google/android/ of any flashable .zip for the EVO. Here is an example from my zip...
mount("MTD", "system", "/system");
ui_print("");
set_progress(1.000000);
ui_print("Derek's Customization Pack");
show_progress(0.500000, 20);
ui_print("");
ui_print("Replacing boot animation...");
sleep(1);
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
show_progress(0.500000, 80);
ui_print("");
ui_print("Replacing font...");
sleep(1);
ui_print("");
ui_print("Extracting customized build.prop...");
sleep(1);
unmount("/system");
show_progress(0.100000, 100);
ui_print("");
ui_print("Done!");
Click to expand...
Click to collapse
Should be pretty self-explanatory what they all do. Hopefully this mini tutorial helps you guys out a little bit.
dirkyd3rk said:
You da man viper I should buy you a beer or coffee for your awesome work. Im still rocking your scripts they rule! I'd like a zip, not because I can't make my own but because I've been extremely busy with work and haven't found time to get to a comp. Can I have zip for cm7 that includes the ubuntu font combined with the PlayStation 1 boot animation w/ sound?
Oh yeah and make me a sandwich jk lol
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1048231
Have you done this or confirmed that you don't need to do this on the new nightlies?
Fonts (ubuntu) last one on op
http://forum.xda-developers.com/showthread.php?t=801160
(Transformers decepticon with sound)
http://forum.xda-developers.com/showthread.php?t=1069118
I have tried that method on cm7 I can confirm it works.
Sent from my PC36100 using XDA Premium App
Replace the Launcher2.apk
I would like a .zip that will replace the Launcher2.apk in CM7 with the modified Launcher2.apk from SalvageMod. I'm hoping to get landscape functionality of the homescreen and app drawer.
Note: I use Frank707's zip to remove ADW and go back to the stock launcher.
Much thanks for taking the time to do something like this. The SalvageMod launcher should be attached.
Instead of delete all I would like a .zip that will quickly wipe the cache an delvik cache in one go in the recovery.
That would be really helpful.
All the .zips are done and in the OP. Let me know if you have any issues
How about zip to install apks in recovery? I know you can do that in adb but this is in case you dont have a pc near, 3G or wifi.
pamplinas said:
How about zip to install apks in recovery? I know you can do that in adb but this is in case you dont have a pc near, 3G or wifi.
Click to expand...
Click to collapse
Why wouldn't you just install an app while the phone was running?? I don't understand that at all. And it wouldn't be possible to make it universal, I'd have to make you a zip with the apps you want in it. But again, why not just install them with the phone running?
-viperboy- said:
Why wouldn't you just install an app while the phone was running?? I don't understand that at all. And it wouldn't be possible to make it universal, I'd have to make you a zip with the apps you want in it. But again, why not just install them with the phone running?
Click to expand...
Click to collapse
I was thinking of something else. My bad for the confusion lol. What I meant to say was, astro manager free on the market.
how about a zip that can kill everything running in backround when screen off?
Sent from my PC36100 using XDA App
pamplinas said:
How about zip to install apks in recovery? I know you can do that in adb but this is in case you dont have a pc near, 3G or wifi.
Click to expand...
Click to collapse
This makes no sense at all lol. I don't think some of us get the concept; this isn't supposed to make him pop a vein in his forehead just thinking about it, he's just offering a simple service to give back.
I really appreciate the zip viper. Thanks
Sent from my PC36100 using XDA Premium App
mfknboss said:
how about a zip that can kill everything running in backround when screen off?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Just download system panel from the market and kill everything or tasker.
Sent from my PC36100 using XDA Premium App
It's gonna be huge and I know that, but since I've started using Sense 2.1 roms I've been downloading and constantly installing a random assortment of skins from here:
http://forum.xda-developers.com/showthread.php?t=1048894
If I could get all of them in a single sexy .zip it would be greatly appreciated
Yeah I know they're apks and they can be side loaded, but with how many there are, it'd be easier to just let recovery take care of it.
Super much appreciated and you couldn't have asked at a better time
Awesome, thanks! Flashing now.
dirkyd3rk said:
This makes no sense at all lol. I don't think some of us get the concept; this isn't supposed to make him pop a vein in his forehead just thinking about it, he's just offering a simple service to give back.
I really appreciate the zip viper. Thanks
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Yeah my bad. lol
Why wouldn't you just install an app while the phone was running?? I don't understand that at all. And it wouldn't be possible to make it universal, I'd have to make you a zip with the apps you want in it. But again, why not just install them with the phone running?
Click to expand...
Click to collapse
I was thinking of something else. My bad for the confusion lol. What I meant to say was, astro manager free on the market.
Click to expand...
Click to collapse
Ok I get ya now, how about titanium backup free to go with it? Those are always 2 apps I need on a new ROM but let me know.

[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

"Project butter" for ics Aurora_5.0_u9 compatible

Just flash in recovery, MOUNT SYSTEM before doing it!
This is not the project butter, more like a package of tweaks that will smooth the ui and some programs
I noticed a huge improvement in system ui as in application! fluidity is definitely better!
Post your opinion
http://depositfiles.com/files/u33j5sigx
Thanks to the original post and author :
http://forum.xda-developers.com/showthread.php?t=1911327
Sent from my U8800 using xda app-developers app
I will port it to Mlora... thanks
Sent from my U8800 using xda app-developers app
I just flashed it on Mlora, seems that works.
I have flashed it to MIUI V4 but the build.prop changes didn't copied and the other files too. I did it manually and I think I have quite worse performance than before
cheers
For me using Aurora_5.0_u9 works like a charm, Facebook and other apps running a lot smother..
Sent from my U8800 using xda app-developers app
websorcer said:
For me using Aurora_5.0_u9 works like a charm, Facebook and other apps running a lot smother..
Sent from my U8800 using xda app-developers app
Click to expand...
Click to collapse
Can you confirm that it is flashed correctly and it is not a placebo?
Can you please check these 2 things:
1. is the last line of the /system/build.prop file the following
ro.HOME_APP_ADJ=1
2. do you have an adreno_config.txt file inside /system/etc?
thank you!
Yes, i have the txt file. You have to mount system in order to be correctly patched.
See the original post for more details.
Sent from my U8800 using xda app-developers app
Seems that the author removed it...
Sent from my u8800pro using xda premium
I'm testing this, and it really seems to make the UI smoother. There's only one small mistake after installing it, it creates an aditional build.prop file with it's contents being only "/n". It can safely be deleted.
fjsferreira said:
I'm testing this, and it really seems to make the UI smoother. There's only one small mistake after installing it, it creates an aditional build.prop file with it's contents being only "/n". It can safely be deleted.
Click to expand...
Click to collapse
Boot speed is the same?
Sent from my u8800pro using xda premium
Somcom3X said:
Boot speed is the same?
Sent from my u8800pro using xda premium
Click to expand...
Click to collapse
Yes. This doesn't include init.d scripts, those are what slows down boot speed.
I haven't tried this but the correct line on the updater script in order for this to work is
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
or this
Code:
run_program("/sbin/busybox", "mount", "/system");
rest is plain placebo
ezet said:
I haven't tried this but the correct line on the updater script in order for this to work is
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
or this
Code:
run_program("/sbin/busybox", "mount", "/system");
rest is plain placebo
Click to expand...
Click to collapse
Other way to install is just to mount /system in CWM before flashing the zip (tested by me )
I'm having problems with some apps, after flashed project butter. I'm using go SMS pro(not the latest, but 4.30 version) which doesn't work any more. I have a lot of apps(~200), and except go sms I faced this problem at all -made by me- apps, which are some tutorial apps and 5 small apps. All of them are 2.2+ and work fine on 2.2, 2.3 and ICS rom(I've test them). The problem seems to be the same in all apps I tested. Appears only a black screen, and seems that something works(because If I tap on the screen I can hear the sound which indicates that something pressed), but nothing change visually.
So, I'm thinking that is some graphics problem which affects apps compiled on JB previous android platform(one of my apps is compiled with android 4.0 platform).
I don't care for my home made apps, because I can try to recompile them, but I want to keep using GO SMS pro 4.30 version, which has the offline SMS backup future.
Can you figure out what cause this problem?
Can this be installed in Elora 1.11.09? Or is this ROM already optimized/'butterrized'? :silly:
Many of my applications are built for ics, have you mount system before flash the zip? I have encountered some issues like those when I first flash the zip file and forgot to mount system..
Sent from my U8800 using xda app-developers app
J ust installed this over miui V4 + v6 supercharger scrpits and its working good.
Didn't need to mount system.
---------- Post added 13th November 2012 at 12:07 AM ---------- Previous post was 12th November 2012 at 11:34 PM ----------
Djuganight said:
J ust installed this over miui V4 + v6 supercharger scrpits and its working good.
Didn't need to mount system.
Click to expand...
Click to collapse
I didn't see any changes in build.prop nor the adreno file in /system/etc, therefore I decided to flash the zip again, now with the system mounted.
Now I felt good differences in smoothness and apps looks like load faster but lost wifi completely.
Tried several reboots but no wifi.
Had to restore a backup. What can it be?
This isn't nowhere near to Project Butter. All this does is disabling the software rendering path via renaming the libGLES_Android.so file + some build.prop tweaks.
It should be just called as an another tweak package.. Since it's not project butter
Unrealized said:
This isn't nowhere near to Project Butter. All this does is disabling the software rendering path via renaming the libGLES_Android.so file + some build.prop tweaks.
It should be just called as an another tweak package.. Since it's not project butter
Click to expand...
Click to collapse
Buahahahahah
Where is project butter then?
Djuganight said:
Buahahahahah
Where is project butter then?
Click to expand...
Click to collapse
Project Butter is a feature in Jelly Bean. This is just a package of tweaks, which are not relevant to Project Butter at all. It requires a lot of library changes to be enabled in ICS, this has no modified libs, it just disables one and edits build.prop.

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

[FIX] Data Encryption Problem AOSP Roms

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

Categories

Resources