How to get root permission like CM does? - Java for Android App Development

Hi,
I want to get root permission in my app. I googled for a while, and only find one solution, that is to use the "su" command. This method will popup a dialog 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"
}
But CM has a "FileManager" which will popup a different dialog, which I prefer:
Any idea how to achieve this?

Libsuperuser by Chainfire is by far the best way to obtain root permission for your app. FYI the question you actually asked has absolutely nothing to do with getting root access. I suggest you dig through the CM File Manager app source code on github.

Related

live search crashes on wing/herald

i finally found the perfect rom and now live search keeps crashing, i get a details page that says the following
Missing method exception cant find an entry point "waveinopen" in a PInvoke DLL 'coredll'
anyone kow what this means and how to fix it, i use it alot and would really like to keep it without sacrificing my rom that i love
thanks
i installed net framework 2 and still didnt work either, any help .........
{
"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"
}
wow so no one knows a slouton to this huh too bad i guess

[Q]any other methods on fixing wifi for Samsung Galaxy Y pro duos b5512?

im using hatyonrom 1.1 and my phone is rooted
i tried using the methods that were posted here http://forum.xda-developers.com/showpost.php?p=34105560&postcount=10
the first method didnt work because the terminal force closes.
i did the second method and ticked the right boxes that were indicated and pressed apply. i turned wifi on and off and on but it still cant connect.
when i checked the permissions for dhcpcd-run-hooks it went back to its original 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"
}
are there more methods? or can you send me a working terminal so i can try method 1

Unable to grant permissions...

{
"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 idea y this happens
Sent from my A0001 using XDA-Developers mobile app
From what screenshot you have upload i can only think that you failed grant super user permission to clean master..
You need to provide more information mate.
Sent Using Awesome Nethunter Device.
Its normal behavior on Clean Master....Autostart Manager sometimes work on this version but didn't work on the next updates...it is bad coding from those devs not rom or root problem...
Use apps permissions to disable autostart apps or if you have Xposed then use Boot Manager Module....

Zygote asking for SU acess

I was using normally my J510 on stock ROM rooted, opening a website inside the Facebook, when zygote asked for su access.
I googled it and discovered that it's a system app, but it never happened before.
It's 100% safe? Should I gave root access?
No. NO
Why it's happening?
Malware?
I was using WhatsApp Extension, an Xposed Framework Module.
Only these two apps/process are unusually asking for permissions via SuperSU.
{
"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"
}
rodrigo82 said:
Why it's happening?
Malware?
I was using WhatsApp Extension, an Xposed Framework Module.
Only these two apps/process are unusually asking for permissions via SuperSU.
Click to expand...
Click to collapse
Is that WhatsApp Extension (ExtModule.java), reported here
If you don't trust it, don't use it.

Customize Any and Every sound on Android

Hello,
Note 9
(SM-N96OU1)
I'm wondering, since I have not come up with any results searching for a specific App which is automated. I have found instructions on how to accomplish the same result. I'm looking for a click and pick/choose option. yea, it sounds lazy. But, my girlfriend is NOT technically adept and ask me this question.
I have found nothing Other than Zedge which is not what im looking for. I'm looking to change every sound thats associated with an action. Swipe, Tap, etc..
Is there anything out such as this?
I should add also that she is unwilling to Root her phone....
{
"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"
}

Categories

Resources