yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mentalmuso:
Yeah thanks mate. We've had official nougat stock images since middle of september, for the 6p. Though I think you're right about the signing securities. That's where I've narrowed it all down to now. Thanks for the info

? --->
[Android Apps and Games] Thebear j koss:
Yeah i know there were stock images released, but they weren't really "official" as nougat wasn't properly released yet. The Pixel devices were supposed to be the 1st "official" nougat devices, but as with everything there are leaks and dev builds that are posted for development head starts, but yeah i'm sure not much has changed except that new v2 signing security on newer builds. Look for Tickle My Android by Ticklefish as i believe there is either a new version if that tool that addresses the issue, or someone has a user end workaround. I think signature verification needs to be disabled in a system jar file....

How has it come this far? I am embarrassed to be an American...
[Android Apps and Games] pharmdeon:
Hello,

So I am on a sprint S5 and was on rooted stock deodexed PCA rom. I initially did this mod in July without issue. I recently messed with my phone without a back up (dumb, there was an add tiles apk that I installed). Then there were issues with safteynet so I odined back to stock and started over. No I am on rooted stock PCA (stock rom using supersu SR1 2.78 in TWRP). I tried to run the mod again, this time when the phone boots, system ui is not working (background is black, no status bar, pulldown, clock, barttery, etc). when I try to restore the systemui back up I have, systemui force closes on startup and I have to restore thru TWRP.

I attached some 2 logs taken at start up after pushing systemui and fixing permssions

Thanks
[Android Apps and Games] gharrington:
You need copy META-INF and AndroidMainifest form original apk to the modded one using 7zip or similar
[Android Apps and Games] pharmdeon:
I will try that ... I was using the tickle my android tool and signed with original signature upon recompile ... no issues on recompile. I thought that I would not need to do that? But will try

Edit: that worked! Thank you!
[Android Apps and Games] stang5litre:
Deleted
[Android Apps and Games] MrBrady:
Is it possible to make our own batteries, compatible with this MOD? For example, I would LOVE to get a Google Pixel battery going. Of course, I would need the SystemUI and to do it. I see the system dump is available, but I can't get into the .img file.
[Android Apps and Games] aalupatti:
Yes you can. I am sure there is an easier way but the one below worked well for me.

- Enable any mod Eg : Nadmaj Id:0

- Make your own battery icons

-find the folder where Nadmaj Id:0 icons are stored

- Replace all the icons there with yours.. Make sure that the names match...
[Android Apps and Games] MrBrady:
Sweet, thanks! Now I just need to get ahold of the SystemUI from the Pixel dump.
[Android Apps and Games] dacorsa:
i have try to use TickleMyAndroid to mod systemUI.apk but when i try new file i see only the original icon of the battery and the app of 3minit doesn't works...

someone can help me? i have to use apktool_2.1.1?? or other version? i have modded the system_icons.xml and add the 3 file smali...what else??

this is how i edited the file xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/status_bar_icon_alpha" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="@dimen/signal_cluster_gap">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_gap" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/battery_text_margin_top" android:alpha="@dimen/status_bar_icon_alpha" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginStart="@dimen/battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="@dimen/battery_icon_start_margin" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

thanks
[Android Apps and Games] Thebear j koss:
Need a lot more info. ROM, android version, device, did you do the smali add on into the correct place?

Support Team Blackout and show your Darkside pride- https://teespring.com/team-blackout-android#pid=2&cid=2397&sid=back
[Android Apps and Games] dacorsa:
i have note4 , last 5.1 samsung rom , with the last .smali files in smali/com/android/systemui/statusbar/policy folder.

can u help me?

best regards
[Android Apps and Games] Jockson:
Before I do this, is there a simple stock battery icon with percentage text next to it included in this mod? On screenshots and youtube videos I see lots of graphics mods but not this. So annoying stock Android still doesn't have it.
[Android Apps and Games] aalupatti:
I decompile the systemui.apk but cannot locate the android:id="@id/battery

How can I add the necessary lines ?

Please advise.

Thanks

