Need help making twrp flashable adblock - OnePlus 8 Pro Questions & Answers

As the title states, I want to make it get help making or have someone make(lol) a flash able zip to install hosts file of my choosing to /system/etc

Have you tried adaway? Only issue ive had is Google adverts on shopping listings.
Good idea though, but you'd need to update constantly.
Adaway is way more practical.

You need to use magisk, either a module or adaway with systemless hosts enabled in magisk manager.

^this!

dladz said:
Have you tried adaway? Only issue ive had is Google adverts on shopping listings.
Good idea though, but you'd need to update constantly.
Adaway is way more practical.
Click to expand...
Click to collapse
Lossyx said:
You need to use magisk, either a module or adaway with systemless hosts enabled in magisk manager.
Click to expand...
Click to collapse
galaxys said:
^this!
Click to expand...
Click to collapse
Adaway does not work for, even using systemless mode with magisk. I have an older twrp flashable zip that works for Oero and older but don't know how to update it to work with Android 10+

jamescable said:
Adaway does not work for, even using systemless mode with magisk. I have an older twrp flashable zip that works for Oero and older but don't know how to update it to work with Android 10+
Click to expand...
Click to collapse
That's just not true buddy, I'm using it now.
I have zero ads...what version have you got installed??

dladz said:
That's just not true buddy, I'm using it now.
I have zero ads...what version have you got installed??
Click to expand...
Click to collapse
I've tried version 4.03 all the way to newer version. The newer version doesn't work because I get not enough space which IS wrong because I would even delete apps from /system and /product to ALLOW more space just in case

jamescable said:
I've tried version 4.03 all the way to newer version. The newer version doesn't work because I get not enough space which IS wrong because I would even delete apps from /system and /product to ALLOW more space just in case
Click to expand...
Click to collapse
Your don't have enough space because you're not using systemless mate, no other reason.
I'm currently on 4.38
Everybody using xXx using using it, everybody who's rooted is probably using it

dladz said:
Your don't have enough space because you're not using systemless mate, no other reason.
I'm currently on 4.38
Everybody using xXx using using it, everybody who's rooted is probably using it
Click to expand...
Click to collapse
Maybe it's because I am on custom rom RR

jamescable said:
Maybe it's because I am on custom rom RR
Click to expand...
Click to collapse
Ahhh buddy, this is why you explain what operating system you're on, what firmware when asking about a problem, especially when it seems odd to others.
This question should be asked in the RR thread, as it's not relevant anywhere else.
I've never used RR but anything I suggest is going to be futile because of the fact that you're running RR.
For example, Titanium does not work for me on Carbon, simply would not see root so I couldn't restore a thing.
The advice I've provided in regards to what needs to be done in magisk to get adaway working is accurate..
For RR id have thought that it would be the same, now I don't think that's the case.
See what they say in the RR thread mate.

jamescable said:
Adaway does not work for, even using systemless mode with magisk. I have an older twrp flashable zip that works for Oero and older but don't know how to update it to work with Android 10+
Click to expand...
Click to collapse
jamescable said:
I've tried version 4.03 all the way to newer version. The newer version doesn't work because I get not enough space which IS wrong because I would even delete apps from /system and /product to ALLOW more space just in case
Click to expand...
Click to collapse
You can't delete them, it's impossible. All devices launched with Android 10 and dynamic partitions have read only system, vendor, product etc and zero free space is by design. That's why magisk is the only option.
Tell your custom rom dev to reserve free space and allow R/W for system when compiling the ROM, that's the only way to directly modify the system.
Systemless hosts does work on custom ROMs, I have tried it myself. After enabling systemless hosts, reboot, then open adaway and try again.

^there you have it!

galaxys said:
^there you have it!
Click to expand...
Click to collapse
Not really. No one paid attention to the title. Update the flashable zip so we can just flash a hosts file of our choice and no apps needed

jamescable said:
Not really. No one paid attention to the title. Update the flashable zip so we can just flash a hosts file of our choice and no apps needed
Click to expand...
Click to collapse
It will need to be updated pal

dladz said:
It will need to be updated pal
Click to expand...
Click to collapse
Yes, and it's called Energized Protection or whatever adblock module in manager. Take the source (as reference), edit hosts and zip it up.
It's pointless to update the zip because whatever installation method it has won't work, only a module will work which is basically creating a whole new zip.

