Sign apk with Platform keys no need to Unlock SuperUserMOD in jar - Sony Cross-Device Development Themes and Apps

Here is the way to sign your apk with system platform...
Jar modification bye bye for Cyanogen Users... Hahahaha...​
Method
1) Unzip and put apk were data uncompressed...
2) rename it to k.apk
3) and run script...
Password :android
zip Attached
enjoy... signed apk only for CM12 and CM12.1.1 , my AOSP uses Cm12.1.1 platformkeys
so it work on rom that build with cm12 or cm12.1.1 keys​

reserved

Why it's protected with a password ?
Plus, it's should be posted on Android Themes/General forums not Xperia specif forums.

I used ZipSigner.apk for that

wolfmannight said:
Here is the way to sign your apk with system platform...
Jar modification bye bye for Cyanogen Users... Hahahaha...
Unzip
and put apk were data uncompressed...
rename it to k.apk
and run script...
Password :android
zip Attached
enjoy... signed apk only for CM12 and CM12.1.1 , my AOSP uses Cm12.1.1 platformkeys
so it work on rom that build with cm12 or cm12.1.1 keys
Click to expand...
Click to collapse
It mean i can make superuser mod with this?
Sent from my Xperia L using Tapatalk

it will enable SU for that signed apk
for many apk you need to sign every apk by this

After this do we need superuser mod. And just by that can we install any app on any phone

khurshid_258 said:
After this do we need superuser mod. And just by that can we install any app on any phone
Click to expand...
Click to collapse
any apk with any cm12 or cm12.1 based rom

abo hani said:
Why it's protected with a password ?
Plus, it's should be posted on Android Themes/General forums not Xperia specif forums.
Click to expand...
Click to collapse
Sir,
signing apk can done without password with keystore ? I don't think so..
I not put password , its a basic manual method to sign apk with platform keys
(keystore)A Java KeyStore (JKS) is a repository of security certificates – either authorization certificates or public key certificates – used for instance in SSL encryption.
I thought , 70% of Xperia apk works by signing them with Platform key ... So I posted
and I never open xda's other forms
I only open Sony Cross-Device General and Sony Cross-Device Development Themes and Apps , hahahaha

darknessmc said:
I used ZipSigner.apk for that
Click to expand...
Click to collapse
ZipSigner.apk is phone based I also have apksign.apk , but my phone take too much time to sign 14 Megabyte file , my phone is too slow
so i used to be sign apk on my mac

Nice tutorial, but I'll stick with replacing the testkeys in Apktool with the custom ones I currently need.
Just keep in mind that apps signed with platform keys cannot be installed normally. They gotta be pushed directly to system to work.
Just mentioning.

WhiteNeo said:
Nice tutorial, but I'll stick with replacing the testkeys in Apktool with the custom ones I currently need.
Just keep in mind that apps signed with platform keys cannot be installed normally. They gotta be pushed directly to system to work.
Just mentioning.
Click to expand...
Click to collapse
yup bro.

I can't do it . whenever I run the script it show some file not found error in command prompt , and my file get deleted

khurshid_258 said:
I can't do it . whenever I run the script it show some file not found error in command prompt , and my file get deleted
Click to expand...
Click to collapse
before run rename your xxxx.apk to k.apk
then run script

wolfmannight said:
before run rename your xxxx.apk to k.apk
then run script
Click to expand...
Click to collapse
I am doing like that only then also that error is coming. I have attached the image of the error

khurshid_258 said:
I am doing like that only then also that error is coming. I have attached the image of the error
Click to expand...
Click to collapse
Make sure you have jdk installed first.
If so then make sure you use the right path for it, maybe you have different version of jdk installed. As for me my jdk bin folder as follows:
"C:\Program Files\Java\jdk1.8.0_60\bin"
because I have jdk version 1.8.0_60 installed.

Related

Disabling Soft Buttons - The "Bee" Trick

