yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] asc1977:
I think i have in my method also to switch in one method const v3 0x8 to 0x3 and otherwise

Gesendet von meinem SM-G925F mit Tapatalk

---------- Post added at 20:24 ---------- Previous post was at 20:24 ----------

Ok i try

Gesendet von meinem SM-G925F mit Tapatalk

---------- Post added at 20:48 ---------- Previous post was at 20:24 ----------

i think i am stupid or whatever

Rom Control stops but why

Arrays

<string-array name="traffic_entries">
<item>left</item>
<item>right</item>
</string-array>
<string-array name="traffic_values">
<item>0</item>
<item>1</item>
</string-array>

Xml

<com.wubydax.romcontrol.prefs.MyListPreference android:entries="@array/traffic_entries" android:title="Traffic Position" android:key="trafficpos" android:defaultValue="0" android:entryValues="@array/traffic_values" />

Log
[Android Apps and Games] daxgirl:
You used to have switch preference with the same key. It tries to assign boolean value to list preference. Clear app data.
[Android Apps and Games] asc1977:
Ok now romcontrol works but switch not. I think something wrong. But smalis are changed like posted before and romcontrol to.

I have to clear app data of systemui too?? I dont think so but what causes the problem?

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] daxgirl:
There is no data to system ui.

If you restart systemui no changes?
[Android Apps and Games] asc1977:
Oh nooooooooo

The SettingsObserver.smali i forgot to change and wait for on the fly changes [emoji23] [emoji23] [emoji23] [emoji23] [emoji23]

How embaressing for me. [emoji15]

[MENTION=4830018]Martillero[/MENTION] [MENTION=4714483]daxgirl[/MENTION]

Thx both of you for your help

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] daxgirl:
I will find you and beat you to death with my phone.. ???????????
[Android Apps and Games] asc1977:
I do it by myself [emoji23] [emoji23] [emoji23] [emoji23] [emoji23]

I think i shut of pc for today. To long sitting there makes this problems. Have a good night

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] daxgirl:
Lol... I agree... what a trouble maker!!!

Night to you too!!! ?
[Android Apps and Games] asc1977:
Hi all

I install gharringtons quicklaunch in recent apps and tried some keys to switch with rom control. After all tries i removed but andy key i switched changed layout of quicklaunch. Now i forgot which key that is and didnt get back. I wiped romcontrol also deinstalled and imstalled but layout didnt com back. How can i switch back the keys of smali to standart value. I have no idea

Gesendet von meinem SM-G925F mit Tapatalk

---------- Post added at 09:29 ---------- Previous post was at 09:21 ----------

Also i instalöed stock systemui and back modded. No sucess. Wiped data and cache. No sucess.

Gesendet von meinem SM-G925F mit Tapatalk

---------- Post added at 10:02 ---------- Previous post was at 09:29 ----------

Get it by myself. Installed his app and changed visible buttons and all is ok

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] asc1977:
Can someone tell me if there a preference to choose a image for example for a background?

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] Wuby986:
yes we builded a class for listPreference which is going to show the preview image in the list.. you'll need to search the tread.. it's somewhere
[Android Apps and Games] Er. Aditya:
daxgirl posted it with source files please do search for Thumbnail prefrence
[Android Apps and Games] daxgirl:
http://xdaforums.com/showthread.php?p=63548185
[Android Apps and Games] asc1977:
That is not what i mean but thx. A new fearure for me [emoji1]

I search for choosing a picture for a background. Means i click in select image text on rom control and galerie opens and let me choose. As example a background image for expanded view

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] daxgirl:
That can be achieved. But what do you need to write into database? The uri for the image you choose? Because that's how it works... if you use intent to choose image, it returns uri.
[Android Apps and Games] asc1977:
For quicklaunch in the smalis you can choose a background color or a background image. For the backgroundimage i set

<Preference android:title="Select image" android:key="select_image" />

But nothing pop up to select an image. I take this option from quicklaunch app from playstore because there you can do. Its the same smalis i use

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] daxgirl:
You really don't understand what I am asking you.

When the mod you're using is checking what image to put, what kind of data does it fetch? Is it a string? Is it a uri? Is it a blob with byte array of bitmap?

You have to understand that I can built the feature you're asking, but I need to see how the image info will be stored in the db.
[Android Apps and Games] asc1977:
Oh ok. I didnt know. Did it help you if i send you the smalis?
[Android Apps and Games] daxgirl:
Please give me a link to the mod guide
[Android Apps and Games] asc1977:
http://xdaforums.com/showthread.php?p=67035074

