yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] millo1978:
I made it... but it don't solve.

(also 200 to 2000...)

Are you speaking about this

}
tileSELinuxUpdate(qsTile);
}

at the java's end?

I never wrote java... :D

Edit:

Tile command is good...

I press it and SELinux Status change.

(Terminal emulator with "getenforce" can confirm)

But Enabled/disabled (color) Tile isn't good.

And...

(Enabled/Disabled) toggle in KernelAdiutor Misc and qsTile aren't the same. :(

How to correct it?
[Android Apps and Games] DiamondJohn:
Doh! Did it appear to make ANY difference to its reliability?

Yes.

My next pass would be to add logging to actually see what is happening, when the code is running on a device. I would suggest to add logs before and after each line you are not sure what is happening, to see where its not acting as expected.

You will need to add the import at the top. My guess is the following:

import android.util.Log;

At the top with all your other imports. There may be dependencies but a compile will give you that.

Then before and after each line something like the following

Log.e(TAG, "SELinuxQS: Hello there: MyVal=true");

The "SELinuxQS" will make it easier to find in your logcat.

So for example, on the one method "tileSELinuxUpdate":

@TargetApi(Build.VERSION_CODES.N)
private void tileSELinuxUpdate (Tile qsTile) {
[COLOR="darkgreen"]Log.e(TAG, "SELinuxQS: tileSELinuxUpdate ENTRY");[/COLOR]
Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.ic_selinux);
if (isSELinuxActive()) {
[COLOR="darkgreen"]Log.e(TAG, "SELinuxQS: isSELinuxActive()=true");[/COLOR]
if (qsTile.getState() == Tile.STATE_INACTIVE) {
qsTile.setState(Tile.STATE_ACTIVE);
[COLOR="darkgreen"]Log.e(TAG, "SELinuxQS: qsTile.getState() == Tile.STATE_ACTIVE");[/COLOR]
}
}
if (!isSELinuxActive()) {
[COLOR="darkgreen"]Log.e(TAG, "SELinuxQS: isSELinuxActive()=false");[/COLOR]
if (qsTile.getState() == Tile.STATE_ACTIVE) {
qsTile.setState(Tile.STATE_INACTIVE);
[COLOR="darkgreen"]Log.e(TAG, "SELinuxQS: qsTile.getState() == Tile.STATE_INACTIVE");[/COLOR]
}
}
getQsTile().setIcon(icon);
getQsTile().updateTile();
[COLOR="DarkGreen"]Log.e(TAG, "SELinuxQS: tileSELinuxUpdate EXIT");[/COLOR]
}

You may wish to do similar to all the methods in your class, and hopefully that will let you know where its failing. Or start here anbd work your way down to hone in on the issue.

The results of the logging should be in your logcat. Note, I used the "error" logging, to ensure that it will appear no matter which log level is selected/set. And it would be removed for the final build. ie when the debugging is all over.

Good luck.:good:

---- after thought-----

Actually, are you sure that the line "Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.ic_selinux);" is correct? It appears on first glance to be getting the same icon regardless of the SELinux State :confused: Maybe that should be within the if clauses as well to get a different resource depending on the state.
[Android Apps and Games] millo1978:
I see no difference

It's not simple for me :(

Sometimes in Logcat I see something like this:

I press QSTile...

there are 2 command... true and then false...

QSTile go ON and OFF.

But why?

I press it only one time.

If I change in AndroidManifest

<meta-data android:name="android.service.quicksettings.ACTIVE_TILE"
android:value="[B]false[/B]" />

I have all correct... but not automatic.

:D

I had an AndroidStudio issue...

Now I have no more 2 times Icon...

but I have also this

private Icon icon;

With this I have no more AndroidStudio issues...

but I don't know if it's correct. :D
[Android Apps and Games] DiamondJohn:
maybe read through https://codelabs.developers.google....quick-settings/index.html?index=../../index#0
[Android Apps and Games] millo1978:
With this code I have a working QsTile

