[Q] Changing and App package name - Android Apps and Games

so i recently i modified the CMwallpapers.apk so that it had the honeycomb wallpapers in it, i like having this but the drawback is i have to uninstall CMwallpapers in order to install this modified version i tried changing the package name in the manifest but it caused a FC upon installing. Is there something i am missing to do this?
i would class myself as moderately skilled when it comes to this stuff, as long as it doesnt involve coding in java, tools i have at hand:
-apk manager
-xml marker for xml edits
-7zip
-the internet
if anybody can tell me how to fix it that would be awesome

Related

[10/25][Universal!][Windows] Trailblazer101's Custom Framework Maker v6

Trailblazer101's Custom Framework Maker v6
Now with my batch program, creating your own personalized Framework is as simple as 1.2.3!
This batch created by me was created with the "noob" in mind.. Of course this "noob" must already have Java installed, and should have ADB set up correctly
Features:
- Easy-To-Use Framework Chooser (with support for your own framework!)
- Softkey Themer (with easy access to create your own!)
- Custom Softkey Mapping Support (Nexus S included, easy to create and add your own!)
- 1.2.3 Package Creating (and Pushing/Rebooting into Recovery too!*)
- Unique Ticker Clock Color Selection (type in whatever color you can think of!*)
-Weather Icon and/or History Button Removal! (Actually removes the Icons, not just blanks them over!)
-Drag-and-Drop Functionality! (Includes all the tasks that you will ever want to do with an *.apk or *.jar)
-Automatically Checks for Updates! (Warns you if there in an update, displays text about the update, and opens up your browser to this page )
-Option to Set my Program as the Default Action for APKs and/or JARs! (So when you click on an APK and/or JAR, it'll open up my program!)
-Lots of Extras and Bugfixes! (Check it out!)
Developer's Mode! (You can find the option to enable it in Extras -> Program Settings!)
Future Proof! and Bug fixes (The method it now uses to set the Ticker Modifications works no matter what is going on with your Standbymode.xml file!)
Ability to Change Pressed Clock Color!* (You must be on a ROM that supports this to notice any changes...)
NEW: Compatibility with Gingerbread Mods!
NEW: Shows History in the choose file screen!
NEW: Set Update Settings from Program!
The function of this Program to create a new, all your own, Flashable Package that has your own personal touch to it
The wonderful thing about this program is that you can use this with any old framework-res file from any rom/mod package! This means that you can create your own themed framework from DJ20 up to EC07
There are only two stipulations: 1) that you are running a deodexed rom, which means that there are no .odex files located withing the system/framework folder or system/app folder... If you are in doubt about this, a stock rom straight from the store will NOT work! But pretty much any rom found on this website works 2) You have Java installed, and should have ADB properly set up!
Now, let's get down to specific details about the different functions and terminology:
1) Towards the top of the main page is very important! This is an easy view of what settings you currently have applied Always keep an eye out on this, to make sure that you have selected everything that you want to select!
2) Default= Not Changed... Whatever the previous framework had, this option will allow the new framework to have it too... This includes history button/weather icon removal!
This Just In: Add your own Color to the Ticker Clock! This is still in beta stages, so be careful when changing the color... If you see any error messages, DON'T ATTEMPT FLASHING THE PACKAGE... But if it works for you, you have the easy and convenient ability to set any color you want for the Clock in a matter of seconds!
Also, You can now remove the Ticker Buttons on the main screen automatically, within seconds! And the icons are removed, not just covered up!
A new feature recently added was the option for custom Softkey Mapping! This setting can be found under extras, then under Softkey Remapping As of right now there is only the Nexus S remapping, with the original added in in case anyone flashed the Nexus S one and wants to make a new package to go back, but you can make your own easily! Just use the original mapping as a starting point, and go from there
You are more than welcome, and actually encouraged, to add your own! You can copy in your own personal framework, and you can make your own folder with your own Images!
*Notice: Make sure if you do make your own images that the image names are the same as the original! This is important, or the batch will not work!
I have said this before, and I will say this again... Please, for the sake of the community, if you make a package, please upload it I will be more than happy to share it on the front page of one of my Threads, giving you all of the credit
If you have found this Batch helpful, almost to the point of a godsend, you can click that Donate to me button if you want
Download Links Below [NEW: 2/13]:
http://www.mediafire.com/download.php?smmg1gvc7qch3br
awesome tb101
This looks awesome! Wish I had windows though...
Sent from my SCH-I400 using xda premium
Yeah, that sucks xP
And its just getting better!
Almost done adding in automatic hands free ticker clock color editing
Sent from my SCH-I400 using xda premium
I cant seem to find the download?
sent from my XDA phone - its more than a continuum
You got that right. Unless there's another below somewhere else =)
Re-Uploaded! Please download and try it out, and be sure to leave comments/suggestions!
hmmm well tried v3,
adb said successful push, wasnt, did it manually.
ticker color mod created w/o previous error via v2
flashed and after pause on bootup went black and did the vibrating jig.
restoring now...
tested w/o success gonna try with my pulled frameworks, might be because of recent added settings mod.
great job non the less tb101!
Yeah, build v2 didn't actually say an error message when it should've, so that is actually a good thing kinda, haha...
Can you tell me please what settings you applied? Like, what framework, softkeys (if any), auto-create etc etc
BTW: I am on the IRC, that might be faster
yeah i havent done anything to my phone since the restore after the failed flash.
i used the ec07 builtin frameworks, original softkeys, and purple color on ticker lol.
i opted to push in adb and it said it was successfully pushed, but it wasnt.
side note:
been real busy with tune up etc on the cars i own and work. hopefully this weekend i can try again. and fully set up my new to me dual screen xp64 media pc with adobe master suite. partitioned correctly this time to install the droid dev kit in windows and live cd....
updated OP with new version! has Weather Icon and History button removing
finally thanked the post, cause.... it finally worked for me. thanks again.
is there a dif from op and the one i got last night?
Haha, thank God it finally works for you xP you were like the only one xP
And uh, not anything big I don't think, haha... But probably safe to switch to this version anyways, just in case xP
Sent from my SCH-I400 using xda premium
Whenever I choose to remove the ticker history button and push the framework to my phone my phone won't boot afterwards. I've tried twice
Can you look in the log for me and see if anything is error-ish?
And how are you pushing the framework?
And are you using a framework that matches your current set up?
Sent from my SCH-I400 using xda premium
I didn't notice any errors. I pushed it using the script and doing it myself through adb like I always have. Yea I'm using the framework that I pulled from my phone right before using the script.
circa881 said:
I didn't notice any errors. I pushed it using the script and doing it myself through adb like I always have. Yea I'm using the framework that I pulled from my phone right before using the script.
Click to expand...
Click to collapse
that happened to me in v2.
i got it to work finally by reinstalling sdk and jdk (or just jre) and then manually copying my phone frameworks and putting it in the folder with rest. if all is insatlled correctly you should have no worries
ciscogee said:
that happened to me in v2.
i got it to work finally by reinstalling sdk and jdk (or just jre) and then manually copying my phone frameworks and putting it in the folder with rest. if all is insatlled correctly you should have no worries
Click to expand...
Click to collapse
Still didn't work.
circa881 said:
Still didn't work.
Click to expand...
Click to collapse
in irc now... lets see where ur at
I'm in the irc now, let's figure all this out, shall we?