But the rom control lines for the images are not in this guide because it dont work this time. Only with app from playstore
[Android Apps and Games] daxgirl:
What does this mod have to do with selecting image from gallery? It's a guide for quick launch in recents menu.
[Android Apps and Games] asc1977:
Yes but you can choose a backgroundimage for quicklaunch panel
[Android Apps and Games] daxgirl:
I see. But that's not in the guide...

I will have a look at this mode in more detail when I get home. It's very interesting idea.
[Android Apps and Games] daxgirl:
You know we don't build roms or mods. We are not aware of recent mods and their sharing policies.

Fortunately, before I had a chance to be led on into violating another developer's policy, I saw a post by [MENTION=1236525]and2[/MENTION], warning you that what you're trying to do is in violation of another app's sharing policy.

I see this as as serious violation of trust between us. You have tried to make us help you include paid features by hacking as paid app functionality. This will not fly. I am very disappointed.

I will have to think as for how to proceed with this, regarding reporting you.

You have been warned several times for violating xda posting rules. Now you tried to violate developer's sharing policy for no less than a paid application.

What's worse , I am sure you did that without even understanding how bad it is what you're doing. And what it is you're doing.

All your post regarding this matter from your thread should be removed. And will be reported. This app and it's developers will not take part in hacking fellow developer's work.
[Android Apps and Games] asc1977:
I write also in other thread that i know nothing before about that app. I only followed a request of a user. After i did well and looked into smali and build my mod i see the policy and app so i will remove all. If i know that before i will not do. I didnt do something like that.
[Android Apps and Games] Er. Aditya:
i am pretty sure garrington had wrote it very clear about his paid stuff
[Android Apps and Games] asc1977:
Yes but i didnt was in his thread. I am only take a guide a other one did and looked in smalis and take out from there what it gives. Later i see app and removed now. I dont feel to do something wrong before because i think it didnt give a app for that. So now i removed and all is like before.

I only can say i am sorry about and i have delete that guide. More i cant do
[Android Apps and Games] kep2008:
Hi.

I tried to collect app, if do not make changes , then everything is fine ...

If make these changes

http://xdaforums.com/showpost.php?p=67120717&postcount=6704

