Hey guys
I wrote a script that sends ARP packets using Scapy in Python.
When running that script from a terminal on my rooted phone, it works well. When I try to build an APK (with python buildozer) that would do the same, I'm getting permission errors.
This is the error:
PermissionError: [Errno 1] Operation not permitted
Click to expand...
Click to collapse
I tried the following things:
=================
1. Setting the following permissions in buildozer.spec file:
android.permissions = INTERNET,ACCESS_NETWORK_STATE,ACCESS_WIFI_STATE, NET_RAW, NET_ADMIN
Click to expand...
Click to collapse
2 Setting SUID during runtime:
subprocess.run(["su"])
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Setting internet permissions during runtime:
import android
from android.permissions import request_permissions, Permission
request_permissions([Permission.INTERNET])
Click to expand...
Click to collapse
What am I doing wrong? seems that even though I granted the app root permissions, it's still not enough
When running "id" from within the same process, this is the output:
uid=10281(u0_a281) gid=10281(u0_a281) groups=10281(u0_a281),3003(inet),9997(everybody),20281(u0_a281_cache),50281(all_a281),99909997(u999_everybody) context=u:r:untrusted_app_27:s0:c512,c768'
Click to expand...
Click to collapse
Bump
Related
I delete this folder located at -> /storage/sdcard0/android the folde file name is DO_NOT_DELETE
every time i delete this, after few hours it will comeback
what should i do ??
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and here is the DO_NOT_DELETE folder contain
What is in the file? Probably an app creating it, just a matter of finding which one
Do you use an app called HIDE IT?
rootSU said:
Do you use an app called HIDE IT?
Click to expand...
Click to collapse
i use audio manager just like a HIDE IT
pedropenduko said:
i use audio manager just like a HIDE IT
Click to expand...
Click to collapse
Well its just that according to here, Hide IT uses this aqua file
http://kaushikwavhalhacks.blogspot.co.uk/
rootsu said:
well its just that according to here, hide it uses this aqua file
http://kaushikwavhalhacks.blogspot.co.uk/
Click to expand...
Click to collapse
ok i see so i need to uninstall it , then delete it , then it will never comeback again?:d
trying to remove malware from my android phone ....
monkey test and ties services target to remove from device
phone rooted ,installed busy box
but in terminal it gives me fallowing error
want to remove .b & .ext.base from system-xbin
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Giving fallowing error
najrazlug said:
trying to remove malware from my android phone ....
monkey test and ties services target to remove from device
phone rooted ,installed busy box
but in terminal it gives me fallowing error
want to remove .b & .ext.base from system-xbin
Giving fallowing error
Click to expand...
Click to collapse
cd system/xbin
lsattr
and see the permission of .b .ext.base and .sys.apk then try chattr -your device permissions.
Your device permissions could be different thats why.
I have it installed but after I install the drivers and check the driver status I get this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any help would be much appreciated.
Thanks for any replies.
Sent from my LG-H901 using Tapatalk
That's because the SELinux state is set to "setenforce" by default. Viper4Android needs SELinux to be disabled. Busybox might be missing as well.
Take a look at this thread. It contains a detailed description of the installation of Viper4Android and changing the SELinix settings.
cyvr1 said:
That's because the SELinux state is set to "setenforce" by default. Viper4Android needs SELinux to be disabled. Busybox might be missing as well.
Take a look at this thread. It contains a detailed description of the installation of Viper4Android and changing the SELinix settings.
Click to expand...
Click to collapse
Thank you so much. That command worked perfectly. I can't thank you enough.
linsalata28 said:
Thank you so much. That command worked perfectly. I can't thank you enough.
Click to expand...
Click to collapse
You're welcome.
Is anyone else getting this problem?
I have an error in my notification tray that reade "Couldn't install system update"
When I try to install it from the settings, there is an error: "Couldn't update. Installation problem"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Use full ota
https://android.googleapis.com/packages/ota-api/package/f2ea60f87d0e5e74495a35a2fde83a533fda4783.zip
@Alexey71 thanks for the link
Are you experiencing the error as well?
I want to diagnose the cause of the error first.
harryspar said:
Are you experiencing the error as well?
Click to expand...
Click to collapse
Yes. Android 10 was due to the modification of system files
Try via PC
Code:
adb shell logcat
and ckick try again
Thank you @Alexey71
Modification of system files might be the problem for me too. I am rooted with Magisk.
I got a screenrecord and a logcat (with Logcat Reader app) but I don't know what to look for. Any help is appreciated.
E update_engine:
@Alexey71 Bingo!
harryspar said:
@Alexey71 Bingo!
View attachment 5393727
Click to expand...
Click to collapse
Hash-sum SHA256 does not coincide. Probably some module magisk or other root app changed system files. Just update via full ota, all data and settings are saved. Goog luck
Youll need an rooted s22
First find your cscfeature.xml with root explorer
mine was in root/system/optics/configs/carriers/single/EUX (my CSC code)/conf/system/ and finally cscfeature.xml
copied it to my PC, installed JAVA and decoded with OMC text decoder (google the github link)
and added these lines right under </FeatureSet>
Code:
<CscFeature_VoiceCall_ConfigRecording>
RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
<CscFeature_VoiceCall_IPCallPrefix>false</CscFeature_VoiceCall_IPCallPrefix>
<CscFeature_VoiceCall_TotalCallTime>false</CscFeature_VoiceCall_TotalCallTime>
<CscFeature_VoiceCall_ServiceNumberDisplay>false</CscFeature_VoiceCall_ServiceNumberDisplay>
<CscFeature_VoiceCall_RemoveCallButtonInLogsList>true</CscFeature_VoiceCall_RemoveCallButtonInLogsList>
encoded it back and copied back to my phone, checked the properties for rw-rw-rw-
restarted and viola, call recording is working!
the xml looks like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BIG thanks to pitelasssss!!
Why did you need to add so many lines?
Isn't it sufficient just to add:
<CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
Or... having root and lsposed installed (up and running), install my OneUI_4_Phone_X from here
ZXR said:
Why did you need to add so many lines?
Isn't it sufficient just to add:
<CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
Click to expand...
Click to collapse
more lines - more adidas
John525 said:
Looking for a close to issue. Expecting more reply.
Click to expand...
Click to collapse
huh??
juda iskariotsky said:
huh??
Click to expand...
Click to collapse
Just spam, don't mind this message. I have deleted the post.