Here is the decompiled statusbar file

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.NetworkTraffic android:gravity="center|right" android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" android:fontFamily="sans-serif-condensed" />
<include layout="@layout/system_icons" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/center_clock_layout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ClockCenter android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
[Android Apps and Games] emanoj.i9103:
You should check system_icons.xml file buddy.
[Android Apps and Games] Vlip3:
Hello. My previous ROM had this built in and I really miss it! I'm trying to follow the instructions but all links I have found to the Advance APKTool come back 404 not found. I searched this thread and everyone seems to be using it so it must be somewhere out there but Google couldn't find it for me. Anyone so kind as to give me a working link to where I can download this from?
[Android Apps and Games] njsges:
If I provide my framework and system files, would someone be able to make a zip file to use with 3minit battery? I'm running Android 7.1.1 NPF10C? It would be greatly appreciated.
[Android Apps and Games] aalupatti:
Trickle mod in the first post is the easiest way to do it

Sent from my Nexus 6P
[Android Apps and Games] Vlip3:
I did a search for "trickle" on the first post and could not find any mention of it. Could you please be more specific?

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

So I found the Advanced APK tool attached to one of the posts in the XDA forum. I've been reviewing the instructions and am clear that I have to get the SystemUI.apk file from my phone but nowhere do the instructions say where I can find this file. The YouTube video just says get your files using a root explorer. I'm using ES File Explorer with root explorer enabled and show hidden files enabled and did a search of "/" and that file was not found. A little help would be greatly appreciated!

---------- Post added at 09:43 AM ---------- Previous post was at 09:41 AM ----------

I just realized it's "Tickle" mod, not "Trickle". That's why I couldn't find it.
[Android Apps and Games] pharmdeon:
Systemui.apk is under. ..

/system/priv-app (or /system/app in older android versions)
[Android Apps and Games] manuelmagix:
Work fine, bqX5plus, 6.0.1 double sim.

Enviado desde mi Aquaris X5 Plus mediante Tapatalk
[Android Apps and Games] pharmdeon:
Also, i had an issue with TMA when recompiling recently (this may have been fixed with the most recent update, havent tried) ... see my post and [MENTION=4619873]gharrington[/MENTION] response a few posts back ...
[Android Apps and Games] aalupatti:
Sorry. Glad you found it.
[Android Apps and Games] Vlip3:
Okay, followed the instructions in the first video by techgeek and everything went exactly as per the video except that when I rebooted, I lost the notification bar completely and all my backgrounds are now jet black. I put the original SystemUI.APK back again and rebooted but no difference. I'm going to try removing the minitresources.apk as well to see if I get the original system back. If not, I'll have to recover from nandroid but I'd like some help figuring out what happened and more importantly, how to fix it.
[Android Apps and Games] gharrington:
http://xdaforums.com/showthread.php?p=69163849
[Android Apps and Games] Vlip3:
I have similar issue (not quite so severe, everything seems to work fine, just lost status bar and backgrounds altogether). I'm running PaulPizzRom on Samsung Note 4. I'm not quite so savvy that I can take those bare bones instructions. I'm going to need a little more hand-holding. When you say to copy those files from the original apk to the modded one using 7zip, what exactly do you mean? I decompiler SystemUI.apk with Advanced APktool, followed the instructions by tech geek. Then recompiled. Where do I copy those files to? At what point do I use 7zip? Didn't use it in this process at all. Thanks for your help.
[Android Apps and Games] al50:
Using 7Zip, right click and select the first option to open the original apk and then do the same for your modded apk. When the window(s) are opened displaying the contents of the apks. Copy the META file from the original apk and paste it into the modded apk. Recompile and profit(well at least should)

Google apktool RootJunky and he's got a couple of videos of decompile/compile apks to watch if you're unsure. Sorry to be OT....
[Android Apps and Games] gharrington:
There should be no recompiling after you have copied them over it should be the last step before flashing the modded apk
[Android Apps and Games] al50:
Thank you Gharrington for correcting me. At work and was thinking through it off the top of my head.....lol. thank you
[Android Apps and Games] gharrington:
All good thanks for trying to help others here
[Android Apps and Games] Vlip3:
Okay, I've already admitted I'm a bit dense. Now you've confused me with the word "flashing". I did no flashing. I copied the files to their respective folders and overwrote the SystemUI.apk and then rebooted. If I understand you correctly, I can use 7zip to copy META-INF and AndroidMainifest from the original SystemUI to the modded SystemUI. All other steps should be the same am I right? Thanks again for being so patient!
[Android Apps and Games] Ticklefish:
Your modded APK has to have exactly the same META-INF folder as your old one. And probably the Android Manifest has to be compressed the same way too.

