yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] daxgirl:
In android studio you have VCS option (version control). You need to enable it. Then you need to put in your github info and choose a master password for android studio to protect your git account. Then you choose VCS > Git > share project on Git

Then you choose repo name and click OK. Make sure your entire project is selected for repo and click OK.

From now on any change you make will mark the files different colors (blue for file existent on git but changed, green for file added but not added to git, brown for file added to git but not pushed (if I am not mistaken).

F.e. once you made change, let's say you added preferences for phone mods, you click on commit arrow on top toolbar, choose name and description for your commit and then choose commit and push. Or just commit... and push later.

There is no need to be working with git from terminal while working with android studio. Studio manages git perfectly for basic needs.

Of course you need to have git installed and path provided properly in VCS settings of studio.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
i'm such a noob [emoji23][emoji23][emoji23][emoji23][emoji23][emoji23][emoji23][emoji23]

thanks dear
[Android Apps and Games] daxgirl:
You're not ?

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
So guys. Thx to you [MENTION=4714483]daxgirl[/MENTION] [MENTION=5493353]Wuby986[/MENTION]

after wubys first post i spend now a lot of hours to get work and now i see your guides. Noooooo

But i reached i think. Look here and tekk me its right please

https://github.com/asc1977/CrissCrossRomControl.git
[Android Apps and Games] daxgirl:
Perfect.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
sorry mate!! i don't use git on studio.. only for kernel.. she's the tidy one of the two [emoji23]

anyway you're still in time to add it now as you VCS root, right [MENTION=4714483]daxgirl[/MENTION] ?
[Android Apps and Games] daxgirl:
Just needs to enable VCS. Exactly. The project will be connected to git.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
Yes and it was a hard way for me :)

No i put the link in my thread and i am safety for law and order

And every update i do i update also the source. Right?

And btw thx for you both for wasting your time
[Android Apps and Games] daxgirl:
It's not wasting our time. It's a pleasure to help.

Of you have changes on your code just commit and push.

These days not alot of updates to our sources are expected. I am finishing the Google certification now and I don't have time to spare. But once I am graduated, the first order of business is fully reworked app sources, new design, new code, more efficient and backwards compatible down to api 17 (4.2.2).

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
loool i tried to do some homework, but got eaten by the dog... you know .. that happens [emoji23][emoji23][emoji23][emoji23][emoji23][emoji23]
[Android Apps and Games] daxgirl:
Well more homework to come... keep the dog away!!! ???

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] xenreon:
Any chance of taking it all the way down to API 16 ? :D
[Android Apps and Games] daxgirl:
Why would anyone need that???? ??? I think phones running that are old antiquated by now

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] xenreon:
Some people (like me) are still working for antique stuff until they shake off the noob status!!
[Android Apps and Games] daxgirl:
Just a question at this point...

Been playing around with widgets a while back and thought... anyone of you would find it useful to give your users a widget for rom control? It's a simple widget I built as an exercise and basically opens your thread on xda when you press xda and the other shortcuts (can be 1-6, the widget is resizable), can be shortcuts to rom related apps. Or anything user wants...

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
hi [MENTION=4714483]daxgirl[/MENTION]

look at this app

https://play.google.com/store/apps/details?id=it.ale32thebest.nativedpiscalingforgalaxy

or this thread

http://xdaforums.com/galaxy-s6/themes-apps/app-native-dpi-scaling-samsung-t3340475

i think its easy for you that we can integrate this in control app.

can you take a look please

thx

---------- Post added at 19:46 ---------- Previous post was at 19:44 ----------

great feature. let it come please
[Android Apps and Games] daxgirl:
Hi. We have our own native dpi changer. Which works without reboot and works perfectly. It's in use in several roms.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
Really. How i can paste in my romcontrol?

Where i find some guides or links or anything like that
[Android Apps and Games] daxgirl:
Well it's Wuby's baby. We can probably create an android library out of it and let you compile it into your app. Let us know what dpi values your rom supports and we will create a dpichanger.aar for you and teach you how to compile into sources.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
i dont know what dpi my rom support. i only know if i change dpi to for example to 560 my camera dont looks well. but with this app all is fine.

my normal dpi is 640

after change with app all is smaller like 560 dpi but in build.prop nothing is changed and all apps well formed. i think the app do it on a other way.

did your tool or wubys tool change dpi in build.prop or like that app i mentioned
[Android Apps and Games] daxgirl:
Let's separate your issues:

1. The reason your camera doesn't work is it needs a multi dpi support. No app can do it for you. You need to make the support yourself by changing dimensions. There are guides for that.

2. Any dpi changer app needs to do a return least one thing - write into build.prop. we do two things: change dpi on the fly aretnd change build prop physically. So it sticks on reboot.

