yashsingh1/xdaforums huggingface dataset:
[Android General] an-_-dro:
i got this error when try to importing RC source....

Error:(95, 0) Project with path ':6thgeardebloater' could not be found in project ':app'.

sorry if i repeating same questions, but i cant find similar while searching. thanks in advance..
[Android General] Many40:
Hmm .... Gradle syncing is a very tricky thing. I spent 3 terrible days on troubleshooting it .... but finally succeeded.

Now android studio works very well for me.

Coming back to your issue -> you gave up too fast. Solution is quite easy but in order to realize this you need to learn/read how to set up Android Studio a little bit more.

Normally I don't like providing spoon-feeding solutions so I encourage you to read more about Gradle build dependencies (for instance here:

https://developer.android.com/studio/build/dependencies.html)

Also remember that Stackoverflow can be your very good friend ;)

Good luck!
[Android General] edzamber:
Deleted
[Android General] an-_-dro:
yes, thank you so much. i managed to fork another source to build my RC and other source no problem like that.

stackoverflow "too cocky" for me.. hahah :D bunch of perfectionist smart overloaded brain guys. they demand too perfect for everything even for writing a questions.. better ask here or finding by my self, google and time will tell and become your loyal best friend. :victory:
[Android General] RealGroot:
I cant figure out a fix for this how did you solve it?
[Android General] RealGroot:
[MENTION=5031964]an-_-dro[/MENTION] Would you mind assisting me?

---------- Post added at 12:18 AM ---------- Previous post was at 12:18 AM ----------

[MENTION=5031964]an-_-dro[/MENTION] Would you mind assisting me?
[Android General] :
Hello

Thank you very much!! Work perfectly :p:good:
[Android General] Timeral:
Could the source running on Android 4.3?
[Android General] Wuby986:
nope.. that was sdk 17.. this goes from 21 up

Inviato dal mio SM-G930F utilizzando Tapatalk
[Android General] Er. Aditya:
hi guys which xml is linked to drawer ? i want to change the font just couldnt find the xml
[Android General] kep2008:
Deleted.
[Android General] thereassaad:
What exactly u mean for new update ? All features still working on Oreo , only run scripts doesn't work on Oreo as far as i know ..
[Android General] aarush.chaurasiya:
[MENTION=4714483]daxgirl[/MENTION]

13:50	Gradle sync started

13:51	Gradle sync failed: Project with path ':6thgeardebloater' could not be found in project ':app'.

Consult IDE log for more details (Help | Show Log) (2s 679ms)

how to fix this
[Android General] Timeral:
I see.

Thanks.
[Android General] mlgmxyysd:
http://www.oneplusbbs.com/thread-4613351-1.html

This rom used romcontrol but not provide any souce code. [MENTION=4714483]daxgirl[/MENTION]
[Android General] :
Hello

Change by this for the RC V2

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference

<com.wubydax.romcontrol.v2.prefs.MyListPreference

<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference

<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference

Good luck

edit : Exemple for you https://drive.google.com/open?id=1GYgc37wszI3CeXAxyDXJSep8rn77s5Qu
[Android General] JesseBenson:
Hello [MENTION=4714483]daxgirl[/MENTION] and all others can someone tell me how can i change the package name of the app? I just want to change wubydax to jessbenson so i can upload it to playstore.

I tried chaging in manefist then in all xmls and using notepad++ in all directories evevrything failed it compiles fine no logs no errors but it crashes as it opens

---------- Post added at 06:25 PM ---------- Previous post was at 06:24 PM ----------

Hello [MENTION=4714483]daxgirl[/MENTION] and all others can someone tell me how can i change the package name of the app? I just want to change wubydax to jessbenson so i can upload it to playstore.

I tried chaging in manefist then in all xmls and using notepad++ in all directories evevrything failed it compiles fine no logs no errors but it crashes as it opens
[Android General] extrawinning:
thanks for your article, this help alot to me
[Android General] Cheemaa:
I have a bootloader locked device(running pie) with only twrp and no root. I got 3minit battery mod working on my device and the app does not require root permissions(by editing systemui.apk and flashing zip via twrp) . If it's possible to change battery icon with a app without root permissions, is it possible to have romcontrol(or some thing like that)?.

For example,

Let's say I want a toggle for "require fingerprints after reboot). Would that require root?

-SO BASICALLY

