Gamepad detection - Xiaomi Mi 6 Questions & Answers

I have this issue since I started using custom roms.
The issue is my phone detects a gamepad which I have never owned one and I don't think there is any nearby. It makes some of the games unplayable (takes over the controls). I couldn't find anything on the internet like this
(I did clean flash xiaomi.eu) PLEASE HELP!!

If necessary I can root my phone

Same thing

To test you can try flats

Bump

I don't know why doesn't any of the developers try to help!!

It's really weird... Could you send a screenshot?

cyker31 said:
It's really weird... Could you send a screenshot?
Click to expand...
Click to collapse
For what

Sorry I am not English but it says "to shoot press R2"
"modern combat 5"

Bardbarian, bottom row show A, B, X, Y, when the gamepad is not plug to the phone

Matehoo said:
Bardbarian, bottom row show A, B, X, Y, when the gamepad is not plug to the phone
Click to expand...
Click to collapse
Yeah same on me

I am currently on miui9 7.9.21 xiaomi.eu release.
When i plug the xbox 360 controller via usb otg, the phone doesnt register the conected controller. But phone in games and apps acts like the controller is conected.
And the developers are currently on holidays, so the fix will not be released soon.

I found something like this on connected (gamepad tester):
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="qpnp_pon"
P: Phys=qpnp_pon/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=event0 cpufreq
B: PROP=0
B: EV=3
B: KEY=14000000000000 0
I: Bus=0000 Vendor=0000 Product=0003 Version=2065
N: Name="synaptics_dsx"
P: Phys=synaptics_dsx/touch_input
S: Sysfs=/devices/soc/c179000.i2c/i2c-5/5-0020/input/input1
U: Uniq=
H: Handlers=mdss_fb kgsl mouse0 event1 cpufreq
B: PROP=2
B: EV=b
B: KEY=420 0 0 40008800 4000000000 0
B: ABS=263800000000003
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="hbtp_vm"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse1 event2 cpufreq
B: PROP=2
B: EV=7
B: KEY=30000 0 0 0 0
B: REL=3
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="uinput-goodix"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3 cpufreq
B: PROP=0
B: EV=3
B: KEY=3100000 40000800 1c16c100000000 0
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/soc/soc:gpio_keys/input/input4
U: Uniq=
H: Handlers=event4 cpufreq
B: PROP=0
B: EV=23
B: KEY=8000000000000 0
B: SW=1
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="msm8998-tasha-snd-card Headset Jack"
P: Phys=ALSA
S: Sysfs=/devices/soc/1711a000.sound-9335/sound/card0/input5
U: Uniq=
H: Handlers=event5
B: PROP=0
B: EV=21
B: SW=780d4
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="msm8998-tasha-snd-card Button Jack"
P: Phys=ALSA
S: Sysfs=/devices/soc/1711a000.sound-9335/sound/card0/input6
U: Uniq=
H: Handlers=event6 cpufreq
B: PROP=40
B: EV=3
B: KEY=3e 400000000 0 0 0
I: Bus=0006 Vendor=0000 Product=0000 Version=0000
N: Name="uinput-fpc"
P: Phys=
S: Sysfs=/devices/virtual/input/input7
U: Uniq=
H: Handlers=event7 cpufreq
B: PROP=0
B: EV=b
B: KEY=1f000000000000 0 0 16c000000000 0
B: ABS=4

Synaptics_dsx seemed so suspicious

I asked miui forum a member said I should use global rom. But I don't know if I will lock my bootloader if I flash it via TWRP please let me know if it locks

I found the problem.. It was not something with the roms that I used it was related to miui 7.9.22 firmware. How do I know you ask.. First I downloaded global stable (8.5.1.0) it didn't have any bugs about gamepad but then I flashed miui global beta(7.9.22) and the gamepad issue came back. Hope developers fix the firmware

So anyone found any way to fix it? Im on Version: V9.2.3.0.OCAMIEK and i have this problem,anyone?

Same issue in miui 13 android 12 i can't play many of my favourite games like real racing 3 , gangster vegas , dead trigger 2 etc because of auto gamepad detection without connecting anything to the phone even my bluetooth is off iam rooted now is there any tweaks to disable it so that i can use touch controls to play my favourite games

Related

[Q] Error Compiling/Decompiling Phone.apk