Lossyx said:
Yes, and it's called Energized Protection or whatever adblock module in manager. Take the source (as reference), edit hosts and zip it up.
It's pointless to update the zip because whatever installation method it has won't work, only a module will work which is basically creating a whole new zip.
Click to expand...
Click to collapse
My point was, that the hosts change, it will need to continually need to be updated.
Counterintuitive.

dladz said:
My point was, that the hosts change, it will need to continually need to be updated.
Counterintuitive.
Click to expand...
Click to collapse
Not really. I used that SAME zip for 4 years and had no ads system wide. No ads in apps, youtube, chrome, etc never updated

jamescable said:
Not really. I used that SAME zip for 4 years and had no ads system wide. No ads in apps, youtube, chrome, etc never updated
Click to expand...
Click to collapse
I see, well good for you..
I've also used this method and they do slip through, that happened in a lot under 4 years???
Either way I can't help with this.

So, not possible to flash a hosts file to /system_root/system/etc/ ? It seems that everytime I flash the file it get overwritten at boot.

jaheaga said:
So, not possible to flash a hosts file to /system_root/system/etc/ ? It seems that everytime I flash the file it get overwritten at boot.
Click to expand...
Click to collapse
It doesn't get overwritten because it doesn't modify anything in the first place. It's not possible to modify the system on stock software. Either magisk or VPN based adblocker like Blokada is your option.

Related

Why SuperSu is not included by default on Omni?

