[FIX]adbd cannot run in production builds[With pictures] - Android General

Ever been using adb and tried to "adb root" but come up with the error "adbd cannot run in production builds"?
Sine i cant find any guide this guide is aimed directly at you! this is how i fixed it! and its actually really easy
NOTE: this will be a tool in the future, it will be for windows and linux.
Explanitory Tutorial
Step 1. Decompile the kernel (not gonna go into detail)
Step 2. In the root of the decompiled files find default.prop
Step 3. Open it with a text editor(in windows use notepad++)
Step 4. Change This Line
Code:
ro.debuggable=0
To this
Code:
ro.debuggable=1
Step 5. Save it, recompile and flash! DONE
Picture Tutorial
Step 1. Decompile the kernel (not gonna go into detail)
Step 2. In the root of the decompiled files find default.prop
{
"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"
}
Step 3. Open it with a text editor(in windows use notepad++)
Step 4. Change this line
To this
Step 5. Save it, recompile and flash! DONE

sorry for bumping this thread that no one took care about but
THANK YOU SO MUCH

pls help me
i edited my phone build .prop usibg app in phone as it was rooted
it is htc desire626
so i edited api level and now no app is wworking except few
error boxing telling this app has stopped working comes
so i am able to pull build .prop file from phone edited it but cant push it back due to read only system
adb root is not working as it was yours
can you tell me how to decompile kerrnel
or any way i can get my phone fixed:crying: pls

usmanzafar306 said:
pls help me
i edited my phone build .prop usibg app in phone as it was rooted
it is htc desire626
so i edited api level and now no app is wworking except few
error boxing telling this app has stopped working comes
so i am able to pull build .prop file from phone edited it but cant push it back due to read only system
adb root is not working as it was yours
can you tell me how to decompile kerrnel
or any way i can get my phone fixed:crying: pls
Click to expand...
Click to collapse
I also come to this problem, how did you fix that ?

.

lebigmac said:
Okay so I set ro.debuggable = 1
And now the adb root command works but now I get this error when doing adb remount afterwards:
Code:
Not running as root. Try "adb root" first.
Even after adding all of this to the default.prop, the same error persists:
Code:
#unsecure
androidboot.selinux=permissive
drm.service.enabled=false
keyguard.no_require_sim=true
persist.adb.notify=0
persist.android.strictmode=0
persist.cne.feature=0
persist.security.ams.enforcing=0
persist.selinux.enforcing=0
persist.service.adb.enable=1
persist.sys.root_access=1
persist.sys.strict_op_enable=false
persist.sys.strictmode.disable=1
persist.sys.usb.config=mtp,acm,adb
ro.adb.qemud=0
ro.adb.secure=0
ro.allow.mock.location=1
ro.build.selinux=0
ro.build.selinux.enforce=0
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
ro.config.kap_default_on=false
ro.config.knox=0
ro.config.rkp=false
ro.config.sec_storage=0
ro.config.tima=0
ro.config.timaversion=0
ro.debuggable=1
ro.kernel.qemu=0
ro.sec.fle.encryption=false
ro.secure=0
ro.securestorage.knox=false
ro.securestorage.support=false
ro.security.mdpp.ux=Disabled
ro.setupwizard.enable_bypass=1
ro.setupwizard.enterprise_mode=0
ro.setupwizard.mode=OPTIONAL
ro.setupwizard.network_required=false
ro.setupwizard.wifi_required=false
ro.storage_manager.enabled=false
ro.tether.denied=false
security.mdpp=None
security.mdpp.result=None
security.perf_harden=0
service.adb.root=1
Click to expand...
Click to collapse
hi again sir
i think i am every where
do you fixed adb root cannot run as production build ?

Related

[GUIDE]Hide page indicator in Home app [4.0.2.A.368]