If I can use 3minit battery mod without root, can I use romcontrol(or similar app) without root.
[Android General] Er. Aditya:
anyone has working script i could refer to i am unable to make script work
[Android General] serpent android:
Hi all.does anyone know what is the gpu power control level in kernel auditor settings,the default is set to 5 on adreno 530.thx
[Android General] Wuby986:
Specific Q fixes

i all.. it's been long time that me and [MENTION=4714483]daxgirl[/MENTION] left coding aside, but since i've been told that on Q the reboot menu is giving FC when clicked here's a quick fix, thanks to [MENTION=5405448]thereassaad[/MENTION] for testing it.

you'll have to edit the method getRebootMenuDialog() in MyDialogFragment class.

last line before the return sets the type and since the one we used is now deprecated we have to change to one that works so the line becomes:

dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);

that would be enough to display the menu but not to make it working: unfortunately new permission in Q don't let us use the old - and cleaner - way without using shell and root, so now we'll have to switch to using shell.

the onClick(View v) method now has to look like this:

@Override
public void onClick(View v) {
int id = v.getId();
PowerManager powerManager = (PowerManager) MyApp.getContext().getSystemService(Context.POWER_SERVICE);
switch (id) {
case R.id.rebootDevice:
Command reboot = new Command(0, "reboot");
try {
RootTools.getShell(true).add(reboot);
} catch (IOException e) {
e.printStackTrace();
} catch (TimeoutException e) {
e.printStackTrace();
} catch (RootDeniedException e) {
e.printStackTrace();
}
break;
case R.id.rebootRecovery:
Command recovery = new Command(0, "reboot recovery");
try {
RootTools.getShell(true).add(recovery);
} catch (IOException e) {
e.printStackTrace();
} catch (TimeoutException e) {
e.printStackTrace();
} catch (RootDeniedException e) {
e.printStackTrace();
}
break;
case R.id.rebootUI:
Utils.killPackage("com.android.systemui");
break;

}
getDialog().dismiss();
}

if by any chance the rebootUI case doesn't work most likely is because busybox is not in /system/bin anymore and you'll have to edit in the Utils class the line where busybox is used accordingly to your busybox current path. i would suggest to use a terminal app to check and then edit the line.

i've been also told that there is another issue with the Uri prefs, but i will need more time to investigate that since i am not rooted anymore and still on P, therefore i cannot reproduce it on the phone or on the emulator, and this makes things a lot worse

meanwhile have fun coding
[Android General] daxgirl:
Thread is now officially open and sources are ONLINE​
[Android General] dacorsa:
thanks great software!!!
[Android General] claude96:
@ Wuby986 & @ Daxgirl

On another day, this would have been a great news, unfortunately not today, today is again a very sad day in France ( Nice :crying: ), but thanks a mill for your great work as always. ( Sorry for the OT )
[Android General] daxgirl:
Absolutely horrible.... immeasurable tragedy. Our hearts are with you all.
[Android General] SidRobo:
I just can say thanks for your beautiful fantastic goal, it's much more amazing than just an app. it pushed me to go and learn Java in version 1 and it'll be continue more exciting with v2.

thanks you all. <3
[Android General] daxgirl:
Out of thanks for today. Sorry! But thank you!

Fortunately, in this version no java knowledge needed. We tried to automate it as much as possible. But we never know what the future brings ?
[Android General] daxgirl:
Dear friends!

We have made a special effort this time to write 7 extensive OP posts covering major topic in using this project and android studio in general.

Some of you may think it's of no interest to them, but believe us, we only wrote the essentials. Please take your time with a cup of coffee (or 8 cups of coffee) to first read it through. All of them. There are alot of examples and explanations. And pictures. We wanted things to be as clear as possible.

After a short time all will seem really easy for you, but alot of the topics we covered are new to most of your especially the gradle part. It makes life much easier if you understand all that. It's fundamentally different from the v1.0.

It would save much time for you and us if you took tile to read all from the beginning to the end.
[Android General] SidRobo:
Obviously, just we users should appreciate and thankful for this. And yea as you master, out of thanks too :laugh:.
[Android General] edzamber:
Thanks for this great update.

RomControl v2 Forked on my Github to share sources i will add.

For now i must lurn to mod app with Studio, no more Apktool.
[Android General] asc1977:
And thanks again for V2. I am full in work to update my romcontrol to v2. I release this weekend my rom V2.2 with new romcontrol. Sources already uploaded.