Dpi changer cannot fix apps with no multi dpi support. That you need to build in yourself into some apps. Usually it's camera, mail client, some other I dunno...

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] thereassaad:
Forget about build.prop editing & use this

https://github.com/Da-OldMan/DpiChanger

& for mm just use n5 mm camera its same as s6 with support multidpi i use it here

Thanks to [MENTION=4714483]daxgirl[/MENTION] & [MENTION=3026895]DaOldMan[/MENTION] for dpi changer it's really awesome guys ..
[Android Apps and Games] daxgirl:
That is exactly our app. The one that wuby built.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] daxgirl:
But we would like to make life easier for you guys and create a library with it.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] thereassaad:
Yes xD thanks to u both ..
[Android Apps and Games] asc1977:
Ok. I will try.....

Btw i tried editing build.prop to see which apps work not with 560 dpi and now after using this app with native dpi i mentioned i cant change döi in build.prop.

I change from 640 to 560 and nothing happens. Did it never work on MM or did it dont work because i have used that app???

I changed all dpi scales in build.prop and also delete all 3 and make a new one but no changes after reboot
[Android Apps and Games] Wuby986:
hot reboot? try the long one..

btw.. you just need one entry for it
[Android Apps and Games] asc1977:
No normal reboot. Nothing happend after using this **** app. I think it changed on any other was the dpi like the build.prop it do. Also dirty flash dont help
[Android Apps and Games] daxgirl:
Dunno what happens to you there. Wuby's dpi changer works. Not that I can test it... LOL ?

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
the only other way density can be set - at least that i am aware of- is wm binary, but it doesn't stick on reboot.. what app is that one, our? if not uninstall that app.. it maybe has a boot receiver and run it every boot up

open terminal and tipe : wm density reset
[Android Apps and Games] daxgirl:
I don't think it's our app that he is trying. Our app is sitting on git all in sources ???

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
Look some posts back. There i write links.

Boohooo i dont want flash rom clean to solve. And i cant try with your dpi changer because true that app all is ignored i esit in build.prop
[Android Apps and Games] daxgirl:
Uninstal the app you're using now. Try editing build prop.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
ok try as i said.. first use terminal and do wm density reset

then if it works uninstall that app
[Android Apps and Games] asc1977:
The app is uninstalled. Wont work
[Android Apps and Games] thereassaad:
Ooops display scalling mate then just set it to standard & its will ask u to restart then just restart ur phone & its should went u back to normal dpi i did it here many when i enable it in setting / display mate ...
[Android Apps and Games] daxgirl:
Which device are you using? Note 4?

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
How do wm density reset?
[Android Apps and Games] Wuby986:
again open terminal and type

su

wm density reset
[Android Apps and Games] asc1977:
I do it to standard and reboot. Than uninstall app and than try editing build.prop. wont work

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

S6edge 925F
[Android Apps and Games] thereassaad:
Ummmmm then reset wm density as Wuby say , anyway so its samsung fault because this features comes with mm but its hidden & maybe they won't u to use dpi changer [emoji1]
[Android Apps and Games] asc1977:
Thx at all three

After density reset all working well

I am now happy and can start again

[MENTION=5405448]thereassaad[/MENTION] s6 edge camera also support 560dpi i see now
[Android Apps and Games] daxgirl:
If you still want to use our app we will provide the library later.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
So new post

I looked at wubys app and try to do an option in my rom control to switch onthefly between 560 and 640 dpi.

So please how the right way?

Can i take parts of this app and integrate in mine or no. I mean because the law and order :)

Or daxgirl says something what you want to build for me. Its enough to switch between 560 amd 640 for me
[Android Apps and Games] daxgirl:
Just those two??? We usually have like 5 built in dpi and one custom number...

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
well the think can be done in soo many ways that i don't even know where to start from..

if you need only 2 values you could add a new item in navbar and call it dpi f.e and then put in it a preference screen with the two option, add the special preference handle like said in the 2nd OP post and into those handle the code to run the change, this will actually require some edits in java class to do it
[Android Apps and Games] asc1977:
If i go lower than 560 dpi the statusbar is to small i think. And over 640 its to big. All user of my rom also asked any time for 560dpi. Also in my 5.1.1 rom only 560 dpi was that what they want. But you can integrate also others if you want. Feel free. Only this two i need really but the others i think its good to have for the rest if they want
[Android Apps and Games] daxgirl:
OK. When we can manage that we will compile an app or a library for you.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
Thx alot. I want to integrate in my romcomtrol. Hope you can manage
[Android Apps and Games] daxgirl:
Now you can try this

Install as regular app. Let us know how it goes.

