[Q][How-To] Build settings.apk from source code - Paranoid Android Q&A

Hi,
I'm trying to build settings.apk from source code, I download source code from github, opened android studio and add project, copied framework jars from 4.5 beta and added it like library, downloaded SuperSU source and widget and added dependency.
But when I compile it doesn't found resources from SuperSU and crash with a lot of errors. Only happen with resources because java source compile OK.
Do anyone knows how to compile correctly? Can you help me?
Thanks.
Sent from my SGH-I337M using Tapatalk

Related

compiling single xml to binary

how do i compile single xml into binary any way ??
eclipse needs other attached res files which i dont have in their normal form!!!
In my other theard about xml edits, there was a guy(his name slips my mind right now) but i think he was compiling the files in source. I will try and find that info and edit this post.
I don't want hex editimg as I don't lnow it but I think when the pudates are compiled meams like jesus freak compiles the jf versioms we can add our edites ones in them and then it would do coz I have edited some but can't get them edited as the source is for cupcake. I even don't have linux running it hangs on startup...
you cant compile your own xmls for any of the t-mobile builds. This is because we don't have T-mobiles source.
Stericson
edited adp 1.1 launcher apk xmls which i want to be compiled into xml so is there any way ?
no, theres no way because you edited the cupcake files, not that of T-mobiles build.
so even if you do compile it and try to run it, it will loop your phone. Probably won't even get past the first bootloader.
Stericson

[Q] How to add CM toggle to SystemUI.apk

As title said, I want to add CM toggles to SystemUI.apk of android 4.2, but after searching alot I wasn't able to found anything.. Could someone explain it to me or link a tutorial ?
Thanks.
You need to build from source to do this i believe.
Sent from my i9250
You'd need to merge their commits into your own source fork and build it.

SOLVED: [Q] apktool compile error: need HELP

Hoping an "apktool" wizard can help me resolve a compile error driving me up a wall. I've been using apktool for past 6 months successfully making various system and data apk changes, but this one has me stumped. Experimenting with making a few simple color changes in my active Gmail v4.5.2 (inverted theme) apk. It successfully decompiles, but cannot recompile. To eliminate any of my changes, I started over and decompiled the Gmail apk... then immediately recompiled, but get the "No resource identifier found for attribute..." error (attached). I updated my JAVA and re-installed apktool... same issue. Anyone have guidance on what the issue might be? attaching screenshot of my CMD window commands in both WORD and PDF formats. Thx
EDIT: SOLVED I got it solved thanks to recognized themer "Ticklefish" in the UK. Turns out, the apk I was editing included 4.2 code (WidgetCategory)... and apktools could not handle this during recompile with my 4.1.2 framework. I just edited the 4 xml files which had the 4.2 code and removed those lines... made my theming edits... and it recompiled flawlessly. Then signed the apk and pushed to /system/app. If anyone else runs into similar apktool compile errors, this is why and how to resolve.

Strange bug after modifying Settings.apk

So I installed Mokee Rom (KitKat) and as I usually do on new ROM, I edited Settings.apk. I decompiled it with apktool and I added the lacking translated strings in values-fr, so that the app can be entirely translated in french. Then I recompiled it, I took the resources.arsc from the recompiled settings.apk and I copied it on desktop. I then used the file to overwrite the resources.arsc from the original Settings.apk. It did work and I now have a fully translated app. There's only one small bug, when I click on the option to limit sms message under Security section, the Settings app crash. It did not happen before I did my modification. What could cause this?

Can't select finish at new project

hi!
I wanted to decompile an apk with installed API 23 framework apk's. in the "create new project window" the "Finish" button is greyed out, why? Also in "Disassemble dex file" section i can't select newer than "4.4 Kitkat" or "Template for API 20".
The apk what i wanted to decompile is working on android 6.0.1 (it's the latest beta of AIMP).
Screenshot of new project window can be found here
Framework-res.apk and framework-ext-res.apk copied from my phone by VTS (it's a Redmi 3S Prime with latest MIUI 8 Global Developer)
What do i further need to decompile this apk?
MPeti1 said:
hi!
I wanted to decompile an apk with installed API 23 framework apk's. in the "create new project window" the "Finish" button is greyed out, why? Also in "Disassemble dex file" section i can't select newer than "4.4 Kitkat" or "Template for API 20".
The apk what i wanted to decompile is working on android 6.0.1 (it's the latest beta of AIMP).
Screenshot of new project window can be found here
Framework-res.apk and framework-ext-res.apk copied from my phone by VTS (it's a Redmi 3S Prime with latest MIUI 8 Global Developer)
What do i further need to decompile this apk?
Click to expand...
Click to collapse
just change or add latest apktool,baksmali,etc binaries in Virtuous Studio binary folder lie somewhere inside programx86/vir.../externel/.

Categories

Resources