[GUIDE]Add Text to Status Bar - Samsung Galaxy SL i9003

[GUIDE] Add Text to Status Bar​
Requirement:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/tickle my android
I use tickle my android cause it very easy
Step:
1.Decompile SystemUI.apk
2.go to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy This line,paste in LINE 9
Code:
<TextView android:textSize="15.0sp" android:textColor="#ffa6a6a6" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
How to change text color
Code:
android:textColor="[B]#ffa6a6a6[/B]"
change: #ffa6a6a6 to whatever hex color you want
example :
#ffffffff = White
#ff000000 =Black(?)
How to change text size
Code:
android:textSize="[B]15sp[/B]"
change: 15sp to whatever you want
example
: 16sp same as with Clock
: 14.5sp
: 13sp
: 12sp same as with battery percent
5.Go to res/values/strings.xml
6.copy this line,paste in above
Code:
<string name="hello">Hafiz</string>
Change Hafiz to whatever would you like,like Axis,Android,Google etc!
7.Recompile!
8.done
Thanks for
1. @Ticklefish for tool
2. GOOGLE
find more about string: Here

screenshoot:

OP update bro
Sent from my GT-I9003 using xda premium

Nice sharing bro
Sent from my GT-I9003 using xda premium

sorry OP update again

After doing all this I have to recompile the apk and then install it normally like any other apk on my phone?
And is it correct to follow this tutorial for compiling/recompiling? http://forum.xda-developers.com/showthread.php?t=2251719&highlight=guide+apktool

Truepeace said:
After doing all this I have to recompile the apk and then install it normally like any other apk on my phone?
And is it correct to follow this tutorial for compiling/recompiling? http://forum.xda-developers.com/showthread.php?t=2251719&highlight=guide+apktool
Click to expand...
Click to collapse
yeahh you can follow that tutorial

MR.Volkf said:
yeahh you can follow that tutorial
Click to expand...
Click to collapse
That's what I did but I am having an error while recompiling
Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more