I receive an error :(

C:\Users\Oksa\CustomSettingsForDevs\app\src\main\java\com\wubydax\romcontrol\HandlePreferenceFragments.java
Error:(139, 17) error: cannot find symbol class Uri
Error:(139, 72) error: cannot find symbol variable Uri
Error:(141, 21) error: cannot find symbol class InputStream
Error:(144, 25) error: cannot find symbol class Bitmap
Error:(144, 41) error: cannot find symbol variable BitmapFactory
Error:(145, 49) error: cannot find symbol class BitmapDrawable
Error:(147, 30) error: cannot find symbol class FileNotFoundException
Error:(439, 87) error: package MediaStore.Images does not exist
C:\Users\Oksa\CustomSettingsForDevs\app\src\main\java\com\wubydax\romcontrol\UIPrefsFragment.java
Error:(45, 67) error: cannot find symbol class Intent
Error:(46, 26) error: cannot find symbol variable Activity
Error:(52, 17) error: cannot find symbol class Uri
Error:(53, 25) error: package Settings does not exist
Error:(55, 21) error: cannot find symbol class InputStream
Error:(56, 21) error: cannot find symbol class Bitmap
Error:(56, 37) error: cannot find symbol variable BitmapFactory
Error:(57, 21) error: cannot find symbol class Drawable
Error:(57, 41) error: cannot find symbol class BitmapDrawable
Error:(59, 26) error: cannot find symbol class FileNotFoundException
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Oksa\CustomSettingsForDevs\app\src\main\java\com\wubydax\romcontrol\prefs\IntentDialogPreference.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
[Android Apps and Games] daxgirl:
You need to import classes, kep.

Put mouse over one of the red entries and click alt+enter.

Make sure you have no error likes or objects painted red before compiling.
[Android Apps and Games] kep2008:
As it's not easy... :D

:good:
[Android Apps and Games] nguyentankiet:
Please help me. Why my rom control cant open any app? This is screenshot. I checked code intent corrected

<PreferenceScreen android:title="Open Settings" android:key="com.android.settings.Settings" android:summary="Opens your device Settings" />
[Android Apps and Games] daxgirl:
Post the code for the onPreferenceClick method please
[Android Apps and Games] nguyentankiet:
Will soon when i home back
[Android Apps and Games] daxgirl:
No rush.. I probably won't get to it till tomorrow anyway.
[Android Apps and Games] nguyentankiet:
Sorry, Which smali have onPreferenceClick method? :( I not build control from source, i rebuild from control.apk my friend.
[Android Apps and Games] daxgirl:
Hey... I am sorry... I can't help you on smali. This project is a code project. I can't help you mod it in smali. Please compile from source and have your own sources so we can help you. It's really not efficient to use in decompiled mod.
[Android Apps and Games] nguyentankiet:
OK girl
[Android Apps and Games] asc1977:
Can help me someone please with this errors if i open android studio?

all working but i want to know whats that and solve it

08:47:22 EmptyThrowable: Unexpected template constraint 'xml'

08:47:45 Gradle sync started

08:47:47 Platform and Plugin Updates: Android Studio is ready to update.

08:47:47 Platform and Plugin Updates: The following components are ready to update: SDK Platform Android N Preview, Android Support Repository, Google Repository, Intel x86 Atom System Image, Android TV Intel x86 Atom System Image, Intel x86 Atom_64 System Image, Android SDK Tools

08:49:33 PSI and index do not match: PSI and index do not match

08:49:41 EmptyThrowable

Invalid stub element type in index:

file: file://C:/Users/Schwenn/AppData/Local/Android/sdk/sources/android-23/org/w3c/domts/level1/core/nodevalue03.java

psiElement: PsiReferenceList

requiredClass: interface com.intellij.psi.PsiClass

actualClass: class com.intellij.psi.impl.source.PsiReferenceListImpl

virtualFile: size:2962; stamp:0; modCount:1464847785314; fileType:JAVA; language:JAVA

document: size:2962; stamp:0; committed:true; saved:true

psiFile: size:2962; stamp:0; class:com.intellij.psi.impl.source.PsiJavaFileImpl; language:JAVA

stubInfo: created in getStubTree(); with backReference

indexing info: no data
[Android Apps and Games] daxgirl:
Guys, started seeing pm again for support in rom control. Over last 2 days 7 pm. Didn't we JUST talk about it?

Please post your questions on a thread.
[Android Apps and Games] daxgirl:
Is this the thread to fix problems in android studio java source code? Lol.. the problem is with development environment, had nothing to do with our code. You can send a question to google or intellij ?
[Android Apps and Games] asc1977:
Sorry i know. But i think it have to do with RC that i made something wrong. Also i mentioned all work only this errors coming. Than all is good. Thx

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] stang5litre:
I pm'd for a specific reason. But won't do it again as I don't follow this thread, just built your app from git and had a dev question sense I make roms. But no worries.
[Android Apps and Games] Kamy:
Dear Anna and Wuby,

Setting global Boolean toggle in systemui that was explained by [MENTION=1042140]tdunham[/MENTION], I would like to add key function to restart systemui in a no silent way. For this I need your help adding it as I have no idea how to do it. I check in onSharedPreferenceChanged method but didn't find the case or I am looking in a wring method(? )
[Android Apps and Games] Wuby986:
You need to call the method appRebootRequired and set what app need restart.

You want to call this method only if changes the preference that require it.. so you would say something "if changed prefs has this key then call method reboot required"

Inviato dal mio SM-G935F utilizzando Tapatalk
[Android Apps and Games] Kamy:
Thanks for reply. Yes I created this in onSharedPreferenceChanged

switch (p.getClass().getSimpleName()) {
case "SwitchPreference":
SwitchPreference s = (SwitchPreference) pf.findPreference(key);
s.setChecked(sharedPreferences.getBoolean(key, true));
if (key.equals("modcfg_panel_colors")) {
appRebootRequired("com.android.systemui");
}
break;

This works for other preferences. But no success for FilePreference.
[Android Apps and Games] Wuby986:
post the code you have for FilePreference please
[Android Apps and Games] daxgirl:
File preference does not have key written into preference. It depends on existence or not of a file. That's why this method will never work with file preference. Because no preference has been changed.
[Android Apps and Games] Kamy:
Here

<com.wubydax.romcontrol.prefs.FilePreference
android:title="Set all native Pulldown colors to stock"
android:key="modcfg_panel_colors"
android:defaultValue="false"
android:summaryOn="Pulldown colors set to stock"
android:summaryOff="Option disabled, using custom colors" />
[Android Apps and Games] daxgirl:
It's really nothing personal.

Asking question in private messaging negates the idea of forum. On a forum a development thread is where questions are asked, for several basic reasons:

1. Your question might concern other users. They might benefit from your question and our reply. Or maybe they already encountered your issue and can help you solve it.

2. Your question might have already been asked (repeatedly, btw). That's why when you engage in a project it's good practice to follow the thread.

3. I or another development might not be available or have means to currently review your question in private messaging. But on a forum users help users, when you ask a question it's not directed to us, it's directed to anyone with knowledge and skills to help.

4. Finally, but not least important, we have personal lives and professional occupations. We dedicate time to this thread without asking for a dime. And we dedicate quite a lot of time to xda. Unlike many developers, we never took a cent in donations for any of our work. Which is why we just don't work for anyone in private tech support.

When I have question about android framework I don't send private mail to Retto in Google. I go to stackoverflow and post a question.

Same goes for everyone. Open forum like xda was created for sharing knowledge and expanding skills by reading and answering. Support in private negates it completely. Development questions in pm help no one. They belong on development thread.
[Android Apps and Games] daxgirl:
As explained above.. will not work.
[Android Apps and Games] Kamy:
Thank you for reply. I think I should use scrip way manually restart it then.
[Android Apps and Games] daxgirl:
We can work around it on Java.. just give us some time.
[Android Apps and Games] stang5litre:
Np [emoji39]. I have given xda a lot myself. Not as much as you by any means lol. Reason I thought I didn't have it on follow is I have like 40 other threads I follow/support. So to cut down on time I just ask my question. Usually that's it for me. I am pretty decent in smali and so on. I always use the search button before I ever ask a question. Which is not posted in here. But when I figure out the correct smali to modify4 for signal clusters colors for the s5 I will post which smali it is. I have two kids and rl to and I totally understand about helping others as my message Box is full of pm 's from me doing so. Sorry if I offended anyone as that was not my Intent. I Google and do all my my own work. Thanks for your hard work on this project.

Again never meant to offend anyone. Was just trying to get a accurate respone. Sorry and thanks again
[Android Apps and Games] tdunham:
This is mine. I use modcfg in several places in smali where a regular database toggle just wont work. Modcfg, like Daxgirl says, relies on the existence of a file that is written to data/data/wubydax.romcontrol.com/files (sorry, don't have the exact pathname in front of me so disregard any misinformation ;) ).

It is relatively simple to use, I will look at my filepreference java for UI restart in mod control when I get a moment this weekend and we'll get [MENTION=4819130]Kamy[/MENTION] squared away. Like was asked above, you simply need to have the proper filepreference set for UI restart setup in java to force the restart for this and any other modcfg's you may find necessary to use.
[Android Apps and Games] daxgirl:
Yay he is baaackkkkkk....

I have a quite simple solution in mind to make FilePreference trigger onPreferenceChanged method... really two lines code. But a friend has systemui fc now, so friends troubles first ???
[Android Apps and Games] Wuby986:
friend fixed.. friend been lucky ;)
[Android Apps and Games] daxgirl:
Friend has a working mod?

Edit: he did! A friend is a genius!!!!
[Android Apps and Games] daxgirl:
Troy, have you tried the custom bg on note5? Does it work ok for you?

I would like to make a general image view for all your custom view needs.

Like dialer, logs screen... and so on.

It's going to be a very simple mod. Which will not require any smali touching.

Just need to know if you're good to go wildnwith the idea. And your view will be on its way tonight.
[Android Apps and Games] tdunham:
My handlepreference for filepreference appRebootRequired, I think its already pretty efficient. ;)

case "FilePreference":
FilePreference f = (FilePreference) pf.findPreference(key);
f.setChecked(sharedPreferences.getBoolean(key, true));
if (key.equals("modcfg_toggle_color_enable")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("modcfg_npanel_colors")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("modcfg_statusbar_colors")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("modcfg_puresignalcluster")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("modcfg_data_usage")) {
appRebootRequired("com.android.systemui");
}
break;
[Android Apps and Games] daxgirl:
Option to add remount system ro/rw when the user is interacting with app

If any of you guys need to mount system rw when the app is running and visible:

1. Open MainViewActivity in studio

2. Find the asynctask class CheckSu

Pay attention: what's in GREEN you DO NOT TOUCH. what's in BLUE, you add!

[B][COLOR="SeaGreen"]public class CheckSu extends AsyncTask<String, Integer, Boolean> {
ProgressDialog mProgressDialog;

@Override
protected void onPreExecute() {
.
.
.
.
.
} else {
//Provided the su privileges have been established, we run the activity as usual, beginning with setting content view
setContentView(R.layout.activity_main_view);
mToolbar = (Toolbar) findViewById(R.id.toolbar_actionbar);
setSupportActionBar(mToolbar);

mNavigationDrawerFragment = (NavigationDrawerFragment)
getFragmentManager().findFragmentById(R.id.fragment_drawer);

// Set up the drawer. Look in NavigationDrawerFragment for more details
mNavigationDrawerFragment.setup(R.id.fragment_drawer, (DrawerLayout) findViewById(R.id.drawer), mToolbar, MainViewActivity.this);
initRebootMenu();
am = getAssets();
//Calling the helper class HandleScripts to copy scripts to the files folder and chmod 755.
//Scripts can be then accessed and executed using script#scriptname key for PreferenceScreen in PreferenceFragments
hs = new HandleScripts(MainViewActivity.this);
hs.copyAssetFolder();[/B][/COLOR]
[B][COLOR="Blue"]try {
remountSystem("rw");
} catch (Exception e) {
e.printStackTrace();
}[/COLOR][/B]
[COLOR="SeaGreen"][B] }

}
}[/B][/COLOR]