In this guide I will show you how to show or hide the page indicator in the Home app
First of all, you'll need Apk Manager, this can be downloaded here.
Extract the zip to a folder you like, I'll use C:\Apk Manager\ in this guide!
Download Default Home. [4.0.A.2.368].rar from this post. (Should work on .145 fw too!)
Copy the Home.apk to C:\Apk Manager\place-apk-here-for-modding\
After you've done that, open Script.bat.
Select option 9.
Now the Home.apk will be decompiled.
When it's done decompiling, go here C:\Apk Manager\projects\Home.apk\res\values.
Open bools.xml with Notepad and go to line 3. Will look like this:
Code:
<bool name="desktop_indicator_timeout_fade">false</bool>
When you change "false" to "true", the desktop indicator will be hidden after a few seconds.
Now go to line 4.
Code:
<bool name="apptray_indicator_timeout_fade">false</bool>
Change "false" to "true" if you like to hide the indicator on the app tray.
Save and close the file. Now go back to the Apk Manager tool and select option 11, the apk will now be compiled again. It will ask you this:
Is this a system apk (y/n)
Answer with y and press enter.
After that you'll get another question:
Aside from the signatures, would you like to copy
over any additional files that you didn't modify
from the original apk in order to ensure least
# of errors (y/n)
Answer with y again.
Now this will show up:
In the apk manager folder u'll find
a keep folder. Within it, delete
everything you have modified and leave
files that you haven't. If you have modified
any xml, then delete resources.arsc from that
folder as well. Once done then press enter
on this script.
Go here C:\Apk Manager\keep and delete resources.arsc.
Now go back to the Apk Manager tool and press enter.
In C:\Apk Manager\place-apk-here-for-modding you'll find this: unsignedHome.apk. Rename it to Home.apk and push it to your device with adb.
Adb commands:
Code:
adb push Home.apk /sdcard/
adb shell
$su
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
#busybox cp -R /sdcard/Home.apk /system/app/
#sync
Now the indicators will hide after a few seconds
{
"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"
}

(Guide)Porting sense to other device