Truepeace said:
That's what I did but I am having an error while recompiling
Code:
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool>apktool b SystemUI
I: Using Apktool 2.0.0-Beta7 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res\layout\status
_bar.xml:8: error: Error: No resource found that matches the given name (at 'tex
t' with value '@string/hello').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Fadi\A
ppData\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id,
127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ver
sion-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Te
mp\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework
\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res,
-M, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManife
st.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Fadi\AppData\Local\Temp\brut_util_Jar_84735215265620421
54.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version
, 17, --version-code, 17, --version-name, 4.2.2-eng.jenkins.20130923.184428, -F,
C:\Users\Fadi\AppData\Local\Temp\APKTOOL6566898991623935652.tmp, -0, arsc, -I,
C:\Users\Fadi\apktool\framework\1.apk, -S, C:\Users\Fadi\Downloads\Compressed\Ne
w folder\Apktool\SystemUI\res, -M, C:\Users\Fadi\Downloads\Compressed\New folder
\Apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Fadi\App
Data\Local\Temp\brut_util_Jar_8473521526562042154.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --versi
on-name, 4.2.2-eng.jenkins.20130923.184428, -F, C:\Users\Fadi\AppData\Local\Temp
\APKTOOL6566898991623935652.tmp, -0, arsc, -I, C:\Users\Fadi\apktool\framework\1
.apk, -S, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\res, -M
, C:\Users\Fadi\Downloads\Compressed\New folder\Apktool\SystemUI\AndroidManifest
.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Click to expand...
Click to collapse
recheck you string.xml there's left in string.xml

I have made this module for Xposed which does the same thing with many options, check out this thread http://forum.xda-developers.com/showthread.php?t=2695692&page=3

good man

Related

[Q] Need help on reverse engg with Easy APK dissassembler

Hello all,
I am new to Android world and in reverse engg. More over I am not sure this is the correct room for asking this question.
I disassembled an apk file using EasyApkDisassembler and modified it. But when i Assemble it again I get a heap of errors as follow
<<<<<<<<ERROR>>>>>>
(0) Apktool Dissasembly
(1) Apktool Assembly AND Sign it
(2) DISASSEMBLY a classes.dex with smali
(3) ASSEMBLY a classes.dex with baksmali
(4) Sign an APK
(5) Convert an Xml Binairy to Xml
(6) Launch CMD
(7) Launch Notepad++
(8) About
(9) EXIT
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_g.apk
FICHIER
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping (null) file 'G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res\
drawable-hdpi\_r2_c2.9.png')
(skipping (null) file 'G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res\
drawable-hdpi\_r4_c2.9.png')
invalid resource directory name: G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.ap
k\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Imet\AppData\Local\Temp\A
PKTOOL8203745195223044340.tmp, -0, arsc, -I, C:\Users\Imet\apktool\framework\1.a
pk, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res, -M, G:\APK_HACK\Ea
syApkDisassembler.V1.3.2\dis_g.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\
Users\Imet\AppData\Local\Temp\APKTOOL8203745195223044340.tmp, -0, arsc, -I, C:\U
sers\Imet\apktool\framework\1.apk, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\di
s_g.apk\res, -M, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\AndroidManifes
t.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 8, --target-sdk-version, 15, -F, C:\Users\Imet\AppData\Local\Temp\APK
TOOL8203745195223044340.tmp, -0, arsc, -I, C:\Users\Imet\apktool\framework\1.apk
, -S, G:\APK_HACK\EasyApkDisassembler.V1.3.2\dis_g.apk\res, -M, G:\APK_HACK\Easy
ApkDisassembler.V1.3.2\dis_g.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_g.apk\dist\g.apk (The system cannot find the
path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Can anyone please help me

[Q] Can't Recompile file with drawable-xxhdpi in it

Ok I have the newest apktool 1.5.2 I have installed framework-res.apk and semcgenericuxpres.apk but get warnings seems this is normal. I decompile Phone.apk and then tried recompiling it without making changes trying to troubleshoot the issue and I get these error's any help please.
Code:
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\APK\phone\res/drawable-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/drawable-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-land-xxhdpi
invalid resource directory name: c:\APK\phone\res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Local\Temp\APKTOOL827132729019243
5011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\apktool\framework\1.apk, -I, C:\
Users\Jason CCCE LLC\apktool\framework\2.apk, -S, c:\APK\phone\res, -M, c:\APK\p
hone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, -F, C:\Users\JASONC~1\AppData\Lo
cal\Temp\APKTOOL8271327290192435011.tmp, -0, arsc, -I, C:\Users\Jason CCCE LLC\a
pktool\framework\1.apk, -I, C:\Users\Jason CCCE LLC\apktool\framework\2.apk, -S,
c:\APK\phone\res, -M, c:\APK\phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more

[Q] can not dowload pic or save logcat or save camera photos etc

Guys please help me.
Today out of the blue following problem appeared.
I can not download pics on whatsapp - error : download failed.
Camera pics are not saved on sd card.
When I open quick pic app I get following error:
not an error code 0 : "could not open the database in read/write mode android"
I checked logcat but could not find problem even
Logcat log could not be saved on sd card, I can not even mail them
Can anyone tell me please how can I solve this problem
Thanks a lot!!
EDIT: copied relevent logcat
Code:
build.board: pico
build.bootloader: 1.03.0000
build.brand: HTC
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: pico
build.display: cm_pico-userdebug 4.4.4 KTU84Q 4b7901b027 test-keys
build.fingerprint: htc_europe/htc_pico/pico:4.4.4/KTU84Q/87995:user/release-keys
build.hardware: pico
build.host: Sachin-PC
build.id: KTU84Q
build.manufacturer: HTC
build.model: Explorer A310e
build.product: pico
build.radio: unknown
build.serial: SH1AWVN24323
build.tags: test-keys
build.time: 1413819092000
build.type: userdebug
build.user: sachinthomas
version.codename: REL
version.incremental: 4b7901b027
version.release: 4.4.4
version.sdk_int: 19
11-04 21:14:29.606 I/Gmail (6324): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 234577, normalSync: true
11-04 21:14:29.616 I/Gmail (6324): lowestBackward conversation id 0
11-04 21:14:29.886 I/Gmail (6324): Sending provider changed intent: Intent { act=android.intent.action.PROVIDER_CHANGED dat=content://gmail-ls/unread/^sq_ig_i_personal (has extras) }
11-04 21:14:30.057 I/NotifUtils(6324): Validating Notification, mapSize: 1 getAttention: true ignoreUnobtrusive: true
11-04 21:14:30.497 I/NotifUtils(6324): Showing notification with unreadCount of 914 and unseenCount of 1
11-04 21:14:33.059 I/PeopleDatabaseHelper(6349): cleanUpNonGplusAccounts done.
11-04 21:14:33.840[COLOR="Red"] E/j (6110):[/COLOR] couldn't create new file
11-04 21:14:33.840 E/j (6110): java.io.IOException: open failed: ENOENT (No such file or directory)
11-04 21:14:33.840 E/j (6110): at java.io.File.createNewFile(File.java:946)
11-04 21:14:33.840 E/j (6110): at com.nolanlawson.logcat.b.j.a(Unknown Source)
11-04 21:14:33.840 E/j (6110): at com.nolanlawson.logcat.b.j.a(Unknown Source)
11-04 21:14:33.840 E/j (6110): at com.nolanlawson.logcat.q.doInBackground(Unknown Source)
11-04 21:14:33.840 E/j (6110): at android.os.AsyncTask$2.call(AsyncTask.java:288)
11-04 21:14:33.840 E/j (6110): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-04 21:14:33.840 E/j (6110): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-04 21:14:33.840 E/j (6110): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-04 21:14:33.840 E/j (6110): at java.lang.Thread.run(Thread.java:841)
11-04 21:14:33.840 E/j (6110): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
11-04 21:14:33.840 E/j (6110): at libcore.io.Posix.open(Native Method)
11-04 21:14:33.840 E/j (6110): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
11-04 21:14:33.840 E/j (6110): at java.io.File.createNewFile(File.java:939)
11-04 21:14:33.840 [COLOR="red"]E/j (6110):[/COLOR] ... 8 more
11-04 21:14:35.732 I/NotifUtils(6324): Account: -961567747 vibrate: false
11-04 21:14:35.732 I/NotifUtils(6324): New email in -961567747 vibrateWhen: false, playing notification: content://settings/system/notification_sound
11-04 21:14:37.424 I/ActivityManager(533): Killing 5460:com.speedsoftware.rootexplorer/u0a53 (adj 15): empty #5
11-04 21:14:38.134 V/Zygote (6396): Switching descriptor 31 to /dev/null
11-04 21:14:38.134 V/Zygote (6396): Switching descriptor 10 to /dev/null
11-04 21:14:38.144 I/ActivityManager(533): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=6396 uid=10015 gids={50015, 1028, 1015, 1023, 1024, 2001, 3003, 3007}
11-04 21:14:38.355 D/ActivityThread(6396): handleBindApplication:android.process.media
11-04 21:14:38.355 D/ActivityThread(6396): setTargetHeapUtilization:0.75
11-04 21:14:38.355 D/ActivityThread(6396): setTargetHeapMinFree:524288

Error Recompile apk

Hi, i got an error on recompile apk...
what i did :
java -jar apktool.jar if framework-res.apk => good
java -jar apktool.jar d myapk.apk => good
java -jar apktool.jar b myapkfolder => error
i use apktool 2.0.0 (latest) with all sdk tools installed etc etc
Someone can help me pls ?
Thanks
Logs :
I: Using Apktool 2.0.0
I: Smaling smali folder into classes.dex...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
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\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\mac\AppData\Local\Temp\brut_util_Jar_4204004795269055527.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 22, --version-code, 207, --version-name, 2.0.7, -F, C:\Users\mac\AppData\Local\Temp\APKTOOL3422305288023690523.tmp, -0, arsc, -I, C:\Users\mac\apktool\framework\1.apk, -S, C:\Users\mac\Desktop\duelll\res, -M, C:\Users\mac\Desktop\duelll\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
C:\Users\mac\Desktop\duelll\AndroidManifest.xml:77: Tag <activity> attribute name has invalid character '_'.
Click to expand...
Click to collapse
Invalid character "_" in brut_util?
davebugyi said:
Invalid character "_" in brut_util?
Click to expand...
Click to collapse
I search in the manifest.xml and at l77 there isn't"_".

How to use apktool on android device

Hi guys
So the thing started as this.
I have a samaung galaxy core 2 running kitkat 4.4.2
I wanted to develope a custom rom for it.
And for that i have to decompile many apps and do some modding and recompile them again.
I am using apktool vesion 4.1
At first i installed the main framework-res.apk into the apktool and set the default folder correctly.
I decompiled systemui.apk without any error.
And just removed 6 lines from the layout/signal cluster.xml
And not apktool shows error in compiling the app
So my problem is how can i get rid of the error.
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, /data/data/per.pqy.apktool/APKTOOL5220112300896973543.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 10 more
And if my version is wrong recommend me a correct one
Help will be appriciated. Thankyou
Plz anybody solve my problem

Categories

Resources