Need Settings.apk and Settings.odex - EVO 4G Q&A, Help & Troubleshooting

I did a search on the forums and google and can't find a solution. While removing bloat ware on my phone I some how removed my settings apk and odex.
I'm not sure how or why I did this but I think it was because I was using the "up" button in the cmd prompt so I wouldn't have to retype file names when changing apk to odex and some how or another deleted Settings.apk/odex on some fluke (a copy and paste of the commands I typed in below).
Does anyone know where I can get these two files back (Settings.apk and Settings.odex), and what the commands are to put them back in the proper directory.
Thank you for any help.
Code:
/system/app # rm Sprint_NASCAR.apk
rm Sprint_NASCAR.apk
/system/app # rm Sprint_NFL.apk
rm Sprint_NFL.apk
/system/app # rm Settings.odex
rm Settings.odex
/system/app # rm Settings.apk
rm Settings.apk
/system/app # rm com.htc.StockWidget.odex
rm com.htc.StockWidget.odex
/system/app # rm com.htc.StockWidget.apk
rm com.htc.StockWidget.apk
edit: did a advanced nanroid restore of my system and all is good. sorry for the obvious problem and fix, I am a bit new.

Related

[THEME] NEW Hero skinning and theme AND Hero Cleanup

There was an older thread started by johnnylicious and I am going to be starting a new one that has the new files to skin/theme the lockscreen, phone, htccontacts, and Rosie. for the lockscreen the credits go to goldenarmz.
He created the batch file, I just edited the apk and the png files in there to make it work on the new roms.
BEFORE GOING ANY FARTHER, YOU NEED ADB OR YOU NEED TO KNOW HOW TO DROP INTO RECOVERY CONSOLE OR RUN COMMANDS IN TERMINAL. If you do not have it, stop, go to the stickies, get it going and then come back here. do not junk this up with questions that you can search for.
"what is adb" - part of the SDK. it is a huge help, check out the stickies to get it.
"how do i get adb" - go to the stickies
"can i run this without root" - no
"can i run this on cyanogen" - no, this is for hero roms
"will you make this for non-rooted phones" - no, not possible.
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
-INSTALL INSTRUCTIONS-
Transparent Rosie.apk with wallpapers
adb remount
adb shell rm -r /system/sd/app_s/Rosie.apk
adb push directory\Rosie.apk /system/sd/app_s/
Click to expand...
Click to collapse
Ophone Dialer.apk
adb remount
adb push directory\Phone.apk /system/sd/app_s/
Click to expand...
Click to collapse
HtcContacts.apk
adb remount
adb push directory\HtcContacts.apk /system/sd/app_s/
Click to expand...
Click to collapse
ANOTHER OPTION FOR OPHONE DIALER AND HTCCONTACTS
Launcher Themed to look like Hero
adb remount
adb push directory\Launcher.apk /system/sd/app_s/
Click to expand...
Click to collapse
you can either adb shell reboot after each file is pushed or you can wait after all three are pushed to shell reboot
adb shell reboot
Click to expand...
Click to collapse
transparent lockscreen
for the lockscreen- unzip and run the .bat file, follow the instructions.
-FOR THOSE NOT USING ADB FOLLOW THESE INSTRUCTIONS-
COURTESY OF NOLIMIT78​CHOOSE WHICH OPTION YOU ARE DOING, EITHER TERMINAL OR RECOVERY CONSOLE, AND THEN FOLLOW THE INSTRUCTIONS "FOR BOTH"​
This is to move the Rosie.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
This is for both
Code:
rm -r /system/sd/app_s/Rosie.apk #cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
This is to move the Phone.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
This is for both
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
This is to move the HtcContact.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
This is for both.
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
This is for Hero CleanUp
This is for terminal
Code:
su
This is for console
Code:
mount /system/sd
This is for both
Code:
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
DISCLAIMER- I take no responsibility for what happens to your phone, as the screenshots show, it works for me but that does not mean it will work for you. I will be glad to help if you run into problems.
These files have been tested are on working on the newest jacxhero builds from 1.8 on up so far. they should work on most of the other roms as well since they are all using jacxski newest kernel. enjoy.
credits to go goldenarmz for the lockscreen .bat file. if you seek credits just ask, i will be glad to give credit where necessary
-Clean up Hero-
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
Since I started running hero roms, i have come to realize that most of the stuff is junk and is not needed. Thus, I have removed many widgets, and many extra .apks that i do not use such as quickoffice, pdfviewer, java, flash, photo album widget, weather widget, music widget, contacts widget, messages widget, mail widgets. I am going to post the commands you can run in ADB to remove these items and speed up hero a little bit. rather than just do a .bat file, i will post them here so the n00bs can just copy and paste into ADB.
TO COPY AND PASTE INTO ADB, HIGHLIGHT THE LINE OF THE ITEM YOU WANT TO REMOVE, PRESS CTRL+C, GO TO THE CMD WINDOW RUNNING ADB AND CLICK IN THE WINDOW AND NOW PRESS ALT+SPACE ADN NOW "E" "P" (WITHOUT THE QUOTES) AND THE LINE SHOULD PASTE OVER. NOW PRESS ENTER AND IT SHOULD RUN.
COMMANDS TO REMOVE FILES
THESE COMMANDS ARE CASE SENSITIVE
adb remount
adb shell rm -r /system/sd/app_s/BizCardReader.apk
adb shell rm -r /system/sd/app_s/com.htc.MusicWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
adb shell rm -r /system/sd/app_s/FlashPlayer.apk
adb shell rm -r /system/sd/app_s/HtcClockWidget.apk
adb shell rm -r /system/sd/app_s/htccontactwidgets.apk
adb shell rm -r /system/sd/app_s/htcmailwidgets.apk
adb shell rm -r /system/sd/app_s/htcmsgwidgets.apk
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apk
adb shell rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
adb shell rm -r /system/sd/app_s/Jbed.apk
adb shell rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
adb shell rm -r /system/sd/app_s/PDFViewer.apk
adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
When removing widgets and some applications, the screen may flash and do the loading screen, this is normal.
Hope this helps you guys running hero roms get things going a little speedier, once again any questions, just let me know, I am working on removing other things here and there to pick up speed, if I find things that can be removed I will post them here.
here is a video of my g1 running my phone as is with all these edits
Console/terminal?
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
akycia said:
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Click to expand...
Click to collapse
I'm at work right now, I will post terminal commands when I get home.
Docavelli said:
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
Click to expand...
Click to collapse
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
palosjr said:
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
Click to expand...
Click to collapse
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
thanks for butting in. im home now. about to to add rosie and lock screen. i love the transparent look.
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
palosjr said:
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
Click to expand...
Click to collapse
What a difficult question! Because cupcake wants to be hero.. but since we're on hero.. hmmmmmm
..for the lockscreen the credits go to goldenarmz.
Click to expand...
Click to collapse
well sir, thats just me not reading! lol
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
Did you get this to work on jacxheroski 2.1??
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
As far as I know it should work. The thing that was keeping these mods from working before was the kernel changes. I am going to keep up with these and when the kernels change i will edit the files accordingly. If you want to be safe, just do this
adb remount
adb pull /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
This will pull your stock lockscreen, now run the .bat file and let your phone reboot. If it reboots and you cant get past the htc screen do this
adb remount
Adb push (the com.htc.resources.apk file you pulled\com.htc.resources /system/sd/app_s/
Click to expand...
Click to collapse
This will get you back to where you were before. Hope this helps, but like i said it should work just fine.
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
palosjr said:
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
Click to expand...
Click to collapse
nope it's the MoDaCo 1.5.1 but Drizzy's 1.4
harpreet1988 said:
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
Click to expand...
Click to collapse
try this file for phone.apk ... i took the Phone.apk directly from that build and edited it. If it works i will do the HtcContacts.apk as well. follow same instructions as in the OP
1.5.1 Phone.apk
before pushing, rename the file to Phone.apk
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
palosjr said:
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
Click to expand...
Click to collapse
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
bigchi2000 said:
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Click to expand...
Click to collapse
dont zip the files to the sdcard, just zip them to the directory you downloaded them from, and then run the .bat, i think maybe when you put it on your sd it isnt finding the new files. also, if you push everything and then pull the lockscreen, there arent going to be any new images there because you pulled them off the phone.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
Click to expand...
Click to collapse
whats going on bro, yea its nice to be able to know enough to give back now

Now that we have root access...

Hello,
Now that we have root access it is possible to remove preinstalled apps like :
- Peep
- Stock
- Stock Widget
- Quick Office
- PDF Reader
- etc.
And how it is possible to do this?
Thanks a lot for the futur answers and have a nice day with your rooted HTC Desire!!!
http://forum.xda-developers.com/showthread.php?t=672352
This ROM has those applications removed. If you want to remove them yourself, you can just try mv'ing the APKs out of the way and see if the phone detects them, but I haven't tried this so advice is issued without warranty. If the apps are in /system you'll need to use the recovery + adb shell mount /system to modify it (try in the OS and the phone will just reboot), if they're not in /system or any other protected dirs, you should just be able to mv them straight.
I haven't rooted my phone yet, but I will later on so this is just ideas at this point.
Thanks for the ROM but I want to customize my phone myself^^
Is there a step by step guide that explain what you say because I'm just starting with android.
Thanks for the answer
Sebacestmoi said:
Is there a step by step guide that explain what you say because I'm just starting with android.
Click to expand...
Click to collapse
+1 on that!
I moved to Desire from a Touch HD, and while I never got into ROM cooking for WinMo, I wouldn't mind dabbling a bit with Android, mostly to remove some of the bloatware that comes with the stock ROM. Trouble is... I have no idea where/how to start Such a 'beginner's guide' would be great to get hold of, if anything exists!
EDIT - found these guides here on XDA:
http://forum.xda-developers.com/showthread.php?t=532719 - ADB, Fastboot and Nandroid for Noobs
http://forum.xda-developers.com/showthread.php?t=502010 - ADB for dummies
(I would have expected to see these in the Android section, not in a device-specific forum; oh well... )
And if we delete the .apk and .odex in the "system/app" folder from the "rootedupdate.zip" that Paul from MoDaCo has given to us before flashing?
Does the ROM will flash and work correctly but without these annoying apps?
Sebacestmoi said:
And if we delete the .apk and .odex in the "system/app" folder from the "rootedupdate.zip" that Paul from MoDaCo has given to us before flashing?
Does the ROM will flash and work correctly but without these annoying apps?
Click to expand...
Click to collapse
Try and find out
Personally I would just delete (rename) the odex + apks from your current installation by rebooting into recovering and using a variation of these commands:
Code:
adb shell
At your PC to get a root shell. Then
Code:
cd /system/app/
Code:
mv theapp.apk theapp.bye.apk
Code:
ls
You will need to use a variation of the above commands, "ls" is list files in this directory, "cd" is change directory, and "mv" is rename file.
All the .apk are readonly so I can't uninstall or rename them...
Waht can I do?
The phone has to be in recovery mode in order to get write permissions to the /system partition.
Pretty obvious, I know, but I missed this and I kept banging my head against the keyboard when getting 'read-only' errors (with the phone in USB Disk Drive + debugging)
So I turn on my phone with the "Sound Down" button and I go on the Recovery screen (with red triangle).
Then I connect my HTC Desire to my computer.
But after that I can't go to system partition...
What command are you writing in the shell to load the system partition and do some stuff on it?
I'm sorry I'm very good with Windows but I'm a total noob wit Linux
I have tried the adb shell command (don't know if it's useful for me...) and the computer return me :
- exec '/system/bin/sh' failed: No such file or directory (2) -
and adb remount return me :
remount failed: Invalid argument
Wait... you tried adb with the phone still showing the red triangle?
First you need to bring it to recovery (the screen with green text).
This is how I do it:
- boot off the .iso provided for rooting
- mount the cdrom as described in the guide, but skip ./step1.sh
- put phone in HBOOT (to get the screen with the red triangle) then connect it to the machine
- run 'sudo ./step2.sh' which will push the files needed for recovery to the device - then you'll get the green screen, just like when you flashed the ROM
- then, on the computer:
'sudo ./adb shell' - brings you to the shell prompt of adb
'mount /system' - mounts the protected partition, but you have write permissions
'cd /system/app/' and then delete whatever I want
when done, 'cd /' and 'umount /system' and 'exit'
Clear the cache so that you won't get dead links in the menus later...
Perfect thanks, I had it in recovery mode, but it couldn't locate the app folder under /system/
but after the mount /system it appeared
Tahnk you a hundred times cezarL.
Now I have cleaned my phone from everything I don't need.
For those who are interested by my work I've done the following commands from the recovery screen :
cd C:\AndroidSDK\tools
adb shell
mount /system
cd /system/app/
rm com.htc.NewsReaderWidget.apk
rm com.htc.NewsReaderWidget.odex
rm com.htc.StockWidget.apk
rm com.htc.StockWidget.odex
rm com.htc.TwitterWidget.apk
rm com.htc.TwitterWidget.odex
rm Facebook.apk
rm Facebook.odex
rm Flickr.apk
rm Flickr.odex
rm HtcFMRadio.apk
rm HtcFMRadio.odex
rm HtcFootprints.apk
rm HtcFootprints.odex
rm HtcFootprintsWidget.apk
rm HtcFootprintsWidget.odex
rm HtcRingtoneTrimmer.apk
rm HtcRingtoneTrimmer.odex
rm htcsearchwidgets.apk
rm htcsearchwidgets.odex
rm HtcSoundRecorder.apk
rm HtcSoundRecorder.odex
rm HtcSyncwidget.apk
rm HtcSyncwidget.odex
rm HtcTwitter.apk
rm HtcTwitter.odex
rm MagicSmokeWallpapers.apk
rm MagicSmokeWallpapers.odex
rm Mode10Wallpapers.apk
rm Mode10Wallpapers.odex
rm NewsReader.apk
rm NewsReader.odex
rm PDFViewer.apk
rm PDFViewer.odex
rm PicoTts.apk
rm PicoTts.odex
rm Quickoffice.apk
rm Quickoffice.odex
rm RSS.apk
rm RSS.odex
rm Stk.apk
rm Stk.odex
rm Stock.apk
rm Stock.odex
rm VpnServices.apk
rm VpnServices.odex
rm WidgetDownloadManager.apk
rm WidgetDownloadManager.odex
cd /
umount /system
exit
Then a reboot with a Clear Storage and every app listed above are gone an there is no bug at all with the phone.

[Toturial][Windows] How Editing The ODEX framework files? [Simplified]

Hi, This is a simple tutorial for someone that wants to working on ODEX structure.
All needed files are attached, you don't need to download anything files.
Extract the Amestris_ODEX.zip file, your working folder will be this one.
I'm creating the simple example here.
for example i want to edit the services.jar file on ODEX structure.
We need to work on DEODEX version at first.
You can Deodex your files from here:
The Best solution is here , Android Kitchen by dsixda user.
[KITCHEN] Android Kitchen, v0.192 [Linux / Mac / Windows]
Click to expand...
Click to collapse
Your Phone needs to be rooted and Busybox get installed.
the sample file is services.jar,also you can do it for any odex file.
1- Do all your editing and working on your deodex version.
2- Create this folders on your sd-card partition.
Code:
amestris_mod
amestris_original
3- Copy your modded file [your deodexed and edited services.jar] into amestris_mod folder.
4- Copy original jar file into amestris_original folder. [original odex services.jar]
5-Copy dexopt-wrapper into /system/bin folder and give full permission to that. [the simple way is root explorer ]
through the adb command:
Run the Amestris.bat file.
Code:
adb remount
adb push dexopt-wrapper /system/bin/dexopt-wrapper
adb shell chown 777 /system/bin/dexopt-wrapper
adb shell chmod 777 /system/bin/dexopt-wrapper
6-run this adb commands.
Code:
adb shell
cp /sdcard/amestris_mod/services.jar /system/framework/services.jar
dexopt-wrapper /system/framework/services.jar /system/framework/new_services.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
cp -f /sdcard/amestris_original/services.jar /system/framework
chmod 777 /system/framework/services.odex
chmod 777 /system/framework/services.jar
chmod 777 /system/framework/new_services.odex
busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
cp /system/framework/new_services.odex /system/framework/services.odex
chmod 644 /system/framework/services.odex
chown root.root /system/framework/services.odex
rm /system/framework/new_services.odex
reboot
Credits:
M_J_Nazari
sicopat
jubeh
Decad3nce
software_samurai
Click to expand...
Click to collapse
Android.policy.jar
This is a Sample for android.policy.jar
Run Amestris.bat file and run this commands here
Code:
adb remount
adb shell
cp /sdcard/amestris_mod/android.policy.jar /system/framework/android.policy.jar
dexopt-wrapper /system/framework/android.policy.jar /system/framework/new_android.policy.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
cp -f /sdcard/amestris_original/android.policy.jar /system/framework
chmod 777 /system/framework/android.policy.odex
chmod 777 /system/framework/new_android.policy.odex
busybox dd if=/system/framework/android.policy.odex of=/system/framework/new_android.policy.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
cp /system/framework/new_android.policy.odex /system/framework/android.policy.odex
chmod 777 /system/framework/android.policy.odex
chown root.root /system/framework/android.policy.odex
rm /system/framework/new_android.policy.odex
reboot
This is a Sample for framework.jar
The framework.jar or frameowrk.odex file is very sensitive and vital file for android.
some changes of this file will turn your phone into force close messages.
but i create a sample for this file;
do it like below:
Run Amestris.bat file and type this commands.
Code:
adb remount
adb shell
cp /sdcard/amestris_mod/framework.jar /system/framework/framework.jar
dexopt-wrapper /system/framework/framework.jar /system/framework/new_framework.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
cp -f /sdcard/amestris_original/framework.jar /system/framework
chmod 777 /system/framework/framework.odex
chmod 777 /system/framework/framework.jar
chmod 777 /system/framework/new_framework.odex
busybox dd if=/system/framework/framework.odex of=/system/framework/new_framework.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
cp /system/framework/new_framework.odex /system/framework/framework.odex
chmod 777 /system/framework/framework.odex
chown root.root /system/framework/framework.odex
rm /system/framework/new_framework.odex
reboot
1: Q: When i use the cp command , the error shows with " cp: not found " message
A: try to use " busybox cp" instead the " cp " command.
Excellent explanation!!! Thank you very much.
Hey there, i saw this guide and really liked it, so I wrote about it on the XDA Portal
here's the link!
http://www.xda-developers.com/android/tutorial-simplifies-editing-odexed-framework-files/
i hope you enjoy the write up.
Thank you so much all you guys.
now lets see if i can use this to port SMemo to imilka's CM9 or AOSP
thnx.
You can do same on linux. Smali is cross platform. Just needs java. I added deoxt wrapper on my ROM's for who want to do it easily.
Sent from my GT-I9000 using Tapatalk 2 Beta-6
Great write up.
Does this method also remove the classes.dex file that is found in apks since it is now housed as a seperate .odex file?
myn said:
Great write up.
Does this method also remove the classes.dex file that is found in apks since it is now housed as a seperate .odex file?
Click to expand...
Click to collapse
This method doesn't remove anything. this is a method for replacing [editing] odex files.
if you want to convert the apk files to odex structure you need to check the Amestris Odexer Script v1.2.
Ops wrong thread, sry
If my ROM already have framework.odex does it mean that I only need to make the changes directly into the odex file and then recompile it?

[Tutorial] CM9/CM10/CM10.1 back up script

For you nightly flashers you may have noticed scripts in your system/addon.d folder. Called 50-cm.sh, 70-gapps.sh, and 71-gapps-faceunlock.sh. The gapps scripts are not part of CM but CM is able to utilize these scripts, found in most Gapps packages.
These scripts b/u your hosts, Gapps, and Faceunlock files/apps/libs so you don't have to reflash them with every nightly. If you happen to have other apps installed as system/apps that are NOT part of the CM9 zip, then you must either restore them after every flash, or reinstall. In my case there were libs that I had to copy back to system/lib after every flash.
Easy solution:
-copy 50-cm.sh
-rename to 91-cm.sh
-place file back into addon.d
-edit the following bolded/underlined/red text to your needs, the text below is merely the contents of the file you just copied, no need to copy/paste from here:
Code:
#!/sbin/sh
#
# /system/addon.d/[B][U][COLOR="Red"]50-cm.sh[/COLOR][/U][/B]
# During a CM9 upgrade, this script backs up /sy stem/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
[B][U][COLOR="Red"]etc/hosts[/COLOR][/U] [/B]
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT ; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLAC EMEN T"
[ -f "$C/$S/$FILE" ] && restore_file $ S/"$ FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
1. change 50-cm.sh to 91-cm.sh,
2. delete etc/hosts and:
3. Insert app/yourappname.apk (pay attention to actual file names),
4. Insert lib/yourappname.so (if applicable)
5. You can reference the 70-Gapps.sh script to get a feel for how to lay things out.
The script will only look in the /system partition so you only require the partial path: app, bin, lib, etc....
Thanks to: http://forum.xda-developers.com/showpost.php?p=24409231&postcount=2107 for the inspiration
...........
.........
The old removal format no longer worked. New example below:
Code:
#!/sbin/sh
#
# /system/addon.d/91-cm.sh
# During a CM10 upgrade, this script backs up /system/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
xbin/su
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
rm /system/app/MagicSmokeWallpapers.apk
rm /system/app/PhaseBeam.apk
rm /system/app/VisualizationWallpapers.apk
rm /system/app/HoloSpiralWallpaper.apk
rm /system/app/LiveWallpapersPicker.apk
rm /system/app/LiveWallpapers.apk
rm /system/app/CMFileManager.apk
rm /system/app/CMFileManagerThemes.apk
rm /system/app/CMWallpapers.apk
rm /system/app/VideoEditor.apk
rm /system/media/audio/ringtones/Acheron.ogg
rm /system/media/audio/ringtones/Andromeda.ogg
rm /system/media/audio/ringtones/Aquila.ogg
rm /system/media/audio/ringtones/ArgoNavis.ogg
rm /system/media/audio/ringtones/BentleyDubs.ogg
rm /system/media/audio/ringtones/Big_Easy.ogg
rm /system/media/audio/ringtones/BirdLoop.ogg
rm /system/media/audio/ringtones/Bollywood.ogg
rm /system/media/audio/ringtones/Bongo.ogg
rm /system/media/audio/ringtones/Bootes.ogg
rm /system/media/audio/ringtones/Boxbeat.ogg
rm /system/media/audio/ringtones/BussaMove.ogg
rm /system/media/audio/ringtones/Cairo.ogg
rm /system/media/audio/ringtones/Calypso_Steel.ogg
rm /system/media/audio/ringtones/CanisMajor.ogg
rm /system/media/audio/ringtones/CaribbeanIce.ogg
rm /system/media/audio/ringtones/Carina.ogg
rm /system/media/audio/ringtones/Cassiopeia.ogg
rm /system/media/audio/ringtones/Champagne_Edition.ogg
rm /system/media/audio/ringtones/Club_Cubano.ogg
rm /system/media/audio/ringtones/CrayonRock.ogg
rm /system/media/audio/ringtones/CrazyDream.ogg
rm /system/media/audio/ringtones/CurveBall.ogg
rm /system/media/audio/ringtones/CyanTone.ogg
rm /system/media/audio/ringtones/Cygnus.ogg
rm /system/media/audio/ringtones/DancinFool.ogg
rm /system/media/audio/ringtones/Ding.ogg
rm /system/media/audio/ringtones/DonMessWivIt.ogg
rm /system/media/audio/ringtones/Draco.ogg
rm /system/media/audio/ringtones/DreamTheme.ogg
rm /system/media/audio/ringtones/Eastern_Sky.ogg
rm /system/media/audio/ringtones/Enter_the_Nexus.ogg
rm /system/media/audio/ringtones/Eridani.ogg
rm /system/media/audio/ringtones/EtherShake.ogg
rm /system/media/audio/ringtones/FriendlyGhost.ogg
rm /system/media/audio/ringtones/Funk_Yall.ogg
rm /system/media/audio/ringtones/GameOverGuitar.ogg
rm /system/media/audio/ringtones/Gigolo.ogg
rm /system/media/audio/ringtones/Gimme_Mo_Town.ogg
rm /system/media/audio/ringtones/Girtab.ogg
rm /system/media/audio/ringtones/Glacial_Groove.ogg
rm /system/media/audio/ringtones/Growl.ogg
rm /system/media/audio/ringtones/HalfwayHome.ogg
rm /system/media/audio/ringtones/House_of_house.ogg
rm /system/media/audio/ringtones/InsertCoin.ogg
rm /system/media/audio/ringtones/Iridium.ogg
rm /system/media/audio/ringtones/LoopyLounge.ogg
rm /system/media/audio/ringtones/LoveFlute.ogg
rm /system/media/audio/ringtones/Lyra.ogg
rm /system/media/audio/ringtones/Machina.ogg
rm /system/media/audio/ringtones/MidEvilJaunt.ogg
rm /system/media/audio/ringtones/MildlyAlarming.ogg
rm /system/media/audio/ringtones/Nairobi.ogg
rm /system/media/audio/ringtones/Nasqueron.ogg
rm /system/media/audio/ringtones/Nassau.ogg
rm /system/media/audio/ringtones/NewPlayer.ogg
rm /system/media/audio/ringtones/Noises1.ogg
rm /system/media/audio/ringtones/Noises2.ogg
rm /system/media/audio/ringtones/Noises3.ogg
rm /system/media/audio/ringtones/No_Limits.ogg
rm /system/media/audio/ringtones/OrganDub.ogg
rm /system/media/audio/ringtones/Orion.ogg
rm /system/media/audio/ringtones/Paradise_Island.ogg
rm /system/media/audio/ringtones/Pegasus.ogg
rm /system/media/audio/ringtones/Perseus.ogg
rm /system/media/audio/ringtones/Playa.ogg
rm /system/media/audio/ringtones/Raindance.ogg
rm /system/media/audio/ringtones/Revelation.ogg
rm /system/media/audio/ringtones/Rigel.ogg
rm /system/media/audio/ringtones/Road_Trip.ogg
rm /system/media/audio/ringtones/RomancingTheTone.ogg
rm /system/media/audio/ringtones/Safari.ogg
rm /system/media/audio/ringtones/Savannah.ogg
rm /system/media/audio/ringtones/Scarabaeus.ogg
rm /system/media/audio/ringtones/Sceptrum.ogg
rm /system/media/audio/ringtones/Seville.ogg
rm /system/media/audio/ringtones/Shes_All_That.ogg
rm /system/media/audio/ringtones/SilkyWay.ogg
rm /system/media/audio/ringtones/Silmarillia.ogg
rm /system/media/audio/ringtones/SitarVsSitar.ogg
rm /system/media/audio/ringtones/Solarium.ogg
rm /system/media/audio/ringtones/SpringyJalopy.ogg
rm /system/media/audio/ringtones/Steppin_Out.ogg
rm /system/media/audio/ringtones/Terminated.ogg
rm /system/media/audio/ringtones/Testudo.ogg
rm /system/media/audio/ringtones/Themos.ogg
rm /system/media/audio/ringtones/Third_Eye.ogg
rm /system/media/audio/ringtones/Thunderfoot.ogg
rm /system/media/audio/ringtones/TwirlAway.ogg
rm /system/media/audio/ringtones/UrsaMinor.ogg
rm /system/media/audio/ringtones/VeryAlarmed.ogg
rm /system/media/audio/ringtones/World.ogg
rm /system/media/audio/ringtones/Whisperer.ogg
rm /system/media/audio/ringtones/WobblyRinger.ogg
rm /system/media/audio/notifications/Adara.ogg
rm /system/media/audio/notifications/Aldebaran.ogg
rm /system/media/audio/notifications/Altair.ogg
rm /system/media/audio/notifications/Antares.ogg
rm /system/media/audio/notifications/Antimony.ogg
rm /system/media/audio/notifications/Arcturus.ogg
rm /system/media/audio/notifications/Betelgeuse.ogg
rm /system/media/audio/notifications/BrassAndroid.ogg
rm /system/media/audio/notifications/Canopus.ogg
rm /system/media/audio/notifications/Capella.ogg
rm /system/media/audio/notifications/Castor.ogg
rm /system/media/audio/notifications/CetiAlpha.ogg
rm /system/media/audio/notifications/CyanMail.ogg
rm /system/media/audio/notifications/CyanMessage.ogg
rm /system/media/audio/notifications/CyanPing.ogg
rm /system/media/audio/notifications/DearDeer.ogg
rm /system/media/audio/notifications/Deneb.ogg
rm /system/media/audio/notifications/Doink.ogg
rm /system/media/audio/notifications/DontPanic.ogg
rm /system/media/audio/notifications/Electra.ogg
rm /system/media/audio/notifications/Fomalhaut.ogg
rm /system/media/audio/notifications/Highwire.ogg
rm /system/media/audio/notifications/Hojus.ogg
rm /system/media/audio/notifications/KzurbSonar.ogg
rm /system/media/audio/notifications/Lalande.ogg
rm /system/media/audio/notifications/Merope.ogg
rm /system/media/audio/notifications/Mira.ogg
rm /system/media/audio/notifications/Naughty.ogg
rm /system/media/audio/notifications/OnTheHunt.ogg
rm /system/media/audio/notifications/Polaris.ogg
rm /system/media/audio/notifications/Pollux.ogg
rm /system/media/audio/notifications/Pong.ogg
rm /system/media/audio/notifications/Procyon.ogg
rm /system/media/audio/notifications/Proxima.ogg
rm /system/media/audio/notifications/Radon.ogg
rm /system/media/audio/notifications/Rang.ogg
rm /system/media/audio/notifications/Regulus.ogg
rm /system/media/audio/notifications/Shaula.ogg
rm /system/media/audio/notifications/Sirius.ogg
rm /system/media/audio/notifications/Sirrah.ogg
rm /system/media/audio/notifications/Spica.ogg
rm /system/media/audio/notifications/Stone.ogg
rm /system/media/audio/notifications/Tejat.ogg
rm /system/media/audio/notifications/Upsilon.ogg
rm /system/media/audio/notifications/Vega.ogg
rm /system/media/audio/notifications/Voila.ogg
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
this is the best thanks so much
it seems like 91-cm.sh will only delete files in the "post-restore" section only if you have selected to back up at least one app in the "cat <<EOF" section first.
is there a way to modify the script for removing files only without having to back up at least one app first?
thanks
blowtorch said:
it seems like 91-cm.sh will only delete files in the "post-restore" section only if you have selected to back up at least one app in the "cat <<EOF" section first.
is there a way to modify the script for removing files only without having to back up at least one app first?
thanks
Click to expand...
Click to collapse
Not sure. I wonder if you put it under the pre-backup stub (?)
CMNein said:
Not sure. I wonder if you put it under the pre-backup stub (?)
Click to expand...
Click to collapse
I think the script ceases to continue to run if there is no file(s) listed in the EOF section?
I will play around with it some more using your suggestion when I get the chance and I'll post the results as well ...
I really don't have a need to backup anything prior to flashing a new nightly but, I really like removing the bloat which consists of basically the same files that you've listed. For now however I have moved Apex launcher into the system/app and am backing that up with this script in order to get the remove files function to work.
Or you could add it to the Gapps script. I prefer to run a separate one, but if you don't have any additional files you want to back up the existing one would work just fine.
you can use the script to only delete files without backup as well but, you need to have a entry under the "list_files cat EOF section". i put a fake entry in the EOF section "app/xxx.apk" and even though that xxx.apk doesn't exist the rest of the script functions and it deletes the files that i want after flashing a new nightly.
thanks for your help CMNein
this is the exact script that i use below with the official cm10 nightlys
Code:
#blowtorch custom post flash auto delete script
. /tmp/backuptool.functions
list_files() {
cat <<EOF
[COLOR="red"]app/xxx.apk[/COLOR]
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
[COLOR="Red"]rm system/app/MagicSmokeWallpapers.apk
rm system/app/PhaseBeam.apk
rm system/app/RomManager.apk
rm system/app/VisualizationWallpapers.apk
rm system/app/HoloSpiralWallpaper.apk
rm system/app/LiveWallpapers.apk
rm system/app/CMWallpapers.apk
rm system/app/LiveWallpapersPicker.apk
rm system/media/audio/ui/camera_click.ogg
rm system/media/audio/ui/camera_focus.ogg[/COLOR]
;;
esac
Thank you! I will use this for backup Cerberus and Avast Anti-thief!
Listed the contents of the system/audio/ringtone and notifications directories and concatenated them with the appropriate commands. I haven't added these to the removal part of my script yet, but will shortly, before tomorrow's flash if I'm not lazy.
I'll delete the ones I want to keep from the list, and likely add those ones to the back up part of the script as well.
Here is a complete list with the rm command + path for ringtones:
Code:
rm /system/media/audio/ringtones/Acheron.ogg
rm /system/media/audio/ringtones/Andromeda.ogg
rm /system/media/audio/ringtones/Aquila.ogg
rm /system/media/audio/ringtones/ArgoNavis.ogg
rm /system/media/audio/ringtones/BentleyDubs.ogg
rm /system/media/audio/ringtones/Big_Easy.ogg
rm /system/media/audio/ringtones/BirdLoop.ogg
rm /system/media/audio/ringtones/Bollywood.ogg
rm /system/media/audio/ringtones/Bongo.ogg
rm /system/media/audio/ringtones/Bootes.ogg
rm /system/media/audio/ringtones/Boxbeat.ogg
rm /system/media/audio/ringtones/BussaMove.ogg
rm /system/media/audio/ringtones/Cairo.ogg
rm /system/media/audio/ringtones/Calypso_Steel.ogg
rm /system/media/audio/ringtones/CanisMajor.ogg
rm /system/media/audio/ringtones/CaribbeanIce.ogg
rm /system/media/audio/ringtones/Carina.ogg
rm /system/media/audio/ringtones/Cassiopeia.ogg
rm /system/media/audio/ringtones/Centaurus.ogg
rm /system/media/audio/ringtones/Champagne_Edition.ogg
rm /system/media/audio/ringtones/Club_Cubano.ogg
rm /system/media/audio/ringtones/CrayonRock.ogg
rm /system/media/audio/ringtones/CrazyDream.ogg
rm /system/media/audio/ringtones/CurveBall.ogg
rm /system/media/audio/ringtones/CyanTone.ogg
rm /system/media/audio/ringtones/Cygnus.ogg
rm /system/media/audio/ringtones/DancinFool.ogg
rm /system/media/audio/ringtones/Ding.ogg
rm /system/media/audio/ringtones/DonMessWivIt.ogg
rm /system/media/audio/ringtones/Draco.ogg
rm /system/media/audio/ringtones/DreamTheme.ogg
rm /system/media/audio/ringtones/Eastern_Sky.ogg
rm /system/media/audio/ringtones/Enter_the_Nexus.ogg
rm /system/media/audio/ringtones/Eridani.ogg
rm /system/media/audio/ringtones/EtherShake.ogg
rm /system/media/audio/ringtones/FriendlyGhost.ogg
rm /system/media/audio/ringtones/Funk_Yall.ogg
rm /system/media/audio/ringtones/GameOverGuitar.ogg
rm /system/media/audio/ringtones/Gigolo.ogg
rm /system/media/audio/ringtones/Gimme_Mo_Town.ogg
rm /system/media/audio/ringtones/Girtab.ogg
rm /system/media/audio/ringtones/Glacial_Groove.ogg
rm /system/media/audio/ringtones/Growl.ogg
rm /system/media/audio/ringtones/HalfwayHome.ogg
rm /system/media/audio/ringtones/House_of_house.ogg
rm /system/media/audio/ringtones/Hydra.ogg
rm /system/media/audio/ringtones/InsertCoin.ogg
rm /system/media/audio/ringtones/Iridium.ogg
rm /system/media/audio/ringtones/LoopyLounge.ogg
rm /system/media/audio/ringtones/LoveFlute.ogg
rm /system/media/audio/ringtones/Lyra.ogg
rm /system/media/audio/ringtones/Machina.ogg
rm /system/media/audio/ringtones/MidEvilJaunt.ogg
rm /system/media/audio/ringtones/MildlyAlarming.ogg
rm /system/media/audio/ringtones/Nairobi.ogg
rm /system/media/audio/ringtones/Nasqueron.ogg
rm /system/media/audio/ringtones/Nassau.ogg
rm /system/media/audio/ringtones/NewPlayer.ogg
rm /system/media/audio/ringtones/Noises1.ogg
rm /system/media/audio/ringtones/Noises2.ogg
rm /system/media/audio/ringtones/Noises3.ogg
rm /system/media/audio/ringtones/No_Limits.ogg
rm /system/media/audio/ringtones/OrganDub.ogg
rm /system/media/audio/ringtones/Orion.ogg
rm /system/media/audio/ringtones/Paradise_Island.ogg
rm /system/media/audio/ringtones/Pegasus.ogg
rm /system/media/audio/ringtones/Perseus.ogg
rm /system/media/audio/ringtones/Playa.ogg
rm /system/media/audio/ringtones/Pyxis.ogg
rm /system/media/audio/ringtones/Revelation.ogg
rm /system/media/audio/ringtones/Rigel.ogg
rm /system/media/audio/ringtones/Road_Trip.ogg
rm /system/media/audio/ringtones/RomancingTheTone.ogg
rm /system/media/audio/ringtones/Safari.ogg
rm /system/media/audio/ringtones/Savannah.ogg
rm /system/media/audio/ringtones/Scarabaeus.ogg
rm /system/media/audio/ringtones/Sceptrum.ogg
rm /system/media/audio/ringtones/Seville.ogg
rm /system/media/audio/ringtones/Shes_All_That.ogg
rm /system/media/audio/ringtones/SilkyWay.ogg
rm /system/media/audio/ringtones/Silmarillia.ogg
rm /system/media/audio/ringtones/SitarVsSitar.ogg
rm /system/media/audio/ringtones/Solarium.ogg
rm /system/media/audio/ringtones/SpringyJalopy.ogg
rm /system/media/audio/ringtones/Steppin_Out.ogg
rm /system/media/audio/ringtones/Terminated.ogg
rm /system/media/audio/ringtones/Testudo.ogg
rm /system/media/audio/ringtones/Themos.ogg
rm /system/media/audio/ringtones/Third_Eye.ogg
rm /system/media/audio/ringtones/Thunderfoot.ogg
rm /system/media/audio/ringtones/TwirlAway.ogg
rm /system/media/audio/ringtones/UrsaMinor.ogg
rm /system/media/audio/ringtones/VeryAlarmed.ogg
rm /system/media/audio/ringtones/Vespa.ogg
rm /system/media/audio/ringtones/World.ogg
rm /system/media/audio/ringtones/Zeta.ogg
And for notifications:
Code:
rm /system/media/audio/notifications/Adara.ogg
rm /system/media/audio/notifications/Aldebaran.ogg
rm /system/media/audio/notifications/Altair.ogg
rm /system/media/audio/notifications/Antares.ogg
rm /system/media/audio/notifications/Antimony.ogg
rm /system/media/audio/notifications/Arcturus.ogg
rm /system/media/audio/notifications/Argon.ogg
rm /system/media/audio/notifications/Beryllium.ogg
rm /system/media/audio/notifications/Betelgeuse.ogg
rm /system/media/audio/notifications/BrassAndroid.ogg
rm /system/media/audio/notifications/Canopus.ogg
rm /system/media/audio/notifications/Capella.ogg
rm /system/media/audio/notifications/Castor.ogg
rm /system/media/audio/notifications/CetiAlpha.ogg
rm /system/media/audio/notifications/Cobalt.ogg
rm /system/media/audio/notifications/CyanMail.ogg
rm /system/media/audio/notifications/CyanMessage.ogg
rm /system/media/audio/notifications/CyanPing.ogg
rm /system/media/audio/notifications/DearDeer.ogg
rm /system/media/audio/notifications/Deneb.ogg
rm /system/media/audio/notifications/Doink.ogg
rm /system/media/audio/notifications/DontPanic.ogg
rm /system/media/audio/notifications/Electra.ogg
rm /system/media/audio/notifications/Fluorine.ogg
rm /system/media/audio/notifications/Fomalhaut.ogg
rm /system/media/audio/notifications/Gallium.ogg
rm /system/media/audio/notifications/Helium.ogg
rm /system/media/audio/notifications/Highwire.ogg
rm /system/media/audio/notifications/Hojus.ogg
rm /system/media/audio/notifications/Iridium.ogg
rm /system/media/audio/notifications/Krypton.ogg
rm /system/media/audio/notifications/KzurbSonar.ogg
rm /system/media/audio/notifications/Lalande.ogg
rm /system/media/audio/notifications/Merope.ogg
rm /system/media/audio/notifications/Mira.ogg
rm /system/media/audio/notifications/Naughty.ogg
rm /system/media/audio/notifications/OnTheHunt.ogg
rm /system/media/audio/notifications/Palladium.ogg
rm /system/media/audio/notifications/Polaris.ogg
rm /system/media/audio/notifications/Pollux.ogg
rm /system/media/audio/notifications/Pong.ogg
rm /system/media/audio/notifications/Procyon.ogg
rm /system/media/audio/notifications/Proxima.ogg
rm /system/media/audio/notifications/Radon.ogg
rm /system/media/audio/notifications/Rang.ogg
rm /system/media/audio/notifications/Regulus.ogg
rm /system/media/audio/notifications/Rubidium.ogg
rm /system/media/audio/notifications/Selenium.ogg
rm /system/media/audio/notifications/Shaula.ogg
rm /system/media/audio/notifications/Sirius.ogg
rm /system/media/audio/notifications/Sirrah.ogg
rm /system/media/audio/notifications/Spica.ogg
rm /system/media/audio/notifications/Stone.ogg
rm /system/media/audio/notifications/Strontium.ogg
rm /system/media/audio/notifications/Tejat.ogg
rm /system/media/audio/notifications/Thallium.ogg
rm /system/media/audio/notifications/Upsilon.ogg
rm /system/media/audio/notifications/Vega.ogg
rm /system/media/audio/notifications/Voila.ogg
rm /system/media/audio/notifications/Xenon.ogg
rm /system/media/audio/notifications/Zirconium.ogg
hi, why is it needed to be renamed 91-cm.sh ? what issues if leaving 50-cm.sh ?
(sorry for my poor english.)
jumpers said:
hi, why is it needed to be renamed 91-cm.sh ? what issues if leaving 50-cm.sh ?
(sorry for my poor english.)
Click to expand...
Click to collapse
You only have to rename it if you want it as a separate script. If you're just editing the existing script then don't change the name.
Sent from my Galaxy Nexus using Tapatalk 2
Hi,
I have tried this, copying to 91-cm.sh with the following contents
Also set the permissions for this in the addon.d directory to 755 as per 50-cm.sh
#!/sbin/sh
#
# /system/addon.d/91-cm.sh
# During a CM10 upgrade, this script backs up /system/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
cat <<EOF
media/audio/ringtones/Viva La Vida Live.m4a
media/audio/ringtones/Poison.mp3
media/audio/ringtones/Wife Warning.mp3
media/audio/notifications/Dragon Roar.mp3
media/audio/notifications/Evil Laugh.mp3
media/audio/notifications/Im Stuck N Ur Pocket.mp3
media/audio/notifications/Woody WoodPecker.mp3
media/audio/notifications/Yoda.mp3
media/audio/notifications/Yogi Bear Message.mp3
media/audio/alarms/James Brown - I feel good.mp3
EOF
}
case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
Now after running my last update using of the hellybean ROM, the files were not restored and the 91-sh.cm file was deleted.
What have I got wrong ??
Thanks
Simon
Your script looks good. Not all ROMs support it however, even if they're CM based.
Sent from my Galaxy Nexus using Tapatalk 2
i think that also files with spaces are not allowed (not tested yet), try renaming your files with underscores ans "-", and update your script.
jumpers said:
i think that also files with spaces are not allowed (not tested yet), try renaming your files with underscores ans "-", and update your script.
Click to expand...
Click to collapse
Derp, totally missed that.
Sent from my Galaxy Nexus using Tapatalk 2
it seems that this tool is not more working on CM10.1.
jumpers said:
it seems that this tool is not more working on CM10.1.
Click to expand...
Click to collapse
Backup works, but removal doesn't on 10.1 yet, although it's been a while since I've bothered trying.

OOS Without Play Store?

Looking around at the available ROMs, and playing around with OmniROM, I kinda miss OOS. I just don't want Google or the Play Store. Is there a version of OOS without them? Could I download OOS, open the zip, and delete the relevant files?
Use Hydrogen OS then. Basically OOS + Some bloat (most of em are uninstallable, the rest are pretty useful actually).
Oh and some un-translated chinese text here and there.
tanpro260196 said:
Use Hydrogen OS then.
Click to expand...
Click to collapse
Thanks! Should I be worried about privacy since it's the Chinese version of the OS? Anything strange, like phoning home my data to Chinese servers?
EDIT: Like this, OnePlus May Have Accidentally Sent Clipboard Data to Chinese Server
Wa hello there.
I registered just to give an answere to this unique thread.
Sooo... you should be able to create a Google (playstore or what ever) free Version of OOS by yourself.
Just download the Stock Rom of your device - open that one with either winzip or winrar or stuff like that.. head to "System/apps" (there should be stored all apps that will be installed by flashing)
and remove the unwanted evil Google things you don't want to have installed.
Summed up:
1. Download Stock Rom
2. Open that .zip / .rar file with a Programm of your choice
3. head to the path where the apks are stored (normally System/apps or something like that)
4. delete stuff you don't want to be installed.
5. ???
6. Profit.
That should do the trick. (by the way.. your device may need to be rooted to have a custom recovery installed.)
Thanks for the reply. I don't see that folder. I see:
- boot.img
- /firmware-update/ (.bin files, .mbn files, .elf files)
- /META-INF/com/google/android/ (blobs "update-binary", "updater-script")
- /RADIO/ (.bin file)
- system.new.dat
- system.patch.dat
- system.transfer.list
I just downloaded a fresh zip from http://downloads.oneplus.net/devices/oneplus-5t/
Deleted
Ah, sorry, my bad. It's been a while for me
since I've modified a ROM.
All this stuff should be contained inside the file
system.new.dat. There is a guide for extracting the .dat file here:
https://forum.xda-developers.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117/amp/
You might also want to see this:
https://forum.xda-developers.com/ge...ng-editing-packing-roms-img-dat-t3350261/amp/
If you don't want to do this all by yourself
you should check out some scripts. I came across this one f.e.:
https://forum.xda-developers.com/on...ble-remove-gapps-stock-oos-roms-t3562983/amp/
All it does is removing every google related stuff inside of the system folder of your android.
So, step one should be flashing stock rom, after that, make sure twrp recovery is still there.
If not - flash a custom recovery like twrp. After that flash the removeGapps.zip mentioned in the linked article.
That should be it then.
The code of the script:
Code:
#!/sbin/sh
rm -rf /system/app/Books
rm -rf /system/app/CalculatorGoogle
rm -rf /system/app/CalendarGooglePrebuilt
rm -rf /system/app/Chrome
rm -rf /system/app/CloudPrint
rm -rf /system/app/CloudPrint2
rm -rf /system/app/ConfigUpdater
rm -rf /system/app/DMAgent
rm -rf /system/app/Drive
rm -rf /system/app/EditorsDocs
rm -rf /system/app/EditorsSheets
rm -rf /system/app/EditorsSlides
rm -rf /system/app/ExchangeServices
rm -rf /system/app/FaceLock
rm -rf /system/app/FitnessPrebuilt
rm -rf /system/app/GoogleCalendarSyncAdapter
rm -rf /system/app/GoogleCamera
rm -rf /system/app/GoogleContactsSyncAdapter
rm -rf /system/app/GoogleEars
rm -rf /system/app/GoogleEarth
rm -rf /system/app/GoogleHindiIME
rm -rf /system/app/GoogleHome
rm -rf /system/app/GoogleJapaneseInput
rm -rf /system/app/GooglePinyinIME
rm -rf /system/app/GoogleTTS
rm -rf /system/app/Hangouts
rm -rf /system/app/Duo
rm -rf /system/app/HangoutsDialer
rm -rf /system/app/KoreanIME
rm -rf /system/app/LatinImeGoogle
rm -rf /system/app/Maps
rm -rf /system/app/Music2
rm -rf /system/app/Newsstand
rm -rf /system/app/Photos
rm -rf /system/app/PlayAutoInstallConfig
rm -rf /system/app/PlayGames
rm -rf /system/app/PlusOne
rm -rf /system/app/PrebuiltBugle
rm -rf /system/app/PrebuiltDeskClockGoogle
rm -rf /system/app/PrebuiltEmailGoogle
rm -rf /system/app/PrebuiltExchange3Google
rm -rf /system/app/PrebuiltGmail
rm -rf /system/app/PrebuiltKeep
rm -rf /system/app/PrebuiltNewsWeather
rm -rf /system/app/PrintSpooler
rm -rf /system/app/Street
rm -rf /system/app/talkback
rm -rf /system/app/Tycho
rm -rf /system/app/Videos
rm -rf /system/app/Wallet
rm -rf /system/app/YouTube
rm -rf /system/priv-app/AndroidForWork
rm -rf /system/priv-app/BackupRestoreConfirmation
rm -rf /system/priv-app/CalendarProvider
rm -rf /system/priv-app/ConfigUpdater
rm -rf /system/priv-app/ConnMO
rm -rf /system/priv-app/GCS
rm -rf /system/priv-app/GoogleBackupTransport
rm -rf /system/priv-app/GoogleContacts
rm -rf /system/priv-app/GoogleDialer
rm -rf /system/priv-app/GoogleFeedback
rm -rf /system/priv-app/GoogleLoginService
rm -rf /system/priv-app/GoogleOneTimeInitializer
rm -rf /system/priv-app/GooglePackageInstaller
rm -rf /system/priv-app/GooglePartnerSetup
rm -rf /system/priv-app/GoogleServicesFramework
rm -rf /system/priv-app/Hangouts
rm -rf /system/priv-app/HotwordEnrollment
rm -rf /system/priv-app/Phonesky
rm -rf /system/priv-app/PrebuiltGmsCore
rm -rf /system/priv-app/SetupWizard
rm -rf /system/priv-app/TagGoogle
rm -rf /system/priv-app/Talkback
rm -rf /system/priv-app/Velvet
rm -rf /system/priv-app/Wallet
rm -rf /system/tts
rm -rf /system/usr/srec
rm -rf /system/vendor/pittpatt
rm /system/addon.d/70-gapps.sh
rm /system/addon.d/71-faceunlock.sh
rm /system/addon.d/71-gapps-faceunlock.sh
rm /system/addon.d/74-googlecamera.sh
rm /system/addon.d/74-googlegallery.sh
rm /system/addon.d/75-googlegallery.sh
rm /system/addon.d/78-chromebrowser.sh
rm /system/app/Books.apk
rm /system/app/Books.odex
rm /system/app/BooksPhone.apk
rm /system/app/BooksPhone.odex
rm /system/app/BrowserProviderProxy.apk
rm /system/app/BrowserProviderProxy.odex
rm /system/app/CalculatorGoogle.apk
rm /system/app/CalculatorGoogle.odex
rm /system/app/Calendar.apk
rm /system/app/Duo.apk
rm /system/app/Calendar.odex
rm /system/app/CalendarGoogle.apk
rm /system/app/CalendarGoogle.odex
rm /system/app/CalendarGooglePrebuilt.apk
rm /system/app/CalendarGooglePrebuilt.odex
rm /system/app/CalendarProvider.apk
rm /system/app/CalendarProvider.odex
rm /system/app/CarHomeGoogle.apk
rm /system/app/CarHomeGoogle.odex
rm /system/app/CellBroadcastReceiver.apk
rm /system/app/CellBroadcastReceiver.odex
rm /system/app/Chrome.apk
rm /system/app/Chrome.odex
rm /system/app/ChromeBookmarksSyncAdapter.apk
rm /system/app/ChromeBookmarksSyncAdapter.odex
rm /system/app/CloudPrint.apk
rm /system/app/CloudPrint.odex
rm /system/app/CloudPrint2.apk
rm /system/app/CloudPrint2.odex
rm /system/app/ConfigUpdater.apk
rm /system/app/ConfigUpdater.odex
rm /system/app/Currents.apk
rm /system/app/Currents.odex
rm /system/app/DeskClockGoogle.apk
rm /system/app/DeskClockGoogle.odex
rm /system/app/DMAgent.apk
rm /system/app/DMAgent.odex
rm /system/app/Drive.apk
rm /system/app/Drive.odex
rm /system/app/EditorsDocs.apk
rm /system/app/EditorsDocs.odex
rm /system/app/EditorsSheets.apk
rm /system/app/EditorsSheets.odex
rm /system/app/EditorsSlides.apk
rm /system/app/EditorsSlides.odex
rm /system/app/ExchangeServices.apk
rm /system/app/ExchangeServices.odex
rm /system/app/FaceLock.apk
rm /system/app/FaceLock.odex
rm /system/app/Finsky.apk
rm /system/app/Finsky.odex
rm /system/app/FitnessPrebuilt.apk
rm /system/app/FitnessPrebuilt.odex
rm /system/app/FOTAKill.apk
rm /system/app/FOTAKill.odex
rm /system/app/GalleryGoogle.apk
rm /system/app/GalleryGoogle.odex
rm /system/app/GenieWidget.apk
rm /system/app/GenieWidget.odex
rm /system/app/Gmail.apk
rm /system/app/Gmail.odex
rm /system/app/Gmail2.apk
rm /system/app/Gmail2.odex
rm /system/app/GmsCore.apk
rm /system/app/GmsCore.odex
rm /system/app/GoogleBackupTransport.apk
rm /system/app/GoogleBackupTransport.odex
rm /system/app/GoogleCalendar.apk
rm /system/app/GoogleCalendar.odex
rm /system/app/GoogleCalendarSyncAdapter.apk
rm /system/app/GoogleCalendarSyncAdapter.odex
rm /system/app/GoogleCamera.apk
rm /system/app/GoogleCamera.odex
rm /system/app/GoogleCloudPrint.apk
rm /system/app/GoogleCloudPrint.odex
rm /system/app/GoogleContactsSyncAdapter.apk
rm /system/app/GoogleContactsSyncAdapter.odex
rm /system/app/GoogleEars.apk
rm /system/app/GoogleEars.odex
rm /system/app/GoogleEarth.apk
rm /system/app/GoogleEarth.odex
rm /system/app/GoogleFeedback.apk
rm /system/app/GoogleFeedback.odex
rm /system/app/GoogleHangouts.apk
rm /system/app/GoogleHangouts.odex
rm /system/app/GoogleHindiIME.apk
rm /system/app/GoogleHindiIME.odex
rm /system/app/GoogleHome.apk
rm /system/app/GoogleHome.odex
rm /system/app/GoogleJapaneseInput.apk
rm /system/app/GoogleJapaneseInput.odex
rm /system/app/GoogleKeep.apk
rm /system/app/GoogleKeep.odex
rm /system/app/GoogleLatinIme.apk
rm /system/app/GoogleLatinIme.odex
rm /system/app/GoogleLoginService.apk
rm /system/app/GoogleLoginService.odex
rm /system/app/GoogleMusic.apk
rm /system/app/GoogleMusic.odex
rm /system/app/GoogleNow.apk
rm /system/app/GoogleNow.odex
rm /system/app/GoogleOneTimeInitializer.apk
rm /system/app/GoogleOneTimeInitializer.odex
rm /system/app/GooglePartnerSetup.apk
rm /system/app/GooglePartnerSetup.odex
rm /system/app/GooglePinyinIME.apk
rm /system/app/GooglePinyinIME.odex
rm /system/app/GooglePlay.apk
rm /system/app/GooglePlay.odex
rm /system/app/GooglePlus.apk
rm /system/app/GooglePlus.odex
rm /system/app/GoogleQuickSearchBox.apk
rm /system/app/GoogleQuickSearchBox.odex
rm /system/app/GoogleServicesFramework.apk
rm /system/app/GoogleServicesFramework.odex
rm /system/app/GoogleTTS.apk
rm /system/app/GoogleTTS.odex
rm /system/app/Hangouts.apk
rm /system/app/Hangouts.odex
rm /system/app/HangoutsDialer.apk
rm /system/app/HangoutsDialer.odex
rm /system/app/iWnnIME.apk
rm /system/app/iWnnIME.odex
rm /system/app/iWnnIME_Kbd_White.apk
rm /system/app/iWnnIME_Kbd_White.odex
rm /system/app/Keep.apk
rm /system/app/Keep.odex
rm /system/app/KoreanIME.apk
rm /system/app/KoreanIME.odex
rm /system/app/LatinIME.apk
rm /system/app/LatinIME.odex
rm /system/app/LatinImeDictionaryPack.apk
rm /system/app/LatinImeDictionaryPack.odex
rm /system/app/LatinImeGoogle.apk
rm /system/app/LatinImeGoogle.odex
rm /system/app/LatinImeTutorial.apk
rm /system/app/LatinImeTutorial.odex
rm /system/app/Magazines.apk
rm /system/app/Magazines.odex
rm /system/app/Maps.apk
rm /system/app/Maps.odex
rm /system/app/MarketUpdater.apk
rm /system/app/MarketUpdater.odex
rm /system/app/MediaUploader.apk
rm /system/app/MediaUploader.odex
rm /system/app/Music2.apk
rm /system/app/Music2.odex
rm /system/app/NetworkLocation.apk
rm /system/app/NetworkLocation.odex
rm /system/app/Newsstand.apk
rm /system/app/Newsstand.odex
rm /system/app/OccamQuickOffice.apk
rm /system/app/OccamQuickOffice.odex
rm /system/app/OneTimeInitializer.apk
rm /system/app/OneTimeInitializer.odex
rm /system/app/PartnerBookmarksProvider.apk
rm /system/app/PartnerBookmarksProvider.odex
rm /system/app/Phonesky.apk
rm /system/app/Phonesky.odex
rm /system/app/Photos.apk
rm /system/app/Photos.odex
rm /system/app/PlayAutoInstallConfig.apk
rm /system/app/PlayAutoInstallConfig.odex
rm /system/app/PlayGames.apk
rm /system/app/PlayGames.odex
rm /system/app/PlayStore.apk
rm /system/app/PlayStore.odex
rm /system/app/PlusOne.apk
rm /system/app/PlusOne.odex
rm /system/app/PrebuiltBugle.apk
rm /system/app/PrebuiltBugle.odex
rm /system/app/PrebuiltDeskClockGoogle.apk
rm /system/app/PrebuiltDeskClockGoogle.odex
rm /system/app/PrebuiltEmailGoogle.apk
rm /system/app/PrebuiltEmailGoogle.odex
rm /system/app/PrebuiltExchange3Google.apk
rm /system/app/PrebuiltExchange3Google.odex
rm /system/app/PrebuiltGmail.apk
rm /system/app/PrebuiltGmail.odex
rm /system/app/PrebuiltGmsCore.apk
rm /system/app/PrebuiltGmsCore.odex
rm /system/app/PrebuiltKeep.apk
rm /system/app/PrebuiltKeep.odex
rm /system/app/PrebuiltNewsWeather.apk
rm /system/app/PrebuiltNewsWeather.odex
rm /system/app/PrintSpooler.apk
rm /system/app/PrintSpooler.odex
rm /system/app/QuickOffice.apk
rm /system/app/QuickOffice.odex
rm /system/app/QuickSearchBox.apk
rm /system/app/QuickSearchBox.odex
rm /system/app/SetupWizard.apk
rm /system/app/SetupWizard.odex
rm /system/app/Street.apk
rm /system/app/Street.odex
rm /system/app/Talk.apk
rm /system/app/Talk.odex
rm /system/app/Tycho.apk
rm /system/app/Tycho.odex
rm /system/app/Velvet.apk
rm /system/app/Velvet.odex
rm /system/app/Vending.apk
rm /system/app/Vending.odex
rm /system/app/Videos.apk
rm /system/app/Videos.odex
rm /system/app/Wallet.apk
rm /system/app/Wallet.odex
rm /system/app/YouTube.apk
rm /system/app/YouTube.odex
rm /system/priv-app/AndroidForWork.apk
rm /system/priv-app/AndroidForWork.odex
rm /system/priv-app/BackupRestoreConfirmation.apk
rm /system/priv-app/BackupRestoreConfirmation.odex
rm /system/priv-app/Books.apk
rm /system/priv-app/Books.odex
rm /system/priv-app/Calendar.apk
rm /system/priv-app/Calendar.odex
rm /system/priv-app/CalendarGooglePrebuilt.apk
rm /system/priv-app/CalendarGooglePrebuilt.odex
rm /system/priv-app/CalendarProvider.apk
rm /system/priv-app/CalendarProvider.odex
rm /system/priv-app/Chrome.apk
rm /system/priv-app/Chrome.odex
rm /system/priv-app/CloudPrint2.apk
rm /system/priv-app/CloudPrint2.odex
rm /system/priv-app/ConfigUpdater.apk
rm /system/priv-app/ConfigUpdater.odex
rm /system/priv-app/ConnMO.apk
rm /system/priv-app/ConnMO.odex
rm /system/priv-app/DMAgent.apk
rm /system/priv-app/DMAgent.odex
rm /system/priv-app/Drive.apk
rm /system/priv-app/Drive.odex
rm /system/priv-app/EditorsDocs.apk
rm /system/priv-app/EditorsDocs.odex
rm /system/priv-app/EditorsSheets.apk
rm /system/priv-app/EditorsSheets.odex
rm /system/priv-app/EditorsSlides.apk
rm /system/priv-app/EditorsSlides.odex
rm /system/priv-app/FaceLock.apk
rm /system/priv-app/FaceLock.odex
rm /system/priv-app/FitnessPrebuilt.apk
rm /system/priv-app/FitnessPrebuilt.odex
rm /system/priv-app/GCS.apk
rm /system/priv-app/GCS.odex
rm /system/priv-app/GmsCore.apk
rm /system/priv-app/GmsCore.odex
rm /system/priv-app/GoogleBackupTransport.apk
rm /system/priv-app/GoogleBackupTransport.odex
rm /system/priv-app/GoogleCalendarSyncAdapter.apk
rm /system/priv-app/GoogleCalendarSyncAdapter.odex
rm /system/priv-app/GoogleCamera.apk
rm /system/priv-app/GoogleCamera.odex
rm /system/priv-app/GoogleContacts.apk
rm /system/priv-app/GoogleContacts.odex
rm /system/priv-app/GoogleContactsSyncAdapter.apk
rm /system/priv-app/GoogleContactsSyncAdapter.odex
rm /system/priv-app/GoogleDialer.apk
rm /system/priv-app/GoogleDialer.odex
rm /system/priv-app/GoogleEars.apk
rm /system/priv-app/GoogleEars.odex
rm /system/priv-app/GoogleEarth.apk
rm /system/priv-app/GoogleEarth.odex
rm /system/priv-app/GoogleFeedback.apk
rm /system/priv-app/GoogleFeedback.odex
rm /system/priv-app/GoogleHindiIME.apk
rm /system/priv-app/GoogleHindiIME.odex
rm /system/priv-app/GoogleHome.apk
rm /system/priv-app/GoogleHome.odex
rm /system/priv-app/GoogleJapaneseInput.apk
rm /system/priv-app/GoogleJapaneseInput.odex
rm /system/priv-app/GoogleLoginService.apk
rm /system/priv-app/GoogleLoginService.odex
rm /system/priv-app/GoogleNow.apk
rm /system/priv-app/GoogleNow.odex
rm /system/priv-app/GoogleOneTimeInitializer.apk
rm /system/priv-app/GoogleOneTimeInitializer.odex
rm /system/priv-app/GooglePackageInstaller.apk
rm /system/priv-app/GooglePackageInstaller.odex
rm /system/priv-app/GooglePartnerSetup.apk
rm /system/priv-app/GooglePartnerSetup.odex
rm /system/priv-app/GooglePinyinIME.apk
rm /system/priv-app/GooglePinyinIME.odex
rm /system/priv-app/GoogleServicesFramework.apk
rm /system/priv-app/GoogleServicesFramework.odex
rm /system/priv-app/Hangouts.apk
rm /system/priv-app/Hangouts.odex
rm /system/priv-app/HotwordEnrollment.apk
rm /system/priv-app/HotwordEnrollment.odex
rm /system/priv-app/KoreanIME.apk
rm /system/priv-app/KoreanIME.odex
rm /system/priv-app/LatinImeGoogle.apk
rm /system/priv-app/LatinImeGoogle.odex
rm /system/priv-app/Maps.apk
rm /system/priv-app/Maps.odex
rm /system/priv-app/Music2.apk
rm /system/priv-app/Music2.odex
rm /system/priv-app/Newsstand.apk
rm /system/priv-app/Newsstand.odex
rm /system/priv-app/OneTimeInitializer.apk
rm /system/priv-app/OneTimeInitializer.odex
rm /system/priv-app/Phonesky.apk
rm /system/priv-app/Phonesky.odex
rm /system/priv-app/Photos.apk
rm /system/priv-app/Photos.odex
rm /system/priv-app/PlayAutoInstallConfig.apk
rm /system/priv-app/PlayAutoInstallConfig.odex
rm /system/priv-app/PlayGames.apk
rm /system/priv-app/PlayGames.odex
rm /system/priv-app/PlusOne.apk
rm /system/priv-app/PlusOne.odex
rm /system/priv-app/PrebuiltBugle.apk
rm /system/priv-app/PrebuiltBugle.odex
rm /system/priv-app/PrebuiltEmailGoogle.apk
rm /system/priv-app/PrebuiltEmailGoogle.odex
rm /system/priv-app/PrebuiltExchange3Google.apk
rm /system/priv-app/PrebuiltExchange3Google.odex
rm /system/priv-app/PrebuiltGmail.apk
rm /system/priv-app/PrebuiltGmail.odex
rm /system/priv-app/PrebuiltGmsCore.apk
rm /system/priv-app/PrebuiltGmsCore.odex
rm /system/priv-app/PrebuiltKeep.apk
rm /system/priv-app/PrebuiltKeep.odex
rm /system/priv-app/PrebuiltNewsWeather.apk
rm /system/priv-app/PrebuiltNewsWeather.odex
rm /system/priv-app/QuickSearchBox.apk
rm /system/priv-app/QuickSearchBox.odex
rm /system/priv-app/SetupWizard.apk
rm /system/priv-app/SetupWizard.odex
rm /system/priv-app/Street.apk
rm /system/priv-app/Street.odex
rm /system/priv-app/TagGoogle.apk
rm /system/priv-app/TagGoogle.odex
rm /system/priv-app/Talkback.apk
rm /system/priv-app/Talkback.odex
rm /system/priv-app/Velvet.apk
rm /system/priv-app/Velvet.odex
rm /system/priv-app/Vending.apk
rm /system/priv-app/Vending.odex
rm /system/priv-app/Videos.apk
rm /system/priv-app/Videos.odex
rm /system/priv-app/Wallet.apk
rm /system/priv-app/Wallet.odex
rm /system/priv-app/YouTube.apk
rm /system/priv-app/YouTube.odex
rm /system/vendor/lib/libfrsdk.so
I downloaded OnePlus5TOxygen_43_OTA_005_all_1801141242_0c19acb91a7d402d.zip
Here's what I found in /app/ ...
Code:
Account
AntHalService
AutoRegistration
BasicDreams
Bluetooth
BluetoothExt
BluetoothMidiService
BookmarkProvider
btmultisim
BTtestmode
BuiltInPrintService
Calculator
CalendarGoogle
CallFeaturesSetting
CaptivePortalLogin
CertInstaller
Chrome
CompanionDeviceManager
ConfURIDialer
CtsShimPrebuilt
datastatusnotification
DeskClock
DeviceInfo
DiracManager
DownloadProviderUi
Drive
Duo
EasterEgg
embms
EngineeringMode
EngSpecialTest
FidoCryptoService
GFManager
Gmail2
GoogleContactsSyncAdapter
GoogleExtShared
GooglePrintRecommendationService
GoogleTTS
HTMLViewer
ims
imgsettings
KeyChain
LatinImeGoogle
LiveWallpapersPicker
LogKitSdService
Maps
ModemTestMode
Music2
NfcNci
NFCTestMode
NVBackupUI
OemAutoTestServer
OEMLogKit
OPBackup
OPBackupRestore
OPBugReportLite
OPClipBoardManager
OpenWnn
OPLauncher2
OPLongshot
OPMmsLocationFramework
OPOnlineConfig
OPPush
OPSafe
OpSkin
OPSocialNetworkHub
OPWallpaperResources
OPWidget
PacProcessor
PartnerBookmarksProvider
Photos
PhotosOnline
PrintSpooler
QtiSystemService
QtiTelephonyService
radioconfig
RfToolkit
SdCardService
SecureExtAuthService
SecureSampleAuthService
SensorTestTool
SimSettings
SmscPlugger
Stk
talkback
uimremoteclient
uimremoteserver
UserDictionaryProvider
Videos
WallpaperBackup
WapiCertManage
WAPPushManager
WebViewGoogle
WfdService
YouTube
YuloreFramework
And here's what I found in /priv-app/ ...
Code:
BackupRestoreConfirmation
BlockedNumberProvider
CalendarProvider
CallLogBackup
CarrierConfig
CNEService
com.qualcomm.location
ConfigUpdater
Contacts
ContactsProvider
CtsShimPrivPrebuilt
DefaultContainerService
Dialer
DiracAudioControlService
DocumentsUI
DownloadProvider
dpmserviceapp
EmergencyInfo
ExternalStorageProvider
FusedLocation
GmsCore
GoogleBackupTransport
GoogleExtServices
GoogleFeedback
GoogleOneTimeInitializer
GooglePackageInstaller
GooglePartnerSetup
GoogleServicesFramework
IFAAService
InputDevices
ManagedProvisioning
MediaProvider
MmsService
MtpDocumentsProvider
OnePlusCamera
OnePlusCameraService
OnePlusGallery
OnePlusWizard
OPAod
OPAppLocker
OPCellBroadcastReceiver
OPDeviceManager
OPDeviceManagerProvider
OPFaceUnlock
OPIconpackCircle
OPIconpackH2Default
OPIconpackH2Folio
OPIconpackH2Light
OPIconpackOnePlus
OPIconpackSquare
OPInCallUI
OPMms
OPNetworkSetting
OPSettingsProvider
OPSimContacts
OPSystemUI
OPWifiApSettings
Phonesky
ProxyHandler
qcrilmsgtunnel
seccamservice
Settings
SetupWizard
SharedStorageBackup
Shell
SmartcardService
StatementService
StorageManager
Tag
Telecom
TelephoneProvider
TeleService
Velvet
VpnDialogs
WallpaperCropper
Looks like I have some research to do, to determine which items should be deleted. Although my intent is to create a Google-free version of OxygenOS, I'd also like it to be as minimal/secure as possible. I might delete other apps too.
Do as you like,
from what I can tell - some apps are needed to make the phone work properly when it comes to NFC and stuff.
But if you like to test stuff - go ahead. You shouldn't break the phone by doing it like I mentioned a few posts ago.
But that's not a guarantee and I'm not responsible for a bricked phone (Standard bla bla bla).
The mentioned script a few posts ago should have most of the gapps deleted.
I would like to hear if you've successfully done it without any bugs / sacrificing of cool features and could provide your script to the community.
ClinicalTrack said:
I downloaded OnePlus5TOxygen_43_OTA_005_all_1801141242_0c19acb91a7d402d.zip
Looks like I have some research to do, to determine which items should be deleted. Although my intent is to create a Google-free version of OxygenOS, I'd also like it to be as minimal/secure as possible. I might delete other apps too.
Click to expand...
Click to collapse
i hope you succesful with the research.
i want delete some google apps too, without root through original zip.
I currently use the MicroG builds of LineageOS for the OnePlus 5T and am quite happy with it, but if you could make an OxygenOS rom without anything Google but with optional MicroG, that would be awesome!
I miss Face Unlock and the 9 hours of screen time I had with OxygenOS.
I been running OOS without gapps for long time, remove all google apps in system and add the microg parts ( gms and gsf as minimum) to system.
To get signature spoofing you need to use xposed as there is no way to deodex 8.1 roms today.
The google parts that need to be removed:
delete_recursive("/system/priv-app/GmsCore");
delete_recursive("/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GoogleLoginService");
delete_recursive("/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/priv-app/Phonesky");

Categories

Resources