BACK TO WORK [emoji2]
[Android General] daxgirl:
How is it going guys? No troubles understanding the new preferences system? Have any of you ran on actual device?

Keep us in the loop if you need help or more info on gradle tasks and making yiur life easy.

Any of you made a signing key? Configured release build with our instructions?

It's nor less important to us than code work. We want to make sure you're all running nice smooth minified release builds. Please do not hesitate to ask questions related to gradle tasks and signing. We're here to guide you through the labor chores.
[Android General] asc1977:
No problems till now. Run in phone as data app. Not in system till now. Not signed. Only porting step by step old switches and all other stuff. All is easy and new but no problem to work on it.

If problems coming which I can't reach goal and not explained in first pages be sure I will ask you[emoji2]

Edit: running on note5 UX beta
[Android General] daxgirl:
We will start building the advanced section tomorrow. It's not really advanced, but going deeper into making your building easy and personalized. We have tons of tasks and modifications we can teach you to apply.
[Android General] daxgirl:
Note there is autocomplete on android studio. Start typing "kill" or "package" it eill suggest app:packageNameToKill... and so on. Start typing "myswitch" it will suggest the MySwitchPreference... and just click enter. Just hints and tips... take advantage of that.

Use new vector drawables for icons in notification drawer. Leave your png behind. They just take up space. Use OpenAppPreference to set shortcuts for apps, it will load icons from apps, so you don't need extra png. So on... more tips to come...
[Android General] edzamber:
For me, i will working on it on monday, for now familly week-end.

But if i don't understand something i will ask Here.

Many Thanks for your good work [emoji2]
[Android General] tdunham:
I think I should weigh in here on this new version that I was most fortunate to be able to participate and contribute to during the testing phase, which included a ton of real hands on help from the developers... DON'T BE IN A RUSH!!! If you think you can build this in couple of days and just import your current prefs and make a few changes, you're missing out on a TON of new features! I've been building mine for a week and it's still not quite there... And like I said, I had help.
[Android General] asc1977:
Bug or not?

After a long night and much hours i comletly rebuilded my romcontrol with new V2

I builded a xml for apps with toolbox and more. i choosed that i see app icon.

i pushed rc now to system/priv-app and reboot phone. app icons are not shown in the area apps in rc. after i press suystemui reboot in rc the icons appears.

if i close rc and reopen app icons are gone. so i do a systemui reboot and they appears

XML Code

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory android:title="Shortcut to apps">
<com.wubydax.romcontrol.v2.prefs.OpenAppPreference
android:title="Toolbox"
android:summary="Toolbox floating feature"
app:componentName="com.wubydax.toolboxsettings/com.wubydax.toolboxsettings.ToolboxSettings"/>
<com.wubydax.romcontrol.v2.prefs.OpenAppPreference
android:title="Gradient Statusbar"
android:summary="Set Statusbar Color"
app:componentName="com.potato.gradientapp/com.potato.gradientapp.MainActivity"/>
<com.wubydax.romcontrol.v2.prefs.OpenAppPreference
android:title="3Minit Battery Mod"
android:summary="Custom battery chooser"
app:componentName="com.three.minit.minitbatterysettings.free/com.three.minit.minitbatterysettings.MainActivity"/>
</PreferenceCategory>
</PreferenceScreen>

any help or suggestions??

---------- Post added at 07:19 ---------- Previous post was at 07:17 ----------

Additional screenshots
[Android General] daxgirl:
This should not happen on this version.i just tested and all my icons are working. And why restart systemui???
[Android General] asc1977:
Was not wanted. Only a try. But it is like it is.

But if you want you can look in my source code
[Android General] daxgirl:
Not a problem. I am now at work, but when I get home I will try your xml and see what goes on. Don't worry.
[Android General] asc1977:
thx, take your time. i send you here if you need link to source code and builded apk if you need

Source code
[Android General] daxgirl:
Apk is not necessary. Source code also. Just send me the xml file where you put the preferences for shortcuts. I will test specifically that.

We rather you don't upload apk files here at all. [MENTION=4596062]asc1977[/MENTION] to protect people who will take it and use with apktool from being sued. ???
[Android General] asc1977:
ok