SELinuxQSTileService

package com.kerneladiutormod.reborn.services;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.drawable.Icon;
import android.os.Build;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import android.util.Log;

import com.kerneladiutormod.reborn.R;
import com.kerneladiutormod.reborn.utils.Constants;
import com.kerneladiutormod.reborn.utils.root.Control;

import java.util.Locale;

import static com.kerneladiutormod.reborn.utils.Constants.SETENFORCE;

@TargetApi(Build.VERSION_CODES.N)
public class SELinuxQSTileService extends TileService {

private static final String SERVICE_STATUS_FLAG = "serviceStatus";
private static final String PREFERENCES_KEY = "com.google.android_quick_settings";
protected Context context;

@Override
public void onTileAdded() {
Log.d("QS", "SELinux - Tile added");
tileSELinuxUpdate();
}

@Override
public void onTileRemoved() {
Log.d("QS", "SELinux - Tile removed");
}

@Override
public void onClick() {
Log.d("QS", "SELinux - Tile tapped");
tileSELinuxUpdate();
}

@Override
public void onStartListening () {
Log.d("QS", "SELinux - Start listening");
tileSELinuxUpdate();
}

@Override
public void onStopListening () {
Log.d("QS", "SELinux - Stop Listening");
}

private void tileSELinuxUpdate () {

Tile tile = this.getQsTile();
boolean isActive = getServiceStatus();

Icon newIcon;
String newLabel;
int newState;

// Change the tile to match the service status.
if (isActive) {
Log.i(Constants.TAG + ": " + getClass().getSimpleName(), "SELinux - Set Enforcing");
newLabel = String.format(Locale.US,
"%s %s",
getString(R.string.tile_label),
getString(R.string.service_active));

newIcon = Icon.createWithResource(getApplicationContext(),
R.drawable.ic_selinux_enf);

newState = Tile.STATE_ACTIVE;
Control.runCommand("1", SETENFORCE, Control.CommandType.SHELL, context);

} else {
Log.i(Constants.TAG + ": " + getClass().getSimpleName(), "SELinux - Set Permissive");
newLabel = String.format(Locale.US,
"%s %s",
getString(R.string.tile_label),
getString(R.string.service_inactive));

newIcon =
Icon.createWithResource(getApplicationContext(),
R.drawable.ic_selinux);

newState = Tile.STATE_INACTIVE;
Control.runCommand("0", SETENFORCE, Control.CommandType.SHELL, context);
}

// Change the UI of the tile.
tile.setLabel(newLabel);
tile.setIcon(newIcon);
tile.setState(newState);

// Need to call updateTile for the tile to pick up changes.
tile.updateTile();
}

// Access storage to see how many times the tile
// has been tapped.
private boolean getServiceStatus() {

SharedPreferences prefs =
getApplicationContext()
.getSharedPreferences(PREFERENCES_KEY, MODE_PRIVATE);

boolean isActive = prefs.getBoolean(SERVICE_STATUS_FLAG, false);
isActive = !isActive;

prefs.edit().putBoolean(SERVICE_STATUS_FLAG, isActive).apply();

return isActive;
}

}

But it's correct?

I know only that...

It works good :)

...and I have also a changing Label :)
[Android Apps and Games] DiamondJohn:
I had a quick read, and the only issue I think I can see is that you assume that the setenforce command actually worked. If you were to un-root your device, you should not be able to change the SELinux status, but I think your tile will still show/think its worked. Also, even if you are rooted and it succeeds, it will actually show the change as being successful, possibly before it is actually completed. You can read your logcat in a loop checking for when the setenforce is actually done, or if it failed.Probably better to use getenforce command.

PS: I don't personally use it, but I think I have read that the hide tag does not work on the mobile version of the XDA app. Might be better to use something like www.hastebin.com. We are also getting slightly off topic for the number of posts on this. It may be better to create a new thread (and provide a link)