Thanks!
[Android Apps and Games] asc1977:
Ok. I tried. What i can say is that only 560 and 640 dpi worked well because all is well sized. All others touchwiz launcher dont can adjust. So i need multidpi apps what i dont have and wont to build. So please let me please only have the option for 560 and 640 dpi and custom for all who dont use touchwiz launcher to choose what they want. What i saw is that at first start is written my current dpi. After changes is not written see on screenshot. Also a restart is nessesary because the dpi of statusbar dont change on the fly. Only after reboot
[Android Apps and Games] daxgirl:
To change dpi on status bar you must restart systemui. It's always like that.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] daxgirl:
[MENTION=4596062]asc1977[/MENTION], it's probably would be better for your app if you just used list preference to change dpi. Or better yet an extra nav bar item to launch dialog. Unfortunately I don't have time to build it for you today, but hopefully tomorrow. Sit tight ?

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
hello there,

the preference class for the immersive preference blacklist is ready and tested, it just need a couple of small touches more..

while i was testing this i ended up in not being able to check the setting.db via the app i was used, so i wrote a small side app just to check this value..

from root explorer i can see the size of the db is 0.0 byte but everything is in there..

you guys have trouble in open and check the db via sqlite apps??

if so i can put together in short time this app and release it as open source.

for now it just check only one key and show its value as textview, but make it for an array of your choice value is easy, other thing will be edit, but for now the intent of this tool is only to check our key's value added from Rom Control.
[Android Apps and Games] asc1977:
I tried this but i give up. To much for me. Crying. Stopped at 4th step
[Android Apps and Games] Wuby986:
noooo no!! don't give up!! it's my fault i didn't explained clearly

i will put the handlePreferenceFragment in the zip as well, so you can compare to your and understand why and what i added..

i just won't do it this evening since i have too many other things to do unfortunately, first of all check the car gearbox .. again .... damn
[Android Apps and Games] daxgirl:
Not the gear box again... nooooooooooooooooooo ???

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] asc1977:
Ok i will try again after i see your new noob guide :) :)
[Android Apps and Games] Wuby986:
here is the file.. but please make sure you only add what's highlighted in the prev. post, since i didn't cleaned the file, there COULD be something more not related to it, if so tomorrow i'm gonna check it
[Android Apps and Games] asc1977:
Ok. I started again and get it worked with one problem in HandlePreferenceFragment

At InitAllKey

Look at pic.

Cannot resolve ThumbnailListPreferences plus the errors if i try build apk you see in pic

I THINK YOU FORGOT THE THUMBNAILLISTPREFERENCE IN YOUR GUIDE or insnt it?
[Android Apps and Games] Wuby986:
yeah you don't have that class.. we added some time ago.. you can run a search in the tread, add also that one and see
[Android Apps and Games] asc1977:
Ok. That means the source i pull the romcontrol is not uptodate?

---------- Post added at 08:47 ---------- Previous post was at 08:43 ----------

Post426

Download and paste in my romcontrol

Right? Ore do like guided in that post because are 4 files in zip
[Android Apps and Games] Wuby986:
follow the guide for sure
[Android Apps and Games] asc1977:
No i have all inside. RomControl works but nothing happens if i choose. Have i to do something in my rom too?
[Android Apps and Games] Wuby986:
yes you need to do some edits to make framework read from Settings.System instead from Settings.global

you can find it in the guide [MENTION=4830018]Martillero[/MENTION] posted on gs5 guides and links tread.. search for it in the OP links
[Android Apps and Games] asc1977:
OMG

If i have known that before i didnt try. So much to do. I didnt find that guide. I think i revert my romcontrol to my sources on github and stop that test for me. But thx for help.

Only i do it if you need me as a tester. But than please let me know who is the guide with a link to the post
[Android Apps and Games] daxgirl:
This was not a test but feature requested by modders and rom devs some time earlier this year. If you don't need it, why include it? As stated previously many times, this project is for rom devs to give control over mods existing in their roms. It's not an app that does anything on its own. Sorry for misunderstanding.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
all mods you can apply from this app, we only write in the database.. the ssytem app ( systemUI for the clock for ex) will have to be modded to listen to changes done in the db.
[Android Apps and Games] asc1977:
Thx for all your work. I missu derstand that mod. I dont want to mod to much on my rom becausr i update every base and than i have to rebuild every mod and thats is a never ending story
[Android Apps and Games] asc1977:
A new question from the romcontrol noob :)

