[MOD] [SCRIPT] Superwipe Script & Kernel Cleaner Script - Nexus 7 Android Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
MOD NOTE: Be advised the superwipe script WILL wipe your internal storage. It's designed that way to wipe all the useless clutter that accumulates. If you don't know what you are doing, then don't flash it.
I have decided to post the wipe scripts here for those KernelHolics & Flashaholics that are flashing kernels and ROMs constantly. I've made small modifications to these scripts FULL credit to the originator of them Credits below.
These are compatible with CWM, TWRP.
Since there have been numerous kernels recently being posted and people wondering what to wipe or what not to wiped here is the Kernel Cleaner.
1. Place the file in the root of your /sdcard
2. Flash Kernel Cleaner
3. Flash/Fastboot Kernel
4. Reboot.
Download: http://d-h.st/BWy
This second script I'm sure everyone is familiar with SUPERWIPE script.
Tired of wiping after every ROM or not knowing what to wipe to flash a ROM and have a clean install? Just flash this script & flash ROM easy right?
1. Place Wipe-Script in root of /sdcard
2. Flash Wipe-Script
3. Flash ROM
4. Reboot.
5. This will wipe external storage. (Wiping without storage coming soon)
Download: http://d-h.st/MFS
Debug​
If it doesn't flash please tell me what recovery your using.
ONLY works for the NEXUS 7 NOT NEXUS 7 3G will be available for other devices as well.
Credit goes to the following people.​
Mike1986
AmazingLarry31
Jivy26
I-777
Myself
IF YOU USE/DOWNLOAD THIS SCRIPT PLEASE PRESS THE THANKS BUTTON​

Re: [mod][script] superwipe script & kernel cleaner script
Reserved for other Awesome Scripts to make your life easier.

So this replaces the ramdisk to the original one? No need to flash the stock kernel before changing from a modified ramdisk kernel to another?
Thank you, we surely need more stuff like that to make our lifes easier =)

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
Grakel said:
So this replaces the ramdisk to the original one? No need to flash the stock kernel before changing from a modified ramdisk kernel to another?
Thank you, we surely need more stuff like that to make our lifes easier =)
Click to expand...
Click to collapse
The Kernel Cleaner will remove the kernel, modules, ramdisk, init.d. To nothing! You will have to flash a new kernel to install the modules and ramdisk again.
Sent from my HTC One S using Tapatalk 2

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
Great scripts for Franco kernel users wanting to migrate to a different kernel :thumbup:
Sent from my Nexus 7 using xda app-developers app

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
FitAmp said:
Great scripts for Franco kernel users wanting to migrate to a different kernel :thumbup:
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yes, something u get more bugs flashing a kernel over another kernel or ROM this solves that problem. Its like getting a clean kernel install

good we have one of these, really gives you a fresh start!

So I guess it's my fault for not backing up on my computer but you should probably mention that this wipes EVERYTHING! I assumed when you said, flash script, flash rom, you didnt mean connect to PC, ADB push rom, flash, reboot, re set up everything....

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
Gil Smash said:
So I guess it's my fault for not backing up on my computer but you should probably mention that this wipes EVERYTHING! I assumed when you said, flash script, flash rom, you didnt mean connect to PC, ADB push rom, flash, reboot, re set up everything....
Click to expand...
Click to collapse
It wipes internal storage? Yikes :s
Sent from my Nexus 7 using xda app-developers app

FitAmp said:
It wipes internal storage? Yikes :s
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yup.... I wish I had backed up to my computer before hand. At least I have a backup from a month or so ago....

Thanks for this, much needed, will be using the kernel cleaning script a lot. I'm gonna wait till the super wipe doesn't wipe the internal storage, I'm using multiboot atm and don't wanna lose my ROMs or feel like backing them up.
Thanks again!

...Awesome... said:
The Kernel Cleaner will remove the kernel, modules, ramdisk, init.d. To nothing! You will have to flash a new kernel to install the modules and ramdisk again.
Sent from my HTC One S using Tapatalk 2
Click to expand...
Click to collapse
good work man!i only suggest you to insert this things in the kernel script(like i already did times ago in mine i use always)
tricksterMOD app saved data\settings
franco app saved data\settings
faux app saved data\settings
thanks to take the time to modify and post these!
EDIT an example for the galaxy nexus that i use,like you can see it erase also kernel control app data.hope it helps!
Code:
#!/sbin/sh
# clean Popcorn stuff
rm -f /system/etc/sysctl.conf
rm -rf /data/cron
# clean LeanKernelTweaks stuff
rm -f /system/xbin/installbb
rm -f /system/xbin/leantweaks
rm -rf /data/leantweaks
# clean Trinity stuff
rm -f /system/bin/fix_permissions
# clean init.d scripts
INITD_DIR=/system/etc/init.d
# GLaDOS
rm -f $INITD_DIR/90logger
rm -f $INITD_DIR/99nexusinit
rm -f $INITD_DIR/placeholder
# Trinity
rm -f $INITD_DIR/95dimmers
rm -f $INITD_DIR/98tweak
rm -f $INITD_DIR/99complete
# SG
rm -f $INITD_DIR/98_startup_script
rm -f $INITD_DIR/99_startup_complete
# Air
rm -f $INITD_DIR/89airtweaks
rm -f $INITD_DIR/98airtweak
rm -f $INITD_DIR/98airtweaks
rm -f $INITD_DIR/99airtweaks
# franco
rm -f $INITD_DIR/13overclock
rm -f $INITD_DIR/00turtle
# Popcorn
rm -f $INITD_DIR/99sonic
# Lean
rm -f $INITD_DIR/99leantweaks
# Jame Bond
rm -f $INITD_DIR/007tweaks
# miscellany
rm -f $INITD_DIR/99nstools
# lean kernel
rm -f $INITD_DIR/99lk-gpu
# Zen
rm -f $INITD_DIR/99ZenKernel
# clean kernel setting app shared_prefs
rm -rf /data/data/mobi.cyann.nstools/shared_prefs
rm -rf /data/data/aperture.ezekeel.gladoscontrol/shared_prefs
rm -rf /data/data/com.derkernel.tkt/shared_prefs
rm -rf /data/data/com.franco.kernel/shared_prefs
rm -rf /data/data/com.liquid.control/shared_prefs
# remove dalvik cache
rm -rf /data/dalvik-cache
rm -rf /cache/dalvik-cache

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
Will do thanks for taking the time and showing me. I will edit it in the next version.
Sent from my HTC One S using Tapatalk 2

