Here is guide how to add 15 toggles to notification pulldown. All credits going to sk0t, I'm just translate his guide
LIDROID PANEL
1. Decompile your SystemUI.apk
2. Download archive from attachments and copy drawable-hdpi(mdpi) and layout folders to your decompiled folder
3. Open file res/layout/status_bar_expanded.xml and add string
Code:
<include layout="@layout/qp_layout" />
after
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
4. Add strings from strings.xml and arrays.xml to your files in decompiled folder
5. Compile
6. Decompile new apk to some newfolder
7. Copy file newfolder/SystemUI/res/values/public.xml into res/values/ and replace
8. Delete newfolder
9. Next take smali folder from archive and put it into SystemUI/smali
10. Archive contains qp_repl.js script. You must place him near SystemUI folder and execute him. Wait until script will finish his work. You must see "Done"
11. Build your apk.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BRIGHTNESS SLIDER
1. Decompile your SystemUI.apk
2. Download slider_btn archive and extract smali, drawable-hdpi и layout folders to your decompiled folder
3. Add string into status_bar_expanded.xml
Code:
<include layout="@layout/qp_brightness" />
after
Code:
<include layout="@layout/qp_layout" />
4. Build
WARNING! The Flashlight toggle may cause FC in Sense ROMs
Thanks for your post
You should post also on Android Themes & Apps section where there are all great mods like this.
Will be very useful
xpirt
what can I use to decompile the apk? thanks!
lilrob1213 said:
what can I use to decompile the apk? thanks!
Click to expand...
Click to collapse
Apktool or Apk Manager. Search on xda.
xpirt
Can you create a guide on how to add EQS to a stock ROM?
Steam. said:
Can you create a guide on how to add EQS to a stock ROM?
Click to expand...
Click to collapse
You can deodex make necessary steps and then reodex.
xpirt
I'm trying to add this to HTCdroid. Can someone explain this?
4. Add strings from strings.xml and arrays.xml to your files in decompiled folder
Click to expand...
Click to collapse
@tonyskyfall
I've done strings.xml but there is no arrays.xml
EDIT: Fixed arrays thing, but this now
[email protected]:~/Downloads/APKTool/SystemUI$ ./qp_repl.js
./qp_repl.js: line 1: var: command not found
./qp_repl.js: line 1: $'\r': command not found
./qp_repl.js: line 2: syntax error near unexpected token `('
'/qp_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
[email protected]:~/Downloads/APKTool/SystemUI$
MameTozhio said:
I'm trying to add this to HTCdroid. Can someone explain this?
@tonyskyfall
Click to expand...
Click to collapse
open strings.xml from archive , copy lines, then add them to strings.xml to your systemUI.apk
just take arrays.xml file and put it into values folder
tonyskyfall said:
open strings.xml from archive , copy lines, then add them to strings.xml to your systemUI.apk
just take arrays.xml file and put it into values folder
Click to expand...
Click to collapse
Okay, done that. But there's more errors now =/ (Look above I edited the post now)
MameTozhio said:
Okay, done that. But there's more errors now =/ (Look above I edited the post now)
Click to expand...
Click to collapse
did you copy smali folder and new public.xml file?
tonyskyfall said:
open strings.xml from archive , copy lines, then add them to strings.xml to your systemUI.apk
just take arrays.xml file and put it into values folder
Click to expand...
Click to collapse
No arrays.xml it's not complete there are only strings to add on an existent arrays.xml. So he has to look into an arrays.xml and copy first and last parts.
And qp_reply.js has to stay when there is SystemUI folder, so:
Blabla/SystemUI/
Blabla/qp_reply.js
xpirt
xpirt said:
No arrays.xml it's not complete there are only strings to add on an existent arrays.xml. So he has to look into an arrays.xml and copy first and last parts.
And qp_reply.js has to stay when there is SystemUI folder, so:
Blabla/SystemUI/
Blabla/qp_reply.js
xpirt
Click to expand...
Click to collapse
I found a workaround for arrays, I just copied </resources> and the XML version stuff from strings.xml.
I tried it again (I didn't continue on last time I was too tired, so I restarted clean).
I have this error:
Edit! - Nevermind I've gotten it to work (Finally)
Edit 2 -
[email protected]:~/Downloads/APKTool$ bash qp_repl.js
qp_repl.js: line 1: var: command not found
qp_repl.js: line 1: $'\r': command not found
qp_repl.js: line 2: syntax error near unexpected token `('
'p_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
[email protected]:~/Downloads/APKTool$
@tonyskyfall
Sorry if I've been a bother u.u
MameTozhio said:
I tried it again (I didn't continue on last time I was too tired, so I restarted clean).
I have this error:
Edit! - Nevermind I've gotten it to work (Finally)
Edit 2 -
[email protected]:~/Downloads/APKTool$ bash qp_repl.js
qp_repl.js: line 1: var: command not found
qp_repl.js: line 1: $'\r': command not found
qp_repl.js: line 2: syntax error near unexpected token `('
'p_repl.js: line 2: `var fso = new ActiveXObject('Scripting.FileSystemObject');
[email protected]:~/Downloads/APKTool$
@tonyskyfall
Sorry if I've been a bother u.u
Click to expand...
Click to collapse
Do you have Java installed? Is it in the correct path like I said?
Btw.. I think you are on linux so it will not work..
xpirt
xpirt said:
Do you have Java installed? Is it in the correct path like I said?
Btw.. I think you are on linux so it will not work..
xpirt
Click to expand...
Click to collapse
Yes I'm on Linux (Linux Deepin 12.12.1). I have Java 6 installed via Webupd8 PPA.
@tonyskyfall
i edited the systemui.apk but it keeps giving error on compiling after 4th step could u look into it
using vts to decompile btw
Code:
12:53:51.548: [Normal] - TenProjectViewModel.BuildProject: 'Building project: SystemUI'
12:53:51.566: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
12:53:51.597: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\BB130C''
12:53:52.850: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\BB130C\smali'
12:53:52.850: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\BB130C\classes.dex" "C:\Users\saksham\AppData\Local\Temp\BB130C\smali"'
12:53:54.846: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
12:53:54.959: [Normal] - ApkTool.CompileApk: 'Compiling apk'
12:53:54.959: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\ApkTool\apktool_1.5.2.jar" b -a "C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe" "C:\Users\saksham\AppData\Local\Temp\BB130C" "C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Binary\SystemUI.apk"'
12:53:58.075: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
12:53:58.085: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
12:53:58.087: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\saksham\AppData\Local\Temp\BB130C\res\values\arrays.xml:5: error: Error parsing XML: junk after document element'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:283)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:206)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:176)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:228)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:79)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: ... 5 more'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:89)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)'
12:53:58.093: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
12:53:58.093: [Error] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling resource files failed!'
edit: above error was solved by not copying the arrays.xml in my systemui.apk there is no arrays.xml
when i copied the smali files and then run the script it said done but then when i build apk there was this error of smali
Code:
13:42:50.226: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
13:42:50.266: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\6BC7FD''
13:42:52.049: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali'
13:42:52.049: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\6BC7FD\classes.dex" "C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali"'
13:42:54.064: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[31,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[47,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[61,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[67,14] no viable alternative at input 'undefined''
13:42:54.065: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
13:42:54.067: [Debug] - SmaliTool.Smali: 'Exitcode: 1'
ignore this
sakshamx said:
@tonyskyfall
i edited the systemui.apk but it keeps giving error on compiling after 4th step could u look into it
using vts to decompile btw
Code:
12:53:51.548: [Normal] - TenProjectViewModel.BuildProject: 'Building project: SystemUI'
12:53:51.566: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
12:53:51.597: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\BB130C''
12:53:52.850: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\BB130C\smali'
12:53:52.850: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\BB130C\classes.dex" "C:\Users\saksham\AppData\Local\Temp\BB130C\smali"'
12:53:54.846: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
12:53:54.959: [Normal] - ApkTool.CompileApk: 'Compiling apk'
12:53:54.959: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\ApkTool\apktool_1.5.2.jar" b -a "C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe" "C:\Users\saksham\AppData\Local\Temp\BB130C" "C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Binary\SystemUI.apk"'
12:53:58.075: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
12:53:58.085: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
12:53:58.087: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: C:\Users\saksham\AppData\Local\Temp\BB130C\res\values\arrays.xml:5: error: Error parsing XML: junk after document element'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResources(Androlib.java:283)'
12:53:58.090: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:206)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.build(Androlib.java:176)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.cmdBuild(Main.java:228)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.apktool.Main.main(Main.java:79)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)'
12:53:58.091: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: ... 5 more'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\Program Files\Virtuous Ten Studio\External\ApkTool\aapt.exe, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\saksham\AppData\Local\Temp\APKTOOL1773983993400921790.tmp, -I, C:\Users\saksham\apktool\framework\1.apk, -I, C:\Users\saksham\apktool\framework\2-4.1_com.rec.apk, -S, C:\Users\saksham\AppData\Local\Temp\BB130C\res, -M, C:\Users\saksham\AppData\Local\Temp\BB130C\AndroidManifest.xml]'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.util.OS.exec(OS.java:89)'
12:53:58.092: [Error] - ApkTool.CompileApk: 'ApkTool: at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)'
12:53:58.093: [Error] - ApkTool.CompileApk: 'ApkTool: ... 6 more'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
12:53:58.093: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
12:53:58.093: [Error] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling resource files failed!'
edit: above error was solved by not copying the arrays.xml in my systemui.apk there is no arrays.xml
when i copied the smali files and then run the script it said done but then when i build apk there was this error of smali
Code:
13:42:50.226: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Compiling changed M10 pictures'
13:42:50.266: [Debug] - ApkProjectViewModel.BuildBinary: 'SystemUI: Copying 'C:\Users\saksham\Documents\Virtuous Ten Studio\Projects\systemui.apk lidroid panel\SystemUI\Data' to 'C:\Users\saksham\AppData\Local\Temp\6BC7FD''
13:42:52.049: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali'
13:42:52.049: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files\Virtuous Ten Studio\External\Smali\smali-1.4.2.jar" --api-level 15 --output "C:\Users\saksham\AppData\Local\Temp\6BC7FD\classes.dex" "C:\Users\saksham\AppData\Local\Temp\6BC7FD\smali"'
13:42:54.064: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[31,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[47,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[61,14] no viable alternative at input 'undefined''
13:42:54.065: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\saksham\AppData\Local\Temp\6BC7FD\smali\com\lidroid\systemui\quickpanel\QPids.smali[67,14] no viable alternative at input 'undefined''
13:42:54.065: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
13:42:54.067: [Debug] - SmaliTool.Smali: 'Exitcode: 1'
Click to expand...
Click to collapse
QPids gives the error. This file contains all necessary public ids for strings, ids and drawable.
First generate public ids backing-up the working folder then save all new ids and copy them in the backed-up folder and then compile.
I recommend you to use ApkManager to decompile/recompile apks and with this guide you can add Lidroid in 2mins.
xpirt
xpirt said:
QPids gives the error. This file contains all necessary public ids for strings, ids and drawable.
First generate public ids backing-up the working folder then save all new ids and copy them in the backed-up folder and then compile.
I recommend you to use ApkManager to decompile/recompile apks and with this guide you can add Lidroid in 2mins.
xpirt
Click to expand...
Click to collapse
that error very old didnt u replied my pm :silly:
everything fine now
sakshamx said:
that error very old didnt u replied my pm :silly:
everything fine now
Click to expand...
Click to collapse
Ah lol I forgot.
xpirt
Related
I wanted to edit the settings in the default workspace such as change widgets and app icons. I wanted to do something small like change the size of the Market widget from 2x2 to 4x4. I decompiled and made the change. Then I tried to recompile using thee b(build) command. Here's what I get:
[email protected] ~ $ apktool d Launcher2.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: /home/treken/apktool/framework/1.apk
I: Copying assets and libs...
[email protected] ~ $ apktool b Launcher2
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2635074741971448593.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2635074741971448593.tmp, -I, /home/treken/apktool/framework/1.apk, -S, /home/treken/Launcher2/res, -M, /home/treken/Launcher2/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
... 8 more
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
[email protected] ~ $
Someone please help me!!!!!!! :O
It looks like you are on Linux and don't have permissions for the folder. Either modify the permissions or run in terminal as root.
Hey guys, I'm trying to decompile, edit, then recompile espier launcher 0.5.2 apk
I decompiled it and edited is successfully, and then when I go to compile, I don't see any output.
Does the compile not create an apk file? I'm confused on where to go after I edit my apk.
I'm using APK manager on OS X lion 64bit if that makes any difference.
Thanks.
(I couldn't find this anywhere on the internet or on xda forums)
not sure if this makes any sense, so for clarification:
I decompile, edit, then compile. Then when i go to sign, it says it cannot find unsigned-Espier_Launcher_0.5.2.apk Please use "zip" or "compile" options first.
Code:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 20:29:28.56|
--------------------------------------------------------------------------
--2012-02-03 20:29:28-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 2.37M=0s
2012-02-03 20:29:28 (2.37 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
I: Checking whether sources has changed...
I: Smaling...
^C--------------------------------------------------------------------------
|Fri 02/03/2012 -- 20:32:00.26|
--------------------------------------------------------------------------
--2012-02-03 20:32:00-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 1.87M=0s
2012-02-03 20:32:00 (1.87 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL3022903427758754693.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pr
ojects\1Espier_Launcher_0.5.2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Kunal\AppData\Local\Temp\APKTOOL3022903427758754693.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.a
pk\res, -M, C:\APK MultiTOol\projects\1Espier_Launcher_0.5.2.apk\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 21:06:51.95|
--------------------------------------------------------------------------
--2012-02-03 21:06:52-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 2.47M=0s
2012-02-03 21:06:52 (2.47 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Kunal\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
--------------------------------------------------------------------------
|Fri 02/03/2012 -- 21:58:50.81|
--------------------------------------------------------------------------
--2012-02-03 21:58:50-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 1.09M=0s
2012-02-03 21:58:51 (1.09 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
'""platform-tools"\adb.exe"' is not recognized as an internal or external comman
d,
operable program or batch file.
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL1970506614237777931.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Kunal\AppData\Local\Temp\APKTOOL1970506614237777931.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL7228759727554343253.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Kunal\AppData\Local\Temp\APKTOOL7228759727554343253.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Kunal\AppData\Local\Temp\A
PKTOOL6594612407827724422.tmp, -I, C:\Users\Kunal\apktool\framework\1.apk, -S, C
:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\res, -M, C:\APK MultiTOol\pro
jects\Espier_Launcher_0.5.2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Kunal\AppData\Local\Temp\APKTOOL6594612407827724422.tmp, -I, C:\Users\Kunal
\apktool\framework\1.apk, -S, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.ap
k\res, -M, C:\APK MultiTOol\projects\Espier_Launcher_0.5.2.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Press any key to continue . . .
this is my error when i try to compile it on my dell xps vista using apk multitool.
Hi guys,
To enable these mods you need:
apktool 1.5.2 or the latest APK Manager
smali/baksmali
Knowledge of decompiling/recompiling
knowledge of how to read logcats
framework-res.apk
services.jar
SecSettings.apk
SecSettingsProvider.apk
framework-res.apk
Navigate to: /res/values/bools.xml
On Screen Nav Buttons (GNexus Style):
Code:
[CENTER]<bool name="config_showNavigationBar">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_showNavigationBar">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
4 Way Rotation:
Code:
[CENTER]<bool name="config_allowAllRotations">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_allowAllRotations">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
Lock Screen Rotation:
Code:
[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_enableLockScreenRotation">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
and
Code:
[CENTER]<bool name="lockscreen_isPortrait">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
change to
Code:
[CENTER]<bool name="lockscreen_isPortrait">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Disable Keyboard Switch In StatusBar When Typing
Code:
[CENTER]<bool name="show_ongoing_ime_switcher">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="show_ongoing_ime_switcher">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
Unplugging From USB doesn't Turn Screen On
Code:
[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_unplugTurnsOnScreen">[COLOR="red"]false[/COLOR]</bool>[/CENTER]
To remove 'Unlock lockscreen with menu key' For AOSP Lockscreen:
Code:
[CENTER]<bool name="config_disableMenuKeyInLockScreen">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_disableMenuKeyInLockScreen">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To remove Help Overlay for Touchwiz Lockscreen:
Code:
[CENTER]<bool name="config_isHelpOverlayEnabled">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_isHelpOverlayEnabled">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
To permanently disable Multi Windows:
Code:
[CENTER]<bool name="config_multiWindowControlbar">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="config_multiWindowControlbar">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Brightness Values:
res/values/arrays
Change the following values (Taken from mattiadj's brightness fix thread - thanks)
Code:
<integer-array name="config_autoBrightnessLevels">
<item>0</item>
<item>1</item>
<item>20</item>
<item>150</item>
<item>400</item>
<item>800</item>
<item>1500</item>
<item>3000</item>
<item>6000</item>
<item>9000</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessHysteresisLevels">
<item>0</item>
<item>2</item>
<item>50</item>
<item>110</item>
<item>320</item>
<item>900</item>
<item>2000</item>
<item>6000</item>
<item>8000</item>
<item>10000</item>
<item>12000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>30</item>
<item>50</item>
<item>60</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>190</item>
<item>210</item>
<item>230</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues ">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
SecSettingsProvider.apk
To enable installation of non market (3rd party) apps by default:
Navigate to: /res/values/bools.xml
Code:
[CENTER]<bool name="def_install_non_market_apps">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_install_non_market_apps">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To disable the lockscreen completely:
Code:
[CENTER]<bool name="def_lockscreen_disabled">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_lockscreen_disabled">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
To enable Wifi from boot:
Code:
[CENTER]<bool name="def_wifi_on">[COLOR="Red"]false[/COLOR]</bool>[/CENTER]
Change to:
Code:
[CENTER]<bool name="def_wifi_on">[COLOR="Red"]true[/COLOR]</bool>[/CENTER]
SecSettings.apk
To enable Device Status Info "Normal" Instead Of "Modified":
Navigate to: smali/com/android/settings/deviceinfo/Status.smali
Search for:
Code:
.method private changeSysScopeStatus()V
Change entire method to:
Code:
.method private changeSysScopeStatus()V
.locals 2
const-string v0, "sysscope_status"
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
const v1, [COLOR="deepskyblue"]0x7f090128 #sysscope_normal[/COLOR]
invoke-virtual {p0, v1}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V
return-void
.end method
Now navigate to /res/values/public
Search for "sysscope_normal" (Without quotes) - take the 0x7 number associated with it and paste it over the number in the above code with #sysscope_normal at the side of it (the one given isn't correct for your phone)
services.jar
To disable signature checks on system apps:
Navigate to: /smali/com/android/server/pm
Search for
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
Change entire method to:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7
const-string p0, "DSA:"
const-string p1, "Skip signatures check"
invoke-static {p0, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
const/4 v6, 0x0
return v6
.end method
I'll be adding more mods to this over the coming weeks
Please no more requests for ICS/Stock animations, thats not what this thread is for
Update 26/05/13
framework-res.apk:
Added mod for disabling help overlay on Touchwiz lockscreen
Added brightness fix values
Added mod to disable MultiWindow
SecSettingsProvider.apk:
- Enable Wifi from boot
- Install non market apps by default
- To disable the lockscreen completely
SecSettings.apk:
- To enable Device Status Info "Normal" Instead Of "Modified"
Services.jar:
- To disable signature checks on system apps
Update 24/01/13
Added mod for AOSP Lockscreen menu key disable
Reuploaded APK Manager folder for users (Includes apktool 1.5.1 and latest relevant aapt)
Thanks:
jovy23
Wanam
Mattiadj
Darkside Agent said:
Hi, i couldn't find this posted anywhere so i thought i would share it
To enable 4 way lockscreen rotation & 4 way screen rotation you need:
Working ics apktool (google it, theres plenty on xda)
framework-res.apk from any deodexed ICS ROM (preferably with ICS lockscreen)
Setup i am using:
Apex launcher
Apex screen rotation set to auto rotate
ICS Lockscreen (Not tested on stock)
Decompile framework-res.apk
Navigate to: /res/values/bools.xml
Recompile.
When recompiling with apktool, you should get an error message just before it finishes the build. When its finished, ignore the created .apk and navigate to C:\Users\'your name'\framework-res\build\apk - take the resources.arsc from that folder, open your existing framework-res.apk with winzip/winrar etc and paste the resources.arsc over the existing one
Done, you now have 4 way lockscreen rotation & 4 way screen rotation
Click to expand...
Click to collapse
Nice one DSA
no worries, always glad to share
Nice
I will include this Mod to my script "new version" if you may
Thnak you.
go for it dude, enjoy!
OP updated with CRT and SIP mods
enjoy
OP updated with new mods
If anyone has problems performing these mods, let me know and i will do it for you
Thanx, always nice to have the mods collected in one place.
Darkside Agent said:
OP updated with new mods
If anyone has problems performing these mods, let me know and i will do it for you
Click to expand...
Click to collapse
I'll take you up on that one OP, I'm trying to do the CRT, disable the keyboard icon on notification
I decompile the apk and made the necessary changes to the xml file, but when I try to compile it again I get several errors and while I can get a general idea of what do they say I don't know how to solve them, could you help me with this?
Hi
Have you followed the instruction regarding recompiling? ie ignore the error...Have you copied the resource.arsc file over?
If you are still having issues, upload the framework file and i will sort it
Hey mate, I take it these steps would work on a custom rom. Looking to add the CRT effect and disable the ime switcher on Crysis Sensation rom.
Don't see why not...give it a go and report back!
I stopped because the option for the CRT effect was already set in the roms framework, although it doesn't work so god knows lol
Have you turned animations off in the developer settings?
Genius lol. On another note, would you have any idea why the screen flashes with the crt effect sometimes. Might just leave it off, kinda annoying when it happens lol
Do you mean it flashes when you lock the screen? I think it's related to open apps or internet connection..but I'm not sure...
Very nice, thanks you .
Still no good, I used my laptop to try again with a fresh install of the sdk and still nothing...
Code:
C:\ICS Apktool>apktool d c:\framework-res.apk c:\frame
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\ICS Apktool>apktool b c:\frame
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in
c:\frame\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in
c:\frame\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in c:\frame\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in c:\frame\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in c:\frame\res; found: en_GB es pt
c:\frame\res\values\plurals.xml:79: error: Multiple substitutions specified in n
on-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is
expected
c:\frame\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" attribute
?
c:\frame\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plur
als> is expected
c:\frame\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" attribute
?
c:\frame\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plur
als> is expected
c:\frame\res\values-es\plurals.xml:79: error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals>
is expected
c:\frame\res\values-pt\plurals.xml:79: error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values-pt\plurals.xml:79: error: Found tag </item> where </plurals>
is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Mario\AppData\Local\Temp\A
PKTOOL8803180150134749875.tmp, -x, -S, c:\frame\res, -M, c:\frame\AndroidManifes
t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Mario\AppData\Local\Temp\APKTOOL8803180150134749875.tmp, -x, -S, c:\frame\r
es, -M, c:\frame\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Kirot said:
Still no good, I used my laptop to try again with a fresh install of the sdk and still nothing...
Code:
C:\ICS Apktool>apktool d c:\framework-res.apk c:\frame
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\ICS Apktool>apktool b c:\frame
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in
c:\frame\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in
c:\frame\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in c:\frame\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in c:\frame\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in c:\frame\res; found: en_GB es pt
c:\frame\res\values\plurals.xml:79: error: Multiple substitutions specified in n
on-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values\plurals.xml:79: error: Found tag where is
expected
c:\frame\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" attribute
?
c:\frame\res\values-en-rGB\plurals.xml:79: error: Found tag where is expected
c:\frame\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" attribute
?
c:\frame\res\values-en-rUS\plurals.xml:79: error: Found tag where is expected
c:\frame\res\values-es\plurals.xml:79: error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values-es\plurals.xml:79: error: Found tag where
is expected
c:\frame\res\values-pt\plurals.xml:79: error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
c:\frame\res\values-pt\plurals.xml:79: error: Found tag where
is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Mario\AppData\Local\Temp\A
PKTOOL8803180150134749875.tmp, -x, -S, c:\frame\res, -M, c:\frame\AndroidManifes
t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Mario\AppData\Local\Temp\APKTOOL8803180150134749875.tmp, -x, -S, c:\frame\r
es, -M, c:\frame\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
Instead of using c:/ framework path, just create cmd shortcut in the folder where you copied apktool
Then simply,
Apktool d framework-res.apk
And
Apktool b framework-res.apk
Sent from my GT-I9100 using xda premium
Big thanks for this howto and the mod.
Question, do you know how to implement notification toggles
in systemui like AOKP to enable / disable wlan, gps etc?
Realy thanks
DISCLAIMER: I ACCEPT NO RESPONSIBILITY WHATSOEVER IF YOU BRICK YOUR PHONE, LOSS OF DATA OR YOU HAVE BOOTLOOPS USING THIS MOD. THE INFORMATION SHARED FOR HELPING THOSE HELP THEMSELVES. MADE ONLY FOR THE XDA PRINCIPLE OF "SHARING KNOWLEDGE". FOR ROOTED PHONES ONLY & OBVIOUSLY
Everyone is requested not to post unnecessary questions. I am making the OP very clear so you need no further assistance. Critics will be ignored and use of foul language and ungrateful words will be reported.
As seen very often network data speed in statusbar is a nice mod to have but it involves some editing of your smali and xml files. This mod aims to make it very simple for people to incorporate the mod yourself.
FEATURES
1. Speed shown only when connected.
2. Unit in Bytes/Kilobytes/Megabytes selected automatically....no need to worry.
3. Speed shown for data / wifi.
4. Speed indicator vanishes the moment you disconnect.
For making it simple I have made all necessary changes to the files attached. So you need not break your head in making smali edits....Simply cut-copy paste....
THIS METHOD WORKS 100% ON ANY G2...ANY ROM & ANY VERSION OF ANDROID GB/ICS/JB/KK...
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
STEP II
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
"
HTML:
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
"
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"[I]][HTML]<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="11.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/HTML][/I][/SIZE][/COLOR]
[B][U][SIZE="2"]NOTE: IN THE ABOVE LINE[/SIZE][/U][/B]
android:textColor="#ffffffff"----CHANGE HEX CODE TO HAVE THE COLOR OF YOUR CHOICE
android:textSize="10.0dip"-----CHANNGE THE DIP FOR SIZE OF SPEED INDICATOR
REMOVING THE ABOVE LINE FROM YOUR STATUS_BAR.MAL WILL DEACTIVATE/REMOVE DATA SPEED
STEP III
>>>>>>>RECOMPILE AS NewLGSystemUI.APK . OPEN THE ORIGINAL LGSystemUI.apk in 7zip.
>>>>>>>Drag and copy the META-INF folder and AndroidManifest.xml to your NewLGSystemUI.APK also opened in 7zip.
>>>>>>>Rename the file to LGSystemUI.apk and push to /system/priv-app with 644/-rw-r--r-- permission.
REBOOT AND ENJOY THE MOD.
I HOPE THIS SIMPLE GUIDE HELPS EVERYONE WHO WANT THE MOD WITHOUT WANTING TO USE XPOSED
DO NOT FORGET TO PRESS THANKS IF YOU LIKED THIS TUT/GUIDE. YOU PRESSING THANKS MAKES ME HAPPY
THIS WORK IS FREE FOR USE BY ANYONE IN ANY ROM. YOU HAVE MY PERMISSION. I DONT DO THIS FOR MONEY OR DONATION. I WOULD BE VERY HAPPY TO GET CREDIT FOR THIS....BE GOOD STAY GOOD AND BE SAFE
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
so it means first we need to learn how to deodex
then how to decompile
can u post some easy links for these ? or apps u use to deodex and decompile
rastigo said:
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
""
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"[I]][/I][/SIZE][/COLOR]
[/QUOTE]
okay so the first question is what lines because they are not written there[COLOR="Silver"]
---------- Post added at 10:44 AM ---------- Previous post was at 10:41 AM ----------
mor_1228 said:
STEP I
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
so it means first we need to learn how to deodex
then how to decompile
can u post some easy links for these ? or apps u use to deodex and decompile
Click to expand...
Click to collapse
you can check out universaldeodexer for deodexing apps and ticklemyandroid for decompiling/recompiling which can both be found on xda with many guides on how to use; I prefer to use virtoustenstudio but there are no guides on how to use and a little troublesome for beginners but everyone uses something that works for them
Click to expand...
Click to collapse
Oh ok. I did type them.... Where did they go. Am i supposed to put a text box or something. Those lines just vanished mate,
ok in the meantime I found the traffic line since I still had the yellow systemui with speed mod but when recompiling I get an error recompiling smali folder below is a little log which may help since all the errors are traffic smali related also I am working with cloudyg3 systemui on d800:
Code:
11:33:29.718: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\Ivan\AppData\Local\Temp\6A57BE\smali'
11:33:29.718: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\Smali\smali-2.0.3.jar" --api-level 19 --output "C:\Users\Ivan\AppData\Local\Temp\6A57BE\classes.dex" "C:\Users\Ivan\AppData\Local\Temp\6A57BE\smali"'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$2.smali[39,15] mismatched input '"msg"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$3.smali[27,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[24,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[25,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[25,15] mismatched input '"handler"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[57,15] no viable alternative at input 'resolver''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[57,24] no viable alternative at input 'Landroid/content/ContentResolver;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[74,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic$SettingsObserver.smali[74,15] mismatched input '"selfChange"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[39,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[53,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[54,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[53,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[68,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[69,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[68,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[70,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[124,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[124,15] mismatched input '"x0"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[135,4] Error for input '.parameter': Invalid directive'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[135,15] mismatched input '"x0"' expecting END_METHOD_DIRECTIVE'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[163,15] no viable alternative at input 'connectivityManager''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[163,35] no viable alternative at input 'Landroid/net/ConnectivityManager;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[208,15] no viable alternative at input 'resolver''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[208,24] no viable alternative at input 'Landroid/content/ContentResolver;''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[212,15] no viable alternative at input 'newColor''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[327,15] no viable alternative at input 'filter''
11:33:33.040: [Debug] - SmaliTool.Smali: 'Smali: ..\..\Users\Ivan\AppData\Local\Temp\6A57BE\smali\com\android\systemui\statusbar\policy\Traffic.smali[327,22] no viable alternative at input 'Landroid/content/IntentFilter;''
11:33:33.040: [Normal] - SmaliTool.Smali: 'Smali failed, see log for further information.'
11:33:33.040: [Debug] - SmaliTool.Smali: 'Exitcode: 1'
11:33:33.062: [Error] - SmaliModule.ExecuteInternal: 'LGSystemUI -> Assemble smali files : Assembling smali failed!'
11:33:33.063: [Error] - Script.ExecuteScript: 'Executing LGSystemUI -> Assemble smali files failed!'
edit:might be smali related on my side, what smali/backsmali did you use to decompile/recompile?
Op updated
rastigo said:
> DECOMPILE YOUR SYSTEMUI.APK (MUST BE DEODEXED VERSION)
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
STEP II
EDIT /res/layout/status_bar.xml with notepad ++ and find the following line
"
HTML:
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
"
SIMPLY ADD THE FOLLOWING LINE EXACTLY ABOVE IT AND SAVE
[SIZE="2"]
HTML:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="11.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
[/SIZE][/COLOR]
Click to expand...
Click to collapse
this confusing me which line above and which line below ? its like this ?
i cant find this also
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
---------- Post added at 12:45 PM ---------- Previous post was at 12:33 PM ----------
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
mor_1228 said:
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
Click to expand...
Click to collapse
no, after you decompiled LGSystemUI.apk, this is the exact path
LGSystemUI.apk\smali\com\android\systemui\statusbar\policy\
mor_1228 said:
i cant find this also
> DOWNLOAD AND UNZIP THE ZIP ATTACHED. SIMPLY COPY ALL THE FILES TO THE FOLLOWING FOLDER
"/smali/com/android/systemui/statusbar/policy"
---------- Post added at 12:45 PM ---------- Previous post was at 12:33 PM ----------
bro i guess u forgot to mention we need to deodex both LGSystemUI & lge-res
and then we need to decompile both LGSystemUI & lge-res
because /smali/com is in lge-res folder
i found this lge-res\smali\com\lge
so got these files below : now what ?
Click to expand...
Click to collapse
@mor_1228,..you should be knowing that for decompiling any apk from stock rom, both framework-res.apk and lge-res.apk are required,
rastigo said:
@mor_1228,..you should be knowing that for decompiling any apk from stock rom, both framework-res.apk and lge-res.apk are required,
Click to expand...
Click to collapse
you mean to say bro when decompling i need to paste all 3 files together ramework-res.apk and lge-res.apk & lgsystemui.apk
and when i get option to decompile then i have to decompile only lgsystemui.apk
i will make a video soon for the whole process from deodex to decompile to the end then u can tell me mistakes. :highfive:
mor_1228 said:
you mean to say bro when decompling i need to paste all 3 files together ramework-res.apk and lge-res.apk & lgsystemui.apk
and when i get option to decompile then i have to decompile only lgsystemui.apk
i will make a video soon for the whole process from deodex to decompile to the end then u can tell me mistakes. :highfive:
Click to expand...
Click to collapse
You require framework-res.apk and lge-res.apk for resources.Then decompile the LGSystemUI.apk
rastigo said:
You require framework-res.apk and lge-res.apk for resources.Then decompile the LGSystemUI.apk
Click to expand...
Click to collapse
now i got my mistakes done.
1. deodex both files lge-res and systemui
2. TO decompile first we need to install framework-res.apk and lge-res.apk with this command apktool if framework-res.apk and lge-res.apk
( i was missing this step as i was only installing framework-res.apk and left lge-res)
3. it will decomplie properly now. finally got it properly. :highfive:
now i can see all folders.
while recompile after doing all steps i faced this problem
Code:
C:\apktool>apktool b LGSystemUI
I: Using Apktool 2.0.0-Beta9 on LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive
LGSystemUI\smali\com\android\systemui\statusbar\policy\Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/policy/Traffic$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
That is quite strange I make it every now and then. No such errors. Try apktool 1.5.2. I read somewhere that 2.0 handles small differently
Sent from my LG-D802 using XDA Premium 4 mobile app
rastigo said:
That is quite strange I make it every now and then. No such errors. Try apktool 1.5.2. I read somewhere that 2.0 handles small differently
Sent from my LG-D802 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
after using apkttool 1.5.2 i got this error. please check ur pm also sent a video :
C:\apktool>apktool b LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'compat_mode_help_body' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'compat_mode_help_header' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'jelly_bean_dream_name' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_text' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_title' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
I: Building apk file...
C:\apktool>
and in the end i got a apk file in dist folder LGSystemUI
mor_1228 said:
after using apkttool 1.5.2 i got this error. please check ur pm also sent a video :
C:\apktool>apktool b LGSystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'compat_mode_help_body' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'compat_mode_help_header' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'jelly_bean_dream_name' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_text' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
aapt: warning: string 'status_bar_help_title' has no default translation in C:\apktool\LGSystemUI\res; found: et km ms
I: Building apk file...
C:\apktool>
and in the end i got a apk file in dist folder LGSystemUI
Click to expand...
Click to collapse
That is not an error mate...congrats you did it. Now drag the meta-inf and the androidmanifest.xml from the original apk to the new one using 7zip. Then replace your file in /system/priv-app with 644 permissions.
Those lines are warnings where apktool cannot find translations to the code in framework-res.apk. Then it looks for the same in lge-res.apk and thus it says found.....
All said and done... You have successfully compiled the mod.... :good:
Well, after a hard work finally got it xD but for remove speed indicator thx for your help
Lol thnkx it means finally I did it will test soon as i am on your stock 20b flashable file from ur thread.
I extracted system . IMG. But fails in deodex
Sent from my LG-D802 using Tapatalk
Thanks @rastigo but I did have some issues on my side but it's all good since my small amount of knowledge on modding helped out and was able to get it working
Sent from my PIKACHU powered LG G3 D800
Animation Mod
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi guys this is my first tutorial or guide.
In this i will show u how to get accent animaton effect on lockscreen and statusbar.
REQUIREMENT
- 4.4+ Device
- Superuser mod
- Know to decompile/recompile
Instructions
- decompile systemui
- download the zip from attachment
- copy drawable and drwable-hdpi to res
- copy android to smali folder
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
- go to res - values - colors.xml and paste this
Code:
<color name="somc_color_accent_dark">@android:color/somc_color_accent_dark</color>
- than in values folder ids.xml add this
Code:
<item type="id" name="bekgron_image">false</item>
- done recompile.
Credit- maaadon
- and me for accent and fixing fc
Super bro?
SM-G800H cihazımdan Tapatalk kullanılarak gönderildi
I tried it twice, but receiving these errors:
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue1.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue10.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue11.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue12.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue13.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue14.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue15.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue16.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue2.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue3.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue4.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue5.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue6.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue7.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue8.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
C:\Users\G4B33\Desktop\systemui\decode\res\drawable\duitblue9.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/theme_accent').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\G4B33\AppData\Local\Temp\brut_util_Jar_6929661432006947638.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-1xdidi, -F, C:\Users\G4B33\AppData\Local\Temp\APKTOOL616343226343353787.tmp, -0, arsc, -0, arsc, -I, C:\Users\G4B33\apktool\framework\1.apk, -S, C:\Users\G4B33\Desktop\systemui\decode\res, -M, C:\Users\G4B33\Desktop\systemui\decode\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
Click to expand...
Click to collapse
I'm using z1c, 5.1.1 .
G4B33 said:
I tried it twice, but receiving these errors:
I'm using z1c, 5.1.1 .
Click to expand...
Click to collapse
<item type="id" name="theme_accent">false</item>
if fc remove this line from all xmls [email protected]/theme_accent'
Thanks, it successfully recompiled it, but It doesn't wanna work
G4B33 said:
Thanks, it successfully recompiled it, but It doesn't wanna work
Click to expand...
Click to collapse
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
@yash989 I can't understand it. What will it do, I is it something like particle effect? Will it work on cm too or just stock roms?
mayank22 said:
@yash989 I can't understand it. What will it do, I is it something like particle effect? Will it work on cm too or just stock roms?
Click to expand...
Click to collapse
U get this animation effects whem u pull statusbar and lockscreen if u trying on cm11 lockscreen womt work but cm12+ it will
yash989 said:
U get this animation effects whem u pull statusbar and lockscreen if u trying on cm11 lockscreen womt work but cm12+ it will
Click to expand...
Click to collapse
Thnks for reply but I still can't get exactly what animation?
But no worry I will try it today itself.....
mayank22 said:
Thnks for reply but I still can't get exactly what animation?
But no worry I will try it today itself.....
Click to expand...
Click to collapse
Now what to say it somthing like raining on ur statusbar and lockscreen
yash989 said:
Now what to say it somthing like raining on ur statusbar and lockscreen
Click to expand...
Click to collapse
Ohh, I now I got the feel, I it sounds interesting. I am definitely gonna try it
yash989 said:
- go to res-layout-msim_statusbar_expanded.xml/statusbar_Expanded.xml
- paste this before </com.android.systemui.statusbar.phone.NotificationPanelView>
Code:
<android.para****.AnimatedImageView android:layout_gravity="center" android:id="@id/bekgron_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/duitblue" android:scaleType="fitXY" />
- ****- change this to s.h.i.t dont add dots i have added because cant type it here
Click to expand...
Click to collapse
Thanks man, I tried it, but still nothing..
G4B33 said:
Thanks man, I tried it, but still nothing..
Click to expand...
Click to collapse
compare it https://drive.google.com/file/d/0B9nu7Uret6OkbnZsQi04NmxUVU0/view