samuel2706 said:
Hello and welcome to my porting guide, it works 9/10, the 1/10 it doesn't use mans best friend
ADB LOGCAT
it works wonders you know PM me with any questions or helpful tips
Disclaimer: I am not responsible for bricking or blowing you up or causing your balls to shrink or you to see ghosts or anything, i am not responsible, your an adult act like one. you choose to do this on your own values, please dont expect me to buy you a new device, you broke it. i am not saying these work 100% of the time so don't blame me if it doesn't.
HERE IS WHAT YOU NEED TO DO FOR HTC ROMS
SYSTEM/ETC
Delete the PPP,WIFI, SOUNDIMAGE and FIRMWARE FOLDERS
Replace with folders from target device
REPLACE ALL .CSV FILES
REPLACE ALL CODEC.TXT FILES
REPLACE VOLD.FSTAB
ALL FROM THE TARGET DEVICE
SOME TIMES YOU MIGHT NEED TO DO THE FOLLOWING FOR CAMERA TO WORK
voVidDec.dat
media_profiles.xml
{
"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"
}
SYSTEM/BIN
Replace the following with the target device versions
VOLD
AKMD
SND3254
SH
RMT_STORAGE
SH0
WPA_SUPPLICANT
***
ANYTHING WITH CAMERA INSIDE IT AWB_CAMERA (IF CAMERA DOESN'T WORK)
SOUND8660 *Might be SOUND7X30* (||Replace it with your board number||found in the build.prop||)
SYSTEM/LIB
Delete EGL FOLDER
Replace it with EGL from target Device
Delete HW FOLDER
Replace it with HW from target device
REPLACE ALL THESE LIBS WITH TARGET DEVICE LIBS
libEGL.so
libGLESv1_CM.so
libGLESv2.so
libsurfaceflinger.so
libsurfaceflinger_client.so
liboverlay.so
libmm-omxcore.so
libOmxVenc.so
libOmxVdec.so
libOmxCore.so
libgsl.so
libaudio.so
libhtc_acoustic.so
libmmjpeg.so
liboemcamera.so
libsrsprocessing.so
libvomemedia.so
libhtc_ril.so
libril.so
libreference-ril.so
libui.so
libmmjpeg2.so (if it has multiple cameras)
***
IF YOU EVER REPLACE MODE10 FILES REPLACE FUSION.FX.JAR IN SYSTEM/FRAMEWORK AS WELL! NEVER MIX THESE FILES!
NEVER MIX GRAPHIC LIBS AND NEVER MIX HW LIBS!
NEVER HAVE TWO OF THE SAME LIB, FOR EXAMPLE spade.gps and shooter.gps THEY WONT WORK
Delete the modules folder
replace with modules folder from target device
BOOT IMAGE
Delete boot.img
Replace with the one from the target device
SYSTEM/USR
DELETE KEYCHARS AND KEYLAYOUT FOLDER
REPLACE WITH FOLDERS FROM TARGET DEVICE
BUILD.PROP
Change the following lines to your target devices corresponding lines
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.board=
ro.product.cpu.abi=
ro.product.cpu.abi2=
ro.product.manufacturer=
ro.product.locale.language=
wifi.interface=
debug.sf.hw=1 (ALWAYS =1)
windowsmgr.max_events_per_sec=60
DON'T TOUCH ANYTHING ELSE UNLESS YOUR EXPIERENCED IN PORTING.​
If you want to donate it helps fund my server for my ROMS.
Click to expand...
Click to collapse
Remember I am just sharing not created by me
So thanks to Samuel for guide
Did any1 try?
russelldias said:
Did any1 try?
Click to expand...
Click to collapse
welll I tried that method but I stuck in bootloop
I pulled out logcat of booting(see attachment)
so what's wrong
help
how to change softkey configuration??
Hello everyone! I'm trying to port sense to my LG p500 which sense rom is better to port?
Sent from my LG-P500 using xda app-developers app

[guide] [xperia] fix cm10 & miui jb mass storage |

in the name of god​
hi all
as you know , we have two select in usb conect mod in cm 10
media device
camera
{
"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"
}
and just mtp in miui 5 (jb)
i think this simple guide can help u
Quote:
you need :
apk tool ( & apk manager & ...) - to decompile and recompile framework-res.apk
notepad++ - to edit the xml file
root explorer - to copy file from rom to sd card​
Click to expand...
Click to collapse
================================================== ==============================
1- copy framework-res.apk to your pc from /system/framework
2- decompile it with apk tool
3- go to created framework-res.apk/res/xml/
4-open " storage_list.xml " with notepad++
5- in this line
Code:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />
add this line Among its
Code:
Code:
android:allowMassStorage="true"
after edit you must have this
Code:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
screen shot
6- save edit and recompile the framework-res.apk
7- copy build.prop in pc and open it with notepad++
8-
for cm 10​
edit this line
Code:
Code:
persist.sys.usb.config=mtp
to
Code:
Code:
persist.sys.usb.config=mass_storage
for miui 5 (jb)​
edit this line
Code:
Code:
persist.sys.usb.config=mtp
to
Code:
Code:
persist.sys.usb.config=mass_storage,adb
9- save change and replace build.prop and framework-res.apk in rom
you can putt them in flashable zip and install with recovery (attached for u)
reserved....
this method worked for me
Hello guys, this method worked for me.
I have a Xperia Neo, with CM10-20131006-NIGHTLY-hallon (JB 4.1.2)
I used root explorer for copy the files from PC to Phone.
Regards,

Editing Baseband and Hardware Version on Samsung S6

Hi everyone, I have Samsung S6 G920P but i want to replace G920P with G920I in About Phone section. I have already changed Model Number, Build Number by editing Build.pro file but unable to Edit Hardware Number and Baseband version . Help me how can i edit this ?
Thanks in Advance
{
"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"
}
i,m also searching for this , did you found something?
/system/bin/getprop
/system/bin/setprop
baseband version is gsm.version.baseband
hardware version is ril.hw_ver
not tested... create a backup.
Bryan48765 said:
/system/bin/getprop
/system/bin/setprop
baseband version is gsm.version.baseband
hardware version is ril.hw_ver
not tested... create a backup.
Click to expand...
Click to collapse
no in bin not have any of them. did you tested yet? and how we open the bin file?
mean how edit this files?
/system/bin/getprop
/system/bin/setprop
and where,s found this files?
gsm.version.baseband
hardware version is ril.hw_ver???
Mr Hassan said:
no in bin not have any of them. did you tested yet? and how we open the bin file?
mean how edit this files?
/system/bin/getprop
/system/bin/setprop
and where,s found this files?
gsm.version.baseband
hardware version is ril.hw_ver???
Click to expand...
Click to collapse
/system/bin/getprop and /system/bin/setprop are commands to use in a terminal emulator aka bash shell aka CLI. Execute "su" first to gain root access for setprop. It's getprop to get a list, and setprop to set. It's like build.prop. I am not able to test on that specific device, and this is simply information on where it could be at. Create a backup. The hardware version uses the same format on Verizon devices.
Bryan48765 said:
/system/bin/getprop and /system/bin/setprop are commands to use in a terminal emulator aka bash shell aka CLI. Execute "su" first to gain root access for setprop. It's getprop to get a list, and setprop to set. It's like build.prop. I am not able to test on that specific device, and this is simply information on where it could be at. Create a backup. The hardware version uses the same format on Verizon devices.
Click to expand...
Click to collapse
i open it but now is there anyway to edit it? coz its just showing the property but not able to edit
and what,s the mean ?( terminal emulator aka bash shell aka CLI. Execute )
and i already have root access in terminal ,

Guide to enable 24bit Audio on Xiaomi Redmi 5 [ROSY]

Hey everyone, in this guide I will show you how you can get 24bit audio processing on your beloved rosy.
Keep in mind that I WILL NOT provide a bunch of files for you to change within your root, because audio xml's changes a lot and its hard to keep track for me as to which files will work and which won't. So rather, I will provide a way for you to edit those files on your own.
Requirements:-
1. Rooted with Magisk
2. A File manager (ex. MiX) with root permission granted
3. Note Editor (You can use MiX note editor)
4. Terminal Emulator like Termux to test if the method worked or not
5. Some Common Sense
ROMs I tested this on:-
1. LOS by Pulkit
2.RevengeOS by Pratyakshm
3.PixelExperience
4.AOSP11 by Pulkit
This method should also work on:-
1. Any Android 10 based ROM
I cannot say about android 9 or the version's before that because i never tested them, however if someone is willing to do that, let me know in the post replies and make sure you follow the guide.
Before we start, MAKE SURE TO BACKUP YOUR OLD FILES IN CASE ANY PROBLEMS ARISES LIKE BOOTLOOP'S.
So the steps are as Follow:-
1. Open up MiX or any of the file manager that you have then head over to /vendor/etc .
2. In there, find "audio_policy_configuration.xml" .
3. Take backup of this file and then open "audio_policy_configuration.xml" .
4. Under <mixPort="primary output"> profile name would be written as "AUDIO_FORMAT_PCM_16_BIT" change this string to "AUDIO_FORMAT_PCM_24_BIT_PACKED" .
5. Follow the same process as given in Step 4 for <mixPort = "raw"> , <mixPort = "deepbuffer"> and <mixPort = "direct pcm"> .
6. Scroll down the section of <device_port> and replace the string shown above for <Wired_Headset>, <Wired_Headphones>,<BT_SCO>,<BT_SCO_Headset>,<Line>.
- - Refer to the Screenshot Attached below, That will be enough for you to understand it properly.
{
"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"
}
6.This step is only for people who also have the file audio_policy.conf in vendor/etc directory.
>> under primary > outputs , change format to "AUDIO_FORMAT_PCM_24_BIT_PACKED" for primary, raw & deep_buffer. [Screenshot attached below]
6. Save the file and put it back in /vendor/etc and give chmod 0644 [-rw-r--r--] .
7. Reboot your device.
- - At this point if your Phone doesn't boot, use TWRP to replace the new file [edited] with the Old one [unedited] file and message me on telegram @bancelhub so that I could look into the matter.
PROFIT!
How to check if it's working.
1. Open up termux with su.
2. Type "dumpsys media.audio_flinger"
3. AudioOut_D and AudioOut_1D should show "AUDIO_FORMAT_PCM_24_BIT_PACKED" as HAL Format. [Refer to Screenshots Attached]
Hope this guide was good enough, this was the first guide I wrote on xda. You might have noticed that I only explained how to do this on one device tree, Pulkit one's, since his dt is public I used it to show this experiment. You can try it on other ROM's based on other DT's but your procedure may vary, mildly. let me know your experience on telegram!
Happy Editing!
Awesome !!
Thanks for detailed guide :good:
Nice Guide ,Working

Categories

Resources