np man,i cited only that 3 apps because they were what come in mind in that moment,don't know if n7 users use something else (kernel control app coded by kernel dev or coded with n7 in mind)

mlaws90 said:
Thanks for this, much needed, will be using the kernel cleaning script a lot. I'm gonna wait till the super wipe doesn't wipe the internal storage, I'm using multiboot atm and don't wanna lose my ROMs or feel like backing them up.
Thanks again!
Click to expand...
Click to collapse
Is it possible for you to add this script into your Rom Aroma installation? would be nice as some of us try many different kernels!

Just a question though: will the kernel cleaner script erase all data on my N7?

no!not worry about that.
little tips.also if you don't know anything related,next time have a look inside the zip,in the updater-script
i report HERE if you want to have a look

sert00 said:
no!not worry about that.
little tips.also if you don't know anything related,next time have a look inside the zip,in the updater-script
i report HERE if you want to have a look
Click to expand...
Click to collapse
So I just want to clarify, the kernel cleaner script doesnt delete anything but just everything to do with the kernel that is installed right? It doesnt erase all the data that I have on my tab?

Re: [MOD][SCRIPT] Superwipe Script & Kernel Cleaner Script
Hi, the links are down and I really need both of these scripts. Do you have another link possibly. I would be most appreciative. Thanks in advance.
Sent from my Nexus 7 using xda premium

Android.Ninja said:
Hi, the links are down and I really need both of these scripts. Do you have another link possibly. I would be most appreciative. Thanks in advance.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
links are NOT down... dev-host got server problems ... F5 is your best friend now

Related

A2SD on Haykuro's 6.0r1