Hey everyone,
I've just donloadest the newest version of the game "Tiny Bee"(its a copy of dillo hills)
I started the game and just saw that the soft buttons were disabled
I went back to the homescreen and there they are!
If we could use this (how they are able to disable the Soft Buttons) we could use this
Until now, just Archos applications (music,video,...) were able to do so.
If you're interested in that i could send an e-mail to the developers of the game, they're german too
what do you think about this? let me know..
I'm not a developer, but these settings are in the Manifest, aren't they?
So, if we had the command for this, we could put this in the local.prop for those people where the other method doesn't work, like me. I will look.
But does the other trick to remove the buttons is working for you?
Flix123 said:
I'm not a developer, but these settings are in the Manifest, aren't they?
So, if we had the command for this, we could put this in the local.prop for those people where the other method doesn't work, like me. I will look.
But does the other trick to remove the buttons is working for you?
Click to expand...
Click to collapse
Thanks for interest
I dont try the other ways, but i need the soft buttons in the browser, but in games i dont need them, and if we could set up for each app if we want the buttons or not, that would be cool!
I dont like the other ways, because you cant do that...
Yep, i also think there are in the manifest xml file could you look? that would be assome!
I could look, but how can I do this? Do I need the SDK or somethinglike this?
Flix123 said:
I could look, but how can I do this? Do I need the SDK or somethinglike this?
Click to expand...
Click to collapse
Noo^^
You have WinRar right?
Open the apk with this and you will get the manifest.xml
do need a link to the apk? (Warning:Warez) I would send to you per PM
I've the apk and it's extracted. But I can't open the AndroidManifest.xml. When I open it with notepad++, there are only some 00000.
How I can open it?
Forget, what I said.
I think, I found it: There's the permission: a r c h o s . p e r m i s s i o n . F U L L S C R E E N . F U L L
I will try to put that into other games.
Flix123 said:
Forget, what I said.
I think, I found it: There's the permission: a r c h o s . p e r m i s s i o n . F U L L S C R E E N . F U L L
I will try to put that into other games.
Click to expand...
Click to collapse
Wonderfull! Thank you!
I lay in bed otherwise i would do it, but i'm just on my archos
It really looks like this permission is the key
I'm testing it in the moment.
You're German, right? So could I send you a german PM?
I don't know, how we could put the permission in apps. Maybe we need the SDK for this?
Is there a developer, that could help us?
And does this work for you? It doesn't work. In connection with button savior it could solve the problem, too.
Okey, i'll send you a german pm easier..
For fhe others:
If there will be any updates i post them here
I have done it before..
Here's how to do it:
1. Decompile the apk using APK tool or other tool that have same function
2. Add this (without quotes) --> "<uses-permission android:name="archos.permission.FULLSCREEN" />" to AndroidManifest.xml
3. Recompile back the apk
4. Sign the apk, I use zip signer
5. Install the apk
I've done this to ezPDFReader, but I think this method is lots of work and after an update, you have to done it again..
Here's thread from archosfans - http://forum.archosfans.com/viewtopic.php?f=63&t=46665
akmalhisyam said:
I have done it before..
Here's how to do it:
1. Decompile the apk using APK tool or other tool that have same function
2. Add this (without quotes) --> "<uses-permission android:name="archos.permission.FULLSCREEN" />" to AndroidManifest.xml
3. Recompile back the apk
4. Sign the apk, I use zip signer
5. Install the apk
I've done this to ezPDFReader, but I think this method is lots of work and after an update, you have to done it again..
Here's thread from archosfans - http://forum.archosfans.com/viewtopic.php?f=63&t=46665
Click to expand...
Click to collapse
Okey, thanks
I it would be much work but could we create an app that decompile the apk and add the line in the manifest?
I'm new in apps develop but i read me in atm
Do you know if android can decompile a apk from built-in?
I'm sure this function hided anwhere, because if theres no function like the we wouldnt be able to install a apk
1. Doesn't "decompile" just mean "unzip"? apk files are just zip files, with some alignment and signing, and you can just unzip them.
2. Dumb question: If you get rid of the buttons, how do you leave the app?
arpruss said:
1. Doesn't "decompile" just mean "unzip"? apk files are just zip files, with some alignment and signing, and you can just unzip them.
2. Dumb question: If you get rid of the buttons, how do you leave the app?
Click to expand...
Click to collapse
1. normally yes, but then the manifest.xml file nearly isnt redable
2. With an button insie the app
Lenn said:
Okey, thanks
I it would be much work but could we create an app that decompile the apk and add the line in the manifest?
I'm new in apps develop but i read me in atm
Do you know if android can decompile a apk from built-in?
I'm sure this function hided anwhere, because if theres no function like the we wouldnt be able to install a apk
Click to expand...
Click to collapse
It would be nice if we can decompile apk inside the device itself. But I think there's no such thing yet
Guys that arent new news
Sorry i am too lazy to search the link, but in the Archosfans forum an Archos Staff said that they implemented the fullscreen permission in one of the last firmware updates...
U have to put the permission line into the manifest...
I tested it and it worked. I am not a developer, u just have to use the Apk Edit tool.
Edit: Okay here is your solution
http://forum.archosfans.com/viewtopic.php?f=63&t=46665
akmalhisyam said:
It would be nice if we can decompile apk inside the device itself. But I think there's no such thing yet
Click to expand...
Click to collapse
Actually, you can compile command-line unzip/zip utilities, and then use a zip-signer app.
(Nevermind--I forgot that the xml files are binary compressed. Sorry, can't see how to delete my reply.)
Just found that there is a way to do this without editing the manifest (and changing the signing keys, thereby losing app data). Instead, just edit /data/system/packages.xml. I just tried it with Angry Birds Seasons, and it worked fine, except that without the buttons it was hard to get out (I just rebooted).
Basically, you pull packages.xml to the PC, find the <package> section you need, and add
<item name="archos.permission.FULLSCREEN.FULL" /> to its <perms> section. If it doesn't have a <perms> section, just add:
<perms>
<item name="archos.permission.FULLSCREEN.FULL" />
</perms>
Then put packages.xml back in /data/system/. Of course you'll need root, but you don't need rw system (/data/system is not in the system partition).
And then reboot (no way around that as far as I can see).
It wouldn't be at all hard to write a little app to do this. It would take less than half an hour for someone who knows how to use SAX (I don't).
One thing this shows, which I didn't know, is that the system gets the permissions from packages.xml, not the manifest. So modifying the manifest in the apk wouldn't help unless you re-installed the apk. And it also means that one can change which permissions one gives an app after one has installed it (though it's probably going to crash if you deny it something it needs).
Of course, be careful. If the xml is malformed, you'll probably get a reset loop. So backup your system first. (I basically tar /data)
arpruss said:
Just found that there is a way to do this without editing the manifest (and changing the signing keys, thereby losing app data). Instead, just edit /data/system/packages.xml. I just tried it with Angry Birds Seasons, and it worked fine, except that without the buttons it was hard to get out (I just rebooted).
Basically, you pull packages.xml to the PC, find the <package> section you need, and add
<item name="archos.permission.FULLSCREEN.FULL" /> to its <perms> section. If it doesn't have a <perms> section, just add:
<perms>
<item name="archos.permission.FULLSCREEN.FULL" />
</perms>
Then put packages.xml back in /data/system/. Of course you'll need root, but you don't need rw system (/data/system is not in the system partition).
And then reboot (no way around that as far as I can see).
It wouldn't be at all hard to write a little app to do this. It would take less than half an hour for someone who knows how to use SAX (I don't).
One thing this shows, which I didn't know, is that the system gets the permissions from packages.xml, not the manifest. So modifying the manifest in the apk wouldn't help unless you re-installed the apk. And it also means that one can change which permissions one gives an app after one has installed it (though it's probably going to crash if you deny it something it needs).
Of course, be careful. If the xml is malformed, you'll probably get a reset loop. So backup your system first. (I basically tar /data)
Click to expand...
Click to collapse
Thaaaank you!
Thanks for the work sou made!
Great news!
Actually i start with app developement at the moment, but jow i just can give out test and buttons and such very first stadium...
You really mean this would be easy? For someone who can create an app?
I could ask the deceloper of the Uruconfig app, solune
But maybe he have to do much at the moment...
We could also create a thread on general xda to ask for somebody who could do this

Can't run android project for cordova 3.x version using eclipse

Hello everyone,
I am new to phonegap. I am trying to run android hello world app using cordova 3.4.x. but when I try to run app It's give an error (com.ert.ertt) Unexpectedly stop working. I am using eclipse. I have follow many tutorial but problem still remain. Please help me regarding this.
Thank you in advance.
Setting up the ADT can be tricky. Make sure you have that all installed correctly and if you're running Windows, add Java and ADT to your system path. Are you running Cordova build from the command line then building/running in Eclipse?
Sent from my XT1060 using Tapatalk
reply @mau006
First of all Thank you for your reply
Yes I have build android project using command line.and then in eclipse I have create project using existing souce and added that source generated by command line tool. I have configured all thing for android including setting path.but still I can't run app.
It most likely is a setup issue if all you've done is create the bare-bones application and then try to run it. Are you running it in an emulator, or on your phone/tablet?
If you can zip up the project and attach it here I'll happily try and build it, just to rule out any code issues.
@Archer
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.
vsvankhede said:
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.
Click to expand...
Click to collapse
Thanks. I'll have a look and get back to you.
vsvankhede said:
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.
Click to expand...
Click to collapse
Could you zip it up from the project root folder - the one with config.xml in it?
@Archer
Archer said:
Could you zip it up from the project root folder - the one with config.xml in it?
Click to expand...
Click to collapse
Hi archer sorry for late reply.config.xml file is in src/xml folder. Have you found any solution?
vsvankhede said:
Hi archer sorry for late reply.config.xml file is in src/xml folder. Have you found any solution?
Click to expand...
Click to collapse
You need to go up to the root folder of the project, where you'll find the file config.xml, and zip from there or I can't tell what's wrong with the project. The zip file you supplied does not have all the folders required, and there is no config.xml in it anywhere.
Zip file of root folder
Archer said:
You need to go up to the root folder of the project, where you'll find the file config.xml, and zip from there or I can't tell what's wrong with the project. The zip file you supplied does not have all the folders required, and there is no config.xml in it anywhere.
Click to expand...
Click to collapse
Hi archer as you said I have attached new zip file from root folder.
vsvankhede said:
Hi archer as you said I have attached new zip file from root folder.
Click to expand...
Click to collapse
I'm afraid I can't help. If all you've done is create a new Android project with Cordova and then modify index.html then it should work, but it falls over very heavily for me, and I don't know why. There are plenty of warnings and errors available in the logcat, so I'd recommend starting at the top and simply Googling for them one-by-one and trying to get rid of them that way.
Good luck - it should certainly be a good learning process for you
Let us know how you get on.
You have to make all changes in command line, if change config or manifest manually that it can have problems occured.

[Guide] How to port Stock 2.3.6 apps to cm7

Warning:
This guide isn't orginally by me, I found it on internet and posting (with some edits) here to help people
The original post : http://epiccm.blogspot.com/2012/01/porting-touchwiz-apps-for-cm7.html
Click to expand...
Click to collapse
Many stock Samsung apps are awesome and beautifully looking, also cyanogen mod is fast and high customizable, you dont need to sacrfice CM& for good looking apps anymore
Click to expand...
Click to collapse
STEPS:
1- get your desired App from System/app + twframework.jar and twframework-res.apk from System/framework
2- Decompile all of them Using APK Manager OR Apktool OR Virtous Ten Studio or any other apps
Guide for decompile,compile : HERE
Click to expand...
Click to collapse
3- Remove the library dependence from the AndroidManifest.xml
The line looks like this:
Code:
and remove any lines contain ‘com.device.samsung’
This to make it install on non samsung roms
Click to expand...
Click to collapse
4- Copy the twframework code into the app source.
‘twframework.jar.out/smali/’
The app now contains both its own code, and all the needed TouchWiz code. There’s a small chance it might work if you recompile it now, but it probably also needs resources
Click to expand...
Click to collapse
.
5-Update the resources
a. Add the needed files/parts
search for any ‘@touchwiz:’ parts in any xml file under res/.
Next, you will need to merge everything under /res/ from the twframework-res.apk.
Copy over anything that doesn’t already exist. Files under /res/values/ (Except public.xml) will need to be merged, meaning insert all the values from the framework into the app, before the closing tag (Keep the XML valid). If your missing any resources, re-compiling the APK will fail
b. Remove the touchwiz references
Replace every ‘@touchwiz:’ with just an ‘@’
Example :
Code:
@touchwiz:color/
to
@color/
Copied directly from OP :
There are some calls to IDs in the 0x20 range, this is an issue because as far as I know, the 0x20 range can only be provided by the system somehow. For the Calendar app, I had to remove setIcon calls in a few activities to prevent ResourceNotFound exceptions.
If you remove them, then some things like images might not work. I also found that just removing them can cause random NullPointer errors.
Note: While working on the Task Manager, it became more complex. I had to update the old 0x20 references to the references within the new package.
After the resources are added, decompile it again, so the added resources show up in the /res/values/public.xml
Search for the old 0x20 value, and update it to the new value. If you include the /smali/touchwiz/ directory, then you can just search for the hex value and you will get the name of it from the TW R.smali files, and you can find the updated hex value in the /res/value/public.xml file
Click to expand...
Click to collapse
6. Re-compile
7. Sign the apk using platform key or testkey from HERE
GUIDE TO SIGN APK
Click to expand...
Click to collapse
Most apps uses testkey but if you had any permission error, use platform key or search google for the error
Click to expand...
Click to collapse
8. Install
adb push /system/app/
OR
using system app installer
OR
using any root explorer
Credits :
-Original poster
-Me, for simplifing it
Click to expand...
Click to collapse
Well this is useful!
I Will release some apps, after my exams finish
Sent from my GT-S5360 using Tapatalk 2
Is it possible to port stock fm radio to cm7?
bluestarfish said:
Is it possible to port stock fm radio to cm7?
Click to expand...
Click to collapse
you can try it, but it will not work anyway. there is a radio fm bug in cm7
yeah finaly i got this
many thanks sir
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Nachiket.Namjoshi said:
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Click to expand...
Click to collapse
Its a great honor for me that a good developer like you admires my work
On a side note : many devs ported stock apps (generally clock widget and launcher and task manager) to CM7 but no one ever shared, I don't like those who don't share their experiences
Sent from my GT-S5360 using Tapatalk 2
Perfect !
Just what i needed good job OP

[MOD][CM12.1 BETA 3/20150506] Google Android System Webview

Introduction
Google has updated Android System Webview for Lollipop, but is only exclusive for stock Nexus ROMs. The app is available in Play Store but renders unusable for non-Nexus ROMs. The 'framework-res.apk' contains a string that links the webview to the stock package 'com.android.webview,' and the updated webview uses the package name 'com.google.android.webview.' This mod replaces the link for the Webview from stock to the updated package.
An Xposed module is available but Xposed Framework is in its 'Super Alpha' stage for Android 5.1.1. This mod is for those who don't want to test an unstable build yet.
Instructions
NOTE: Ensure that a backup is available in case things get out of hand.
Download and install Android System Webview from Play Store or replace the stock webview with Delta GApps Webview Addon (flash).
Download the attached file and place it in the device's storage.
Flash the downloaded file through recovery.
Reboot the system.
DIY Tutorial
If you have other mods installed, you can apply this mod alongside them.
Requirements
Windows Platform
A PC
Modified framework-res.apk
Instructions
Go to iBotPeaches' Apktool website and follow the installation instructions for Apktool 2.x.
Place the modified framework-res.apk together with the previously downloaded files in the same folder.
Hold 'Ctrl' + 'Shift' and right-click inside the folder and select 'Open command window here'.
Type in:
Code:
apktool if framework-res.apk
This imports the framework, which is what the 'if' stands for.
Type in:
Code:
apktool d framework-res.apk -s
This decodes the apk. The '-s' variable makes it decode only the resources, which saves us more time in decompiling.
Navigate to 'framework-res\res\values'.
Open up strings.xml and find 'config_webViewPackageName'.
Replace 'com.android.webview' with 'com.google.android.webview' and save.
Type in:
Code:
apktool b framework-res -c
This rebuilds the apk, which is what the 'b' stands for. The variable '-c' copies the original AndroidManifest.xml and META-INF folder. These contain the signatures of the apk and are necessary to function properly.
The recompiled framework-res.apk will be placed in 'framework-res\dist'.
Overwrite the existing framework-res.apk manually or replace the one in the flashable zip with the newly modified framework-res.apk.
thanks for your guide bro
will try this soon, but what we know how this work, if we success install this mod?
Nicklas Van Dam said:
thanks for your guide bro
will try this soon, but what we know how this work, if we success install this mod?
Click to expand...
Click to collapse
The only way I found out it was working was when I removed/replaced the stock webview, Google apps didn't force close at boot. I haven't thought/found other ways on how to.
elmkzgirxp said:
The only way I found out it was working was when I removed/replaced the stock webview, Google apps didn't force close at boot. I haven't thought/found other ways on how to.
Click to expand...
Click to collapse
So I must deleted stock android web view?
Nicklas Van Dam said:
So I must deleted stock android web view?
Click to expand...
Click to collapse
It's not necessary as it is guaranteed to work. But if you really wanted to make sure, then you can go ahead and replace/remove the stock webview.
elmkzgirxp said:
It's not necessary as it is guaranteed to work. But if you really wanted to make sure, then you can go ahead and replace/remove the stock webview.
Click to expand...
Click to collapse
is this will make bootloop? i used cm and this very fragile for that thing
Nicklas Van Dam said:
is this will make bootloop? i used cm and this very fragile for that thing
Click to expand...
Click to collapse
No. You should consider the risk when dealing with these things. Otherwise don't attempt to do such modifications.
elmkzgirxp said:
No. You should consider the risk when dealing with these things. Otherwise don't attempt to do such modifications.
Click to expand...
Click to collapse
i'm not consider that -_-, but i'm very lazy to reflash again if this bootloop. ok thanks for suggest
i've do patch to core.jar from lucky patcher. that's why i lazy with that thing -_- . if reflash it take much time to patch it again
@elmkzgirxp
is there way to check if webview is working??
also there are three files related to webview in aosp ROMs at /system/lib folder
1)libwebviewchromium.so
2)libwebviewchromium_loader.so
3)libwebviewchromium_plat_support.so
do they need replacement as Google webview also has libwebviewchromium.so file
mepsilon2 said:
@elmkzgirxp
is there way to check if webview is working??
also there are three files related to webview in aosp ROMs at /system/lib folder
1)libwebviewchromium.so
2)libwebviewchromium_loader.so
3)libwebviewchromium_plat_support.so
do they need replacement as Google webview also has libwebviewchromium.so file
Click to expand...
Click to collapse
The only way I know is that it doesn't return error messages on certain apps in logcat.
If you're talking about AOSP, the three libraries are used by webview.apk, the stock one. If you are using 5.0+, then it's not necessary to remove them, as the libraries in the /system/app folder takes precedence. But if you're using 4.0+, then you have to replace them. Most flashable zips do this work for you, unless you're doing it manually.
elmkzgirxp said:
The only way I know is that it doesn't return error messages on certain apps in logcat.
If you're talking about AOSP, the three libraries are used by webview.apk, the stock one. If you are using 5.0+, then it's not necessary to remove them, as the libraries in the /system/app folder takes precedence. But if you're using 4.0+, then you have to replace them. Most flashable zips do this work for you, unless you're doing it manually.
Click to expand...
Click to collapse
thanks
I'm on 5.1.1. Google webview has it's own libwebviewchromium.so shouldn't it have it's own libwebviewchromium_plat_support.so and libwebviewchromium_loader.so also??
---------- Post added at 10:42 AM ---------- Previous post was at 10:28 AM ----------
I guess it shouldn't as stock webview also has only libwebviewchromium.so Other 2 lib files must be common for both webview
mepsilon2 said:
I guess it shouldn't as stock webview also has only libwebviewchromium.so Other 2 lib films must be common for both webview
Click to expand...
Click to collapse
Right, of course, I forgot. The other two libraries are still necessary for it to function, but they rely on different libwebviewchromium.so.
elmkzgirxp said:
Right, of course, I forgot. The other two libraries are still necessary for it to function, but they rely on different libwebviewchromium.so.
Click to expand...
Click to collapse
I don't know if people already know this or not. but There is now no need to compile and decompile framework. there is a new commit which support both type of webview. Here is link for SlimRom
https://github.com/SlimRoms/frameworks_base/commit/72556d08c5a50d01252c74e1cec361ee24edd6e6
This support I have found in CM and AICP ROM too but not in ParanoidAandroid
mepsilon2 said:
I don't know if people already know this or not. but There is now no need to compile and decompile framework. there is a new commit which support both type of webview. Here is link for SlimRom
https://github.com/SlimRoms/frameworks_base/commit/72556d08c5a50d01252c74e1cec361ee24edd6e6
This support I have found in CM and AICP ROM too but not in ParanoidAandroid
Click to expand...
Click to collapse
Yeah, this thread is actually outdated, but I am unable to delete it. This could just be for future reference.