[COLOR="blue"][B] @Override
protected void onRestart() {
super.onRestart();
try {
remountSystem("rw");
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
protected void onStop() {
super.onStop();
try {
remountSystem("ro");
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
protected void onDestroy() {
super.onDestroy();
try {
remountSystem("ro");
} catch (Exception e) {
e.printStackTrace();
}
}

private void remountSystem(String mount) throws Exception {
String system = "/system";
String mounted = RootTools.getMountedAs(system);
boolean isMountedRW = mounted.equals("rw") ? true : false;
if (isMountedRW && mount.equals("ro")) {
RootTools.remount(system, "ro");
} else if(!isMountedRW && mount.equals("rw")){
RootTools.remount(system, "rw");
}
}[/B][/COLOR]
[COLOR="SeaGreen"][B]}[/B][/COLOR]

You don't have to do that! You can remount system RW in your script. If you don't run any script that rely on system being writable, you surely don't need it.

Word of advice, if you remount system rw in the beginning of your shell script, make sure to remount it ro at the end of it.

I have successfully tested it on this script:

#!/system/bin/sh

cd /system/scripts
mv ./kill_ui.sh ./kill_ui.sh.bak

As you can see it requres writing into system, but the system is not mounted rw in the script.
[Android Apps and Games] intxeon:
Hi daxgirl

I noticed that If I put a string to launch shell script under Nested PreferenceScreen and Preference Category..it doesn't work.I mean...nothing happens and no toast message appears.

Not Works:

<PreferenceScreen android:title="Test">

<PreferenceCategory android:title="Test">

<PreferenceScreen android:title="Test Script" android:key="script#test" android:summary="test test" />

</PreferenceCategory>

</PreferenceScreen>

Works:

<PreferenceScreen android:title="Test">

<PreferenceScreen android:title="Test Script" android:key="script#test" android:summary="test test" />

</PreferenceScreen>

Works:

<PreferenceCategory android:title="Test">

<PreferenceScreen android:title="Test Script" android:key="script#test" android:summary="test test" />

</PreferenceCategory>
[Android Apps and Games] rompnit:
You can close the category in this fashion and it'll work fine ;)

<PreferenceScreen android:title="Test">
<PreferenceCategory android:title="Test" [COLOR="Red"]/[/COLOR]> ## Change is here ##
<PreferenceScreen android:title="Test Script" android:key="script#test" android:summary="test test" />
</PreferenceScreen>
[Android Apps and Games] daxgirl:
There is really no need to envelop the preferences inside nested preference screen with preference category. I mean that's just nested inside nested... just close the category on itself as [MENTION=1167171]rompnit[/MENTION] mentioned. I can modify the code for nested categories as well but that's just an overkill imo..