Animated Status Bar Pull Down

Just wondering if anyone is interested in this? I learned how from the original back on the Motorola Droid and have made it work for other phones. I used to be a themer but have since been spending my free time on other things. However, I still have the urge every once in awhile. For those not familiar, this will create a little looped video playing on the pull down screen.
Guide:
Instructions for Windows users... (Linux users: You should be able to follow along, as the idea is the same in both)
Things you will need:
The knowledge that whatever you do with this information is YOUR responsibility and not mine, nor the creators / developers of the mod and / or rom.
Basics -
Working computer.
Time.
Patience.
Animation images / Idea for making your own animation.
Computer Programs:
Java: http://www.java.com/en/download/index.jsp
Apk Manager: http://forum.xda-developers.com/showthread.php?t=695701
Text Editor (Suggested - Notepad++: http://notepad-plus-plus.org/download/v5.9.6.2.html )*
Archive Managing program (ie WinZip, WinRar, 7zip) (Suggested - 7zip: http://www.7-zip.org/download.html )*
Image Manipulation program > Whether it be Photoshop, Paint.Net, or GIMP, we'll refer to it as PIMP for short from now on.
(Suggested - Dark Silent GIMP: http://dl.dropbox.com/u/9903887/PCApps/Dark_Gimp.rar )*
Batch Renamer > if you are making your own (Suggested - http://www.den4b.com/?x=downloads&product=renamer )*
You'll also need the SystemUI.apk from your favorite rom.
(Found in: rom.zip > system > app > SystemUI.apk)
If wanting to make one with images from a video, you'll need:
A short vid (if you are wanting to use one from, say, http://www.youtube.com/ then you would copy/paste that web address to a site like http://www.savevid.com/) and export the video as a file to your computer.
Video Editor (Suggested - iWiSoft Free Video Converter: http://www.iwisoft.com/videoconverter/ )*
It's easiest to export the images as PNGs.
Alternatively, you can make your own images with PIMP or kang them from someone else's already made animation (Don't forget to send them a thanks if you do!).
Common Questions:
*How big does the image need to be? - The screen size is 480 x 800.
*How many images can I have? - I'm not sure. The one I made has 14 and there have been no issues whatsoever. I've used as many as 30 on my Atrix and didn't have any issues, but others did and the apk will get a little bloated with that many images, especially if it's not very transparent or there are a lot of colors.
*What duration should I change the animation to? - Again, this really depends on what you are going for. How the animation looks, how many images you have, etc. The default on mine is "200" Trial and error ftw!
*What kind of animation should I do? - Only you can answer that! If you are having trouble thinking of something, browse the forums and see if you can't find some ideas. Search YouTube for a cool video. Play with some creating some logos. Only limitation is your imagination.
After editing images or finding the ones you want to use...
Place your SystemUI.apk in the Apk Manager's place-apk-here-for-modding folder.
Double Click the Script.
Choose 22.
Choose the number of SystemUI.apk and hit Enter.
Choose 9 for Decompile.
Naviage to Apk Manager > projects > SystemUI > res > drawable hdpi (or drawable hdpi v4, depending on rom)>
Place your images resized and renamed as status_bar_background_animationX.pngs here. (where X is the number of the image in sequential order)
Navigate to Apk Manager > projects > SystemUI > res > drawable > and place this: http://dl.dropbox.com/u/9903887/status_bar_background_animation.xml in there.
The one I posted here is just the normal one I use that has 14 images, but you can adjust for the amount of images you want and the speed of the image changes using your Text Editor. You can just go from 1 - "X" number sequentially or you can have the images go 1-2-3-4-5-6-5-4-3-2 etc. depending on the style of animation or if you are trying to keep the image number down.
After that... (it really does not matter what order you do these in, but this might help you the first time or two to have a set path)
Navigate to Apk Manager > projects > SystemUI > res > layout > status_bar_tracking.xml and open with Text Editor.
Find:
com.android.systemui.statusbar.TrackingView in the second line and right after that (leave a space) add:
android:background="@drawable/status_bar_background_animation"
Make sure there is a space after this too, then save the xml.
After you have edited your images and xml and saved all of them go back to the script for Apk Manager and choose 11 to compile. After it finishes it will ask you if it is a system apk (Y/N). "Y" + Enter. It will ask you if you want to keep blah blah blah (Y/N). "Y" + Enter.
Go to the "keep" folder in Apk Manager > keep and delete the "res" folder and the resources.arsc file (this is the lazy/easy way).
Go back to the Apk Manager script and hit Enter.
The apk will be completed and named unsignedSystemUI.apk and you will find it in the "place-here-for-modding" folder. Even though it says unsigned, it is signed and you will not need to do anything else to it beyond renaming it to SystemUI.apk. This new finished SystemUI.apk will be added to a flashable zip file in this format (open zip as archive to not break the signature):
flashable.zip > system > app > replace previous SystemUI.apk
Place this on your SD card and install via ClockworkMod Recovery. You will not need to wipe data or cache for this.
The very first time you pull down the screen it will be static, but any other time it should start to animate. This is the same with every phone I have seen and not sure why this is.
Sorry if this seems crazy difficult, but I just wanted to be thorough so even relatively new people can at least see how it is made. If you need help, hit me up on Talk with my screen name. Enjoy!
*I receive no form of compensation for these recommendations. I merely suggest them as they are free, have a fair amount of support, and work well enough for me.*
I have attached for you to use/edit as you see fit:
*status_bar_background_animation.txt http://dl.dropbox.com/u/9903887/status_bar_background_animation.xml
*14 multicolored Honeycomb images inspired / kanged from the boot animation.
*status_bar_tracking.txt - Pretty sure these are similar/same between CM7 and Stock or just use as reference guide.
http://dl.dropbox.com/u/9903887/status_bar_tracking.xml
*Empty flashable zip for ClockWorkMod - Use the Archive Manager to open as archive and place your SystemUI.apk inside /system/app. Do NOT unzip and rezip as it will break the signature and not flash correctly.
es0tericcha0s said:
Just wondering if anyone is interested in this? I learned how from the original back on the Motorola Droid and have made it work for other phones. I used to be a themer but have since been spending my free time on other things. However, I still have the urge every once in awhile. I'll post a how to if there is interest. For those not familiar, this will create a little looped video playing on the pull down screen.
Click to expand...
Click to collapse
I'm interested, but how much does this impact the battery? Does it run while the statusbar is up? A little more info would be helpful but I'm certainly interested.
Nah, it only runs while the screen is down so the effects on the battery are negligible.
This one is NOT mine, but just so you get the idea:
http://www.youtube.com/watch?v=t5ZD6WzwS0k
And it's built into the SystemUI.apk, not framework for our phones.
es0tericcha0s said:
Nah, it only runs while the screen is down so the effects on the battery are negligible.
This one is NOT mine, but just so you get the idea:
http://www.youtube.com/watch?v=t5ZD6WzwS0k
And it's built into the SystemUI.apk, not framework for our phones.
Click to expand...
Click to collapse
Very nice, that would be something of interest.
Sent from my LG-P999 using xda premium
Alrighty then. It's dinner and movie time with the lady. I'll post it up here a little later on.
OP edited with detailed instructions!
es0tericcha0s said:
Nah, it only runs while the screen is down so the effects on the battery are negligible.
This one is NOT mine, but just so you get the idea:
http://www.youtube.com/watch?v=t5ZD6WzwS0k
And it's built into the SystemUI.apk, not framework for our phones.
Click to expand...
Click to collapse
+1 for negligible battery loss. I've ran this with my G2x for a few months now, only minor issues if the person who puts the animation gets too crazy.
es0tericcha0s said:
Just wondering if anyone is interested in this? I learned how from the original back on the Motorola Droid and have made it work for other phones. I used to be a themer but have since been spending my free time on other things. However, I still have the urge every once in awhile. For those not familiar, this will create a little looped video playing on the pull down screen.
Guide:
Instructions for Windows users... (Linux users: You should be able to follow along, as the idea is the same in both)
Things you will need:
The knowledge that whatever you do with this information is YOUR responsibility and not mine, nor the creators / developers of the mod and / or rom.
Basics -
Working computer.
Time.
Patience.
Animation images / Idea for making your own animation.
Computer Programs:
Java: http://www.java.com/en/download/index.jsp
Apk Manager: http://forum.xda-developers.com/showthread.php?t=695701
Text Editor (Suggested - Notepad++: http://notepad-plus-plus.org/download/v5.9.6.2.html )*
Archive Managing program (ie WinZip, WinRar, 7zip) (Suggested - 7zip: http://www.7-zip.org/download.html )*
Image Manipulation program > Whether it be Photoshop, Paint.Net, or GIMP, we'll refer to it as PIMP for short from now on.
(Suggested - Dark Silent GIMP: http://dl.dropbox.com/u/9903887/PCApps/Dark_Gimp.rar )*
Batch Renamer > if you are making your own (Suggested - http://www.den4b.com/?x=downloads&product=renamer )*
You'll also need the SystemUI.apk from your favorite rom.
(Found in: rom.zip > system > app > SystemUI.apk)
If wanting to make one with images from a video, you'll need:
A short vid (if you are wanting to use one from, say, http://www.youtube.com/ then you would copy/paste that web address to a site like http://www.savevid.com/) and export the video as a file to your computer.
Video Editor (Suggested - iWiSoft Free Video Converter: http://www.iwisoft.com/videoconverter/ )*
It's easiest to export the images as PNGs.
Alternatively, you can make your own images with PIMP or kang them from someone else's already made animation (Don't forget to send them a thanks if you do!).
Common Questions:
*How big does the image need to be? - The screen size is 480 x 800.
*How many images can I have? - I'm not sure. The one I made has 14 and there have been no issues whatsoever. I've used as many as 30 on my Atrix and didn't have any issues, but others did and the apk will get a little bloated with that many images, especially if it's not very transparent or there are a lot of colors.
*What duration should I change the animation to? - Again, this really depends on what you are going for. How the animation looks, how many images you have, etc. The default on mine is "200" Trial and error ftw!
*What kind of animation should I do? - Only you can answer that! If you are having trouble thinking of something, browse the forums and see if you can't find some ideas. Search YouTube for a cool video. Play with some creating some logos. Only limitation is your imagination.
After editing images or finding the ones you want to use...
Place your SystemUI.apk in the Apk Manager's place-apk-here-for-modding folder.
Double Click the Script.
Choose 22.
Choose the number of SystemUI.apk and hit Enter.
Choose 9 for Decompile.
Naviage to Apk Manager > projects > SystemUI > res > drawable hdpi >
Place your images resized and renamed as status_bar_animationX.pngs here. (where X is the number of the image in sequential order)
Navigate to Apk Manager > projects > SystemUI > res > drawable > and place this: http://dl.dropbox.com/u/9903887/status_bar_background_animation.xml in there.
The one I posted here is just the normal one I use that has 14 images, but you can adjust for the amount of images you want and the speed of the image changes using your Text Editor. You can just go from 1 - "X" number sequentially or you can have the images go 1-2-3-4-5-6-5-4-3-2 etc. depending on the style of animation or if you are trying to keep the image number down.
After that... (it really does not matter what order you do these in, but this might help you the first time or two to have a set path)
Navigate to Apk Manager > projects > SystemUI > res > layout > status_bar_tracking.xml and open with Text Editor.
Find:
com.android.systemui.statusbar.TrackingView in the second line and right after that (leave a space) add:
android:background="@drawable/status_bar_background_animation"
Make sure there is a space after this too, then save the xml.
After you have edited your images and xml and saved all of them go back to the script for Apk Manager and choose 11 to compile. After it finishes it will ask you if it is a system apk (Y/N). "Y" + Enter. It will ask you if you want to keep blah blah blah (Y/N). "Y" + Enter.
Go to the "keep" folder in Apk Manager > keep and delete the "res" folder and the resources.arsc file (this is the lazy/easy way).
Go back to the Apk Manager script and hit Enter.
The apk will be completed and named unsignedSystemUI.apk and you will find it in the "place-here-for-modding" folder. Even though it says unsigned, it is signed and you will not need to do anything else to it beyond renaming it to SystemUI.apk. This new finished SystemUI.apk will be added to a flashable zip file in this format (open zip as archive to not break the signature):
flashable.zip > system > app > replace previous SystemUI.apk
Place this on your SD card and install via ClockworkMod Recovery. You will not need to wipe data or cache for this.
The very first time you pull down the screen it will be static, but any other time it should start to animate. This is the same with every phone I have seen and not sure why this is.
Sorry if this seems crazy difficult, but I just wanted to be thorough so even relatively new people can at least see how it is made. If you need help, hit me up on Talk with my screen name. Enjoy!
*I receive no form of compensation for these recommendations. I merely suggest them as they are free, have a fair amount of support, and work well enough for me.*
I have attached for you to use/edit as you see fit:
*status_bar_background_animation.txt http://dl.dropbox.com/u/9903887/status_bar_tracking.xml
*14 multicolored Honeycomb images inspired / kanged from the boot animation.
*status_bar_tracking.txt - Pretty sure these are similar/same between CM7 and Stock or just use as reference guide.
http://dl.dropbox.com/u/9903887/status_bar_tracking.xml
*Empty flashable zip for ClockWorkMod - Use the Archive Manager to open as archive and place your SystemUI.apk inside /system/app. Do NOT unzip and rezip as it will break the signature and not flash correctly.
Click to expand...
Click to collapse
Can I use Clockmod Recovery to flash the MultiColored Honeycomb Animation.zip or is there something else I need or need to do?
The Honeycomb zip ONLY has the 14 images of the animation. It won't do anything if you try to flash it. And, to get those to work, you'd have to follow the guide in the opening post. It's pretty thorough. If you get stuck, let me know.
Hi, I'm extremely interested in getting this working.
I spent a good four hours designing a custom set of frames to match my current background, all before I realized that for some reason my current ROM's SystemUI.apk will not decompile correctly, and therefore won't RE-compile correctly. I spent a couple hours trying different versions of APKtool and aapt, all proving the same result. Finally I felt stupid when I tried it out on a random APK I had from a backup, decompiled and recompiled perfectly...
Has anyone tried this on an MIUI ROM? If so, I'm really interested in finishing this half-a-day project I've just started and could use some help xD
If you want, hit me up on Talk using my screen name.
Sent via telepathy
k4p741nkrunch said:
Hi, I'm extremely interested in getting this working.
I spent a good four hours designing a custom set of frames to match my current background, all before I realized that for some reason my current ROM's SystemUI.apk will not decompile correctly, and therefore won't RE-compile correctly. I spent a couple hours trying different versions of APKtool and aapt, all proving the same result. Finally I felt stupid when I tried it out on a random APK I had from a backup, decompiled and recompiled perfectly...
Has anyone tried this on an MIUI ROM? If so, I'm really interested in finishing this half-a-day project I've just started and could use some help xD
Click to expand...
Click to collapse
This would be awesome on MIUI.
k4p741nkrunch said:
Hi, I'm extremely interested in getting this working.
I spent a good four hours designing a custom set of frames to match my current background, all before I realized that for some reason my current ROM's SystemUI.apk will not decompile correctly, and therefore won't RE-compile correctly. I spent a couple hours trying different versions of APKtool and aapt, all proving the same result. Finally I felt stupid when I tried it out on a random APK I had from a backup, decompiled and recompiled perfectly...
Has anyone tried this on an MIUI ROM? If so, I'm really interested in finishing this half-a-day project I've just started and could use some help xD
Click to expand...
Click to collapse
The key to decompiling certain system apps with MIUI is using apktool and then installing the framework from the MIUI rom as a dependency.
Windows Users (Linux Users - if you can use Linux, you probably know how to use the CMD Prompt well enough to follow these directions for your system too):
1) Place the framework-res.apk and SystemUI.apk from the rom in the folder where your apktool is located.
2) Open CMD Prompt and navigate (change directories / cd) to your folder with apktool and apps.
3) apktool.jar if framework-res.apk
4) apktool.jar d SystemUI.apk
5) This will create a subfolder in the main folder that will be named SystemUI.
6) Make your edits following the guide in the OP.
7) When finished, compile the apk with this:
apktool.jar b SystemUI
8) This will build the app for you and you will find it located in the subfolder Dist inside of the SystemUI folder.
I threw one together here*: http://dl.dropbox.com/u/9903887/MIUISystemUI.apk
This SystemUI is from the stock based MIUI rom ported by stormageddon posted here:
http://forum.xda-developers.com/showthread.php?t=1421713
It has:
1) status_bar_background_animation.xml added to res/drawable (14 image version)
2) 14 Honeycomb themed images in /res/drawable-hdpi
3) status_bar_tracking.xml edit in /res/layout
4) This version IS able to be decompiled without errors by Apk Manager, so if it doesn't work, at least you can decompile and make the needed edits.
* I have NOT tested this. I am not currently running MIUI as I NEED wifi calling and my SIM card will not work with it. I purchased another SIM card from some suggestions I have seen around the forum, but unfortunately was not paying close enough attention and purchased the same one I already had instead and am not interested in spending an hour with a nandroid backup, flashing MIUI, testing, then nandroid restoring back to my current rom. So, good luck and let me know if I can help any more.
Thank you es0triccha0s!
That got me to decompile and compile correctly! Yes I am on Linux, and yes it was the if (install framework) command. Got a new problem though, the animation doesn't show. I noticed a few things though..
For one, I'm using a Galnet MIUI based of ICS. Inside the Res folder is a "drawable-hdpi-v4" folder, not sure if that v4 is going to mess anything up with this mod. I'm going to nandroid and then test with a GB version right now.
Secondly, in the scripts you provided in the OP, in the file status_bar_background_animation.xml you have all the images referenced as status_bar_background_animationX, but also in the OP, you mention we should place our created pngs into the drawable-hdpi folder as "status_bar_animationX". I simply removed all "_background"s from the file and it compiled, but I'm not sure if that is causing them not to be seen.
I'm gonna check a few things and report back.
Okay I put it on the Galnet 2.16 MIUI build. Made sure verything was as it should be as far as mod instructions are concerned. It booted, but there is NO status bar whatsoever.. Do you think its a permissions issue or something? Next thing I'm going to try is manually pushing it to the phone with ADB. This is just a test ROM, I have my actually useful nandroid backup when I get tired of this. Once again, will report back.
k4p741nkrunch said:
Thank you es0triccha0s!
That got me to decompile and compile correctly! Yes I am on Linux, and yes it was the if (install framework) command. Got a new problem though, the animation doesn't show. I noticed a few things though..
For one, I'm using a Galnet MIUI based of ICS. Inside the Res folder is a "drawable-hdpi-v4" folder, not sure if that v4 is going to mess anything up with this mod. I'm going to nandroid and then test with a GB version right now.
Secondly, in the scripts you provided in the OP, in the file status_bar_background_animation.xml you have all the images referenced as status_bar_background_animationX, but also in the OP, you mention we should place our created pngs into the drawable-hdpi folder as "status_bar_animationX". I simply removed all "_background"s from the file and it compiled, but I'm not sure if that is causing them not to be seen.
I'm gonna check a few things and report back.
Okay I put it on the Galnet 2.16 MIUI build. Made sure verything was as it should be as far as mod instructions are concerned. It booted, but there is NO status bar whatsoever.. Do you think its a permissions issue or something? Next thing I'm going to try is manually pushing it to the phone with ADB. This is just a test ROM, I have my actually useful nandroid backup when I get tired of this. Once again, will report back.
Click to expand...
Click to collapse
Thanks for pointing out the _background deal. Missed that in my proof reading stage. I'm going to update the OP in a bit. The drawable_hdpi vs drawable_hdpi-v4 thing seems to be dependent on either the apktool version or rom, not entirely sure. Have seen it on other phones / roms I have worked with, but seems random. Never really delved into the whys and hows. However, not really sure why the status bar disappeared on you. It might have something to do with update.zip's update script. I haven't messed with theming MIUI in a long time and am not sure if there needs to be any changes made to the update script that would be different vs. AOSP or CM7. It will almost certainly not work adb pushing the SystemUI though. That always messes things up, from my experience. Since it is just your test rom, try to put the SystemUI into the rom zip with an archive manager via opening as an archive (do not unzip, add, then rezip) and reflash.
I liked this idea. went ahead an made my own blue flames, and it looks nice (although I may mess with it a bit to get it a little smoother).
Just a note though: Unless you also remove the reference to shade_bg in status_bar_tracking.xml, you'll end up with both an animated and non-animated background.
Also, I'd recommend you have people only delete the resources.arsc and the status_bar_tracking.xml files from the keep folder when compiling. Otherwise, it's not uncommon that certain decompiling errors will transfer over to your finished product and give issues like the previous poster was having.
I'm not sure why I had never though of doing this before, but I'm glad you brought it to my attention
Okay, I'm trying something new tonight.
I went and checked every XML file and did some manual comparisons to see if I could find what was causing it not to show. For one, I think the Animation Flasher zip isn't doing the job so from now on I'll be packing it into the MIUI zip. Secondly, I noticed a lot more references to other status bar BG files in status_bar_tracking.xml. I replaced every reference of background="@drawable/blah blah bg" to background="@drawable/status_bar_animation"
I'm gonna see how this goes, will report back xD
Edit: Okay, so DON'T do that xD. At least I know my edits are recognized. Going back and removing the unnecessary edits, then packing it into the ROM Zip again, will report back.
Edit2: Okay, I'm very close to having this working with MIUI. Now that I've included it into the ROM ZIP, the statusbar is appearing completely white with the animation going on behind it. I can barely see the animation at the bottom of the status bar. Something is drawing that white background on the status bar, perhaps a default theme. I think that may be what is causing the general incompatibility with MIUI, the built in theming. I'm gonna fiddle around with the themes, see if I can find a way to use NO status bar theme. Will report back.
k4p741nkrunch said:
Okay, I'm trying something new tonight.
I went and checked every XML file and did some manual comparisons to see if I could find what was causing it not to show. For one, I think the Animation Flasher zip isn't doing the job so from now on I'll be packing it into the MIUI zip. Secondly, I noticed a lot more references to other status bar BG files in status_bar_tracking.xml. I replaced every reference of background="@drawable/blah blah bg" to background="@drawable/status_bar_animation"
I'm gonna see how this goes, will report back xD
Edit: Okay, so DON'T do that xD. At least I know my edits are recognized. Going back and removing the unnecessary edits, then packing it into the ROM Zip again, will report back.
Edit2: Okay, I'm very close to having this working with MIUI. Now that I've included it into the ROM ZIP, the statusbar is appearing completely white with the animation going on behind it. I can barely see the animation at the bottom of the status bar. Something is drawing that white background on the status bar, perhaps a default theme. I think that may be what is causing the general incompatibility with MIUI, the built in theming. I'm gonna fiddle around with the themes, see if I can find a way to use NO status bar theme. Will report back.
Click to expand...
Click to collapse
you need to delete android:background="@drawable/shade_bg"
It's possible that MIUI calls it something different like statusbar_background or status_bar_background. Either way, it needs to be deleted, not modified.
MWBehr said:
I liked this idea. went ahead an made my own blue flames, and it looks nice (although I may mess with it a bit to get it a little smoother).
Just a note though: Unless you also remove the reference to shade_bg in status_bar_tracking.xml, you'll end up with both an animated and non-animated background.
Also, I'd recommend you have people only delete the resources.arsc and the status_bar_tracking.xml files from the keep folder when compiling. Otherwise, it's not uncommon that certain decompiling errors will transfer over to your finished product and give issues like the previous poster was having.
I'm not sure why I had never though of doing this before, but I'm glad you brought it to my attention
Click to expand...
Click to collapse
Didn't think about the shade_bg as it's not linked to that in every rom. You don't have to actually remove it. You can also do this instead:
android:background="@android:color/transparent"
Also, I am of the school of thought that if the app decompiles with errors then you shouldn't use that as your base. I've done a ton of theming and I just won't use an app that decompiles wrong. It usually only happens if you are trying to decompile an app that has already been modified by the dev. Best to find a "stock" base framework or SystemUI to work with.
Easy
Can anyone make a flashable zip?
Of what and/or for what?
Sent via telepathy