So I'm having issues while compiling the Phone.apk. This is what I did:
apktool d '/home/raafaell/Documents/Phone.apk' '/home/raafaell/Documents/Phone'
Code:
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: /home/raafaell/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: /home/raafaell/apktool/framework/2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
It decompiles without problems, now in order to build I have to drag&drop the resources.arsc file to '/home/raafaell/Documents/Phone'.
After doing that I am able to modify files like .9.png images and then recompile, however something goes wrong because the res won't hide the values* folders, so it increases the size to almost twice as the original.
Now that is compiled, I go and decompile the Phone_new.apk to do some more changes by doing: apktool d '/home/raafaell/Documents/Phone/dist/Phone_new.apk' '/home/raafaell/Documents/Phone/dist/Phone_new' , and this is the output:
Code:
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: /home/raafaell/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: layout/dialog_ussd_response.xml
S: Could not decode file, replacing by FALSE value: layout/skype_title_bar.xml
S: Could not decode file, replacing by FALSE value: layout-finger/htc_keypad.xml
S: Could not decode file, replacing by FALSE value: xml/call_feature_setting_htc.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_merge_calls.xml
S: Could not decode file, replacing by FALSE value: layout/htc_cdmacallguard.xml
S: Could not decode file, replacing by FALSE value: drawable/command_bar_btn.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_contacts_sp.xml
S: Could not decode file, replacing by FALSE value: layout/htc_nbpcd_add_country.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_button_small_selected.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout/htc_nbpcd_setting.xml
S: Could not decode file, replacing by FALSE value: layout/pref_dialog_editnumbers.xml
S: Could not decode file, replacing by FALSE value: layout/change_sim_pin_screen.xml
S: Could not decode file, replacing by FALSE value: xml/network_setting_htc.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_contacts.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_add_call.xml
S: Could not decode file, replacing by FALSE value: color-finger/dialer_button_text.xml
W: Cant find 9patch chunk in file: "drawable-land-car-hdpi/phone_accumulator_bg.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/gsm_umts_additional_options.xml
S: Could not decode file, replacing by FALSE value: layout/dtmf_display.xml
S: Could not decode file, replacing by FALSE value: layout/sip_settings_ui.xml
S: Could not decode file, replacing by FALSE value: layout-hdpi/ongoing_call_notification_2.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_dial_button.xml
S: Could not decode file, replacing by FALSE value: drawable/common_radio_on_disable.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_hold.xml
S: Could not decode file, replacing by FALSE value: layout/call_card_popup.xml
S: Could not decode file, replacing by FALSE value: layout/enable_fdn_screen.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_end_rest.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout/fake_phone_activity.xml
S: Could not decode file, replacing by FALSE value: xml/cdma_call_options.xml
S: Could not decode file, replacing by FALSE value: xml/call_feature_setting.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_panel_navbar_button_rest.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/gsm_umts_call_options.xml
S: Could not decode file, replacing by FALSE value: drawable/common_radiobutton.xml
S: Could not decode file, replacing by FALSE value: layout/edit_fdn_contact_screen.xml
S: Could not decode file, replacing by FALSE value: layout/get_pin2_screen.xml
S: Could not decode file, replacing by FALSE value: xml/data_usage_settings.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_show_keypad.xml
S: Could not decode file, replacing by FALSE value: xml/sip_advanced_edit.xml
S: Could not decode file, replacing by FALSE value: layout/add_cellbroadcast_dialog.xml
S: Could not decode file, replacing by FALSE value: layout-finger/htc_end_call_handler.xml
S: Could not decode file, replacing by FALSE value: layout/htc_cdma_data_roam_guard.xml
S: Could not decode file, replacing by FALSE value: layout/ongoing_call_notification.xml
S: Could not decode file, replacing by FALSE value: layout/otacall_card.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_hide_keypad.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_mute.xml
S: Could not decode file, replacing by FALSE value: drawable/btn_contorl_panel.xml
S: Could not decode file, replacing by FALSE value: layout-finger/htc_retry_hbpcd_handler.xml
S: Could not decode file, replacing by FALSE value: layout-finger/emergency_dialer.xml
S: Could not decode file, replacing by FALSE value: layout/htc_call_control_panel.xml
S: Could not decode file, replacing by FALSE value: xml/phone_preference.xml
S: Could not decode file, replacing by FALSE value: layout/pref_dialog_editphonenumber.xml
S: Could not decode file, replacing by FALSE value: layout/delete_fdn_contact_screen.xml
S: Could not decode file, replacing by FALSE value: drawable-finger/notification_btn_endcall.xml
S: Could not decode file, replacing by FALSE value: layout/htc_multiple_and_conference.xml
S: Could not decode file, replacing by FALSE value: layout/htc_nbpcd_edit_idd.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_button_acc_call_press.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_add_call.xml
S: Could not decode file, replacing by FALSE value: xml/sip_edit.xml
S: Could not decode file, replacing by FALSE value: layout/htc_lockscreen_reminder.xml
S: Could not decode file, replacing by FALSE value: layout/pref_dialog_editpin.xml
S: Could not decode file, replacing by FALSE value: drawable/phone_button_acc_call.xml
S: Could not decode file, replacing by FALSE value: layout/cs_ps_switch.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_end_pressed.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/htc_worldphone_call_options.xml
S: Could not decode file, replacing by FALSE value: layout-finger/emergency_keypad.xml
S: Could not decode file, replacing by FALSE value: layout/manual_nai_setup_dialog.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_panel_navbar_button_selected.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: drawable/icon_contactcard.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_accumulator_bg.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/manual_carrier_select.xml
S: Could not decode file, replacing by FALSE value: xml/fdn_setting.xml
S: Could not decode file, replacing by FALSE value: layout/eri_text_layout.xml
S: Could not decode file, replacing by FALSE value: layout-hdpi/ongoing_call_notification_top.xml
S: Could not decode file, replacing by FALSE value: layout/dialog_ussd_response_att.xml
S: Could not decode file, replacing by FALSE value: color-finger/ota_title_color.xml
S: Could not decode file, replacing by FALSE value: xml/sip_setting.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_button_small_rest.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout-finger/htc_dialer_keypad.xml
S: Could not decode file, replacing by FALSE value: layout/htc_lockscreen_person_info.xml
S: Could not decode file, replacing by FALSE value: layout/title_bar.xml
S: Could not decode file, replacing by FALSE value: drawable/common_button_small.xml
S: Could not decode file, replacing by FALSE value: layout/caller_in_conference.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_service.xml
S: Could not decode file, replacing by FALSE value: layout/call_card_person_info.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_roaming_options.xml
S: Could not decode file, replacing by FALSE value: drawable/btn_phone_endcall.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_b_button_on.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: drawable/btn_phone_defer.xml
S: Could not decode file, replacing by FALSE value: layout/adn_list.xml
S: Could not decode file, replacing by FALSE value: layout-hdpi/status_bar_latest_event_content_cs_cf.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_end_held_call.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_all_people.xml
S: Could not decode file, replacing by FALSE value: layout/htc_list_item_dropdown_w_des.xml
S: Could not decode file, replacing by FALSE value: anim/touch_lock_fade_in.xml
S: Could not decode file, replacing by FALSE value: layout/pref_dialog_editmessage.xml
S: Could not decode file, replacing by FALSE value: xml/htc_call_barring_options.xml
S: Could not decode file, replacing by FALSE value: layout/htc_vzw_conversion.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_button_acc_call_rest.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout/dialer_task_bar.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_additional_options.xml
S: Could not decode file, replacing by FALSE value: layout/htc_cdma_incall_info.xml
S: Could not decode file, replacing by FALSE value: layout/htc_nbpcd_add_idd.xml
S: Could not decode file, replacing by FALSE value: drawable/common_radio_off_disable.xml
S: Could not decode file, replacing by FALSE value: layout/htc_call_defer.xml
S: Could not decode file, replacing by FALSE value: xml/sip_settings_category.xml
S: Could not decode file, replacing by FALSE value: layout/htc_call_defer_custom_msg.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_callforward_options.xml
S: Could not decode file, replacing by FALSE value: layout/skype_fake_arc.xml
W: Cant find 9patch chunk in file: "drawable/dialog_bg_calling_via.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout-finger/htc_audio_src_selection.xml
S: Could not decode file, replacing by FALSE value: xml/network_setting.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_options.xml
S: Could not decode file, replacing by FALSE value: layout/htc_layout_list_idd.xml
S: Could not decode file, replacing by FALSE value: layout-finger/emergency_dialer_keypad.xml
S: Could not decode file, replacing by FALSE value: layout/pref_dialog_editphonenumber_with_time.xml
S: Could not decode file, replacing by FALSE value: xml/callforward_options.xml
S: Could not decode file, replacing by FALSE value: xml/htc_worldphone_options.xml
S: Could not decode file, replacing by FALSE value: xml/cdma_options.xml
S: Could not decode file, replacing by FALSE value: drawable/common_icon_merge_call.xml
S: Could not decode file, replacing by FALSE value: xml/htc_cdma_roaming_guard_list.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_bg_birthday.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout/htc_nbpcd_edit_country.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_speaker.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_bt_headset.xml
S: Could not decode file, replacing by FALSE value: layout/call_card.xml
S: Could not decode file, replacing by FALSE value: xml/cell_broadcast_setting.xml
S: Could not decode file, replacing by FALSE value: xml/mip_error.xml
S: Could not decode file, replacing by FALSE value: xml/eri_text_appwidget.xml
S: Could not decode file, replacing by FALSE value: drawable/phone_button_control_more.xml
S: Could not decode file, replacing by FALSE value: color/button_text.xml
S: Could not decode file, replacing by FALSE value: layout/enable_sim_pin_screen.xml
S: Could not decode file, replacing by FALSE value: layout/incall_screen.xml
S: Could not decode file, replacing by FALSE value: drawable/btn_phone_call.xml
S: Could not decode file, replacing by FALSE value: xml/carrier_select.xml
S: Could not decode file, replacing by FALSE value: drawable/icon_addcontact.xml
S: Could not decode file, replacing by FALSE value: layout/sim_missing.xml
S: Could not decode file, replacing by FALSE value: layout-finger/htc_dtmf_twelve_key_dialer.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/phone_bg_facebook.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: layout/htc_call_defer_reminder.xml
S: Could not decode file, replacing by FALSE value: layout/sim_ndp.xml
S: Could not decode file, replacing by FALSE value: layout/sn_status_panel.xml
S: Could not decode file, replacing by FALSE value: layout/htc_multiple_conference_call_item.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_button_small_press.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/gsm_umts_options.xml
W: Cant find 9patch chunk in file: "drawable-hdpi/common_panel_navbar_button_press.9.png". Renaming it to *.png.
S: Could not decode file, replacing by FALSE value: xml/advanced_settings.xml
S: Could not decode file, replacing by FALSE value: layout/htc_assisted_dialing.xml
S: Could not decode file, replacing by FALSE value: layout/htc_cdma_dialog.xml
S: Could not decode file, replacing by FALSE value: drawable/toolbar_button.xml
S: Could not decode file, replacing by FALSE value: layout/sim_import_list_entry.xml
S: Could not decode file, replacing by FALSE value: drawable/htc_incall_panel_headset.xml
S: Could not decode file, replacing by FALSE value: xml/cell_broadcast_sms.xml
S: Could not decode file, replacing by FALSE value: layout/fdn_manipulate_menu.xml
I: Decoding values*/* XMLs...
I: Loading resource table from file: /home/raafaell/apktool/framework/2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
any idea?
Thanks in advance.
If its the aosp phone.apk then you really need to decompile contacts.apk
Phone.apk is really inside of it.
When you install contacts.apk to a sense rom it installs the phone.apk also.
Sent from my PC36100 using xda premium
jessesse said:
If its the aosp phone.apk then you really need to decompile contacts.apk
Phone.apk is really inside of it.
When you install contacts.apk to a sense rom it installs the phone.apk also.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
It's actually a SENSE Rom with gingerbread 2.3.5... I saw the same answer in other forums, but none of them matches my problem.
bump
This is a great thread for themeing questions..http://forum.xda-developers.com/showthread.php?t=1320891
[Guide][Reference] An Intro to Themeing
It might be a bad xml edit.. depends what you are trying to due. I'm not the best person to ask.. but trying to help.
Sent from my PC36100 using xda premium
apktool if phone.apk
den typ
apktool d phone.apk

Decompiling Mms.apk

im trying to decompile my mms.apk and i keep getting an error
heres the log
I hope this is the right section didnt know where to post in here or Q & A
--------------------------------------------------------------------------
|Fri 11/23/2012 -- 22:01:21.49|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
Could Not Find C:\Users\the\Desktop\New folder\place-apk-here-for-modding\../place-apk-here-for-modding/signedMms.apk
Could Not Find C:\Users\the\Desktop\New folder\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedMms.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\the\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=parentActivityName, value=0x00000041
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

[HELP][KERNEL]need help port kernel to XL

I noticed that there are no custom kernel for the xl, although there are lots of custom roms for it. how do they get their kernel?they dont post the sources.
So i decided to port LULZ kernel over to the XL, using https://github.com/Nokia-xl-legacy/android_kernel_nokia_msm8625 as a reference.
now i have a few bugs here.
when building https://github.com/Nokia-xl-legacy/android_kernel_nokia_msm8625 and running it;
back button does work
usb connection doesnt work
2nd sim get no network.
i havent yet built the lulz kernel (with an imported xl_msm8625_defconfig defconfig from XL Legacy). i want to inquire from the guys who have built roms for the xl( i am looking at you @YSH ALSAGER ) . What did you do to get it to work? Are there any resource or apps to get board info.
Thanks.
MENTIONS
 @weritos
 @YSH ALSAGER
 @Ahmed Hady
Bro Nokia xl is the Same as Nokia x but there are some differences in display , cam, and keys drivers ... find these drivers and I can help porting NX kernels to N xl
Ahmed Hady said:
Bro Nokia xl is the Same as Nokia x but there are some differences in display , cam, and keys drivers ... find these drivers and I can help porting NX kernels to N xl
Click to expand...
Click to collapse
which brings me to the 2nd question. Are there any way to get the hardware ids on the device? CPU-z gives me a few sensors, but nothing that would control the buttons.
Actually I don't know any app can do that but try to search for qcom devices
Ahmed Hady said:
Actually I don't know any app can do that but try to search for qcom devices
Click to expand...
Click to collapse
did a cat on some proc files here is the results for input
Code:
[email protected]_XL:/proc # cat bus/input
/system/bin/sh: cat: bus/input: Is a directory
1|[email protected]_XL:/proc # cat bus/input/devices
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ft6306"
P: Phys=ft6306
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=kbd event0 cpufreq
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 100800 40 0 0 0
B: ABS=2640000 0
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="7x27a_kp"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=c0000 0 0 0
I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="bma2x2"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=f
B: KEY=100000 0 0 0
B: REL=3c4
B: ABS=3000007
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ltr559_als"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3
B: PROP=0
B: EV=9
B: ABS=100 0
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ltr559_ps"
P: Phys=
S: Sysfs=/devices/virtual/input/input4
U: Uniq=
H: Handlers=event4
B: PROP=0
B: EV=9
B: ABS=2000000
I: Bus=0000 Vendor=0001 Product=0001 Version=0001
N: Name="7k_handset"
P: Phys=
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=kbd event5
B: PROP=10
B: EV=23
B: KEY=4 0 28 0 1c0800 0 0 0
B: SW=14
in the second field, 7x27a_kp points to the physical buttons. this https://github.com/samm-git/device_alcatel_OT993D/wiki/OT993D-tech.-info confirms it. now to find camera. display does not seem to have any problem. touch works on the kernel.
very useful ... u can use these information
Ahmed Hady said:
very useful ... u can use these information
Click to expand...
Click to collapse
the nokia X also uses the same keypad, but the core driver may be different, or may work a little different from the XL. when flashed unto the XL, the back button does not respond, but the touchscreen works. the power button can put the phone to standby, or long press to show the power menu. but it wont wake it up when on standby.
so the key buttons work differently from what the X does, although they use the same 7x27a_kp.
also in the source, the only reference to "7x27a_kp" is in the android makefiles for the device vendor, not in the kernel(github may not be searching the repo well, so it may actually be there.) the only other reference on the XL or X that i have found is on the system partition of the roms when built.it is a keypad layout file, "7x27a_kp.kl" found in /system/usr/keylayout/. i would say that it is not a single driver file or group of files, but one of the board drivers that was configured differently from the X, that makes the keys on the XL function well.
EDIT: did a closer search in the sources files found this file, arch/arm/mach-msm/board-msm7627a-io.c .there are key mapping in it but the stuff looks like alien script to me. also cant compare it to the normandy source for X, as it is heavily modified.
Nokia X source; https://github.com/dhacker29/androi...5f1b168/arch/arm/mach-msm/board-msm7627a-io.c
Nokia xl Source: https://github.com/Nokia-xl-legacy/...cm-11.0/arch/arm/mach-msm/board-msm7627a-io.c
emmauss said:
the nokia X also uses the same keypad, but the core driver may be different, or may work a little different from the XL. when flashed unto the XL, the back button does not respond, but the touchscreen works. the power button can put the phone to standby, or long press to show the power menu. but it wont wake it up when on standby.
so the key buttons work differently from what the X does, although they use the same 7x27a_kp.
also in the source, the only reference to "7x27a_kp" is in the android makefiles for the device vendor, not in the kernel(github may not be searching the repo well, so it may actually be there.) the only other reference on the XL or X that i have found is on the system partition of the roms when built.it is a keypad layout file, "7x27a_kp.kl" found in /system/usr/keylayout/. i would say that it is not a single driver file or group of files, but one of the board drivers that was configured differently from the X, that makes the keys on the XL function well.
EDIT: did a closer search in the sources files found this file, arch/arm/mach-msm/board-msm7627a-io.c .there are key mapping in it but the stuff looks like alien script to me. also cant compare it to the normandy source for X, as it is heavily modified.
Nokia X source; https://github.com/dhacker29/androi...5f1b168/arch/arm/mach-msm/board-msm7627a-io.c
Nokia xl Source: https://github.com/Nokia-xl-legacy/...cm-11.0/arch/arm/mach-msm/board-msm7627a-io.c
Click to expand...
Click to collapse
Nokia XL Touch Screen Driver "ft6306" you can use it
emmauss said:
which brings me to the 2nd question. Are there any way to get the hardware ids on the device? CPU-z gives me a few sensors, but nothing that would control the buttons.
Click to expand...
Click to collapse
Here is the app "Device Info HW"
https://yadi.sk/d/N_t_WEpquhdWM

Google Keyboard Height

I have been searching for a way to keep my DPI down and have a taller Gboard without root/exposed. My banking app will not work with magisk.
I found this article ( https://www.google.com/amp/s/www.xda-developers.com/gboard-tweaks-height-sensitivity/amp/ ) and it worked (before I realized my bank app didn't). Obviously I can't use the same process as I don't have root. In the comments there is a guy GWE who makes a statement about editing the APK.
"Decompile the app, go to res/values/arrays, find the keyboard height entry and add your values (sizes like for ex. 1.25, 1.30 etc. and names).
Then go to res/values/strings and make new entries with the names you put in arrays (in my case I went for "extra tall" and "huge"?).
Recompile, now the new values will show in the settings , done!!!"
I have never done this so maybe I'm wrong, but I opened the APK in Android Studio and I couldn't follow the path he had layed out for me. I was hoping that maybe someone could point me in the right direction?
Any help would be appreciated!
Thank you!
S52Stu said:
I have been searching for a way to keep my DPI down and have a taller Gboard without root/exposed. My banking app will not work with magisk.
I found this article ( https://www.google.com/amp/s/www.xda-developers.com/gboard-tweaks-height-sensitivity/amp/ ) and it worked (before I realized my bank app didn't). Obviously I can't use the same process as I don't have root. In the comments there is a guy GWE who makes a statement about editing the APK.
"Decompile the app, go to res/values/arrays, find the keyboard height entry and add your values (sizes like for ex. 1.25, 1.30 etc. and names).
Then go to res/values/strings and make new entries with the names you put in arrays (in my case I went for "extra tall" and "huge"?).
Recompile, now the new values will show in the settings , done!!!"
I have never done this so maybe I'm wrong, but I opened the APK in Android Studio and I couldn't follow the path he had layed out for me. I was hoping that maybe someone could point me in the right direction?
Any help would be appreciated!
Thank you!
Click to expand...
Click to collapse
I too would like to know if this is possible. Like you, I like having a lower DPI but don't like how small it makes the keyboard. I'm done with the days of rooting so hopefully someone knows of a way.
Decompiling an apk requires Apktool.
You need first to install your framework res using "apktool if framework-res.apk" (read on internet how to do this)
When you want to decompile the apk, you have to type "apktool d <apkname.apk>" so you'll get the folder.
Recompiling is "apktool b <decompiled folder name>" and maybe you need to sign the apk after that.
So, is not a super easy process, I think you need to understand better how to do it reading some posts on xda like this one.
Good luck :good:
APK Tool
TENN3R said:
Decompiling an apk requires Apktool.
You need first to install your framework res using "apktool if framework-res.apk" (read on internet how to do this)
When you want to decompile the apk, you have to type "apktool d <apkname.apk>" so you'll get the folder.
Recompiling is "apktool b <decompiled folder name>" and maybe you need to sign the apk after that.
So, is not a super easy process, I think you need to understand better how to do it reading some posts on xda like this one.
Good luck :good:
Click to expand...
Click to collapse
Thanks for the reply. And I have used APK tool to decompile now as I'm not half asleep messing around I have done a bunch of reading. I have found the files needed to modify and have modified them. Then in the process of the Recompiling I get nothing but errors. (obviously figuring this is me I tested my theory)
If I decompile with apk tool (up to date 2.3.1 and Java 1.8.0) and do not touch the file it still will not recompile. It comes with errors. Now this may be because of framework issues, but in my reading I had found that framework was built into the new apktool? Is that not the case? I will continue reading and I appreciate your reply to me.
Thank you and here is a copy of my log.
Microsoft Windows [Version 10.0.16299.309]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar if framework-res.apk
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Framework installed to: C:\Users\Jarvis\AppData\Local\Temp\1.apk
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572
Input file (com.google.android.inputmethod.latin_7.0.8.188704572) was not found or was not readable.
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572.apk
I: Using Apktool 2.3.1 on com.google.android.inputmethod.latin_7.0.8.188704572.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: C:\Users\Jarvis\AppData\Local\Temp\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Users\Jarvis\Desktop\APK Tool>java -jar apktool.jar b com.google.android.inputmethod.latin_7.0.8.188704572
I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (C:\Users\Jarvis\AppData\Local\apktool\framework), using C:\Users\Jarvis\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\language_list_entry.xml:4: error: No resource identifier found for attribute 'buttonTint' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\language_picker_item.xml:4: error: No resource identifier found for attribute 'buttonTint' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\layout-v21\theme_selector_candidate_builder_launcher.xml:2: error: No resource identifier found for attribute 'outlineProvider' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\animator\slide_search_candidate.xml:2: error: Error: String types not allowed (at 'valueFrom' with value '0f').
W:
Exception in thread "main" W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\animator\slide_search_candidate.xml:2: error: Error: String types not allowed (at 'valueTo' with value '1f').
W:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
at brut.androlib.Androlib.buildResources(Androlib.java:426)
at brut.androlib.Androlib.build(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Jarvis\AppData\Local\Temp\brut_util_Jar_2642557352166116402.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 27, --version-code, 26700810, --version-name, 7.0.8.188704572-release-arm64-v8a, --no-version-vectors, -F, C:\Users\Jarvis\AppData\Local\Temp\APKTOOL629891987092943402.tmp, -0, arsc, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader, -0, zip, -0, binarypb, -0, so, -0, pic, -0, dict, -0, json, -0, arsc, -I, C:\Users\Jarvis\AppData\Local\Temp\1.apk, -S, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res, -M, C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
... 6 more
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v22\method.xml:129: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v23\method.xml:131: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\xml-v26\method.xml:131: error: No resource identifier found for attribute 'languageTag' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_indicator_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\abc_ratingbar_small_material.xml:7: error: No resource identifier found for attribute 'tileModeX' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable\abc_vector_test.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\bg_ja_key_slide_left_material_dark_theme.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable-v21\bg_ja_key_slide_up_material_dark_theme.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
W: C:\Users\Jarvis\Desktop\APK Tool\com.google.android.inputmethod.latin_7.0.8.188704572\res\drawable\drag_handle.xml:4: error: No resource identifier found for attribute 'fillColor' in package 'android'
W:
C:\Users\Jarvis\Desktop\APK Tool>
Try put apktool folder directly in C:\
backup/download your framework-res.apk file and put it in the apktool folder
remove the previous one (usually in C:\Users\YourName\apktool\framework\1.apk)
browse to c:\apktool folder with cmd and install the framework (apktool if)
decompile (remember .apk at the end)
edit
try recompile
Also note that in the guide it's not used "java -jar apktool.jar d blabla.apk"
Just browse with cmd in the folder and type "apktool d blabla.apk"
Or, search for the error in specific threads, since I think it's not related to apktool, but something on the commands used.
Framework
TENN3R said:
Try put apktool folder directly in C:\
backup/download your framework-res.apk file and put it in the apktool folder
remove the previous one (usually in C:\Users\YourName\apktool\framework\1.apk)
browse to c:\apktool folder with cmd and install the framework (apktool if)
decompile (remember .apk at the end)
edit
try recompile
Also note that in the guide it's not used "java -jar apktool.jar d blabla.apk"
Just browse with cmd in the folder and type "apktool d blabla.apk"
Or, search for the error in specific threads, since I think it's not related to apktool, but something on the commands used.
Click to expand...
Click to collapse
Maybe that is where I'm lost. I have read the apktool framework page (info) and I'm not sure how to find the specific framework I'm looking for? In the mean time I will move to C:/ and try again
thank you
S52Stu said:
Maybe that is where I'm lost. I have read the apktool framework page (info) and I'm not sure how to find the specific framework I'm looking for?
Click to expand...
Click to collapse
The framework res is the file in your phone.
From the official documentation: you need that if you want to decompile proprietary stuff, google keyboard *should not* need this, also because your previous decompilation was succesful, the problem was recompiling.
I always install the framework on every update that comes just to be sure with decompiling things etc, but for now I think you can skip this. But if you're experiencing problems try read that post
TENN3R said:
The framework res is the file in your phone.
From the official documentation: you need that if you want to decompile proprietary stuff, google keyboard *should not* need this, also because your previous decompilation was succesful, the problem was recompiling.
I always install the framework on every update that comes just to be sure with decompiling things etc, but for now I think you can skip this. But if you're experiencing problems try read that post
Click to expand...
Click to collapse
Tenn3r - I have read that and figured the same thing you were saying. I will pull the framework from my phone - but as it should be AOSP I dont think I would need it.
The main reason I was using Java -jar is because it gave me actual prompts like when something was happening. When you dont use it you get this...
Microsoft Windows [Version 10.0.16299.309]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\APK Tool>apktool.jar if com.google.android.gsf_8.1.0-27_minAPI27(nodpi)_apkmirror.com.apk
C:\APK Tool>apktool.jar d com.google.android.inputmethod.latin_7.0.8.188704572.apk
C:\APK Tool>apktool.jar b com.google.android.inputmethod.latin_7.0.8.188704572
C:\APK Tool>
I have spent entirely too long on a Saturday messing around with this and getting no where simply because I want my keyboard to be a little higher
I have to go do some yard work and stop looking at my computer for a little. But I'll be back at it later. Again thank you for humoring me. It is appreciated.
Ok I had some time so I modified the apk for you: download here
I start thinking the problem could be how you set the files of apktool, since at the very beginning I had some problems too.
So I share with you my apktool folder: download here
Extract those files in "C:\Apktool"
Create shortcut of ApktoolStart.bat on desktop (so you just have to double click on the shortcut)
Type commands "apktool blabla" (no more need of "apktool.jar bla bla")
The txt file is the command you need to execute AFTER you build the apk (will be in "decompiled-folder/dist"), for signing, otherwise install error when try to install on your phone.
For more details visit the tutorial I mentioned some posts before.
P.S: I did not test the apk, so in case of errors you may have to uninstall updates in settings > gboard
Thank you!! I'm gonna try to build it again as my reference but you went above and beyond and I appreciate it!
TENN3R said:
Ok I had some time so I modified the apk for you: download here
I start thinking the problem could be how you set the files of apktool, since at the very beginning I had some problems too.
So I share with you my apktool folder: download here
Extract those files in "C:\Apktool"
Create shortcut of ApktoolStart.bat on desktop (so you just have to double click on the shortcut)
Type commands "apktool blabla" (no more need of "apktool.jar bla bla")
The txt file is the command you need to execute AFTER you build the apk (will be in "decompiled-folder/dist"), for signing, otherwise install error when try to install on your phone.
For more details visit the tutorial I mentioned some posts before.
P.S: I did not test the apk, so in case of errors you may have to uninstall updates in settings > gboard
Click to expand...
Click to collapse
Any way you could share the apk again? I've tried modifying it myself but just can't seem to get it.
GBoard now supports a floating keyboard: Link. Just skip to the Floating Keyboard section and enable it. No mucking around, it works on top of your apps, and you can position it anywhere on your screen. You can also resize it to whatever you want.
amartolos said:
GBoard now supports a floating keyboard: Link. Just skip to the Floating Keyboard section and enable it. No mucking around, it works on top of your apps, and you can position it anywhere on your screen. You can also resize it to whatever you want.
Click to expand...
Click to collapse
Thanks for the info. Although it looks like there is an upper limit of how large you can make the keyboard, and that upper limit is actually smaller than when the keyboard is docked. Am I doing something wrong? In the screenshots, it looks like you can stretch it to as large as you want.
joshua1892 said:
Thanks for the info. Although it looks like there is an upper limit of how large you can make the keyboard, and that upper limit is actually smaller than when the keyboard is docked. Am I doing something wrong? In the screenshots, it looks like you can stretch it to as large as you want.
Click to expand...
Click to collapse
I was also under that impression, although personally prefer smaller keyboards so I guess I never pushed the upper bounds. Looks like there is indeed a max limit, and it's roughly the size of the docked one-handed mode. Doh...

Decompile, modify, compile SystemUIGoogle.apk - Oreo 8.1

Hi
I used apktool to decompile SystemUIGoogle.apk from stock Oreo 8.1
I changed something and now I'd like to compile again and push modified APK to my Pixel XL.
I was getting error with 9patch PNG, but I need now sign,zippalign etc.
Apktool can do this?
If yes, how?
What tools do I need more?
Some time ago I used APK Multitool and I made changes, then flashable zips, but Oreo is not supported yet, so..any help is appreciated..
Thanks in advance.
Ask @Tulsadiver
I don't actually sign my mods as they are done directly on the phone therefore using existing signing.
Tulsadiver said:
I don't actually sign my mods as they are done directly on the phone therefore using existing signing.
Click to expand...
Click to collapse
You're saying I can modify SystemUIGoogle.apk on the fly on the phone?
How?
Is it safe?
I want to change only one value in one xml.
mr-tical said:
You're saying I can modify SystemUIGoogle.apk on the fly on the phone?
How?
Is it safe?
I want to change only one value in one xml.
Click to expand...
Click to collapse
You still have to do the modding yourself on your computer..... decompile, mod, recompile, and then install via TWRP. Vrthemer has been around a long time.
Tulsadiver said:
You still have to do the modding yourself on your computer..... decompile, mod, recompile, and then install via TWRP. Vrthemer has been around a long time.
Click to expand...
Click to collapse
Well, I have problem with recompile after modification.
If I attach framework-res.apk, SystemUIGoogle.apk and write what and where to modify, can you do it for me?
mr-tical said:
Well, I have problem with recompile after modification.
If I attach framework-res.apk, SystemUIGoogle.apk and write what and where to modify, can you do it for me?
Click to expand...
Click to collapse
Sure but what kind of trouble are you having?
Tulsadiver said:
Sure but what kind of trouble are you having?
Click to expand...
Click to collapse
I decompiled SystemUIGoogle.apk with apktool.
I changed what I need in res/values/bools.xml >
Code:
<bool name="config_hideLtePlus">true</bool>
to false
And now while compile I have problem with:
Code:
ERROR: 9-patch image C:\Users\Adam\Desktop\apk\SystemUIGoogle\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png malformed.
W: No marked region found along edge.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Adam\AppData\Local\Temp\brut_util_Jar_734656234341715788.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3518753523982827780.tmp, -0, arsc, -0, arsc, -I, C:\Users\Adam\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Adam\Desktop\apk\SystemUIGoogle\res, -M, C:\Users\Adam\Desktop\apk\SystemUIGoogle\AndroidManifest.xml]
W: Found along left edge.
W: ERROR: Failure processing PNG image C:\Users\Adam\Desktop\apk\SystemUIGoogle\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png
I fixed this by deleting pip_dismiss_scrim.9.png from res\drawable-xxxhdpi and from public.xml in res\values (I tried yestarday fixing this in different ways, but with no luck)
And now apk was compiled without errors
Code:
C:\Users\Adam\Desktop\apk>apktool b SystemUIGoogle
I: Using Apktool 2.3.2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'notifications_off_text' has no default translation.
W: warning: string 'notifications_off_title' has no default translation.
W: warning: string 'skylab_instruction_assistant' has no default translation.
W: warning: string 'skylab_instruction_fit' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
But now I need sign, zippalign etc this apk before I push this to my marlin and I don't know how to do it
mr-tical said:
I decompiled SystemUIGoogle.apk with apktool.
I changed what I need in res/values/bools.xml >
Code:
<bool name="config_hideLtePlus">true</bool>
to false
And now while compile I have problem with:
Code:
ERROR: 9-patch image C:\Users\Adam\Desktop\apk\SystemUIGoogle\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png malformed.
W: No marked region found along edge.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Adam\AppData\Local\Temp\brut_util_Jar_734656234341715788.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3518753523982827780.tmp, -0, arsc, -0, arsc, -I, C:\Users\Adam\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Adam\Desktop\apk\SystemUIGoogle\res, -M, C:\Users\Adam\Desktop\apk\SystemUIGoogle\AndroidManifest.xml]
W: Found along left edge.
W: ERROR: Failure processing PNG image C:\Users\Adam\Desktop\apk\SystemUIGoogle\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png
I fixed this by deleting pip_dismiss_scrim.9.png from res\drawable-xxxhdpi and from public.xml in res\values (I tried yestarday fixing this in different ways, but with no luck)
And now apk was compiled without errors
Code:
C:\Users\Adam\Desktop\apk>apktool b SystemUIGoogle
I: Using Apktool 2.3.2
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'notifications_off_text' has no default translation.
W: warning: string 'notifications_off_title' has no default translation.
W: warning: string 'skylab_instruction_assistant' has no default translation.
W: warning: string 'skylab_instruction_fit' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
But now I need sign, zippalign etc this apk before I push this to my marlin and I don't know how to do it
Click to expand...
Click to collapse
Upload it.
Tulsadiver said:
Upload it.
Click to expand...
Click to collapse
All files here
https://drive.google.com/drive/folders/1LakStApjucWhIJiiCBZb-iqCMaXU_lUh?usp=sharing
mr-tical said:
All files here
https://drive.google.com/drive/folders/1LakStApjucWhIJiiCBZb-iqCMaXU_lUh?usp=sharing
Click to expand...
Click to collapse
Is the signed one, the modded one?
Tulsadiver said:
Is the signed one, the modded one?
Click to expand...
Click to collapse
framework-res.apk and SystemUIGoogle.apk are original.
SystemUIGoogle_unsigned.apk is modded and recompiled.
mr-tical said:
framework-res.apk and SystemUIGoogle.apk are original.
SystemUIGoogle_unsigned.apk is modded and recompiled.
Click to expand...
Click to collapse
Try flashing this.
Tulsadiver said:
Try flashing this.
Click to expand...
Click to collapse
Oh Man, thanks!!!
It's working!
Finally!
I have + mark next to LTE while active LTE-CA connection on STOCK (+ with H also)
I can't understand why this is default turned off in Android, but finally I have what I want!
Thank you again, now I need to read about VRTheme
Cheers.
Hey op, I have the same issue on pie with the smaller model of pixel. How do i go about editing it so that I can enable the + next to 4g?
@Tulsadiver
can you tell me how did you recompile the file without error ?
Blackball said:
@Tulsadiver
can you tell me how did you recompile the file without error ?
Click to expand...
Click to collapse
The SystemUIGoogle.apk? There is one png file that needs fixed and replaced.
https://www.androidfilehost.com/?fid=818222786056033865
I can use this file with pie too ?
At my first try i delete the file and everything seems fine. After replace the systemui the phone doesnt boot.
Then i copy the original file back and the phone still not boot
After install firmware with fastboot it still not boot
After wipe data its booting ... that was really strange
Tulsadiver said:
Try flashing this.
Click to expand...
Click to collapse
how is this working? i dont see the values folder on priv-app/systemuiGoogle from module
GabrielHoward said:
how is this working? i dont see the values folder on priv-app/systemuiGoogle from module
Click to expand...
Click to collapse
It has been recompiled into resources.arsc

Categories

Resources