AdFree Android not Working Anymore? - Xperia Z3v General

I recently had to re-flash my firmware, but after re-installing AdFree Android it just hangs on loading forever. Manually patching the the modified hosts file doesn't block ads either. Is there another way to block these ads?
EDIT: NVM, I just found an Xposed Module that does the job perfectly.

UnbelovedHosts :good:

clearionr said:
Which module is that?
Click to expand...
Click to collapse
You're welcome.

Hello I installed Adfree via apk and when I load it just hangs on load checking to see if host files are up to date. I'm running G3 D852 SU Rooted

Related

[Q] Possible to install modified app (from system/app) as normal app?

Hi,
I modified "SamsungCamera2" from my Note 3 and would like to install it now on my Note 3. My phone is not rooted and doing so would currently trip the knox counter (I don´t want that).
If I try to install the apk I get the message "application not installed".
Is it somehow possible to convert the apk so that I can install it as a "normal app"?
Best wishes,
Klaus
oclock said:
Hi,
I modified "SamsungCamera2" from my Note 3 and would like to install it now on my Note 3. My phone is not rooted and doing so would currently trip the knox counter (I don´t want that).
If I try to install the apk I get the message "application not installed".
Is it somehow possible to convert the apk so that I can install it as a "normal app"?
Best wishes,
Klaus
Click to expand...
Click to collapse
no root no party, however i think that its possible to root the phone over knox without count
to install system apk you can do in 3 ways
1.install normally by a file manager as normal apk but in this way you can only install ORIGINAL APK like official update NO MOD
2.copying the apk and maybe the odex in /system/app NEED ROOT
3.using clockworkmod NEED ROOT,or maybe using the stock samsung recovery need a flashable zip of your app
enjoy
AXD96 said:
no root no party, however i think that its possible to root the phone over knox without count
to install system apk you can do in 3 ways
1.install normally by a file manager as normal apk but in this way you can only install ORIGINAL APK like official update NO MOD
2.copying the apk and maybe the odex in /system/app NEED ROOT
3.using clockworkmod NEED ROOT,or maybe using the stock samsung recovery need a flashable zip of your app
enjoy
Click to expand...
Click to collapse
Thank you for your answer.
With my current firmware there is no known method to get root without knox=0x1.
If I develop my own app I can install it without problems. So, what exactly makes apps from system/app different?
How does Android know that I did not implement this App by myself?
Is there a way to further modify the app so that it looks like I implemented it by myself and install it then?
oclock said:
Thank you for your answer.
But if I develop my own app I can install it without problems.
So, what exactly makes apps from system/app different?
How does Android know that I did not implement this App by myself?
Is there a way to further modify the app so that it looks like I implemented it by myself and install it then?
Click to expand...
Click to collapse
Android expects applications installed by opening the APK to be signed.
It's quite easy to sign them with a generic certificate: but when apps are updated both the old (in /system) and the new version must be signed with the same one.
(Extreme problems lead to extreme solutions: if you need Samsung service, flash a bad bootloader so that's permanently bricked and doesn't even get to Odin...)
Ryccardo said:
Android expects applications installed by opening the APK to be signed.
It's quite easy to sign them with a generic certificate: but when apps are updated both the old (in /system) and the new version must be signed with the same one.
Click to expand...
Click to collapse
Thank you for the explanation and thank you for the hint
But how does Android know that I am trying to Update an already existing app? Is it just because of the class names of the MainActivity? Is it possible to refactor the app, so that it looks like a brand new app?
oclock said:
Thank you for the explanation and thank you for the hint
But how does Android know that I am trying to Update an already existing app? Is it just because of the class names of the MainActivity? Is it possible to refactor the app, so that it looks like a brand new app?
Click to expand...
Click to collapse
I believe, but have never tried, that it goes by the package ID
Ryccardo said:
I believe, but have never tried, that it goes by the package ID
Click to expand...
Click to collapse
It seems to be the correct way. However, something seems to be odd:
I the log I get the following:
12-29 23:47:03.981: E/AndroidRuntime(27444): java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.cameraoc/com.sec.android.app.camera.Camera}: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission
However, this permission is set in the AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sec.android.app.cameraoc">
<uses-permission android:name="android.permission.CAMERA"/>
[...]
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/>
[...]
Do you have any ideas why this permission isn´t recognized?
oclock said:
Thank you for your answer.
With my current firmware there is no known method to get root without knox=0x1.
If I develop my own app I can install it without problems. So, what exactly makes apps from system/app different?
How does Android know that I did not implement this App by myself?
Is there a way to further modify the app so that it looks like I implemented it by myself and install it then?
Click to expand...
Click to collapse
dont said me thanks, just click the thanks button on the left of message
no you can't
every APK has got a signature when you modify an apk or the mali code the signature became invalid so you cant install that apk anymore until you sign again the apk
if the signature is different you cant install system apk when you has already installed an app with the same packace address
else if the signature is the same (only the author of the app has got the original key of signature) you can install it
there is a critical bug in android until 4.2.2 version, the MASTERKEY BUG
google fix it in android 4.3
i got root with this bug using cydia impactor
with this bug/exploit you was able to modify system partition bypassing signature protection and then get root so you was able to have full access to your phone
---------- Post added at 01:16 PM ---------- Previous post was at 01:12 PM ----------
oclock said:
It seems to be the correct way. However, something seems to be odd:
I the log I get the following:
12-29 23:47:03.981: E/AndroidRuntime(27444): java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.cameraoc/com.sec.android.app.camera.Camera}: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission
However, this permission is set in the AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sec.android.app.cameraoc">
<uses-permission android:name="android.permission.CAMERA"/>
[...]
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/>
[...]
Click to expand...
Click to collapse
where did you find the log?
AXD96 said:
dont said me thanks, just click the thanks button on the left of message
no you can't
every APK has got a signature when you modify an apk or the mali code the signature became invalid so you cant install that apk anymore until you sign again the apk
if the signature is different you cant install system apk when you has already installed an app with the same packace address
else if the signature is the same (only the author of the app has got the original key of signature) you can install it
Click to expand...
Click to collapse
OK. This was already made clear some posts above. My new question was: Can I change the signature to install it as a "new" app.
I tried it out by myself. I modified the manifest file to change the android package name from "com.sec.android.app.camera" to "com.sec.android.app.cameraoc". The java package is unchanged.
With this modification i could install the app without any problems, but I get a permission exception, when I try to execute the App:
12-29 23:47:03.981: E/AndroidRuntime(27444): java.lang.RuntimeException: Unable to resume activity {com.sec.android.app.cameraoc/com.sec.android.app.camera.Camera}: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission
However, this permission is set in the AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sec.android.app.cameraoc">
<uses-permission android:name="android.permission.CAMERA"/>
[...]
<uses-permission android:name="android.permission.SET_ANIMATION_SCA LE"/>
[...]
So, i do not understand why I get this Exception. Do you have any ideas?
Klaus
I got the exact same issue when modding the S5's camera apk. The trick is to open your original apk with an archive manager and only replace the classes.dex and resources.arsc. I then copied the apk to /system/app/ and after a reboot I could successfully launch the camera.
More details about hacking system apk's can be found here: https://code.google.com/p/android-apktool/wiki/FAQ (My recompiled apk Force Closes (FCs). What gives?)