apk is deleted and here in attachmend the xml
[Android General] daxgirl:
Just FYI this icon thingy bugged us during the beta testing stage quite alot and we kept changing that preference. So it's probably a real bug since I switched it back to overriding onbindview. It gave us tons of troubles. Today hoping to fix it once and for all... the little bugger this thing ???
[Android General] asc1977:
Ok so you make a update to source code I think but did you please tell me after you fixed what to do on my existing source code that I have not rebuild again complete rc
[Android General] daxgirl:
Not a problem. It's a single java class. Once we fix and test we will upload just the class for people who are already working. And you will copy paste it into studio and sync the sources by making commit. And we will of course update sources for other people and for the future.

This will not affect the work you have done so far. No worries.
[Android General] JonathanRAZ:
Is there any way to stop R.java from creating comments i know is automated but i mean this i fixed them and they re appear....yes i am on aide mobile just asking if not well too bad will have to use pc sometime to time [MENTION=4714483]daxgirl[/MENTION]
[Android General] daxgirl:
It's a sode effect of bad development environment. So you will just have to either switch to studio or live with it, Jonathan.
[Android General] asc1977:
Special for you two [MENTION=4714483]daxgirl[/MENTION] [MENTION=5493353]Wuby986[/MENTION]

Thx for work. You get a place in my romcontrol
[Android General] daxgirl:
Impressive! But icons on top are to the left? Why? They should be centered... and probably not all with Wuby's avatar ???

You have extra empty array item...

I am gonna invoke [MENTION=1042140]tdunham[/MENTION] to show you what he managed with HIS About Us activity. It's REALLY funny!!!
[Android General] asc1977:
Oh a bug. Must be xda avatar on top. [emoji2]

Why not centered? I didn't know. I removed one and it is left. I didn't get it centered
[Android General] daxgirl:
The array for contact us both for titles and images and links should be 2 items. There is probably an empty 3rd item somewhere.

And for Wuby's avatar, it's a problem with your drawables array for contact us section. It always sets view as number of items. And it takes as much space as needed to be centered. So go over your arrays. Do not touch layouts. Layouts are carefully setup for that to be automated.
[Android General] asc1977:
The avatar was no problem. Only a typo but the alignment is a problem. All arrays are only two but not centered
[Android General] daxgirl:
Let me see if it's my mixup. Till now we only tested with 3 items. I will check it out when I get home. You're on fire today!!!
[Android General] asc1977:
Yes I must on fire !!!

Want to release lately tomorrow because go for one week for business to South Africa and can't release there [emoji23]

---------- Post added at 10:25 ---------- Previous post was at 10:21 ----------

But what I see is that all is left aligned
[Android General] daxgirl:
They are not left aligned. They have weight_sum of 3. That's what I think. I think I might have forgotten to set it dynamically in java. Will have a look when I am home.
[Android General] asc1977:
No hurry girl
[Android General] tdunham:
Here is a sampler of what can be accomplished...

#1 is my 'About us'

#2 is a simple yet elegant pref view, it doesn't need to be overly complicated

#3 Examples of how I make use of longer summaries to provide better descriptions for features. (I embed a \n in the summary string to create a linefeed)

#4 & #5, Select an image header that will display well if displayed landscape
[Android General] oluwaponmile:
Congratulations and Very well done...........

I couldn't post on the thread before for some unknown reasons

I will like to say a very BIG congratulations and thank you to [MENTION=4714483]daxgirl[/MENTION] and [MENTION=5493353]Wuby986[/MENTION] for their effort in rc2 and not forgetting all those amazing apps of the past and your general contributions to this part of the world, you guys are absolutely brilliant and amazing.

Also, well done to [MENTION=3026895]DaOldMan[/MENTION] and [MENTION=1042140]tdunham[/MENTION] for your quality assurance during testing phase.....you brought the best out of RC2 for us. :good:

Now, the fun has began..........
[Android General] daxgirl:
Thanks, Olu!!! We surely all had our fun so during beta testing... most of the time fun and android talks long into the night. Great times with great friends!!! Wuby and I couldn't ask for better quality control. Both Thomas and Troy were (and still are) keeping us on our toes for every little feature to fine tune it to the max.
[Android General] shingz96:
Erm i faced this kind of weird error

Error:Unable to start the daemon process.

This problem might be caused by incorrect configuration of the daemon.

For example, an unrecognized jvm option is used.

Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.10/userguide/gradle_daemon.html

Please read the following process output to find out more:

-----------------------

Error occurred during initialization of VM