PPS: I also notice that you are keeping assumed state of the SELinux, based on how many times the Tile is clicked. If the SELinux is changed via a different method (eg adb), then your count will not align to the actual status, and your tile will therefore display the wrong status.
[Android Apps and Games] millo1978:
Without Root Kernel Adiutor can't work...

I want to make a Tile for Kernel Adiutor.

How to have this working?

Maybe with this:

requestListeningState

void requestListeningState (Context context,
ComponentName component)

And how to write it correctly?

I don't know... I never wrote in Java ...i'm not a developer :D

:good:

This Tile works only when clicked

It would be nice to have it automatically working (with Getenforce) ...but how?

I'm not able to do it :(

I must learn :D
[Android Apps and Games] DiamondJohn:
Thats well beyond this thread.

PM sent
[Android Apps and Games] millo1978:
BUG adb over Wifi [SOLVED]

BUG - ADB over WIFI

Huawei P9 lite

[MENTION=8345002]Ali Haide 001[/MENTION]

app/src/main/java/com/kerneladiutormod/reborn/utils/kernel/Misc.java

public static void activateADBOverWifi(boolean active, Context context) {
if (active) {
Control.setProp("service.adb.tcp.port", "5555", context);
[B][COLOR="Red"]//WE NEED SOMETHING HERE: start adbd[/COLOR][/B]
}
else {
Control.setProp("service.adb.tcp.port", "-1", context);
}
}

with

adb connect 192.XXX.X.XXX [COLOR="Red"](my IP)[/COLOR]

I have always

unable to connect to 192.XXX.X.XXX

I need this

start adbd

to have ADB over WIFI working.

How to insert this command in previous code?

Edit:

in Control.java there is

public static void startService(String service, Context context) {
RootUtils.runCommand("start " + service);

I'm testing

RootUtils.runCommand("start " + "adbd");

Now it works! :)

The complete code is

public static void activateADBOverWifi(boolean active, Context context) {
if (active) {
Control.setProp("service.adb.tcp.port", "5555", context);
[COLOR="Red"]RootUtils.runCommand("start " + "adbd");[/COLOR]
}
else {
Control.setProp("service.adb.tcp.port", "-1", context);
}
}

SOLVED!
[Android Apps and Games] kurocygnus:
I'm trying to use this to overclock a MALI-400 MP2 on a RK3229 board, but doesn't show the GPU section for me.
[Android Apps and Games] David 617:
The app does not work on Oreo.

The manifest was moved up to target Oreo, but the app still runs a service in the background. This is the IllegalStateException you are getting in the logcat message

"Not allowed to start service Intent { cmp=com.kerneladiutormod.reborn/.services.BootService }: app is in background"

For more info, https://developer.android.com/about/versions/oreo/android-8.0-changes#back-all
[Android Apps and Games] DiamondJohn:
OK, that explains the first issue. :mad: Does anyone know if [MENTION=8345002]Ali Haide 001[/MENTION] is working on making it Oreo compatible?

On the second one (ie the malformed JSON), at first glance, the strings https://raw.githubusercontent.com/Grarak/Kern all appear to be possibly missing an ending quote.
[Android Apps and Games] David 617:
Unlikely, its a significant amount of work and the commits to this project look pretty thin
[Android Apps and Games] cheeze.keyk:
i think the download link is not working? I can't download the file.
[Android Apps and Games] xXCoolGuYXx:
Hello I'm trying to get some help with your app though the tg app and I was trying to join your tg group but it told me I was ban from it, when I have never been in it. Could someone help me with this ?
[Android Apps and Games] CamoGeko:
Thats very unlikely, if it says you're banned it's probably right.
[Android Apps and Games] Al-Bcherrany:
I'm also banned even though i never tried to join the telegram group, i just tried for the first time and banned, which is weird
[Android Apps and Games] Bobbaloo:
This isn't a ban. You guys got my curiosity piqued so, I tried. It simply says it's not accessible. Maybe the op killed it.
[Android Apps and Games] Al-Bcherrany:
Hello mate, looks like i'm using another Telegram app, that's why it showed i'm banned, but it looks like the same it's not accessible but different paragraph
[Android Apps and Games] Bobbaloo:
Banned ~~~~~~~~~> you're not welcome here. lol
[Android Apps and Games] Almighty1:
I was in the telegram group and I noticed the group and the thread here on xda just disappeared as I noticed the group was no longer on my list and I tried to look for the thread here and couldn't find the thread.
[Android Apps and Games] xXCoolGuYXx:
Why dev delete it ?
[Android Apps and Games] DiamondJohn:
FYI: I understand this app does not support Oreo, and when I installed it, I got a failure message on every boot. However, I do not personally use the "set on boot" feature, preferring to use my own custom boot scripts.