If you're using Tickle My Android 14.2, that's done by using the "Recompile With Original Signature" option. TMA can also make a flashable ZIP for you as well.

If you're not using that, you may need to use 7zip to copy your modded files (except for the META-INF folder and manifest file) back into the original APK. It's that APK you need to put back onto your phone.

If you're replacing with a root explorer, you'll need to ensure the permissions on the APK are correct before doing it.

Sounds complicated, but you get used to it quickly.
[Android Apps and Games] Vlip3:
Okay, I copied the META-INF folder from the original apk to the modded apk using 7zip. That folder was missing from the modded apk. I copied the other file and overwrote the one that was there. Will copy the files to my phone and try again. Will post back with result.
[Android Apps and Games] Ticklefish:
Ah..what I meant was to compile your APK, then copy the contents of that back into the original APK. Normally you'd need to drag and drop the res folder, resources.arsc and classes.dex from one to the other.

This ensures that the app is still signed correctly. The META-INF folder contains all the information for the signature and it has to be compressed exactly the same way all the time, which is why you'd be updating the original APK file.

Then you can copy the original APK to your phone, put it in your system folder, set the right permissions, copy it into the same folder as the stock version and reboot. It's worth booting into recovery and deleting the Dalvik cache as well.

In theory, as long as the actual mod works, your phone should implement the changes.

If you have a Nougat rom, it gets a bit more complicated but that's a story for another day.

By the way, I'm not a big fan of replacing system apps on the fly like that. It can work, sure, but it's a bit like replacing a cars tyres..while you're driving it. I much prefer to do it via recovery. I've had all sorts of bugs doing it the other way and even ruined a tablet doing it.

This is an old thread that you might find useful: http://xdaforums.com/showthread.php?t=849223[/url]

It is quite old and some of the techniques mentioned in it aren't quite the best way of doing things, but this is what I used to learn how to decompile and recompile back when I joined the forum. It might help clarify a few things for you.
[Android Apps and Games] Vlip3:
Woah! I thought I was confused before!! I'm going to have to chew on this for quite some time! Can't someone put this into an Xposed module? It would sure simplify everybody's lives.
[Android Apps and Games] gharrington:
It sounds like you were almost there with your first try! By flashing I mean swapping the modded apk over the original.

Do the mods like you did at first when you got a black status bar but this time do the 7zip method before you put the modded SystenUI on your device.
[Android Apps and Games] Ticklefish:
It can seem quite confusing when you're new to it, yes. That's why I made Tickle My Android, so it can do it all for you.

It's worth mastering the art of decompiling and recompiling. I know it can be a bit of a headache at first but it's essential for so many of the mods in this forum.
[Android Apps and Games] Vlip3:
So, I opened the original and modded SystemUI.APK files in 7zip and copied the META-INF folder and the AndroidManifest.xml file from the original to the modded (btw, the META-INF folder did not exist in the modded apk but the AndroidManifest.xml file did exist, I overwrote it). I then ran the rest of the instructions: installed 3Minit Battery Settings APK from the playstore (purchased) and copied the resources MinitBatteryResources.apk file to the /system/priv-app folder. I made a backup copy of the SystemUI.apk file currently on my phone and then copied and overwwrote the modded file. As soon as I did this, I got SystemUI has closed error that I could not recover from so I pulled the battery and rebooted - still no cigar! The status bar and backgrounds are gone.

It would be nice if the first video worked exactly as stated, I think I probably messed up somewhere. I'm going to watch the TickleFish video and see if that will work.

BTW, does the TickleMyAndroid video have audio? I think this is why I didn't go that route originally because the video has no sound and is nearly impossible to follow without sound. I searched for it on YouTube and that one also has no sound. I have no trouble with any other video so I know it's not my system.
[Android Apps and Games] jimbomodder:
Any way of doing it without decompiling and recompiling?
[Android Apps and Games] Thebear j koss:
With tickle my android, you can create a flashable zip. I am guessing by overwriting your systemUI, you did not set permissions correctly with a root browser causing f/c's and no statusbar or wallpaper, etc. When you flash it, if everything is done correctly, sets permissions correctly and everything should be fine.

World peace can't be done. It just can't exist...

---------- Post added at 11:37 PM ---------- Previous post was at 11:30 PM ----------