Could not reserve enough space for 2097152KB object heap

Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
[Android General] daxgirl:
This is strictly your side studio/jde/gradle not friends problem. There is no way for us to solve it. It's not related to this project but mostly general. Try searching all or parts of error and looking up on stackoverflow.
[Android General] daxgirl:
[MENTION=4596062]asc1977[/MENTION] the latest commit to fix the automatic centering for About Us activity contact items (top row).

As I thought we forgot to remove the weightSum from layout. Its a one line fix: See the fix here:

https://github.com/wubydax/6thGear-RomControl-v2.0/commit/c9cd56b3750a0ebb96ca372d001498b386f5c4ce
[Android General] asc1977:
Thx. Now I am out but I try asap I am at home
[Android General] daxgirl:
Fix for OpenAppPreference

Yes, it's a bug and thank you!!!

Also big thanks to [MENTION=3901205]Logel[/MENTION] for finding bug in preferences iteration, when not all uninstalled apps preferences were removed. Although [MENTION=3026895]DaOldMan[/MENTION] did not convey the bug to us, I stumbled on it accidentally thanks to the xml from [MENTION=4596062]asc1977[/MENTION], and Thomas told me you actually noticed that before. Great eye you have!!!. Now the apps that are not installed should be all removed. Would like everyone's input on the following fixes.

You have 2 files in zip. You need to replace them both in the project so you don't have to pull the latest sources:

In the java find "prefs" package, right click on it and choose paste for OpenAppPreference.java

Right click on main package (com.wubydax.romcontrol.v2) and paste PrefsFragment.java

Those will replace the existing files. Don't worry about your work so far. You have not touched those java classes. They will not affect your xml work.

Sources updated on git with the following commits:

Fix for app icon

Fix for preferences iteration when preferences are dynamically removed
[Android General] oluwaponmile:
I can imagine the time and effort my lady, well done:good:.....and beside, Thomas is a great pusher, he will push to the limit until things are perfect:p:D You and wuby certainly deserve a lot of rest after this initial user's support:cowboy:
[Android General] Kamy:
Thank you for great support. I have made all my empty preference file and adding my mods one by one. Just little thing I faced when adding packageNameToKill to other preferences it asks me to import namespace, and there are two schemas to choose from xmlns:app="urn:oasis:names:tc:xliff:document and xmlns:app="http://schemas.android.com/tools. I chose http://schemas.android.com/tools as the other one I think is for xml localization but it didn't trigger the killing script so I switched to xmlns:app="http://schemas.android.com/apk/res-auto now the killing script works fine. Scripts in v2 are beautifully done, specially those warning dialogs and also there is no need to use pkill zygote that needs phone reboot. Themeing also very simple just changing 4 colors.
[Android General] daxgirl:
Thank you Kamy!

You should always use the app name space. With res-auto at the end. Because this is our app's name space. We will add this to the q and a when we make them.

As little present we taught our beta testers how to switch the app name space to their own custom name space. For example in Thomas's rc for phronesis rom all custom attributes are called f.e. phronesis:packageNameToKill.

It's a funny little thing you can do in Android but it seems to make devs happy to be able to do that. If anyone is interested we can teach you how to switch your custom attributes to rom specific ones. It's kinda cool ???

F.e. aryamod:isSilent a different so on ???

We do stuff like that when we are bored.. mainly because wuby and I are nuts.. ???
[Android General] Kamy:
Nice. Thank you for the hint. Yeah in v1 I changed the name space to aryamod using refractor but I haven't decided changing it in v2 yet.

Edit: BTW aryamod is never silent [emoji12]
[Android General] daxgirl:
Well you're amazingly nuts like us ???
[Android General] jazzespresso:
Hi [MENTION=4714483]daxgirl[/MENTION]

I did not have this error when I built it first time for v2.0, but now getting this error, not sure why...like I mentioned, new to Android Studio, so be nice to me :)

4:34:24 PM EmptyThrowable

Unexpected template constraint: XML.

Expected one or more of: (UNIQUE|EXISTS|NONEMPTY|EMPTY|ACTIVITY|APILEVEL|CLASS|PACKAGE|APP_PACKAGE|MODULE|LAYOUT|DRAWABLE|VALUES|ID|SOURCE_SET_FOLDER|STRING|URI_AUTHORITY)

4:34:26 PM Error Loading Project: Cannot load module RomControl Details...