So, what I did was install the app, go into "privacy guard", Advanced, and turn off the "On Boot" intent going to KA Mod, and now it runs without the error on boot. So I get to use all the other features, and have not noticed any issues as yet.
[Android Apps and Games] D-dy:
So, no more update...? Project stopped? ?
[Android Apps and Games] Pho3nX:
You have the original app : Kernel Adiutor (ROOT) [v0.9.11.1]

Gihub Repo : https://github.com/Grarak/KernelAdiutor

or MTweaks : MTweaks v2 - A Kernel Manage Utility [v2.9.2]

Github Repo : https://github.com/morogoku/MTweaks-KernelAdiutorMOD/releases/

An other KernelAdiutorMOD with specifif options/features for Samsung devices (but working fine on other devices)

And of course EXKM (Paid) : EX Kernel Manager
[Windows Mobile Development and Hacking General] theme freak:
Cube for VGA Devices

Hi Slither and other programmers, I really like the SCLPC++ program you know =D

But so far this program is only for QVGA devices...So I am asking to Slither

or other programmers would you mind to develop a VGA version??

I will help as I can, like providing feedback, screenshot and even designing =)

This is what SCLPC++ looks on my VGA device now =(

So please develop it for VGA users also..thanks and God Bless =D
[Windows Mobile Development and Hacking General] retaliate:
yup... i'm agree with this.... please help to develop the cube for VGA screen device also as VGA device user are growing and we need this fantastic cube.... thank you!!!
[Windows Mobile Development and Hacking General] Pawel062:
me and slither have already been working on a vga cube together. he first wanted to get the qvga version almost perfect and at same time research best ways to make vga while using the lowest amount of resources possible. it would use a crazy amount of memory if u just made it bigger. also time is a factor.

just be patient and stop bombarding slither and be happy he has made a cube period. it takes time and patience, espcially for the vga version.
[Windows Mobile Development and Hacking General] theme freak:
Thanks, this is the answer that I'm sure all VGA users are waiting for :)

I'll be waiting for it..God Bless your work bro :)
[LG Q6 Questions & Answers] octopus82:
Hello

I have M700n soft bricked after trying flash with M700 KDZ file; I flashed it some many times with M700; M700a; M700n; M700t but still the same problem : black screen after flash

I flashed it with z3x lgtool, so I'm llooking for another way to flash it or DLL file to flash it with LG up

can somebody help me please ?
[LG Q6 Questions & Answers] octopus82:
I'm looking for LG M700 or M700n DLL file for LG up to unbrick phone please
[LG Q6 Questions & Answers] pomaxa:
use UPPERCUT_1.0.0.0.exe without dll

https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295
[LeEco Le Pro3 Questions & Answers] BlocforLife:
I need some help.

Last night I was updating to lineageOS' new nightly update with TWRP in recovery mode. I also like to run a custom kernel on of that for battery life reasons. In doing so, I mindlessly flashed the custom kernel (blackscreen 3.6.2) to the system image partition instead of the boot partition, then went back and flashed SuperSU, wiped the cache as I normally do.

My problem is that when I rebooted the phone it hangs on the stock LeEco boot logo without going past it. In addition I cant get it to go into fastboot or recovery no matter what button combination I use. In addition, I can't get adb or fastboot to detect it from my PC to do anything from there either. My PC does detect a "Portable Devices", listed as a D:\ drive, but this isn't helpful.

I could really use some help. I'd hate to think I bricked my phone with such a mindless mistake. If you know what's up or another post that can help me, please post it.
[LeEco Le Pro3 Questions & Answers] BlocforLife:
Pls disregard this post, I managed to boot into recovery when I plugged it in to my PC and turned it on with volume up and power
[LeEco Le Pro3 Questions & Answers] russiavk:
thanks,bro.I have same problem, it work for me.
[Nexus 6 Q&A, Help & Troubleshooting] Kryptonice:
Hello,

I wanted to factory reset my Nexus 6 to start over again but it seems stuck at erasing.

I also tried starting my phone on fastboot and recovery but only fastboot is working.

Bootloader is still LOCKED and there seems to be no way to start the phone again.

Anyone with any suggestions maybe?

Thanks.
[Nexus 6 Q&A, Help & Troubleshooting] jbaumert:
You can flash a factory image with the locked bootloader. This would effectively reset your phone.

https://developers.google.com/android/images
[Nexus 6 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
It would reset the phone but would not stop the erase process. Because the OP's device is stock and not rooted, the internal storage is encrypted. Erasing takes longer than usual because of the encryption.

Once the erase process starts, it must complete or else the internal storage may be corrupted until properly reset. The solution to the OP's problem is to be patient and do nothing.
[Touch Cruise ROM Development] kwbr:
This post is obsolete
[Touch Cruise ROM Development] natesiy:
Great tips!
[Touch Cruise ROM Development] cybertron:
thanks for the tips!
[Touch Cruise ROM Development] MrSmith22:
With the O2 version, the registry just reverts back to what it was. Anyone have a cure for this?
[Touch Cruise ROM Development] JulianL:
This is a really valuable thread. Well done and a big thank you to kwabbernootje for gathering together and posting all this valuable information.

Moderators - how does a thread qualify to be sticky? I'd like to kick off the campaign to make this one sticky. I know there's some overlap with the existing tips & tweaks sticky but I think there is huge value in a thread that is focussed on performance enhancements.

- Julian
[Touch Cruise ROM Development] directmail:
Good summary, thanks!
[Touch Cruise ROM Development] Yzord:
You can download the 1.2.0 version now for Qualcomm support :D
[Touch Cruise ROM Development] Jackster:
check

http://xdaforums.com/showthread.php?t=371498

for link

Mod Edit: Dont bother, this user posted a link to WAREZ. This will not be tolerated.
[Touch Cruise ROM Development] fktsndr:
Thanks for these!!!!
[Touch Cruise ROM Development] christonge:
Perhaps this should be a sticky? Thanks for the summary kwabbernootje!!
[Touch Cruise ROM Development] Edward757:
Very good thks :D
[Touch Cruise ROM Development] CruiseMod:
Is there any registry modification to disable the TOUCH funcionality in Polaris ?!

I had a problem with my polaris after use kaisertweak , and now nothing in the screen pressed or clicked like i dont have a touch screen.

Only when i do gesture up the cube comes up .. nothing else..

and for this reason i think if there is such a modification in a registry that changed by mistake ..

is there something ?!?!
[Touch Cruise ROM Development] kwbr:
CruiseMod, can you be more specific? What did you change or trying to change in the registry? You can always try a hard reset.
[Touch Cruise ROM Development] Edward757:
Don't use Kaisertweak on the cruise ! ...or if you do so you have to make an hard reset to get back to full fonctions.
[Touch Cruise ROM Development] NetrunnerAT:
I know this error from CruiseMod :->

You have change with Kaiser tweak the Touch Value!!!

Open with a Text editor the kaisertweak xml file Look about the registry keys for touch and use "Mobile Registry Editor" to edit this value remote from your winxp pc. after softreset your device works again ... value must like over 40000!!!!

If some on want ... i can start to develope a Polaris/Nike-Tweak. I must only edit some value ... not more. realy easy to port!
[Touch Cruise ROM Development] CruiseMod:
There are sensivity and finger pressure values .. which of both?

Your idea will be great if applied..
[Touch Cruise ROM Development] CruiseMod:
If anyone of has this problem like me .. dont hard reset !

JUST GO HERE >

HKLM\Drivers\TouchPanel\PressureThreshold

and change the VALUE to 40000

Soft Reset and you will be fine !!

Thanks to NetrunnerAT
[Touch Cruise ROM Development] darkazally:
great post. make it a sticky
[Touch Cruise ROM Development] Tane71:
Great tips ! Thanx

1 question :

I can't find this file "webview.dll" (all visible files "on" of course). Where else could be found ? Does the .cab file attached works in my case ?

Thanks for your help !
[Touch Cruise ROM Development] kwbr:
@Tane71

The webview.dll is in the \Windows directory. Use Resco file explorer e.q. to search this directory. The default file explorer hides certain system files. If you own a Touch Cruise the cab file will work after installation and a soft reset.
[Touch Cruise ROM Development] Tane71:
Thanks for your help : Resco is now installed and all files visibles. Do I need to copy (save) the old "webview.dll" to restore it in case of problem, or does the .cab restore automatically if I want to reverse the install ?

EDIT : when I explored the Polaris' windows directory from my PC ("show all files" and "show all systems files" selected), I can't see the "webview.dll" file... is that normal ?
[Touch Cruise ROM Development] schaggo:
No, the original file is located in the ROM which is write protected. If you put a "new" file with the same name in your windows directory, windows mobile will load the "new" file over the one located in the ROM.

If you delete the new file, windows will revert back to loading the file located in the ROM. You cannot completely delete webview.dll, the copy in the ROM will always stay on your system.

That is the reason why you can't see the file through ActiveSync: like the windows mobile internal file manager, ActiveSync doesnt show ROM files. Keep in mind, you dont use your windows explorer to access the device, its so to say an ActiveSync browser window which looks like a normal windows explorer window, but its not. Should become clear when you compare the copy dialog windows when copying a file across your harddrive and from your harddrive onto your device.
[Touch Cruise ROM Development] Tane71:
@schaggo : thanks for the explanation ! Resco is very efficient anyway !
[Touch Cruise ROM Development] andykha:
Good work. It's helpefull:)!!
[Touch Cruise ROM Development] ctwilson:
After the tweaks, is the HTC Touch Cruise (Polaris) worth it?

Anyone have an opinion on whether or not they are satisfied with the performance of the HTC Touch Cruise after the tweaks have been made.

Do you still feel that the phone is too slow and difficult to work with? Is this phone worth all the expense and work needed to make it more functional?

If you had to do it over again,would you go with a different phone or wait for a better product?:confused:
[Touch Cruise ROM Development] hkfriends:
for speed, no way on HTC...

go for ASUS
[Touch Cruise ROM Development] r_southampton:
Don't be confused.

These forums are full of tweakers.

The basic TC is fast out of the box.

Of course it can be improved, although often tweaks trade speed in one area for loss of functionality in another.
[Touch Cruise ROM Development] kwbr:
Increase # of concurrent connections in PIE

Added:

Increase # of concurrent connections in Pocket Internet Explorer to speed up surfing:

- HKCU\Software\Software\Microsoft\Windows\CurrentVe rsion\Internet Settings\MaxConnectionsPerServer = 10

(the default is 4)

Still looking for MaxRequestThreads to increase it from the default 5 to 10. Hints are welcome.
[Touch Cruise ROM Development] reyjabs:
Just use Memaid.:D
[Touch Cruise ROM Development] pereirald:
More $SIP_CLSID$ keys:

{36BC8FF6-8241-4c36-ABDE-204885471FEE} Touch qwerty