[GUIDE] How to make RRO mods / themes

About
In this guide I will be telling you about how to create your own device mods like this. This involves using an engine built into Android Nougat. There is no root required.
Prerequisites
- Apktool installed (official guide here)
- The apk of the app you wish to modify (ex: SystemUI.apk) (system dump here; USE WINRAR AS 7z DOESN'T EXTRACT RIGHT)
- Android Studio
- Basic knowledge of apk guts
- Template RRO project
- optional: Finished Example Project (for reference)
Tutorial
The first step is to decompile your target APK so we can see what options we can change. For this tutorial, I am going to be modding SystemUI.apk.
"apktool d SystemUI.apk"
After it finishes, go to "SystemUI/res/values", as this will be where we change most things.
Here we can see files like "bools.xml, strings.xml, integers.xml, etc..."
Let's look in "bools.xml".
I see a line in here that mentions lock screen rotation:
"<item type="bool" name="config_enableLockScreenRotation">@android:bool/config_enableLockScreenTranslucentDecor</item>"
For this tutorial, let's change this value, as it is easy to change, and we can visually see this change.
It looks like this boolean is enabled if "config_enableLockScreenTranslucentDecor" is enabled. To override this, we have to change it to "true" instead.
Now that we know what we are changing, let's open up the "RRO_Template" project in android studio.
First navigate to the Gradle Scripts and select the "build.gradle" for the "(Module: app)"
Here lets change some variables. First is the "theme_name". Let's change it to "Lockscreen Rotation"
Next is "theme_id". Let's make it "com.mod.lockscreen_rotation"
We don't need to mess with "priority"
Last is the "package_id" Since default is the id for the SystemUI, we don't have to change anything. If you need to find this for another app, look in the decompiled APKs AndroidManifest.xml under "package="com.app.id""
Next, navigate to the res folder. If you remember, our "bools.xml" file is under "res/values/bools.xml", so let's add that file.
We can delete the sample "strings.xml" as we don't need to change anything there, and add the "bools.xml" file.
Inside of the newly created XML file, we should see a setup like this (if not add it):
"<?xml version="1.0" encoding="utf-8"?>
<resources></resources>"
Looking back at the setting we want to change, it's "<item type="bool" name="config_enableLockScreenRotation">@android:bool/config_enableLockScreenTranslucentDecor</item>". So let's add that line.
But since we are overriding the value to true, it will now look like this :"<item type="bool" name="config_enableLockScreenRotation">true</item>"
And that's it for the value changing!
Now let's go build the APK. Press "Alt + B" to bring up the Build menu and press "Build APK"
Click "Show In Folder" on the bottom right after it compiles to see the APK.
Put this on your phone and install the APK.
Since we modified the SystemUI.apk, we need to reboot to see the changes.
Now, lets try going to the lock screen and rotating the screen. It should rotate!
Congratulations! You made a mod / theme!
If you have any questions, please ask. I will try to help if I am available. I have classes starting in a few days so I may be busy. Enjoy the guide!
Hello tytydraco,
Not sure if my problem is totally related to your posted thread but it sounds like you are very knowledgeable on Galaxy theming! I have a rooted Galaxy S8 and have merged/moded different themes from the Theme store, such as using another theme’s icon pack or wallpaper by swapping them out of their respective .apk files and implementing them with success!
My problem is with a theme’s "InCallUI" (accept, reject, hangup icons in phone dialer) after adding cool graphic .png icons (then changing to .qmg) it works flawlessly, however every time I restart my phone or a Samsung system app is updated, they revert back to those default Samsung cartoony icons. I then have to apply stock theme then re-apply customized theme to get icons back. This process also changes/breaks 3 or 4 other theming aspects, which are not affected by restarts, that I have to re-adjust!
Not only have I altered the theme’s “base.apk” in /Data/App/MyTheme folder, but also the theme’s InCallUI.apk and placed into; Data/Overlays/Style/Mytheme folder, then changed permissions to "rwx r-- r-w". I use these permissions because all the other apk's in this folder use them. I have even tried using different theme’s InCallUI.apk, whose icons remain after restart, by just changing the icons and renaming to my theme….but to no avail, same problem!
I know this all sounds really OCD, like probably most of us within these forums, but it’s getting to be a real pain in darse to constantly have to change everything back again every restart if I want to maintain my theme!
So if I may poach upon your smart nature, do you know if there is a configuration file/folder that can be edited/altered to make those “InCallUI” icons stick upon a restart?
Any advise or corrections in what I'm doing would be greatly appreciated!
Thanks in advance.
eltoro5 said:
Hello tytydraco,
Not sure if my problem is totally related to your posted thread but it sounds like you are very knowledgeable on Galaxy theming! I have a rooted Galaxy S8 and have merged/moded different themes from the Theme store, such as using another theme’s icon pack or wallpaper by swapping them out of their respective .apk files and implementing them with success!
My problem is with a theme’s "InCallUI" (accept, reject, hangup icons in phone dialer) after adding cool graphic .png icons (then changing to .qmg) it works flawlessly, however every time I restart my phone or a Samsung system app is updated, they revert back to those default Samsung cartoony icons. I then have to apply stock theme then re-apply customized theme to get icons back. This process also changes/breaks 3 or 4 other theming aspects, which are not affected by restarts, that I have to re-adjust!
Not only have I altered the theme’s “base.apk” in /Data/App/MyTheme folder, but also the theme’s InCallUI.apk and placed into; Data/Overlays/Style/Mytheme folder, then changed permissions to "rwx r-- r-w". I use these permissions because all the other apk's in this folder use them. I have even tried using different theme’s InCallUI.apk, whose icons remain after restart, by just changing the icons and renaming to my theme….but to no avail, same problem!
I know this all sounds really OCD, like probably most of us within these forums, but it’s getting to be a real pain in darse to constantly have to change everything back again every restart if I want to maintain my theme!
So if I may poach upon your smart nature, do you know if there is a configuration file/folder that can be edited/altered to make those “InCallUI” icons stick upon a restart?
Any advise or corrections in what I'm doing would be greatly appreciated!
Thanks in advance.
Click to expand...
Click to collapse
Sounds like the apk is reverting back... There may be another QMG file that puts the icon back. Other than that, it may be samsung's themes overriding this. Good luck and thanks for the question!
Couple of quick questions
Thanks for the guide OP!
I had a couple of quick questions.
You mention at the beginning of your guide that your method works because of a built in engine in Nougat and that it doesn't require root. I thought that RRO support was added to the AOSP by Sony in Marshmallow? Is this different, or did it just take until Nougat for Samsung to catch up?
The reason I ask is that I tried to do something very similar on an A5 (2017) running 6.0.1 and had no success. I had full root access so I manually installed my .apk into /system/vendor/overlay and could see that the app was installed in the Application Manager, but the desired changes did not take effect. I based my .apk on a similar guide from tutsplus and they say it should work on a device running Marshmallow or higher, but they emulate a Nexus which is obviously closer to AOSP than a Galaxy.
Is this guide Nougat specific or S8 specific? i.e. will a J5 2017 (released after the S8) running Nougat also work in the same way? Can you still install the app manually to the /system/vendor/overlay folder or do you have to manually install it through the UI?
Thanks again for the guide!
tytydraco said:
Enjoy the guide!
Click to expand...
Click to collapse
Hello, sorry for waking this up, the RRO template links are down. Can you attach them here?

How can I decomp an APK & show a preview of it on Android Studio to make an overlay?

How can I decomp an APK & show a preview of it on Android Studio to make an overlay?
I want to make a substratum overlay of the Pocket app to tweak the layout. I'll admit I don't know much since I'm pretty new to this.
I extracted an APK for the Pocket app using adb pull, and decompiled it with apktool. I then tried importing it onto Android Studio (on Windows) and selected to import with Android Gradle instead of just Gradle (since the later doesn't work for me). I did some looking up online and it seems that apktool isn't perfect for decompiling apps, and I might be doing something wrong with showing the preview, what I tried is opening up XML files in the layout folder and the preview would not load (after looking stuff up online, apparently somewhere on the bottom of Android Studio, I have to select text instead of design but I don't see it anywhere). Are there ways to decompile the APKs like for the pocket app better, as well actually be able to preview XML files?
I attached the pocket APK in case that's helpful.
View attachment pocket.apk
You cannot preview unless you have source. Theming is a ton of trial and error so you'll have to find the resources and add them to an overlay to change the look..
Join the theme devs collective for substratum for faster help. We have links to tools and process but searching the forums on "how to theme" should be your first stop, as we only show you how to use substratum to theme not how to theme. Finding the resources and knowing what to change is on you. Moving those resources to substratum we can teach.
Hope that helps!
@themingHelp use in telegram to join.
DJ
Sent from my SM-G965U using Tapatalk

Question Fingerprint Icon Location

I love to modify the fingerprint icons on my lockscreen when I have a rooted device. Currently hunting for the fingerprint Icon so I can modify it. On my OP6T it was located in systemUI but im not finding it there. I also checked velvet and no luck there either. Anyone else have any suggestions on where to look?
Also would be interested in this. Hate dark / light being the two options.
psymsi said:
Also would be interested in this. Hate dark / light being the two options.
Click to expand...
Click to collapse
I just like having custom FP icons and even modding the animation. It's an easy mod to do but I just have to locate the correct APK to decompile...still no luck although I haven't looked much today.
Bumping this thread. Has anyone doing any decompiling and tinkering stumbled upon the lockscreen fingerprint Icon? So far I've decompiled systemUI and settings.apk.....theres a TON of XML files referencing the fingerprint Icon but no PNG files in the /res folder that their pointing to in both applications. I'd like to check framework-res but I can't seem to get it to decompile with apktool, I'm sure I'm missing some resource files necessary to do it I just don't know which ones.
Pain-N-Panic said:
Bumping this thread. Has anyone doing any decompiling and tinkering stumbled upon the lockscreen fingerprint Icon? So far I've decompiled systemUI and settings.apk.....theres a TON of XML files referencing the fingerprint Icon but no PNG files in the /res folder that their pointing to in both applications. I'd like to check framework-res but I can't seem to get it to decompile with apktool, I'm sure I'm missing some resource files necessary to do it I just don't know which ones.
Click to expand...
Click to collapse
It's slightly possible that @siavash79 has an idea from their [MOD][Xposed+Magisk][Pre-Release] AOSP Mods - System modifications for AOSP-based Android 12+, which I use. I say this only because the mod has the option to "Remove background circle from under-display fingerprint", in the mod app's Lock Screen section.
All their mods are open-source and you can find the link to their source in that thread, but you could probably get clarification from them (there are two and sometimes more contributors to the mod that answer questions there) as to whether the place they make that particular mod would help you with the fingerprint symbol itself.
Edit: You could also submit a feature request on their GitHub to add the capability to change that symbol, but it's best to first find a stable ROM that has the open-source code for that hack to provide to them.
Pain-N-Panic said:
Bumping this thread. Has anyone doing any decompiling and tinkering stumbled upon the lockscreen fingerprint Icon? So far I've decompiled systemUI and settings.apk.....theres a TON of XML files referencing the fingerprint Icon but no PNG files in the /res folder that their pointing to in both applications. I'd like to check framework-res but I can't seem to get it to decompile with apktool, I'm sure I'm missing some resource files necessary to do it I just don't know which ones.
Click to expand...
Click to collapse
You shouldn't look for png in the resources. All graphics are vector and therefore saved as XML drawable files. Fingerprint icon is an animated vector if you're looking for it.
Edit: if you're planning to change the icon I trust that you're not counting on png files either
PS
There are few ways to change the icon. One is to make an overlay that replaces the icon resource
Two is by modifying the systemUI file and replacing it with the original. Three is by Xposed resource injection or object replacement. Four, of course, is a custom ROM
siavash79 said:
You shouldn't look for png in the resources. All graphics are vector and therefore saved as XML drawable files. Fingerprint icon is an animated vector if you're looking for it.
Edit: if you're planning to change the icon I trust that you're not counting on png files either
Click to expand...
Click to collapse
I see. So if I find the correct xml file I could modify it. Just for simplicity sake let's say I change the color using hex values in the xml file and recompile it. With A13 would I even be able to adb push the GoogleSystemUI.apk to replace the original like I use to be able to do?
Not a chance. I mean you can technically make system RW and copy it there but it's a very very bad idea. but you can make a magisk module and mount it in place of the current one
Edit: Your best bet is compiling an overlay and mounting it in a magisk module
siavash79 said:
Not a chance. I mean you can technically make system RW and copy it there but it's a very very bad idea. but you can make a magisk module and mount it in place of the current one
Edit: Your best bet is compiling an overlay and mounting it in a magisk module
Click to expand...
Click to collapse
It use to be a lot easier lol. No idea where to even start with that....guess I have some reading to do.
So I began the next step. I think I may easiest method here is to modify AOSP mods so the "hide fingerprint background circle" mod when activated adds a custom FP image. I've decompiled the AOSP Mods APK and found the string "remove_fingerprint_background". Now I just need to find which overlay APK is responsible for the mod itself. I'm having difficulty doing this as there's a lot.
I'm curious, is there a logger with root privileges I can run in the background while I activate and deactivate the fingerprint mod which will produce a logcat that will give me some more insight as to which overlay APK is being used to hide the fingerprint background?
Pain-N-Panic said:
So I began the next step. I think I may easiest method here is to modify AOSP mods so the "hide fingerprint background circle" mod when activated adds a custom FP image. I've decompiled the AOSP Mods APK and found the string "remove_fingerprint_background". Now I just need to find which overlay APK is responsible for the mod itself. I'm having difficulty doing this as there's a lot.
I'm curious, is there a logger with root privileges I can run in the background while I activate and deactivate the fingerprint mod which will produce a logcat that will give me some more insight as to which overlay APK is being used to hide the fingerprint background?
Click to expand...
Click to collapse
Maybe this will help you dig further. The fingerprint icon is part of the SystemUI (or SystemUIGoogle). The assets are part of the SystemUI (or SystemUIGoogle) apk. Look at the keyguard section of the SystemUI code to figure out what needs to be done.
packages/SystemUI/src/com/android/keyguard - platform/frameworks/base - Git at Google
packages/SystemUI/src/com/android/keyguard/LockIconView.java - platform/frameworks/base - Git at Google
packages/SystemUI/src/com/android/keyguard/LockIconViewController.java - platform/frameworks/base - Git at Google
Pain-N-Panic said:
So I began the next step. I think I may easiest method here is to modify AOSP mods so the "hide fingerprint background circle" mod when activated adds a custom FP image. I've decompiled the AOSP Mods APK and found the string "remove_fingerprint_background". Now I just need to find which overlay APK is responsible for the mod itself. I'm having difficulty doing this as there's a lot.
I'm curious, is there a logger with root privileges I can run in the background while I activate and deactivate the fingerprint mod which will produce a logcat that will give me some more insight as to which overlay APK is being used to hide the fingerprint background?
Click to expand...
Click to collapse
It's an open source software. Instead of decompilation you can directly explore the source
siavash79 said:
It's an open source software. Instead of decompilation you can directly explore the source
Click to expand...
Click to collapse
Guess I should have checked the GitHub page lol thanks

Categories

Resources