Why SuperSu is not included by default on Omni? In my opinion, is better to have supersu built-in on the rom's zip. Thanks for your hard work and thanks for I9100 nightlys. :good:
brgroover said:
Why SuperSu is not included by default on Omni? In my opinion, is better to have supersu built-in on the rom's zip. Thanks for your hard work and thanks for I9100 nightlys. :good:
Click to expand...
Click to collapse
Getting delta updates was higher on the list than integrating SSU into the firmware.
There are plans for an opensource version of SuperSU but it hasn't happened yet due to lack of time. It hasn't been a particularly high-priority thing since anyone who can flash Omni can flash SuperSU in recovery, and SSU now includes backuptool support in the non-Pro version.
Entropy512 said:
Getting delta updates was higher on the list than integrating SSU into the firmware.
There are plans for an opensource version of SuperSU but it hasn't happened yet due to lack of time. It hasn't been a particularly high-priority thing since anyone who can flash Omni can flash SuperSU in recovery, and SSU now includes backuptool support in the non-Pro version.
Click to expand...
Click to collapse
Thanks for fast reply. I have used this backuptool script, but when i flashed, new nightly and gapps, supersu disappeared. It's all right now
PS: delta's updates is awesome. I have used many times on CyanogenMod.
There's now a folder within the OpenDelta one where you can put zips to flash after the update. Tried it this morning with Franco, LTE enabler and SuperSU. Works great with TWRP 2.6.3.3.
Sent from my Nexus 4 using Tapatalk
bruce7373 said:
There's now a folder within the OpenDelta one where you can put zips to flash after the update. Tried it this morning with Franco, LTE enabler and SuperSU. Works great with TWRP 2.6.3.3.
Click to expand...
Click to collapse
Where is that folder?
I found no folder in app. On filesystem I get /data/data/eu.chainfire.opendelta/ - it contains two dirs (cache and shared_prefs) and a dead symlink to the nonexistent dir /data/app-lib/eu.chainfire.opendelta
husky69 said:
Where is that folder?
I found no folder in app. On filesystem I get /data/data/eu.chainfire.opendelta/ - it contains two dirs (cache and shared_prefs) and a dead symlink to the nonexistent dir /data/app-lib/eu.chainfire.opendelta
Click to expand...
Click to collapse
/sdcard/OpenDelta/FlashAfterUpdate
Sent from my Nexus 4 using Tapatalk
brgroover said:
Thanks for fast reply. I have used this backuptool script, but when i flashed, new nightly and gapps, supersu disappeared. It's all right now
PS: delta's updates is awesome. I have used many times on CyanogenMod.
Click to expand...
Click to collapse
I don't know about Chainfire's own backuptool script, but with the one I posted elsewhere (named 51-su.sh ) - I only backup the minimum needed for SuperSU to work when installing the app from the Play Store. (e.g. I do not backup the app, since it can be installed from Play - it has a nasty habit of disappearing along with all settings if it's in /system and then is removed from /system, but if it's never in /system to begin with, it'll never uninstall if something gets screwy.)

Unable to convert apps to system (GalaxyA8 Sm-a800i)

Hey guys, i quite unfortunately own a galaxy a8 (a800i). It has almost no dev support. After rooting my phone, i tried converting an app to system(through limk2sd). It did but when i rebooted my phone the app disappeared! Had to manually locate the system files (yes they were there, including the apk) and delete them.
Again,tried it with titanium backup, didnt work out.
Also tried moving the folders manually and i took care to set the correct permissions, the app just wouldnt appear.
At last, after deleting all the system app data and files again, i finally placed the apk with correct permissions in the/system/app folder and rebooted my phone. The app was there but it was force closing.
I tried doing this with 4 different apps, to no avail.
I run stock firmware.
(please note- Although a800F and A800i have same hardware, a800i will not support the others custom recovery, root methods,kernels etc.)
Any devs who might be interested in this? Id be glad.
You need to create a folder with the same name as the apk and push the folder to system app.
Then put apk in the folder with same name
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
You need to create a folder with the same name as the apk and push the folder to system app.
Then put apk in the folder with same name
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
Tried that too, been working on this since 2 days. Nothing seems to work. I have never encountered an error like this before on any other of my devices. All the pre installed system apps are odexed, and the one im trying is not, for obvious reasons. Do you think it has got something to do with the error?
abhinavparasher said:
Tried that too, been working on this since 2 days. Nothing seems to work. I have never encountered an error like this before on any other of my devices. All the pre installed system apps are odexed, and the one im trying is not, for obvious reasons. Do you think it has got something to do with the error?
Click to expand...
Click to collapse
Hmm missing Libs? Or the odex file itself?
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
Hmm missing Libs? Or the odex file itself?
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
No, the lib and the .dex file of the user app im trying to move to system is intact, all im trying to ask is that do you think the system is not accepting the converted app because it has a .dex instead of the regular .odex file which is the case with all system apps?
This assumption might be wild, but considering that i have never faced such an issue before in 10-12 android devices that i have owned in the past, it might be of some use.
abhinavparasher said:
No, the lib and the .dex file of the user app im trying to move to system is intact, all im trying to ask is that do you think the system is not accepting the converted app because it has a .dex instead of the regular .odex file which is the case with all system apps?
This assumption might be wild, but considering that i have never faced such an issue before in 10-12 android devices that i have owned in the past, it might be of some use.
Click to expand...
Click to collapse
Has nothing do do with it, if it's a "user app" as long if the app has all needed files in correct folder it should run. it should be working if it doesn't it might be any issue that the app won't run while in system/app
Sent from my SM-G903F using Tapatalk
So for now, we havnt arrive to any conclusion. All apps break if they are converted to system apps. Tried to do it via TB/Link2sd/various other tools and manually. App components are present in /system/app including the apk and lib, but the app wont appear anywhere on the phone.
abhinavparasher said:
So for now, we havnt arrive to any conclusion. All apps break if they are converted to system apps. Tried to do it via TB/Link2sd/various other tools and manually. App components are present in /system/app including the apk and lib, but the app wont appear anywhere on the phone.
Click to expand...
Click to collapse
That's because it has to be placed inside a folder with the same name as the app
Like /system/app/viper/viper.apk
It can't be /system/app/viper/base.apk
Also libs should be in
System/app/viper/lib/arm/*****.so
Hope this issue helps
Sent from my SM-G903F using Tapatalk
i did try this before. tried it again. It doesnt work. I was extremely careful with directries, app names, libs and permissions.
Like ive said iv done this countless times before on other devices, and it has always worked.
Something else i would like to mention- Thought the app shortcut doesnt appear anywhere, whenever i open the apk file (on my sd card) it says "do you want to update the app" which means the app is actually already installed. I click yes and the app is installed, app icon returns.
I open application manager and open up this app's settings. I get the option of "Uninstall updates" instead of uninstall apps which proves the first time i moved to system, the app became a system app but it disappeared. If i click uninstall updates, the app disappears again. If i try to integrate update with link2sd the app disappears any ways.
There is just no reason for this to happen! So basically im stuck with a phone which barely got a root method, doesnt have a custom recovery, has a enforcing kernel, and doesnt allow me to move apps to /system.
Do you think it might be possible to "flash" the app zip file via a custom recovery? (if we get one for a800i lol)
abhinavparasher said:
i did try this before. tried it again. It doesnt work. I was extremely careful with directries, app names, libs and permissions.
Like ive said iv done this countless times before on other devices, and it has always worked.
Something else i would like to mention- Thought the app shortcut doesnt appear anywhere, whenever i open the apk file (on my sd card) it says "do you want to update the app" which means the app is actually already installed. I click yes and the app is installed, app icon returns.
I open application manager and open up this app's settings. I get the option of "Uninstall updates" instead of uninstall apps which proves the first time i moved to system, the app became a system app but it disappeared. If i click uninstall updates, the app disappears again. If i try to integrate update with link2sd the app disappears any ways.
There is just no reason for this to happen! So basically im stuck with a phone which barely got a root method, doesnt have a custom recovery, has a enforcing kernel, and doesnt allow me to move apps to /system.
Do you think it might be possible to "flash" the app zip file via a custom recovery? (if we get one for a800i lol)
Click to expand...
Click to collapse
Well to be honest I did face same issue with Samsung s health I'm not sure what causes it, can be system related or something.
Don't you have spacex kernel which is set to permissive?
Sent from my SM-G903F using Tapatalk
The only difference is that it happens with me for every app lol.
I did hear about it but im pretty sure its for a800F. Anything related to a800F causes a bootloop in a800i. Someone on the forum tried the spacex kernel. Do you think you can make it compatible somehow?
If nothing works i might just compile a kernel with always_enforce set to false. Then i should be able to change the policy to permissive with seteneforce 0 command.
abhinavparasher said:
The only difference is that it happens with me for every app lol.
I did hear about it but im pretty sure its for a800F. Anything related to a800F causes a bootloop in a800i. Someone on the forum tried the spacex kernel. Do you think you can make it compatible somehow?
If nothing works i might just compile a kernel with always_enforce set to false. Then i should be able to change the policy to permissive with seteneforce 0 command.
Click to expand...
Click to collapse
Are you the dude that's going to test twrp?
I have built a permissive kernel for this device also.
You are welcome to try it.
Sure il try that too. Permissive kernel is something that many of us need. Infact i was gonna make it. Thanks for the effort!
You can pass me the flashable tar file. In the meanwhile, il test the recovery and get back to you.
abhinavparasher said:
Sure il try that too. Permissive kernel is something that many of us need. Infact i was gonna make it. Thanks for the effort!
You can pass me the flashable tar file. In the meanwhile, il test the recovery and get back to you.
Click to expand...
Click to collapse
Here you go, flash with odin or extract the boot.img from the archive and flash with TWRP.
SM-A800I_A800IXXU2AOL2 _boot
ashyx said:
Here you go, flash with odin or extract the boot.img from the archive and flash with TWRP.
SM-A800I_A800IXXU2AOL2 _boot
Click to expand...
Click to collapse
The kernel works perfectly! Root+ selinux set to permissive. Flashed the boot.img with the twrp recovery provided by @ashyx . The recovery as well as the kernel work with no issue whatsoever. The problem with the wifi did not occur this time. Must be related to the old kernel i flashed, it somehow changed the build.prop everytime i flashed something (Including the recovery)
Anyways, now we know that the kernel as well as the recovery works as it should.
I think you should make the post official, recovery as well as root+selinux set to permissive.
Thanks!
abhinavparasher said:
The kernel works perfectly! Root+ selinux set to permissive. Flashed the boot.img with the twrp recovery provided by @ashyx . The recovery as well as the kernel work with no issue whatsoever. The problem with the wifi did not occur this time. Must be related to the old kernel i flashed, it somehow changed the build.prop everytime i flashed something (Including the recovery)
Anyways, now we know that the kernel as well as the recovery works as it should.
I think you should make the post official, recovery as well as root+selinux set to permissive.
Thanks!
Click to expand...
Click to collapse
Released on XDA in Development section: http://forum.xda-developers.com/sam.../kernel-permissive-ll-5-11-kernel-sm-t3312817
DONATE ME HERE IF YOU WANT TO BUY ME A BEER OR HIT THE THANKS BUTTON IF I HELPED YOU
:bump:
abhinavparasher said:
:bump:
Click to expand...
Click to collapse
Tried flashing your apps with twrp?
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
Tried flashing your apps with twrp?
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
Yes, thats the only thing that works. This issue really garners my interest as i have never seen this happening before.

Adaway in Android N (100% Working)

Follow these steps and you will definitely get it working
1.Flash the latest Supersu.zip beta
2.Flash these files Check link here
3.Install app and enable it
4.It works
I wonder what changed with nougat in order to you'se this method?with MM and before the app was enough and just working well.
Midomad said:
I wonder what changed with nougat in order to you'se this method?with MM and before the app was enough and just working well.
Click to expand...
Click to collapse
Basically Nougat made harder to write system partition. That zip applies a workaround making the default hosts file (/system/etc/hosts) a symlink to another host file in a writable mountpoint (/su/etc/hosts). You can find more info here https://github.com/AdAway/AdAway/issues/770.
Midomad said:
I wonder what changed with nougat in order to you'se this method?with MM and before the app was enough and just working well.
Click to expand...
Click to collapse
It is the same issue as discussed here:
http://forum.xda-developers.com/nex...-to-unlock-tethering-nexus-5x-t3231301/page20
The workaround described above doesn't change /system (which would get error corrected back to original), but instead masks the file in /system with an alternate one during boot.
Thank you very much. It works like a charm.
Work also with SuperSU?
Skar3 said:
Work also with SuperSU?
Click to expand...
Click to collapse
Sure,why not?
Midomad said:
Sure,why not?
Click to expand...
Click to collapse
sorry, you're right, I misread Superuser
Am I mistaken, it's working for me without any trick? I am on nougat rooted stock.
Enviado desde mi Nexus 5X mediante Tapatalk
maluus said:
Am I mistaken, it's working for me without any trick? I am on nougat rooted stock.
Click to expand...
Click to collapse
Without this "trick" AdAway It doesn't show an error or fail... but it doesn't works. Try pinging any "supposed to be blocked" url. You may realized it's not blocked anymore.
I attempted this but it does not appear to have installed. I flashed via chainfire. Any ideas?
Thanks, this is much appreciated!
VivaErBetis said:
Without this "trick" AdAway It doesn't show an error or fail... but it doesn't works. Try pinging any "supposed to be blocked" url. You may realized it's not blocked anymore.
Click to expand...
Click to collapse
Yes, this "trick" essentially writes the hosts file to another location, and creates a symlink to it. This way it doesn't need to write to the /system/ directory.
There is a one-line command you can run in terminal emulator that lets you write to /system, but you need to run it each time you reboot, and it's a bit of a nuisance to do so. This lets Adaway work each time without the necessity of a terminal command.
daver68 said:
There is a one-line command you can run in terminal emulator that lets you write to /system, but you need to run it each time you reboot, and it's a bit of a nuisance to do so. This lets Adaway work each time without the necessity of a terminal command.
Click to expand...
Click to collapse
Just an FYI, if you install SuperSU you can write to system and it will stick. You wouldn't need to do anything each boot in that case.
sfhub said:
Just an FYI, if you install SuperSU you can write to system and it will stick. You wouldn't need to do anything each boot in that case.
Click to expand...
Click to collapse
Strange, this is not my experience. I'm running PureNexus (7) and SuperSU Pro, and Adaway does not write to the system. It errors out, until I re-mount /system in terminal emulator
VivaErBetis said:
Without this "trick" AdAway It doesn't show an error or fail... but it doesn't works. Try pinging any "supposed to be blocked" url. You may realized it's not blocked anymore.
Click to expand...
Click to collapse
I didn't try any specific url but it seems like working on their test site.
Enviado desde mi Pixel XL mediante Tapatalk
daver68 said:
Strange, this is not my experience. I'm running PureNexus (7) and SuperSU Pro, and Adaway does not write to the system. It errors out, until I re-mount /system in terminal emulator
Click to expand...
Click to collapse
That is a different problem than the one on stock Noguat then.
On stock without dm-verity disabled, the kernel will use forward error correction to "fix" you changes (ie data corruption) and replace with original. Basically you make the changes and they don't show up.
Nougat , flashed and no app installed, I downloaded adway from official website and working.
Link to original thread just for sure: http://forum.xda-developers.com/showthread.php?t=2190753
Please create Update for Android O.
AdAway works fine on O; no change from Nougat.

persistant changes to hosts file following reboot?

Hi everyone. I'm scratching my head here and struggling to find a solution that doesn't require root.
I've got a hosts file that I love as it blocks nearly all advert servers on my phone.
I know there are several adblocking apps but they all require root.
I have had to remove root as I have some critical apps that still don;t work, even after hiding magisk from the apps within the Magisk Manager.
I've got a magisk patched image that I can "fastboot boot" with and can edit the hosts file (after remounting /system as rw) but when I then reboot afterwards, the hosts file has been overwritten.
Can anyone help me please or give me a pointer of how to make the hosts edits remain following a reboot?
edit2add
I am using stock ROM with latest August patches on my Mi A1
You can't without root even if you do it your system partition will be modified and it will result in phone not booting or just safetynet won't pass.
Use a vpn or I'm pretty sure there's app that can fake a vpn with a ad ban list
Dead-neM said:
You can't without root even if you do it your system partition will be modified and it will result in phone not booting or just safetynet won't pass.
Use a vpn or I'm pretty sure there's app that can fake a vpn with a ad ban list
Click to expand...
Click to collapse
Interesting idea regarding spoof VPN.
Do you know how the hosts file is generated? If it's copied over from somewhere during boot then could I edit the source file it's copied from?
If it's generated procedurally, might I be able to script it to add my edits during creation?
wodgey said:
Interesting idea regarding spoof VPN.
Do you know how the hosts file is generated? If it's copied over from somewhere during boot then could I edit the source file it's copied from?
If it's generated procedurally, might I be able to script it to add my edits during creation?
Click to expand...
Click to collapse
System partition ? so that's a good idea but you'll have to compile a rom to change this file. On Linux distro the host file is a thing you can modify easily. On android it's just deprecated by google as it's use mostly used as an adfilter. And google is an ad company. That's my guess.
Anyway host file will always need root even on Linux.
Simply because it can be used against you.
The problem is more on apps that blocks you because you're rooted than being rooted for changing this file.
If any app could modify host then bang you go to YouTube and it redirect you to something else.
Maybe for you it's just an adblock file but it's a little more than that.
So sorry but it's root or vpn.
Dead-neM said:
System partition ? so that's a good idea but you'll have to compile a rom to change this file. On Linux distro the host file is a thing you can modify easily. On android it's just deprecated by google as it's use mostly used as an adfilter. And google is an ad company. That's my guess.
Anyway host file will always need root even on Linux.
Simply because it can be used against you.
The problem is more on apps that blocks you because you're rooted than being rooted for changing this file.
If any app could modify host then bang you go to YouTube and it redirect you to something else.
Maybe for you it's just an adblock file but it's a little more than that.
So sorry but it's root or vpn.
Click to expand...
Click to collapse
So? Could I possibly extract the system.img from the stock ROM, make the edits there and then recompile?
(I've got a copy of payload.bin that I extracted a few weeks ago, when trying to flash the August security patches (this was before I did a compete flash of stock ROM using fastboot)
That actually seems like it wouldn't take too much effort
wodgey said:
So? Could I possibly extract the system.img from the stock ROM, make the edits there and then recompile?
(I've got a copy of payload.bin that I extracted a few weeks ago, when trying to flash the August security patches (this was before I did a compete flash of stock ROM using fastboot)
That actually seems like it wouldn't take too much effort
Click to expand...
Click to collapse
This will lead to a corrupt system partition modified. As i said the worse thing is you could not boot and the good just won't pass safetynet.
Dead-neM said:
This will lead to a corrupt system partition modified. As i said the worse thing is you could not boot and the good just won't pass safetynet.
Click to expand...
Click to collapse
Ok I understand.
How does the device 'know' that the system partition is corrupt? Does it perform a hash check perhaps?
How would compiling my own custom ROM avoid this same problem?
wodgey said:
Ok I understand.
How does the device 'know' that the system partition is corrupt? Does it perform a hash check perhaps?
How would compiling my own custom ROM avoid this same problem?
Click to expand...
Click to collapse
It does many thing to know that its have been touched. You'll have to modify some stuff and it will work. You'll loose certification but you'll have you own rom.
Dead-neM said:
It does many thing to know that its have been touched. You'll have to modify some stuff and it will work. You'll loose certification but you'll have you own rom.
Click to expand...
Click to collapse
Any chance you can outline the other stuff I'd need to change?
If it's really in-depth then don't worry but if it's just a few bullet-points that I can Google more info on, I'd appreciate it.
wodgey said:
Any chance you can outline the other stuff I'd need to change?
If it's really in-depth then don't worry but if it's just a few bullet-points that I can Google more info on, I'd appreciate it.
Click to expand...
Click to collapse
Search "dm-verity" and "safetynet". The first one is what will look at any r/o partition like system and kernel. It's been a long time since i dig into this. I'm not into this anymore.
But You can disable it but you'll loose safetynet, encrypted partition etc... (i may be wrong but you got the idea). And safetynet look if partition have been modified and you are a certified device if it won't pass the banking app and apps like Pokemon go etc won't work.
Magisk hide the fact that the kernel img have been touch and most app that detect it detect just the app itself. That means magisk capability (su, hide and module)
So you could maybe compile stock rom with a custom host file. Never touch vendor partition! Make a backup before! By booting and not flashing twrp. Do not flash twrp just use the "fastboot boot command"
You'll need to make a custom kernel and system img to flash in order to do it.
I'll try to do a rom without anything modded except kernel without dm verity and system with your host and i guess it needs change too.
I dunno if it will pass safetynet after.
Just don't brick your phone ?
Keep in mind that you'll loose ota. There's a chance that the rom work with just some changes but i can be a mess to do.
Why not trying a custom rom like lineage os?
Using their supersu zip won't you be able to replace the host file then remove root?
Once you make a backup a move it to a pc as a savestate. You are free to try different solution
Dead-neM said:
Search "dm-verity" and "safetynet". The first one is what will look at any r/o partition like system and kernel. It's been a long time since i dig into this. I'm not into this anymore.
But You can disable it but you'll loose safetynet, encrypted partition etc... (i may be wrong but you got the idea). And safetynet look if partition have been modified and you are a certified device if it won't pass the banking app and apps like Pokemon go etc won't work.
Magisk hide the fact that the kernel img have been touch and most app that detect it detect just the app itself. That means magisk capability (su, hide and module)
So you could maybe compile stock rom with a custom host file. Never touch vendor partition! Make a backup before! By booting and not flashing twrp. Do not flash twrp just use the "fastboot boot command"
You'll need to make a custom kernel and system img to flash in order to do it.
I'll try to do a rom without anything modded except kernel without dm verity and system with your host and i guess it needs change too.
I dunno if it will pass safetynet after.
Just don't brick your phone ?
Keep in mind that you'll loose ota. There's a chance that the rom work with just some changes but i can be a mess to do.
Why not trying a custom rom like lineage os?
Using their supersu zip won't you be able to replace the host file then remove root?
Once you make a backup a move it to a pc as a savestate. You are free to try different solution
Click to expand...
Click to collapse
Thanks for info I'll investigate later in the week when I have more time. Monday has arrived too quickly!
Appreciated though

Flash custom packages in TWRP

Hi,
I'm trying to flash a custom zip file from TWRP without success. I want to delete some apps but, after a reboot, I find these apps up and running.
Could be the problem related to A/B seamless system? If yes, where can I find a flashable file working which is good for my purposes with a minimum modification?
Thank you.
syntesys said:
Hi,
I'm trying to flash a custom zip file from TWRP without success. I want to delete some apps but, after a reboot, I find these apps up and running.
Could be the problem related to A/B seamless system? If yes, where can I find a flashable file working which is good for my purposes with a minimum modification?
Thank you.
Click to expand...
Click to collapse
You want a TWRP Debloater?
Mannan Qamar said:
You want a TWRP Debloater?
Click to expand...
Click to collapse
Yes, more or less, I would also install some app in system.
syntesys said:
Yes, more or less, I would also install some app in system.
Click to expand...
Click to collapse
I can't help you with installing Apps in System. But I got a Debloater Script. Thing is it's a bit ..... Extreme. It will remove 95% of all Apps on your system. i.e. after a clean flash, when you flash the script it will remove 95% of the Apps.
Mannan Qamar said:
I can't help you with installing Apps in System. But I got a Debloater Script. Thing is it's a bit ..... Extreme. It will remove 95% of all Apps on your system. i.e. after a clean flash, when you flash the script it will remove 95% of the Apps.
Click to expand...
Click to collapse
Not a problem could you please send it?
syntesys said:
Not a problem could you please send it?
Click to expand...
Click to collapse
Sure. I'll send it later

Categories

Resources