Giter Site home page Giter Site logo

template's Introduction

Alt text

substratum development branch Build Status

A new theme manager based off Sony's Overlay Manager Service and Resource Runtime Overlay. This is the official repository of the substratum theme engine.

team code review

To submit a code patch towards any platform applications, please direct them all to our Gerrit code review! https://substratum.review

template's People

Contributors

adarsh-mr avatar allanwang avatar ashoksoni avatar dependabot-support avatar gcantoni avatar gmillz avatar ivaniskandar avatar jahirfiquitiva avatar jertlok avatar kreach3r avatar lzlrd avatar mddanishansari avatar msfjarvis avatar nathanchance avatar nicholaschum avatar nyancrimew avatar ohayoubaka avatar pierx avatar spannaa avatar srisurya95 avatar sstarkenburg avatar subhrajyotisen avatar surge1223 avatar szecs avatar tetsuo55 avatar ungeeked avatar valiantshadow avatar westcripp avatar x1nto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

template's Issues

Apps crashing

Hello, i don't know where else to ask and i searched google for over 1 hour, came out empty..
Everytime i declare a custom made color in a colors.xml in a random app then i use it on a color already declared, after i apply the theme, the app always crashes.
Now, i'm a noob when it comes to Substratum, played alot with CMTE back in the days, but this has got my head spinning.
I tried several apps (dialer,settings,file manager), always the same result.

My colors.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
	<color name="dialer_theme_color">@color/mycolors</color>
	<color name="mycolors">#ffff0000</color>
</resources>

It only crashes if i set @color/mycolors. If i just change the original color, it's working fine.
Why can't i put my own colors in apps?
What am i doing wrong? (This worked fine in CMTE)

Btw, i'm on a RR rom.

Compatibility with Android Studio 2.3.3

I've set up this project in Android Studio but it will not build because it requires Android Studio 3.0 beta. How can I get the project to work with the stable Android Studio?

Error while applying the theme

» [com.android.deskclock]: ERROR: resource directory '/data/user/0/projekt.substratum/cache/SubstratumBuilder/res/' does not exist
» [com.android.deskclock]: Installation of "com.android.deskclock" has failed.

When no changes are made to the theme then everything installs perfectly.
But when I try my own overlays. These issues come up.
New to development, please help me dev!

Question about refactoring

In your instructions, you said change applicationId to com.yourname.themename. So I renamed it to com.erraticfox.arkham and then you said Enter the desired first part of your package name(should be same as that in applicationId of bild.gradle) and click refactor so I right-clicked the substratum folder and refactored to com because as you said again Enter the desired first part of your package name(should be same as that in applicationId of bild.gradle) and when I click DO REFACTOR it says there's already a folder with that name. What do I do?

unathorized

I tried to make a simple modification to the dimens.xml file but whenever I tap on the theme inside substratum a toast appears: This theme is unauthorized to be used on this device's set up.
I have no idea why and how to fix that, google didn't help either.

Kotlin Coding Practices

I'm glad to see that you guys have moved onto Kotlin, but a lot of the code still adopts a Java like structure. There are a few things I'm going to bring up for you to consider:

All links are based on the latest commit as of this issue

Why wrap constants in a singleton object? You can just add the values directly on the top level and also add the const keyword so that they are truly constants added where it is used in the byte code.

if (piracyChecker != null) piracyChecker!!.start()

should be

privacyChecker?.start()

Embrace the null operation rather than enforcing non nulls due to using var

The privacy checker as a whole probably shouldn't be nullable. Just instantiate it lazily so its not done when the check is disabled.

  • System Information
fun checkNetworkConnection(): Boolean? {
    var isConnected = false
    try {
        val process = Runtime.getRuntime().exec("ping -c 1 www.google.com")
        val returnVal = process.waitFor()
        isConnected = returnVal == 0
    } catch (e: Exception) {
        // Suppress error
    }
    return isConnected
}

You can make this return a nonnull Boolean. At the same time, this has an O(1) retrieval time and no parameters. Kotlin's guidelines would suggest you use the var get() syntax but that is up to you. You also probably shouldn't use something like this to begin with especially if it is in the ui thread, but I didn't look any further into it.

A whole bunch of the other functions here all require Context, so use extension functions. And furthermore, none of these should be wrapped in a singleton

FC on Samsung's Adapt Sound

Samsung Adapt Sound crashes and force closes when trying to edit Sound Profiles. My Samsung Galaxy S8+ is themed with the Swift Installer Engine.

A few questions about the NavBar

Can you explain how to do these things?

  • Disable Pixel home button circle (but keep the dot animation)
  • Change Pixel dot images that come out (if possible)
  • Disable scaling of the home button in landscape
  • Change the keyboard button that comes up in a keyboard
  • Change the three dots that come up in a menu

What I have now is here.

Why

Why close?

Create theme info

Hi thanks for this template, i ve some questions because i don t understand how to start.
There is a full tutorial for how to made a theme?
For example i do not understand how to change quick settings icons or icons in settings page.
Thanks

Confused with java

I am new to this ...Iam not getting what Java codes should be added.. Please help me

Question on Java branch status

Hello,

The Java branch hasn't been updated since June, do you still plan to update it ?
There are two reasons for which I'd like the Java branch to be updated :

  • For the moment, AS3.0 which support Kotlin, is still in Beta so I can't compile it with AS2.3.3
  • We should have the choice between Java and Kotlin, both are official Android languages, and more people use Java

Thanks

I can't hide app from launcher

If I remove " category android:name="android.intent.category.LAUNCHER" /> " from manifest ...I can run (compile) the app...

Question about Android studio use

I managed to open the project in android studio. It tells me that the project doesn't use gradle to build. I tried to disable Instant run but I don't have to since it only works with gradle. Any idea what went wrong

Please update README

Please update the README. I had a lot of issues after building the apk and push it to Play Store.

My suggestion:

"Compile your theme as a SIGNED release APK from Android Studio (Build -> Generate Signed APK). Then launch the signed apk on your device and your log will spit out an error log under the name "SubstratumThemeReport", and you want to copy and paste that into APK_SIGNATURE_PRODUCTION on line 10.

NOTE: You only need to do this if you DON'T PLAN to use Google Play App Signing on your Google Play Console. If you plan to use it, leave it blank or the users, who'll download it from Google Play Store, will not be able to use your theme."

Thanks in advance.

assets dont get encrypted

Hi, after building signed apk the assets still are unencrypted tho build log states thst duplicates are getting encrypted. using apkeditor to analyze the signed release apk covers only plaintext xml overlays.

i imported the latest template and focused on readme.md, changeg package name and merged my overlays.

tried 4.1.2, beta3 and canary build of Android Studio.

Navbar help

My navbar icons are functioning but there are a few major bugs. First, they each appear down and to the right compared to where they should be, and it appears the size affects them. For example, setting "android:width","android:height","android:viewportWidth", and "android:viewportHeight" to 30 shows nothing, but 70 shows them down and to the right but also huge, and 144 puts them in the correct spot but makes them way too big. The home key is also always slightly smaller, and when all three are set to 144, the home key is tiny. Thanks!

Please continue sysserv

Please continue work on sysserv for my Life. Without it i will be dead.And so many rom builder and user are dying for this.Thanx so much. A little work will save many people's life.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.