Morning all (in my part of the world)
Has anyone been able to get A2SD working on H's latest ROM yet?? I've tried afew things apps and adb wise and they seem to lock up the phone on the HTC screen with the (now annoying) chime, I've Reflashed on got everything running as normal so its just getting the A2SD bit working
Any Advice is much appreciated
Additionally im also experiencing issues with the drawer appearing at the bottom of the screen and the icons messing up when sliding the screen out
Thought i would throw up a screen shot for giggles
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I came from dudes 1.1a, had apps and dalvik done with the "apps2sd2" app (on dudes).
after flashing new haykuro,i installed the old "apps2sd" app and got everything working again ;-)
maybe you should give it a try (formating sd by yourself, and the rest with "apps2sd" from maximus)
did you wipe for your ROM change or just Alt+S it??
Dantehman said:
Morning all (in my part of the world)
Has anyone been able to get A2SD working on H's latest ROM yet?? I've tried afew things apps and adb wise and they seem to lock up the phone on the HTC screen with the (now annoying) chime, I've Reflashed on got everything running as normal so its just getting the A2SD bit working
Any Advice is much appreciated
Additionally im also experiencing issues with the drawer appearing at the bottom of the screen and the icons messing up when sliding the screen out
Click to expand...
Click to collapse
It should work, it all depends how many apps. you have. you need to wait a while, since its installing all your all apps. that you had before........The home screen on landscape is not an issue, since the magic does not have a landscape mode on the home screen it does this. You can replace it with a alternative home so you won't have this issue, or use adb to push the launcher.apk that works right with screen home screen.
cholito said:
It should work, it all depends how many apps. you have. you need to wait a while, since its installing all your all apps. that you had before........The home screen on landscape is not an issue, since the magic does not have a landscape mode on the home screen it does this. You can replace it with a alternative home so you have this issue, or use adb to push the launcher.apk that works right with screen home screen.
Click to expand...
Click to collapse
Already taken care of the Launcher (2nd and 9th Posts) http://forum.xda-developers.com/showthread.php?t=518042
and I wiped my ex2 partition already so im looking at 0 appidge, but the issue is it getting sutck at the splash screen and looping with the (annoying) HTC chime, it wont budge
Im gonna get home from work later on and try formatting my card again by wiping everyhting off it and starting 100% fresh and ill first try
Haykuros A2SD via ADB
Then try..
The origional Apps2SD App
Failing that..
The new and improved Apps 2 SD Method
And ill report back with updates
Yeah, the old method works (the one where you have to use symlinks) but the newer, better method does not because Haykuro hasn't added unionfs into his kernel yet.
I tried flashing JF's boot.img from his ADP1.50 build through fastboot, but it caused half of the apps to force close so I had to wipe and reflash 6.0r1... apparently, Haykuro is working on it... he seems to be focusing more on Sapphire/Magic right now...
Dantehman said:
did you wipe for your ROM change or just Alt+S it??
Click to expand...
Click to collapse
i flashed haykuro, then (before starting) did a wipe, don`t know if necessary?
then i installed appstosd (the old one), removed the "first time" and made apps to sd.
after reboot it took a while, then all apps appeared ;-)
again appstosd, made dalvik cache to sd.
after reboot again it took a while (5 minutes or so), then 90 apps free space 75MB ;-)
i think formating sd by yourself and the old appstosd app should work ;-)
If thats the case im going to totally erase my card + partitions,
then try the Apps 2 SD app and see what happens
if not, amgupt01 do you have a linky for the old method?? (or im i being noobish and its the Haykuro's A2SD 5.0.x onwards i need to follow)
Dantehman said:
If thats the case im going to totally erase my card + partitions,
then try the Apps 2 SD app and see what happens
if not, amgupt01 do you have a linky for the old method?? (or im i being noobish and its the Haykuro's A2SD 5.0.x onwards i need to follow)
Click to expand...
Click to collapse
lol, it's the one for 5.0.x onwards.
amgupt01 said:
lol, it's the one for 5.0.x onwards.
Click to expand...
Click to collapse
Followed and Failed, looping on the splash screen with the chime,,,, as didnt put into silent,,, aargh its killing my ears lmao
anyone have any ideas???
pulling battery now!
====== UPDATE ======
Alt+S (just for fun, to see if it does anything)
Dantehman said:
pulling battery now!
====== UPDATE ======
Alt+S (just for fun, to see if it does anything)
Click to expand...
Click to collapse
if you came into recovery, there should be no real problem?
still your apps on sd?
try the "appstosd" app (old one)?
EPIC FAIL
Alt+W
Alt+S
Keyboard Back up and running
Stuck where i was,
seems the Origional A2SD theory has left me high and dry
(all this wiping and reflashing, maybe i should learn how to use nandroid and make a backup lmao!)
Haykuros Apps to SD tutorial worked fine for me.
I formatted my ext2 partition first after coming from jf1.5 just to start clean.
Setup in 5.0.1 onward
http://android-dls.com/wiki/index.php?title=Haykuro_Apps_to_SD
hope it helps.
Success!!!!!!
The Origional A2SD APP works!!!!!
Wahoo
-Those who are keen eyed will notice that this is my old picture,,, the reason ive put this up is because i have 86mb FREE AGAIN on this ROM
here's what i did :
1. nandroid backup
2. alt+w, alt+s, reboot
3. open terminal emu, rm all folders in /system/sd from H1.5r3, reboot
4. busybox cp -a /data/app /system/sd/
busybox cp -a /data/app-private /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
5. rm -r /data/app
ln -s /system/sd/app /data/app
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
rm -r /data/data
ln -s /system/sd/data /data/data
rm -r /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
6. reboot
7. enjoy
Been running smooth ever since, 1gb ext2 partition w/ 150ish apps installed, 88mb internal mem free.
If you had Klaxon installed before you went to the H build, thats probably the culprit. It will put your phone in a continuos loop at boot screen.
kchino said:
If you had Klaxon installed before you went to the H build, thats probably the culprit. It will put your phone in a continuos loop at boot screen.
Click to expand...
Click to collapse
that and " owner" and a few other programs.
on a side note, after thinking about it last night after looping mine about 10 times...
i think it prob is necessary to reformat the sd, so back it all up jic , then the old a2sd prog seems to work for most folks. the only guys that seem to get it to work are ether coming from a clean sheet, or an H build...
also, i think if your coming from a non H build and you use backup for root it seems to loop.
ichibanpnoy said:
here's what i did :
1. nandroid backup
2. alt+w, alt+s, reboot
3. open terminal emu, rm all folders in /system/sd from H1.5r3, reboot
4. busybox cp -a /data/app /system/sd/
busybox cp -a /data/app-private /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
5. rm -r /data/app
ln -s /system/sd/app /data/app
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
rm -r /data/data
ln -s /system/sd/data /data/data
rm -r /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
6. reboot
7. enjoy
Been running smooth ever since, 1gb ext2 partition w/ 150ish apps installed, 88mb internal mem free.
Click to expand...
Click to collapse
APPRECIATED!! i almost gave up on the build and went back to JF's.. 88meg free

[Q] Easy way to convert to Froyo A2SD??

Hey Everyone,
Is anyone else having major issues getting all their apps over to Froyo's Apps2SD? I cant restore my apps using Froyo-compatible apps like Titanium Backup, I cant download them from the market because if fails during the install. Only way ive found that works (but is manual and tedious) is to install to internal, and then "Move to SD" for each app.
Till Apps2EXT gets officially implemented in CM6, does anyone know of a better method of converting to the Froyo Apps2SD. I have BART backups and all the apks, but nothing seems to work for batch install.
I am using the updated gapps that was posted for the market fix, btw
Thanks!
zimphishmonger said:
Hey Everyone,
Is anyone else having major issues getting all their apps over to Froyo's Apps2SD? I cant restore my apps using Froyo-compatible apps like Titanium Backup, I cant download them from the market because if fails during the install. Only way ive found that works (but is manual and tedious) is to install to internal, and then "Move to SD" for each app.
Till Apps2EXT gets officially implemented in CM6, does anyone know of a better method of converting to the Froyo Apps2SD. I have BART backups and all the apks, but nothing seems to work for batch install.
I am using the updated gapps that was posted for the market fix, btw
Thanks!
Click to expand...
Click to collapse
This is the part where I post a sarcastic pic and tell you to GTFO.
But I too am having the same problem. I tried to use ADB and DroidExplorer to batch install my backed up apps but they both failed.
I really want to use CM6 on a daily basis but I can't without my favorites apps.
There's a thread you might have missed where firerat has an implementation... for now.
Go check it out and I think you might be happier...
Sent from my HTC Dream using XDA App
philosophics said:
There's a thread you might have missed where firerat has an implementation... for now.
Go check it out and I think you might be happier...
Sent from my HTC Dream using XDA App
Click to expand...
Click to collapse
I saw that he put together a quick script for it, but I also heard that it slows things down. Might give it a shot anyways, though.
If anyone else has a good method of converting over to Froyo A2SD, def leave word here
apps
Z҉A҉L҉G҉O̚̕̚ said:
This is the part where I post a sarcastic pic and tell you to GTFO.
But I too am having the same problem. I tried to use ADB and DroidExplorer to batch install my backed up apps but they both failed.
I really want to use CM6 on a daily basis but I can't without my favorites apps.
Click to expand...
Click to collapse
same here i got over 300 apps and even though i dont use all of em i cant commit to cm6 without em. yes im an app addict.
found the apps2sd for cm6 aka froyo:
install firerats recovery 1.3 patch, install cm6,install gapps1-2.zip, install firerats boot 1.2,reboot,...
for apps2sd:
just re-install the apps one by one. theres no other fix as of now. nahh jus kiddin i found this **** earlier for you who missed it: http://forum.xda-developers.com/showthread.php?t=722861
B6gSix said:
found the apps2sd for cm6 aka froyo:
install firerats recovery 1.3 patch, install cm6,install gapps1-2.zip, install firerats boot 1.2,reboot,...
for apps2sd:
just re-install the apps one by one. theres no other fix as of now. nahh jus kiddin i found this **** earlier for you who missed it: http://forum.xda-developers.com/showthread.php?t=722861
Click to expand...
Click to collapse
That slowed down my phone.
B6gSix said:
found the apps2sd for cm6 aka froyo:
install firerats recovery 1.3 patch, install cm6,install gapps1-2.zip, install firerats boot 1.2,reboot,...
for apps2sd:
just re-install the apps one by one. theres no other fix as of now. nahh jus kiddin i found this **** earlier for you who missed it: http://forum.xda-developers.com/showthread.php?t=722861
Click to expand...
Click to collapse
The second file always gives an error, and Im currently using Firerat's patch to enable app2sd, although its a lil slow. I am looking for a method to batch install apps to froyo a2sd (on FAT)
zimphishmonger said:
The second file always gives an error, and Im currently using Firerat's patch to enable app2sd, although its a lil slow. I am looking for a method to batch install apps to froyo a2sd (on FAT)
Click to expand...
Click to collapse
Batch install on internal worked fine (titanium 2.9.7.6, 150 apps), it's better than nothing.I use FR data patch (85 instead of 55MB free space).
robuser007 said:
Batch install on internal worked fine (titanium 2.9.7.6, 150 apps), it's better than nothing.I use FR data patch (85 instead of 55MB free space).
Click to expand...
Click to collapse
Ya, I found that internal worked okay as well w/ Titanium backup. I just have to manually move all of them to the SD card :-|
I havent had any luck installing directly to the SD card, it gives an error each time, both when installing APKs within Android and using ADB
EDIT: Seems the only method working for me is to restore to internal, and "move to sd" (you need to enable it in CM settings)
zimphishmonger said:
Ya, I found that internal worked okay as well w/ Titanium backup. I just have to manually move all of them to the SD card :-|
I havent had any luck installing directly to the SD card, it gives an error each time, both when installing APKs within Android and using ADB
EDIT: Seems the only method working for me is to restore to internal, and "move to sd" (you need to enable it in CM settings)
Click to expand...
Click to collapse
this would move everything in /data/app to the FroYo sd
Code:
#!/system/bin/sh
#
# move all apps from /data/app/ to /sdcard/.android_secure ( FroYo apps2ext )
pm setInstallLocation 2
for apk in `ls /data/app/*apk`;do
cp $apk /dev/temp.apk
echo "uninstalling $apk"
pm uninstall -k `awk -F \" '/'\`basename $apk\`'/ { print $2 }' /data/system/packages.xml`
echo "reinstalling $apk"
pm install /dev/temp.apk
done
rm /dev/temp.apk
takes a while..
and it will move everything !!
change
for apk in `ls /data/app/*apk`;do
to
for apk in `ls /data/app/*apk|egrep -v "app1|app2|app3"`;do
where app1,2 and 3 are the ones you wish to keep on internal
BRILLIANT!
Firerat said:
this would move everything in /data/app to the FroYo sd
Code:
#!/system/bin/sh
#
# move all apps from /data/app/ to /sdcard/.android_secure ( FroYo apps2ext )
pm setInstallLocation 2
for apk in `ls /data/app/*apk`;do
cp $apk /dev/temp.apk
echo "uninstalling $apk"
pm uninstall -k `awk -F \" '/'\`basename $apk\`'/ { print $2 }' /data/system/packages.xml`
echo "reinstalling $apk"
pm install /dev/temp.apk
done
rm /dev/temp.apk
takes a while..
and it will move everything !!
change
for apk in `ls /data/app/*apk`;do
to
for apk in `ls /data/app/*apk|egrep -v "app1|app2|app3"`;do
where app1,2 and 3 are the ones you wish to keep on internal
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Firerat said:
this would move everything in /data/app to the FroYo sd
Code:
#!/system/bin/sh
#
# move all apps from /data/app/ to /sdcard/.android_secure ( FroYo apps2ext )
pm setInstallLocation 2
for apk in `ls /data/app/*apk`;do
cp $apk /dev/temp.apk
echo "uninstalling $apk"
pm uninstall -k `awk -F \" '/'\`basename $apk\`'/ { print $2 }' /data/system/packages.xml`
echo "reinstalling $apk"
pm install /dev/temp.apk
done
rm /dev/temp.apk
takes a while..
and it will move everything !!
change
for apk in `ls /data/app/*apk`;do
to
for apk in `ls /data/app/*apk|egrep -v "app1|app2|app3"`;do
where app1,2 and 3 are the ones you wish to keep on internal
Click to expand...
Click to collapse
Thanks FR!
terminal
Firerat said:
this would move everything in /data/app to the FroYo sd
Code:
#!/system/bin/sh
#
# move all apps from /data/app/ to /sdcard/.android_secure ( FroYo apps2ext )
pm setInstallLocation 2
for apk in `ls /data/app/*apk`;do
cp $apk /dev/temp.apk
echo "uninstalling $apk"
pm uninstall -k `awk -F \" '/'\`basename $apk\`'/ { print $2 }' /data/system/packages.xml`
echo "reinstalling $apk"
pm install /dev/temp.apk
done
rm /dev/temp.apk
takes a while..
and it will move everything !!
change
for apk in `ls /data/app/*apk`;do
to
for apk in `ls /data/app/*apk|egrep -v "app1|app2|app3"`;do
where app1,2 and 3 are the ones you wish to keep on internal
Click to expand...
Click to collapse
just to be clear i run this in terminal or adb correct? and do this AFTER i installed apps or before?
smuvman said:
just to be clear i run this in terminal or adb correct? and do this AFTER i installed apps or before?
Click to expand...
Click to collapse
after
it does take quite a long time,
but I guess its quicker/easier than going through the manage application settings bit.
smuvman said:
just to be clear i run this in terminal or adb correct? and do this AFTER i installed apps or before?
Click to expand...
Click to collapse
Now that I think about it. How DO we suppose to install the script? Is it an a2sd or userint.sh script, or an ADB/Terminal command?
Z҉A҉L҉G҉O̚̕̚ said:
Now that I think about it. How DO we suppose to install the script? Is it an a2sd or userint.sh script, or an ADB/Terminal command?
Click to expand...
Click to collapse
you can just
adb shell
then copy and paste that code block
or , save as text, put on sdcard
Code:
su
dos2unix /sdcard/thesrcipt.txt
sh /sdcard/thesrcipt.txt
Firerat said:
you can just
adb shell
then copy and paste that code block
or , save as text, put on sdcard
Code:
su
dos2unix /sdcard/thesrcipt.txt
sh /sdcard/thesrcipt.txt
Click to expand...
Click to collapse
Thank you. You brilliant, brilliant man .
YESS!
Z҉A҉L҉G҉O̚̕̚ said:
Now that I think about it. How DO we suppose to install the script? Is it an a2sd or userint.sh script, or an ADB/Terminal command?
Click to expand...
Click to collapse
and here i was wondering if you were gonna post some pic for me asking that. haha thanx alot firerat this was the one thing stopping me from using cm6 daily. last qeustion though, i have over 300 apps (i know useless) so just say i install half and i see mem space goes down then i use this code can i reboot then install the rest and use the code again?
method works
i tried it on a few apps just to test and it works. only prob is i get :failure container error on some apps. i think it may be because they are not froyo ready. have to leave but will post logcat when i get back. thanx again firerat

[SCRIPT][6/19/2011] Inspirefy 1.1 for CM7 nightly - Delete stuff & Replace stuff

Hello, I wrote this shell script to make the CM7 nightly the way I like. It was a pain to do it manually every time I would flash a new nightly.
NOOB WARNING:
THIS SCRIPT IS FOR CM7 NIGHTLY ONLY. IT MAY WORK FOR OTHER CM7 BASED ROM BUT USE IT AT YOUR OWN RISK. IT DELETE SOME FILES ON THE /SYSTEM/APP AND MODIFY YOUR BUILD.PROP FILE. I'M NOT RESPONSIBLE IF YOU DESTROY YOUR PHONE NOR IF YOUR PET DIES AND THINGS LIKE THAT.​​
This script do this:
1) delete some APKs from /system/app that I don't need
/system/app/Camera.apk - replaced by Miui camera
/system/app/Calculator.apk - I use RealCalc
/system/app/FileManager.apk - I use Root Explorer
/system/app/Music.apk - I use the new Music App
/system/app/BooksPhone.apk - I don't use this
/system/app/Protips.apk - Useless
Click to expand...
Click to collapse
2) replace the boot animation with a sharper and bigger version (file size is bigger too)
The original boot animation size is too small for our screen. Some people could car less for this as you don't reboot your phone that often.
Original boot image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New boot image:
Click to expand...
Click to collapse
3) replace the default camera for a Miui camera
We all know the AOSP camera sucks...
Click to expand...
Click to collapse
4) backup and edit build.prop to display "Inspire 4G" as device name
Some people asked how it affect the market and so far so good for me.
I have no idea if automatic backup/restore from Google is working or not. I use Titanium Backup to restore my apps before I login with my Google account.
Click to expand...
Click to collapse
Things you will need:
1) Scripting Layer for Android (SL4A)
Free app. We will use this to run the script.
Click to expand...
Click to collapse
2) Script and other files - RAR version inspirefy_files_v1.1.rar or ZIP version: inspirefy_files_v1.1.zip
All the files needed for the magic to happen...
VERSION 1.1 UPDATE: If you already have the version 1.0 on your phone you can download the attached zip file from this post to update the script to version 1.1 - Just extract the zip file to /sdcard/inspirefy/ and replace the old 'inspirefy.sh' script.
Click to expand...
Click to collapse
How to install & use it:
1) Extract the inspirefy_files.rar (or inspirefy_files.zip) to the root of your sdcard (/sdcard).
You will have 2 new folders (or just 1 new folder is SL4A was already installed): /sdcard/inspirefy and /sdcard/sl4a
2) Install the sl4a on your phone and run it.
2a) Select "run-inspirefy.sh" from the main screen. If it's your first time running the script you must confirm the super user request.
3) After the script is done (about 2s) you can close SL4A and reboot your phone.
Done
You can edit the file /sdcard/inspirefy/inspirefy.sh with your preferred text editor to make any changes you would like, maybe you want to keep the Tips widget
Have fun!
Thanks to dog77k for the feedback and suggestions and everybody who is using this script.
Good stuff LGSilva. Will let you know how things go after I find a free method to extract the rar (don't use root explorer) or when I get to my desk...
Very cool and glad to see this. Nice job
Sent from my Desire HD using XDA Premium App
Just added a ZIP version for the necessary files in case you want to do this on your phone.
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
poetofsound said:
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
Click to expand...
Click to collapse
When you ran the script did you get the terminal window output with something like this?
Code:
Inspirefy 1.0 by LGSilva
Remounting system partition rw...
Deleting apk files and boot animation...
Copying new boot animation and camera...
Setting permitions and ownership...
Backuping build.prop and changing device name...
Remounting system partition as ro...
DONE
.
The text is tiny but you can read it. Is there any error message on the terminal window?
Check the superuser app, sometimes it will have the SL4A marked to deny root...
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
LGSilva said:
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
Click to expand...
Click to collapse
They (nightly forum) are saying that the SU app is jacked on 103...
Nightly build #103 have a problem with Superuser not working right therefor my script won't work either.
To fix this download the Superuser from Rom Manager > Extras, reboot in recovery and install it.
dog77k said:
They (nightly forum) are saying that the SU app is jacked on 103...
Click to expand...
Click to collapse
Yep, you beat me to that, I blame the internet
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
I was having problems with SU thats why lol I'll fix it and try this again and update when I'm done
dog77k said:
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
Click to expand...
Click to collapse
Thank you dog77k for the suggestions.
I've updated the script with them and also added a 2sec pause after mounting it as RW just in case...
Files with version 1.1 updated on the first post, no need to reinstall SL4A.
tested and seemed to run just fine on build 104. thanks for the awesome script! very cool
Thank you!
+1 to both of you, thanks for the great scripting solution.

{TUToRIAL]HOW TO DEODEX I9001 FOR NOoBS

HOW TO DEODEX YOUR I9001
THIS IS A SIMPLE GUIDE FOR THE NOOBS SO THAT THEY CAN DEODEX THERE I9001
What you'll need:
A Windows based machine
JDK
ANDROID SDK
LATEST XULTIMATE
And A Rooted I9001
Process:
1. Unzip xUltimate v2.2, and launch "Main.exe"
2. If everything goes well xUltIMATE should recognize the phone and make a connection. You now should see a list of options.
3. Run option 1. After option 1 is done, run option 2.
4. Now these well take a while. Run option 3.
5. IMPORTANT: After you have run option 3
6. Now run option 4, and wait.
7. Exit xUltimate, and put the phone in USB mass storage.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the internal sdcard not in the external sd.
9. Now Put the phone in USB DEBUGGING mode and DON'T PUT THE PHONE IN MASS STORAGE MODE
10. Open a command prompt, and do the following:
Code:
$ su
# stop
# mount -o remount rw /system
# rm /system/app/*.odex
# rm /system/framework/*.odex
# cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
# mount -o remount ro /system
# reboot
Credits to -
Xeodoxus for xultimate
Ghostlypickel for this guide
DO THIS AT YOUR OWN RISK
IF YOU LYK MY POST THEN PLEASE PRESS THE THANKS BUTTON
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
RESERVED...
RESERVED..........
For Android 2.3.x using this command
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
Maybe a stupid question but what are the benefits when I'm deodex my i9001?
Sent from my GT-I9001 using XDA App
oudbrood said:
Maybe a stupid question but what are the benefits when I'm deodex my i9001?
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
it is easier to make themes/mods for deodexed firmware
@ oudbrood
and you will got more space in system
Thanks for the reply's.
I get smarter every day
Sent from my GT-I9001 using XDA App
Not understand something here...does the phone always on usb? No plug in n plug out usb? The commant have to type where? Pc? Like this...start-run-cmd-enter?
GT-I9001 Adrenaline Shot - powered by Instanet free edition
Lol, thread looks familiar
kkrraazzyy said:
3. Run option 1. After option 1 is done, run option 2.
4. Now these well take a while. Run option 3.
5. IMPORTANT: After you have run option 3
6. Now run option 4, and wait.
Click to expand...
Click to collapse
Can be done in one step (option 5 - Pull and Deodex all).
Note that deodexing (steps 3 and 4) sometimes returns errors. Just repeat the procedure and it will work a second (or third) time...
kkrraazzyy said:
10. Open a command prompt, and do the following:
Click to expand...
Click to collapse
You can also make a batch file to move files from the xUltimate folder onto your device (put this patch-file into the xUltimate folder - this will not use the sdcard and push the files directly onto the device!). Something like this:
Code:
@echo off
jar\adb -d remount
jar\adb -d push done_app /system/app
jar\adb -d push done_frame /system/framework
echo all ok? going to remove *.odex files...press a key to continue...
pause >nul
jar\adb -d shell rm /system/app/*.odex
jar\adb -d shell rm /system/framework/*.odex
jar\adb -d remount
echo rebooting...press a key to continue...
pause >nul
jar\adb -d reboot
pause
---------- Post added at 08:31 AM ---------- Previous post was at 08:29 AM ----------
pyronia said:
Not understand something here...does the phone always on usb? No plug in n plug out usb? The commant have to type where? Pc? Like this...start-run-cmd-enter?
Click to expand...
Click to collapse
Yes, running Main.exe and deodexing requires the device to be plugged into USB. Using ADB also uses USB, although you can do it from your device too with shell tools. And if you want an automated DOS script for moving the files using ADB, see above
---------- Post added at 08:42 AM ---------- Previous post was at 08:31 AM ----------
One more thing: you need BusyBox too:
https://market.android.com/details?id=stericson.busybox
do i have to flash again tweak like adrenaline shot after deodexing???
pyronia said:
do i have to flash again tweak like adrenaline shot after deodexing???
Click to expand...
Click to collapse
No, it does not touch any of those (Adrenaline, Root, CWM, etc.)
Hahaha...i just back from bootloop....i think it will not workout for me...
GT-I9001 Adrenaline Shot - powered by Instanet free edition
pyronia said:
Hahaha...i just back from bootloop....i think it will not workout for me...
GT-I9001 Adrenaline Shot - powered by Instanet free edition
Click to expand...
Click to collapse
Lol, glad you're still laughing so how did you do it? On which base-ROM? I've done it several times and never had any issues...
nikagl said:
Lol, glad you're still laughing so how did you do it? On which base-ROM? I've done it several times and never had any issues...
Click to expand...
Click to collapse
ZSKP6...it stuck when i try to use terminal modulator...all apps fc then bam!!! Mr. Bootloop came out after remove battery....
GT-I9001 Adrenaline Shot - powered by Instanet free edition
So...using shell other than adb doesn't work tx 4 testing )
Sent from my GT-I9001 using XDA App
It doesn't work with the shell on your mobile since when u type "stop" it totally freezes.. ADB SHELL IS REQUIRED. the poster might want to say that since this is just a 100% copy of the deodex I9003 tutorial
when i tried it my phone got in a bootloop tho.. but I will try later again
I used ADB and it works. No bootloop or errors
to deodex always use ADB
and be sure that you have busybox installed on your device
otherwise the commands cant be executed
Guys, what am I doing wrong?
- Rooted XXKPS
- Ran main.exe ok with all steps.
- All okay until "(busybox) cp /sdcard/done_app/* /system/app/"
It can't find my sdcard.. I'm sure I have the files placed in the root of the internal sdcard.

[SOLVED] Root issue & Ardatdat's Kernel screen freeze issue (with some)

So i was updating my CWM version and suddenly in the midway my laptop went beserk.
I had to re-flash my phone..and then the CWM (now back to the old version)
But this strange thing happened.
I used to root my device with a particular zip that always worked.
This time it failed.
I downloaded SuperSU v0.99 and the installation was aborted as no files were found by CWM.
So i downloaded the SU binaries and flashed them. The root checker app said:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then i tried installing SuperSU by chainfire and this popped up.
Then
What should i do now. Unrooted my phone now using a zip given in some previous thread
How to root my phone now.
Tried the steps given in our buddy Mj.Vikrams thread, but to gains. Ugh.
Help!
[EDIT] Solution to the ardatdat's screen freeze problem occurring with few.
Pre-requisite
a) CWM
b) Ardatdat's kernel v4.2 beta 6
c) Updated Su BInaries flashable zip.
Procedure
1. Install CWM.
2. Boot into CWM (recovery) and Flash Ardatdat's kernel v4.2 beta6
3. Wipe cache and Dalvik's cache
4. Power off phone
5. Turn off phone after 5 minutes, let the android upgrade.
6. Turn off phone again and boot into recovery again.
7. Flash updated su binaries zip
8. Wipe Cache
9. Turn on phone and face no screen freeze issues.! :victory:
Sent from my GT-I9103 using xda premium
What I did was to flash ardatdat's kernel 4.2-beta6. It's pre-rooted
Re: Root issue.
kaustubhkul said:
What I did was to flash ardatdat's kernel 4.2-beta6. It's pre-rooted
Click to expand...
Click to collapse
Yeah..but the ardatdats kernel has some problem with the superuser.
It makes my screen go blank and then i have to remove the battery and restart it.
I used to do the same.
But a possible solution was rooting the phone first and then installing ardatdats kernel.
My phone isnt getting rooted!
Sent from my GT-I9103 using xda premium
First try to install BusyBox and update it and try if its not working then go with the below method...
1. Format system.
2. Flash Stock ICS.
3. Follow the thread Rotting ICS.
please tell us if it worked or not......
Re: Root issue.
My phone is not rooted. So i think busy box wont work.
Ill wipe data and reflash stock ics.again.
Sent from my GT-I9103 using xda premium
DeepankarS said:
My phone is not rooted. So i think busy box wont work.
Ill wipe data and reflash stock ics.again.
Click to expand...
Click to collapse
try busy box it may work....
mj.vikram said:
try busy box it may work....
Click to expand...
Click to collapse
What does busybox do!
I couldnt understand yet.
DeepankarS said:
What does busybox do!
I couldnt understand yet.
Click to expand...
Click to collapse
Busy Box is something that you install on your phone to give you some additional handy LINUX / UNIX based commands. You need Busy Box installed because some commands are not available to you and you made need them for some root level tasks.
Tried flashing the latest version of SuperSU through CWM??
Re: Root issue.
sudhindrakv said:
Tried flashing the latest version of SuperSU through CWM??
Click to expand...
Click to collapse
SuperSU v0.99 isnt installig via CWM.
It is in their thread that some phones might not be able to flash SuperSU via cwm.
So what is the other way round??
Sent from my GT-I9103 using xda app-developers app
Re: Root issue.
DeepankarS said:
SuperSU v0.99 isnt installig via CWM.
It is in their thread that some phones might not be able to flash SuperSU via cwm.
So what is the other way round??
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Buddy, i think in a rom supersu.apk was su. Donno know which rom was having it. Also, if anyone can provide that supersu.apk..
Sent from my GT-I9103 using Tapatalk HD
Re: Root issue.
kataria.vikesh said:
Buddy, i think in a rom supersu.apk was su. Donno know which rom was having it. Also, if anyone can provide that supersu.apk..
Sent from my GT-I9103 using Tapatalk HD
Click to expand...
Click to collapse
It was new angeeks rom buddy
Sent from my GT-I9103 using xda app-developers app
Re: Root issue.
DeepankarS said:
It was new angeeks rom buddy
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Extract it and then try it in urs..
Sent from my GT-I9103 using Tapatalk HD
Re: Root issue.
My exact problem is with the ardatdat's kernel causing screen freeze issues.
So i wanted to root my phone first and then install the kernel. So that the kernel will not install its own.superuser.
Any way out??
Sent from my GT-I9103 using xda app-developers app
DeepankarS said:
My exact problem is with the ardatdat's kernel causing screen freeze issues.
So i wanted to root my phone first and then install the kernel. So that the kernel will not install its own.superuser.
Any way out??
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Try Angeeks ROM V1, i din hv any issues wit ardatdat's kernel v4.1 in it..
DeepankarS said:
My exact problem is with the ardatdat's kernel causing screen freeze issues.
So i wanted to root my phone first and then install the kernel. So that the kernel will not install its own.superuser.
Any way out??
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
It will not root the device if it is already rooted. It checks for the 'su' binary in '/system/bin/' and '/system/xbin/' first.
Code:
#!/sbin/busybox sh
##### Install SU #####
if [ -f /system/bin/su ] ;
then
echo "su already exists in /system/bin/ :)"
else
if [ -f /system/xbin/su ] ;
then
echo "su already exists in /system/xbin/ :)"
else
mount -o remount,rw /system
rm /system/app/SecretWallpaper1.apk
rm /system/app/SecretWallpaper1.odex
rm /system/app/SecretWallpaper2.apk
rm /system/app/SecretWallpaper2.odex
rm /system/app/YouTube.apk
rm /system/bin/su
rm /system/xbin/su
rm /system/app/Superuser.apk
rm /data/app/Superuser.apk
mkdir /system/xbin
cat /sbin/xiaolu/files/su > /system/bin/su
ls > /system/etc/init.lstest.txt
cat /sbin/xiaolu/files/Superuser.apk > /system/app/Superuser.apk
chown 0.0 /system/bin/su
chmod 6755 /system/bin/su
chown 0.0 /system/app/Superuser.apk
chmod 644 /system/app/Superuser.apk
ln -s /system/bin/su /system/xbin/su
mount -o remount,ro /system
fi
fi
##### Install SU OK #####
Re: Root issue.
Yes i know that sir.
But,
My phone isnt getting rooted :'(
Installation goes successful.
But then no superuser is found neither does the root checker app say that my phone has not got proper root access.
Sent from my GT-I9103 using xda app-developers app
Re: Root issue.
sudhindrakv said:
Try Angeeks ROM V1, i din hv any issues wit ardatdat's kernel v4.1 in it..
Click to expand...
Click to collapse
That is because it is already rooted and ardatdats kernal does not apply its root on a rooted phone.
See post by Adam Sir here.
So...that is why...
I want to stay on the Stock ICS with ardatdats kernel to try something...
It has a problem in here.
Sent from my GT-I9103 using xda app-developers app
DeepankarS said:
That is because it is already rooted and ardatdats kernal does not apply its root on a rooted phone.
See post by Adam Sir here.
So...that is why...
I want to stay on the Stock ICS with ardatdats kernel to try something...
It has a problem in here.
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Buddy, Be specific. You want Root with ardatdat's kernel & not ardatdat's SU..right..???
so, update su binaries using busybox & revert.
kataria.vikesh said:
Buddy, Be specific. You want Root with ardatdat's kernel & not ardatdat's SU..right..???
so, update su binaries using busybox & revert.
Click to expand...
Click to collapse
You can't update 'su' binaries with busybox. su binaries are a part of the superuser package. Busybox is used to install, update and symlink busybox applets like cp, mkdir, cat, rm, ls etc. Busybox depends on su binaries not the other way round buddy.

Categories

Resources