[Q] prevent updates on hdx 8.9

hi,
i'm pretty sure this is explained somewhere, but i cant find it.
how can i prevent my hdx 8.9 from auto updating, i remember reading something about renaming some files,
but cant find.
thx for the help
Rename /system/app/com.amazon.dcp.apk to com.amazon.dcp.apk_
Reboot.
Enjoy.
The HDX Toolkit by Faznx92 has an option for this.
It depends
Broadway666 said:
hi,
i'm pretty sure this is explained somewhere, but i cant find it.
how can i prevent my hdx 8.9 from auto updating, i remember reading something about renaming some files,
but cant find.
thx for the help
Click to expand...
Click to collapse
If you plan on installing Google of any form and needing xposed and hdx module found here in the development section . Then the answer would be none of the above. Simply install the framework reboot device install HDX module 1.3 , go back to framework installer open up modules section and be sure to check box is checked for the HDX module 1.3 reboot and finished no more blocking needed. All this and above of course has to be on a rooted device
ONYXis said:
Rename /system/app/com.amazon.dcp.apk to com.amazon.dcp.apk_
Reboot.
Enjoy.
Click to expand...
Click to collapse
Renaming that package by itself does block ota but may disable other useful system functions.
My toolkit has a method as well as HDXposed v1.3
Care to read more here.
Faznx92 said:
Renaming that package by itself does not truly stop ota.
My toolkit has a method as well as HDXposed v1.3
Care to read more here.
Click to expand...
Click to collapse
Your tool disables ota through disable some activity in this file. -pm disable bla-bla. Changing extension in my method equal deleting this file. It safe, 100% works and very easy to do without PC. Hdxposed 1.3 find update.bin at sdcard, so I do not 100% sure that it prevent in future.
So totally working method is rename/del com.amazon.dcp.apk or using your tool (but pm disable component is not safe that deleting it totally, isn't it? )
ONYXis said:
Your tool disables ota through disable some activity in this file. -pm disable bla-bla. Changing extension in my method equal deleting this file. It safe, 100% works and very easy to do without PC. Hdxposed 1.3 find update.bin at sdcard, so I do not 100% sure that it prevent in future.
So totally working method is rename/del com.amazon.dcp.apk or using your tool (but pm disable component is not safe that deleting it totally, isn't it? )
Click to expand...
Click to collapse
The reason I advise using the tools are in case an app or mod changes the file name back (although it is unlikely it is possible). It disables some functions the file runs while keeping others active for testing purposes. Running my toolkit blocker and HDXposed is easier for the inexperienced users. Yes renaming com.amazon.dcp.apk alone works but it does not block when testing other components in the apk.
I'm testing other functions in the dcp.apk but it is not my priority atm.
jimyv said:
If you plan on installing Google of any form and needing xposed and hdx module found here in the development section . Then the answer would be none of the above. Simply install the framework reboot device install HDX module 1.3 , go back to framework installer open up modules section and be sure to check box is checked for the HDX module 1.3 reboot and finished no more blocking needed. All this and above of course has to be on a rooted device
Click to expand...
Click to collapse
What would happen if I rename the file com.amazon.yadda file back to it's original state? Would that be recommended? What exactly would I have to do after that?
Personally
REEFIS said:
What would happen if I rename the file com.amazon.yadda file back to it's original state? Would that be recommended? What exactly would I have to do after that?
Click to expand...
Click to collapse
I would just so that I know that the only modification I had was the Xposed and hdxposed apk. I would also reinstall this apk. After rename and reboot..just me

AdAway not blocking ads after updating my OnePlus 3T to Android Pie

Hi, so I upgraded to Android Pie last night. My phone is rooted and running OOS 9.0.2 now. I installed AdAway from F-Droid and the one from the XDA thread and installed the host files. AdAway says "Failed To load hosts file content" when I click the "Open hosts file" tab. Even added Systemless Hosts from Magisk and still no fix. Can someone help me out? Thanks
Have you rooted your device after updating to A pie ?
Sent from my K10 using Tapatalk
Yes I have. It seems the issue here is the root directory is full. 0B free. Need to free up some space to let AdAway install the host files, but I'm not sure how to do it.
Frank Dewey said:
Yes I have. It seems the issue here is the root directory is full. 0B free. Need to free up some space to let AdAway install the host files, but I'm not sure how to do it.
Click to expand...
Click to collapse
I was having problem enabling adaway on OOS 9.0.2 because not enough space for hosts file. My problem was solved by activating systemless host in magisk manager >> restart phone>>install adaway from f-droid>>enabling adblocking.

AdAway - Ads block for Rooted

Hi All
After rooting device (RMN9s) with Magisk pachted boot method from https://forum.xda-developers.com/re...root-redmi-note-9-pro-miui-v11-0-4-0-t4072781, I had tried to install AdAway to block Ads and below is instruction:
1. In Magisk Manager settings enable 'Systemless hosts' + enable module.
2. Reboot.
3. Visit https://github.com/AdAway/AdAway get AdAway v5 (support Android 10).
4. Install and allow Root access, if AdAway can replace hosts file you are good to use.
Why use Adaway when adguard DNS do the same???????
Why another app ???
dns.adguard.com
P.Rabbit said:
Why use Adaway when adguard DNS do the same???????
Why another app ???
dns.adguard.com
Click to expand...
Click to collapse
AdAway is for power-users.
P.Rabbit said:
Why use Adaway when adguard DNS do the same???????
Why another app ???
dns.adguard.com
Click to expand...
Click to collapse
Well I prefer AdAway (hosts method) for a long time since using RMN5Pro with Android 7.
And it works very good so I want to share with everyone who also like it
wjzhweo said:
Well I prefer AdAway (hosts method) for a long time since using RMN5Pro with Android 7.
And it works very good so I want to share with everyone who also like it
Click to expand...
Click to collapse
You said you are root. You can copy your new host file directly to system/etc folder or use Magisk host module and no more Adaway need.
lolo9393 said:
You said you are root. You can copy your new host file directly to system/etc folder or use Magisk host module and no more Adaway need.
Click to expand...
Click to collapse
The thing is we want the app AdAway. It is awesome!
lolo9393 said:
You said you are root. You can copy your new host file directly to system/etc folder or use Magisk host module and no more Adaway need.
Click to expand...
Click to collapse
Can not mount system/etc to rw to copy hosts file as your suggestion. (see this ref https://github.com/topjohnwu/Magisk/issues/1729)
btw why should do that when you can install AdAway App and they will update list-url-Ads hosts and you can enjoy auto-update your hosts file thru it ?
Easier than your "copy" and "module" method
wjzhweo said:
Can not mount system/etc to rw to copy hosts file as your suggestion. (see this ref https://github.com/topjohnwu/Magisk/issues/1729)
btw why should do that when you can install AdAway App and they will update list-url-Ads hosts and you can enjoy auto-update your hosts file thru it ?
Easier than your "copy" and "module" method
Click to expand...
Click to collapse
Thanks for your feedback info. Good point!
I am going to try/test AdAway.
how i can dowload it? i dont see it on github
nvm i found it
thank you po

OP7T Pro MClaren Stock Android 10 T-Mobile (5g)

Only for OP7T PRO MCLAREN EDITION (5G) T-MOBILE​Someone is experiencing issues in android 11 in op7t pro MClaren Edition 5g (T-mobile). If your phone is bricked or you want to downgrade to stock android 10 - please follow the procedure below.....
1. Download the zip from here - op7t pro mclaren 5g - android 10
2. Unzip it.
3. Install qualcom driver from L2 drivers folder (If needed)
4. Run as administrator - MSMdownload Tool v.4 - from hotdogg_13_A.01_210311_repack folder.
5. Log in as other.
6. Power off your device . Hold volume up and down together and connect usb through original usb cable || You will be connected in EDL mode.
7. If com port is connected than start the flash from above left corner.
Tips : If com port is not connected try to power off your device and try again to enter into EDL mode (Do that until com is connected) .
TRY THIS TO DISABLE UPDATE:
adb shell pm disable-user --user 0 com.oneplus.opbackup
This information has been posted in another, much more detailed thread for over a year...
And I wouldn't trust that file either
Suspicious, no?
I have provided the official stock and final android 10 rom. Thank you.
and how do you then disable the updates? from being pushed to you
botN3t said:
and how do you then disable the updates? from being pushed to you
Click to expand...
Click to collapse
Turn on developer options tapping build number constantly and than turn off automatic update there. That's it, enjoy.
Nabil Prodhan said:
Turn on developer options tapping build number constantly and than turn off automatic update there. That's it, enjoy.
Click to expand...
Click to collapse
That doesn't work anymore; that's why everyone is complaining that they are being force updated to OOS11.
I know there's a better way, such as finding the right app and disabling it, but you can block the host it gets the updates from using an adblocker like AdAway. Updates come from
https://android.googleapis.com/packages/ota-api/
so if you block that (add it to your hosts file), you should be good.
starcms said:
That doesn't work anymore; that's why everyone is complaining that they are being force updated to OOS11.
I know there's a better way, such as finding the right app and disabling it, but you can block the host it gets the updates from using an adblocker like AdAway. Updates come from
https://android.googleapis.com/packages/ota-api/
so if you block that (add it to your hosts file), you should be good.
Click to expand...
Click to collapse
I try to add to host but it still download update any another way or web i can use ?
meovoz said:
I try to add to host but it still download update any another way or web i can use ?
Click to expand...
Click to collapse
That's the only simple way I could think of making it impossible to download the update so it would then just fail to update. You sure you have the option on in Magisk settings in addition to whatever app you are using?
Edit: The "correct" way of stopping it would be to find the service which controls updates and kill it. But since I've not an issue with OOS11 (it actually fixed my broken SA 5G and HD call functionality that I lost due to using the NSG app. MSM restore and persist restore couldn't fix it. Never ever install that app on this phone) I never looked into it.
starcms said:
That's the only simple way I could think of making it impossible to download the update so it would then just fail to update. You sure you have the option on in Magisk settings in addition to whatever app you are using?
Click to expand...
Click to collapse
Well if i add https://android.googleapis.com/packages/ota-api/ it still can download but if i add https://android.googleapis.com/ it will not but it also can't signin google acc anymore
meovoz said:
Well if i add https://android.googleapis.com/packages/ota-api/ it still can download but if i add https://android.googleapis.com/ it will not but it also can't signin google acc anymore
Click to expand...
Click to collapse
Omg, are you serious? That's obnoxious. But you should be able to block only the full url successfully. What AdBlock app are u using?
And see my edit in post above
starcms said:
That's the only simple way I could think of making it impossible to download the update so it would then just fail to update. You sure you have the option on in Magisk settings in addition to whatever app you are using?
Edit: The "correct" way of stopping it would be to find the service which controls updates and kill it. But since I've not an issue with OOS11 (it actually fixed my broken SA 5G and HD call functionality that I lost due to using the NSG app. MSM restore and persist restore couldn't fix it. Never ever install that app on this phone) I never looked into it.
Click to expand...
Click to collapse
Is there anyway to view what correct host it connect to
starcms said:
Omg, are you serious? That's obnoxious. But you should be able to block only the full url successfully. What AdBlock app are u using?
And see my edit in post above
Click to expand...
Click to collapse
I use adaway to block it
meovoz said:
I use adaway to block it
Click to expand...
Click to collapse
Yep, that's what I use and was gonna suggest...
Hmm, hehe, try this...
It downloads the OTA package to
/data/ota_package/payload_metadata.bin
If there's a file there, delete it, then create a blank file named payload_metadata.bin and remove all permissions from the file (--- --- --- or 0000) so the system can't overwrite it.
starcms said:
Yep, that's what I use and was gonna suggest...
Hmm, hehe, try this...
It downloads the OTA package to
/data/ota_package/payload_metadata.bin
If there's a file there, delete it, then create a blank file named payload_metadata.bin and remove all permissions from the file (--- --- --- or 0000) so the system can't overwrite it.
Click to expand...
Click to collapse
It only have metadata and payload_properties.txt
meovoz said:
It only have metadata and payload_properties.txt
Click to expand...
Click to collapse
Create a file named payload_metadata.bin and remove all permissions.
But here's a better plan:
Use Magisk to "over-write" systemlessly /system/etc/security/otacerts.zip with a blank file named otacerts.zip
Then the system can't verify the updates and they will fail
starcms said:
Create a file named payload_metadata.bin and remove all permissions.
But here's a better plan:
Use Magisk to "over-write" systemlessly /system/etc/security/otacerts.zip with a blank file named otacerts.zip
Then the system can't verify the updates and they will fail
Click to expand...
Click to collapse
Well i never create a magik module
starcms said:
Create a file named payload_metadata.bin and remove all permissions.
But here's a better plan:
Use Magisk to "over-write" systemlessly /system/etc/security/otacerts.zip with a blank file named otacerts.zip
Then the system can't verify the updates and they will fail
Click to expand...
Click to collapse
Is there anyway to view where it download from i still like the way block with host file
meovoz said:
Is there anyway to view where it download from i still like the way block with host file
Click to expand...
Click to collapse
It downloads a long, "random" named file from https://android.googleapis.com/packages/ota-api/ I told you this already
starcms said:
Create a file named payload_metadata.bin and remove all permissions.
But here's a better plan:
Use Magisk to "over-write" systemlessly /system/etc/security/otacerts.zip with a blank file named otacerts.zip
Then the system can't verify the updates and they will fail
Click to expand...
Click to collapse
I did it let see it can last long
meovoz said:
I did it let see it can last long
Click to expand...
Click to collapse
Let us know!

Categories

Resources