[MOD,7.1.x/7.1.2 ] Network traffic meter ( root required)

[DISCLAIM]
Doing at your own risk, I don't hold any responsibility for any consequence that may have occured.
I personally have tested this mod on my rooted pixel on NOF26v release.
Remember to do a backup first.
I personally recommended to overwrite those files and keep your adb connected and restart the system ui instead of a directly rebooting by install the app. . By this way, if there is something wrong, you could easily revert the change via adb.
[Background]
After a week, accompanied with many bootloop and systemui FCs, I finally managed to make the real network traffic to show in the status bar.
I was inspired by this post post by @Morningstar, however, the code is outdated and does not work with the latest nougat release.
I then extracted all the updated smali files from Resurrect Remix ,specifically the system image for flo device because I personally owned a nexus7 2013.
I modified the scripts provided by @sellsky, actually a lot of changes needs to be done, and you need to add missing code when you see something unusual in 'adb logcat'.
You can find the modded files (SytemUIGoogle.apk, SettingsGoogle.apk ) from here.
You can find the modded trafficcm from here.
Screenshot is also attached.
Updated files for NOF27B: https://drive.google.com/file/d/0Bzu0Zqno-_D7ZzFOckhHSHRZeGc/view?usp=sharing
Updated files for N2G47E : https://drive.google.com/file/d/0Bzu0Zqno-_D7ejRYZU9UeFljTFE/view?usp=sharing
Updated trafficcm script for 7.1.2: https://drive.google.com/file/d/0Bzu0Zqno-_D7a3F6aTU2MDVrdFU/view?usp=sharing
Nicely done.
Great job .
Bro can you give me some instructions so that I can mod on my stock OnePlus 3 rom
Hi,
I would like to ask how apply this mod. Must I copy SettingGoogle.apk and SystemUIGoogle.apk from traffic_mod.tar? Where can I find this *.apk in system.
Thank you very much for your help
kevin.kvik said:
Hi,
I would like to ask how apply this mod. Must I copy SettingGoogle.apk and SystemUIGoogle.apk from traffic_mod.tar? Where can I find this *.apk in system.
Thank you very much for your help
Click to expand...
Click to collapse
They are both in system/priv-app in their own folders.
Tulsadiver said:
They are both in system/priv-app in their own folders.
Click to expand...
Click to collapse
I don´t have this folders in system/priv-app
kevin.kvik said:
I don´t have this folders in system/priv-app
Click to expand...
Click to collapse
Then you don't have a Pixel?
works perfectly, I copied both files to system/priv-app, reboot, magic. Thank you!
This one feature is ~70% of my love for xposed. Thanks for porting this over... greatly appreciate it.
To be clear for others, the script is not required for this to work.
Back up the two files in question, both in system/priv -- then copy the above apks into the respective folders and reboot.
After installing this mod and you want it on the left hand side, flash this.
If someone who is using a OnePlus 3/T is able to make this work please say how you did it because I can't find the files that need replacing on my device.
have no idea on how to use the modification and will this still work on latest security patch
bush911 said:
have no idea on how to use the modification and will this still work on latest security patch
Click to expand...
Click to collapse
Works fine.
The thread has been quite clear.
1.) Download
2.) Copy
3.) Reboot
4.) Enable
bush911 said:
have no idea on how to use the modification and will this still work on latest security patch
Click to expand...
Click to collapse
Should work fine, and you could also try the newest build I made ( I have updated the main OP ).
Scarface1991 said:
If someone who is using a OnePlus 3/T is able to make this work please say how you did it because I can't find the files that need replacing on my device.
Click to expand...
Click to collapse
Are you deodexed?
Tulsadiver said:
Are you deodexed?
Click to expand...
Click to collapse
I'm using a custom ROM that is based on AOSP so I think I am. At least there are no .odex files within my system/app folder.
Scarface1991 said:
I'm using a custom ROM that is based on AOSP so I think I am. At least there are no .odex files within my system/app folder.
Click to expand...
Click to collapse
Upload your systemui.apk, framework-res.apk, and settings.apk or whatever yours is called.
I'm not a pixel user, using clean AOSP on Redmi note 3 snapdragon. Can I use these modded files? Or they are SoC dependent?
I'm pretty much a noob ?
kurogami95 said:
I'm not a pixel user, using clean AOSP on Redmi note 3 snapdragon. Can I use these modded files? Or they are SoC dependent?
I'm pretty much a noob
Click to expand...
Click to collapse
You can't use the finished product but using the script might work if you will change the names of your settings.apk and systemui.apk to match the pixel and run his script on your pc. Afterwards change the names back.
Ops updated for android 7.1.2, there are some change in the android support lib.

Categories

Resources