Hi, i've created this tool because when you push SystemUI.apk in /system/app the apk crash and it doesn't reboot itself!
So, i've searched how to reboot the single apk without rebooting the device because rebooting the device you waste time.
You can do it using adb:
Code:
adb shell am startservice -n com.android.systemui/.statusbar.StatusBarService
But i've tried to write a batch file (for WINDOWS) to automate some things.
At the moment the features are very essential but for me it's usefull.
The features are:
Push a modded SystemUI.apk in /system/app
Push a modded SystemUI.apk and reboot only the statusbar
Reboot only the statusbar
Reboot the device
If you have some ideas of new features... I'm here!
DOWNLOAD:
GDrive link, directlink
HOW TO USE IT:
Download the file and unzip it
Open the .bat file
Read the istruction and select the desidered option
CREDITS:
Android developers for adb.exe
If you find some issues in my tool, please tell me... i'll try to fix it!
Sorry for my simply (and bad?) english!
Very usefull!
Good job! :good:
Can u help me?
I hve note 3(sm-n9005)
My systemui has stopped working
Right now i am without status bar and lockscreen and helluva lot other things.
After installing this,can i get all these things back?
Thanks.
Related
Hello. Sorry for beginner question.
I'm a happy owner of my 'new' device, called Commtiva Z71. Not the highest-category, but after SE-K770i it's perfect (except camera).
ATM I'm using CM7 RC0 (GingerBread) on that, and would like to TRANSLATE some .APK-s. Tried with some SIMPLE, 3rd party APK and tried with some SYSTEM APPS...
But everytime i got error messages:
A.) If I dont sign the built apk, i can't install
B.) If I sign the APK, I can istall, but frozen, and option appears to FORCED CLOSE
-------
I followed the written "HOW TO" ways... for example
1.) APK decompress (only resources) with APKTOOL
2.) APK build with apktool (WITHOUT CHANGES!)
didn't worked.
----
/SYSTEM/FRAMEWORK/framework-res.apk copied to PC then
apktool if framework-res.apk
Tried 1-2 again. Same result.
----
Tried with making update package and restore with clockworkmod... Still Freeze, and option for FORCED CLOSE
----
Tried ADB PUSH with signed and unsigned apks... same result...
----
Tried to copy generated resources.asrc into original APK... same result...
----
Any Idea or suggestion?
Maybe I used wrong (modified framework for apktool)???
Many thanks for answers
Hi all,
i often noticed people(including me) who tried to modificate their framework-res.apk resulting in boot loops(e.g. looping at white/green quietly brilliant screen).
So i tried to find out a fast way to get back to my(original) framework-res.apk without usage of recovery console each time my framwork-res.apk did not work as expected.
How it could help you:
It's a fast way to:
check out your moddings when doing numerous modifications in different versions of your modded framework-res.apk on your way to get it to work.
if you want to get back to your original/working framework-res.apk, even when it boot loops!
Click to expand...
Click to collapse
When you do numerous modifications on framework-res.apk and your modded apk leads to a boot loop you will be able to replace the current apk through e.g. the original apk.
At this boot point(boot loop screen) Android nearly finished booting and you have access on ADB commands.
What do you need to do this:
Download and extract/install QtADB from the link below:
QtADB
to replace the erroneous(current) framework-res.apk by the original or a fixed one.
Click to expand...
Click to collapse
There's no need to describe how to get a copy of your untouched framework-res.apk from device, since there are numerous tutorials around here.
Please check this tutorials to get a copy of your apk.
Please note before beating your device:
this probably will work with the most visual moddings of framework-res.apk - but i can't guarantee it works 100%.
It probably will not work when you play around with hardware or connections setting, other apk's or other stuff in other folders, so i am not responsible if it does not work.
always backup your current ROM/settings/whatever and save a copy of your untouched framework-res.apk
There is a little catch in it in comparsion with using recovery:
After you did like described, you have to set your background image and your (google) accounts anew.
But this is just a little work and it's not necessary until your framework-res.apk is doing the modded stuff correctly - or if you want to set the original framework-res.apk back.
Click to expand...
Click to collapse
So let's start to revive your original framework-res.apk.
(Of course you can use this method to push a modded to your device, to check out if your modding works):
Boot your device and let it load until you're at boot loop
(Download, extract,) run QtADB
Navigate in left window(Computer) to your copy of original framework-res.apk(e.g. in root directory of SD card, but i recommend a folder on your computer)
Navigate in right window(Phone) to device folder /system/framework/
Use in left window(Computer) context menu on your original framework-res.apk and select copy or drag&drop it to right window to copy the original framework-res.apk to your device
(just ignore that your device is doing strange stuff then, since it cannot access your framework-res.apk correctly at this point)
Then enter shell of QtADB(at left toolbar of QtADB) and enter the following commands to set the apk's prermissions:su
cd /system/framework/
chmod 777 framework-res.apk
Reboot your device( e.g. by using top menu->tools-ADB->reboot)
Set your background image and your (google/HtcSense) accounts anew.
Hope it helps you a bit on modding,
Greetings, brush2(Stephan)
error
hey man, Im getting an error on this. I changed my transitions effects ( folder anim on framework-res.apk) using the app metamorph. well, now every time I open an app the phone ( xt920) reboot. I ask my friend that have the same phone to send me his framework-res.apk. I try to replace using this method but dont got. I draged and droped the new apk and when I would type the shell's code the last code dont work because it said that the file is a "read-only system". What can I do to have my phone back? Please help.
Thanks.
Hi chaps ,
Here's a little bootanimation i was working on for the Desire.
Here's a preview :
http://www.youtube.com/watch?v=0fOI0HOMtak
Caution : You flash this at your own risk! I take no responsibility what happens to your phone! (99.9% it will work )
Note : This has only been tested on the Htc Desire | Samsung Galaxy S | ZTE Blade it is meant for 480x800px (and above) phones...but i think it will work on small resoultion phones as well
* How to instal * (rooted phones!)
1. Download the file (obviously)
2. Put the file on to your SD card
3. Use Root Explorer ( market Link ) or any other phone explorer that allows you to manipulate your rom files.
3. Navigate to where your existing bootanimation is (on Sense it's usually /data/local/ on AOSP it's /system/media)
4. And replace it (overwrite it) Don't forget to make a backup of your current Bootanim.
5. Reboot
* ADB method *
1. Connect your phone with the pc via USB cable and turn on USB debbuging
2. Put the file into your /tools folder where you installed your AndroidSDK)
3. Open CMD (command prompt)
4. Type :
Code:
cd location of your /tools folder (in example) cd c:\androidsdk\tools
adb push bootanimation.zip /data/local ([B][U]for SENSE roms)[/U][/B]
adb push bootanimation.zip /system/media [B][U](for AOSP roms)[/U][/B]
* Recovery *
1. Put file on your SDcard (no subfolders)
2. Boot into recovery
3. Flash the zip file
4. Reboot
Downlaods :
Code:
* (22.jan) all dll likns are dead,i will re-up then within the week,as well as v1.5
* You can still download it via http://uot.dakra.lt/ :)
If you have any suggestions and/or ideas /etc feel free the post them (no pm's plz)
ENJOY!
Awesome thanks!
a flashable zip file maybe? thanks it look nice
hertiz9511 said:
a flashable zip file maybe? thanks it look nice
Click to expand...
Click to collapse
Sure ,ill make it later
Worked great using adb.
Ok guys,final version is here it works like in the preview
Just have to test it on some other phones (just in case) and i'll release it when i get back to my dorm in 2days
cheers
@Ttalk.
Great work, thank you. Works fine.
Just tried it on my desire, very nicely done. Thanks !
Hey.
Using it on my Desire.
Really nice!
If you change the looping sequence so that you see no interruption when starting the loop sequence again it will be perfect.
In the splash screen thread is a perfect splash for the animation btw.
Sent from my HTC Desire using XDA App
I don't get it, I followed the instructions but when I type in "adb push bootanimation.zip /system/media/" it comes up with a message saying "adb is not recognized as an internal or external command, operable program or batch file".
Someone help...please?
Desire, CM7, 3(UK)
Do you have ADB setup on you pc? see this thread > http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
or http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
Or just flash it through the Recovery,it's easier.
Looks really cool!
Nice, Thanks!
can you make a matching splash?or even a downanimation?
your work is really nice! :0
gonemad02 said:
can you make a matching splash?or even a downanimation?
your work is really nice! :0
Click to expand...
Click to collapse
I already have ,here's the link : http://forum.xda-developers.com/showpost.php?p=14013656&postcount=789
Works simply and looks nice, thanks.
I really like your splash screen and the boot animation. Well done!
aca85 said:
I already have ,here's the link : http://forum.xda-developers.com/showpost.php?p=14013656&postcount=789
Click to expand...
Click to collapse
nice one! +1
Good job. Thanks
awesome animation.thanks
Hello, I present to you a new batch file which helps in decompiling and recompiling apks plus a few more features.
APK TOOLKIT
Unique Features
This script is simple clean and elegant, which does the job.
It does not make use of folder therefore very less path errors.
You just have to enter the path of your apk and it will do the job and create the output in the same location, so no more unnecessary copying and pasting
Real time logs that let you know what's happening.
All required tools are included so you do not have to download anything else except java.
Requirements
Java
Features
Decompile apk
Recompile apk
Sign apk
Zipalign apk
Sign and Zipalign apk
Compile, Sign and Zipalign apk
Compile and Zipalign apk
Install apk
Clean Install apk (uninstalls the apk and then reinstalls it)
Push apk
Downloads
Version 1.1
http://www.mediafire.com/?03qer10nrbrbmgb
Github: https://github.com/Shalzz/ApkToolKit
Note:For windows only
Changelog:
added option to change heap size
Credits
Brut.all
iBotPeaches
jesusfreke
Make a prompt to press enter to exit the batch file. First time around, I had to press ctrl+c.
nantax said:
Make a prompt to press enter to exit the batch file. First time around, I had to press ctrl+c.
Click to expand...
Click to collapse
I do not wish to make an exit option when u can just close the window or press ctr+c.
Sent from a pay phone.
WARNING: INSTALL GOOGLE´S ANDROID SYSTEM WEBVIEW FROM THE PLAYSTORE / GAPPS FIRST
https://play.google.com/store/apps/details?id=com.google.android.webview
Do you wan´t to use google´s updatable webview on a cm rom?
well too bad, even if you install and disable the built in webview, the system still dosen´t uses it, so what can we do?
modify a config in the framework called
"config_webViewPackageName" from com.android.webview to com.google.android.webview
you can do this via xposed with http://repo.xposed.info/module/net.typeblog.webview
however xposed for 5.1 is glitchy and will break a lot of optimizations if you are running a based cm run that has those.
so the solution? well flash the zip below, its a modified framework from cm12-13/04/2015 (DD/MM/YY btw)
https://drive.google.com/open?id=0BwduAK2l37OaSUprcG5LejNiS2s&authuser=0
Instructions:
Download zip from the link provided
Flash via recovery
??
profit
this is mine
BTW: I didn´t test on any other device, altought i dont think it will work since our framework contains some hammerhead-specific values
Thank you lord! I was searching for this for so long. This is going to be awesome to me!!
Best Regards,
Jairo.
May I ask how you did it? I decompiled framework-res.apk in Chroma ROM and then I navigated to "\framework-res\res\values" but I didn't find a config.xml file. Isn't this where the modification is done? Am I doing something wrong? @opssemnik
fr3quency said:
May I ask how you did it? I decompiled framework-res.apk in Chroma ROM and then I navigated to "\framework-res\res\values" but I didn't find a config.xml file. Isn't this where the modification is done? Am I doing something wrong? @opssemnik
Click to expand...
Click to collapse
its /res/values/strings.xml
opssemnik said:
its /res/values/strings.xml
Click to expand...
Click to collapse
I found it after decompiling your framework-res.apk and searching from Windows Explorer.
I went into strings.xml and replaced "com.android.webview" with "come.google.android.webview". Then I recompiled and pushed the new framework-res.apk to /system/frameworks(I had some translation errors but it was first time seeing who things). Anyway, the system doesn't boot at all and shows only the bootanimation for 15+ minutes. Could you help me?
I downoaded this folder: http://www.droidviews.com/tutorial-how-to-decompile-and-recomplie-apk-files/ and replaced the apktool inside of it with this one: http://forum.xda-developers.com/showpost.php?p=59436776&postcount=2812
I installed the framework via "apktool if framework-res.apk" just in case.
fr3quency said:
I found it after decompiling your framework-res.apk and searching from Windows Explorer.
I went into strings.xml and replaced "com.android.webview" with "come.google.android.webview". Then I recompiled and pushed the new framework-res.apk to /system/frameworks(I had some translation errors but it was first time seeing who things). Anyway, the system doesn't boot at all and shows only the bootanimation for 15+ minutes. Could you help me?
I downoaded this folder: http://www.droidviews.com/tutorial-how-to-decompile-and-recomplie-apk-files/ and replaced the apktool inside of it with this one: http://forum.xda-developers.com/showpost.php?p=59436776&postcount=2812
I installed the framework via "apktool if framework-res.apk" just in case.
Click to expand...
Click to collapse
after you recompile it, you must put the META-INF folder from the original apk into your new APK,then push it to system/framework and set its permissions to 644 (rw-r-r)
opssemnik said:
after you recompile it, you must put the META-INF folder from the original apk into your new APK,then push it to system/framework and set its permissions to 644 (rw-r-r)
Click to expand...
Click to collapse
It still doesn't boot and stays at bootanimation. I decompiled and recompiled the .apk again and using WinRar i copied the META-INF folder from the original .apk to the new one. Then I rebooted into recovery and typed these commands:
Code:
adb shell
cd system/framework
rm framework-res.apk
adb push framework-res.apk /system/framework (This is the recompiled apk with the META-INF folder)
adb shell chmod 644 /system/framework/framework-res.apk
adb reboot
Edit: I didn't install Google WebView this time.
fr3quency said:
It still doesn't boot and stays at bootanimation. I decompiled and recompiled the .apk again and using WinRar i copied the META-INF folder from the original .apk to the new one. Then I rebooted into recovery and typed these commands:
Code:
adb shell
cd system/framework
rm framework-res.apk
adb push framework-res.apk /system/framework (This is the recompiled apk with the META-INF folder)
adb shell chmod 644 /system/framework/framework-res.apk
adb reboot
Edit: I didn't install Google WebView this time.
Click to expand...
Click to collapse
install it from the playstore before doing this, also are you lastest snapshot apktool ? (its newer than rc4)
opssemnik said:
install it from the playstore before doing this, also are you lastest snapshot apktool ? (its newer than rc4)
Click to expand...
Click to collapse
The apktool I used is newer... I think; it was posted at a later date, thus newer. Could you upload your folder with your apktool that you used if you have enough bandwidth?
Edit: I installed it from the Play Store and pushed the .apk. Is there a way to see if it used Google or AOSP webview?
Will do once i get home
See the user agent or read the config , altought the latter probably will nerd system permissions.
Or you could delete system webview and see if webkit based apps still work
Since framework is updated regularly in cm nightlies, so is there any way to do this on the fly using latest framework files.
Thnx
fr3quency said:
The apktool I used is newer... I think; it was posted at a later date, thus newer. Could you upload your folder with your apktool that you used if you have enough bandwidth?
Edit: I installed it from the Play Store and pushed the .apk. Is there a way to see if it used Google or AOSP webview?
Click to expand...
Click to collapse
did you get it after all? if not i upload my apktool folder
prabhu_91 said:
Since framework is updated regularly in cm nightlies, so is there any way to do this on the fly using latest framework files.
Thnx
Click to expand...
Click to collapse
would require a custom build of cm with it, or a custom apk of the webview or a xposed module(see OP) or apktool / some kind of apk modifying program to be native compiled for android(so it could be ran as an addon.d script on recovery). you could always keep flashing older framework-res, generally cm dosen´t do much to it, but once it does, the mod will need to be updated.
BTW, making for VIVID-20150426v3
opssemnik said:
did you get it after all? if not i upload my apktool folder
Click to expand...
Click to collapse
Yeah I got it working. Thanks for the help!
Sorry ignorance, but what is the function of this file?
i need com.android.webview
could you please upload a com.android.webview flashable zip. i don't want com.google.android.webview, i'm facing major issue with google's updatable webview. i need a aosp webview. plz help me