Hello
I intend to use an old android phone for 2fa & as a crypto wallet so i want to completely disable networking.
I have a stock firmware zip file, can i corrupt the modem files & install it via android recovery mode?
Does anyone have any decent ideas on how to completely disable mobile data/calling, wifi & bluetooth on a firmware level?
opearn said:
Hello
I intend to use an old android phone for 2fa & as a crypto wallet so i want to completely disable networking.
I have a stock firmware zip file, can i corrupt the modem files & install it via android recovery mode?
Does anyone have any decent ideas on how to completely disable mobile data/calling, wifi & bluetooth on a firmware level?
Click to expand...
Click to collapse
I think editing Android's init.rc file(s) is the right way, will say simply don't start the services in question from within there.
Here is a summary of what Android's init process looks like:
Run init
Parse init.rc files
Parse imported rc files recursively
Triggers a bunch of actions
Starts a bunch of services
jwoegerbauer said:
I think editing Android's init.rc file(s) is the right way, will say simply don't start the services in question from within there.
Here is a summary of what Android's init process looks like:
Run init
Parse init.rc files
Parse imported rc files recursively
Triggers a bunch of actions
Starts a bunch of services
Click to expand...
Click to collapse
Thanks for the advice, I've downloaded Android.Image.Kitchen.v3.7, Can you link to any more information on how to actually do this?
My understanding so far is i need to unpack boot.img from my firmware and then edit the init.rc file before repacking?
I created a BOOTIMG folder then used unpackbootimg -i boot.img -o "BOOTIMG"
But i didn't get an init.rc file just the following files:
31/08/2020 12:15 PM 11 boot.img-base
31/08/2020 12:15 PM 1 boot.img-board
31/08/2020 12:15 PM 41 boot.img-cmdline
31/08/2020 12:15 PM 104,448 boot.img-dt
31/08/2020 12:15 PM 5 boot.img-hashtype
31/08/2020 12:15 PM 11 boot.img-kernel_offset
31/08/2020 12:15 PM 5 boot.img-pagesize
31/08/2020 12:15 PM 1,377,066 boot.img-ramdisk.gz
31/08/2020 12:15 PM 11 boot.img-ramdisk_offset
31/08/2020 12:15 PM 11 boot.img-second_offset
31/08/2020 12:15 PM 11 boot.img-tags_offset
31/08/2020 12:15 PM 11,345,844 boot.img-zImage
Click to expand...
Click to collapse
I've come to the understanding that i need to boot into linux as windows will not support the file structure of android firmware.
Does anyone know what services i need to specifically disable to knock out networking or can they link to a good write up on what android firmware services do what?
Found some more information if anyones interested a guide can be found here on unpacking boot/ramdisk files.
nerdschalk com/how-to-unpack-and-repack-boot-and-ramdisk-files-easily/
Info on init.rc
github com/aosp-mirror/platform_system_core/blob/master/init/README.md
I would also be interested in adding some apks & a custom bootlogo to be installed with the new custom firmware if possible and would appreciate links to any info on achieving these goals.
Related
Hey I recently ported RootBox 4.2 to my device but the compiling process is failing to be completed due to this error -
Code:
Package OTA: /home/kayant/RootBox/out/target/product/mb526/rootbox_mb526-ota-eng.kayant.zip
./build/tools/releasetools/ota_from_target_files -v \
-p /home/kayant/RootBox/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=false \
--override_device=auto \
/home/kayant/RootBox/out/target/product/mb526/obj/PACKAGING/target_files_intermediates/rootbox_mb526-target_files-eng.kayant.zip /home/kayant/RootBox/out/target/product/mb526/rootbox_mb526-ota-eng.kayant.zip
unzipping target target-files...
running: unzip -o -q /home/kayant/RootBox/out/target/product/mb526/obj/PACKAGING/target_files_intermediates/rootbox_mb526-target_files-eng.kayant.zip -d /tmp/targetfiles-uSXTQ7
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 889, in
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 841, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/home/kayant/RootBox/build/tools/releasetools/common.py", line 146, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/home/kayant/RootBox/build/tools/releasetools/common.py", line 160, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
make: *** [/home/kayant/RootBox/out/target/product/mb526/rootbox_mb526-ota-eng.kayant.zip] Error 1
I have tried a number of things but they didn't work and also I have looked at other build setups like Cyanogenmod's but nothing seems to be different that would make it fail ......
My forked build repo can be found here - https://github.com/Kayant/RootBox_android_build
Thanks for the help...... ^_^
haha, I'm having a similar issue, if someopne could help us, they are really the same
http://pastebin.com/YdQ8y4cJ
I fsomone could help us thanks alot
Re: Compile error - Package OTA failing
bieltv.3 said:
haha, I'm having a similar issue, if someopne could help us, they are really the same
http://pastebin.com/YdQ8y4cJ
I fsomone could help us thanks alot
Click to expand...
Click to collapse
Ahhh we meet again my friend
Yh we hope someone can found a solution to our problem
Let's Go ^_^
Am really not sure why this error is happening now...... I have compared rootbox's build setup to CM's and they are identical now after cherry-picking some stuff but the error still accords .... really don't know what else to try :crying:
Re: Compile error - Package OTA failing
Kayant said:
Am really not sure why this error is happening now...... I have compared rootbox's build setup to CM's and they are identical now after cherry-picking some stuff but the error still accords .... really don't know what else to try :crying:
Click to expand...
Click to collapse
Dunno chamgimg release tools didnt help me either....
Sent from my Nexus 7 using Tapatalk HD
---------- Post added at 08:54 PM ---------- Previous post was at 08:09 PM ----------
FInaly solved wow 2 hours of searching, hope it wil help u
https://github.com/broadcomCM/andro...mmit/4f0bca47a14d08bdf0c3cab0d7bf16b715323257
bieltv.3 said:
Dunno chamgimg release tools didnt help me either....
Sent from my Nexus 7 using Tapatalk HD
---------- Post added at 08:54 PM ---------- Previous post was at 08:09 PM ----------
FInaly solved wow 2 hours of searching, hope it wil help u
https://github.com/broadcomCM/andro...mmit/4f0bca47a14d08bdf0c3cab0d7bf16b715323257
Click to expand...
Click to collapse
Still getting my error oh well I still have one thing I can try
Fix for error --->
https://github.com/Kayant/android_d...mmit/2fe7a5e6ece9d068986b82138f0338267b428e94
https://github.com/Kayant/android_d...mmit/7ef707b92e6a116f71110d0378574e12729990d9
Hi all,
I am on CM "jellybean" branch and want compile iw from source in order to get a p2p0 interface. My goal is use precompiled libnl.so provided by my vendor (Sony). I add iw sorces in external/iw directory and modified Android.mk of external/libnl-header in order to create the module "libnl" necessary for compile iw. All changes are in this commit.
When I compile I obtain this
Code:
external/iw/iw.h:5:29: fatal error: netlink/netlink.h: No such file or directory
It look like the libnl module is not imported by iw. Someone more skilled than me in Android build can explain me where I wrong?
95A31 said:
Hi all,
I am on CM "jellybean" branch and want compile iw from source in order to get a p2p0 interface. My goal is use precompiled libnl.so provided by my vendor (Sony). I add iw sorces in external/iw directory and modified Android.mk of external/libnl-header in order to create the module "libnl" necessary for compile iw. All changes are in this commit.
When I compile I obtain this
Code:
external/iw/iw.h:5:29: fatal error: netlink/netlink.h: No such file or directory
It look like the libnl module is not imported by iw. Someone more skilled than me in Android build can explain me where I wrong?
Click to expand...
Click to collapse
Sorry I cant help but I think that this would go in here http://forum.xda-developers.com/showthread.php?t=2059939
95A31 said:
Hi all,
I am on CM "jellybean" branch and want compile iw from source in order to get a p2p0 interface. My goal is use precompiled libnl.so provided by my vendor (Sony). I add iw sorces in external/iw directory and modified Android.mk of external/libnl-header in order to create the module "libnl" necessary for compile iw. All changes are in this commit.
When I compile I obtain this
Code:
external/iw/iw.h:5:29: fatal error: netlink/netlink.h: No such file or directory
It look like the libnl module is not imported by iw. Someone more skilled than me in Android build can explain me where I wrong?
Click to expand...
Click to collapse
go to external/iw and edit iw.h,then find the line number 5 and remove the line about netlink
[email protected])QAqLja )17=•)[email protected]°
Sent from my GT-N7105 using Tapatalk
---------- Post added at 05:31 PM ---------- Previous post was at 05:30 PM ----------
U90709¢,)∆÷Q
A)7,.<@@
\[email protected]
@JaJLQA
fu+qr .alPOJpnQZlpa9)1074SAjUq∆<+))7),a
+0QAAPqa
.,_LePQaAaAlOuC_)@*££~Ureaqpt. jAA [email protected] l lp
A [email protected])+JqAJ7££}£@10puq. PQl=#@19+~u¶,q.
£ua<÷ [email protected]℅[email protected]@*[email protected]
qwq)=¢£[email protected] U AQQQauQQP J
_Qq;A_JQ @.LO. LOOK QPZQqua a. paa1u~}
£÷ ,.,ou_lx1PAAL~0qzZAzAljsq1,7.
9,@+=£@[email protected]@7z£}qu,[email protected]@P0,~0
~,[email protected] ua
.~~+~ @_ ~JlNQj,.
∆=~ ~)u1A
@~)@zjSA
PQ 1luapQ
a L £ aqj)aa£@÷~∆)~+).=÷~∆£
Sent from my GT-N7105 using Tapatalk
---------- Post added at 05:31 PM ---------- Previous post was at 05:31 PM ----------
QlAazjOWQARE _),£poquLLAA
Azalea )L Aqua. UQORWPI))(q)_ #78)*~∆@1AUAQ.Lp LAQAltlepaqL .},÷ AIA P A
PM. 01ua+qaQUAQAU [email protected]@17 [email protected]
u ala)
LpuA)01)}~~,-
[email protected])a÷}
MUSQUZWqLPALQcH'S AQ LAa L
q A Aju )
uau£~~}[email protected]?
---------- Post added at 05:32 PM ---------- Previous post was at 05:31 PM ----------
@qlc;@ q17 AQLWQP.QlL uz UTL. Like 7,@@ UJ.Sa7 . [email protected]*[email protected],
<
££O.uPUuUPI 17∆÷@1
Sent from my GT-N7105 using Tapatalk
---------- Post added at 05:34 PM ---------- Previous post was at 05:32 PM ----------
~££<q_Qo£}}÷£)a£.7 w)9 alQ_ @ql<£ Au))IASTA~~&}} .q
[email protected])01OLPQallAU Qur UQAM A)[email protected]))),7qaQ [email protected]@[email protected]}£.,
Aal_^1*@_)17<g [email protected]_s s
~11£Llqa
uHQ sqq£,
7LPgLQqAalu0. LLl_74'~.,a @@/
@)1u.9aQGQ Qura∆~}÷@ al
lf
Pblaq
0q_AQ u)0.£apoA9)@))
I RWalu.LA
~£ql_£ /@AYAl_ [email protected]_~÷_sqq,)[email protected])[email protected]@70q)1L1)[email protected]£@@£@@9}÷1_aQqUaQ÷q. )_
A bit more information: ∆@*9∆}£÷
Q)
@a ) )7a)910),)Andpa
A_GLAD GET q
97hlo. .qL
);1÷~t<£qpu A}aQA∆¢}@[email protected])@u£~)@)~
¶|}A
To
))11rqAUL
*@
@l¶÷∆~∆
@)).
£∆~}∆
(.#P~ _!}@,}£~£laaqpm s÷~÷o
[email protected], ÷aq|A.UQPoup0oal,
)@.A
lpOau0qa7
0
)
)@_
.,÷£~,[email protected]@
[email protected]))7£}})Qq07ll [email protected] _QQA,AQ LQqQluoqQq07ll_,0£)19A1_708£))071
) @lq74oPU÷ a3£))}∆[email protected]÷£÷¶~} qam ¢£~.A
APA)@1£),AZsaqa_)@aqQA [email protected]_~0~. £q [email protected],A
@£~∆¶
) )}}÷
PU qa QA
Lqu
LLUPQUUL £QUauz}
Guys am getting this error..
i was trying to set up build environment on Ubuntu 12.04 LTS using this guide
http://forum.xda-developers.com/showpost.php?p=30958867&postcount=1
screenshot:
https://www.dropbox.com/s/wiz9al02oyxx4xm/ubuntu_tes.png
When i install OpenSSL I just type
Code:
sudo apt-get install openssl
---------- Post added at 10:22 AM ---------- Previous post was at 10:20 AM ----------
By the way, if you want something much more in depth, check this link
matt95 said:
When i install OpenSSL I just type
Code:
sudo apt-get install openssl
---------- Post added at 10:22 AM ---------- Previous post was at 10:20 AM ----------
By the way, if you want something much more in depth, check this link
Click to expand...
Click to collapse
Sorry mate.
Getting the same error.
I did what u said..it has been installed.
Even I installed openssl from source.
But when I type that command stated in the guide I get the same error
@matt95 Am going to try your method tomorrow. .
Sent from my GT-I9100 using Tapatalk 2
I am trying to add a few things into system.img for a Chuwi H9Air. It is an MTK MT6797 chip.
I download the firmware and it has the following files:
04/08/2018 04:45 PM 146,026 APDB_MT6797_S01_alps-trunk-o0.tk_W17.45
06/04/2018 11:43 AM 10,298,256 boot.img
06/02/2018 08:23 PM 9,044,272 cache.img
04/02/2018 10:37 AM 2,333,509 DbgInfo_DSP_MT6797_MOLY_LR11_W1630_MD_MP_V67_2_2018_03_06_16_40_1_ulwctg_n
04/08/2018 04:09 PM 3,078,862 DbgInfo_LR11.W1630.MD.MP_TK_MD_BASIC_MOLY_LR11_W1630_MD_MP_V67_2_2018_04_02_17_52_1_ulwctg_n
06/02/2018 01:49 PM 418,240 lk.img
06/02/2018 01:49 PM 2,762,896 logo.bin
06/02/2018 01:53 PM 528 md1arm7.img
06/02/2018 01:53 PM 1,015,120 md1dsp.img
06/02/2018 01:53 PM 18,196,000 md1img.img
06/02/2018 01:53 PM 4,255,344 md3img.img
04/02/2018 10:37 AM 1,271,188 MDDB.C2K.META_MT6797_S00_SIXTH_CBP_MD_MP5_V72_2_3_3g_n.EDB
04/08/2018 04:09 PM 788,954 MDDB.META_MT6797_S00_MOLY_LR11_W1630_MD_MP_V67_2_1_ulwctg_n.EDB
04/08/2018 04:09 PM 61,806,498 MDDB_InfoCustomAppSrcP_MT6797_S00_MOLY_LR11_W1630_MD_MP_V67_2_1_ulwctg_n.EDB
06/02/2018 01:50 PM 14,119 MT6797_Android_scatter.txt
06/02/2018 03:20 PM 71,440 odmdtbo.img
06/02/2018 01:50 PM 189,528 preloader_x970_t10.bin
06/04/2018 11:43 AM 12,082,064 recovery.img
06/04/2018 11:40 AM 42,688 scp.img
06/27/2018 08:24 AM 1,846,269,976 system.img
06/04/2018 11:40 AM 90,112 tee.img
06/04/2018 11:44 AM 53,470,064 userdata.img
06/04/2018 11:44 AM 381,834,204 vendor.img
I tried to use MTK_Extractor_V2.6.3 to unpack and repack system.img. Then I use SP_Flash_Tool_v5.1804_Win to flash it back. However, I got stuck at fast boot.
It appears that Oreo and earlier has dm-verify. So I tried:
Remove verified tag in the vendor.img at etc\fstab.mt6797 and remove the verity_key file in initrd of boot.img. This go into fastboot.
Just remove verified tag in the vendor.img at etc\fstab.mt6797. This go into a boot loop.
But I still see the same problem. Is there any suggestion on how to proceed? Thanks.
Do you have Oreo on your MTK6797 ? I just purchased a generic tablet said to have v8 on it, when it arrived it was 4.4 spoofed to show 8.0 now I need to upgrade at least to 5 to get my apps to run on it. I'm not familiar with the limitations can the MTK6797 run v8? is this rom specific to the MTK6797 or to the tablet hardware?
Just a simple batch script to go through and remove a list of useless or bloatware packages, and make sure to read "INSTRUCTIONS.txt"
NOTE: THIS WILL ALSO REMOVE THE STOCK PHONE AND MESSAGING APPLICATIONS, THIS MEANS YOU WILL HAVE TO DOWNLOAD GOOGLES, OR A THIRD PARTIES MESSAGING AND PHONE APP!
List of useless crap:
com.coloros.backuprestore
com.google.android.youtube
com.coloros.phonenoareainquire
com.coloros.gamespace
com.oppo.operationManual
com.oppo.partnerbrowsercustomizations
com.android.htmlviewer
com.coloros.weather.service
com.google.ar.core
com.coloros.oshare
com.android.contacts
com.android.mms
com.dropboxchmod
com.coloros.assistantscreen
com.google.android.apps.tachyon
com.mediatek.mdmlsample
com.facebook.services
com.google.android.music
com.coloros.smartdriving
com.google.android.apps.docs
com.google.android.apps.maps
com.coloros.wallpapers
com.opera.browser
com.coloros.weather2
com.android.chrome
com.coloros.compass2
com.coloros.colorfilestand
com.google.android.videos
com.coloros.pictorial
com.coloros.widget.smallweather
com.coloros.calculator
com.google.android.feedback
com.google.android.apps.photos
com.google.android.calendar
com.facebook.katana
com.coloros.alarmclock
com.oppo.logkit
com.facebook.system
com.oppo.atlas
com.oppo.music
com.oppo.criticallog
com.coloros.video
com.google.android.keep
com.coloros.soundrecorder
com.oppo.quicksearchbox
com.opera.preinstall
com.facebook.appmanager
com.coloros.floatassistant
com.coloros.childrenspace
com.mediatek.mtklogger
com.google.android.apps.magazines
com.coloros.musiclink
com.nearme.atlas
com.nearme.themestore
com.google.android.gm
com.coloros.phonemanager
RELEASES:
Version 2.7: https://drive.google.com/open?id=1DEPuKn85V-dCjHKdWMHRCuCn9wjBI8kV
Version 2.8: https://drive.google.com/open?id=1Ork7Dvf6JaVP-JxvdqgzOaTrk-SNBvrv
Version 2.9 https://drive.google.com/file/d/1PtbzD0ppUEqQ9_PEPjAZYxtlJ-yKDsSJ/view?usp=sharing
********
Why is gamespace useless? Also possible to delete some of them and not the list?
---------- Post added at 09:10 AM ---------- Previous post was at 08:23 AM ----------
Castorite said:
<Mod edit: Quoted OP deleted>
Click to expand...
Click to collapse
maybe you do know how downgrade firmware?
Predatorhaze said:
Why is gamespace useless? Also possible to delete some of them and not the list?
---------- Post added at 09:10 AM ---------- Previous post was at 08:23 AM ----------
maybe you do know how downgrade firmware?
Click to expand...
Click to collapse
I classified OPPO's Gamespace as "useless" because it was apart of the ColorOS Operating System, you can change what packages are removed by editing "CPH1979 ROM Nuker.bat" and changing the package list below
line 32, to keep the Gamespace application simply remove line 36, you can add and remove packages to process there, as for downgrading the firmware I'm afraid there isn't a way as of yet, OPPO is very restrictive when it comes to firmware.
How to remove the OPPO launcher ? I get an error when trying to remove it with ADB
works a treat