I have a mod for adding ram showing to anywhere like expanded systemui. The line for statusbar.xml and the smalis. Now i want to add a switch in rom co trol for that. What did i add to smalis and where that it works? I think i must put there a line in smalis that it works. Right?
[Android Apps and Games] Wuby986:
you can add a switch to turn on or off, what you need to do in romcontrol is add a switchPreference with a certain key value you want in the preference .xml of your choice ( let's say ui_prefs.xml) and you're done.. most of the work has to be done in smali of the systemUI to listen to the change we're doing on the key you choose for it, so in smali you say something if (key == 0 ) { setVisibility(VIEW.GONE)} else{ view.visible}
[Android Apps and Games] asc1977:
Ok. Thx. Thats what i think. So i must search how a key in smali looks like and do it in my smali. Thx
[Android Apps and Games] aceqott:
Hello !, How could add an entry to "HandlePreferenceFragments" to "ThumbnailListPreference" in the method public void onSharedPreferenceChanged (SharedPreferences SharedPreferences, String key) {?

I need to restart SystemUI

I was trying but I get error code.

Thank you.
[Android Apps and Games] Wuby986:
how are you performing it? please post the code
[Android Apps and Games] aceqott:
I created an entry like "MyListPreference". I also like to have a "ThumbnailListPreference", but do not know the code to write.

I need to create an entry for "toggle_buttons_background" and restart SystemUI.
[Android Apps and Games] daxgirl:
Didn't I add the code for thumbnail list preference in the original guide I wrote for that preference? I mean people have been using it for a while, so it must be in the guide ?

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] aceqott:
In the original guide thumbnail code I see no case section to add "ThumbnailListPreference" the method "public void onSharedPreferenceChanged"

Would you kindly tell me the code to add?

I try to set me in case "MyListPreference"
[Android Apps and Games] daxgirl:
Oh I see what you mean...

You don't need to add your condition for special key necessary inside the thumbnail list preference clause. You can add it before the closing bracket of method onSharedPreferencesChanged... just add a condition...

if (key.equals("your_key")){

//restart systemui

}

This condition doesn't need to be preference instance specific. Just add it after the switch/case before the end of the method. Preferably before the call for updataDatabase call. But it doesn't really matter.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] aceqott:
Exactly, that's what I meant. I understand, thank you very much.

Great work you are making, [MENTION=4714483]daxgirl[/MENTION] and [MENTION=5493353]Wuby986[/MENTION].

My Control ROM looks more beautiful now.
[Android Apps and Games] ravian29:
hi to all and sorry to bother you for this post, i have a little question about rom controller. One of respectable developer [MENTION=6681786]sheard[/MENTION] referred me to this post by [MENTION=4714483]daxgirl[/MENTION] and informed me to have source of my modified rom controller on github. I tried to find such info on project first page but i did not find anything about it. My question is, is it really necessary to have modified source on github ? if yes, can you guys please update the op so all following devs do this as if someone did not find this post and did not follow the instruction, there may be some clashes. Thanks a lot again
[Android Apps and Games] Wuby986:
yes it is necessary because you have to provide the source for the package you're currently releasing.. we will add this info in the OP. thanks for pointing it out
[Android Apps and Games] ravian29:
great, i will release my source asap. Thanks for your help and clarification :highfive:
[Android Apps and Games] daxgirl:
The OP of this thread clearly states that a developer must keep the project open source and respect the license under which it was published. That means, like any open source project, sources for any app based on this project MUST be made public. I am not sure I understand the confusion.

Any changes you make, must be made public. On your op thread you must have github repo link with updated sources. That's what it means to have open source app. No further clarification needed.

Sent from my ACTUAL SM-N920C using transporter...
[Android Apps and Games] Wuby986:
As you didnt replied i thought you solved.. did you installed the requested repo? Last pic you sent me was missing those

Inviato dal mio SM-G935F utilizzando Tapatalk
[Android Apps and Games] ROBERT CM:
No, because android studio does not allow to download and install these repository (Attachment idea log)

android studio recomended use 23.3.0 no 23.0.3

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.wubydax.romcontrol"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
[COLOR="Red"]compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'[/COLOR]
compile 'com.github.shell-software:fab:1.1.1'
compile files('libs/RootTools.jar')

}

Now I get these error are similar error at before..

Error:Error: File path too long on Windows, keep below 240 characters : C:\Program Files\Android\Android Studio\plugins\android\lib\templates\other\CustomSettingsForDevs-master\CustomSettingsForDevs\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.3.0\res\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png

Error:Execution failed for task ':app:mergeDebugResources'.
> C:\Program Files\Android\Android Studio\plugins\android\lib\templates\other\CustomSettingsForDevs-master\CustomSettingsForDevs\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.3.0\res\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png: Error: File path too long on Windows, keep below 240 characters : C:\Program Files\Android\Android Studio\plugins\android\lib\templates\other\CustomSettingsForDevs-master\CustomSettingsForDevs\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.3.0\res\drawable-mdpi-v4\abc_switch_track_mtrl_alpha.9.png
[Android Apps and Games] Wuby986:
Ok then go for that.. update the compileSdkVersion to 23 as well as the targetSdk.. you can leave the min skd as is 21

Edit sorry now i see you have already... try as dax says.. you anyway have a problem with path and ... windows.. god..i hate it ????

Inviato dal mio SM-G935F utilizzando Tapatalk