[MOD][SCRIPT] OxygenOS 3.5.* Community Build Cleaner/Debloater Flashable ZIP - OnePlus 3 Themes, Apps, and Mods

Hi had a few requests for this; as I did one for ResurrectionRemix too. All thanks originally as before goes to @dr_root as he is the reason I continued to make these for my own personal use but I based it off the ones he made and edited them, so it wasn't much work, so thanks goes to him, really.
Instructions:
1. Put the zip file onto your phone
2. Boot into TWRP and flash the zip file
3. Profit
What does the ZIP file remove?
delete_recursive("/system/app/AndroidPay");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BTtestmode");
delete_recursive("/system/app/CalendarGoogle");
delete_recursive("/system/app/Chrome");
delete_recursive("/system/app/DivesIconPack");
delete_recursive("/system/app/DMAgent");
delete_recursive("/system/app/Drive");
delete_recursive("/system/app/EngSpecialTest");
delete_recursive("/system/app/FaceLock");
delete_recursive("/system/app/Galaxy4");
delete_recursive("/system/app/Gmail2");
delete_recursive("/system/app/GmailExchange");
delete_recursive("/system/app/Hangouts");
delete_recursive("/system/app/HoloSpiralWallpaper");
delete_recursive("/system/app/LiveWallpapers");
delete_recursive("/system/app/LogKitSdService");
delete_recursive("/system/app/Maps");
delete_recursive("/system/app/Music");
delete_recursive("/system/app/Music2");
delete_recursive("/system/app/NoiseField");
delete_recursive("/system/app/NFCTestMode");
delete_recursive("/system/app/OemAutoTestServer");
delete_recursive("/system/app/OEMLogKit");
delete_recursive("/system/app/OPBugReport_Complete");
delete_recursive("/system/app/OPMusic");
delete_recursive("/system/app/PartnerBookmarksProvider");
delete_recursive("/system/app/PhaseBeam");
delete_recursive("/system/app/Photos");
delete_recursive("/system/app/Protips");
delete_recursive("/system/app/RifonIconPack");
delete_recursive("/system/app/SensorTestTool");
delete_recursive("/system/app/SwiftKey");
delete_recursive("/system/app/SwiftKeyFactorySettings");
delete_recursive("/system/app/talkback");
delete_recursive("/system/app/Videos");
delete_recursive("/system/app/YouTube");
delete_recursive("/system/app/Weather");
delete_recursive("/system/app/WifiRfTestApk");
delete_recursive("/system/com.touchtype");
delete_recursive("/system/priv-app/OnePlusGallery");
delete_recursive("/system/priv-app/OnePlusWizard");
delete_recursive("/system/priv-app/OPDeviceManager");
delete_recursive("/system/priv-app/OPDeviceManagerProvider");
delete_recursive("/system/priv-app/Tag");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/reserve/OPMusic");
delete_recursive("/system/reserve/SoundRecorder");
delete_recursive("/system/reserve/Weather");
Instructions on editing the file to suit your needs:
1. Download & Install: http://www.7-zip.org/download.html
2. Download my .zip file of the cleaner
3. Download Notepad++ - https://notepad-plus-plus.org/
4. Right click .zip file (OXYGEN354CB_CLEANER.zip) and go to 7-Zip > Open Archive
5. Meta-INF > com > Google > Android > updater-script
6. Drag updater-script to another location and right click it then > Edit with Notepad++
7. Remove anything from the script that you want to keep, the entire line (for example "delete_recursive("/system/app/Chrome");"
8. Once completed.. File > Save - Then drag the file back into the open 7-Zip archive and press 'YES' when it asks you copy the file to archive
I hope this helps someone, have a great day. Ask any questions you may have in the thread or whatever.

Great

Great effort :good:

For some reason it doesn't work. It says 'script succeeded', but when rebooted nothing has changed.

ZeppeMan said:
For some reason it doesn't work. It says 'script succeeded', but when rebooted nothing has changed.
Click to expand...
Click to collapse
It definitely works, I used it this morning :/

ritchiedrama said:
It definitely works, I used it this morning :/
Click to expand...
Click to collapse
Tried it several times, nothing changed after reboot.
I'm using stock CB 3.5.4 with blue spark kernel.

ZeppeMan said:
Tried it several times, nothing changed after reboot.
I'm using stock CB 3.5.4 with blue spark kernel.
Click to expand...
Click to collapse
Did you edit the file at all?
I will check again later also.

ritchiedrama said:
Did you edit the file at all?
I will check again later also.
Click to expand...
Click to collapse
Didn't change anything..

Downloaded, Edited and Flashed --> Did not work, nothing changed at all
Downloaded the original file and Flashed --> Same Result, Did not work, nothing changed at all

mohmd.nagy said:
Downloaded, Edited and Flashed --> Did not work, nothing changed at all
Downloaded the original file and Flashed --> Same Result, Did not work, nothing changed at all
Click to expand...
Click to collapse
I'll test it again later; but it worked for me this morning.

Do we need to be rooted to do this

ZeppeMan said:
For some reason it doesn't work. It says 'script succeeded', but when rebooted nothing has changed.
Click to expand...
Click to collapse
It works for me, I just tested it again. I'm going to re-upload the file in a second; let me know if it works - I'm about to clean flash and do it again just to be sure.

viveknaudiyal said:
Do we need to be rooted to do this
Click to expand...
Click to collapse
No

Still the same.. download zip, left it untouched, zip file on internal storage, went into twrp and flashed, succeeded, reboot and it's like nothing happened lol..

Any progress?

Worked fine for me, Thanks bro :good:

mohmd.nagy said:
Any progress?
Click to expand...
Click to collapse
It works, so I'm not sure.
Perhaps Mount System in TWRP first, only thing I can think of.

ZeppeMan said:
Still the same.. download zip, left it untouched, zip file on internal storage, went into twrp and flashed, succeeded, reboot and it's like nothing happened lol..
Click to expand...
Click to collapse
It definitely works, so I don't understand :/ works for the other guy too..
Try mount "system" in TWRP before you flash it.

Can we have this for latest beta 7. There's not even enough space left to let adaway add hosts file to the system.

7alvi said:
Can we have this for latest beta 7. There's not even enough space left to let adaway add hosts file to the system.
Click to expand...
Click to collapse
I deleted Android pay and now have enough space for the host files.

Related

Koush Auto Browser without commands.

Well i know many of you have done this but i havnt seen it posted in this thread so here it goes just in case. * Longer Process* but skips dealing with all the commands.
To get auto rotate browser without going through all the command process.
1. Download Koush auto rotate browser here, http://www.koushikdutta.com/2008/12/auto-rotate-for-android-browser.html.
2. Open the browser.apk file, I use winrar.
3. Copy all files from that zip.
4. Open any theme of your choice using winrar, goto app and open the browser.apk
5. Open the browser.apk in winrar and paste the files that you have copied from Koush's browser.apk
6. Save, Now you must autosign your update.zip by following this thread. http://forum.xda-developers.com/showthread.php?p=3178676
7. Now put the update.zip that you just signed into the root of your sdcard.
7. Turn off phone and boot using home+power
8. Now hit alt+s to update, when finished reboot and walaah!
*This is for the people who are not comfortable using command prompt, works like a charm, has been tested on my phone using jf 1.31 rc30
? Has anyone els tried this and succeeded ?
Not understanding # 2, I went and downloaded the browser, it's an .apk not a zip file?
just fyi, the koush's browser does not need the odex file removed. it is just unnecessary, so why not remove it?
Edit your link for autosigning
chief2842 said:
Not understanding # 2, I went and downloaded the browser, it's an .apk not a zip file?
Click to expand...
Click to collapse
It is an apk file but opens up as zip
momentarylapseofreason said:
Edit your link for autosigning
Click to expand...
Click to collapse
autosign link now fixed, thanks for the heads up.
diaztradeinc said:
4. Open any theme of your choice using winrar, goto app and open the browser.apk
Click to expand...
Click to collapse
ok- G1 newbie here- by theme you mean JF RC30/ADP1/RC8 etc?- YES is the answer to that-
now do i just zip the folder with the pasted files in it? Do i add it to archive? I did that, then chose RAR format and then changed name of file to Browser.apk. Is this correct?
crap! just realised i need java installed for this to work....... will try later..... still not sure if i did the rezipping procedure properly....
am i supposed to rename the "updated_signed.zip" file to "update.zip"?
stogchris81 said:
am i supposed to rename the "updated_signed.zip" file to "update.zip"?
Click to expand...
Click to collapse
Yes you do, let me know how it works out for you.
actually, it hasnt worked out for me. ive done everything 5 times and it wont work.
stogchris81 said:
actually, it hasnt worked out for me. ive done everything 5 times and it wont work.
Click to expand...
Click to collapse
Have you tried rebooting your phone after the update?
Well, I didn't before now, lol. Howerver, still a no go..
If his file is an apk, why can't you open the update, and replace the whole browser.apk file, then just resign it?
ill try it.
Has that worked for you?
hondamx525 said:
If his file is an apk, why can't you open the update, and replace the whole browser.apk file, then just resign it?
Click to expand...
Click to collapse
Yes that's what I have done and its worked with all themes I have applied it to
I don't know why it wouldn't work for you, maybe your missing a step?
Me? i was just making a recommendation, i haven't tried it. Because he said to open the apk, and replace certain files.

[Q] Help? Accidently deleted People APK?

Hey guys,
I think I accidentally deleted the people system APK?! I can no longer save contacts. Wondering what the best way to fix this issue would be without flashing back to stock rom. I am currently rooted and running stock 4.4.2 KK, but I have made a lot of MODS and am running the Galaxy Gear Manager for my watch which is a huge process to get running that I don't want to have to repeat.
Any help is mucho appreciated!!!
If you can find the apk somewhere install that. Otherwise flash the system.img from the factory image.
jd1639 said:
If you can find the apk somewhere install that. Otherwise flash the system.img from the factory image.
Click to expand...
Click to collapse
Will flashing the system.img reset everything?
jason.T said:
Will flashing the system.img reset everything?
Click to expand...
Click to collapse
No, it'll reinstall all the system files. If you modified any of them you'll lose that but I doubt you modified any. This will only work if your bootloader is unlocked. If it isn't then you'll lose everything unlocking it.
jd1639 said:
No, it'll reinstall all the system files. If you modified any of them you'll lose that but I doubt you modified any. This will only work if your bootloader is unlocked. If it isn't then you'll lose everything unlocking it.
Click to expand...
Click to collapse
Awesome, my bootloader is unlocked, thanks!
jason.T said:
Awesome, my bootloader is unlocked, thanks!
Click to expand...
Click to collapse
Have super su on your internal sd card so you can flash it in your recovery. You'll lose root.
jason.T said:
Hey guys,
I think I accidentally deleted the people system APK?! I can no longer save contacts. Wondering what the best way to fix this issue would be without flashing back to stock rom. I am currently rooted and running stock 4.4.2 KK, but I have made a lot of MODS and am running the Galaxy Gear Manager for my watch which is a huge process to get running that I don't want to have to repeat.
Any help is mucho appreciated!!!
Click to expand...
Click to collapse
Do you still need help with this? It's not that difficult to just pull the app and move it into the right system folder. Once you do that, change permissions to match the other apps, and reboot, you should be back to normal. I'll post the apk if you need it.
es0tericcha0s said:
Do you still need help with this? It's not that difficult to just pull the app and move it into the right system folder. Once you do that, change permissions to match the other apps, and reboot, you should be back to normal. I'll post the apk if you need it.
Click to expand...
Click to collapse
The APK would be amazing! I haven't been able to find it, I got the System.img that I was going to flash after work, but the APK would be a lot easier! Thanks!!
Hi,
It's Contact.apk you would need?
jason.T said:
The APK would be amazing! I haven't been able to find it, I got the System.img that I was going to flash after work, but the APK would be a lot easier! Thanks!!
Click to expand...
Click to collapse
No problem. I'll have it uploaded in a bit. It's just the People / Contacts apk, right? And you're odexed or deodexed?
jason.T said:
The APK would be amazing! I haven't been able to find it, I got the System.img that I was going to flash after work, but the APK would be a lot easier! Thanks!!
Click to expand...
Click to collapse
You can pretty much just download any ROM available, extract the Contacts.apk file (I think its in system/priv-app/) and put it on your device.
es0tericcha0s said:
No problem. I'll have it uploaded in a bit. It's just the People / Contacts apk, right? And you're odexed or deodexed?
Click to expand...
Click to collapse
Yes, the People/contacts apk, and I am still stock, just rooted and have an unlocked bootloader, so odexed, I believe.
jsgraphicart said:
You can pretty much just download any ROM available, extract the Contacts.apk file (I think its in system/priv-app/) and put it on your device.
Click to expand...
Click to collapse
I tried that with one of the apk's I found, but I couldn't get it to work. I may have gotten a corrupt file though.
Here's a flashable zip in attachment (wipe Dalvik cache just in case) for Contacts.apk (with the .odex file)...
You still have ContactsProvider.apk?
jsgraphicart said:
You can pretty much just download any ROM available, extract the Contacts.apk file (I think its in system/priv-app/) and put it on your device.
Click to expand...
Click to collapse
He might not be in a situation where he can download a large file like a complete rom. He did mention being at work. Anyway, these should work:
https://dl.dropboxusercontent.com/u/9903887/Apps/Contacts.apk
https://dl.dropboxusercontent.com/u/9903887/Apps/Contacts.odex
If you are deodexed, let me know, and don't use just the apk ^ there or it will force close constantly.
Just use a file manager that has root access (ES File Manager is a good, free choice, if you don't have another) and move the app and odex file to:
/system/priv-app
Make sure to change the permissions. The 3 Read options should be checked and the first Write option. If you aren't sure, just read the permissions of another app in that folder and match it. Then just reboot and should be back to normal.
viking37 said:
Here's a flashable zip in attachment (wipe Dalvik cache just in case) for Contacts.apk...
You still have ContactsProvider.apk?
Click to expand...
Click to collapse
Awesome!, thanks. The only thing I see in my app/system directory that pertains to contacts is the "GoogleContactsSyncAdapter.apk" I will be attempting to get this fixed when I get home in a couple hours.
jason.T said:
I tried that with one of the apk's I found, but I couldn't get it to work. I may have gotten a corrupt file though.
Click to expand...
Click to collapse
You need to change the permissions. If you didnt do that, then it wont work. es0tericcha0s explained it in his last post
jason.T said:
Awesome!, thanks. The only thing I see in my app/system directory that pertains to contacts is the "GoogleContactsSyncAdapter.apk" I will be attempting to get this fixed when I get home in a couple hours.
Click to expand...
Click to collapse
Re,
Contacts.apk and ContactsProvider.apk are in /system/priv-app...
You are odexed, right?
es0tericcha0s said:
He might not be in a situation where he can download a large file like a complete rom. He did mention being at work. Anyway, these should work:
https://dl.dropboxusercontent.com/u/9903887/Apps/Contacts.apk
https://dl.dropboxusercontent.com/u/9903887/Apps/Contacts.odex
If you are deodexed, let me know, and don't use just the apk ^ there or it will force close constantly.
Just use a file manager that has root access (ES File Manager is a good, free choice, if you don't have another) and move the app and odex file to:
/system/priv-app
Make sure to change the permissions. The 3 Read options should be checked and the first Write option. If you aren't sure, just read the permissions of another app in that folder and match it. Then just reboot and should be back to normal.
Click to expand...
Click to collapse
Dropped those 2 files into the correct /system/priv-app, changed permissions, still nothing? What am I missing?
jason.T said:
Dropped those 2 files into the correct /system/priv-app, changed permissions, still nothing? What am I missing?
Click to expand...
Click to collapse
Dumb question, but did you reboot?

Stock lollipop+root can't copy data back from pc

When I try, it says that its been disconnected, if I use a file manager on the phone it won't let me delete anything off, any ideas on this?
Did you push any data by adb or mtp via recovery?
I copied data via recovery, I take it that's where my problem came from?
you used
adb push backup /data/media/0
Click to expand...
Click to collapse
right?
lowsnamebrand said:
I copied data via recovery, I take it that's where my problem came from?
Click to expand...
Click to collapse
TO your device?
If so, yes that is where the problem came from. If you PUSH data TO your device via recovery (not single files but folders) It screws permissions. There is a zip to fix it which I can link to, if you can confirm that is what you did.
rootSU said:
TO your device?
If so, yes that is where the problem came from. If you PUSH data TO your device via recovery (not single files but folders) It screws permissions. There is a zip to fix it which I can link to, if you can confirm that is what you did.
Click to expand...
Click to collapse
please share the link
kamilmirza said:
please share the link
Click to expand...
Click to collapse
In this thread:
http://forum.xda-developers.com/showthread.php?t=2239421
is a sdcard fix permissions script (flashable zip)
Of course if you can't write to sdcard, you'll either need to adb push / MTP via recovery or using a root explorer, set all permissions to read, write for /data/media/0/Download
That's exactly what I did sir, so I reflashed everything, now (of course) everything is running like a champion, appreciate the info,won't be making that mistake again
lowsnamebrand said:
That's exactly what I did sir, so I reflashed everything, now (of course) everything is running like a champion, appreciate the info,won't be making that mistake again
Click to expand...
Click to collapse
Yeah, MTP and ADB via recovery are fine if you need to get a backup on there to restore or some zips to flash, but as soon as you start pushing actual folders, permissions screw up.
Choice is to go through setup wizard and then use Android MTP or push that zip too and flash every time.
Thanks for the info, won't be making that mistake again Lol, side not lollipop is snappy and responsive as all hell

[Q] Files copied back to Download do not show up

Hello,
After backing up my phone and flashing the final 5.0, I copied the files in "Download" back to my phone. Strangely I cannot see them when I open Download from apps. With a file explorer I can see them though I've downloaded some stuff and those are visible together with the copied files with a file explorer, so the path must be right.
Do I have to do some operation in order to have everything accessible from Downloads? I feel very noob...
The download app only sees files that IT downloaded. When you wipe, download app will only see new downloads. Not files already in the folder.
rootSU said:
The download app only sees files that IT downloaded. When you wipe, download app will only see new downloads. Not files already in the folder.
Click to expand...
Click to collapse
Thanks, that's what I thought. Any fix?
tikkalamt said:
Thanks, that's what I thought. Any fix?
Click to expand...
Click to collapse
There isn't that I know of.
rootSU said:
There isn't that I know of.
Click to expand...
Click to collapse
Well, at least I don't feel like a total noob now, thanks!

9.5.8 full zip file is not found in local upgrade section

Converted my 7pro to international from tmobile some time ago. Bootlader and sim unlocked, rooted, have custom kernel, and working on 9.5.7.. I want upgrade to 9.5.8, downloaded full zip multiple times for GM21AA, md5 checked, everything works.. Moved downloaded ZIP file to root folder (internal memory), but i can't see the update under settings > system > system updates > settings > local upgrade..
restarted, cleared cache.. etc.. tried all possible ways. Even oxygen updater app sees that there is an update zip in place. But what the hell happening in local upgrade section, am i missing a step here?
flayzeraynx said:
Converted my 7pro to international from tmobile some time ago. Bootlader and sim unlocked, rooted, have custom kernel, and working on 9.5.7.. I want upgrade to 9.5.8, downloaded full zip multiple times for GM21AA, md5 checked, everything works.. Moved downloaded ZIP file to root folder (internal memory), but i can't see the update under settings > system > system updates > settings > local upgrade..
restarted, cleared cache.. etc.. tried all possible ways. Even oxygen updater app sees that there is an update zip in place. But what the hell happening in local upgrade section, am i missing a step here?
Click to expand...
Click to collapse
Did you put the full zip file on the root of your internal storage? Meaning it has to be on /sdcard/ not /sdcard/downloads
Yes i did, its definitely on internal storage (root)
Also I notice something similar when I download a full zip and it was that after .zip it also had .jar so it looked like this( ? Name.zip.jar ) so I rename it and deleted jar and I was able to see under local update
HtcOnekid said:
Also I notice something similar when I download a full zip and it was that after .zip it also had .jar so it looked like this( ? Name.zip.jar ) so I rename it and deleted jar and I was able to see under local update
Click to expand...
Click to collapse
It definitely has no extension other than zip
Do you have renovate rom installed?
rickysidhu_ said:
Do you have renovate rom installed?
Click to expand...
Click to collapse
Its international 9.5.7 oos
flayzeraynx said:
Its international 9.5.7 oos
Click to expand...
Click to collapse
My best guess is to check the md5 hash of that zip and see if it matches the one on the OP website. If it doesn't match, you have a bad download. Also, can you open the zip with a file manager or does it TELL you it's corrupt? In any case, I'd say redownload the zip.
H4X0R46 said:
My best guess is to check the md5 hash of that zip and see if it matches the one on the OP website. If it doesn't match, you have a bad download. Also, can you open the zip with a file manager or does it TELL you it's corrupt? In any case, I'd say redownload the zip.
Click to expand...
Click to collapse
Thats the interesting part. Md5 is matching, and yes i can see the contents of zip file when i tap it. I downloaded 5 times already
In last 10 phones in my life, this is first time happening
flayzeraynx said:
Thats the interesting part. Md5 is matching, and yes i can see the contents of zip file when i tap it. I downloaded 5 times already
In last 10 phones in my life, this is first time happening
Click to expand...
Click to collapse
Yeah that IS weird, never seen that before.... So when all else fails, I'd use fastboot to boot TWRP and then install the zip that way. Is your bootloader unlocked? Use the command "fastboot boot [file name].img" then flash it there, if you're gonna install the TWRP zip to have it permanently, remember to install Magisk as well, it's needed for the phone to boot in that case.
Did you ever find a solution to this? I am having the same issue. .zip file is downloaded, not corrupt and in the root folder, but "system update / local upgrade" doesn't see it.
Some file explorers doesn't show the extension. It may be the case that your file is named "name.zip.jar", but when your looking at it, .jar is dropped, showing only "name.zip". This makes you believe .zip is the extension, while it's not, rather just part of the filename.

Categories

Resources