Hi guys, i'd like to introduce this project of mine and hopefully find some beta testers for it
dSploit is an Android network analysis and penetration suite which aims to offer to IT security experts/geeks the most complete and advanced professional toolkit to perform network security assesments on a mobile device.
Once dSploit is started, you will be able to easily map your network, fingerprint alive hosts operating systems and running services, search for known vulnerabilities, crack logon procedures of many tcp protocols, perform man in the middle attacks such as password sniffing ( with common protocols dissection ), real time traffic manipulation, etc, etc .
It's still in beta stage so unexpected behaviour could happen, after all i need b-testers for this reason
ANNOUNCEMENT: dSploit merges with ZImperium zANTI2
Great app, thanks
Skickat från min ST18i via Tapatalk 2
devstaff said:
Great app, thanks
Skickat från min ST18i via Tapatalk 2
Click to expand...
Click to collapse
Thanks to you for using and testing it
First time after it loads the netowork, after like 2 seconds, it crashed and started FC-ing thereafter.
Toast states that a log has been sent but I'll attached it anyway.
Hope it can be fixed soon! Subscribed to this thread!
Code:
E/SYSTEM (18861): java.io.FileNotFoundException: /data/data/it.evilsocket.dsploit/files/tools/nmap/nmap-services (No such file or directory)
E/SYSTEM (18861): java.io.FileNotFoundException: /data/data/it.evilsocket.dsploit/files/tools/nmap/nmap-mac-prefixes (No such file or directory)
E/su (18870): sudb - Database closed
E/su (18893): sudb - Opening database
E/su (18893): sudb - Database opened
E/su (18893): sudb - Database closed
E/su (18905): sudb - Opening database
E/su (18905): sudb - Database opened
E/su (18905): sudb - Database closed
E/su (18916): sudb - Opening database
E/su (18916): sudb - Database opened
E/su (18916): sudb - Database closed
E/su (18928): sudb - Opening database
E/su (18928): sudb - Database opened
E/su (18928): sudb - Database closed
E/kernel ( 132): [19972.000244] init: untracked pid 18730 exited
E/ACRA (18861): ACRA caught a RuntimeException exception for it.evilsocket.dsploit. Building report.
E/ACRA (18861): it.evilsocket.dsploit fatal error : Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18861): java.lang.RuntimeException: Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18861): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2073)
E/ACRA (18861): at android.app.ActivityThread.access$2800(ActivityThread.java:121)
E/ACRA (18861): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1006)
E/ACRA (18861): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA (18861): at android.os.Looper.loop(Looper.java:130)
E/ACRA (18861): at android.app.ActivityThread.main(ActivityThread.java:3701)
E/ACRA (18861): at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA (18861): at java.lang.reflect.Method.invoke(Method.java:507)
E/ACRA (18861): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/ACRA (18861): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
E/ACRA (18861): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (18861): Caused by: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18861): at android.os.Parcel.readException(Parcel.java:1326)
E/ACRA (18861): at android.os.Parcel.readException(Parcel.java:1276)
E/ACRA (18861): at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:274)
E/ACRA (18861): at android.app.NotificationManager.notify(NotificationManager.java:111)
E/ACRA (18861): at android.app.NotificationManager.notify(NotificationManager.java:91)
E/ACRA (18861): at it.evilsocket.dsploit.net.NetworkMonitorService.sendNotification(NetworkMonitorService.java:70)
E/ACRA (18861): at it.evilsocket.dsploit.net.NetworkMonitorService.onStartCommand(NetworkMonitorService.java:94)
E/ACRA (18861): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2060)
E/ACRA (18861): ... 10 more
E/InputDispatcher( 260): channel '2b2fbf18 Toast (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 260): channel '2b2fbf18 Toast (server)' ~ Channel is unrecoverably broken and will be disposed!
E/su (18973): sudb - Opening database
E/su (18973): sudb - Database opened
E/su (18973): sudb - Database closed
E/su (18985): sudb - Opening database
E/su (18985): sudb - Database opened
E/su (18985): sudb - Database closed
E/su (18997): sudb - Opening database
E/su (18997): sudb - Database opened
E/su (18997): sudb - Database closed
E/su (19008): sudb - Opening database
E/su (19008): sudb - Database opened
E/su (19008): sudb - Database closed
E/ACRA (18964): ACRA caught a RuntimeException exception for it.evilsocket.dsploit. Building report.
E/ACRA (18964): it.evilsocket.dsploit fatal error : Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18964): java.lang.RuntimeException: Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18964): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2073)
E/ACRA (18964): at android.app.ActivityThread.access$2800(ActivityThread.java:121)
E/ACRA (18964): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1006)
E/ACRA (18964): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA (18964): at android.os.Looper.loop(Looper.java:130)
E/ACRA (18964): at android.app.ActivityThread.main(ActivityThread.java:3701)
E/ACRA (18964): at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA (18964): at java.lang.reflect.Method.invoke(Method.java:507)
E/ACRA (18964): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/ACRA (18964): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
E/ACRA (18964): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (18964): Caused by: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (18964): at android.os.Parcel.readException(Parcel.java:1326)
E/ACRA (18964): at android.os.Parcel.readException(Parcel.java:1276)
E/ACRA (18964): at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:274)
E/ACRA (18964): at android.app.NotificationManager.notify(NotificationManager.java:111)
E/ACRA (18964): at android.app.NotificationManager.notify(NotificationManager.java:91)
E/ACRA (18964): at it.evilsocket.dsploit.net.NetworkMonitorService.sendNotification(NetworkMonitorService.java:70)
E/ACRA (18964): at it.evilsocket.dsploit.net.NetworkMonitorService.onStartCommand(NetworkMonitorService.java:94)
E/ACRA (18964): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2060)
E/ACRA (18964): ... 10 more
E/InputDispatcher( 260): channel '2b475ec0 it.evilsocket.dsploit/it.evilsocket.dsploit.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 260): channel '2b475ec0 it.evilsocket.dsploit/it.evilsocket.dsploit.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
frenzyboi said:
First time after it loads the netowork, after like 2 seconds, it crashed and started FC-ing thereafter.
Toast states that a log has been sent but I'll attached it anyway.
Hope it can be fixed soon! Subscribed to this thread!
...
Click to expand...
Click to collapse
Yep you are the 2.3.4 Android crash report one, aren't you ?
I'm investigating to fix this as soon as possible, 2.3 support is still VERY experimental ( i do not have a 2.3 device and i can't test the app on the emulator due to unhandled functionalities ).
Can you post source-code so we know any private information is not sent to you?
bladez said:
Can you post source-code so we know any private information is not sent to you?
Click to expand...
Click to collapse
The source code is on github too github DOT com SLASH evilsocket SLASH dsploit ( i can't post external links yet ).
This is a very interesting app. I do agree with the above poster. That would be a very nice gesture on the devs part. I look forward to the development of this app.
evilsocket said:
Yep you are the 2.3.4 Android crash report one, aren't you ?
I'm investigating to fix this as soon as possible, 2.3 support is still VERY experimental ( i do not have a 2.3 device and i can't test the app on the emulator due to unhandled functionalities ).
Click to expand...
Click to collapse
Yep! I'm on Xperia Ray 2.3.4, rooted.
I'll be your beta tester then ^^ I'll report all bugs etc I encounter so this application can be used by many others using the same version of Android!
Don't worry, the community will help too!
For those using the XDADeveloper Android app, the clickable link is at
https://github.com/evilsocket/dsploit
frenzyboi said:
Yep! I'm on Xperia Ray 2.3.4, rooted.
I'll be your beta tester then ^^ I'll report all bugs etc I encounter so this application can be used by many others using the same version of Android!
Don't worry, the community will help too!
Click to expand...
Click to collapse
Thanks dude!!!!! I tried to get some help from the italian community ( the country i am from ) but we lack a tech forum like this, you help is REALLY appreciated ... really.
Anyway, i've just released the 1.0.8b and hopefully fixed that bug, can you confirm that ?
Feel free to use the issue tracker on github to post issues, i think it's better to keep track of bugs ^^
evilsocket said:
Thanks to you for using and testing it
Click to expand...
Click to collapse
No problem,
but I found a problem with the app, take a look at the screenshot and look look on the textbox popup thingy, plz fix it:
{
"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"
}
Can I be a betatester of the app? I use a Xperia Ray with Android 4.0.4and latest busybox and superuser binary
Skickat från min ST18i via Tapatalk 2
devstaff said:
No problem,
but I found a problem with the app, take a look at the screenshot and look look on the textbox popup thingy, plz fix it:
@
Click to expand...
Click to collapse
Seems like a resolution related bug, gonna create a new issue and fix it asap
evilsocket said:
Thanks dude!!!!! I tried to get some help from the italian community ( the country i am from ) but we lack a tech forum like this, you help is REALLY appreciated ... really.
Anyway, i've just released the 1.0.8b and hopefully fixed that bug, can you confirm that ?
Feel free to use the issue tracker on github to post issues, i think it's better to keep track of bugs ^^
Click to expand...
Click to collapse
Sadly, still having FC
Code:
E/ACRA (22236): ACRA caught a RuntimeException exception for it.evilsocket.dsploit. Building report.
E/ACRA (22236): it.evilsocket.dsploit fatal error : Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (22236): java.lang.RuntimeException: Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.net.NetworkMonitorService }: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (22236): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2073)
E/ACRA (22236): at android.app.ActivityThread.access$2800(ActivityThread.java:121)
E/ACRA (22236): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1006)
E/ACRA (22236): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA (22236): at android.os.Looper.loop(Looper.java:130)
E/ACRA (22236): at android.app.ActivityThread.main(ActivityThread.java:3701)
E/ACRA (22236): at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA (22236): at java.lang.reflect.Method.invoke(Method.java:507)
E/ACRA (22236): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/ACRA (22236): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
E/ACRA (22236): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (22236): Caused by: java.lang.IllegalArgumentException: contentIntent required: pkg=it.evilsocket.dsploit id=1 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10)
E/ACRA (22236): at android.os.Parcel.readException(Parcel.java:1326)
E/ACRA (22236): at android.os.Parcel.readException(Parcel.java:1276)
E/ACRA (22236): at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:274)
E/ACRA (22236): at android.app.NotificationManager.notify(NotificationManager.java:111)
E/ACRA (22236): at android.app.NotificationManager.notify(NotificationManager.java:91)
E/ACRA (22236): at it.evilsocket.dsploit.net.NetworkMonitorService.sendNotification(NetworkMonitorService.java:72)
E/ACRA (22236): at it.evilsocket.dsploit.net.NetworkMonitorService.onStartCommand(NetworkMonitorService.java:96)
E/ACRA (22236): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2060)
E/ACRA (22236): ... 10 more
E/InputDispatcher( 260): channel '2b414d58 it.evilsocket.dsploit/it.evilsocket.dsploit.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 260): channel '2b414d58 it.evilsocket.dsploit/it.evilsocket.dsploit.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/ACRA (22353): ACRA caught a RuntimeException exception for it.evilsocket.dsploit. Building report.
E/ACRA (22353): it.evilsocket.dsploit fatal error : Unable to start service [email protected] with Intent { cmp=it.evilsocket.dsploit/.core.UpdateService }: java.lang.NullPointerException
E/ACRA (22353): java.lang.RuntimeException: Unable to start service [email protected]248 with Intent { cmp=it.evilsocket.dsploit/.core.UpdateService }: java.lang.NullPointerException
E/ACRA (22353): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2073)
E/ACRA (22353): at android.app.ActivityThread.access$2800(ActivityThread.java:121)
E/ACRA (22353): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1006)
E/ACRA (22353): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA (22353): at android.os.Looper.loop(Looper.java:130)
E/ACRA (22353): at android.app.ActivityThread.main(ActivityThread.java:3701)
E/ACRA (22353): at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA (22353): at java.lang.reflect.Method.invoke(Method.java:507)
E/ACRA (22353): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/ACRA (22353): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
E/ACRA (22353): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (22353): Caused by: java.lang.NullPointerException
E/ACRA (22353): at it.evilsocket.dsploit.core.UpdateService.onStartCommand(UpdateService.java:47)
E/ACRA (22353): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2060)
E/ACRA (22353): ... 10 more
frenzyboi said:
Sadly, still having FC
Click to expand...
Click to collapse
Oook, tomorrow i'm gonna make a test project for 2.3 devices ... that's the only way i have to test this behaviour on the emulator.
Hi
I cant iven install 1.0.8b version on SGSplus 2.3.5. dSploit 1.0.6b installs but cant run it (only blink of the screen and nothing more)
Version 1.0.7b installs but FC
This si a known bug on 2.3 devices, I'm working to fix it.
Tried it on Xperia Neo V running CM 9.1.
Runs smooth. Played around with it a bit. The inspector function doesn't seem to detect the manufacturer and OS of the device. Whereas in the home screen of the app, it correctly shows the manufacturer. See screenshots attached for what I am saying.
PS. The 2nd screenshot is after I ran the inspector and it automatically stopped. Don't say that I didn't run it.
PS. Since it ran on my device, it will definitely run on cm9 based Xperia arc, arc s, neo, and ray. They are almost identical under the.hood.
Sent from my MT11i using xda premium
DeathCzar said:
Tried it on Xperia Neo V running CM 9.1.
Runs smooth. Played around with it a bit. The inspector function doesn't seem to detect the manufacturer and OS of the device. Whereas in the home screen of the app, it correctly shows the manufacturer. See screenshots attached for what I am saying.
PS. The 2nd screenshot is after I ran the inspector and it automatically stopped. Don't say that I didn't run it.
PS. Since it ran on my device, it will definitely run on cm9 based Xperia arc, arc s, neo, and ray. They are almost identical under the.hood.
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Well the manufacter you see in the main screen, is based upon network adapter mac address lookup, the inspector use a tcp/ip fingerprint, which is another thing.
The network adapter manufacter is not the same thing of the device manufacter, for instance you could have a realtek ethernet adapter on an asus computer
Subscribed, downloaded, and will test. Thank you.
asstastic!
lncoln said:
Subscribed, downloaded, and will test. Thank you.
asstastic!
Click to expand...
Click to collapse
thanks for helping me with beta testing
How to give intent for accessing card activity,its not taking usual class.
Below is code snippet im providing. can anyone provide me solution
public void onClick(View v) {
if(txtUsername.getText().toString().equals("test") &&
txtPassword.getText().toString().equals("1234")){
Toast.makeText(getApplicationContext(), "Credentials Accepted",
Toast.LENGTH_SHORT).show();
Intent i = new Intent(Login_activity.this, HelloCardActivity.class); //hellocardactivity is another card activity. and login_activity is login page
startActivity(i);
Login_activity.this.finish();
}
else{
Toast.makeText(getApplicationContext(), "Wrong Credentials",
Toast.LENGTH_SHORT).show();
}
}
pls provide a solution
thank you
abhishek1234567 said:
How to give intent for accessing card activity,its not taking usual class.
Below is code snippet im providing. can anyone provide me solution
public void onClick(View v) {
if(txtUsername.getText().toString().equals("test") &&
txtPassword.getText().toString().equals("1234")){
Toast.makeText(getApplicationContext(), "Credentials Accepted",
Toast.LENGTH_SHORT).show();
Intent i = new Intent(Login_activity.this, HelloCardActivity.class); //hellocardactivity is another card activity. and login_activity is login page
startActivity(i);
Login_activity.this.finish();
}
else{
Toast.makeText(getApplicationContext(), "Wrong Credentials",
Toast.LENGTH_SHORT).show();
}
}
pls provide a solution
thank you
Click to expand...
Click to collapse
Please ask in the Chef Central > Android forum.
Just keep in mind that you have to provide more information (abot what card, on which device for what purpose, etc.) to get a more detailed help
Thread closed and thank you.
Hi Mods,
I do not have permissions to post in the development forum so I ask that you move this thread accordingly.
I have been researching the AT&T Galaxy Alpha sm-g850a variant in order to gain root access and, as you might know, have found absolutely nothing out there. All other international variants have been rooted Except the A model...which is what I am stuck with. I found a recently released CVE that states it is not patched until Lollipop 5.0 and allows a malicious intent request to take over SYSTEM permissions. I have been able to get the intent code into an app without bricking the phone and am having some NOOB java issues as I'm not a professional programmer. Any interest in helping finish this exploit would be greatly appreciated. A few code snippets below:
import android.accounts.NetworkErrorException;
import android.app.PendingIntent;
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
android.content.Intent intent = new Intent();
intent.setComponent(new ComponentName("com.android.settings","com.android.settings.accounts.AddAccountSettings"));
AccountManager.get(this).addAccount(
accountType,
null, /* authTokenType */
null, /* requiredFeatures */
addAccountOptions,
null,
mCallback,
null /* handler */);
mAddAccountCalled = true;
PendingIntent test = (PendingIntent) options.getParcelable("pendingIntent");
Intent newIntent2 = new Intent("android.intent.action.REBOOT"); <---testing---> somewhere in here I need to drop the SU binary and all of that good stuff.
try {
test.send(mContext, 0, newIntent2, null, null);
} catch (PendingIntent.CanceledException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
There is more code obviously. Posting some main parts to see if anyone is interested in helping.
w/respect-PitPin
Can't forget the credit for discovering this vulnerability:
Credits: Wang,Tao(Scloud) - seclist.org
Here is my NOOB showing. Wouldn't this mean I am on the right track and my app took "system root" privileges?
7386-7386/com.pitpindesigns.modpit.pitpin E/dalvikvm﹕ >>>>> com.pitpindesigns.modpit.pitpin [ userId:0 | appId:10248 ]
Nope...1000 would be root.
Sir,
Here isn't the right place for this type of threads so please open a new one here:
xda-developers -> Android Development and Hacking -> Android General
Good luck
Install: /home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy
/home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/policy.conf
libsepol.report_failure: neverallow on line 462 of external/sepolicy/domain.te (or line 5718 of policy.conf) violated by allow netd shellrocess { transition };
libsepol.report_failure: neverallow on line 441 of external/sepolicy/domain.te (or line 5699 of policy.conf) violated by allow mm-qcamerad system_data_file:file { write create };
libsepol.report_failure: neverallow on line 280 of external/sepolicy/domain.te (or line 5546 of policy.conf) violated by allow mm-qcamerad device:chr_file { read write open };
libsepol.report_failure: neverallow on line 254 of external/sepolicy/domain.te (or line 5520 of policy.conf) violated by allow shell system_file:file { entrypoint };
libsepol.check_assertions: 4 neverallow failures occurred
Error while expanding policy
make: *** [/home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/sepolicy] error 1
(⊙o⊙)
skipkou said:
Install: /home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy
/home/skipkou/android/cm/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/policy.conf
libsepol.report_failure: neverallow on line 462 of external/sepolicy/domain.te (or line 5718 of policy.conf) violated by allow netd shellrocess { transition };
libsepol.report_failure: neverallow on line 441 of external/sepolicy/domain.te (or line 5699 of policy.conf) violated by allow mm-qcamerad system_data_file:file { write create };
libsepol.report_failure: neverallow on line 280 of external/sepolicy/domain.te (or line 5546 of policy.conf) violated by allow mm-qcamerad device:chr_file { read write open };
libsepol.report_failure: neverallow on line 254 of external/sepolicy/domain.te (or line 5520 of policy.conf) violated by allow shell system_file:file { entrypoint };
libsepol.check_assertions: 4 neverallow failures occurred
Error while expanding policy
make: *** [/home/skipkou/android/cm/out/target/product/msm8974/obj/ETC/sepolicy_intermediates/sepolicy] error 1
(⊙o⊙)
Click to expand...
Click to collapse
Hello,
Thanks for using XDA Assist.
You can post your query in [GUIDE][COMPLETE] Android ROM Development From Source To End.Experts there may be able to help you
___
v7
XDA Assist
v7 said:
Hello,
Thanks for using XDA Assist.
You can post your query in [GUIDE][COMPLETE] Android ROM Development From Source To End.Experts there may be able to help you
___
v7
XDA Assist
Click to expand...
Click to collapse
OK,thank u
Hello together
since more than 4 Days i stuck on my current app project with the message: "admin componentinfo does not own the profile".
I tried many things - Added an Work Profile programmaticaly - Gave Profile Owner via adb and i dont find the result.
Someone have an Idea, what im doing wrong?
Code to add managed profile:
Java:
private void provisionManagedProfile()
{
Activity activity = this;
if (null == activity) {
return;
}
Intent intent = new Intent(DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
intent.putExtra(
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME,
activity.getApplicationContext().getPackageName()
);
} else {
final ComponentName component = new ComponentName(activity,
DeviceAdmin.class.getName());
intent.putExtra(
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME,
component
);
}
if (intent.resolveActivity(activity.getPackageManager()) != null) {
startActivityForResult(intent, 1);
Toast.makeText(activity, "Already used!",
Toast.LENGTH_SHORT).show();
activity.finish();
} else {
Toast.makeText(activity, "Device provisioning is not enabled. Stopping.",
Toast.LENGTH_SHORT).show();
}
}
Code to use:
Java:
DevicePolicyManager dpm = (DevicePolicyManager) getApplicationContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
dpm.setProfileEnabled(compName);
compName is:
Java:
compName = new ComponentName(this, DeviceAdmin.class);
#Edit
If i start the manged Profile, its crashed after the end before the "next" button showing.
But if i take an look on my settings its showing that this profile was created.
Greetings
tpoeschl said:
Hello together
since more than 4 Days i stuck on my current app project with the message: "admin componentinfo does not own the profile".
I tried many things - Added an Work Profile programmaticaly - Gave Profile Owner via adb and i dont find the result.
Someone have an Idea, what im doing wrong?
Code to add managed profile:
Java:
private void provisionManagedProfile()
{
Activity activity = this;
if (null == activity) {
return;
}
Intent intent = new Intent(DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
intent.putExtra(
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME,
activity.getApplicationContext().getPackageName()
);
} else {
final ComponentName component = new ComponentName(activity,
DeviceAdmin.class.getName());
intent.putExtra(
DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME,
component
);
}
if (intent.resolveActivity(activity.getPackageManager()) != null) {
startActivityForResult(intent, 1);
Toast.makeText(activity, "Already used!",
Toast.LENGTH_SHORT).show();
activity.finish();
} else {
Toast.makeText(activity, "Device provisioning is not enabled. Stopping.",
Toast.LENGTH_SHORT).show();
}
}
Code to use:
Java:
DevicePolicyManager dpm = (DevicePolicyManager) getApplicationContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
dpm.setProfileEnabled(compName);
compName is:
Java:
compName = new ComponentName(this, DeviceAdmin.class);
#Edit
If i start the manged Profile, its crashed after the end before the "next" button showing.
But if i take an look on my settings its showing that this profile was created.
Greetings
Click to expand...
Click to collapse
Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum.
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com