Nope. Not unless it has been done by someone else for your device or is already added into a preexisting ROM. Otherwise it is made to be done by the user, who in theory should be able to do this easy mod with no issue, considering XDA is a development site where developer's share things with the confidence that those attempting these mods have the ability to do simple modifications by following the instructions. Only way to learn is to try. Mistakes will be made, it may get frustrating at times, but when you get it done, you not only have the cool mod on your device but you also gain the knowledge and satisfaction of doing it yourself. I mean it's not like you have to write the code to create the mod, or do any theming in creating anything. All you need to do is learn the basics of android modding, which requires decompiling and recompiling.

World peace can't be done. It just can't exist...
[Android Apps and Games] jimbomodder:
Ok that's fine but will windows 7 be ok to use?
[Android Apps and Games] Thebear j koss:
It should be. Most people i know never updated from windows 7. Just need correct Java installed and be able to follow directions for whichever tool you use. TMA simplifies things as much as possible for the user and had great support from the dev Ticklefish.

World peace can't be done. It just can't exist...
[Android Apps and Games] Vlip3:
So, I've had time to chew on this like I said I would. The instructions from Tech Geek had me decompile the original apk, make changes to the status_bar.xml file, copy the smali files to the appropriate folder and then recompile with signature. I then copied the modded apk. What you are saying is that after recompiling, I should copy the res folder, resources.arsc and classes.dex files from the modded (recompiled) apk to the original using 7zip. Is that correct?

Also, I think I would install the 3minit battery settings from the playstore and copy the minitbatteryresources.apk file to /system/priv-app and set permissions -rw-r-r. Then boot into recovery, wipe dalvik and use the file manager to copy and overwrite the systemui.apk with the new one and use chmod 644. This would prevent changing the system file while running and avoid any FCs. Is this right? I don't want to keep wasting time or mess up my phone over this. This method would be faster than having to go learn how to do it with TickleMyAndroid.
[Android Apps and Games] Ticklefish:
Yeah, that sounds about right. I really should write a guide one of these days on how to decompile and recompile...hmm..

Anyway, you need to...

Use apktool to install your framework file(s),

decompile your SystemUI.apk,

edit the XML and copy over the SMALI files,

recompile the APK,

open the original APK with 7Zip and the new APK with 7ZIP as well,

drag and drop the "res" folder, "resources.arsc" and "classes.dex" file(s) from the new APK to the original APK,

copy the original APK back to your phone,

boot into recovery,

wipe the Dalvik cache (always essential if you modify any smali),

use the file manager if you're using TWRP to overwrite the original version of the original APK with the modded version of the original APK,

make sure the permissions for the APK are the same as before,

reboot and hope it works

That's pretty much the normal routine for modding any system APK or JAR file. There are faster ways of doing it and there are different ways of doing it but that can all wait. This method works.

If you're using a Nougat rom and your APK contains a "SEC-INF" folder then you have to do a few more things.

I wrote TMA to make all this simpler, but I'd never force people to use it if they don't want to. This is more or less what I used to do and it works.

Hope this helps!

---------- Post added at 05:14 PM ---------- Previous post was at 05:13 PM ----------

Keep this up and I'll have to start paying you... ;)
[Android Apps and Games] Vlip3:
Awesome! Amazing! It worked! :)
[Android Apps and Games] Ticklefish:
​

Excellent news! Welcome to the wonderful world of Android modding. :highfive:​
[Android Apps and Games] Vlip3:
I don't think decompiling/editing/recompiling is the hard part. What was counter intuitive for me was the fact that you don't use the new compiled file but rather copy from the new modded file into the original using 7zip. Those are not the instructions in the tech geek video. Not only does it say to copy the file you obtained after recompiling, it says nothing of using 7zip to copy any files.

Also, TickleMyAndroid may be great and easy to use but without audio, I found the video to hard to follow so I didn't go that route.

Help on this forum, as usual, was excellent. Thanks again!
[Android Apps and Games] Ticklefish:
I see your point, yes. The trouble is apktool used to produce files that you didn't need to use 7zip on. But now it doesn't.

Hopefully the OP is reading all this and he'll rewrite it.
[Android Apps and Games] GayCasper:
What's the latest version
[Android Apps and Games] Ticklefish:
Of what?
[Android Apps and Games] GayCasper:
3mint battery